@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
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -15,7 +15,7 @@ var index$2 = require('./index-CzcLEdQ5.js');
|
|
|
15
15
|
var config = require('./config-B0utyWaD.js');
|
|
16
16
|
var theme = require('./theme-IlOsGAz7.js');
|
|
17
17
|
var index$3 = require('./index-Cer2Qy4I.js');
|
|
18
|
-
var overlays = require('./overlays-
|
|
18
|
+
var overlays = require('./overlays-Dhoy6v_5.js');
|
|
19
19
|
require('./gesture-controller-dtqlP_q4.js');
|
|
20
20
|
require('./focus-visible-BIj-I3-C.js');
|
|
21
21
|
require('./framework-delegate-Dx9FrqAC.js');
|
|
@@ -7,7 +7,7 @@ var index = require('./index-CzcLEdQ5.js');
|
|
|
7
7
|
var buttonActive = require('./button-active-JoIWyYri.js');
|
|
8
8
|
var helpers = require('./helpers-DJYxKN5U.js');
|
|
9
9
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
10
|
-
var overlays = require('./overlays-
|
|
10
|
+
var overlays = require('./overlays-Dhoy6v_5.js');
|
|
11
11
|
var theme = require('./theme-IlOsGAz7.js');
|
|
12
12
|
var ionicGlobal = require('./ionic-global-CSEbHD_F.js');
|
|
13
13
|
var animation = require('./animation-DknMeJ3x.js');
|
|
@@ -18,30 +18,6 @@ require('./gesture-controller-dtqlP_q4.js');
|
|
|
18
18
|
require('./focus-visible-BIj-I3-C.js');
|
|
19
19
|
require('./framework-delegate-Dx9FrqAC.js');
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* MD Action Sheet Enter Animation
|
|
23
|
-
*/
|
|
24
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
25
|
-
const baseAnimation = animation.createAnimation();
|
|
26
|
-
const backdropAnimation = animation.createAnimation();
|
|
27
|
-
const wrapperAnimation = animation.createAnimation();
|
|
28
|
-
backdropAnimation
|
|
29
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
30
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
31
|
-
.beforeStyles({
|
|
32
|
-
'pointer-events': 'none',
|
|
33
|
-
})
|
|
34
|
-
.afterClearStyles(['pointer-events']);
|
|
35
|
-
wrapperAnimation
|
|
36
|
-
.addElement(baseEl.querySelector('.action-sheet-wrapper'))
|
|
37
|
-
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
|
|
38
|
-
return baseAnimation
|
|
39
|
-
.addElement(baseEl)
|
|
40
|
-
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
41
|
-
.duration(400)
|
|
42
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
21
|
/**
|
|
46
22
|
* iOS Action Sheet Enter Animation
|
|
47
23
|
*/
|
|
@@ -224,7 +200,7 @@ const ActionSheet = class {
|
|
|
224
200
|
async present() {
|
|
225
201
|
const unlock = await this.lockController.lock();
|
|
226
202
|
await this.delegateController.attachViewToDom();
|
|
227
|
-
await overlays.present(this, 'actionSheetEnter', iosEnterAnimation, mdEnterAnimation
|
|
203
|
+
await overlays.present(this, 'actionSheetEnter', iosEnterAnimation, mdEnterAnimation);
|
|
228
204
|
unlock();
|
|
229
205
|
}
|
|
230
206
|
/**
|
|
@@ -514,12 +490,12 @@ const ActionSheet = class {
|
|
|
514
490
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
515
491
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
516
492
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
517
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
493
|
+
return (index.h(index.Host, Object.assign({ key: '3ef5b086f7a4ac4f361de8dcff5255ed1d2bcbdf', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
|
|
518
494
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
519
|
-
}, class: Object.assign(Object.assign({ [theme$1]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), index.h("ion-backdrop", { key: '
|
|
495
|
+
}, class: Object.assign(Object.assign({ [theme$1]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), index.h("ion-backdrop", { key: 'd98bb285f8a09a4207f35f930da77548bcdf529a', tappable: this.backdropDismiss }), index.h("div", { key: '6cd6aba45144244a51d76bfe0b606c3fb9a882ea', tabindex: "0", "aria-hidden": "true" }), index.h("div", { key: 'e6a007bcde062bd2ea7c094394aa0024ee595c9e', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, index.h("div", { key: '31948475a84d28488fd53e7fde16cb1deff14a2f', class: "action-sheet-container" }, index.h("div", { key: '4f2bbc00d36792cf6e24c402f5396546653f1e00', class: "action-sheet-group", ref: (el) => (this.groupEl = el), role: hasRadioButtons ? 'radiogroup' : undefined }, header !== undefined && (index.h("div", { key: '68bcafe38b49be0fe21e3e4820ee3f05f6abffad', id: headerID, class: {
|
|
520
496
|
'action-sheet-title': true,
|
|
521
497
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
522
|
-
} }, header, this.subHeader && index.h("div", { key: '
|
|
498
|
+
} }, header, this.subHeader && index.h("div", { key: 'd253c010d0bba4a38836b6319b2d8073e1a526b9', class: "action-sheet-sub-title" }, this.subHeader))), this.renderActionSheetButtons(buttons)), cancelButton && (index.h("div", { key: 'b30f50a64b425a992e26673bf072332d7c3b3409', class: "action-sheet-group action-sheet-group-cancel" }, index.h("button", Object.assign({ key: 'e35087c05c7c8f04ca9aef322917f8172c0c4f8f' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), index.h("span", { key: '1f7a50fac729e19d0ee12d54bc67e071ff7b3f08', class: "action-sheet-button-inner" }, cancelButton.icon && (index.h("ion-icon", { key: '452641544297efc017529b674235e269285c4100', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), theme$1 === 'md' && index.h("ion-ripple-effect", { key: '15795e15d27297e6e87f7fe39386bb8581993dfa' })))))), index.h("div", { key: '301fef1a45d1c523221ec2312276dd3a62f3134d', tabindex: "0", "aria-hidden": "true" })));
|
|
523
499
|
}
|
|
524
500
|
get el() { return index.getElement(this); }
|
|
525
501
|
static get watchers() { return {
|
|
@@ -8,7 +8,7 @@ var config = require('./config-B0utyWaD.js');
|
|
|
8
8
|
var buttonActive = require('./button-active-JoIWyYri.js');
|
|
9
9
|
var helpers = require('./helpers-DJYxKN5U.js');
|
|
10
10
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
11
|
-
var overlays = require('./overlays-
|
|
11
|
+
var overlays = require('./overlays-Dhoy6v_5.js');
|
|
12
12
|
var theme = require('./theme-IlOsGAz7.js');
|
|
13
13
|
var ionicGlobal = require('./ionic-global-CSEbHD_F.js');
|
|
14
14
|
var animation = require('./animation-DknMeJ3x.js');
|
|
@@ -19,31 +19,6 @@ require('./gesture-controller-dtqlP_q4.js');
|
|
|
19
19
|
require('./focus-visible-BIj-I3-C.js');
|
|
20
20
|
require('./framework-delegate-Dx9FrqAC.js');
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* Ionic Alert Enter Animation
|
|
24
|
-
*/
|
|
25
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
26
|
-
const baseAnimation = animation.createAnimation();
|
|
27
|
-
const backdropAnimation = animation.createAnimation();
|
|
28
|
-
const wrapperAnimation = animation.createAnimation();
|
|
29
|
-
backdropAnimation
|
|
30
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
31
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
32
|
-
.beforeStyles({
|
|
33
|
-
'pointer-events': 'none',
|
|
34
|
-
})
|
|
35
|
-
.afterClearStyles(['pointer-events']);
|
|
36
|
-
wrapperAnimation.addElement(baseEl.querySelector('.alert-wrapper')).keyframes([
|
|
37
|
-
{ offset: 0, opacity: '0.01', transform: 'scale(0.9)' },
|
|
38
|
-
{ offset: 1, opacity: '1', transform: 'scale(1)' },
|
|
39
|
-
]);
|
|
40
|
-
return baseAnimation
|
|
41
|
-
.addElement(baseEl)
|
|
42
|
-
.easing('ease-in-out')
|
|
43
|
-
.duration(150)
|
|
44
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
22
|
/**
|
|
48
23
|
* iOS Alert Enter Animation
|
|
49
24
|
*/
|
|
@@ -367,7 +342,7 @@ const Alert = class {
|
|
|
367
342
|
async present() {
|
|
368
343
|
const unlock = await this.lockController.lock();
|
|
369
344
|
await this.delegateController.attachViewToDom();
|
|
370
|
-
await overlays.present(this, 'alertEnter', iosEnterAnimation, mdEnterAnimation
|
|
345
|
+
await overlays.present(this, 'alertEnter', iosEnterAnimation, mdEnterAnimation).then(() => {
|
|
371
346
|
var _a, _b;
|
|
372
347
|
/**
|
|
373
348
|
* Check if alert has only one button and no inputs.
|
|
@@ -564,9 +539,9 @@ const Alert = class {
|
|
|
564
539
|
* If neither are defined, do not set aria-labelledby.
|
|
565
540
|
*/
|
|
566
541
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
567
|
-
return (index.h(index.Host, { key: '
|
|
542
|
+
return (index.h(index.Host, { key: '53f8b0e1035ca965ba44f8e1314c59a227b08173', tabindex: "-1", style: {
|
|
568
543
|
zIndex: `${20000 + overlayIndex}`,
|
|
569
|
-
}, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [theme$1]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, index.h("ion-backdrop", { key: '
|
|
544
|
+
}, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [theme$1]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, index.h("ion-backdrop", { key: '39499a198543709f538fa0328214d742754543ab', tappable: this.backdropDismiss }), index.h("div", { key: '16417758e5ac05cfa049db5086c1ffde81fc6156', tabindex: "0", "aria-hidden": "true" }), index.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), index.h("div", { key: '525d28d77b6467b441ff9d357049aec7565e6f6a', class: "alert-head" }, header && (index.h("h2", { key: '974fc725163da00216c3c8b7b6c72c005628e0fc', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (index.h("h2", { key: 'eedf04dbe331917c7b1348f8020d959119cc9f0f', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (index.h("h3", { key: '80dbbd75184a3857172eca25f30dee950c08709b', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), index.h("div", { key: '0d83a74b7ae595d0593edadfe6b812435534abea', tabindex: "0", "aria-hidden": "true" })));
|
|
570
545
|
}
|
|
571
546
|
get el() { return index.getElement(this); }
|
|
572
547
|
static get watchers() { return {
|
|
@@ -8,7 +8,7 @@ var caretLeft = require('./caret-left-CxZXLRv5.js');
|
|
|
8
8
|
var caretRight = require('./caret-right-CRCgv98E.js');
|
|
9
9
|
var focusVisible = require('./focus-visible-BIj-I3-C.js');
|
|
10
10
|
var helpers = require('./helpers-DJYxKN5U.js');
|
|
11
|
-
var overlays = require('./overlays-
|
|
11
|
+
var overlays = require('./overlays-Dhoy6v_5.js');
|
|
12
12
|
var dir = require('./dir-Cn0z1rJH.js');
|
|
13
13
|
var theme = require('./theme-IlOsGAz7.js');
|
|
14
14
|
var index$1 = require('./index-DqmRDbxg.js');
|
|
@@ -2045,30 +2045,6 @@ Datetime.style = {
|
|
|
2045
2045
|
md: datetimeMdCss()
|
|
2046
2046
|
};
|
|
2047
2047
|
|
|
2048
|
-
/**
|
|
2049
|
-
* Ionic Picker Enter Animation
|
|
2050
|
-
*/
|
|
2051
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
2052
|
-
const baseAnimation = animation.createAnimation();
|
|
2053
|
-
const backdropAnimation = animation.createAnimation();
|
|
2054
|
-
const wrapperAnimation = animation.createAnimation();
|
|
2055
|
-
backdropAnimation
|
|
2056
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
2057
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
2058
|
-
.beforeStyles({
|
|
2059
|
-
'pointer-events': 'none',
|
|
2060
|
-
})
|
|
2061
|
-
.afterClearStyles(['pointer-events']);
|
|
2062
|
-
wrapperAnimation
|
|
2063
|
-
.addElement(baseEl.querySelector('.picker-wrapper'))
|
|
2064
|
-
.fromTo('transform', 'translateY(100%)', 'translateY(0%)');
|
|
2065
|
-
return baseAnimation
|
|
2066
|
-
.addElement(baseEl)
|
|
2067
|
-
.easing('cubic-bezier(.36,.66,.04,1)')
|
|
2068
|
-
.duration(400)
|
|
2069
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
2070
|
-
};
|
|
2071
|
-
|
|
2072
2048
|
/**
|
|
2073
2049
|
* iOS Picker Enter Animation
|
|
2074
2050
|
*/
|
|
@@ -2234,7 +2210,7 @@ const Picker = class {
|
|
|
2234
2210
|
async present() {
|
|
2235
2211
|
const unlock = await this.lockController.lock();
|
|
2236
2212
|
await this.delegateController.attachViewToDom();
|
|
2237
|
-
await overlays.present(this, 'pickerEnter', iosEnterAnimation, iosEnterAnimation,
|
|
2213
|
+
await overlays.present(this, 'pickerEnter', iosEnterAnimation, iosEnterAnimation, undefined);
|
|
2238
2214
|
if (this.duration > 0) {
|
|
2239
2215
|
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration);
|
|
2240
2216
|
}
|
|
@@ -2319,11 +2295,11 @@ const Picker = class {
|
|
|
2319
2295
|
render() {
|
|
2320
2296
|
const { htmlAttributes } = this;
|
|
2321
2297
|
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
2322
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
2298
|
+
return (index.h(index.Host, Object.assign({ key: 'efcc823fad9cb37c1379bef4f4b84c6461f3a3a6', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2323
2299
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2324
2300
|
}, class: Object.assign({ [theme$1]: true,
|
|
2325
2301
|
// Used internally for styling
|
|
2326
|
-
[`picker-${theme$1}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index.h("ion-backdrop", { key: '
|
|
2302
|
+
[`picker-${theme$1}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index.h("ion-backdrop", { key: '3f44bf34e039210ae149c590c393ee9f7fb85da0', visible: this.showBackdrop, tappable: this.backdropDismiss }), index.h("div", { key: 'c2a51a89c525b1a22cbc8583cd30f41c3c356d4f', tabindex: "0", "aria-hidden": "true" }), index.h("div", { key: '23837ffe309d0aad9b8ea09d7ac94d21040ef0d7', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, index.h("div", { key: '91ba7e553d570768142715ded4bcc27fceedbce4', class: "picker-toolbar" }, this.buttons.map((b) => (index.h("div", { class: buttonWrapperClass(b) }, index.h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), index.h("div", { key: '22661cafeb555f1435ec1e0a122404a48136095b', class: "picker-columns" }, index.h("div", { key: '5f3db32468b8c60f63c70d81a27b18cce6f2e259', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => index.h("ion-picker-legacy-column", { col: c })), index.h("div", { key: '1bae6b170125b1671a480506ba73636b42b65909', class: "picker-below-highlight" }))), index.h("div", { key: '91beb94ce537122fbd6cd0c2bd3c00f908d0fefe', tabindex: "0", "aria-hidden": "true" })));
|
|
2327
2303
|
}
|
|
2328
2304
|
get el() { return index.getElement(this); }
|
|
2329
2305
|
static get watchers() { return {
|
|
@@ -7,7 +7,7 @@ var index = require('./index-CzcLEdQ5.js');
|
|
|
7
7
|
var config = require('./config-B0utyWaD.js');
|
|
8
8
|
var helpers = require('./helpers-DJYxKN5U.js');
|
|
9
9
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
10
|
-
var overlays = require('./overlays-
|
|
10
|
+
var overlays = require('./overlays-Dhoy6v_5.js');
|
|
11
11
|
var theme = require('./theme-IlOsGAz7.js');
|
|
12
12
|
var ionicGlobal = require('./ionic-global-CSEbHD_F.js');
|
|
13
13
|
var animation = require('./animation-DknMeJ3x.js');
|
|
@@ -15,31 +15,6 @@ require('./focus-visible-BIj-I3-C.js');
|
|
|
15
15
|
require('./framework-delegate-Dx9FrqAC.js');
|
|
16
16
|
require('./gesture-controller-dtqlP_q4.js');
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Ionic Loading Enter Animation
|
|
20
|
-
*/
|
|
21
|
-
const ionicEnterAnimation = (baseEl) => {
|
|
22
|
-
const baseAnimation = animation.createAnimation();
|
|
23
|
-
const backdropAnimation = animation.createAnimation();
|
|
24
|
-
const wrapperAnimation = animation.createAnimation();
|
|
25
|
-
backdropAnimation
|
|
26
|
-
.addElement(baseEl.querySelector('ion-backdrop'))
|
|
27
|
-
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
|
|
28
|
-
.beforeStyles({
|
|
29
|
-
'pointer-events': 'none',
|
|
30
|
-
})
|
|
31
|
-
.afterClearStyles(['pointer-events']);
|
|
32
|
-
wrapperAnimation.addElement(baseEl.querySelector('.loading-wrapper')).keyframes([
|
|
33
|
-
{ offset: 0, opacity: 0.01, transform: 'scale(1.1)' },
|
|
34
|
-
{ offset: 1, opacity: 1, transform: 'scale(1)' },
|
|
35
|
-
]);
|
|
36
|
-
return baseAnimation
|
|
37
|
-
.addElement(baseEl)
|
|
38
|
-
.easing('ease-in-out')
|
|
39
|
-
.duration(200)
|
|
40
|
-
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
18
|
/**
|
|
44
19
|
* iOS Loading Enter Animation
|
|
45
20
|
*/
|
|
@@ -246,7 +221,7 @@ const Loading = class {
|
|
|
246
221
|
async present() {
|
|
247
222
|
const unlock = await this.lockController.lock();
|
|
248
223
|
await this.delegateController.attachViewToDom();
|
|
249
|
-
await overlays.present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation
|
|
224
|
+
await overlays.present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation);
|
|
250
225
|
if (this.duration > 0) {
|
|
251
226
|
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration + 10);
|
|
252
227
|
}
|
|
@@ -304,9 +279,9 @@ const Loading = class {
|
|
|
304
279
|
* Otherwise, don't set aria-labelledby.
|
|
305
280
|
*/
|
|
306
281
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
307
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
282
|
+
return (index.h(index.Host, Object.assign({ key: '0c475f8e28e680e28e09317557795fc56e0835d8', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
308
283
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
309
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [theme$1]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), index.h("ion-backdrop", { key: '
|
|
284
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [theme$1]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), index.h("ion-backdrop", { key: 'd7e88feb6df8edbc326a84d07b294618f7ce6adc', visible: this.showBackdrop, tappable: this.backdropDismiss }), index.h("div", { key: 'f9622f45b2d9e913c325b228a1e6ed03cf2b98e8', tabindex: "0", "aria-hidden": "true" }), index.h("div", { key: 'f4dfdce70c4515878b247d0cc116b5cec2cf79a4', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (index.h("div", { key: '6d4475e00c444eb3d217813ae8cc1a02a97b969e', class: "loading-spinner" }, index.h("ion-spinner", { key: 'd9ad8dd56ec7677c18d06936c1a1b21a0a6a87a8', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), index.h("div", { key: 'bd3159e18f33ec25d3480d47ce33fa7dfd1f1460', tabindex: "0", "aria-hidden": "true" })));
|
|
310
285
|
}
|
|
311
286
|
get el() { return index.getElement(this); }
|
|
312
287
|
static get watchers() { return {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
var index = require('./index-CzcLEdQ5.js');
|
|
7
7
|
var cubicBezier = require('./cubic-bezier-DAjy1V-e.js');
|
|
8
|
-
var overlays = require('./overlays-
|
|
8
|
+
var overlays = require('./overlays-Dhoy6v_5.js');
|
|
9
9
|
var gestureController = require('./gesture-controller-dtqlP_q4.js');
|
|
10
10
|
var ionicGlobal = require('./ionic-global-CSEbHD_F.js');
|
|
11
11
|
var helpers = require('./helpers-DJYxKN5U.js');
|