@design.estate/dees-catalog 1.0.180 → 1.0.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +3 -3
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/dees-form.d.ts +4 -0
- package/dist_ts_web/elements/dees-form.js +12 -1
- package/dist_ts_web/elements/dees-input-text.js +2 -2
- package/dist_watch/bundle.js +12 -1
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/dees-form.ts +13 -0
- package/ts_web/elements/dees-input-text.ts +1 -1
package/package.json
CHANGED
|
@@ -166,6 +166,19 @@ export class DeesForm extends DeesElement {
|
|
|
166
166
|
submitButton.text = textStateArg;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* resets the form
|
|
171
|
+
*/
|
|
172
|
+
reset() {
|
|
173
|
+
const inputChildren = this.getFormElements();
|
|
174
|
+
const submitButton = this.getSubmitButton();
|
|
175
|
+
|
|
176
|
+
for (const inputChild of inputChildren) {
|
|
177
|
+
inputChild.value = null;
|
|
178
|
+
}
|
|
179
|
+
this.setStatus('normal', 'Submit');
|
|
180
|
+
}
|
|
181
|
+
|
|
169
182
|
public async addBehaviours() {
|
|
170
183
|
// Use event delegation
|
|
171
184
|
this.addEventListener('keydown', (event: KeyboardEvent) => {
|
|
@@ -129,7 +129,7 @@ export class DeesInputText extends DeesElement {
|
|
|
129
129
|
</style>
|
|
130
130
|
<div class="maincontainer">
|
|
131
131
|
${this.label ? html`<div class="label">${this.label}</div>` : html``}
|
|
132
|
-
<input type="${this.isPasswordBool && !this.showPasswordBool ? 'password' : 'text'}" value=${this.value} @input="${this.updateValue}" .disabled=${this.disabled} />
|
|
132
|
+
<input type="${this.isPasswordBool && !this.showPasswordBool ? 'password' : 'text'}" .value=${this.value} @input="${this.updateValue}" .disabled=${this.disabled} />
|
|
133
133
|
${this.isPasswordBool ? html`
|
|
134
134
|
<div class="showPassword" @click=${this.togglePasswordView}>
|
|
135
135
|
<dees-icon .iconFA=${this.showPasswordBool ? 'eye' : 'eyeSlash'}></dees-icon>
|