@exmg/exm-form 1.1.28 → 1.1.30
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/exm-form-base.d.ts +2 -2
- package/dist/exm-form-base.js +8 -8
- package/package.json +3 -3
package/dist/exm-form-base.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export declare class ExmFormBase extends ExmFormBase_base {
|
|
|
18
18
|
*/
|
|
19
19
|
hideCancelButton: boolean;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Show reset button
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
showResetButton: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Internall used to show button spinner.
|
|
26
26
|
*/
|
package/dist/exm-form-base.js
CHANGED
|
@@ -26,9 +26,9 @@ export class ExmFormBase extends ExmFormDirtyMixin(ExmFormValidateMixin(ExmgElem
|
|
|
26
26
|
*/
|
|
27
27
|
this.hideCancelButton = false;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Show reset button
|
|
30
30
|
*/
|
|
31
|
-
this.
|
|
31
|
+
this.showResetButton = false;
|
|
32
32
|
/**
|
|
33
33
|
* Internall used to show button spinner.
|
|
34
34
|
*/
|
|
@@ -117,13 +117,13 @@ export class ExmFormBase extends ExmFormDirtyMixin(ExmFormValidateMixin(ExmgElem
|
|
|
117
117
|
renderActions() {
|
|
118
118
|
return html `
|
|
119
119
|
<footer class="actions">
|
|
120
|
-
${this.
|
|
121
|
-
?
|
|
122
|
-
: html `
|
|
120
|
+
${this.showResetButton
|
|
121
|
+
? html `
|
|
123
122
|
<md-icon-button ?disabled=${!this.dirty} @click=${this.reset}>
|
|
124
123
|
<md-icon>restart_alt</md-icon>
|
|
125
124
|
</md-icon-button>
|
|
126
|
-
`
|
|
125
|
+
`
|
|
126
|
+
: nothing}
|
|
127
127
|
${this.hideCancelButton
|
|
128
128
|
? nothing
|
|
129
129
|
: html `
|
|
@@ -166,8 +166,8 @@ __decorate([
|
|
|
166
166
|
property({ type: Boolean, attribute: 'hide-cancel-button' })
|
|
167
167
|
], ExmFormBase.prototype, "hideCancelButton", void 0);
|
|
168
168
|
__decorate([
|
|
169
|
-
property({ type: Boolean, attribute: '
|
|
170
|
-
], ExmFormBase.prototype, "
|
|
169
|
+
property({ type: Boolean, attribute: 'show-reset-button' })
|
|
170
|
+
], ExmFormBase.prototype, "showResetButton", void 0);
|
|
171
171
|
__decorate([
|
|
172
172
|
property({ type: Boolean })
|
|
173
173
|
], 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.
|
|
3
|
+
"version": "1.1.30",
|
|
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
|
+
"@exmg/exm-button": "^1.1.30"
|
|
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": "
|
|
44
|
+
"gitHead": "615ac13bf611343354378e69556679372b91044c"
|
|
45
45
|
}
|