@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "1.0.180",
3
+ "version": "1.0.182",
4
4
  "private": false,
5
5
  "description": "website for lossless.com",
6
6
  "main": "dist_ts_web/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.0.180',
6
+ version: '1.0.182',
7
7
  description: 'website for lossless.com'
8
8
  }
@@ -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>