-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from gjovanovicst/main
Implemented showcase doc for input-text component
- Loading branch information
Showing
42 changed files
with
1,727 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
<!-- <div class="content-section introduction"> | ||
<div class="feature-intro"> | ||
<h1>InputSwitch</h1> | ||
<p>InputSwitch is used to select a boolean value.</p> | ||
</div> | ||
<app-demoactions> | ||
<div class="app-demoactions any-d-flex any-ai-end any-jc-end any-mt-3"> | ||
<any-button id="view_on_github" icon="fa-brands:github" | ||
style-class="any-button-rounded any-button-text any-button-lg any-button-plain"></any-button> | ||
</div> | ||
</app-demoactions> | ||
</div> | ||
<div class="content-section"> | ||
<div class="full-card"> | ||
<h5>Basic</h5> | ||
<any-input-switch id="is1"></any-input-switch> | ||
<h5>PreSelection</h5> | ||
<any-input-switch id="is2"></any-input-switch> | ||
</div> | ||
</div> --> | ||
<app-doc id="app-doc" docTitle="InputSwitch Component" header="InputSwitch" | ||
description="InputSwitch is used to select a boolean value." | ||
github-page="https://github.com/adaleks/anywhere-ui/tree/main/packages/core/src/components/input-switch"></app-doc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,3 @@ | ||
<div class="content-section introduction"> | ||
<div class="feature-intro"> | ||
<h1>InputText</h1> | ||
<p>InputText renders a text field to enter data.</p> | ||
</div> | ||
<app-demoactions> | ||
<div class="app-demoactions any-d-flex any-ai-end any-jc-end any-mt-3"> | ||
<any-button id="view_on_github" icon="fa-brands:github" | ||
style-class="any-button-rounded any-button-text any-button-lg any-button-plain"></any-button> | ||
</div> | ||
</app-demoactions> | ||
</div> | ||
<div class="content-section"> | ||
<div class="full-card"> | ||
<h5>Basic</h5> | ||
<any-input-text id="it1"></any-input-text> | ||
|
||
<h5>Float Label</h5> | ||
<any-input-text id="it2"></any-input-text> | ||
|
||
<h5>Disabled</h5> | ||
<any-input-text id="it3"></any-input-text> | ||
|
||
<h5>Left Icon</h5> | ||
<any-input-text id="it4"> | ||
<i slot="iconLeft" class="iconify" data-icon="fa-solid:search"></i> | ||
</any-input-text> | ||
|
||
<h5>Right Icon</h5> | ||
<any-input-text id="it5"> | ||
<i slot="iconRight" class="iconify" data-icon="fa-solid:spinner"></i> | ||
</any-input-text> | ||
</div> | ||
</div> | ||
<app-doc id="app-doc" docTitle="InputText Component" header="InputText" description="The InputText component is a wrapper to the HTML input element with custom styling and additional | ||
functionality." | ||
github-page="https://github.com/adaleks/anywhere-ui/tree/main/packages/core/src/components/input-text"></app-doc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,41 @@ | ||
import AbstractView from "../AbstractView.js"; | ||
|
||
export default class extends AbstractView { | ||
constructor(params) { | ||
super(params); | ||
this.setTitle("InputText"); | ||
} | ||
|
||
executeScript() { | ||
this.viewOnGithubBtn = document.querySelector("#view_on_github"); | ||
this.viewOnGithubBtn.addEventListener("aOnClick", (event) => { | ||
window.open('https://github.com/adaleks/anywhere-ui/tree/main/packages/core/src/components/input-text', '_blank'); | ||
}); | ||
this.it1 = document.querySelector("#it1"); | ||
this.it2 = document.querySelector("#it2"); | ||
this.it3 = document.querySelector("#it3"); | ||
this.it4 = document.querySelector("#it4"); | ||
this.it5 = document.querySelector("#it5"); | ||
// this.it1.value = "Goran"; | ||
// it1 options | ||
this.it1.label = "Username"; | ||
this.it1.inputWrapperClass = "any-field block"; | ||
// this.it1.disabled = true; | ||
// this.it1.readonly = true; | ||
this.it1.addEventListener("valueChange", (event) => { | ||
console.log("Input Value changed:", event); | ||
}); | ||
|
||
this.it2.floatLabel = true; | ||
this.it2.label = "Username"; | ||
|
||
this.it3.disabled = true; | ||
this.it3.placeholder = "Disabled"; | ||
|
||
this.it4.inputWrapperClass = "any-input-icon-left"; | ||
this.it4.placeholder = "Search"; | ||
|
||
this.it5.inputWrapperClass = "any-input-icon-right"; | ||
this.it5.rightIconClass = "any-spin"; | ||
} | ||
|
||
async getHtml() { | ||
return fetch('app/views/InputText/InputText.html') | ||
.then(data => { | ||
return data.text(); | ||
}); | ||
} | ||
} | ||
import AbstractView from "../AbstractView.js"; | ||
|
||
export default class extends AbstractView { | ||
constructor(params) { | ||
super(params); | ||
this.setTitle("InputText"); | ||
} | ||
|
||
executeScript() { | ||
this.appDoc = document.querySelector("#app-doc"); | ||
this.appDoc.apiDocs = ["any-input-text"]; | ||
this.appDoc.docs = [ | ||
{ | ||
id: "basic", | ||
label: "Basic", | ||
component: "input-text-basic", | ||
}, | ||
{ | ||
id: "icons", | ||
label: "Icons", | ||
component: "input-text-icons", | ||
}, | ||
{ | ||
id: "float-label", | ||
label: "Float Label", | ||
component: "input-text-float-label", | ||
}, | ||
{ | ||
id: "disabled", | ||
label: "Disabled", | ||
component: "input-text-disabled", | ||
}, | ||
]; | ||
} | ||
|
||
async getHtml() { | ||
return fetch("app/views/InputText/InputText.html").then((data) => { | ||
return data.text(); | ||
}); | ||
} | ||
} |
Oops, something went wrong.