@ionic/core 7.7.2-nightly.20240208 → 7.7.2-nightly.20240209
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/components/action-sheet.js +7 -3
- package/components/alert.js +6 -2
- package/components/ion-loading.js +6 -2
- package/components/ion-modal.js +7 -3
- package/components/ion-picker.js +6 -2
- package/components/ion-toast.js +6 -2
- package/components/popover.js +6 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +7 -3
- package/dist/cjs/ion-alert.cjs.entry.js +6 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +6 -2
- package/dist/cjs/ion-loading.cjs.entry.js +6 -2
- package/dist/cjs/ion-modal.cjs.entry.js +7 -3
- package/dist/cjs/ion-popover.cjs.entry.js +6 -2
- package/dist/cjs/ion-toast.cjs.entry.js +6 -2
- package/dist/collection/components/action-sheet/action-sheet.js +9 -5
- package/dist/collection/components/alert/alert.js +8 -4
- package/dist/collection/components/loading/loading.js +8 -4
- package/dist/collection/components/modal/modal.js +9 -5
- package/dist/collection/components/picker/picker.js +8 -4
- package/dist/collection/components/popover/popover.js +8 -4
- package/dist/collection/components/toast/test/toast.spec.js +12 -0
- package/dist/collection/components/toast/toast.js +8 -4
- package/dist/docs.json +22 -22
- package/dist/esm/ion-action-sheet.entry.js +7 -3
- package/dist/esm/ion-alert.entry.js +6 -2
- package/dist/esm/ion-datetime_3.entry.js +6 -2
- package/dist/esm/ion-loading.entry.js +6 -2
- package/dist/esm/ion-modal.entry.js +7 -3
- package/dist/esm/ion-popover.entry.js +6 -2
- package/dist/esm/ion-toast.entry.js +6 -2
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-84074821.entry.js → p-00feeece.entry.js} +1 -1
- package/dist/ionic/{p-8942c4f0.entry.js → p-08f50365.entry.js} +1 -1
- package/dist/ionic/{p-09104e40.system.entry.js → p-2f30744e.system.entry.js} +1 -1
- package/dist/ionic/p-33c1d796.system.js +1 -1
- package/dist/ionic/{p-6869d193.system.entry.js → p-3b2e1fad.system.entry.js} +1 -1
- package/dist/ionic/{p-bbfd2cd0.system.entry.js → p-3eb54fff.system.entry.js} +1 -1
- package/dist/ionic/{p-7d9f8991.entry.js → p-4edfddd3.entry.js} +1 -1
- package/dist/ionic/{p-c5ae804f.entry.js → p-72e6fbe3.entry.js} +1 -1
- package/dist/ionic/{p-1e516e45.entry.js → p-8964db8b.entry.js} +1 -1
- package/dist/ionic/{p-f3d6ac85.system.entry.js → p-b2189b67.system.entry.js} +2 -2
- package/dist/ionic/{p-1c425012.system.entry.js → p-c65399ff.system.entry.js} +2 -2
- package/dist/ionic/{p-79ff281e.entry.js → p-caedbb0e.entry.js} +1 -1
- package/dist/ionic/{p-223b1692.system.entry.js → p-e02b2365.system.entry.js} +1 -1
- package/dist/ionic/{p-10f54620.entry.js → p-e7b4f81d.entry.js} +1 -1
- package/dist/ionic/{p-a29e7420.system.entry.js → p-f7981b54.system.entry.js} +1 -1
- package/dist/types/components/action-sheet/action-sheet.d.ts +4 -0
- package/dist/types/components/alert/alert.d.ts +4 -0
- package/dist/types/components/loading/loading.d.ts +4 -0
- package/dist/types/components/modal/modal.d.ts +4 -0
- package/dist/types/components/picker/picker.d.ts +4 -0
- package/dist/types/components/popover/popover.d.ts +4 -0
- package/dist/types/components/toast/toast.d.ts +4 -0
- package/dist/types/components.d.ts +7 -7
- package/hydrate/index.js +44 -16
- package/package.json +2 -2
|
@@ -396,6 +396,10 @@ export class Modal {
|
|
|
396
396
|
*
|
|
397
397
|
* @param data Any data to emit in the dismiss events.
|
|
398
398
|
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
399
|
+
*
|
|
400
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
401
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
402
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
399
403
|
*/
|
|
400
404
|
async dismiss(data, role) {
|
|
401
405
|
var _a;
|
|
@@ -526,9 +530,9 @@ export class Modal {
|
|
|
526
530
|
const mode = getIonMode(this);
|
|
527
531
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
528
532
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
529
|
-
return (h(Host, Object.assign({ key: '
|
|
533
|
+
return (h(Host, Object.assign({ key: '0c2c4369ab2df4ef4660addea5e927c6a0232864', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
530
534
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
531
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '
|
|
535
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: 'd044383a776c2ee1703f996caedaedca47f2948f', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { class: "modal-shadow" }), h("div", Object.assign({ key: '8d23b6a3cc9069e4d46fa0645cde9db3e6f89507',
|
|
532
536
|
/*
|
|
533
537
|
role and aria-modal must be used on the
|
|
534
538
|
same element. They must also be set inside the
|
|
@@ -537,7 +541,7 @@ export class Modal {
|
|
|
537
541
|
*/
|
|
538
542
|
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { class: "modal-handle",
|
|
539
543
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
540
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '
|
|
544
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '3fbb689e4bf5575fbb26ad1000f6ac5993f3bf8f' }))));
|
|
541
545
|
}
|
|
542
546
|
static get is() { return "ion-modal"; }
|
|
543
547
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1232,7 +1236,7 @@ export class Modal {
|
|
|
1232
1236
|
}, {
|
|
1233
1237
|
"name": "role",
|
|
1234
1238
|
"type": "string | undefined",
|
|
1235
|
-
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
1239
|
+
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1236
1240
|
}],
|
|
1237
1241
|
"references": {
|
|
1238
1242
|
"Promise": {
|
|
@@ -1253,7 +1257,7 @@ export class Modal {
|
|
|
1253
1257
|
"text": "data Any data to emit in the dismiss events."
|
|
1254
1258
|
}, {
|
|
1255
1259
|
"name": "param",
|
|
1256
|
-
"text": "role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
1260
|
+
"text": "role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1257
1261
|
}]
|
|
1258
1262
|
}
|
|
1259
1263
|
},
|
|
@@ -109,6 +109,10 @@ export class Picker {
|
|
|
109
109
|
* This can be useful in a button handler for determining which button was
|
|
110
110
|
* clicked to dismiss the picker.
|
|
111
111
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
112
|
+
*
|
|
113
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
114
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
115
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
112
116
|
*/
|
|
113
117
|
async dismiss(data, role) {
|
|
114
118
|
const unlock = await this.lockController.lock();
|
|
@@ -180,11 +184,11 @@ export class Picker {
|
|
|
180
184
|
render() {
|
|
181
185
|
const { htmlAttributes } = this;
|
|
182
186
|
const mode = getIonMode(this);
|
|
183
|
-
return (h(Host, Object.assign({ key: '
|
|
187
|
+
return (h(Host, Object.assign({ key: 'c266cc072afaba2da22f70d8b62dc4bc6756d188', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
184
188
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
185
189
|
}, class: Object.assign({ [mode]: true,
|
|
186
190
|
// Used internally for styling
|
|
187
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
191
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '35ee3e5028028835580e28ac2c8db65a924d5d6a', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '8b454e6edbcfc45c57d3d8baf7c14b7905921a6e', tabindex: "0" }), h("div", { key: 'e0fee78ec6d097bf0963190f748e5daad602e0f7', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: 'ce66bca18fc3e982ad7d6660f27cb1a03fb8247b', class: "picker-toolbar" }, this.buttons.map((b) => (h("div", { class: buttonWrapperClass(b) }, h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), h("div", { key: 'a58b9523fe16f109dd6de0610717c5077fed964b', class: "picker-columns" }, h("div", { key: 'acd54c0314cff51e8513a08dd9755c4b847c0617', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-column", { col: c })), h("div", { key: '604730bd87582d048d850c6e0a0f29ba33258918', class: "picker-below-highlight" }))), h("div", { key: '93baf5e6e57aec5f084d7d5b24af14e7d8126b5a', tabindex: "0" })));
|
|
188
192
|
}
|
|
189
193
|
static get is() { return "ion-picker"; }
|
|
190
194
|
static get encapsulation() { return "scoped"; }
|
|
@@ -693,7 +697,7 @@ export class Picker {
|
|
|
693
697
|
}, {
|
|
694
698
|
"name": "role",
|
|
695
699
|
"type": "string | undefined",
|
|
696
|
-
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
700
|
+
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
697
701
|
}],
|
|
698
702
|
"references": {
|
|
699
703
|
"Promise": {
|
|
@@ -710,7 +714,7 @@ export class Picker {
|
|
|
710
714
|
"text": "data Any data to emit in the dismiss events."
|
|
711
715
|
}, {
|
|
712
716
|
"name": "param",
|
|
713
|
-
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
717
|
+
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
714
718
|
}]
|
|
715
719
|
}
|
|
716
720
|
},
|
|
@@ -280,6 +280,10 @@ export class Popover {
|
|
|
280
280
|
* @param role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'.
|
|
281
281
|
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss
|
|
282
282
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
283
|
+
*
|
|
284
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
285
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
286
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
283
287
|
*/
|
|
284
288
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
285
289
|
const unlock = await this.lockController.lock();
|
|
@@ -331,9 +335,9 @@ export class Popover {
|
|
|
331
335
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
332
336
|
const desktop = isPlatform('desktop');
|
|
333
337
|
const enableArrow = arrow && !parentPopover;
|
|
334
|
-
return (h(Host, Object.assign({ key: '
|
|
338
|
+
return (h(Host, Object.assign({ key: '104a5bf92a9bbd2efc71d499a8500e5d55f81711', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
335
339
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
336
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '
|
|
340
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: 'ef0baa04c22444d4bc705220235a892308d67586', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { class: "popover-arrow", part: "arrow" }), h("div", { key: '5cc5f5c353de614e484e9cfeacecfca9fbfde0e0', class: "popover-content", part: "content" }, h("slot", { key: '2d85c591cdc85efa98afbf40f676525f1402efcf' })))));
|
|
337
341
|
}
|
|
338
342
|
static get is() { return "ion-popover"; }
|
|
339
343
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1130,7 +1134,7 @@ export class Popover {
|
|
|
1130
1134
|
}, {
|
|
1131
1135
|
"name": "dismissParentPopover",
|
|
1132
1136
|
"type": "boolean",
|
|
1133
|
-
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
1137
|
+
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1134
1138
|
}],
|
|
1135
1139
|
"references": {
|
|
1136
1140
|
"Promise": {
|
|
@@ -1154,7 +1158,7 @@ export class Popover {
|
|
|
1154
1158
|
"text": "role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'."
|
|
1155
1159
|
}, {
|
|
1156
1160
|
"name": "param",
|
|
1157
|
-
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
1161
|
+
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1158
1162
|
}]
|
|
1159
1163
|
}
|
|
1160
1164
|
},
|
|
@@ -80,6 +80,18 @@ describe('toast: a11y smoke test', () => {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
describe('toast: duration config', () => {
|
|
83
|
+
afterEach(() => {
|
|
84
|
+
/**
|
|
85
|
+
* Important: Reset the config
|
|
86
|
+
* after each test as it is not
|
|
87
|
+
* automatically reset.
|
|
88
|
+
* Otherwise, toasts in other tests
|
|
89
|
+
* will take on any toastDuration value
|
|
90
|
+
* set and timeouts will potentially run
|
|
91
|
+
* after tests are finished.
|
|
92
|
+
*/
|
|
93
|
+
config.reset({});
|
|
94
|
+
});
|
|
83
95
|
it('should have duration set to 0', async () => {
|
|
84
96
|
const page = await newSpecPage({
|
|
85
97
|
components: [Toast],
|
|
@@ -217,6 +217,10 @@ export class Toast {
|
|
|
217
217
|
* This can be useful in a button handler for determining which button was
|
|
218
218
|
* clicked to dismiss the toast.
|
|
219
219
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
220
|
+
*
|
|
221
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
222
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
223
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
220
224
|
*/
|
|
221
225
|
async dismiss(data, role) {
|
|
222
226
|
var _a, _b;
|
|
@@ -384,9 +388,9 @@ export class Toast {
|
|
|
384
388
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
385
389
|
printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
386
390
|
}
|
|
387
|
-
return (h(Host, Object.assign({ key: '
|
|
391
|
+
return (h(Host, Object.assign({ key: 'c8d7e7d2baa01d3ed5d65a845bc61acf087c0b18', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
388
392
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
389
|
-
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '
|
|
393
|
+
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '27c0feeb89c4efb47c42623a4b036ed84338ed10', class: wrapperClass }, h("div", { key: '41d5a3069f92e4a6acef2793fa4e236cdbdaae88', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '176f497bc990ef2ecc14c7fa90dd3a54a912030a', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
390
394
|
}
|
|
391
395
|
static get is() { return "ion-toast"; }
|
|
392
396
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1032,7 +1036,7 @@ export class Toast {
|
|
|
1032
1036
|
}, {
|
|
1033
1037
|
"name": "role",
|
|
1034
1038
|
"type": "string | undefined",
|
|
1035
|
-
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1039
|
+
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1036
1040
|
}],
|
|
1037
1041
|
"references": {
|
|
1038
1042
|
"Promise": {
|
|
@@ -1054,7 +1058,7 @@ export class Toast {
|
|
|
1054
1058
|
"text": "data Any data to emit in the dismiss events."
|
|
1055
1059
|
}, {
|
|
1056
1060
|
"name": "param",
|
|
1057
|
-
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1061
|
+
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1058
1062
|
}]
|
|
1059
1063
|
}
|
|
1060
1064
|
},
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-02-
|
|
2
|
+
"timestamp": "2024-02-09T06:07:03",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.12.1",
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
{
|
|
807
807
|
"name": "role",
|
|
808
808
|
"type": "string | undefined",
|
|
809
|
-
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
809
|
+
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
810
810
|
}
|
|
811
811
|
],
|
|
812
812
|
"references": {
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
{
|
|
828
828
|
"name": "role",
|
|
829
829
|
"type": "string | undefined",
|
|
830
|
-
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
830
|
+
"docs": "The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
831
831
|
}
|
|
832
832
|
],
|
|
833
833
|
"docs": "Dismiss the action sheet overlay after it has been presented.",
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
},
|
|
839
839
|
{
|
|
840
840
|
"name": "param",
|
|
841
|
-
"text": "role The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
841
|
+
"text": "role The role of the element that is dismissing the action sheet.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the action sheet.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
842
842
|
}
|
|
843
843
|
]
|
|
844
844
|
},
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
{
|
|
1638
1638
|
"name": "role",
|
|
1639
1639
|
"type": "string | undefined",
|
|
1640
|
-
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1640
|
+
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1641
1641
|
}
|
|
1642
1642
|
],
|
|
1643
1643
|
"references": {
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
{
|
|
1659
1659
|
"name": "role",
|
|
1660
1660
|
"type": "string | undefined",
|
|
1661
|
-
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1661
|
+
"docs": "The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1662
1662
|
}
|
|
1663
1663
|
],
|
|
1664
1664
|
"docs": "Dismiss the alert overlay after it has been presented.",
|
|
@@ -1669,7 +1669,7 @@
|
|
|
1669
1669
|
},
|
|
1670
1670
|
{
|
|
1671
1671
|
"name": "param",
|
|
1672
|
-
"text": "role The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
1672
|
+
"text": "role The role of the element that is dismissing the alert.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the alert.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
1673
1673
|
}
|
|
1674
1674
|
]
|
|
1675
1675
|
},
|
|
@@ -13797,7 +13797,7 @@
|
|
|
13797
13797
|
{
|
|
13798
13798
|
"name": "role",
|
|
13799
13799
|
"type": "string | undefined",
|
|
13800
|
-
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
13800
|
+
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
13801
13801
|
}
|
|
13802
13802
|
],
|
|
13803
13803
|
"references": {
|
|
@@ -13818,7 +13818,7 @@
|
|
|
13818
13818
|
{
|
|
13819
13819
|
"name": "role",
|
|
13820
13820
|
"type": "string | undefined",
|
|
13821
|
-
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
13821
|
+
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
13822
13822
|
}
|
|
13823
13823
|
],
|
|
13824
13824
|
"docs": "Dismiss the loading overlay after it has been presented.",
|
|
@@ -13829,7 +13829,7 @@
|
|
|
13829
13829
|
},
|
|
13830
13830
|
{
|
|
13831
13831
|
"name": "param",
|
|
13832
|
-
"text": "role The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
13832
|
+
"text": "role The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
13833
13833
|
}
|
|
13834
13834
|
]
|
|
13835
13835
|
},
|
|
@@ -15526,7 +15526,7 @@
|
|
|
15526
15526
|
{
|
|
15527
15527
|
"name": "role",
|
|
15528
15528
|
"type": "string | undefined",
|
|
15529
|
-
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
15529
|
+
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
15530
15530
|
}
|
|
15531
15531
|
],
|
|
15532
15532
|
"references": {
|
|
@@ -15551,7 +15551,7 @@
|
|
|
15551
15551
|
{
|
|
15552
15552
|
"name": "role",
|
|
15553
15553
|
"type": "string | undefined",
|
|
15554
|
-
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
15554
|
+
"docs": "The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
15555
15555
|
}
|
|
15556
15556
|
],
|
|
15557
15557
|
"docs": "Dismiss the modal overlay after it has been presented.",
|
|
@@ -15562,7 +15562,7 @@
|
|
|
15562
15562
|
},
|
|
15563
15563
|
{
|
|
15564
15564
|
"name": "param",
|
|
15565
|
-
"text": "role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'."
|
|
15565
|
+
"text": "role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
15566
15566
|
}
|
|
15567
15567
|
]
|
|
15568
15568
|
},
|
|
@@ -17787,7 +17787,7 @@
|
|
|
17787
17787
|
{
|
|
17788
17788
|
"name": "role",
|
|
17789
17789
|
"type": "string | undefined",
|
|
17790
|
-
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
17790
|
+
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
17791
17791
|
}
|
|
17792
17792
|
],
|
|
17793
17793
|
"references": {
|
|
@@ -17808,7 +17808,7 @@
|
|
|
17808
17808
|
{
|
|
17809
17809
|
"name": "role",
|
|
17810
17810
|
"type": "string | undefined",
|
|
17811
|
-
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
17811
|
+
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
17812
17812
|
}
|
|
17813
17813
|
],
|
|
17814
17814
|
"docs": "Dismiss the picker overlay after it has been presented.",
|
|
@@ -17819,7 +17819,7 @@
|
|
|
17819
17819
|
},
|
|
17820
17820
|
{
|
|
17821
17821
|
"name": "param",
|
|
17822
|
-
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
17822
|
+
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
17823
17823
|
}
|
|
17824
17824
|
]
|
|
17825
17825
|
},
|
|
@@ -18829,7 +18829,7 @@
|
|
|
18829
18829
|
{
|
|
18830
18830
|
"name": "dismissParentPopover",
|
|
18831
18831
|
"type": "boolean",
|
|
18832
|
-
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
18832
|
+
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
18833
18833
|
}
|
|
18834
18834
|
],
|
|
18835
18835
|
"references": {
|
|
@@ -18859,7 +18859,7 @@
|
|
|
18859
18859
|
{
|
|
18860
18860
|
"name": "dismissParentPopover",
|
|
18861
18861
|
"type": "boolean",
|
|
18862
|
-
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
18862
|
+
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
18863
18863
|
}
|
|
18864
18864
|
],
|
|
18865
18865
|
"docs": "Dismiss the popover overlay after it has been presented.",
|
|
@@ -18874,7 +18874,7 @@
|
|
|
18874
18874
|
},
|
|
18875
18875
|
{
|
|
18876
18876
|
"name": "param",
|
|
18877
|
-
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
18877
|
+
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
18878
18878
|
}
|
|
18879
18879
|
]
|
|
18880
18880
|
},
|
|
@@ -28180,7 +28180,7 @@
|
|
|
28180
28180
|
{
|
|
28181
28181
|
"name": "role",
|
|
28182
28182
|
"type": "string | undefined",
|
|
28183
|
-
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
28183
|
+
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
28184
28184
|
}
|
|
28185
28185
|
],
|
|
28186
28186
|
"references": {
|
|
@@ -28206,7 +28206,7 @@
|
|
|
28206
28206
|
{
|
|
28207
28207
|
"name": "role",
|
|
28208
28208
|
"type": "string | undefined",
|
|
28209
|
-
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
28209
|
+
"docs": "The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
28210
28210
|
}
|
|
28211
28211
|
],
|
|
28212
28212
|
"docs": "Dismiss the toast overlay after it has been presented.",
|
|
@@ -28217,7 +28217,7 @@
|
|
|
28217
28217
|
},
|
|
28218
28218
|
{
|
|
28219
28219
|
"name": "param",
|
|
28220
|
-
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"
|
|
28220
|
+
"text": "role The role of the element that is dismissing the toast.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the toast.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`.\n\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method."
|
|
28221
28221
|
}
|
|
28222
28222
|
]
|
|
28223
28223
|
},
|
|
@@ -181,6 +181,10 @@ const ActionSheet = class {
|
|
|
181
181
|
* This can be useful in a button handler for determining which button was
|
|
182
182
|
* clicked to dismiss the action sheet.
|
|
183
183
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
184
|
+
*
|
|
185
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
186
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
187
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
184
188
|
*/
|
|
185
189
|
async dismiss(data, role) {
|
|
186
190
|
const unlock = await this.lockController.lock();
|
|
@@ -289,12 +293,12 @@ const ActionSheet = class {
|
|
|
289
293
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
290
294
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
291
295
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
292
|
-
return (h(Host, Object.assign({ key: '
|
|
296
|
+
return (h(Host, Object.assign({ key: 'cd141d12d7d86d3402fd220c4afb61cdbf064c04', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
293
297
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
294
|
-
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '
|
|
298
|
+
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: 'b6a051e2cf5e101edbf59c8a40a04d8f7107fb3c', tappable: this.backdropDismiss }), h("div", { key: '5bfa2b37a417aaff3776f06d92a8544dfcbf714f', tabindex: "0" }), h("div", { key: '77d5a217803fd7be8f8dbedcd0ef5e59f0fd9800', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: '3901d56215f05cdab074e2ec321391281a165097', class: "action-sheet-container" }, h("div", { key: '275f5c7981b2ee44fb632b3d137c7209cbfcf45c', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (h("div", { id: headerID, class: {
|
|
295
299
|
'action-sheet-title': true,
|
|
296
300
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
297
|
-
} }, header, this.subHeader && h("div", { class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b) }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && h("ion-ripple-effect", null))))), cancelButton && (h("div", { class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({}, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && h("ion-ripple-effect", null)))))), h("div", { key: '
|
|
301
|
+
} }, header, this.subHeader && h("div", { class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b) }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && h("ion-ripple-effect", null))))), cancelButton && (h("div", { class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({}, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && h("ion-ripple-effect", null)))))), h("div", { key: '4285893438675be9b40838a93c2ff382a1074cd3', tabindex: "0" })));
|
|
298
302
|
}
|
|
299
303
|
get el() { return getElement(this); }
|
|
300
304
|
static get watchers() { return {
|
|
@@ -320,6 +320,10 @@ const Alert = class {
|
|
|
320
320
|
* This can be useful in a button handler for determining which button was
|
|
321
321
|
* clicked to dismiss the alert.
|
|
322
322
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
323
|
+
*
|
|
324
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
325
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
326
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
323
327
|
*/
|
|
324
328
|
async dismiss(data, role) {
|
|
325
329
|
const unlock = await this.lockController.lock();
|
|
@@ -487,9 +491,9 @@ const Alert = class {
|
|
|
487
491
|
* If neither is defined, don't set aria-labelledby.
|
|
488
492
|
*/
|
|
489
493
|
const ariaLabelledBy = header ? hdrId : subHeader ? subHdrId : null;
|
|
490
|
-
return (h(Host, Object.assign({ key: '
|
|
494
|
+
return (h(Host, Object.assign({ key: '4b7f7880dc5f39aa9b61981af0a821ac0350af7f', role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
491
495
|
zIndex: `${20000 + overlayIndex}`,
|
|
492
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '
|
|
496
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '961a2684013ac61d59882914fd8d759ddb542fe7', tappable: this.backdropDismiss }), h("div", { key: '2ec08c3719b3cd8a4cae09d2c6ac778ffad5f940', tabindex: "0" }), h("div", { key: 'ee543683d20693c9a9497aca4d41f032aa580c9c', class: "alert-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: '55015102b67d080249a8859fc8788f3a82d5ead9', class: "alert-head" }, header && (h("h2", { id: hdrId, class: "alert-title" }, header)), subHeader && (h("h2", { id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { key: 'df7bcfb0cb41965f169de05edd631a050d5ce648', tabindex: "0" })));
|
|
493
497
|
}
|
|
494
498
|
get el() { return getElement(this); }
|
|
495
499
|
static get watchers() { return {
|
|
@@ -1939,6 +1939,10 @@ const Picker = class {
|
|
|
1939
1939
|
* This can be useful in a button handler for determining which button was
|
|
1940
1940
|
* clicked to dismiss the picker.
|
|
1941
1941
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
1942
|
+
*
|
|
1943
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1944
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
1945
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1942
1946
|
*/
|
|
1943
1947
|
async dismiss(data, role) {
|
|
1944
1948
|
const unlock = await this.lockController.lock();
|
|
@@ -2010,11 +2014,11 @@ const Picker = class {
|
|
|
2010
2014
|
render() {
|
|
2011
2015
|
const { htmlAttributes } = this;
|
|
2012
2016
|
const mode = getIonMode(this);
|
|
2013
|
-
return (h(Host, Object.assign({ key: '
|
|
2017
|
+
return (h(Host, Object.assign({ key: 'c266cc072afaba2da22f70d8b62dc4bc6756d188', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2014
2018
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2015
2019
|
}, class: Object.assign({ [mode]: true,
|
|
2016
2020
|
// Used internally for styling
|
|
2017
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
2021
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '35ee3e5028028835580e28ac2c8db65a924d5d6a', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '8b454e6edbcfc45c57d3d8baf7c14b7905921a6e', tabindex: "0" }), h("div", { key: 'e0fee78ec6d097bf0963190f748e5daad602e0f7', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: 'ce66bca18fc3e982ad7d6660f27cb1a03fb8247b', class: "picker-toolbar" }, this.buttons.map((b) => (h("div", { class: buttonWrapperClass(b) }, h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), h("div", { key: 'a58b9523fe16f109dd6de0610717c5077fed964b', class: "picker-columns" }, h("div", { key: 'acd54c0314cff51e8513a08dd9755c4b847c0617', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-column", { col: c })), h("div", { key: '604730bd87582d048d850c6e0a0f29ba33258918', class: "picker-below-highlight" }))), h("div", { key: '93baf5e6e57aec5f084d7d5b24af14e7d8126b5a', tabindex: "0" })));
|
|
2018
2022
|
}
|
|
2019
2023
|
get el() { return getElement(this); }
|
|
2020
2024
|
static get watchers() { return {
|
|
@@ -212,6 +212,10 @@ const Loading = class {
|
|
|
212
212
|
* This can be useful in a button handler for determining which button was
|
|
213
213
|
* clicked to dismiss the loading.
|
|
214
214
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
215
|
+
*
|
|
216
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
217
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
218
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
215
219
|
*/
|
|
216
220
|
async dismiss(data, role) {
|
|
217
221
|
const unlock = await this.lockController.lock();
|
|
@@ -253,9 +257,9 @@ const Loading = class {
|
|
|
253
257
|
* Otherwise, don't set aria-labelledby.
|
|
254
258
|
*/
|
|
255
259
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
256
|
-
return (h(Host, Object.assign({ key: '
|
|
260
|
+
return (h(Host, Object.assign({ key: '95123f54ba1db5e59563d79db075315b43ed20f7', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
257
261
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
258
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
262
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: 'e113bf123eaad38f2dafce8ea5d2ebef409d0c0f', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '1268c9480854383c7883a79d597350540ade93c2', tabindex: "0" }), h("div", { key: 'e86fc71504ebd578117dea2232d9740a087d1249', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { class: "loading-spinner" }, h("ion-spinner", { name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '3b91e2492e06aa65ebe77ed2b6ffb9d2f84bdd9c', tabindex: "0" })));
|
|
259
263
|
}
|
|
260
264
|
get el() { return getElement(this); }
|
|
261
265
|
static get watchers() { return {
|
|
@@ -1479,6 +1479,10 @@ const Modal = class {
|
|
|
1479
1479
|
*
|
|
1480
1480
|
* @param data Any data to emit in the dismiss events.
|
|
1481
1481
|
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
1482
|
+
*
|
|
1483
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1484
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
1485
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1482
1486
|
*/
|
|
1483
1487
|
async dismiss(data, role) {
|
|
1484
1488
|
var _a;
|
|
@@ -1609,9 +1613,9 @@ const Modal = class {
|
|
|
1609
1613
|
const mode = getIonMode(this);
|
|
1610
1614
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
1611
1615
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
1612
|
-
return (h(Host, Object.assign({ key: '
|
|
1616
|
+
return (h(Host, Object.assign({ key: '0c2c4369ab2df4ef4660addea5e927c6a0232864', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1613
1617
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1614
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '
|
|
1618
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: 'd044383a776c2ee1703f996caedaedca47f2948f', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { class: "modal-shadow" }), h("div", Object.assign({ key: '8d23b6a3cc9069e4d46fa0645cde9db3e6f89507',
|
|
1615
1619
|
/*
|
|
1616
1620
|
role and aria-modal must be used on the
|
|
1617
1621
|
same element. They must also be set inside the
|
|
@@ -1620,7 +1624,7 @@ const Modal = class {
|
|
|
1620
1624
|
*/
|
|
1621
1625
|
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { class: "modal-handle",
|
|
1622
1626
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
1623
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '
|
|
1627
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '3fbb689e4bf5575fbb26ad1000f6ac5993f3bf8f' }))));
|
|
1624
1628
|
}
|
|
1625
1629
|
get el() { return getElement(this); }
|
|
1626
1630
|
static get watchers() { return {
|