@leavittsoftware/web 5.10.0 → 5.11.0
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": "@leavittsoftware/web",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"url": "https://github.com/LeavittSoftware/titanium-elements/issues"
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/LeavittSoftware/titanium-elements/#readme",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "31c63dff4f533bbff2321959783633f9ddff68b5"
|
|
44
44
|
}
|
|
@@ -9,6 +9,8 @@ export default class TitaniumConfirmationDialog extends LitElement {
|
|
|
9
9
|
accessor headline: string;
|
|
10
10
|
accessor confirmActionText: string;
|
|
11
11
|
accessor cancelActionText: string;
|
|
12
|
+
accessor disableConfirmationAction: boolean;
|
|
13
|
+
accessor disableCancelAction: boolean;
|
|
12
14
|
protected accessor dialog: MdDialog;
|
|
13
15
|
open: (headline: string, text: string) => Promise<"cancel" | "confirmed">;
|
|
14
16
|
static styles: import("lit").CSSResult[];
|
|
@@ -12,6 +12,8 @@ let TitaniumConfirmationDialog = class TitaniumConfirmationDialog extends LitEle
|
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.#confirmActionText_accessor_storage = 'Confirm';
|
|
14
14
|
this.#cancelActionText_accessor_storage = 'Cancel';
|
|
15
|
+
this.#disableConfirmationAction_accessor_storage = false;
|
|
16
|
+
this.#disableCancelAction_accessor_storage = false;
|
|
15
17
|
this.open = async (headline, text) => {
|
|
16
18
|
this.headline = headline;
|
|
17
19
|
this.text = text;
|
|
@@ -34,6 +36,12 @@ let TitaniumConfirmationDialog = class TitaniumConfirmationDialog extends LitEle
|
|
|
34
36
|
#cancelActionText_accessor_storage;
|
|
35
37
|
get cancelActionText() { return this.#cancelActionText_accessor_storage; }
|
|
36
38
|
set cancelActionText(value) { this.#cancelActionText_accessor_storage = value; }
|
|
39
|
+
#disableConfirmationAction_accessor_storage;
|
|
40
|
+
get disableConfirmationAction() { return this.#disableConfirmationAction_accessor_storage; }
|
|
41
|
+
set disableConfirmationAction(value) { this.#disableConfirmationAction_accessor_storage = value; }
|
|
42
|
+
#disableCancelAction_accessor_storage;
|
|
43
|
+
get disableCancelAction() { return this.#disableCancelAction_accessor_storage; }
|
|
44
|
+
set disableCancelAction(value) { this.#disableCancelAction_accessor_storage = value; }
|
|
37
45
|
#dialog_accessor_storage;
|
|
38
46
|
get dialog() { return this.#dialog_accessor_storage; }
|
|
39
47
|
set dialog(value) { this.#dialog_accessor_storage = value; }
|
|
@@ -79,8 +87,8 @@ let TitaniumConfirmationDialog = class TitaniumConfirmationDialog extends LitEle
|
|
|
79
87
|
<slot></slot>
|
|
80
88
|
</main>
|
|
81
89
|
<div slot="actions">
|
|
82
|
-
<md-text-button @click=${() => this.dialog.close('cancel')}>${this.cancelActionText}</md-text-button>
|
|
83
|
-
<md-filled-tonal-button @click=${() => this.dialog.close('confirmed')}>${this.confirmActionText}</md-filled-tonal-button>
|
|
90
|
+
<md-text-button ?disabled=${this.disableCancelAction} @click=${() => this.dialog.close('cancel')}>${this.cancelActionText}</md-text-button>
|
|
91
|
+
<md-filled-tonal-button ?disabled=${this.disableConfirmationAction} @click=${() => this.dialog.close('confirmed')}>${this.confirmActionText}</md-filled-tonal-button>
|
|
84
92
|
</div>
|
|
85
93
|
</md-dialog>
|
|
86
94
|
`;
|
|
@@ -98,6 +106,12 @@ __decorate([
|
|
|
98
106
|
__decorate([
|
|
99
107
|
property({ type: String, attribute: 'cancel-action-text' })
|
|
100
108
|
], TitaniumConfirmationDialog.prototype, "cancelActionText", null);
|
|
109
|
+
__decorate([
|
|
110
|
+
property({ type: Boolean, attribute: 'disable-confirmation-action' })
|
|
111
|
+
], TitaniumConfirmationDialog.prototype, "disableConfirmationAction", null);
|
|
112
|
+
__decorate([
|
|
113
|
+
property({ type: Boolean, attribute: 'disable-cancel-action' })
|
|
114
|
+
], TitaniumConfirmationDialog.prototype, "disableCancelAction", null);
|
|
101
115
|
__decorate([
|
|
102
116
|
query('md-dialog')
|
|
103
117
|
], TitaniumConfirmationDialog.prototype, "dialog", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation-dialog.js","sourceRoot":"","sources":["confirmation-dialog.ts"],"names":[],"mappings":";AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0CAA0C,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAGnE,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAGvF,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,UAAU;IAAnD;;QAG0D,2CAA4B,SAAS,CAAC;QACvC,0CAA2B,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"confirmation-dialog.js","sourceRoot":"","sources":["confirmation-dialog.ts"],"names":[],"mappings":";AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0CAA0C,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;A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