@exmg/exm-form-drawer 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.
@@ -45,9 +45,19 @@ export declare class ExmFormDrawerBase extends ExmgElement {
45
45
  noResetOnClose: boolean;
46
46
  /**
47
47
  * Internall used to show button spinner.
48
+ * @type {Boolean}
48
49
  */
49
50
  submitting: boolean;
51
+ /**
52
+ * for showing error text
53
+ * @type {String}
54
+ */
50
55
  errorMessage?: string | null;
56
+ /**
57
+ * Disabled the draws form submit button
58
+ * @type {Boolean}
59
+ */
60
+ disableSubmitButton?: boolean;
51
61
  exmForm?: ExmFormBase;
52
62
  /**
53
63
  * Opens and shows the drawer.
@@ -49,8 +49,14 @@ export class ExmFormDrawerBase extends ExmgElement {
49
49
  this.noResetOnClose = false;
50
50
  /**
51
51
  * Internall used to show button spinner.
52
+ * @type {Boolean}
52
53
  */
53
54
  this.submitting = false;
55
+ /**
56
+ * Disabled the draws form submit button
57
+ * @type {Boolean}
58
+ */
59
+ this.disableSubmitButton = false;
54
60
  }
55
61
  /**
56
62
  * Opens and shows the drawer.
@@ -146,6 +152,7 @@ export class ExmFormDrawerBase extends ExmgElement {
146
152
  doAction=${ifDefined(this.doAction)}
147
153
  ?hide-cancel-button=${this.hideCancelButton}
148
154
  ?show-reset-button=${this.showResetButton}
155
+ ?disable-submit-button=${this.disableSubmitButton}
149
156
  >
150
157
  ${this.renderFormContent()}
151
158
  </exm-form>
@@ -184,6 +191,9 @@ __decorate([
184
191
  __decorate([
185
192
  property({ type: String })
186
193
  ], ExmFormDrawerBase.prototype, "errorMessage", void 0);
194
+ __decorate([
195
+ property({ type: Boolean, attribute: 'disable-submit-button' })
196
+ ], ExmFormDrawerBase.prototype, "disableSubmitButton", void 0);
187
197
  __decorate([
188
198
  query('exm-form')
189
199
  ], ExmFormDrawerBase.prototype, "exmForm", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exmg/exm-form-drawer",
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,8 +31,8 @@
31
31
  },
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@exmg/exm-drawer": "^1.1.34",
35
- "@exmg/exm-form": "^1.1.34"
34
+ "@exmg/exm-drawer": "^1.1.36",
35
+ "@exmg/exm-form": "^1.1.36"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "lit": "^3.2.1",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "3582d203208c6a3f0be2e9c21fc521b5a1e826e1"
45
+ "gitHead": "0fb4c4b7fdbc8d149a825e172b63f7e00c8e8a4a"
46
46
  }