@ionic/core 8.2.6-nightly.20240724 → 8.2.6
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 -4
- package/components/ion-loading.js +6 -3
- package/components/ion-modal.js +8 -5
- package/components/ion-picker-legacy.js +6 -3
- package/components/ion-toast.js +6 -3
- package/components/popover.js +4 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +7 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +6 -3
- package/dist/cjs/ion-loading.cjs.entry.js +6 -3
- package/dist/cjs/ion-modal.cjs.entry.js +8 -5
- package/dist/cjs/ion-popover.cjs.entry.js +4 -3
- package/dist/cjs/ion-toast.cjs.entry.js +6 -3
- package/dist/collection/components/action-sheet/action-sheet.js +7 -4
- package/dist/collection/components/loading/loading.js +6 -3
- package/dist/collection/components/modal/modal.js +8 -5
- package/dist/collection/components/picker-legacy/picker.js +6 -3
- package/dist/collection/components/popover/popover.js +4 -3
- package/dist/collection/components/toast/toast.js +6 -3
- package/dist/docs.json +1 -1
- package/dist/esm/ion-action-sheet.entry.js +7 -4
- package/dist/esm/ion-datetime_3.entry.js +6 -3
- package/dist/esm/ion-loading.entry.js +6 -3
- package/dist/esm/ion-modal.entry.js +8 -5
- package/dist/esm/ion-popover.entry.js +4 -3
- package/dist/esm/ion-toast.entry.js +6 -3
- package/dist/esm-es5/ion-action-sheet.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-9aae0bf3.entry.js → p-096664b8.entry.js} +1 -1
- package/dist/ionic/{p-ed8726ad.system.entry.js → p-299a2ccb.system.entry.js} +1 -1
- package/dist/ionic/{p-88c0ff08.system.entry.js → p-2b017e39.system.entry.js} +1 -1
- package/dist/ionic/{p-4c06d890.entry.js → p-6c8d40f8.entry.js} +1 -1
- package/dist/ionic/{p-057c2f6f.entry.js → p-74890c76.entry.js} +1 -1
- package/dist/ionic/p-767a0d69.system.js +1 -1
- package/dist/ionic/p-94f9061a.entry.js +4 -0
- package/dist/ionic/{p-4a0db73d.system.entry.js → p-99740380.system.entry.js} +1 -1
- package/dist/ionic/{p-3b11ab95.system.entry.js → p-be9fe750.system.entry.js} +1 -1
- package/dist/ionic/{p-03dfca85.system.entry.js → p-caa1ea46.system.entry.js} +1 -1
- package/dist/ionic/{p-6db3f661.system.entry.js → p-d967f9ce.system.entry.js} +1 -1
- package/dist/ionic/{p-130ce79e.entry.js → p-dc321750.entry.js} +1 -1
- package/dist/ionic/{p-090c318d.entry.js → p-eb988a08.entry.js} +1 -1
- package/hydrate/index.js +37 -21
- package/hydrate/index.mjs +37 -21
- package/package.json +1 -1
- package/dist/ionic/p-c9345989.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -6475,7 +6475,10 @@ class ActionSheet {
|
|
|
6475
6475
|
this.triggerController.removeClickListener();
|
|
6476
6476
|
}
|
|
6477
6477
|
componentWillLoad() {
|
|
6478
|
-
|
|
6478
|
+
var _a;
|
|
6479
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
6480
|
+
setOverlayId(this.el);
|
|
6481
|
+
}
|
|
6479
6482
|
}
|
|
6480
6483
|
componentDidLoad() {
|
|
6481
6484
|
/**
|
|
@@ -6520,12 +6523,12 @@ class ActionSheet {
|
|
|
6520
6523
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
6521
6524
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
6522
6525
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
6523
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
6526
|
+
return (hAsync(Host, Object.assign({ key: '7bbd202ca9e19727e7514abbe073687d982f80c3', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
6524
6527
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
6525
|
-
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), hAsync("ion-backdrop", { key: '
|
|
6528
|
+
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), hAsync("ion-backdrop", { key: '23344a9221a2e6720d7b9de5249dc37256cafa7b', tappable: this.backdropDismiss }), hAsync("div", { key: 'd46361bb5cdc32a7922dcf76b566f358a6174bfa', tabindex: "0" }), hAsync("div", { key: '136c3f2e77c8a2eac8e9ae4bb13d735e1d62598d', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, hAsync("div", { key: '6168ea8b2be42020b2edeb8ff3a0f3d1254be37a', class: "action-sheet-container" }, hAsync("div", { key: '29b9e6619dc54574733a704d6bf885839151bd84', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (hAsync("div", { key: '536ce764bfddb3816ea3512d90f4acef2ccb8589', id: headerID, class: {
|
|
6526
6529
|
'action-sheet-title': true,
|
|
6527
6530
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
6528
|
-
} }, header, this.subHeader && hAsync("div", { key: '
|
|
6531
|
+
} }, header, this.subHeader && hAsync("div", { key: '6d888219145824fd36cdfe0d3c8388bbf2769777', class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (hAsync("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass$3(b), onClick: () => this.buttonClick(b), disabled: b.disabled }), hAsync("span", { class: "action-sheet-button-inner" }, b.icon && hAsync("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && hAsync("ion-ripple-effect", null))))), cancelButton && (hAsync("div", { key: '46f98f0ed5a9bdb3e35feb9ae71c4489c17b7d77', class: "action-sheet-group action-sheet-group-cancel" }, hAsync("button", Object.assign({ key: 'e3c457bced8ad5f692e48de26e65f731fd631b4f' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass$3(cancelButton), onClick: () => this.buttonClick(cancelButton) }), hAsync("span", { key: '4cba6dc559f734ecc852e024959210cd0dd25354', class: "action-sheet-button-inner" }, cancelButton.icon && (hAsync("ion-icon", { key: '9df64989aad1b4d1e75edf4d37ab208965cfe37f', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && hAsync("ion-ripple-effect", { key: '558089275a29177cefdb2e38eefc9b5c8b62872b' })))))), hAsync("div", { key: 'fa4df6e043b00a6e4126dbc71cb344cfc2b2e7bc', tabindex: "0" })));
|
|
6529
6532
|
}
|
|
6530
6533
|
get el() { return getElement(this); }
|
|
6531
6534
|
static get watchers() { return {
|
|
@@ -16763,11 +16766,14 @@ class Loading {
|
|
|
16763
16766
|
this.triggerChanged();
|
|
16764
16767
|
}
|
|
16765
16768
|
componentWillLoad() {
|
|
16769
|
+
var _a;
|
|
16766
16770
|
if (this.spinner === undefined) {
|
|
16767
16771
|
const mode = getIonMode$1(this);
|
|
16768
16772
|
this.spinner = config.get('loadingSpinner', config.get('spinner', mode === 'ios' ? 'lines' : 'crescent'));
|
|
16769
16773
|
}
|
|
16770
|
-
|
|
16774
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
16775
|
+
setOverlayId(this.el);
|
|
16776
|
+
}
|
|
16771
16777
|
}
|
|
16772
16778
|
componentDidLoad() {
|
|
16773
16779
|
/**
|
|
@@ -16856,9 +16862,9 @@ class Loading {
|
|
|
16856
16862
|
* Otherwise, don't set aria-labelledby.
|
|
16857
16863
|
*/
|
|
16858
16864
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
16859
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
16865
|
+
return (hAsync(Host, Object.assign({ key: 'fb3d2cd7cd0539ed6540d8be50e243c7916b3ca2', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
16860
16866
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
16861
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
16867
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: 'c8bd30782f3040b1b80e88aa924861e439d40754', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '4ebfbb67c92e8eb56c27dd7c199b35bf6be1cf63', tabindex: "0" }), hAsync("div", { key: '9492723cd87f1ef75534e449d4bc2b2deb0cb3cc', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: 'd9eb42454e48c82704d974a68b80ceb4de990417', class: "loading-spinner" }, hAsync("ion-spinner", { key: 'cdb046bad89872f4208ae466979315652766bf3a', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: '412d1bb537dafa6e6863d07ddc15f5969fe0617d', tabindex: "0" })));
|
|
16862
16868
|
}
|
|
16863
16869
|
get el() { return getElement(this); }
|
|
16864
16870
|
static get watchers() { return {
|
|
@@ -19580,6 +19586,7 @@ class Modal {
|
|
|
19580
19586
|
this.triggerController.removeClickListener();
|
|
19581
19587
|
}
|
|
19582
19588
|
componentWillLoad() {
|
|
19589
|
+
var _a;
|
|
19583
19590
|
const { breakpoints, initialBreakpoint, el, htmlAttributes } = this;
|
|
19584
19591
|
const isSheetModal = (this.isSheetModal = breakpoints !== undefined && initialBreakpoint !== undefined);
|
|
19585
19592
|
const attributesToInherit = ['aria-label', 'role'];
|
|
@@ -19621,7 +19628,9 @@ class Modal {
|
|
|
19621
19628
|
if (breakpoints !== undefined && initialBreakpoint !== undefined && !breakpoints.includes(initialBreakpoint)) {
|
|
19622
19629
|
printIonWarning('Your breakpoints array must include the initialBreakpoint value.');
|
|
19623
19630
|
}
|
|
19624
|
-
|
|
19631
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
19632
|
+
setOverlayId(this.el);
|
|
19633
|
+
}
|
|
19625
19634
|
}
|
|
19626
19635
|
componentDidLoad() {
|
|
19627
19636
|
/**
|
|
@@ -20011,18 +20020,18 @@ class Modal {
|
|
|
20011
20020
|
const mode = getIonMode$1(this);
|
|
20012
20021
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
20013
20022
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
20014
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
20023
|
+
return (hAsync(Host, Object.assign({ key: '013ba4864ca4d2c1052c512f6a4b0732b8decff7', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
20015
20024
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
20016
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: '
|
|
20025
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: '498b1c0a03836d6799dcf3b8e9315805c70f6480', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { key: 'ce22e4caf1096e87248926fe2477f0d5a4c8a5cf', class: "modal-shadow" }), hAsync("div", Object.assign({ key: '540e47b15d8290166c39b022c725182114a75682',
|
|
20017
20026
|
/*
|
|
20018
20027
|
role and aria-modal must be used on the
|
|
20019
20028
|
same element. They must also be set inside the
|
|
20020
20029
|
shadow DOM otherwise ion-button will not be highlighted
|
|
20021
20030
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
20022
20031
|
*/
|
|
20023
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
20032
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: 'f3b352ec9a63a7ec801462aacfd8295b4302d115', class: "modal-handle",
|
|
20024
20033
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
20025
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '
|
|
20034
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '31a3f58f4c733ffdf736523c154200874a96b1d0' }))));
|
|
20026
20035
|
}
|
|
20027
20036
|
get el() { return getElement(this); }
|
|
20028
20037
|
static get watchers() { return {
|
|
@@ -21729,7 +21738,10 @@ class Picker {
|
|
|
21729
21738
|
this.triggerController.removeClickListener();
|
|
21730
21739
|
}
|
|
21731
21740
|
componentWillLoad() {
|
|
21732
|
-
|
|
21741
|
+
var _a;
|
|
21742
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
21743
|
+
setOverlayId(this.el);
|
|
21744
|
+
}
|
|
21733
21745
|
}
|
|
21734
21746
|
componentDidLoad() {
|
|
21735
21747
|
printIonWarning('ion-picker-legacy and ion-picker-legacy-column have been deprecated in favor of new versions of the ion-picker and ion-picker-column components. These new components display inline with your page content allowing for more presentation flexibility than before.', this.el);
|
|
@@ -21842,11 +21854,11 @@ class Picker {
|
|
|
21842
21854
|
render() {
|
|
21843
21855
|
const { htmlAttributes } = this;
|
|
21844
21856
|
const mode = getIonMode$1(this);
|
|
21845
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
21857
|
+
return (hAsync(Host, Object.assign({ key: '3b163ca87354a3a4f302ff016d5affd0dc97bccc', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
21846
21858
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
21847
21859
|
}, class: Object.assign({ [mode]: true,
|
|
21848
21860
|
// Used internally for styling
|
|
21849
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '
|
|
21861
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: 'da4224447bdbcfbadd1bd63ebe7a7bfdb8aa3129', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '211475c859b7acf4d64556905c45993201d92d43', tabindex: "0" }), hAsync("div", { key: 'c3b3674038155809caea84ae6348ff0d66897a64', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, hAsync("div", { key: 'a21757da70dc7864945a5751d9da3ca4bf87897b', class: "picker-toolbar" }, this.buttons.map((b) => (hAsync("div", { class: buttonWrapperClass(b) }, hAsync("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass$1(b) }, b.text))))), hAsync("div", { key: '0220da1854d09ef22d2d9a32eaa3c3b222be5a0a', class: "picker-columns" }, hAsync("div", { key: '55757c165ba9e38e56b4dee76a9b13d3ff8b21e6', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => hAsync("ion-picker-legacy-column", { col: c })), hAsync("div", { key: '160092a46a48287bf75e5dfe3502f1755a2d0c70', class: "picker-below-highlight" }))), hAsync("div", { key: 'e212db6cca7d75fc0eda0baf4312dd51b9b7a4ef', tabindex: "0" })));
|
|
21850
21862
|
}
|
|
21851
21863
|
get el() { return getElement(this); }
|
|
21852
21864
|
static get watchers() { return {
|
|
@@ -24039,8 +24051,9 @@ class Popover {
|
|
|
24039
24051
|
}
|
|
24040
24052
|
}
|
|
24041
24053
|
componentWillLoad() {
|
|
24054
|
+
var _a, _b;
|
|
24042
24055
|
const { el } = this;
|
|
24043
|
-
const popoverId = setOverlayId(el);
|
|
24056
|
+
const popoverId = (_b = (_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : setOverlayId(el);
|
|
24044
24057
|
this.parentPopover = el.closest(`ion-popover:not(#${popoverId})`);
|
|
24045
24058
|
if (this.alignment === undefined) {
|
|
24046
24059
|
this.alignment = getIonMode$1(this) === 'ios' ? 'center' : 'start';
|
|
@@ -24243,9 +24256,9 @@ class Popover {
|
|
|
24243
24256
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
24244
24257
|
const desktop = isPlatform('desktop');
|
|
24245
24258
|
const enableArrow = arrow && !parentPopover;
|
|
24246
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
24259
|
+
return (hAsync(Host, Object.assign({ key: '3a7c4c39384bab1447c4bd6b9b06d7837a09353b', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
24247
24260
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
24248
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '
|
|
24261
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '38a1c4ad29238d1e81cab407f099121fa4947cce', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: 'f825494c5e3be89d7fcf0229e29b405bccb13edb', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '3acae5a0106389c776c8ffe5bf10f3ff006e0346', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: '2aa73e9f06b1d2ac4c0d36c23186b9164f395079', class: "popover-content", part: "content" }, hAsync("slot", { key: '62f5713414aae47dde6a8aef1f9b69af287534ae' })))));
|
|
24249
24262
|
}
|
|
24250
24263
|
get el() { return getElement(this); }
|
|
24251
24264
|
static get watchers() { return {
|
|
@@ -31632,7 +31645,10 @@ class Toast {
|
|
|
31632
31645
|
this.triggerController.removeClickListener();
|
|
31633
31646
|
}
|
|
31634
31647
|
componentWillLoad() {
|
|
31635
|
-
|
|
31648
|
+
var _a;
|
|
31649
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
31650
|
+
setOverlayId(this.el);
|
|
31651
|
+
}
|
|
31636
31652
|
}
|
|
31637
31653
|
componentDidLoad() {
|
|
31638
31654
|
/**
|
|
@@ -31870,9 +31886,9 @@ class Toast {
|
|
|
31870
31886
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
31871
31887
|
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);
|
|
31872
31888
|
}
|
|
31873
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
31889
|
+
return (hAsync(Host, Object.assign({ key: '68c336f80af04ba484ca9899bae8f40c0d9b7691', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
31874
31890
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
31875
|
-
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '
|
|
31891
|
+
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '3483b188f14b700964a123997a60a43a2023a1b6', class: wrapperClass }, hAsync("div", { key: '1b88544a9b87253b364cbec6285625388979b560', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: 'bd1c42e3b14af66b880dfe283e3ae910075c0f70', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: 'a5ef6cdabc1f7c70d11a5f2a0abf8737fe7550e8', 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')))));
|
|
31876
31892
|
}
|
|
31877
31893
|
get el() { return getElement(this); }
|
|
31878
31894
|
static get watchers() { return {
|
package/hydrate/index.mjs
CHANGED
|
@@ -6471,7 +6471,10 @@ class ActionSheet {
|
|
|
6471
6471
|
this.triggerController.removeClickListener();
|
|
6472
6472
|
}
|
|
6473
6473
|
componentWillLoad() {
|
|
6474
|
-
|
|
6474
|
+
var _a;
|
|
6475
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
6476
|
+
setOverlayId(this.el);
|
|
6477
|
+
}
|
|
6475
6478
|
}
|
|
6476
6479
|
componentDidLoad() {
|
|
6477
6480
|
/**
|
|
@@ -6516,12 +6519,12 @@ class ActionSheet {
|
|
|
6516
6519
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
6517
6520
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
6518
6521
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
6519
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
6522
|
+
return (hAsync(Host, Object.assign({ key: '7bbd202ca9e19727e7514abbe073687d982f80c3', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
6520
6523
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
6521
|
-
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), hAsync("ion-backdrop", { key: '
|
|
6524
|
+
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), hAsync("ion-backdrop", { key: '23344a9221a2e6720d7b9de5249dc37256cafa7b', tappable: this.backdropDismiss }), hAsync("div", { key: 'd46361bb5cdc32a7922dcf76b566f358a6174bfa', tabindex: "0" }), hAsync("div", { key: '136c3f2e77c8a2eac8e9ae4bb13d735e1d62598d', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, hAsync("div", { key: '6168ea8b2be42020b2edeb8ff3a0f3d1254be37a', class: "action-sheet-container" }, hAsync("div", { key: '29b9e6619dc54574733a704d6bf885839151bd84', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (hAsync("div", { key: '536ce764bfddb3816ea3512d90f4acef2ccb8589', id: headerID, class: {
|
|
6522
6525
|
'action-sheet-title': true,
|
|
6523
6526
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
6524
|
-
} }, header, this.subHeader && hAsync("div", { key: '
|
|
6527
|
+
} }, header, this.subHeader && hAsync("div", { key: '6d888219145824fd36cdfe0d3c8388bbf2769777', class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (hAsync("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass$3(b), onClick: () => this.buttonClick(b), disabled: b.disabled }), hAsync("span", { class: "action-sheet-button-inner" }, b.icon && hAsync("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && hAsync("ion-ripple-effect", null))))), cancelButton && (hAsync("div", { key: '46f98f0ed5a9bdb3e35feb9ae71c4489c17b7d77', class: "action-sheet-group action-sheet-group-cancel" }, hAsync("button", Object.assign({ key: 'e3c457bced8ad5f692e48de26e65f731fd631b4f' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass$3(cancelButton), onClick: () => this.buttonClick(cancelButton) }), hAsync("span", { key: '4cba6dc559f734ecc852e024959210cd0dd25354', class: "action-sheet-button-inner" }, cancelButton.icon && (hAsync("ion-icon", { key: '9df64989aad1b4d1e75edf4d37ab208965cfe37f', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && hAsync("ion-ripple-effect", { key: '558089275a29177cefdb2e38eefc9b5c8b62872b' })))))), hAsync("div", { key: 'fa4df6e043b00a6e4126dbc71cb344cfc2b2e7bc', tabindex: "0" })));
|
|
6525
6528
|
}
|
|
6526
6529
|
get el() { return getElement(this); }
|
|
6527
6530
|
static get watchers() { return {
|
|
@@ -16759,11 +16762,14 @@ class Loading {
|
|
|
16759
16762
|
this.triggerChanged();
|
|
16760
16763
|
}
|
|
16761
16764
|
componentWillLoad() {
|
|
16765
|
+
var _a;
|
|
16762
16766
|
if (this.spinner === undefined) {
|
|
16763
16767
|
const mode = getIonMode$1(this);
|
|
16764
16768
|
this.spinner = config.get('loadingSpinner', config.get('spinner', mode === 'ios' ? 'lines' : 'crescent'));
|
|
16765
16769
|
}
|
|
16766
|
-
|
|
16770
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
16771
|
+
setOverlayId(this.el);
|
|
16772
|
+
}
|
|
16767
16773
|
}
|
|
16768
16774
|
componentDidLoad() {
|
|
16769
16775
|
/**
|
|
@@ -16852,9 +16858,9 @@ class Loading {
|
|
|
16852
16858
|
* Otherwise, don't set aria-labelledby.
|
|
16853
16859
|
*/
|
|
16854
16860
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
16855
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
16861
|
+
return (hAsync(Host, Object.assign({ key: 'fb3d2cd7cd0539ed6540d8be50e243c7916b3ca2', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
16856
16862
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
16857
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
16863
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: 'c8bd30782f3040b1b80e88aa924861e439d40754', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '4ebfbb67c92e8eb56c27dd7c199b35bf6be1cf63', tabindex: "0" }), hAsync("div", { key: '9492723cd87f1ef75534e449d4bc2b2deb0cb3cc', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: 'd9eb42454e48c82704d974a68b80ceb4de990417', class: "loading-spinner" }, hAsync("ion-spinner", { key: 'cdb046bad89872f4208ae466979315652766bf3a', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: '412d1bb537dafa6e6863d07ddc15f5969fe0617d', tabindex: "0" })));
|
|
16858
16864
|
}
|
|
16859
16865
|
get el() { return getElement(this); }
|
|
16860
16866
|
static get watchers() { return {
|
|
@@ -19576,6 +19582,7 @@ class Modal {
|
|
|
19576
19582
|
this.triggerController.removeClickListener();
|
|
19577
19583
|
}
|
|
19578
19584
|
componentWillLoad() {
|
|
19585
|
+
var _a;
|
|
19579
19586
|
const { breakpoints, initialBreakpoint, el, htmlAttributes } = this;
|
|
19580
19587
|
const isSheetModal = (this.isSheetModal = breakpoints !== undefined && initialBreakpoint !== undefined);
|
|
19581
19588
|
const attributesToInherit = ['aria-label', 'role'];
|
|
@@ -19617,7 +19624,9 @@ class Modal {
|
|
|
19617
19624
|
if (breakpoints !== undefined && initialBreakpoint !== undefined && !breakpoints.includes(initialBreakpoint)) {
|
|
19618
19625
|
printIonWarning('Your breakpoints array must include the initialBreakpoint value.');
|
|
19619
19626
|
}
|
|
19620
|
-
|
|
19627
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
19628
|
+
setOverlayId(this.el);
|
|
19629
|
+
}
|
|
19621
19630
|
}
|
|
19622
19631
|
componentDidLoad() {
|
|
19623
19632
|
/**
|
|
@@ -20007,18 +20016,18 @@ class Modal {
|
|
|
20007
20016
|
const mode = getIonMode$1(this);
|
|
20008
20017
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
20009
20018
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
20010
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
20019
|
+
return (hAsync(Host, Object.assign({ key: '013ba4864ca4d2c1052c512f6a4b0732b8decff7', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
20011
20020
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
20012
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: '
|
|
20021
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: '498b1c0a03836d6799dcf3b8e9315805c70f6480', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { key: 'ce22e4caf1096e87248926fe2477f0d5a4c8a5cf', class: "modal-shadow" }), hAsync("div", Object.assign({ key: '540e47b15d8290166c39b022c725182114a75682',
|
|
20013
20022
|
/*
|
|
20014
20023
|
role and aria-modal must be used on the
|
|
20015
20024
|
same element. They must also be set inside the
|
|
20016
20025
|
shadow DOM otherwise ion-button will not be highlighted
|
|
20017
20026
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
20018
20027
|
*/
|
|
20019
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
20028
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: 'f3b352ec9a63a7ec801462aacfd8295b4302d115', class: "modal-handle",
|
|
20020
20029
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
20021
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '
|
|
20030
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '31a3f58f4c733ffdf736523c154200874a96b1d0' }))));
|
|
20022
20031
|
}
|
|
20023
20032
|
get el() { return getElement(this); }
|
|
20024
20033
|
static get watchers() { return {
|
|
@@ -21725,7 +21734,10 @@ class Picker {
|
|
|
21725
21734
|
this.triggerController.removeClickListener();
|
|
21726
21735
|
}
|
|
21727
21736
|
componentWillLoad() {
|
|
21728
|
-
|
|
21737
|
+
var _a;
|
|
21738
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
21739
|
+
setOverlayId(this.el);
|
|
21740
|
+
}
|
|
21729
21741
|
}
|
|
21730
21742
|
componentDidLoad() {
|
|
21731
21743
|
printIonWarning('ion-picker-legacy and ion-picker-legacy-column have been deprecated in favor of new versions of the ion-picker and ion-picker-column components. These new components display inline with your page content allowing for more presentation flexibility than before.', this.el);
|
|
@@ -21838,11 +21850,11 @@ class Picker {
|
|
|
21838
21850
|
render() {
|
|
21839
21851
|
const { htmlAttributes } = this;
|
|
21840
21852
|
const mode = getIonMode$1(this);
|
|
21841
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
21853
|
+
return (hAsync(Host, Object.assign({ key: '3b163ca87354a3a4f302ff016d5affd0dc97bccc', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
21842
21854
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
21843
21855
|
}, class: Object.assign({ [mode]: true,
|
|
21844
21856
|
// Used internally for styling
|
|
21845
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '
|
|
21857
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: 'da4224447bdbcfbadd1bd63ebe7a7bfdb8aa3129', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '211475c859b7acf4d64556905c45993201d92d43', tabindex: "0" }), hAsync("div", { key: 'c3b3674038155809caea84ae6348ff0d66897a64', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, hAsync("div", { key: 'a21757da70dc7864945a5751d9da3ca4bf87897b', class: "picker-toolbar" }, this.buttons.map((b) => (hAsync("div", { class: buttonWrapperClass(b) }, hAsync("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass$1(b) }, b.text))))), hAsync("div", { key: '0220da1854d09ef22d2d9a32eaa3c3b222be5a0a', class: "picker-columns" }, hAsync("div", { key: '55757c165ba9e38e56b4dee76a9b13d3ff8b21e6', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => hAsync("ion-picker-legacy-column", { col: c })), hAsync("div", { key: '160092a46a48287bf75e5dfe3502f1755a2d0c70', class: "picker-below-highlight" }))), hAsync("div", { key: 'e212db6cca7d75fc0eda0baf4312dd51b9b7a4ef', tabindex: "0" })));
|
|
21846
21858
|
}
|
|
21847
21859
|
get el() { return getElement(this); }
|
|
21848
21860
|
static get watchers() { return {
|
|
@@ -24035,8 +24047,9 @@ class Popover {
|
|
|
24035
24047
|
}
|
|
24036
24048
|
}
|
|
24037
24049
|
componentWillLoad() {
|
|
24050
|
+
var _a, _b;
|
|
24038
24051
|
const { el } = this;
|
|
24039
|
-
const popoverId = setOverlayId(el);
|
|
24052
|
+
const popoverId = (_b = (_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : setOverlayId(el);
|
|
24040
24053
|
this.parentPopover = el.closest(`ion-popover:not(#${popoverId})`);
|
|
24041
24054
|
if (this.alignment === undefined) {
|
|
24042
24055
|
this.alignment = getIonMode$1(this) === 'ios' ? 'center' : 'start';
|
|
@@ -24239,9 +24252,9 @@ class Popover {
|
|
|
24239
24252
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
24240
24253
|
const desktop = isPlatform('desktop');
|
|
24241
24254
|
const enableArrow = arrow && !parentPopover;
|
|
24242
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
24255
|
+
return (hAsync(Host, Object.assign({ key: '3a7c4c39384bab1447c4bd6b9b06d7837a09353b', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
24243
24256
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
24244
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '
|
|
24257
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { key: '38a1c4ad29238d1e81cab407f099121fa4947cce', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: 'f825494c5e3be89d7fcf0229e29b405bccb13edb', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '3acae5a0106389c776c8ffe5bf10f3ff006e0346', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: '2aa73e9f06b1d2ac4c0d36c23186b9164f395079', class: "popover-content", part: "content" }, hAsync("slot", { key: '62f5713414aae47dde6a8aef1f9b69af287534ae' })))));
|
|
24245
24258
|
}
|
|
24246
24259
|
get el() { return getElement(this); }
|
|
24247
24260
|
static get watchers() { return {
|
|
@@ -31628,7 +31641,10 @@ class Toast {
|
|
|
31628
31641
|
this.triggerController.removeClickListener();
|
|
31629
31642
|
}
|
|
31630
31643
|
componentWillLoad() {
|
|
31631
|
-
|
|
31644
|
+
var _a;
|
|
31645
|
+
if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
31646
|
+
setOverlayId(this.el);
|
|
31647
|
+
}
|
|
31632
31648
|
}
|
|
31633
31649
|
componentDidLoad() {
|
|
31634
31650
|
/**
|
|
@@ -31866,9 +31882,9 @@ class Toast {
|
|
|
31866
31882
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
31867
31883
|
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);
|
|
31868
31884
|
}
|
|
31869
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
31885
|
+
return (hAsync(Host, Object.assign({ key: '68c336f80af04ba484ca9899bae8f40c0d9b7691', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
31870
31886
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
31871
|
-
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '
|
|
31887
|
+
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '3483b188f14b700964a123997a60a43a2023a1b6', class: wrapperClass }, hAsync("div", { key: '1b88544a9b87253b364cbec6285625388979b560', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: 'bd1c42e3b14af66b880dfe283e3ae910075c0f70', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: 'a5ef6cdabc1f7c70d11a5f2a0abf8737fe7550e8', 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')))));
|
|
31872
31888
|
}
|
|
31873
31889
|
get el() { return getElement(this); }
|
|
31874
31890
|
static get watchers() { return {
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,d as o,w as i,h as a,f as e,i as r}from"./p-5a28559b.js";import{f as s,i as n,d,r as h,a as p,p as l}from"./p-06e58c4e.js";import{C as c,a as m,d as f}from"./p-3cc276f4.js";import{g as b,j as u,r as w,h as v,k as x}from"./p-b51e4004.js";import{c as k}from"./p-ccd02320.js";import{p as g}from"./p-06fee233.js";import{g as y}from"./p-c61cc894.js";import{G as A,O as D,F as B,e as Y,B as j,j as M,k as E,f as C,g as S,h as O}from"./p-b2cd7aae.js";import{g as P}from"./p-47794def.js";import{e as T,w as $}from"./p-1974d32f.js";import{b as z,c as I}from"./p-972902db.js";import{KEYBOARD_DID_OPEN as W}from"./p-2b7827c7.js";import{c as L}from"./p-c7e16491.js";import{g as R}from"./p-2408c236.js";import{createGesture as N}from"./p-8ededb41.js";import{w as F}from"./p-7b30edcc.js";import"./p-9d88dc43.js";import"./p-9b97df10.js";import"./p-27281edd.js";var K;!function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"}(K||(K={}));const V={getEngine(){const t=y();if(null==t?void 0:t.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},setStyle(t){const o=this.getEngine();o&&o.setStyle(t)},getStyle:async function(){const t=this.getEngine();if(!t)return K.Default;const{style:o}=await t.getInfo();return o}},Z=(t,o)=>{if(1===o)return 0;const i=1/(1-o);return t*i+-o*i},G=()=>{!F||F.innerWidth>=768||V.setStyle({style:K.Dark})},_=(t=K.Default)=>{!F||F.innerWidth>=768||V.setStyle({style:t})},H=async(t,o)=>{"function"==typeof t.canDismiss&&await t.canDismiss(void 0,A)&&(o.isRunning()?o.onFinish((()=>{t.dismiss(void 0,"handler")}),{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))},U=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,q=.915,J=(t,o)=>u(400,t/Math.abs(1.1*o),500),Q=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=void 0===i||i<o,e=a?`calc(var(--backdrop-opacity) * ${o})`:"0",r=L("backdropAnimation").fromTo("opacity",0,e);return a&&r.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:L("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-100*o}%)`}]),backdropAnimation:r}},X=t=>{const{currentBreakpoint:o,backdropBreakpoint:i}=t,a=`calc(var(--backdrop-opacity) * ${Z(o,i)})`,e=[{offset:0,opacity:a},{offset:1,opacity:0}],r=[{offset:0,opacity:a},{offset:i,opacity:0},{offset:1,opacity:0}],s=L("backdropAnimation").keyframes(0!==i?r:e);return{wrapperAnimation:L("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*o}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},tt=(t,o)=>{const{presentingEl:i,currentBreakpoint:a}=o,e=b(t),{wrapperAnimation:r,backdropAnimation:s}=void 0!==a?Q(o):{backdropAnimation:L().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:L().fromTo("transform","translateY(100vh)","translateY(0vh)")};s.addElement(e.querySelector("ion-backdrop")),r.addElement(e.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const n=L("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(i){const t=window.innerWidth<768,o="ION-MODAL"===i.tagName&&void 0!==i.presentingElement,a=b(i),e=L().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),d=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",a=`translateY(${o?"-10px":t}) scale(0.915)`;e.afterStyles({transform:a}).beforeAddWrite((()=>d.style.setProperty("background-color","black"))).addElement(i).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:a,borderRadius:"10px 10px 0 0"}]),n.addAnimation(e)}else if(n.addAnimation(s),o){const t=`translateY(-10px) scale(${o?q:1})`;e.afterStyles({transform:t}).addElement(a.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:t}]);const i=L().afterStyles({transform:t}).addElement(a.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:t}]);n.addAnimation([e,i])}else r.fromTo("opacity","0","1")}else n.addAnimation(s);return n},ot=(t,o,i=500)=>{const{presentingEl:a,currentBreakpoint:e}=o,r=b(t),{wrapperAnimation:s,backdropAnimation:n}=void 0!==e?X(o):{backdropAnimation:L().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:L().fromTo("transform","translateY(0vh)","translateY(100vh)")};n.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=L("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(i).addAnimation(s);if(a){const t=window.innerWidth<768,o="ION-MODAL"===a.tagName&&void 0!==a.presentingElement,i=b(a),e=L().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((t=>{1===t&&(a.style.setProperty("overflow",""),Array.from(r.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((t=>void 0!==t.presentingElement)).length<=1&&r.style.setProperty("background-color",""))})),r=document.body;if(t){const t=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",i=`translateY(${o?"-10px":t}) scale(0.915)`;e.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:i,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(e)}else if(d.addAnimation(n),o){const t=`translateY(-10px) scale(${o?q:1})`;e.addElement(i.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:t},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const a=L().addElement(i.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:t},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([e,a])}else s.fromTo("opacity","1","0")}else d.addAnimation(n);return d},it=(t,o)=>{const{currentBreakpoint:i}=o,a=b(t),{wrapperAnimation:e,backdropAnimation:r}=void 0!==i?Q(o):{backdropAnimation:L().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:L().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return r.addElement(a.querySelector("ion-backdrop")),e.addElement(a.querySelector(".modal-wrapper")),L().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,e])},at=(t,o)=>{const{currentBreakpoint:i}=o,a=b(t),{wrapperAnimation:e,backdropAnimation:r}=void 0!==i?X(o):{backdropAnimation:L().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:L().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(a.querySelector("ion-backdrop")),e.addElement(a.querySelector(".modal-wrapper")),L().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,e])},et=class{constructor(i){t(this,i),this.didPresent=o(this,"ionModalDidPresent",7),this.willPresent=o(this,"ionModalWillPresent",7),this.willDismiss=o(this,"ionModalWillDismiss",7),this.didDismiss=o(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=o(this,"ionBreakpointDidChange",7),this.didPresentShorthand=o(this,"didPresent",7),this.willPresentShorthand=o(this,"willPresent",7),this.willDismissShorthand=o(this,"willDismiss",7),this.didDismissShorthand=o(this,"didDismiss",7),this.ionMount=o(this,"ionMount",7),this.lockController=k(),this.triggerController=Y(),this.coreDelegate=c(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:t,handleBehavior:o}=this;"cycle"===o&&void 0===t&&this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:t}=this;void 0===t&&this.dismiss(void 0,j)},this.onLifecycle=t=>{const o=this.usersElement,i=rt[t.type];if(o&&i){const a=new CustomEvent(i,{bubbles:!1,cancelable:!1,detail:t.detail});o.dispatchEvent(a)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.focusTrap=!0,this.canDismiss=!0}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:i}=this;t&&i.addClickListener(o,t)}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort(((t,o)=>t-o)))}connectedCallback(){const{el:t}=this;M(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:o,el:i,htmlAttributes:a}=this,e=this.isSheetModal=void 0!==t&&void 0!==o,r=["aria-label","role"];this.inheritedAttributes=v(i,r),void 0!==a&&r.forEach((t=>{a[t]&&(this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:a[t]}),delete a[t])})),e&&(this.currentBreakpoint=this.initialBreakpoint),void 0===t||void 0===o||t.includes(o)||g("Your breakpoints array must include the initialBreakpoint value."),E(i)}componentDidLoad(){!0===this.isOpen&&w((()=>this.present())),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}async checkCanDismiss(t,o){const{canDismiss:i}=this;return"function"==typeof i?i(t,o):i}async present(){const t=await this.lockController.lock();if(this.presented)return void t();const{presentingElement:o,el:a}=this;this.currentBreakpoint=this.initialBreakpoint;const{inline:e,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=await m(r,a,this.component,["ion-page"],this.componentProps,e),x(a)?await T(this.usersElement):this.keepContentsMounted||await $(),i((()=>this.el.classList.add("show-modal")));const s=void 0!==o;s&&"ios"===z(this)&&(this.statusBarStyle=await V.getStyle(),G()),await C(this,"modalEnter",tt,it,{presentingEl:o,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),"undefined"!=typeof window&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),w((()=>{this.gesture&&this.gesture.enable(!0)})))},window.addEventListener(W,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),t()}initSwipeToClose(){var t;if("ios"!==z(this))return;const{el:o}=this,i=this.leaveAnimation||I.get("modalLeave",ot),a=this.animation=i(o,{presentingEl:this.presentingElement});if(!p(o))return void l(o);const e=null!==(t=this.statusBarStyle)&&void 0!==t?t:K.Default;this.gesture=((t,o,i,a)=>{const e=.5,r=t.offsetHeight;let p=!1,l=!1,c=null,m=null,f=!0,w=0;const v=N({el:t,gestureName:"modalSwipeToClose",gesturePriority:D,direction:"y",threshold:10,canStart:t=>{const o=t.event.target;if(null===o||!o.closest)return!0;if(c=s(o),c){if(n(c)){const t=b(c);m=t.querySelector(".inner-scroll")}else m=c;return!c.querySelector("ion-refresher")&&0===m.scrollTop}return null===o.closest("ion-footer")},onStart:i=>{const{deltaY:a}=i;f=!c||!n(c)||c.scrollY,l=void 0!==t.canDismiss&&!0!==t.canDismiss,a>0&&c&&d(c),o.progressStart(!0,p?1:0)},onMove:t=>{const{deltaY:a}=t;a>0&&c&&d(c);const s=t.deltaY/r,n=s>=0&&l,h=n?.2:.9999,p=n?U(s/h):s,m=u(1e-4,p,h);o.progressStep(m),m>=e&&w<e?_(i):m<e&&w>=e&&G(),w=m},onEnd:i=>{const s=i.velocityY,n=i.deltaY/r,d=n>=0&&l,m=d?.2:.9999,b=d?U(n/m):n,w=u(1e-4,b,m),x=!d&&(i.deltaY+1e3*s)/r>=e;let k=x?-.001:.001;x?(o.easing("cubic-bezier(0.32, 0.72, 0, 1)"),k+=R([0,0],[.32,.72],[0,1],[1,1],w)[0]):(o.easing("cubic-bezier(1, 0, 0.68, 0.28)"),k+=R([0,0],[1,0],[.68,.28],[1,1],w)[0]);const g=J(x?n*r:(1-w)*r,s);p=x,v.enable(!1),c&&h(c,f),o.onFinish((()=>{x||v.enable(!0)})).progressEnd(x?1:0,k,g),d&&w>m/4?H(t,o):x&&a()}});return v})(o,a,e,(()=>{this.gestureAnimationDismissing=!0,_(this.statusBarStyle),this.animation.onFinish((async()=>{await this.dismiss(void 0,A),this.gestureAnimationDismissing=!1}))})),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:o,backdropBreakpoint:i}=this;if(!t||void 0===o)return;const a=this.enterAnimation||I.get("modalEnter",tt),e=this.animation=a(this.el,{presentingEl:this.presentingElement,currentBreakpoint:o,backdropBreakpoint:i});e.progressStart(!0,1);const{gesture:r,moveSheetToBreakpoint:d}=((t,o,i,a,e,r,d=[],h,p,l)=>{const c={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==e?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-e,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},m=t.querySelector("ion-content"),f=i.clientHeight;let v=a,x=0,k=!1;const g=r.childAnimations.find((t=>"wrapperAnimation"===t.id)),y=r.childAnimations.find((t=>"backdropAnimation"===t.id)),A=d[d.length-1],D=d[0],Y=()=>{t.style.setProperty("pointer-events","auto"),o.style.setProperty("pointer-events","auto"),t.classList.remove(B)},j=()=>{t.style.setProperty("pointer-events","none"),o.style.setProperty("pointer-events","none"),t.classList.add(B)};g&&y&&(g.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-v),v>e?Y():j()),m&&v!==A&&(m.scrollY=!1);const M=o=>{const{breakpoint:i,canDismiss:a,breakpointOffset:s,animated:n}=o,h=a&&0===i,f=h?v:i,b=0!==f;return v=0,g&&y&&(g.keyframes([{offset:0,transform:`translateY(${100*s}%)`},{offset:1,transform:`translateY(${100*(1-f)}%)`}]),y.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${Z(1-s,e)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${Z(f,e)})`}]),r.progressStep(0)),E.enable(!1),h?H(t,r):b||p(),m&&f===d[d.length-1]&&(m.scrollY=!0),new Promise((t=>{r.onFinish((()=>{b?g&&y?w((()=>{g.keyframes([...c.WRAPPER_KEYFRAMES]),y.keyframes([...c.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-f),v=f,l(v),v>e?Y():j(),E.enable(!0),t()})):(E.enable(!0),t()):t()}),{oneTimeCallback:!0}).progressEnd(1,0,n?500:0)}))},E=N({el:i,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:t=>{const o=s(t.event.target);if(v=h(),1===v&&o){const t=n(o)?b(o).querySelector(".inner-scroll"):o;return!o.querySelector("ion-refresher")&&0===t.scrollTop}return!0},onStart:o=>{k=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===D,o.deltaY>0&&m&&(m.scrollY=!1),w((()=>{t.focus()})),r.progressStart(!0,1-v)},onMove:t=>{t.deltaY>0&&m&&(m.scrollY=!1);const o=d.length>1?1-d[1]:void 0,i=1-v+t.deltaY/f,a=void 0!==o&&i>=o&&k,e=a?.95:.9999,s=a&&void 0!==o?o+U((i-o)/(e-o)):i;x=u(1e-4,s,e),r.progressStep(x)},onEnd:t=>{const o=v-(t.deltaY+350*t.velocityY)/f,i=d.reduce(((t,i)=>Math.abs(i-o)<Math.abs(t-o)?i:t));M({breakpoint:i,breakpointOffset:x,canDismiss:k,animated:!0})}});return{gesture:E,moveSheetToBreakpoint:M}})(this.el,this.backdropEl,t,o,i,e,this.sortedBreakpoints,(()=>{var t;return null!==(t=this.currentBreakpoint)&&void 0!==t?t:0}),(()=>this.sheetOnDismiss()),(t=>{this.currentBreakpoint!==t&&(this.currentBreakpoint=t,this.ionBreakpointDidChange.emit({breakpoint:t}))}));this.gesture=r,this.moveSheetToBreakpoint=d,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish((async()=>{this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),await this.dismiss(void 0,A),this.gestureAnimationDismissing=!1}))}async dismiss(t,o){var a;if(this.gestureAnimationDismissing&&o!==A)return!1;const e=await this.lockController.lock();if("handler"!==o&&!await this.checkCanDismiss(t,o))return e(),!1;const{presentingElement:r}=this;void 0!==r&&"ios"===z(this)&&_(this.statusBarStyle),"undefined"!=typeof window&&this.keyboardOpenCallback&&(window.removeEventListener(W,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);const s=await S(this,t,o,"modalLeave",ot,at,{presentingEl:r,currentBreakpoint:null!==(a=this.currentBreakpoint)&&void 0!==a?a:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(s){const{delegate:t}=this.getDelegate();await f(t,this.usersElement),i((()=>this.el.classList.remove("show-modal"))),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy()}return this.currentBreakpoint=void 0,this.animation=void 0,e(),s}onDidDismiss(){return O(this.el,"ionModalDidDismiss")}onWillDismiss(){return O(this.el,"ionModalWillDismiss")}async setCurrentBreakpoint(t){if(!this.isSheetModal)return void g("setCurrentBreakpoint is only supported on sheet modals.");if(!this.breakpoints.includes(t))return void g(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:o,moveSheetToBreakpoint:i,canDismiss:a,breakpoints:e,animated:r}=this;o!==t&&i&&(this.sheetTransition=i({breakpoint:t,breakpointOffset:1-o,canDismiss:void 0!==a&&!0!==a&&0===e[0],animated:r}),await this.sheetTransition,this.sheetTransition=void 0)}async getCurrentBreakpoint(){return this.currentBreakpoint}async moveToNextBreakpoint(){const{breakpoints:t,currentBreakpoint:o}=this;if(!t||null==o)return!1;const i=t.filter((t=>0!==t)),a=i.indexOf(o),e=i[(a+1)%i.length];return await this.setCurrentBreakpoint(e),!0}render(){const{handle:t,isSheetModal:o,presentingElement:i,htmlAttributes:r,handleBehavior:s,inheritedAttributes:n,focusTrap:d}=this,h=!1!==t&&o,p=z(this),l=void 0!==i&&"ios"===p,c="cycle"===s;return a(e,Object.assign({key:"fe6fd17cf857127f89d652b9aa3e9473d28c55db","no-router":!0,tabindex:"-1"},r,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[p]:!0,"modal-default":!l&&!o,"modal-card":l,"modal-sheet":o,"overlay-hidden":!0,[B]:!1===d},P(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),a("ion-backdrop",{key:"0f3a31363c2717e5483bc0412c25804897d4aff8",ref:t=>this.backdropEl=t,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===p&&a("div",{key:"0e5ed59162ff08fe0a9f757e06bdacc75f65c0ed",class:"modal-shadow"}),a("div",Object.assign({key:"35cdbe2238765e5f346ad7be64f7eefa8c78f0c0",role:"dialog"},n,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:t=>this.wrapperEl=t}),h&&a("button",{key:"7a4031eaebf9a098f4c4220a5fe9d1c25cc0ec92",class:"modal-handle",tabIndex:c?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:c?this.onHandleClick:void 0,part:"handle"}),a("slot",{key:"534adc8e5bd850199fe2e9e16f0e7c19217d8486"})))}get el(){return r(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},rt={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};et.style={ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'};export{et as ion_modal}
|