@exmg/exm-form 1.1.34 → 1.1.36

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.
@@ -21,6 +21,10 @@ export declare class ExmFormBase extends ExmFormBase_base {
21
21
  * Show reset button
22
22
  */
23
23
  showResetButton: boolean;
24
+ /**
25
+ * Disabled the submit,
26
+ */
27
+ disableSubmitButton?: boolean;
24
28
  /**
25
29
  * Internall used to show button spinner.
26
30
  */
@@ -29,6 +29,10 @@ export class ExmFormBase extends ExmFormDirtyMixin(ExmFormValidateMixin(ExmgElem
29
29
  * Show reset button
30
30
  */
31
31
  this.showResetButton = false;
32
+ /**
33
+ * Disabled the submit,
34
+ */
35
+ this.disableSubmitButton = false;
32
36
  /**
33
37
  * Internall used to show button spinner.
34
38
  */
@@ -134,7 +138,7 @@ export class ExmFormBase extends ExmFormDirtyMixin(ExmFormValidateMixin(ExmgElem
134
138
  <md-filled-button
135
139
  type="button"
136
140
  @click=${this.handleSubmit}
137
- ?disabled=${this.submitting || !this.formValid}
141
+ ?disabled=${this.disableSubmitButton || this.submitting || !this.formValid}
138
142
  ?loading=${this.submitting}
139
143
  >
140
144
  ${this.submitBtn}
@@ -168,6 +172,9 @@ __decorate([
168
172
  __decorate([
169
173
  property({ type: Boolean, attribute: 'show-reset-button' })
170
174
  ], ExmFormBase.prototype, "showResetButton", void 0);
175
+ __decorate([
176
+ property({ type: Boolean, attribute: 'disable-submit-button' })
177
+ ], ExmFormBase.prototype, "disableSubmitButton", void 0);
171
178
  __decorate([
172
179
  property({ type: Boolean })
173
180
  ], ExmFormBase.prototype, "submitting", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exmg/exm-form",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@exmg/exm-button": "^1.1.34"
34
+ "@exmg/exm-button": "^1.1.36"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "lit": "^3.2.1",
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "3582d203208c6a3f0be2e9c21fc521b5a1e826e1"
44
+ "gitHead": "0fb4c4b7fdbc8d149a825e172b63f7e00c8e8a4a"
45
45
  }