@ionic/core 8.7.3-dev.11755696506.17b8097b → 8.7.3-dev.11755697669.1be2024b
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/overlays.js +9 -6
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ion-alert.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-loading.cjs.entry.js +1 -1
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +1 -1
- 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-toast.cjs.entry.js +1 -1
- package/dist/cjs/{overlays-DFkeeMZX.js → overlays-Ca4z9krz.js} +9 -6
- package/dist/collection/utils/overlays.js +9 -6
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +1 -1
- package/dist/esm/ion-alert.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +1 -1
- package/dist/esm/ion-loading.entry.js +1 -1
- package/dist/esm/ion-menu_3.entry.js +1 -1
- package/dist/esm/ion-modal.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +1 -1
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +1 -1
- package/dist/esm/{overlays-BfCgLYdD.js → overlays-C14Rvrme.js} +9 -6
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-b92a19c8.entry.js → p-05baca9e.entry.js} +1 -1
- package/dist/ionic/{p-e61fd4b2.entry.js → p-1be8ffce.entry.js} +1 -1
- package/dist/ionic/{p-5c138549.entry.js → p-2e296f4a.entry.js} +1 -1
- package/dist/ionic/{p-eb9b64a6.entry.js → p-31393988.entry.js} +1 -1
- package/dist/ionic/{p-31f7216f.entry.js → p-3c51f2cd.entry.js} +1 -1
- package/dist/ionic/{p-9f8f01e6.entry.js → p-5b64a786.entry.js} +1 -1
- package/dist/ionic/{p-ef5372b6.entry.js → p-6d655180.entry.js} +1 -1
- package/dist/ionic/p-DMk_cMN9.js +4 -0
- package/dist/ionic/{p-4d57f91a.entry.js → p-a67512ba.entry.js} +1 -1
- package/dist/ionic/{p-1e6a6fde.entry.js → p-b1c70f1c.entry.js} +1 -1
- package/dist/ionic/{p-e206b074.entry.js → p-b6432111.entry.js} +1 -1
- package/hydrate/index.js +9 -6
- package/hydrate/index.mjs +9 -6
- package/package.json +1 -1
- package/dist/ionic/p-ly6Zj1CK.js +0 -4
package/components/overlays.js
CHANGED
|
@@ -504,11 +504,12 @@ const setRootAriaHidden = (hidden = false) => {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
|
|
507
|
-
var _a, _b;
|
|
507
|
+
var _a, _b, _c;
|
|
508
508
|
if (overlay.presented) {
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
511
|
console.log("presenting overlay...");
|
|
512
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
512
513
|
/**
|
|
513
514
|
* Due to accessibility guidelines, toasts do not have
|
|
514
515
|
* focus traps.
|
|
@@ -518,12 +519,13 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
518
519
|
*/
|
|
519
520
|
if (overlay.el.tagName !== 'ION-TOAST') {
|
|
520
521
|
setRootAriaHidden(true);
|
|
522
|
+
document.body.classList.add(BACKDROP_NO_SCROLL);
|
|
521
523
|
}
|
|
522
524
|
hideUnderlyingOverlaysFromScreenReaders(overlay.el);
|
|
523
525
|
hideAnimatingOverlayFromScreenReaders(overlay.el);
|
|
524
526
|
overlay.presented = true;
|
|
525
527
|
overlay.willPresent.emit();
|
|
526
|
-
(
|
|
528
|
+
(_b = overlay.willPresentShorthand) === null || _b === void 0 ? void 0 : _b.emit();
|
|
527
529
|
const mode = getIonMode(overlay);
|
|
528
530
|
// get the user's animation fn if one was provided
|
|
529
531
|
const animationBuilder = overlay.enterAnimation
|
|
@@ -532,7 +534,7 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
532
534
|
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
533
535
|
if (completed) {
|
|
534
536
|
overlay.didPresent.emit();
|
|
535
|
-
(
|
|
537
|
+
(_c = overlay.didPresentShorthand) === null || _c === void 0 ? void 0 : _c.emit();
|
|
536
538
|
}
|
|
537
539
|
/**
|
|
538
540
|
* When an overlay that steals focus
|
|
@@ -619,10 +621,11 @@ const restoreElementFocus = async (overlayEl) => {
|
|
|
619
621
|
}
|
|
620
622
|
};
|
|
621
623
|
const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {
|
|
622
|
-
var _a, _b;
|
|
624
|
+
var _a, _b, _c;
|
|
623
625
|
if (!overlay.presented) {
|
|
624
626
|
return false;
|
|
625
627
|
}
|
|
628
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
626
629
|
const presentedOverlays = doc !== undefined ? getPresentedOverlays(doc) : [];
|
|
627
630
|
/**
|
|
628
631
|
* For accessibility, toasts lack focus traps and don't receive
|
|
@@ -656,7 +659,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
656
659
|
// Overlay contents should not be clickable during dismiss
|
|
657
660
|
overlay.el.style.setProperty('pointer-events', 'none');
|
|
658
661
|
overlay.willDismiss.emit({ data, role });
|
|
659
|
-
(
|
|
662
|
+
(_b = overlay.willDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });
|
|
660
663
|
const mode = getIonMode(overlay);
|
|
661
664
|
const animationBuilder = overlay.leaveAnimation
|
|
662
665
|
? overlay.leaveAnimation
|
|
@@ -666,7 +669,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
666
669
|
await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
667
670
|
}
|
|
668
671
|
overlay.didDismiss.emit({ data, role });
|
|
669
|
-
(
|
|
672
|
+
(_c = overlay.didDismissShorthand) === null || _c === void 0 ? void 0 : _c.emit({ data, role });
|
|
670
673
|
// Get a reference to all animations currently assigned to this overlay
|
|
671
674
|
// Then tear them down to return the overlay to its initial visual state
|
|
672
675
|
const animations = activeAnimations.get(overlay) || [];
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -15,7 +15,7 @@ var index$2 = require('./index-DNh170BW.js');
|
|
|
15
15
|
var config = require('./config-CKhELRRu.js');
|
|
16
16
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
17
17
|
var index$3 = require('./index-D24wggHR.js');
|
|
18
|
-
var overlays = require('./overlays-
|
|
18
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
19
19
|
require('./index-DkNv4J_i.js');
|
|
20
20
|
require('./gesture-controller-dtqlP_q4.js');
|
|
21
21
|
require('./hardware-back-button-BxdNu76F.js');
|
|
@@ -7,7 +7,7 @@ var index = require('./index-DNh170BW.js');
|
|
|
7
7
|
var buttonActive = require('./button-active-BzZenWWH.js');
|
|
8
8
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
9
9
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
10
|
-
var overlays = require('./overlays-
|
|
10
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
11
11
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
12
12
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
13
13
|
var animation = require('./animation-ZJ1lAkZD.js');
|
|
@@ -8,7 +8,7 @@ var config = require('./config-CKhELRRu.js');
|
|
|
8
8
|
var buttonActive = require('./button-active-BzZenWWH.js');
|
|
9
9
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
10
10
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
11
|
-
var overlays = require('./overlays-
|
|
11
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
12
12
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
13
13
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
14
14
|
var animation = require('./animation-ZJ1lAkZD.js');
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
var index = require('./index-DNh170BW.js');
|
|
7
7
|
var focusVisible = require('./focus-visible-CCvKiLh3.js');
|
|
8
8
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
9
|
-
var overlays = require('./overlays-
|
|
9
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
10
10
|
var dir = require('./dir-Cn0z1rJH.js');
|
|
11
11
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
12
12
|
var index$1 = require('./index-DqmRDbxg.js');
|
|
@@ -7,7 +7,7 @@ var index = require('./index-DNh170BW.js');
|
|
|
7
7
|
var config = require('./config-CKhELRRu.js');
|
|
8
8
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
9
9
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
10
|
-
var overlays = require('./overlays-
|
|
10
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
11
11
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
12
12
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
13
13
|
var animation = require('./animation-ZJ1lAkZD.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
var index = require('./index-DNh170BW.js');
|
|
7
7
|
var cubicBezier = require('./cubic-bezier-DAjy1V-e.js');
|
|
8
|
-
var overlays = require('./overlays-
|
|
8
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
9
9
|
var gestureController = require('./gesture-controller-dtqlP_q4.js');
|
|
10
10
|
var hardwareBackButton = require('./hardware-back-button-BxdNu76F.js');
|
|
11
11
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
@@ -9,7 +9,7 @@ var frameworkDelegate = require('./framework-delegate-WkyjrnCx.js');
|
|
|
9
9
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
10
10
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
11
11
|
var capacitor = require('./capacitor-DmA66EwP.js');
|
|
12
|
-
var overlays = require('./overlays-
|
|
12
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
13
13
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
14
14
|
var index$4 = require('./index-BzEyuIww.js');
|
|
15
15
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
var index = require('./index-DNh170BW.js');
|
|
7
|
-
var overlays = require('./overlays-
|
|
7
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
8
8
|
var frameworkDelegate = require('./framework-delegate-WkyjrnCx.js');
|
|
9
9
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
10
10
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
var index = require('./index-DNh170BW.js');
|
|
7
7
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
8
|
-
var overlays = require('./overlays-
|
|
8
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
9
9
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
10
10
|
require('./index-DkNv4J_i.js');
|
|
11
11
|
require('./helpers-DgwmcYAu.js');
|
|
@@ -7,7 +7,7 @@ var index = require('./index-DNh170BW.js');
|
|
|
7
7
|
var notchController = require('./notch-controller-Bf5Rr4R5.js');
|
|
8
8
|
var compareWithUtils = require('./compare-with-utils-DSicavqM.js');
|
|
9
9
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
10
|
-
var overlays = require('./overlays-
|
|
10
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
11
11
|
var dir = require('./dir-Cn0z1rJH.js');
|
|
12
12
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
13
13
|
var watchOptions = require('./watch-options-CviOsrTS.js');
|
|
@@ -7,7 +7,7 @@ var index$1 = require('./index-DNh170BW.js');
|
|
|
7
7
|
var config = require('./config-CKhELRRu.js');
|
|
8
8
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
9
9
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
10
|
-
var overlays = require('./overlays-
|
|
10
|
+
var overlays = require('./overlays-Ca4z9krz.js');
|
|
11
11
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
12
12
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
13
13
|
var animation = require('./animation-ZJ1lAkZD.js');
|
|
@@ -506,11 +506,12 @@ const setRootAriaHidden = (hidden = false) => {
|
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
|
|
509
|
-
var _a, _b;
|
|
509
|
+
var _a, _b, _c;
|
|
510
510
|
if (overlay.presented) {
|
|
511
511
|
return;
|
|
512
512
|
}
|
|
513
513
|
console.log("presenting overlay...");
|
|
514
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
514
515
|
/**
|
|
515
516
|
* Due to accessibility guidelines, toasts do not have
|
|
516
517
|
* focus traps.
|
|
@@ -520,12 +521,13 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
520
521
|
*/
|
|
521
522
|
if (overlay.el.tagName !== 'ION-TOAST') {
|
|
522
523
|
setRootAriaHidden(true);
|
|
524
|
+
document.body.classList.add(gestureController.BACKDROP_NO_SCROLL);
|
|
523
525
|
}
|
|
524
526
|
hideUnderlyingOverlaysFromScreenReaders(overlay.el);
|
|
525
527
|
hideAnimatingOverlayFromScreenReaders(overlay.el);
|
|
526
528
|
overlay.presented = true;
|
|
527
529
|
overlay.willPresent.emit();
|
|
528
|
-
(
|
|
530
|
+
(_b = overlay.willPresentShorthand) === null || _b === void 0 ? void 0 : _b.emit();
|
|
529
531
|
const mode = ionicGlobal.getIonMode(overlay);
|
|
530
532
|
// get the user's animation fn if one was provided
|
|
531
533
|
const animationBuilder = overlay.enterAnimation
|
|
@@ -534,7 +536,7 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
534
536
|
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
535
537
|
if (completed) {
|
|
536
538
|
overlay.didPresent.emit();
|
|
537
|
-
(
|
|
539
|
+
(_c = overlay.didPresentShorthand) === null || _c === void 0 ? void 0 : _c.emit();
|
|
538
540
|
}
|
|
539
541
|
/**
|
|
540
542
|
* When an overlay that steals focus
|
|
@@ -621,10 +623,11 @@ const restoreElementFocus = async (overlayEl) => {
|
|
|
621
623
|
}
|
|
622
624
|
};
|
|
623
625
|
const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {
|
|
624
|
-
var _a, _b;
|
|
626
|
+
var _a, _b, _c;
|
|
625
627
|
if (!overlay.presented) {
|
|
626
628
|
return false;
|
|
627
629
|
}
|
|
630
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
628
631
|
const presentedOverlays = index$1.doc !== undefined ? getPresentedOverlays(index$1.doc) : [];
|
|
629
632
|
/**
|
|
630
633
|
* For accessibility, toasts lack focus traps and don't receive
|
|
@@ -658,7 +661,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
658
661
|
// Overlay contents should not be clickable during dismiss
|
|
659
662
|
overlay.el.style.setProperty('pointer-events', 'none');
|
|
660
663
|
overlay.willDismiss.emit({ data, role });
|
|
661
|
-
(
|
|
664
|
+
(_b = overlay.willDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });
|
|
662
665
|
const mode = ionicGlobal.getIonMode(overlay);
|
|
663
666
|
const animationBuilder = overlay.leaveAnimation
|
|
664
667
|
? overlay.leaveAnimation
|
|
@@ -668,7 +671,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
668
671
|
await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
669
672
|
}
|
|
670
673
|
overlay.didDismiss.emit({ data, role });
|
|
671
|
-
(
|
|
674
|
+
(_c = overlay.didDismissShorthand) === null || _c === void 0 ? void 0 : _c.emit({ data, role });
|
|
672
675
|
// Get a reference to all animations currently assigned to this overlay
|
|
673
676
|
// Then tear them down to return the overlay to its initial visual state
|
|
674
677
|
const animations = activeAnimations.get(overlay) || [];
|
|
@@ -426,11 +426,12 @@ export const setRootAriaHidden = (hidden = false) => {
|
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
428
|
export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
|
|
429
|
-
var _a, _b;
|
|
429
|
+
var _a, _b, _c;
|
|
430
430
|
if (overlay.presented) {
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
433
|
console.log("presenting overlay...");
|
|
434
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
434
435
|
/**
|
|
435
436
|
* Due to accessibility guidelines, toasts do not have
|
|
436
437
|
* focus traps.
|
|
@@ -440,12 +441,13 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
|
|
|
440
441
|
*/
|
|
441
442
|
if (overlay.el.tagName !== 'ION-TOAST') {
|
|
442
443
|
setRootAriaHidden(true);
|
|
444
|
+
document.body.classList.add(BACKDROP_NO_SCROLL);
|
|
443
445
|
}
|
|
444
446
|
hideUnderlyingOverlaysFromScreenReaders(overlay.el);
|
|
445
447
|
hideAnimatingOverlayFromScreenReaders(overlay.el);
|
|
446
448
|
overlay.presented = true;
|
|
447
449
|
overlay.willPresent.emit();
|
|
448
|
-
(
|
|
450
|
+
(_b = overlay.willPresentShorthand) === null || _b === void 0 ? void 0 : _b.emit();
|
|
449
451
|
const mode = getIonMode(overlay);
|
|
450
452
|
// get the user's animation fn if one was provided
|
|
451
453
|
const animationBuilder = overlay.enterAnimation
|
|
@@ -454,7 +456,7 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
|
|
|
454
456
|
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
455
457
|
if (completed) {
|
|
456
458
|
overlay.didPresent.emit();
|
|
457
|
-
(
|
|
459
|
+
(_c = overlay.didPresentShorthand) === null || _c === void 0 ? void 0 : _c.emit();
|
|
458
460
|
}
|
|
459
461
|
/**
|
|
460
462
|
* When an overlay that steals focus
|
|
@@ -541,10 +543,11 @@ const restoreElementFocus = async (overlayEl) => {
|
|
|
541
543
|
}
|
|
542
544
|
};
|
|
543
545
|
export const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {
|
|
544
|
-
var _a, _b;
|
|
546
|
+
var _a, _b, _c;
|
|
545
547
|
if (!overlay.presented) {
|
|
546
548
|
return false;
|
|
547
549
|
}
|
|
550
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
548
551
|
const presentedOverlays = doc !== undefined ? getPresentedOverlays(doc) : [];
|
|
549
552
|
/**
|
|
550
553
|
* For accessibility, toasts lack focus traps and don't receive
|
|
@@ -578,7 +581,7 @@ export const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLe
|
|
|
578
581
|
// Overlay contents should not be clickable during dismiss
|
|
579
582
|
overlay.el.style.setProperty('pointer-events', 'none');
|
|
580
583
|
overlay.willDismiss.emit({ data, role });
|
|
581
|
-
(
|
|
584
|
+
(_b = overlay.willDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });
|
|
582
585
|
const mode = getIonMode(overlay);
|
|
583
586
|
const animationBuilder = overlay.leaveAnimation
|
|
584
587
|
? overlay.leaveAnimation
|
|
@@ -588,7 +591,7 @@ export const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLe
|
|
|
588
591
|
await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
589
592
|
}
|
|
590
593
|
overlay.didDismiss.emit({ data, role });
|
|
591
|
-
(
|
|
594
|
+
(_c = overlay.didDismissShorthand) === null || _c === void 0 ? void 0 : _c.emit({ data, role });
|
|
592
595
|
// Get a reference to all animations currently assigned to this overlay
|
|
593
596
|
// Then tear them down to return the overlay to its initial visual state
|
|
594
597
|
const animations = activeAnimations.get(overlay) || [];
|
package/dist/docs.json
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export { L as LogLevel } from './index-4DxY6_gG.js';
|
|
|
13
13
|
export { I as IonicSafeString, g as getMode, s as setupConfig } from './config-Dx_6wPIJ.js';
|
|
14
14
|
export { o as openURL } from './theme-DiVJyqlX.js';
|
|
15
15
|
export { m as menuController } from './index-CXSTcaAW.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-C14Rvrme.js';
|
|
17
17
|
import './index-ZjP4CjeZ.js';
|
|
18
18
|
import './gesture-controller-BTEOs1at.js';
|
|
19
19
|
import './hardware-back-button-Dhbd-23H.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-DBUPuLNw.js';
|
|
6
6
|
import { r as raf } from './helpers-8KSQQGQy.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-C14Rvrme.js';
|
|
9
9
|
import { g as getClassMap } from './theme-DiVJyqlX.js';
|
|
10
10
|
import { b as getIonMode } from './ionic-global-CTSyufhF.js';
|
|
11
11
|
import { c as createAnimation } from './animation-BvhAtgca.js';
|
|
@@ -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-DBUPuLNw.js';
|
|
7
7
|
import { r as raf } from './helpers-8KSQQGQy.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-C14Rvrme.js';
|
|
10
10
|
import { g as getClassMap } from './theme-DiVJyqlX.js';
|
|
11
11
|
import { b as getIonMode } from './ionic-global-CTSyufhF.js';
|
|
12
12
|
import { c as createAnimation } from './animation-BvhAtgca.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { j as printIonError, f as printIonWarning, r as registerInstance, c as createEvent, w as writeTask, h, d as Host, g as getElement } from './index-4DxY6_gG.js';
|
|
5
5
|
import { startFocusVisible } from './focus-visible-BmVRXR1y.js';
|
|
6
6
|
import { r as raf, g as getElementRoot, a as renderHiddenInput, e as clamp } from './helpers-8KSQQGQy.js';
|
|
7
|
-
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-
|
|
7
|
+
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-C14Rvrme.js';
|
|
8
8
|
import { i as isRTL } from './dir-C53feagD.js';
|
|
9
9
|
import { c as createColorClasses, g as getClassMap } from './theme-DiVJyqlX.js';
|
|
10
10
|
import { l as chevronDown, o as caretUpSharp, p as chevronForward, q as caretDownSharp, c as chevronBack } from './index-DV3sJJW8.js';
|
|
@@ -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-Dx_6wPIJ.js';
|
|
6
6
|
import { r as raf } from './helpers-8KSQQGQy.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-C14Rvrme.js';
|
|
9
9
|
import { g as getClassMap } from './theme-DiVJyqlX.js';
|
|
10
10
|
import { b as getIonMode } from './ionic-global-CTSyufhF.js';
|
|
11
11
|
import { c as createAnimation } from './animation-BvhAtgca.js';
|
|
@@ -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-4DxY6_gG.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-C14Rvrme.js';
|
|
7
7
|
import { G as GESTURE_CONTROLLER } from './gesture-controller-BTEOs1at.js';
|
|
8
8
|
import { shouldUseCloseWatcher } from './hardware-back-button-Dhbd-23H.js';
|
|
9
9
|
import { o as isEndSide, i as inheritAriaAttributes, l as assert, e as clamp } from './helpers-8KSQQGQy.js';
|
|
@@ -7,7 +7,7 @@ import { C as CoreDelegate, a as attachComponent, d as detachComponent } from '.
|
|
|
7
7
|
import { e as clamp, g as getElementRoot, r as raf, b as inheritAttributes, h as hasLazyBuild } from './helpers-8KSQQGQy.js';
|
|
8
8
|
import { c as createLockController } from './lock-controller-B-hirT0v.js';
|
|
9
9
|
import { g as getCapacitor } from './capacitor-CFERIeaU.js';
|
|
10
|
-
import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, F as FOCUS_TRAP_DISABLE_CLASS, e as createTriggerController, B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod } from './overlays-
|
|
10
|
+
import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, F as FOCUS_TRAP_DISABLE_CLASS, e as createTriggerController, B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod } from './overlays-C14Rvrme.js';
|
|
11
11
|
import { g as getClassMap } from './theme-DiVJyqlX.js';
|
|
12
12
|
import { e as deepReady, w as waitForMount } from './index-Dp7GXH1z.js';
|
|
13
13
|
import { b as getIonMode } from './ionic-global-CTSyufhF.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, f as printIonWarning, h, d as Host, g as getElement } from './index-4DxY6_gG.js';
|
|
5
|
-
import { B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, n as focusFirstDescendant, g as dismiss, h as eventMethod, F as FOCUS_TRAP_DISABLE_CLASS } from './overlays-
|
|
5
|
+
import { B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, n as focusFirstDescendant, g as dismiss, h as eventMethod, F as FOCUS_TRAP_DISABLE_CLASS } from './overlays-C14Rvrme.js';
|
|
6
6
|
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate-BLEBgH06.js';
|
|
7
7
|
import { g as getElementRoot, r as raf, f as addEventListener, h as hasLazyBuild } from './helpers-8KSQQGQy.js';
|
|
8
8
|
import { c as createLockController } from './lock-controller-B-hirT0v.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, h, i as forceUpdate, d as Host, g as getElement } from './index-4DxY6_gG.js';
|
|
5
5
|
import { b as getIonMode } from './ionic-global-CTSyufhF.js';
|
|
6
|
-
import { s as safeCall } from './overlays-
|
|
6
|
+
import { s as safeCall } from './overlays-C14Rvrme.js';
|
|
7
7
|
import { g as getClassMap } from './theme-DiVJyqlX.js';
|
|
8
8
|
import './index-ZjP4CjeZ.js';
|
|
9
9
|
import './helpers-8KSQQGQy.js';
|
|
@@ -5,7 +5,7 @@ import { r as registerInstance, c as createEvent, f as printIonWarning, h, d as
|
|
|
5
5
|
import { c as createNotchController } from './notch-controller-lb417-kU.js';
|
|
6
6
|
import { i as isOptionSelected, c as compareOptions } from './compare-with-utils-sObYyvOy.js';
|
|
7
7
|
import { b as inheritAttributes, a as renderHiddenInput, n as focusVisibleElement } from './helpers-8KSQQGQy.js';
|
|
8
|
-
import { c as popoverController, b as actionSheetController, a as alertController, m as modalController, s as safeCall } from './overlays-
|
|
8
|
+
import { c as popoverController, b as actionSheetController, a as alertController, m as modalController, s as safeCall } from './overlays-C14Rvrme.js';
|
|
9
9
|
import { i as isRTL } from './dir-C53feagD.js';
|
|
10
10
|
import { h as hostContext, c as createColorClasses, g as getClassMap } from './theme-DiVJyqlX.js';
|
|
11
11
|
import { w as watchForOptions } from './watch-options-Dtdm8lKC.js';
|
|
@@ -5,7 +5,7 @@ import { f as printIonWarning, r as registerInstance, c as createEvent, e as con
|
|
|
5
5
|
import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config-Dx_6wPIJ.js';
|
|
6
6
|
import { g as getElementRoot, r as raf } from './helpers-8KSQQGQy.js';
|
|
7
7
|
import { c as createLockController } from './lock-controller-B-hirT0v.js';
|
|
8
|
-
import { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays-
|
|
8
|
+
import { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays-C14Rvrme.js';
|
|
9
9
|
import { c as createColorClasses, g as getClassMap } from './theme-DiVJyqlX.js';
|
|
10
10
|
import { b as getIonMode } from './ionic-global-CTSyufhF.js';
|
|
11
11
|
import { c as createAnimation } from './animation-BvhAtgca.js';
|
|
@@ -504,11 +504,12 @@ const setRootAriaHidden = (hidden = false) => {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
|
|
507
|
-
var _a, _b;
|
|
507
|
+
var _a, _b, _c;
|
|
508
508
|
if (overlay.presented) {
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
511
|
console.log("presenting overlay...");
|
|
512
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
512
513
|
/**
|
|
513
514
|
* Due to accessibility guidelines, toasts do not have
|
|
514
515
|
* focus traps.
|
|
@@ -518,12 +519,13 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
518
519
|
*/
|
|
519
520
|
if (overlay.el.tagName !== 'ION-TOAST') {
|
|
520
521
|
setRootAriaHidden(true);
|
|
522
|
+
document.body.classList.add(BACKDROP_NO_SCROLL);
|
|
521
523
|
}
|
|
522
524
|
hideUnderlyingOverlaysFromScreenReaders(overlay.el);
|
|
523
525
|
hideAnimatingOverlayFromScreenReaders(overlay.el);
|
|
524
526
|
overlay.presented = true;
|
|
525
527
|
overlay.willPresent.emit();
|
|
526
|
-
(
|
|
528
|
+
(_b = overlay.willPresentShorthand) === null || _b === void 0 ? void 0 : _b.emit();
|
|
527
529
|
const mode = getIonMode(overlay);
|
|
528
530
|
// get the user's animation fn if one was provided
|
|
529
531
|
const animationBuilder = overlay.enterAnimation
|
|
@@ -532,7 +534,7 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
532
534
|
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
533
535
|
if (completed) {
|
|
534
536
|
overlay.didPresent.emit();
|
|
535
|
-
(
|
|
537
|
+
(_c = overlay.didPresentShorthand) === null || _c === void 0 ? void 0 : _c.emit();
|
|
536
538
|
}
|
|
537
539
|
/**
|
|
538
540
|
* When an overlay that steals focus
|
|
@@ -619,10 +621,11 @@ const restoreElementFocus = async (overlayEl) => {
|
|
|
619
621
|
}
|
|
620
622
|
};
|
|
621
623
|
const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnimation, opts) => {
|
|
622
|
-
var _a, _b;
|
|
624
|
+
var _a, _b, _c;
|
|
623
625
|
if (!overlay.presented) {
|
|
624
626
|
return false;
|
|
625
627
|
}
|
|
628
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
626
629
|
const presentedOverlays = doc !== undefined ? getPresentedOverlays(doc) : [];
|
|
627
630
|
/**
|
|
628
631
|
* For accessibility, toasts lack focus traps and don't receive
|
|
@@ -656,7 +659,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
656
659
|
// Overlay contents should not be clickable during dismiss
|
|
657
660
|
overlay.el.style.setProperty('pointer-events', 'none');
|
|
658
661
|
overlay.willDismiss.emit({ data, role });
|
|
659
|
-
(
|
|
662
|
+
(_b = overlay.willDismissShorthand) === null || _b === void 0 ? void 0 : _b.emit({ data, role });
|
|
660
663
|
const mode = getIonMode(overlay);
|
|
661
664
|
const animationBuilder = overlay.leaveAnimation
|
|
662
665
|
? overlay.leaveAnimation
|
|
@@ -666,7 +669,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
666
669
|
await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
667
670
|
}
|
|
668
671
|
overlay.didDismiss.emit({ data, role });
|
|
669
|
-
(
|
|
672
|
+
(_c = overlay.didDismissShorthand) === null || _c === void 0 ? void 0 : _c.emit({ data, role });
|
|
670
673
|
// Get a reference to all animations currently assigned to this overlay
|
|
671
674
|
// Then tear them down to return the overlay to its initial visual state
|
|
672
675
|
const animations = activeAnimations.get(overlay) || [];
|
package/dist/ionic/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
export{c as createAnimation}from"./p-C87oPMMF.js";export{a as LIFECYCLE_DID_ENTER,c as LIFECYCLE_DID_LEAVE,L as LIFECYCLE_WILL_ENTER,b as LIFECYCLE_WILL_LEAVE,d as LIFECYCLE_WILL_UNLOAD,g as getIonPageElement}from"./p-DCuOL88l.js";export{iosTransitionAnimation}from"./p-BB-JoKGB.js";export{mdTransitionAnimation}from"./p-LaGjiAVo.js";export{g as getTimeGivenProgression}from"./p-hHmYLOfE.js";export{createGesture}from"./p-Cl0B-RWe.js";export{g as getPlatforms,i as initialize,a as isPlatform}from"./p-Br3vSlYh.js";export{c as componentOnReady}from"./p-C-Cct-6D.js";export{L as LogLevel}from"./p-4DxY6_gG.js";export{I as IonicSafeString,g as getMode,s as setupConfig}from"./p-EnaLTYYj.js";export{o as openURL}from"./p-DiVJyqlX.js";export{m as menuController}from"./p-C8d2ebIg.js";export{b as actionSheetController,a as alertController,l as loadingController,m as modalController,p as pickerController,c as popoverController,t as toastController}from"./p-
|
|
4
|
+
export{c as createAnimation}from"./p-C87oPMMF.js";export{a as LIFECYCLE_DID_ENTER,c as LIFECYCLE_DID_LEAVE,L as LIFECYCLE_WILL_ENTER,b as LIFECYCLE_WILL_LEAVE,d as LIFECYCLE_WILL_UNLOAD,g as getIonPageElement}from"./p-DCuOL88l.js";export{iosTransitionAnimation}from"./p-BB-JoKGB.js";export{mdTransitionAnimation}from"./p-LaGjiAVo.js";export{g as getTimeGivenProgression}from"./p-hHmYLOfE.js";export{createGesture}from"./p-Cl0B-RWe.js";export{g as getPlatforms,i as initialize,a as isPlatform}from"./p-Br3vSlYh.js";export{c as componentOnReady}from"./p-C-Cct-6D.js";export{L as LogLevel}from"./p-4DxY6_gG.js";export{I as IonicSafeString,g as getMode,s as setupConfig}from"./p-EnaLTYYj.js";export{o as openURL}from"./p-DiVJyqlX.js";export{m as menuController}from"./p-C8d2ebIg.js";export{b as actionSheetController,a as alertController,l as loadingController,m as modalController,p as pickerController,c as popoverController,t as toastController}from"./p-DMk_cMN9.js";import"./p-ZjP4CjeZ.js";import"./p-BTEOs1at.js";import"./p-CvaZMP6T.js";import"./p-DAfH9Iif.js";const e=e=>{const{swiper:o,extendParams:t}=e,s={effect:void 0,direction:"horizontal",initialSlide:0,loop:!1,parallax:!1,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,zoom:{maxRatio:3,minRatio:1,toggle:!1},touchRatio:1,touchAngle:45,simulateTouch:!0,touchStartPreventDefault:!1,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loopAdditionalSlides:0,noSwiping:!0,runCallbacksOnInit:!0,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flipEffect:{slideShadows:!0,limitRotation:!0},cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:!1},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};o.pagination&&(s.pagination={type:"bullets",clickable:!1,hideOnClick:!1}),o.scrollbar&&(s.scrollbar={hide:!0}),t(s)};export{e as IonicSlides}
|