@ionic/core 8.8.4-dev.11776246162.138c2737 → 8.8.4-dev.11776357045.1da75baf
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/index.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-picker-legacy.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/p-B6czg-mf.js +4 -0
- package/components/p-BGHaEUgp.js +4 -0
- package/components/{p-CEUppJkx.js → p-BR9Yxas9.js} +1 -1
- package/components/p-Ch9P0ikq.js +4 -0
- package/components/p-GytrfCp8.js +4 -0
- package/components/p-ZeIAjDcZ.js +4 -0
- package/components/{p-B36-MWK0.js → p-iwGbwewM.js} +1 -1
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/css/ionic/core.ionic.css +1 -1
- package/css/ionic/core.ionic.css.map +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -29
- package/dist/cjs/ion-alert.cjs.entry.js +4 -29
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -28
- package/dist/cjs/ion-loading.cjs.entry.js +4 -29
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +79 -176
- package/dist/cjs/ion-popover.cjs.entry.js +4 -90
- package/dist/cjs/ion-range.cjs.entry.js +8 -5
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-toast.cjs.entry.js +4 -32
- package/dist/cjs/{overlays-BbhewSIQ.js → overlays-Dhoy6v_5.js} +4 -4
- package/dist/collection/components/action-sheet/action-sheet.js +4 -5
- package/dist/collection/components/alert/alert.js +3 -4
- package/dist/collection/components/loading/loading.js +3 -4
- package/dist/collection/components/modal/gestures/sheet.js +9 -71
- package/dist/collection/components/modal/modal.ionic.css +1 -1
- package/dist/collection/components/modal/modal.js +5 -6
- package/dist/collection/components/picker-legacy/picker.js +3 -4
- package/dist/collection/components/popover/popover.js +3 -4
- package/dist/collection/components/range/range.ionic.css +14 -10
- package/dist/collection/components/range/range.js +7 -4
- package/dist/collection/components/tab-bar/tab-bar.ionic.css +9 -0
- package/dist/collection/components/toast/toast.js +3 -4
- package/dist/collection/utils/overlays.js +5 -5
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +5 -29
- package/dist/esm/ion-alert.entry.js +4 -29
- package/dist/esm/ion-datetime_3.entry.js +4 -28
- package/dist/esm/ion-loading.entry.js +4 -29
- package/dist/esm/ion-menu_3.entry.js +1 -1
- package/dist/esm/ion-modal.entry.js +80 -177
- package/dist/esm/ion-popover.entry.js +4 -90
- package/dist/esm/ion-range.entry.js +8 -5
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +1 -1
- package/dist/esm/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +4 -32
- package/dist/esm/{overlays-VA-4NWjf.js → overlays-CvFHfO3y.js} +5 -5
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-bae3ebe5.entry.js → p-2095969c.entry.js} +1 -1
- package/dist/ionic/p-3884bfa4.entry.js +4 -0
- package/dist/ionic/p-4b0f5ffd.entry.js +4 -0
- package/dist/ionic/p-57aeb097.entry.js +4 -0
- package/{components/p-CSexRbnt.js → dist/ionic/p-6be2b2d3.entry.js} +1 -1
- package/dist/ionic/p-6bffc700.entry.js +4 -0
- package/dist/ionic/{p-ba9f8cbb.entry.js → p-9acd3fd3.entry.js} +1 -1
- package/dist/ionic/p-BYtS2rae.js +4 -0
- package/dist/ionic/{p-0cb50208.entry.js → p-a283aa4d.entry.js} +1 -1
- package/dist/ionic/p-d954cd19.entry.js +4 -0
- package/dist/ionic/{p-1efe83c8.entry.js → p-db4f4eaf.entry.js} +1 -1
- package/dist/ionic/p-e9d6ce67.entry.js +4 -0
- package/dist/ionic/p-ef0c281a.entry.js +4 -0
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/utils/overlays.d.ts +1 -1
- package/hydrate/index.js +110 -416
- package/hydrate/index.mjs +110 -416
- package/package.json +1 -1
- package/components/p-BDPU2685.js +0 -4
- package/components/p-BrNzoF1U.js +0 -4
- package/components/p-DNdBtsfu.js +0 -4
- package/components/p-Njik5v4C.js +0 -4
- package/dist/collection/components/action-sheet/animations/ionic.enter.js +0 -27
- package/dist/collection/components/action-sheet/animations/ionic.leave.js +0 -21
- package/dist/collection/components/alert/animations/ionic.enter.js +0 -28
- package/dist/collection/components/alert/animations/ionic.leave.js +0 -19
- package/dist/collection/components/loading/animations/ionic.enter.js +0 -28
- package/dist/collection/components/loading/animations/ionic.leave.js +0 -22
- package/dist/collection/components/modal/animations/ionic.enter.js +0 -40
- package/dist/collection/components/modal/animations/ionic.leave.js +0 -28
- package/dist/collection/components/picker-legacy/animations/ionic.enter.js +0 -27
- package/dist/collection/components/picker-legacy/animations/ionic.leave.js +0 -23
- package/dist/collection/components/popover/animations/ionic.enter.js +0 -91
- package/dist/collection/components/popover/animations/ionic.leave.js +0 -29
- package/dist/collection/components/toast/animations/ionic.enter.js +0 -33
- package/dist/collection/components/toast/animations/ionic.leave.js +0 -16
- package/dist/ionic/p-07b129d5.entry.js +0 -4
- package/dist/ionic/p-27edb91a.entry.js +0 -4
- package/dist/ionic/p-3d4c8528.entry.js +0 -4
- package/dist/ionic/p-6992d9d6.entry.js +0 -4
- package/dist/ionic/p-9dd4276b.entry.js +0 -4
- package/dist/ionic/p-BExfzy0B.js +0 -4
- package/dist/ionic/p-a3d794ba.entry.js +0 -4
- package/dist/ionic/p-cdfbe4cc.entry.js +0 -4
- package/dist/ionic/p-fa701753.entry.js +0 -4
- package/dist/types/components/action-sheet/animations/ionic.enter.d.ts +0 -5
- package/dist/types/components/action-sheet/animations/ionic.leave.d.ts +0 -5
- package/dist/types/components/alert/animations/ionic.enter.d.ts +0 -5
- package/dist/types/components/alert/animations/ionic.leave.d.ts +0 -5
- package/dist/types/components/loading/animations/ionic.enter.d.ts +0 -5
- package/dist/types/components/loading/animations/ionic.leave.d.ts +0 -5
- package/dist/types/components/modal/animations/ionic.enter.d.ts +0 -6
- package/dist/types/components/modal/animations/ionic.leave.d.ts +0 -6
- package/dist/types/components/picker-legacy/animations/ionic.enter.d.ts +0 -5
- package/dist/types/components/picker-legacy/animations/ionic.leave.d.ts +0 -5
- package/dist/types/components/popover/animations/ionic.enter.d.ts +0 -5
- package/dist/types/components/popover/animations/ionic.leave.d.ts +0 -5
- package/dist/types/components/toast/animations/ionic.enter.d.ts +0 -6
- package/dist/types/components/toast/animations/ionic.leave.d.ts +0 -5
|
@@ -185,6 +185,15 @@
|
|
|
185
185
|
bottom: calc(var(--token-space-400, var(--token-scale-400, 16px)) + var(--ion-safe-area-bottom, 0));
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
@supports (backdrop-filter: blur(0)) {
|
|
189
|
+
:host(.tab-bar-translucent) {
|
|
190
|
+
--background: rgba(255, 255, 255, 0.6);
|
|
191
|
+
backdrop-filter: var(--tab-bar-backdrop-filter, blur(12px));
|
|
192
|
+
}
|
|
193
|
+
:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused) {
|
|
194
|
+
--background: transparent;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
188
197
|
/* Soft */
|
|
189
198
|
:host(.tab-bar-soft) {
|
|
190
199
|
border-radius: var(--token-border-radius-400, var(--token-scale-400, 16px));
|
|
@@ -11,7 +11,6 @@ import { sanitizeDOMString } from "../../utils/sanitization/index";
|
|
|
11
11
|
import { createColorClasses, getClassMap } from "../../utils/theme";
|
|
12
12
|
import { config } from "../../global/config";
|
|
13
13
|
import { getIonMode, getIonTheme } from "../../global/ionic-global";
|
|
14
|
-
import { ionicEnterAnimation } from "./animations/ionic.enter";
|
|
15
14
|
import { iosEnterAnimation } from "./animations/ios.enter";
|
|
16
15
|
import { iosLeaveAnimation } from "./animations/ios.leave";
|
|
17
16
|
import { mdEnterAnimation } from "./animations/md.enter";
|
|
@@ -225,7 +224,7 @@ export class Toast {
|
|
|
225
224
|
* in the dismiss animation.
|
|
226
225
|
*/
|
|
227
226
|
this.lastPresentedPosition = animationPosition;
|
|
228
|
-
await present(this, 'toastEnter', iosEnterAnimation, mdEnterAnimation,
|
|
227
|
+
await present(this, 'toastEnter', iosEnterAnimation, mdEnterAnimation, {
|
|
229
228
|
position,
|
|
230
229
|
top: animationPosition.top,
|
|
231
230
|
bottom: animationPosition.bottom,
|
|
@@ -440,9 +439,9 @@ export class Toast {
|
|
|
440
439
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
441
440
|
printIonWarning('[ion-toast] - 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);
|
|
442
441
|
}
|
|
443
|
-
return (h(Host, Object.assign({ key: '
|
|
442
|
+
return (h(Host, Object.assign({ key: '3507eaa18a5559a9052d34db180e176952dc466f', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
444
443
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
445
|
-
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true, [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined, [`toast-hue-${hue}`]: hue !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '
|
|
444
|
+
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true, [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined, [`toast-hue-${hue}`]: hue !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '195eb90ccd82a13254e843b80be0f380325accb4', class: wrapperClass, part: "wrapper" }, h("div", { key: 'd6072aa4a4848d72e68e04a7842d3f769f844ffc', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: '02a1d72aaf401d27671906c8b84abd823def6da8', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '1f133c27927ad840f58ea2e9112719ef880bf9a5', class: "toast-content", part: "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')))));
|
|
446
445
|
}
|
|
447
446
|
static get is() { return "ion-toast"; }
|
|
448
447
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ import { focusFirstDescendant, focusLastDescendant, focusableQueryString } from
|
|
|
6
6
|
import { shouldUseCloseWatcher } from "./hardware-back-button";
|
|
7
7
|
import { printIonError, printIonWarning } from "./logging/index";
|
|
8
8
|
import { config } from "../global/config";
|
|
9
|
-
import { getIonMode
|
|
9
|
+
import { getIonMode } from "../global/ionic-global";
|
|
10
10
|
import { CoreDelegate } from "./framework-delegate";
|
|
11
11
|
import { BACKDROP_NO_SCROLL } from "./gesture/gesture-controller";
|
|
12
12
|
import { OVERLAY_BACK_BUTTON_PRIORITY } from "./hardware-back-button";
|
|
@@ -512,7 +512,7 @@ export const setRootAriaHidden = (hidden = false) => {
|
|
|
512
512
|
viewContainer.removeAttribute('aria-hidden');
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
|
-
export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation,
|
|
515
|
+
export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
|
|
516
516
|
var _a, _b;
|
|
517
517
|
if (overlay.presented) {
|
|
518
518
|
return;
|
|
@@ -560,11 +560,11 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
|
|
|
560
560
|
document.body.classList.add(BACKDROP_NO_SCROLL);
|
|
561
561
|
}
|
|
562
562
|
(_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();
|
|
563
|
-
const theme = getIonTheme(overlay);
|
|
564
563
|
const mode = getIonMode(overlay);
|
|
565
|
-
const selectedAnimation = mode === 'ios' ? iosEnterAnimation : theme === 'ionic' ? ionicEnterAnimation : mdEnterAnimation;
|
|
566
564
|
// get the user's animation fn if one was provided
|
|
567
|
-
const animationBuilder = overlay.enterAnimation
|
|
565
|
+
const animationBuilder = overlay.enterAnimation
|
|
566
|
+
? overlay.enterAnimation
|
|
567
|
+
: config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
|
|
568
568
|
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
569
569
|
if (completed) {
|
|
570
570
|
overlay.didPresent.emit();
|
package/dist/docs.json
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export { L as LogLevel } from './index-Omi_TcwW.js';
|
|
|
13
13
|
export { I as IonicSafeString, g as getMode, s as setupConfig } from './config-BvDxfLa-.js';
|
|
14
14
|
export { o as openURL } from './theme-DaJxRxSQ.js';
|
|
15
15
|
export { m as menuController } from './index-hpH08p5s.js';
|
|
16
|
-
export { b as actionSheetController, a as alertController, l as loadingController, m as modalController, p as pickerController, c as popoverController, t as toastController } from './overlays-
|
|
16
|
+
export { b as actionSheetController, a as alertController, l as loadingController, m as modalController, p as pickerController, c as popoverController, t as toastController } from './overlays-CvFHfO3y.js';
|
|
17
17
|
import './gesture-controller-BTEOs1at.js';
|
|
18
18
|
import './focus-visible-vXpMhGrs.js';
|
|
19
19
|
import './framework-delegate-CjVwn_KZ.js';
|
|
@@ -5,7 +5,7 @@ import { r as registerInstance, c as createEvent, a as readTask, h, d as Host, g
|
|
|
5
5
|
import { c as createButtonActiveGesture } from './button-active-g6ZnZzDZ.js';
|
|
6
6
|
import { r as raf } from './helpers-Do7zwvM1.js';
|
|
7
7
|
import { c as createLockController } from './lock-controller-B-hirT0v.js';
|
|
8
|
-
import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, f as present, g as dismiss, h as eventMethod, s as safeCall, j as prepareOverlay, k as setOverlayId } from './overlays-
|
|
8
|
+
import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, f as present, g as dismiss, h as eventMethod, s as safeCall, j as prepareOverlay, k as setOverlayId } from './overlays-CvFHfO3y.js';
|
|
9
9
|
import { g as getClassMap } from './theme-DaJxRxSQ.js';
|
|
10
10
|
import { b as getIonMode, c as getIonTheme } from './ionic-global-CAZb-5i-.js';
|
|
11
11
|
import { c as createAnimation } from './animation-Cqe2x-Pt.js';
|
|
@@ -16,30 +16,6 @@ import './gesture-controller-BTEOs1at.js';
|
|
|
16
16
|
import './focus-visible-vXpMhGrs.js';
|
|
17
17
|
import './framework-delegate-CjVwn_KZ.js';
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* MD Action Sheet Enter Animation
|
|
21
|
-
*/
|
|
22
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
23
|
-
const baseAnimation = createAnimation();
|
|
24
|
-
const backdropAnimation = createAnimation();
|
|
25
|
-
const wrapperAnimation = createAnimation();
|
|
26
|
-
backdropAnimation
|
|
27
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
28
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
29
|
-
.beforeStyles({
|
|
30
|
-
'pointer-events': 'none',
|
|
31
|
-
})
|
|
32
|
-
.afterClearStyles(['pointer-events']);
|
|
33
|
-
wrapperAnimation
|
|
34
|
-
.addElement(baseEl.querySelector('.action-sheet-wrapper'))
|
|
35
|
-
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
|
|
36
|
-
return baseAnimation
|
|
37
|
-
.addElement(baseEl)
|
|
38
|
-
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
39
|
-
.duration(400)
|
|
40
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
19
|
/**
|
|
44
20
|
* iOS Action Sheet Enter Animation
|
|
45
21
|
*/
|
|
@@ -222,7 +198,7 @@ const ActionSheet = class {
|
|
|
222
198
|
async present() {
|
|
223
199
|
const unlock = await this.lockController.lock();
|
|
224
200
|
await this.delegateController.attachViewToDom();
|
|
225
|
-
await present(this, 'actionSheetEnter', iosEnterAnimation, mdEnterAnimation
|
|
201
|
+
await present(this, 'actionSheetEnter', iosEnterAnimation, mdEnterAnimation);
|
|
226
202
|
unlock();
|
|
227
203
|
}
|
|
228
204
|
/**
|
|
@@ -512,12 +488,12 @@ const ActionSheet = class {
|
|
|
512
488
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
513
489
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
514
490
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
515
|
-
return (h(Host, Object.assign({ key: '
|
|
491
|
+
return (h(Host, Object.assign({ key: '3ef5b086f7a4ac4f361de8dcff5255ed1d2bcbdf', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
516
492
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
517
|
-
}, class: Object.assign(Object.assign({ [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '
|
|
493
|
+
}, class: Object.assign(Object.assign({ [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: 'd98bb285f8a09a4207f35f930da77548bcdf529a', tappable: this.backdropDismiss }), h("div", { key: '6cd6aba45144244a51d76bfe0b606c3fb9a882ea', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'e6a007bcde062bd2ea7c094394aa0024ee595c9e', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: '31948475a84d28488fd53e7fde16cb1deff14a2f', class: "action-sheet-container" }, h("div", { key: '4f2bbc00d36792cf6e24c402f5396546653f1e00', class: "action-sheet-group", ref: (el) => (this.groupEl = el), role: hasRadioButtons ? 'radiogroup' : undefined }, header !== undefined && (h("div", { key: '68bcafe38b49be0fe21e3e4820ee3f05f6abffad', id: headerID, class: {
|
|
518
494
|
'action-sheet-title': true,
|
|
519
495
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
520
|
-
} }, header, this.subHeader && h("div", { key: '
|
|
496
|
+
} }, header, this.subHeader && h("div", { key: 'd253c010d0bba4a38836b6319b2d8073e1a526b9', class: "action-sheet-sub-title" }, this.subHeader))), this.renderActionSheetButtons(buttons)), cancelButton && (h("div", { key: 'b30f50a64b425a992e26673bf072332d7c3b3409', class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({ key: 'e35087c05c7c8f04ca9aef322917f8172c0c4f8f' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { key: '1f7a50fac729e19d0ee12d54bc67e071ff7b3f08', class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { key: '452641544297efc017529b674235e269285c4100', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), theme === 'md' && h("ion-ripple-effect", { key: '15795e15d27297e6e87f7fe39386bb8581993dfa' })))))), h("div", { key: '301fef1a45d1c523221ec2312276dd3a62f3134d', tabindex: "0", "aria-hidden": "true" })));
|
|
521
497
|
}
|
|
522
498
|
get el() { return getElement(this); }
|
|
523
499
|
static get watchers() { return {
|
|
@@ -6,7 +6,7 @@ import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './conf
|
|
|
6
6
|
import { c as createButtonActiveGesture } from './button-active-g6ZnZzDZ.js';
|
|
7
7
|
import { r as raf } from './helpers-Do7zwvM1.js';
|
|
8
8
|
import { c as createLockController } from './lock-controller-B-hirT0v.js';
|
|
9
|
-
import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall } from './overlays-
|
|
9
|
+
import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall } from './overlays-CvFHfO3y.js';
|
|
10
10
|
import { g as getClassMap } from './theme-DaJxRxSQ.js';
|
|
11
11
|
import { b as getIonMode, c as getIonTheme } from './ionic-global-CAZb-5i-.js';
|
|
12
12
|
import { c as createAnimation } from './animation-Cqe2x-Pt.js';
|
|
@@ -17,31 +17,6 @@ import './gesture-controller-BTEOs1at.js';
|
|
|
17
17
|
import './focus-visible-vXpMhGrs.js';
|
|
18
18
|
import './framework-delegate-CjVwn_KZ.js';
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* Ionic Alert Enter Animation
|
|
22
|
-
*/
|
|
23
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
24
|
-
const baseAnimation = createAnimation();
|
|
25
|
-
const backdropAnimation = createAnimation();
|
|
26
|
-
const wrapperAnimation = createAnimation();
|
|
27
|
-
backdropAnimation
|
|
28
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
29
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
30
|
-
.beforeStyles({
|
|
31
|
-
'pointer-events': 'none',
|
|
32
|
-
})
|
|
33
|
-
.afterClearStyles(['pointer-events']);
|
|
34
|
-
wrapperAnimation.addElement(baseEl.querySelector('.alert-wrapper')).keyframes([
|
|
35
|
-
{ offset: 0, opacity: '0.01', transform: 'scale(0.9)' },
|
|
36
|
-
{ offset: 1, opacity: '1', transform: 'scale(1)' },
|
|
37
|
-
]);
|
|
38
|
-
return baseAnimation
|
|
39
|
-
.addElement(baseEl)
|
|
40
|
-
.easing('ease-in-out')
|
|
41
|
-
.duration(150)
|
|
42
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
20
|
/**
|
|
46
21
|
* iOS Alert Enter Animation
|
|
47
22
|
*/
|
|
@@ -365,7 +340,7 @@ const Alert = class {
|
|
|
365
340
|
async present() {
|
|
366
341
|
const unlock = await this.lockController.lock();
|
|
367
342
|
await this.delegateController.attachViewToDom();
|
|
368
|
-
await present(this, 'alertEnter', iosEnterAnimation, mdEnterAnimation
|
|
343
|
+
await present(this, 'alertEnter', iosEnterAnimation, mdEnterAnimation).then(() => {
|
|
369
344
|
var _a, _b;
|
|
370
345
|
/**
|
|
371
346
|
* Check if alert has only one button and no inputs.
|
|
@@ -562,9 +537,9 @@ const Alert = class {
|
|
|
562
537
|
* If neither are defined, do not set aria-labelledby.
|
|
563
538
|
*/
|
|
564
539
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
565
|
-
return (h(Host, { key: '
|
|
540
|
+
return (h(Host, { key: '53f8b0e1035ca965ba44f8e1314c59a227b08173', tabindex: "-1", style: {
|
|
566
541
|
zIndex: `${20000 + overlayIndex}`,
|
|
567
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, h("ion-backdrop", { key: '
|
|
542
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, h("ion-backdrop", { key: '39499a198543709f538fa0328214d742754543ab', tappable: this.backdropDismiss }), h("div", { key: '16417758e5ac05cfa049db5086c1ffde81fc6156', tabindex: "0", "aria-hidden": "true" }), h("div", Object.assign({ key: 'cc7dde0877f70be21019cd2e8e6c843815ec9682', class: "alert-wrapper ion-overlay-wrapper", role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "0", ref: (el) => (this.wrapperEl = el) }, htmlAttributes), h("div", { key: '525d28d77b6467b441ff9d357049aec7565e6f6a', class: "alert-head" }, header && (h("h2", { key: '974fc725163da00216c3c8b7b6c72c005628e0fc', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (h("h2", { key: 'eedf04dbe331917c7b1348f8020d959119cc9f0f', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (h("h3", { key: '80dbbd75184a3857172eca25f30dee950c08709b', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { key: '0d83a74b7ae595d0593edadfe6b812435534abea', tabindex: "0", "aria-hidden": "true" })));
|
|
568
543
|
}
|
|
569
544
|
get el() { return getElement(this); }
|
|
570
545
|
static get watchers() { return {
|
|
@@ -6,7 +6,7 @@ import { c as caretLeftSvg } from './caret-left-fIOYmaqA.js';
|
|
|
6
6
|
import { c as caretRightSvg } from './caret-right-BYSs-jZz.js';
|
|
7
7
|
import { startFocusVisible } from './focus-visible-vXpMhGrs.js';
|
|
8
8
|
import { r as raf, g as getElementRoot, a as renderHiddenInput, e as clamp } from './helpers-Do7zwvM1.js';
|
|
9
|
-
import { F as FOCUS_TRAP_DISABLE_CLASS, d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall } from './overlays-
|
|
9
|
+
import { F as FOCUS_TRAP_DISABLE_CLASS, d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall } from './overlays-CvFHfO3y.js';
|
|
10
10
|
import { i as isRTL } from './dir-C53feagD.js';
|
|
11
11
|
import { c as createColorClasses, g as getClassMap } from './theme-DaJxRxSQ.js';
|
|
12
12
|
import { o as chevronForward, c as chevronBack, p as caretDownSharp, q as caretUpSharp, l as chevronDown } from './index-COG0_eom.js';
|
|
@@ -2043,30 +2043,6 @@ Datetime.style = {
|
|
|
2043
2043
|
md: datetimeMdCss()
|
|
2044
2044
|
};
|
|
2045
2045
|
|
|
2046
|
-
/**
|
|
2047
|
-
* Ionic Picker Enter Animation
|
|
2048
|
-
*/
|
|
2049
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
2050
|
-
const baseAnimation = createAnimation();
|
|
2051
|
-
const backdropAnimation = createAnimation();
|
|
2052
|
-
const wrapperAnimation = createAnimation();
|
|
2053
|
-
backdropAnimation
|
|
2054
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
2055
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
2056
|
-
.beforeStyles({
|
|
2057
|
-
'pointer-events': 'none',
|
|
2058
|
-
})
|
|
2059
|
-
.afterClearStyles(['pointer-events']);
|
|
2060
|
-
wrapperAnimation
|
|
2061
|
-
.addElement(baseEl.querySelector('.picker-wrapper'))
|
|
2062
|
-
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
|
|
2063
|
-
return baseAnimation
|
|
2064
|
-
.addElement(baseEl)
|
|
2065
|
-
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
2066
|
-
.duration(400)
|
|
2067
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
2068
|
-
};
|
|
2069
|
-
|
|
2070
2046
|
/**
|
|
2071
2047
|
* iOS Picker Enter Animation
|
|
2072
2048
|
*/
|
|
@@ -2232,7 +2208,7 @@ const Picker = class {
|
|
|
2232
2208
|
async present() {
|
|
2233
2209
|
const unlock = await this.lockController.lock();
|
|
2234
2210
|
await this.delegateController.attachViewToDom();
|
|
2235
|
-
await present(this, 'pickerEnter', iosEnterAnimation, iosEnterAnimation,
|
|
2211
|
+
await present(this, 'pickerEnter', iosEnterAnimation, iosEnterAnimation, undefined);
|
|
2236
2212
|
if (this.duration > 0) {
|
|
2237
2213
|
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration);
|
|
2238
2214
|
}
|
|
@@ -2317,11 +2293,11 @@ const Picker = class {
|
|
|
2317
2293
|
render() {
|
|
2318
2294
|
const { htmlAttributes } = this;
|
|
2319
2295
|
const theme = getIonTheme(this);
|
|
2320
|
-
return (h(Host, Object.assign({ key: '
|
|
2296
|
+
return (h(Host, Object.assign({ key: 'efcc823fad9cb37c1379bef4f4b84c6461f3a3a6', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2321
2297
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2322
2298
|
}, class: Object.assign({ [theme]: true,
|
|
2323
2299
|
// Used internally for styling
|
|
2324
|
-
[`picker-${theme}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
2300
|
+
[`picker-${theme}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '3f44bf34e039210ae149c590c393ee9f7fb85da0', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'c2a51a89c525b1a22cbc8583cd30f41c3c356d4f', tabindex: "0", "aria-hidden": "true" }), h("div", { key: '23837ffe309d0aad9b8ea09d7ac94d21040ef0d7', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: '91ba7e553d570768142715ded4bcc27fceedbce4', 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: '22661cafeb555f1435ec1e0a122404a48136095b', class: "picker-columns" }, h("div", { key: '5f3db32468b8c60f63c70d81a27b18cce6f2e259', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-legacy-column", { col: c })), h("div", { key: '1bae6b170125b1671a480506ba73636b42b65909', class: "picker-below-highlight" }))), h("div", { key: '91beb94ce537122fbd6cd0c2bd3c00f908d0fefe', tabindex: "0", "aria-hidden": "true" })));
|
|
2325
2301
|
}
|
|
2326
2302
|
get el() { return getElement(this); }
|
|
2327
2303
|
static get watchers() { return {
|
|
@@ -5,7 +5,7 @@ import { r as registerInstance, c as createEvent, e as config, h, d as Host, g a
|
|
|
5
5
|
import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config-BvDxfLa-.js';
|
|
6
6
|
import { r as raf } from './helpers-Do7zwvM1.js';
|
|
7
7
|
import { c as createLockController } from './lock-controller-B-hirT0v.js';
|
|
8
|
-
import { d as createDelegateController, e as createTriggerController, B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod } from './overlays-
|
|
8
|
+
import { d as createDelegateController, e as createTriggerController, B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod } from './overlays-CvFHfO3y.js';
|
|
9
9
|
import { g as getClassMap } from './theme-DaJxRxSQ.js';
|
|
10
10
|
import { c as getIonTheme } from './ionic-global-CAZb-5i-.js';
|
|
11
11
|
import { c as createAnimation } from './animation-Cqe2x-Pt.js';
|
|
@@ -13,31 +13,6 @@ import './focus-visible-vXpMhGrs.js';
|
|
|
13
13
|
import './framework-delegate-CjVwn_KZ.js';
|
|
14
14
|
import './gesture-controller-BTEOs1at.js';
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* Ionic Loading Enter Animation
|
|
18
|
-
*/
|
|
19
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
20
|
-
const baseAnimation = createAnimation();
|
|
21
|
-
const backdropAnimation = createAnimation();
|
|
22
|
-
const wrapperAnimation = createAnimation();
|
|
23
|
-
backdropAnimation
|
|
24
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
25
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
26
|
-
.beforeStyles({
|
|
27
|
-
'pointer-events': 'none',
|
|
28
|
-
})
|
|
29
|
-
.afterClearStyles(['pointer-events']);
|
|
30
|
-
wrapperAnimation.addElement(baseEl.querySelector('.loading-wrapper')).keyframes([
|
|
31
|
-
{ offset: 0, opacity: 0.01, transform: 'scale(1.1)' },
|
|
32
|
-
{ offset: 1, opacity: 1, transform: 'scale(1)' },
|
|
33
|
-
]);
|
|
34
|
-
return baseAnimation
|
|
35
|
-
.addElement(baseEl)
|
|
36
|
-
.easing('ease-in-out')
|
|
37
|
-
.duration(200)
|
|
38
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
16
|
/**
|
|
42
17
|
* iOS Loading Enter Animation
|
|
43
18
|
*/
|
|
@@ -244,7 +219,7 @@ const Loading = class {
|
|
|
244
219
|
async present() {
|
|
245
220
|
const unlock = await this.lockController.lock();
|
|
246
221
|
await this.delegateController.attachViewToDom();
|
|
247
|
-
await present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation
|
|
222
|
+
await present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation);
|
|
248
223
|
if (this.duration > 0) {
|
|
249
224
|
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration + 10);
|
|
250
225
|
}
|
|
@@ -302,9 +277,9 @@ const Loading = class {
|
|
|
302
277
|
* Otherwise, don't set aria-labelledby.
|
|
303
278
|
*/
|
|
304
279
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
305
|
-
return (h(Host, Object.assign({ key: '
|
|
280
|
+
return (h(Host, Object.assign({ key: '0c475f8e28e680e28e09317557795fc56e0835d8', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
306
281
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
307
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
282
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: 'd7e88feb6df8edbc326a84d07b294618f7ce6adc', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'f9622f45b2d9e913c325b228a1e6ed03cf2b98e8', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'f4dfdce70c4515878b247d0cc116b5cec2cf79a4', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: '6d4475e00c444eb3d217813ae8cc1a02a97b969e', class: "loading-spinner" }, h("ion-spinner", { key: 'd9ad8dd56ec7677c18d06936c1a1b21a0a6a87a8', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: 'bd3159e18f33ec25d3480d47ce33fa7dfd1f1460', tabindex: "0", "aria-hidden": "true" })));
|
|
308
283
|
}
|
|
309
284
|
get el() { return getElement(this); }
|
|
310
285
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, e as config, j as printIonError, h, d as Host, g as getElement } from './index-Omi_TcwW.js';
|
|
5
5
|
import { g as getTimeGivenProgression } from './cubic-bezier-hHmYLOfE.js';
|
|
6
|
-
import { o as getPresentedOverlay, B as BACKDROP, n as focusFirstDescendant, q as focusLastDescendant, G as GESTURE } from './overlays-
|
|
6
|
+
import { o as getPresentedOverlay, B as BACKDROP, n as focusFirstDescendant, q as focusLastDescendant, G as GESTURE } from './overlays-CvFHfO3y.js';
|
|
7
7
|
import { G as GESTURE_CONTROLLER } from './gesture-controller-BTEOs1at.js';
|
|
8
8
|
import { b as getIonMode, a as isPlatform, c as getIonTheme, s as shouldUseCloseWatcher } from './ionic-global-CAZb-5i-.js';
|
|
9
9
|
import { p as isEndSide, i as inheritAriaAttributes, l as assert, e as clamp } from './helpers-Do7zwvM1.js';
|