@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
|
@@ -177,6 +177,10 @@ const ActionSheet = /*@__PURE__*/ proxyCustomElement(class ActionSheet extends H
|
|
|
177
177
|
* This can be useful in a button handler for determining which button was
|
|
178
178
|
* clicked to dismiss the action sheet.
|
|
179
179
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
180
|
+
*
|
|
181
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
182
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
183
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
180
184
|
*/
|
|
181
185
|
async dismiss(data, role) {
|
|
182
186
|
const unlock = await this.lockController.lock();
|
|
@@ -285,12 +289,12 @@ const ActionSheet = /*@__PURE__*/ proxyCustomElement(class ActionSheet extends H
|
|
|
285
289
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
286
290
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
287
291
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
288
|
-
return (h(Host, Object.assign({ key: '
|
|
292
|
+
return (h(Host, Object.assign({ key: 'cd141d12d7d86d3402fd220c4afb61cdbf064c04', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
289
293
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
290
|
-
}, 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: '
|
|
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: '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: {
|
|
291
295
|
'action-sheet-title': true,
|
|
292
296
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
293
|
-
} }, 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: '
|
|
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: '4285893438675be9b40838a93c2ff382a1074cd3', tabindex: "0" })));
|
|
294
298
|
}
|
|
295
299
|
get el() { return this; }
|
|
296
300
|
static get watchers() { return {
|
package/components/alert.js
CHANGED
|
@@ -315,6 +315,10 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
|
|
|
315
315
|
* This can be useful in a button handler for determining which button was
|
|
316
316
|
* clicked to dismiss the alert.
|
|
317
317
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
318
|
+
*
|
|
319
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
320
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
321
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
318
322
|
*/
|
|
319
323
|
async dismiss(data, role) {
|
|
320
324
|
const unlock = await this.lockController.lock();
|
|
@@ -482,9 +486,9 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
|
|
|
482
486
|
* If neither is defined, don't set aria-labelledby.
|
|
483
487
|
*/
|
|
484
488
|
const ariaLabelledBy = header ? hdrId : subHeader ? subHdrId : null;
|
|
485
|
-
return (h(Host, Object.assign({ key: '
|
|
489
|
+
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: {
|
|
486
490
|
zIndex: `${20000 + overlayIndex}`,
|
|
487
|
-
}, 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: '
|
|
491
|
+
}, 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" })));
|
|
488
492
|
}
|
|
489
493
|
get el() { return this; }
|
|
490
494
|
static get watchers() { return {
|
|
@@ -211,6 +211,10 @@ const Loading = /*@__PURE__*/ proxyCustomElement(class Loading extends HTMLEleme
|
|
|
211
211
|
* This can be useful in a button handler for determining which button was
|
|
212
212
|
* clicked to dismiss the loading.
|
|
213
213
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
214
|
+
*
|
|
215
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
216
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
217
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
214
218
|
*/
|
|
215
219
|
async dismiss(data, role) {
|
|
216
220
|
const unlock = await this.lockController.lock();
|
|
@@ -252,9 +256,9 @@ const Loading = /*@__PURE__*/ proxyCustomElement(class Loading extends HTMLEleme
|
|
|
252
256
|
* Otherwise, don't set aria-labelledby.
|
|
253
257
|
*/
|
|
254
258
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
255
|
-
return (h(Host, Object.assign({ key: '
|
|
259
|
+
return (h(Host, Object.assign({ key: '95123f54ba1db5e59563d79db075315b43ed20f7', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
256
260
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
257
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
261
|
+
}, 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" })));
|
|
258
262
|
}
|
|
259
263
|
get el() { return this; }
|
|
260
264
|
static get watchers() { return {
|
package/components/ion-modal.js
CHANGED
|
@@ -1479,6 +1479,10 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
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 = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
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 = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
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 this; }
|
|
1626
1630
|
static get watchers() { return {
|
package/components/ion-picker.js
CHANGED
|
@@ -167,6 +167,10 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class Picker extends HTMLElement
|
|
|
167
167
|
* This can be useful in a button handler for determining which button was
|
|
168
168
|
* clicked to dismiss the picker.
|
|
169
169
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
170
|
+
*
|
|
171
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
172
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
173
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
170
174
|
*/
|
|
171
175
|
async dismiss(data, role) {
|
|
172
176
|
const unlock = await this.lockController.lock();
|
|
@@ -238,11 +242,11 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class Picker extends HTMLElement
|
|
|
238
242
|
render() {
|
|
239
243
|
const { htmlAttributes } = this;
|
|
240
244
|
const mode = getIonMode(this);
|
|
241
|
-
return (h(Host, Object.assign({ key: '
|
|
245
|
+
return (h(Host, Object.assign({ key: 'c266cc072afaba2da22f70d8b62dc4bc6756d188', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
242
246
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
243
247
|
}, class: Object.assign({ [mode]: true,
|
|
244
248
|
// Used internally for styling
|
|
245
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
249
|
+
[`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" })));
|
|
246
250
|
}
|
|
247
251
|
get el() { return this; }
|
|
248
252
|
static get watchers() { return {
|
package/components/ion-toast.js
CHANGED
|
@@ -657,6 +657,10 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
657
657
|
* This can be useful in a button handler for determining which button was
|
|
658
658
|
* clicked to dismiss the toast.
|
|
659
659
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
660
|
+
*
|
|
661
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
662
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
663
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
660
664
|
*/
|
|
661
665
|
async dismiss(data, role) {
|
|
662
666
|
var _a, _b;
|
|
@@ -824,9 +828,9 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
824
828
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
825
829
|
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);
|
|
826
830
|
}
|
|
827
|
-
return (h(Host, Object.assign({ key: '
|
|
831
|
+
return (h(Host, Object.assign({ key: 'c8d7e7d2baa01d3ed5d65a845bc61acf087c0b18', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
828
832
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
829
|
-
}, 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: '
|
|
833
|
+
}, 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')))));
|
|
830
834
|
}
|
|
831
835
|
get el() { return this; }
|
|
832
836
|
static get watchers() { return {
|
package/components/popover.js
CHANGED
|
@@ -1237,6 +1237,10 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1237
1237
|
* @param role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'.
|
|
1238
1238
|
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss
|
|
1239
1239
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
1240
|
+
*
|
|
1241
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1242
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
1243
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1240
1244
|
*/
|
|
1241
1245
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
1242
1246
|
const unlock = await this.lockController.lock();
|
|
@@ -1288,9 +1292,9 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1288
1292
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
1289
1293
|
const desktop = isPlatform('desktop');
|
|
1290
1294
|
const enableArrow = arrow && !parentPopover;
|
|
1291
|
-
return (h(Host, Object.assign({ key: '
|
|
1295
|
+
return (h(Host, Object.assign({ key: '104a5bf92a9bbd2efc71d499a8500e5d55f81711', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1292
1296
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1293
|
-
}, 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: '
|
|
1297
|
+
}, 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' })))));
|
|
1294
1298
|
}
|
|
1295
1299
|
get el() { return this; }
|
|
1296
1300
|
static get watchers() { return {
|
|
@@ -185,6 +185,10 @@ const ActionSheet = class {
|
|
|
185
185
|
* This can be useful in a button handler for determining which button was
|
|
186
186
|
* clicked to dismiss the action sheet.
|
|
187
187
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
188
|
+
*
|
|
189
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
190
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
191
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
188
192
|
*/
|
|
189
193
|
async dismiss(data, role) {
|
|
190
194
|
const unlock = await this.lockController.lock();
|
|
@@ -293,12 +297,12 @@ const ActionSheet = class {
|
|
|
293
297
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
294
298
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
295
299
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
296
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
300
|
+
return (index.h(index.Host, Object.assign({ key: 'cd141d12d7d86d3402fd220c4afb61cdbf064c04', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
297
301
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
298
|
-
}, class: Object.assign(Object.assign({ [mode]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), index.h("ion-backdrop", { key: '
|
|
302
|
+
}, class: Object.assign(Object.assign({ [mode]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), index.h("ion-backdrop", { key: 'b6a051e2cf5e101edbf59c8a40a04d8f7107fb3c', tappable: this.backdropDismiss }), index.h("div", { key: '5bfa2b37a417aaff3776f06d92a8544dfcbf714f', tabindex: "0" }), index.h("div", { key: '77d5a217803fd7be8f8dbedcd0ef5e59f0fd9800', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, index.h("div", { key: '3901d56215f05cdab074e2ec321391281a165097', class: "action-sheet-container" }, index.h("div", { key: '275f5c7981b2ee44fb632b3d137c7209cbfcf45c', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (index.h("div", { id: headerID, class: {
|
|
299
303
|
'action-sheet-title': true,
|
|
300
304
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
301
|
-
} }, header, this.subHeader && index.h("div", { class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (index.h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b) }), index.h("span", { class: "action-sheet-button-inner" }, b.icon && index.h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && index.h("ion-ripple-effect", null))))), cancelButton && (index.h("div", { class: "action-sheet-group action-sheet-group-cancel" }, index.h("button", Object.assign({}, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), index.h("span", { class: "action-sheet-button-inner" }, cancelButton.icon && (index.h("ion-icon", { icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && index.h("ion-ripple-effect", null)))))), index.h("div", { key: '
|
|
305
|
+
} }, header, this.subHeader && index.h("div", { class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (index.h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b) }), index.h("span", { class: "action-sheet-button-inner" }, b.icon && index.h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && index.h("ion-ripple-effect", null))))), cancelButton && (index.h("div", { class: "action-sheet-group action-sheet-group-cancel" }, index.h("button", Object.assign({}, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), index.h("span", { class: "action-sheet-button-inner" }, cancelButton.icon && (index.h("ion-icon", { icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && index.h("ion-ripple-effect", null)))))), index.h("div", { key: '4285893438675be9b40838a93c2ff382a1074cd3', tabindex: "0" })));
|
|
302
306
|
}
|
|
303
307
|
get el() { return index.getElement(this); }
|
|
304
308
|
static get watchers() { return {
|
|
@@ -324,6 +324,10 @@ const Alert = class {
|
|
|
324
324
|
* This can be useful in a button handler for determining which button was
|
|
325
325
|
* clicked to dismiss the alert.
|
|
326
326
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
327
|
+
*
|
|
328
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
329
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
330
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
327
331
|
*/
|
|
328
332
|
async dismiss(data, role) {
|
|
329
333
|
const unlock = await this.lockController.lock();
|
|
@@ -491,9 +495,9 @@ const Alert = class {
|
|
|
491
495
|
* If neither is defined, don't set aria-labelledby.
|
|
492
496
|
*/
|
|
493
497
|
const ariaLabelledBy = header ? hdrId : subHeader ? subHdrId : null;
|
|
494
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
498
|
+
return (index.h(index.Host, Object.assign({ key: '4b7f7880dc5f39aa9b61981af0a821ac0350af7f', role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
495
499
|
zIndex: `${20000 + overlayIndex}`,
|
|
496
|
-
}, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), index.h("ion-backdrop", { key: '
|
|
500
|
+
}, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), index.h("ion-backdrop", { key: '961a2684013ac61d59882914fd8d759ddb542fe7', tappable: this.backdropDismiss }), index.h("div", { key: '2ec08c3719b3cd8a4cae09d2c6ac778ffad5f940', tabindex: "0" }), index.h("div", { key: 'ee543683d20693c9a9497aca4d41f032aa580c9c', class: "alert-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, index.h("div", { key: '55015102b67d080249a8859fc8788f3a82d5ead9', class: "alert-head" }, header && (index.h("h2", { id: hdrId, class: "alert-title" }, header)), subHeader && (index.h("h2", { id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), index.h("div", { key: 'df7bcfb0cb41965f169de05edd631a050d5ce648', tabindex: "0" })));
|
|
497
501
|
}
|
|
498
502
|
get el() { return index.getElement(this); }
|
|
499
503
|
static get watchers() { return {
|
|
@@ -1943,6 +1943,10 @@ const Picker = class {
|
|
|
1943
1943
|
* This can be useful in a button handler for determining which button was
|
|
1944
1944
|
* clicked to dismiss the picker.
|
|
1945
1945
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
1946
|
+
*
|
|
1947
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1948
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
1949
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1946
1950
|
*/
|
|
1947
1951
|
async dismiss(data, role) {
|
|
1948
1952
|
const unlock = await this.lockController.lock();
|
|
@@ -2014,11 +2018,11 @@ const Picker = class {
|
|
|
2014
2018
|
render() {
|
|
2015
2019
|
const { htmlAttributes } = this;
|
|
2016
2020
|
const mode = ionicGlobal.getIonMode(this);
|
|
2017
|
-
return (index$1.h(index$1.Host, Object.assign({ key: '
|
|
2021
|
+
return (index$1.h(index$1.Host, Object.assign({ key: 'c266cc072afaba2da22f70d8b62dc4bc6756d188', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2018
2022
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2019
2023
|
}, class: Object.assign({ [mode]: true,
|
|
2020
2024
|
// Used internally for styling
|
|
2021
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index$1.h("ion-backdrop", { key: '
|
|
2025
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index$1.h("ion-backdrop", { key: '35ee3e5028028835580e28ac2c8db65a924d5d6a', visible: this.showBackdrop, tappable: this.backdropDismiss }), index$1.h("div", { key: '8b454e6edbcfc45c57d3d8baf7c14b7905921a6e', tabindex: "0" }), index$1.h("div", { key: 'e0fee78ec6d097bf0963190f748e5daad602e0f7', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, index$1.h("div", { key: 'ce66bca18fc3e982ad7d6660f27cb1a03fb8247b', class: "picker-toolbar" }, this.buttons.map((b) => (index$1.h("div", { class: buttonWrapperClass(b) }, index$1.h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), index$1.h("div", { key: 'a58b9523fe16f109dd6de0610717c5077fed964b', class: "picker-columns" }, index$1.h("div", { key: 'acd54c0314cff51e8513a08dd9755c4b847c0617', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => index$1.h("ion-picker-column", { col: c })), index$1.h("div", { key: '604730bd87582d048d850c6e0a0f29ba33258918', class: "picker-below-highlight" }))), index$1.h("div", { key: '93baf5e6e57aec5f084d7d5b24af14e7d8126b5a', tabindex: "0" })));
|
|
2022
2026
|
}
|
|
2023
2027
|
get el() { return index$1.getElement(this); }
|
|
2024
2028
|
static get watchers() { return {
|
|
@@ -216,6 +216,10 @@ const Loading = class {
|
|
|
216
216
|
* This can be useful in a button handler for determining which button was
|
|
217
217
|
* clicked to dismiss the loading.
|
|
218
218
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
219
|
+
*
|
|
220
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
221
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
222
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
219
223
|
*/
|
|
220
224
|
async dismiss(data, role) {
|
|
221
225
|
const unlock = await this.lockController.lock();
|
|
@@ -257,9 +261,9 @@ const Loading = class {
|
|
|
257
261
|
* Otherwise, don't set aria-labelledby.
|
|
258
262
|
*/
|
|
259
263
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
260
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
264
|
+
return (index.h(index.Host, Object.assign({ key: '95123f54ba1db5e59563d79db075315b43ed20f7', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
261
265
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
262
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), index.h("ion-backdrop", { key: '
|
|
266
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), index.h("ion-backdrop", { key: 'e113bf123eaad38f2dafce8ea5d2ebef409d0c0f', visible: this.showBackdrop, tappable: this.backdropDismiss }), index.h("div", { key: '1268c9480854383c7883a79d597350540ade93c2', tabindex: "0" }), index.h("div", { key: 'e86fc71504ebd578117dea2232d9740a087d1249', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (index.h("div", { class: "loading-spinner" }, index.h("ion-spinner", { name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), index.h("div", { key: '3b91e2492e06aa65ebe77ed2b6ffb9d2f84bdd9c', tabindex: "0" })));
|
|
263
267
|
}
|
|
264
268
|
get el() { return index.getElement(this); }
|
|
265
269
|
static get watchers() { return {
|
|
@@ -1483,6 +1483,10 @@ const Modal = class {
|
|
|
1483
1483
|
*
|
|
1484
1484
|
* @param data Any data to emit in the dismiss events.
|
|
1485
1485
|
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
1486
|
+
*
|
|
1487
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1488
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
1489
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1486
1490
|
*/
|
|
1487
1491
|
async dismiss(data, role) {
|
|
1488
1492
|
var _a;
|
|
@@ -1613,9 +1617,9 @@ const Modal = class {
|
|
|
1613
1617
|
const mode = ionicGlobal.getIonMode(this);
|
|
1614
1618
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
1615
1619
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
1616
|
-
return (index$3.h(index$3.Host, Object.assign({ key: '
|
|
1620
|
+
return (index$3.h(index$3.Host, Object.assign({ key: '0c2c4369ab2df4ef4660addea5e927c6a0232864', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1617
1621
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1618
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), index$3.h("ion-backdrop", { key: '
|
|
1622
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), index$3.h("ion-backdrop", { key: 'd044383a776c2ee1703f996caedaedca47f2948f', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && index$3.h("div", { class: "modal-shadow" }), index$3.h("div", Object.assign({ key: '8d23b6a3cc9069e4d46fa0645cde9db3e6f89507',
|
|
1619
1623
|
/*
|
|
1620
1624
|
role and aria-modal must be used on the
|
|
1621
1625
|
same element. They must also be set inside the
|
|
@@ -1624,7 +1628,7 @@ const Modal = class {
|
|
|
1624
1628
|
*/
|
|
1625
1629
|
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (index$3.h("button", { class: "modal-handle",
|
|
1626
1630
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
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" })), index$3.h("slot", { key: '
|
|
1631
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), index$3.h("slot", { key: '3fbb689e4bf5575fbb26ad1000f6ac5993f3bf8f' }))));
|
|
1628
1632
|
}
|
|
1629
1633
|
get el() { return index$3.getElement(this); }
|
|
1630
1634
|
static get watchers() { return {
|
|
@@ -1240,6 +1240,10 @@ const Popover = class {
|
|
|
1240
1240
|
* @param role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'.
|
|
1241
1241
|
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss
|
|
1242
1242
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
1243
|
+
*
|
|
1244
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
1245
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
1246
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
1243
1247
|
*/
|
|
1244
1248
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
1245
1249
|
const unlock = await this.lockController.lock();
|
|
@@ -1291,9 +1295,9 @@ const Popover = class {
|
|
|
1291
1295
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
1292
1296
|
const desktop = ionicGlobal.isPlatform('desktop');
|
|
1293
1297
|
const enableArrow = arrow && !parentPopover;
|
|
1294
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
1298
|
+
return (index.h(index.Host, Object.assign({ key: '104a5bf92a9bbd2efc71d499a8500e5d55f81711', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1295
1299
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1296
|
-
}, class: Object.assign(Object.assign({}, theme.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 && index.h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), index.h("div", { key: '
|
|
1300
|
+
}, class: Object.assign(Object.assign({}, theme.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 && index.h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), index.h("div", { key: 'ef0baa04c22444d4bc705220235a892308d67586', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && index.h("div", { class: "popover-arrow", part: "arrow" }), index.h("div", { key: '5cc5f5c353de614e484e9cfeacecfca9fbfde0e0', class: "popover-content", part: "content" }, index.h("slot", { key: '2d85c591cdc85efa98afbf40f676525f1402efcf' })))));
|
|
1297
1301
|
}
|
|
1298
1302
|
get el() { return index.getElement(this); }
|
|
1299
1303
|
static get watchers() { return {
|
|
@@ -658,6 +658,10 @@ const Toast = class {
|
|
|
658
658
|
* This can be useful in a button handler for determining which button was
|
|
659
659
|
* clicked to dismiss the toast.
|
|
660
660
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
661
|
+
*
|
|
662
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
663
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
664
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
661
665
|
*/
|
|
662
666
|
async dismiss(data, role) {
|
|
663
667
|
var _a, _b;
|
|
@@ -825,9 +829,9 @@ const Toast = class {
|
|
|
825
829
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
826
830
|
index$1.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);
|
|
827
831
|
}
|
|
828
|
-
return (index$3.h(index$3.Host, Object.assign({ key: '
|
|
832
|
+
return (index$3.h(index$3.Host, Object.assign({ key: 'c8d7e7d2baa01d3ed5d65a845bc61acf087c0b18', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
829
833
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
830
|
-
}, class: theme.createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), index$3.h("div", { key: '
|
|
834
|
+
}, class: theme.createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), index$3.h("div", { key: '27c0feeb89c4efb47c42623a4b036ed84338ed10', class: wrapperClass }, index$3.h("div", { key: '41d5a3069f92e4a6acef2793fa4e236cdbdaae88', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (index$3.h("ion-icon", { class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), index$3.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')))));
|
|
831
835
|
}
|
|
832
836
|
get el() { return index$3.getElement(this); }
|
|
833
837
|
static get watchers() { return {
|
|
@@ -79,6 +79,10 @@ export class ActionSheet {
|
|
|
79
79
|
* This can be useful in a button handler for determining which button was
|
|
80
80
|
* clicked to dismiss the action sheet.
|
|
81
81
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
82
|
+
*
|
|
83
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
84
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
85
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
82
86
|
*/
|
|
83
87
|
async dismiss(data, role) {
|
|
84
88
|
const unlock = await this.lockController.lock();
|
|
@@ -187,12 +191,12 @@ export class ActionSheet {
|
|
|
187
191
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
188
192
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
189
193
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
190
|
-
return (h(Host, Object.assign({ key: '
|
|
194
|
+
return (h(Host, Object.assign({ key: 'cd141d12d7d86d3402fd220c4afb61cdbf064c04', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
191
195
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
192
|
-
}, 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: '
|
|
196
|
+
}, 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: {
|
|
193
197
|
'action-sheet-title': true,
|
|
194
198
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
195
|
-
} }, 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: '
|
|
199
|
+
} }, 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" })));
|
|
196
200
|
}
|
|
197
201
|
static get is() { return "ion-action-sheet"; }
|
|
198
202
|
static get encapsulation() { return "scoped"; }
|
|
@@ -690,7 +694,7 @@ export class ActionSheet {
|
|
|
690
694
|
}, {
|
|
691
695
|
"name": "role",
|
|
692
696
|
"type": "string | undefined",
|
|
693
|
-
"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\"
|
|
697
|
+
"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."
|
|
694
698
|
}],
|
|
695
699
|
"references": {
|
|
696
700
|
"Promise": {
|
|
@@ -707,7 +711,7 @@ export class ActionSheet {
|
|
|
707
711
|
"text": "data Any data to emit in the dismiss events."
|
|
708
712
|
}, {
|
|
709
713
|
"name": "param",
|
|
710
|
-
"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\"
|
|
714
|
+
"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."
|
|
711
715
|
}]
|
|
712
716
|
}
|
|
713
717
|
},
|
|
@@ -220,6 +220,10 @@ export class Alert {
|
|
|
220
220
|
* This can be useful in a button handler for determining which button was
|
|
221
221
|
* clicked to dismiss the alert.
|
|
222
222
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
223
|
+
*
|
|
224
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
225
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
226
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
223
227
|
*/
|
|
224
228
|
async dismiss(data, role) {
|
|
225
229
|
const unlock = await this.lockController.lock();
|
|
@@ -387,9 +391,9 @@ export class Alert {
|
|
|
387
391
|
* If neither is defined, don't set aria-labelledby.
|
|
388
392
|
*/
|
|
389
393
|
const ariaLabelledBy = header ? hdrId : subHeader ? subHdrId : null;
|
|
390
|
-
return (h(Host, Object.assign({ key: '
|
|
394
|
+
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: {
|
|
391
395
|
zIndex: `${20000 + overlayIndex}`,
|
|
392
|
-
}, 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: '
|
|
396
|
+
}, 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" })));
|
|
393
397
|
}
|
|
394
398
|
static get is() { return "ion-alert"; }
|
|
395
399
|
static get encapsulation() { return "scoped"; }
|
|
@@ -932,7 +936,7 @@ export class Alert {
|
|
|
932
936
|
}, {
|
|
933
937
|
"name": "role",
|
|
934
938
|
"type": "string | undefined",
|
|
935
|
-
"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\"
|
|
939
|
+
"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."
|
|
936
940
|
}],
|
|
937
941
|
"references": {
|
|
938
942
|
"Promise": {
|
|
@@ -949,7 +953,7 @@ export class Alert {
|
|
|
949
953
|
"text": "data Any data to emit in the dismiss events."
|
|
950
954
|
}, {
|
|
951
955
|
"name": "param",
|
|
952
|
-
"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\"
|
|
956
|
+
"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."
|
|
953
957
|
}]
|
|
954
958
|
}
|
|
955
959
|
},
|
|
@@ -113,6 +113,10 @@ export class Loading {
|
|
|
113
113
|
* This can be useful in a button handler for determining which button was
|
|
114
114
|
* clicked to dismiss the loading.
|
|
115
115
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
116
|
+
*
|
|
117
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
118
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
119
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
116
120
|
*/
|
|
117
121
|
async dismiss(data, role) {
|
|
118
122
|
const unlock = await this.lockController.lock();
|
|
@@ -154,9 +158,9 @@ export class Loading {
|
|
|
154
158
|
* Otherwise, don't set aria-labelledby.
|
|
155
159
|
*/
|
|
156
160
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
157
|
-
return (h(Host, Object.assign({ key: '
|
|
161
|
+
return (h(Host, Object.assign({ key: '95123f54ba1db5e59563d79db075315b43ed20f7', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
158
162
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
159
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
163
|
+
}, 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" })));
|
|
160
164
|
}
|
|
161
165
|
static get is() { return "ion-loading"; }
|
|
162
166
|
static get encapsulation() { return "scoped"; }
|
|
@@ -680,7 +684,7 @@ export class Loading {
|
|
|
680
684
|
}, {
|
|
681
685
|
"name": "role",
|
|
682
686
|
"type": "string | undefined",
|
|
683
|
-
"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\"
|
|
687
|
+
"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."
|
|
684
688
|
}],
|
|
685
689
|
"references": {
|
|
686
690
|
"Promise": {
|
|
@@ -697,7 +701,7 @@ export class Loading {
|
|
|
697
701
|
"text": "data Any data to emit in the dismiss events."
|
|
698
702
|
}, {
|
|
699
703
|
"name": "param",
|
|
700
|
-
"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\"
|
|
704
|
+
"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."
|
|
701
705
|
}]
|
|
702
706
|
}
|
|
703
707
|
},
|