@ionic/core 8.7.18-dev.11771020096.1ca03a6d → 8.7.18-dev.11771365900.125bf49c
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 +13 -14
- package/components/ion-accordion-group.js +3 -4
- package/components/ion-accordion.js +6 -7
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-app.js +11 -12
- package/components/ion-avatar.js +3 -3
- package/components/ion-back-button.js +8 -9
- package/components/ion-backdrop.js +1 -1
- package/components/ion-badge.js +4 -4
- package/components/ion-breadcrumb.js +7 -7
- package/components/ion-breadcrumbs.js +4 -4
- package/components/ion-button.js +1 -1
- package/components/ion-buttons.js +1 -1
- package/components/ion-card-content.js +3 -3
- package/components/ion-card-header.js +4 -4
- package/components/ion-card-subtitle.js +4 -4
- package/components/ion-card-title.js +4 -4
- package/components/ion-card.js +6 -6
- package/components/ion-checkbox.js +1 -1
- package/components/ion-chip.js +5 -5
- package/components/ion-col.js +3 -3
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +7 -8
- package/components/ion-datetime.js +19 -20
- package/components/ion-fab-button.js +8 -8
- package/components/ion-fab-list.js +3 -3
- package/components/ion-fab.js +3 -3
- package/components/ion-footer.js +6 -6
- package/components/ion-grid.js +3 -3
- package/components/ion-header.js +1 -1
- package/components/ion-icon.js +1 -1
- package/components/ion-img.js +4 -4
- package/components/ion-infinite-scroll-content.js +5 -6
- package/components/ion-infinite-scroll.js +4 -4
- package/components/ion-input-otp.js +6 -7
- package/components/ion-input-password-toggle.js +8 -9
- package/components/ion-input.js +13 -13
- package/components/ion-item-divider.js +6 -6
- package/components/ion-item-group.js +4 -4
- package/components/ion-item-option.js +7 -7
- package/components/ion-item-options.js +5 -5
- package/components/ion-item-sliding.js +8 -9
- package/components/ion-item.js +1 -1
- package/components/ion-label.js +1 -1
- package/components/ion-list-header.js +1 -1
- package/components/ion-list.js +1 -1
- package/components/ion-loading.js +13 -14
- package/components/ion-menu-button.js +12 -13
- package/components/ion-menu-toggle.js +7 -7
- package/components/ion-menu.js +14 -18
- package/components/ion-modal.js +1 -1
- package/components/ion-nav-link.js +3 -3
- package/components/ion-nav.js +9 -14
- package/components/ion-note.js +6 -6
- package/components/ion-picker-column-option.js +1 -1
- package/components/ion-picker-column.js +1 -1
- package/components/ion-picker-legacy-column.js +1 -1
- package/components/ion-picker-legacy.js +12 -13
- package/components/ion-picker.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +6 -7
- package/components/ion-radio-group.js +1 -1
- package/components/ion-radio.js +1 -1
- package/components/ion-range.js +11 -12
- package/components/ion-refresher-content.js +9 -10
- package/components/ion-refresher.js +12 -13
- package/components/ion-reorder-group.js +8 -8
- package/components/ion-reorder.js +6 -6
- package/components/ion-ripple-effect.js +1 -1
- package/components/ion-route-redirect.js +2 -2
- package/components/ion-route.js +2 -2
- package/components/ion-router-link.js +6 -6
- package/components/ion-router-outlet.js +10 -11
- package/components/ion-router.js +3 -4
- package/components/ion-row.js +4 -4
- package/components/ion-searchbar.js +12 -13
- package/components/ion-segment-button.js +8 -9
- package/components/ion-segment-content.js +3 -3
- package/components/ion-segment-view.js +5 -5
- package/components/ion-segment.js +9 -9
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +4 -4
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +36 -37
- package/components/ion-skeleton-text.js +6 -7
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +5 -12
- package/components/ion-tab-bar.js +7 -7
- package/components/ion-tab-button.js +7 -8
- package/components/ion-tab.js +5 -14
- package/components/ion-tabs.js +3 -4
- package/components/ion-text.js +6 -6
- package/components/ion-textarea.js +13 -13
- package/components/ion-thumbnail.js +4 -4
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +17 -20
- package/components/ion-toggle.js +15 -16
- package/components/ion-toolbar.js +1 -1
- package/components/{list.js → p-B25GjpND.js} +3 -3
- package/components/{buttons.js → p-BBFQmhcD.js} +3 -3
- package/components/{index5.js → p-BC-awmYt.js} +6 -6
- package/components/{picker.js → p-BHbOsu99.js} +3 -3
- package/components/{title.js → p-BTlwXR9e.js} +6 -6
- package/components/{alert.js → p-BcazQttQ.js} +12 -13
- package/components/{spinner.js → p-BdGshsIJ.js} +5 -6
- package/components/{input.utils.js → p-BfS7vSpC.js} +3 -3
- package/components/{ios.transition.js → p-BhRFCLuX.js} +2 -2
- package/components/{backdrop.js → p-Bhnhnzjz.js} +3 -3
- package/components/{notch-controller.js → p-BmcqD0EN.js} +2 -2
- package/components/{radio-group.js → p-BnpDIASH.js} +7 -7
- package/components/{hardware-back-button.js → p-Boi6hecl.js} +2 -2
- package/components/{radio.js → p-Bt_moUyl.js} +8 -8
- package/components/{ionic-global.js → p-Bxl5etF4.js} +1 -2
- package/components/{picker-column-option.js → p-ByjmWt3s.js} +7 -7
- package/components/{md.transition.js → p-C04oPyjT.js} +2 -2
- package/components/{capacitor.js → p-CIGNaXM1.js} +1 -1
- package/components/{config.js → p-CIJwkzL6.js} +1 -1
- package/components/{select-modal.js → p-CJrGvZ1Z.js} +19 -19
- package/components/{animation.js → p-CL12ApCQ.js} +2 -2
- package/components/{label.js → p-CUfY9DTD.js} +6 -6
- package/components/{action-sheet.js → p-CXJR56Oq.js} +12 -12
- package/components/{index3.js → p-Cl0B-RWe.js} +1 -1
- package/components/{keyboard-controller.js → p-CtWGkNnJ.js} +2 -2
- package/components/{index7.js → p-Cyd00tgZ.js} +2 -2
- package/components/{picker-column2.js → p-CzAJ3ArC.js} +9 -9
- package/components/{menu-toggle-util.js → p-CzW34QBh.js} +1 -1
- package/components/{refresher.utils.js → p-D0zXRwcr.js} +3 -3
- package/components/{keyboard2.js → p-D13Eaw-8.js} +1 -1
- package/components/{select-popover.js → p-D3KEyQ8e.js} +15 -15
- package/components/{helpers.js → p-D5hF6rwn.js} +1 -1
- package/components/{keyboard.js → p-D6Ynv7Xh.js} +1 -1
- package/components/{button-active.js → p-D8eD2iBA.js} +3 -3
- package/components/{button.js → p-DK2Bn1Mc.js} +6 -7
- package/components/{picker-column.js → p-DKRQWlK2.js} +7 -7
- package/components/{index8.js → p-DNDUsygf.js} +2 -2
- package/components/{content.js → p-DPm73mCi.js} +7 -7
- package/components/{popover.js → p-DRHwNkVo.js} +43 -166
- package/components/{index2.js → p-DTWZF6wg.js} +4 -5
- package/components/p-DWoUQeZ3.js +3012 -0
- package/components/{header.js → p-DX0w75a9.js} +6 -6
- package/components/{toolbar.js → p-Dt8zaCLQ.js} +6 -6
- package/components/{checkbox.js → p-DyFBFrV7.js} +7 -7
- package/components/{status-tap.js → p-DyHPCMyn.js} +3 -3
- package/components/{modal.js → p-IHgAGzvW.js} +35 -345
- package/components/{ripple-effect.js → p-LgLeKTkH.js} +4 -4
- package/components/{list-header.js → p-NhiRFRn9.js} +6 -6
- package/components/{input-shims.js → p-OuiHmXO5.js} +4 -4
- package/components/{icon.js → p-Wro9IPHE.js} +6 -6
- package/components/{item.js → p-aIWC4ZEV.js} +8 -8
- package/components/{overlays.js → p-c-XJ9XhZ.js} +7 -7
- package/components/{haptic.js → p-cyNmxje6.js} +1 -1
- package/components/{swipe-back.js → p-fVuFT3Wd.js} +3 -3
- package/components/{framework-delegate.js → p-l_lso3Zl.js} +1 -1
- package/components/{data.js → p-mQp4lwQD.js} +2 -2
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-modal.cjs.entry.js +17 -326
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +32 -154
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.ios.css +5 -6
- package/dist/collection/components/modal/modal.js +15 -164
- package/dist/collection/components/modal/modal.md.css +5 -6
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/animations/ios.enter.js +8 -33
- package/dist/collection/components/popover/animations/md.enter.js +6 -26
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/popover/utils.js +19 -96
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +1 -1
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +11 -11
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +6 -6
- package/dist/esm/ion-modal.entry.js +17 -326
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +32 -154
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +4 -4
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-074839fc.entry.js → p-01e27965.entry.js} +1 -1
- package/dist/ionic/p-0ca0fe9c.entry.js +4 -0
- package/dist/ionic/{p-316c0420.entry.js → p-221a3d8c.entry.js} +1 -1
- package/dist/ionic/{p-3a6caca9.entry.js → p-2668188b.entry.js} +1 -1
- package/dist/ionic/{p-d3014190.entry.js → p-2bd1ea35.entry.js} +1 -1
- package/dist/ionic/{p-a127bee2.entry.js → p-30333874.entry.js} +1 -1
- package/dist/ionic/{p-0e8c8a10.entry.js → p-31db96da.entry.js} +1 -1
- package/dist/ionic/{p-1647c46c.entry.js → p-363d1209.entry.js} +1 -1
- package/dist/ionic/p-3ec563c1.entry.js +4 -0
- package/dist/ionic/{p-c19af093.entry.js → p-42db6404.entry.js} +1 -1
- package/dist/ionic/{p-db82892c.entry.js → p-46a38cfd.entry.js} +1 -1
- package/dist/ionic/{p-eb024a5b.entry.js → p-4eec1a5e.entry.js} +1 -1
- package/dist/ionic/{p-0dfa5a37.entry.js → p-530fcd71.entry.js} +1 -1
- package/dist/ionic/{p-72c38b88.entry.js → p-5c8f7253.entry.js} +1 -1
- package/dist/ionic/{p-172a579f.entry.js → p-5d6fb6e3.entry.js} +1 -1
- package/dist/ionic/{p-dbbe606a.entry.js → p-652318c3.entry.js} +1 -1
- package/dist/ionic/{p-2a939845.entry.js → p-6f37536a.entry.js} +1 -1
- package/dist/ionic/{p-4e41ea20.entry.js → p-72af946b.entry.js} +1 -1
- package/dist/ionic/p-7f98e710.entry.js +4 -0
- package/dist/ionic/{p-6d070558.entry.js → p-82d5bb3d.entry.js} +1 -1
- package/dist/ionic/p-906bb44d.entry.js +4 -0
- package/dist/ionic/{p-2dbb90cb.entry.js → p-97eb0812.entry.js} +1 -1
- package/dist/ionic/{p-31f7095f.entry.js → p-a4a9f5ae.entry.js} +1 -1
- package/dist/ionic/{p-86f53961.entry.js → p-b8551510.entry.js} +1 -1
- package/dist/ionic/p-bc293244.entry.js +4 -0
- package/dist/ionic/{p-d126e8d3.entry.js → p-bce86e56.entry.js} +1 -1
- package/dist/ionic/{p-02d76786.entry.js → p-be263062.entry.js} +1 -1
- package/dist/ionic/{p-639dd543.entry.js → p-c175d792.entry.js} +1 -1
- package/dist/ionic/{p-020af078.entry.js → p-cc2a9936.entry.js} +1 -1
- package/dist/ionic/{p-1ccd6829.entry.js → p-e338f669.entry.js} +1 -1
- package/dist/ionic/{p-6241ce47.entry.js → p-eaf3f5ff.entry.js} +1 -1
- package/dist/ionic/{p-f8f22cc0.entry.js → p-fb0271ae.entry.js} +1 -1
- package/dist/ionic/{p-370e4237.entry.js → p-fbb00634.entry.js} +1 -1
- package/dist/types/components/modal/modal.d.ts +0 -35
- package/dist/types/components/popover/utils.d.ts +1 -23
- package/hydrate/index.js +137 -568
- package/hydrate/index.mjs +137 -568
- package/package.json +1 -1
- package/components/index4.js +0 -121
- package/dist/collection/components/modal/safe-area-utils.js +0 -165
- package/dist/ionic/p-3e69999d.entry.js +0 -4
- package/dist/ionic/p-51a60e0f.entry.js +0 -4
- package/dist/ionic/p-94de5cfa.entry.js +0 -4
- package/dist/ionic/p-cc3446d5.entry.js +0 -4
- package/dist/ionic/p-dd1aef77.entry.js +0 -4
- package/dist/types/components/modal/safe-area-utils.d.ts +0 -66
- /package/components/{lock-controller.js → p-B-hirT0v.js} +0 -0
- /package/components/{gesture-controller.js → p-BTEOs1at.js} +0 -0
- /package/components/{focus-visible.js → p-BmVRXR1y.js} +0 -0
- /package/components/{dir.js → p-C53feagD.js} +0 -0
- /package/components/{index6.js → p-CO7fmmxt.js} +0 -0
- /package/components/{validity.js → p-DJztqcrH.js} +0 -0
- /package/components/{theme.js → p-DiVJyqlX.js} +0 -0
- /package/components/{watch-options.js → p-Dtdm8lKC.js} +0 -0
- /package/components/{index9.js → p-ZjP4CjeZ.js} +0 -0
- /package/components/{cubic-bezier.js → p-hHmYLOfE.js} +0 -0
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { proxyCustomElement,
|
|
5
|
-
import { a as findClosestIonContent, i as isIonContent, d as disableContentScrollY, r as resetContentScrollY, f as findIonContent, p as printIonContentErrorMsg } from './
|
|
6
|
-
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './
|
|
7
|
-
import { f as clamp, g as getElementRoot, r as raf, d as inheritAttributes, k as hasLazyBuild } from './
|
|
8
|
-
import { c as createLockController } from './
|
|
9
|
-
import {
|
|
10
|
-
import { g as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { d as defineCustomElement$1 } from './backdrop.js';
|
|
4
|
+
import { p as proxyCustomElement, H, e as createEvent, f as printIonWarning, w as writeTask, c as config, h, d as Host } from './p-DWoUQeZ3.js';
|
|
5
|
+
import { a as findClosestIonContent, i as isIonContent, d as disableContentScrollY, r as resetContentScrollY, f as findIonContent, p as printIonContentErrorMsg } from './p-DNDUsygf.js';
|
|
6
|
+
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './p-l_lso3Zl.js';
|
|
7
|
+
import { f as clamp, g as getElementRoot, r as raf, d as inheritAttributes, k as hasLazyBuild } from './p-D5hF6rwn.js';
|
|
8
|
+
import { c as createLockController } from './p-B-hirT0v.js';
|
|
9
|
+
import { g as getCapacitor } from './p-CIGNaXM1.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 './p-c-XJ9XhZ.js';
|
|
11
|
+
import { g as getClassMap } from './p-DiVJyqlX.js';
|
|
12
|
+
import { e as deepReady, w as waitForMount } from './p-DTWZF6wg.js';
|
|
13
|
+
import { b as getIonMode } from './p-Bxl5etF4.js';
|
|
14
|
+
import { KEYBOARD_DID_OPEN } from './p-D6Ynv7Xh.js';
|
|
15
|
+
import { c as createAnimation } from './p-CL12ApCQ.js';
|
|
16
|
+
import { g as getTimeGivenProgression } from './p-hHmYLOfE.js';
|
|
17
|
+
import { createGesture } from './p-Cl0B-RWe.js';
|
|
18
|
+
import { w as win } from './p-ZjP4CjeZ.js';
|
|
19
|
+
import { d as defineCustomElement$1 } from './p-Bhnhnzjz.js';
|
|
21
20
|
|
|
22
21
|
var Style;
|
|
23
22
|
(function (Style) {
|
|
@@ -1471,172 +1470,11 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
1471
1470
|
};
|
|
1472
1471
|
};
|
|
1473
1472
|
|
|
1474
|
-
|
|
1475
|
-
* These thresholds match the SCSS media query breakpoints in modal.vars.scss
|
|
1476
|
-
* that trigger the centered dialog layout (non-fullscreen modal).
|
|
1477
|
-
*
|
|
1478
|
-
* SCSS defines two height breakpoints: $modal-inset-min-height-small (600px)
|
|
1479
|
-
* and $modal-inset-min-height-large (768px). We use the smaller one because
|
|
1480
|
-
* that's the threshold where the modal transitions from fullscreen to centered
|
|
1481
|
-
* dialog — the larger breakpoint only increases the dialog's height.
|
|
1482
|
-
*/
|
|
1483
|
-
const MODAL_INSET_MIN_WIDTH = 768;
|
|
1484
|
-
const MODAL_INSET_MIN_HEIGHT = 600;
|
|
1485
|
-
const EDGE_THRESHOLD = 5;
|
|
1486
|
-
/**
|
|
1487
|
-
* Cache for resolved root safe-area-top value, invalidated once per frame.
|
|
1488
|
-
*/
|
|
1489
|
-
let cachedRootSafeAreaTop = null;
|
|
1490
|
-
let cacheInvalidationScheduled = false;
|
|
1491
|
-
/**
|
|
1492
|
-
* Determines if the current viewport meets the CSS media query conditions
|
|
1493
|
-
* that cause regular modals to render as centered dialogs instead of fullscreen.
|
|
1494
|
-
* Matches: @media (min-width: 768px) and (min-height: 600px)
|
|
1495
|
-
*/
|
|
1496
|
-
const isCenteredDialogViewport = () => {
|
|
1497
|
-
if (!win)
|
|
1498
|
-
return false;
|
|
1499
|
-
return win.matchMedia(`(min-width: ${MODAL_INSET_MIN_WIDTH}px) and (min-height: ${MODAL_INSET_MIN_HEIGHT}px)`)
|
|
1500
|
-
.matches;
|
|
1501
|
-
};
|
|
1502
|
-
/**
|
|
1503
|
-
* Resolves the current root --ion-safe-area-top value to pixels.
|
|
1504
|
-
* Uses a temporary element because getComputedStyle on :root returns
|
|
1505
|
-
* the declared value of custom properties (e.g. "env(safe-area-inset-top)")
|
|
1506
|
-
* rather than a resolved number.
|
|
1507
|
-
*
|
|
1508
|
-
* Results are cached for the current frame to avoid repeated reflows.
|
|
1509
|
-
*/
|
|
1510
|
-
const getRootSafeAreaTop = () => {
|
|
1511
|
-
if (cachedRootSafeAreaTop !== null) {
|
|
1512
|
-
return cachedRootSafeAreaTop;
|
|
1513
|
-
}
|
|
1514
|
-
const doc = win === null || win === void 0 ? void 0 : win.document;
|
|
1515
|
-
if (!(doc === null || doc === void 0 ? void 0 : doc.body)) {
|
|
1516
|
-
return 0;
|
|
1517
|
-
}
|
|
1518
|
-
const el = doc.createElement('div');
|
|
1519
|
-
el.style.cssText =
|
|
1520
|
-
'position:fixed;visibility:hidden;pointer-events:none;top:0;left:0;' + 'padding-top:var(--ion-safe-area-top,0px);';
|
|
1521
|
-
doc.body.appendChild(el);
|
|
1522
|
-
const value = parseFloat(getComputedStyle(el).paddingTop) || 0;
|
|
1523
|
-
el.remove();
|
|
1524
|
-
cachedRootSafeAreaTop = value;
|
|
1525
|
-
if (!cacheInvalidationScheduled) {
|
|
1526
|
-
cacheInvalidationScheduled = true;
|
|
1527
|
-
raf(() => {
|
|
1528
|
-
cachedRootSafeAreaTop = null;
|
|
1529
|
-
cacheInvalidationScheduled = false;
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
return value;
|
|
1533
|
-
};
|
|
1534
|
-
/**
|
|
1535
|
-
* Returns the initial safe-area configuration based on modal type.
|
|
1536
|
-
* This is called before animation starts and uses configuration-based prediction.
|
|
1537
|
-
*
|
|
1538
|
-
* @param context - Modal context information
|
|
1539
|
-
* @returns SafeAreaConfig with initial safe-area values
|
|
1540
|
-
*/
|
|
1541
|
-
const getInitialSafeAreaConfig = (context) => {
|
|
1542
|
-
const { isSheetModal, isCardModal } = context;
|
|
1543
|
-
// Sheet modals always zero top safe-area. The sheet height offset from the
|
|
1544
|
-
// top edge is handled by --ion-modal-offset-top (set in modal.tsx) using
|
|
1545
|
-
// the resolved root value, so --ion-safe-area-top is never needed for
|
|
1546
|
-
// height calculation. Keeping it at 0px prevents header content from
|
|
1547
|
-
// getting double-offset padding.
|
|
1548
|
-
if (isSheetModal) {
|
|
1549
|
-
return {
|
|
1550
|
-
top: '0px',
|
|
1551
|
-
bottom: 'inherit',
|
|
1552
|
-
left: '0px',
|
|
1553
|
-
right: '0px',
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
// Card modals need safe-area for height calculation.
|
|
1557
|
-
// Note: isCardModal is already gated on mode === 'ios' by the caller.
|
|
1558
|
-
if (isCardModal) {
|
|
1559
|
-
return {
|
|
1560
|
-
top: 'inherit',
|
|
1561
|
-
bottom: 'inherit',
|
|
1562
|
-
left: '0px',
|
|
1563
|
-
right: '0px',
|
|
1564
|
-
};
|
|
1565
|
-
}
|
|
1566
|
-
// On viewports that meet the centered dialog media query breakpoints,
|
|
1567
|
-
// regular modals render as centered dialogs (not fullscreen), so they
|
|
1568
|
-
// don't touch any screen edges and don't need safe-area insets.
|
|
1569
|
-
if (isCenteredDialogViewport()) {
|
|
1570
|
-
return {
|
|
1571
|
-
top: '0px',
|
|
1572
|
-
bottom: '0px',
|
|
1573
|
-
left: '0px',
|
|
1574
|
-
right: '0px',
|
|
1575
|
-
};
|
|
1576
|
-
}
|
|
1577
|
-
// Fullscreen modals on phone - inherit all safe areas
|
|
1578
|
-
return {
|
|
1579
|
-
top: 'inherit',
|
|
1580
|
-
bottom: 'inherit',
|
|
1581
|
-
left: 'inherit',
|
|
1582
|
-
right: 'inherit',
|
|
1583
|
-
};
|
|
1584
|
-
};
|
|
1585
|
-
/**
|
|
1586
|
-
* Returns safe-area configuration based on actual modal position.
|
|
1587
|
-
* Detects which edges the modal overlaps with and only applies safe-area to those edges.
|
|
1588
|
-
*
|
|
1589
|
-
* Note: On Android edge-to-edge (API 36+), getBoundingClientRect() may report
|
|
1590
|
-
* inconsistent values. Sheet and card modals avoid this by using configuration-based
|
|
1591
|
-
* prediction instead. Regular modals use coordinate detection which works reliably
|
|
1592
|
-
* on web and iOS; Android edge-to-edge may need a configuration-based fallback
|
|
1593
|
-
* once a reliable detection mechanism is available.
|
|
1594
|
-
*
|
|
1595
|
-
* @param wrapperEl - The modal wrapper element to measure
|
|
1596
|
-
* @returns SafeAreaConfig based on position
|
|
1597
|
-
*/
|
|
1598
|
-
const getPositionBasedSafeAreaConfig = (wrapperEl) => {
|
|
1599
|
-
var _a, _b;
|
|
1600
|
-
const rect = wrapperEl.getBoundingClientRect();
|
|
1601
|
-
const vh = (_a = win === null || win === void 0 ? void 0 : win.innerHeight) !== null && _a !== void 0 ? _a : 0;
|
|
1602
|
-
const vw = (_b = win === null || win === void 0 ? void 0 : win.innerWidth) !== null && _b !== void 0 ? _b : 0;
|
|
1603
|
-
// Only apply safe-area to sides where modal overlaps with screen edge
|
|
1604
|
-
return {
|
|
1605
|
-
top: rect.top <= EDGE_THRESHOLD ? 'inherit' : '0px',
|
|
1606
|
-
bottom: rect.bottom >= vh - EDGE_THRESHOLD ? 'inherit' : '0px',
|
|
1607
|
-
left: rect.left <= EDGE_THRESHOLD ? 'inherit' : '0px',
|
|
1608
|
-
right: rect.right >= vw - EDGE_THRESHOLD ? 'inherit' : '0px',
|
|
1609
|
-
};
|
|
1610
|
-
};
|
|
1611
|
-
/**
|
|
1612
|
-
* Applies safe-area CSS custom property overrides to the modal host element.
|
|
1613
|
-
*
|
|
1614
|
-
* @param hostEl - The modal host element (ion-modal)
|
|
1615
|
-
* @param config - Safe-area configuration to apply
|
|
1616
|
-
*/
|
|
1617
|
-
const applySafeAreaOverrides = (hostEl, config) => {
|
|
1618
|
-
hostEl.style.setProperty('--ion-safe-area-top', config.top);
|
|
1619
|
-
hostEl.style.setProperty('--ion-safe-area-bottom', config.bottom);
|
|
1620
|
-
hostEl.style.setProperty('--ion-safe-area-left', config.left);
|
|
1621
|
-
hostEl.style.setProperty('--ion-safe-area-right', config.right);
|
|
1622
|
-
};
|
|
1623
|
-
/**
|
|
1624
|
-
* Clears safe-area CSS custom property overrides from the modal host element.
|
|
1625
|
-
*
|
|
1626
|
-
* @param hostEl - The modal host element (ion-modal)
|
|
1627
|
-
*/
|
|
1628
|
-
const clearSafeAreaOverrides = (hostEl) => {
|
|
1629
|
-
hostEl.style.removeProperty('--ion-safe-area-top');
|
|
1630
|
-
hostEl.style.removeProperty('--ion-safe-area-bottom');
|
|
1631
|
-
hostEl.style.removeProperty('--ion-safe-area-left');
|
|
1632
|
-
hostEl.style.removeProperty('--ion-safe-area-right');
|
|
1633
|
-
};
|
|
1634
|
-
|
|
1635
|
-
const modalIosCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}";
|
|
1473
|
+
const modalIosCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}";
|
|
1636
1474
|
|
|
1637
|
-
const modalMdCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-
|
|
1475
|
+
const modalMdCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}";
|
|
1638
1476
|
|
|
1639
|
-
const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends
|
|
1477
|
+
const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends H {
|
|
1640
1478
|
constructor(registerHost) {
|
|
1641
1479
|
super();
|
|
1642
1480
|
if (registerHost !== false) {
|
|
@@ -1851,31 +1689,13 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
1851
1689
|
}
|
|
1852
1690
|
}
|
|
1853
1691
|
onWindowResize() {
|
|
1854
|
-
|
|
1692
|
+
// Only handle resize for iOS card modals when no custom animations are provided
|
|
1693
|
+
if (getIonMode(this) !== 'ios' || !this.presentingElement || this.enterAnimation || this.leaveAnimation) {
|
|
1855
1694
|
return;
|
|
1695
|
+
}
|
|
1856
1696
|
clearTimeout(this.resizeTimeout);
|
|
1857
1697
|
this.resizeTimeout = setTimeout(() => {
|
|
1858
|
-
|
|
1859
|
-
// iOS card modals: handle portrait/landscape view transitions
|
|
1860
|
-
if (context.isCardModal && !this.enterAnimation && !this.leaveAnimation) {
|
|
1861
|
-
this.handleViewTransition();
|
|
1862
|
-
}
|
|
1863
|
-
// Sheet modals: re-compute the internal offset property since safe-area
|
|
1864
|
-
// values may change on device rotation (e.g., portrait notch vs landscape).
|
|
1865
|
-
if (context.isSheetModal) {
|
|
1866
|
-
this.updateSheetOffsetTop();
|
|
1867
|
-
}
|
|
1868
|
-
// Regular (non-sheet, non-card) modals: update safe-area overrides
|
|
1869
|
-
// since the viewport may have crossed the centered-dialog breakpoint.
|
|
1870
|
-
if (!context.isSheetModal && !context.isCardModal) {
|
|
1871
|
-
this.updateSafeAreaOverrides();
|
|
1872
|
-
// Re-evaluate fullscreen safe-area padding: clear first, then re-apply
|
|
1873
|
-
if (this.wrapperEl) {
|
|
1874
|
-
this.wrapperEl.style.removeProperty('height');
|
|
1875
|
-
this.wrapperEl.style.removeProperty('padding-bottom');
|
|
1876
|
-
}
|
|
1877
|
-
this.applyFullscreenSafeArea();
|
|
1878
|
-
}
|
|
1698
|
+
this.handleViewTransition();
|
|
1879
1699
|
}, 50); // Debounce to avoid excessive calls during active resizing
|
|
1880
1700
|
}
|
|
1881
1701
|
breakpointsChanged(breakpoints) {
|
|
@@ -1892,9 +1712,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
1892
1712
|
this.triggerController.removeClickListener();
|
|
1893
1713
|
this.cleanupViewTransitionListener();
|
|
1894
1714
|
this.cleanupParentRemovalObserver();
|
|
1895
|
-
// Also called in dismiss() — intentional dual cleanup covers both
|
|
1896
|
-
// dismiss-then-remove and direct DOM removal without dismiss.
|
|
1897
|
-
this.cleanupSafeAreaOverrides();
|
|
1898
1715
|
}
|
|
1899
1716
|
componentWillLoad() {
|
|
1900
1717
|
var _a;
|
|
@@ -2055,11 +1872,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2055
1872
|
await waitForMount();
|
|
2056
1873
|
}
|
|
2057
1874
|
writeTask(() => this.el.classList.add('show-modal'));
|
|
2058
|
-
// Recalculate isSheetModal before safe-area setup because framework
|
|
2059
|
-
// bindings (e.g., Angular) may not have been applied when componentWillLoad ran.
|
|
2060
|
-
this.isSheetModal = this.breakpoints !== undefined && this.initialBreakpoint !== undefined;
|
|
2061
|
-
// Set initial safe-area overrides before animation
|
|
2062
|
-
this.setInitialSafeAreaOverrides();
|
|
2063
1875
|
const hasCardModal = presentingElement !== undefined;
|
|
2064
1876
|
/**
|
|
2065
1877
|
* We need to change the status bar at the
|
|
@@ -2077,10 +1889,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2077
1889
|
backdropBreakpoint: this.backdropBreakpoint,
|
|
2078
1890
|
expandToScroll: this.expandToScroll,
|
|
2079
1891
|
});
|
|
2080
|
-
// Update safe-area based on actual position after animation
|
|
2081
|
-
this.updateSafeAreaOverrides();
|
|
2082
|
-
// Apply fullscreen safe-area padding if needed
|
|
2083
|
-
this.applyFullscreenSafeArea();
|
|
2084
1892
|
/* tslint:disable-next-line */
|
|
2085
1893
|
if (typeof window !== 'undefined') {
|
|
2086
1894
|
/**
|
|
@@ -2112,7 +1920,13 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2112
1920
|
};
|
|
2113
1921
|
window.addEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
|
|
2114
1922
|
}
|
|
2115
|
-
|
|
1923
|
+
/**
|
|
1924
|
+
* Recalculate isSheetModal because framework bindings (e.g., Angular)
|
|
1925
|
+
* may not have been applied when componentWillLoad ran.
|
|
1926
|
+
*/
|
|
1927
|
+
const isSheetModal = this.breakpoints !== undefined && this.initialBreakpoint !== undefined;
|
|
1928
|
+
this.isSheetModal = isSheetModal;
|
|
1929
|
+
if (isSheetModal) {
|
|
2116
1930
|
this.initSheetGesture();
|
|
2117
1931
|
}
|
|
2118
1932
|
else if (hasCardModal) {
|
|
@@ -2221,7 +2035,7 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2221
2035
|
const hasVisibleContent = Array.from(pageParent.children).some((child) => {
|
|
2222
2036
|
var _a;
|
|
2223
2037
|
return child !== this.el &&
|
|
2224
|
-
!(child instanceof
|
|
2038
|
+
!(child instanceof H && window.getComputedStyle(child).display === 'none') &&
|
|
2225
2039
|
child.tagName !== 'TEMPLATE' &&
|
|
2226
2040
|
child.tagName !== 'SLOT' &&
|
|
2227
2041
|
!(child.nodeType === Node.TEXT_NODE && !((_a = child.textContent) === null || _a === void 0 ? void 0 : _a.trim()));
|
|
@@ -2302,9 +2116,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2302
2116
|
if (this.gestureAnimationDismissing && role !== GESTURE) {
|
|
2303
2117
|
return false;
|
|
2304
2118
|
}
|
|
2305
|
-
// Cancel any pending resize timeout to prevent stale updates during dismiss
|
|
2306
|
-
clearTimeout(this.resizeTimeout);
|
|
2307
|
-
this.resizeTimeout = undefined;
|
|
2308
2119
|
/**
|
|
2309
2120
|
* Because the canDismiss check below is async,
|
|
2310
2121
|
* we need to claim a lock before the check happens,
|
|
@@ -2359,7 +2170,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2359
2170
|
}
|
|
2360
2171
|
this.cleanupViewTransitionListener();
|
|
2361
2172
|
this.cleanupParentRemovalObserver();
|
|
2362
|
-
this.cleanupSafeAreaOverrides();
|
|
2363
2173
|
this.cleanupChildRoutePassthrough();
|
|
2364
2174
|
}
|
|
2365
2175
|
this.currentBreakpoint = undefined;
|
|
@@ -2480,9 +2290,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2480
2290
|
this.viewTransitionAnimation = transitionAnimation;
|
|
2481
2291
|
transitionAnimation.play().then(() => {
|
|
2482
2292
|
this.viewTransitionAnimation = undefined;
|
|
2483
|
-
// Wait for a layout pass after the transition so getBoundingClientRect()
|
|
2484
|
-
// in getPositionBasedSafeAreaConfig() reflects the new dimensions.
|
|
2485
|
-
raf(() => this.updateSafeAreaOverrides());
|
|
2486
2293
|
// After orientation transition, recreate the swipe-to-close gesture
|
|
2487
2294
|
// with updated animation that reflects the new presenting element state
|
|
2488
2295
|
this.reinitSwipeToClose();
|
|
@@ -2609,123 +2416,6 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2609
2416
|
(_a = this.parentRemovalObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
2610
2417
|
this.parentRemovalObserver = undefined;
|
|
2611
2418
|
}
|
|
2612
|
-
/**
|
|
2613
|
-
* Creates the context object for safe-area utilities.
|
|
2614
|
-
*/
|
|
2615
|
-
getSafeAreaContext() {
|
|
2616
|
-
return {
|
|
2617
|
-
isSheetModal: this.isSheetModal,
|
|
2618
|
-
isCardModal: this.presentingElement !== undefined && getIonMode(this) === 'ios',
|
|
2619
|
-
presentingElement: this.presentingElement,
|
|
2620
|
-
breakpoints: this.breakpoints,
|
|
2621
|
-
currentBreakpoint: this.currentBreakpoint,
|
|
2622
|
-
};
|
|
2623
|
-
}
|
|
2624
|
-
/**
|
|
2625
|
-
* Sets initial safe-area overrides before modal animation.
|
|
2626
|
-
* Called in present() before animation starts.
|
|
2627
|
-
*
|
|
2628
|
-
* For sheet modals, the SCSS --height formula uses --ion-modal-offset-top
|
|
2629
|
-
* (an internal property) instead of --ion-safe-area-top. We resolve the
|
|
2630
|
-
* root safe-area-top to pixels and set --ion-modal-offset-top, decoupling
|
|
2631
|
-
* the height calculation from --ion-safe-area-top (which is zeroed for
|
|
2632
|
-
* sheets to prevent header content from getting double-offset padding).
|
|
2633
|
-
*/
|
|
2634
|
-
setInitialSafeAreaOverrides() {
|
|
2635
|
-
const context = this.getSafeAreaContext();
|
|
2636
|
-
const safeAreaConfig = getInitialSafeAreaConfig(context);
|
|
2637
|
-
applySafeAreaOverrides(this.el, safeAreaConfig);
|
|
2638
|
-
// Set the internal offset property with the resolved root safe-area-top value
|
|
2639
|
-
if (context.isSheetModal) {
|
|
2640
|
-
this.updateSheetOffsetTop();
|
|
2641
|
-
}
|
|
2642
|
-
}
|
|
2643
|
-
/**
|
|
2644
|
-
* Resolves the current root --ion-safe-area-top value and sets the
|
|
2645
|
-
* internal --ion-modal-offset-top property on the host element.
|
|
2646
|
-
* Called on present and on resize (e.g., device rotation changes safe-area).
|
|
2647
|
-
*/
|
|
2648
|
-
updateSheetOffsetTop() {
|
|
2649
|
-
const safeAreaTop = getRootSafeAreaTop();
|
|
2650
|
-
this.el.style.setProperty('--ion-modal-offset-top', `${safeAreaTop}px`);
|
|
2651
|
-
}
|
|
2652
|
-
/**
|
|
2653
|
-
* Updates safe-area overrides during dynamic state changes.
|
|
2654
|
-
* Called after animations, during gestures, and on orientation changes.
|
|
2655
|
-
*/
|
|
2656
|
-
updateSafeAreaOverrides() {
|
|
2657
|
-
const { wrapperEl, el } = this;
|
|
2658
|
-
const context = this.getSafeAreaContext();
|
|
2659
|
-
// Sheet modals: safe-area is fully determined at presentation time
|
|
2660
|
-
// (top is always 0px, height is frozen). Nothing to update.
|
|
2661
|
-
if (context.isSheetModal)
|
|
2662
|
-
return;
|
|
2663
|
-
// Card modals have fixed safe-area requirements set by initial prediction.
|
|
2664
|
-
if (context.isCardModal)
|
|
2665
|
-
return;
|
|
2666
|
-
// wrapperEl is required for position-based detection below
|
|
2667
|
-
if (!wrapperEl)
|
|
2668
|
-
return;
|
|
2669
|
-
// Regular modals: use position-based detection to correctly handle both
|
|
2670
|
-
// fullscreen modals and centered dialogs with custom dimensions.
|
|
2671
|
-
const safeAreaConfig = getPositionBasedSafeAreaConfig(wrapperEl);
|
|
2672
|
-
applySafeAreaOverrides(el, safeAreaConfig);
|
|
2673
|
-
}
|
|
2674
|
-
/**
|
|
2675
|
-
* Applies padding-bottom to fullscreen modal wrapper to prevent
|
|
2676
|
-
* content from overlapping system navigation bar.
|
|
2677
|
-
*/
|
|
2678
|
-
applyFullscreenSafeArea() {
|
|
2679
|
-
const { wrapperEl, el } = this;
|
|
2680
|
-
if (!wrapperEl)
|
|
2681
|
-
return;
|
|
2682
|
-
const context = this.getSafeAreaContext();
|
|
2683
|
-
if (context.isSheetModal || context.isCardModal)
|
|
2684
|
-
return;
|
|
2685
|
-
// Check for standard Ionic layout children (ion-content, ion-footer),
|
|
2686
|
-
// searching one level deep for wrapped components (e.g.,
|
|
2687
|
-
// <app-footer><ion-footer>...</ion-footer></app-footer>).
|
|
2688
|
-
// Note: uses a manual loop instead of querySelector(':scope > ...') because
|
|
2689
|
-
// Stencil's mock-doc (used in spec tests) does not support :scope.
|
|
2690
|
-
let hasContent = false;
|
|
2691
|
-
let hasFooter = false;
|
|
2692
|
-
for (const child of Array.from(el.children)) {
|
|
2693
|
-
if (child.tagName === 'ION-CONTENT')
|
|
2694
|
-
hasContent = true;
|
|
2695
|
-
if (child.tagName === 'ION-FOOTER')
|
|
2696
|
-
hasFooter = true;
|
|
2697
|
-
for (const grandchild of Array.from(child.children)) {
|
|
2698
|
-
if (grandchild.tagName === 'ION-CONTENT')
|
|
2699
|
-
hasContent = true;
|
|
2700
|
-
if (grandchild.tagName === 'ION-FOOTER')
|
|
2701
|
-
hasFooter = true;
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
// Only apply wrapper padding for standard Ionic layouts (has ion-content
|
|
2705
|
-
// but no ion-footer). Custom modals with raw HTML are fully
|
|
2706
|
-
// developer-controlled and should not be modified.
|
|
2707
|
-
if (!hasContent || hasFooter)
|
|
2708
|
-
return;
|
|
2709
|
-
// Reduce wrapper height by safe-area and add equivalent padding so the
|
|
2710
|
-
// total visual size stays the same but the flex content area shrinks.
|
|
2711
|
-
// Using height + padding instead of box-sizing: border-box avoids
|
|
2712
|
-
// breaking custom modals that set --border-width (border-box would
|
|
2713
|
-
// include the border inside the height, changing the layout).
|
|
2714
|
-
wrapperEl.style.setProperty('height', 'calc(var(--height) - var(--ion-safe-area-bottom, 0px))');
|
|
2715
|
-
wrapperEl.style.setProperty('padding-bottom', 'var(--ion-safe-area-bottom, 0px)');
|
|
2716
|
-
}
|
|
2717
|
-
/**
|
|
2718
|
-
* Clears all safe-area overrides and padding from wrapper.
|
|
2719
|
-
*/
|
|
2720
|
-
cleanupSafeAreaOverrides() {
|
|
2721
|
-
clearSafeAreaOverrides(this.el);
|
|
2722
|
-
// Remove internal sheet offset property
|
|
2723
|
-
this.el.style.removeProperty('--ion-modal-offset-top');
|
|
2724
|
-
if (this.wrapperEl) {
|
|
2725
|
-
this.wrapperEl.style.removeProperty('height');
|
|
2726
|
-
this.wrapperEl.style.removeProperty('padding-bottom');
|
|
2727
|
-
}
|
|
2728
|
-
}
|
|
2729
2419
|
render() {
|
|
2730
2420
|
const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap, expandToScroll, } = this;
|
|
2731
2421
|
const showHandle = handle !== false && isSheetModal;
|
|
@@ -2733,20 +2423,20 @@ const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
|
|
|
2733
2423
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
2734
2424
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
2735
2425
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
2736
|
-
return (h(Host, Object.assign({ key: '
|
|
2426
|
+
return (h(Host, Object.assign({ key: '978ba9cc81464b2d9b4caaf36285d5f7bf7e568d', "no-router": true,
|
|
2737
2427
|
// Allow the modal to be navigable when the handle is focusable
|
|
2738
2428
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
|
|
2739
2429
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2740
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), h("ion-backdrop", { key: '
|
|
2430
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), h("ion-backdrop", { key: '9f95566d8e0c06bb9607f514484848c250f35f1f', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '91ff26d4f3ab4367f3a2940f51c6a5a3d4c972c3', class: "modal-shadow" }), h("div", Object.assign({ key: '064b2dba13854505a4eb1f5e54296ac79cb7a2bd',
|
|
2741
2431
|
/*
|
|
2742
2432
|
role and aria-modal must be used on the
|
|
2743
2433
|
same element. They must also be set inside the
|
|
2744
2434
|
shadow DOM otherwise ion-button will not be highlighted
|
|
2745
2435
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
2746
2436
|
*/
|
|
2747
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '
|
|
2437
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: 'b579b08b114022032d078a527111456ceefc7b35', class: "modal-handle",
|
|
2748
2438
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
2749
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: '
|
|
2439
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: 'dacea58475b72d9c0209934ff31f3be6b9ac8c85', onSlotchange: this.onSlotChange }))));
|
|
2750
2440
|
}
|
|
2751
2441
|
get el() { return this; }
|
|
2752
2442
|
static get watchers() { return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { proxyCustomElement,
|
|
5
|
-
import { b as getIonMode } from './
|
|
4
|
+
import { p as proxyCustomElement, H, k as readTask, w as writeTask, h, d as Host } from './p-DWoUQeZ3.js';
|
|
5
|
+
import { b as getIonMode } from './p-Bxl5etF4.js';
|
|
6
6
|
|
|
7
7
|
const rippleEffectCss = ":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}";
|
|
8
8
|
|
|
9
|
-
const RippleEffect = /*@__PURE__*/ proxyCustomElement(class RippleEffect extends
|
|
9
|
+
const RippleEffect = /*@__PURE__*/ proxyCustomElement(class RippleEffect extends H {
|
|
10
10
|
constructor(registerHost) {
|
|
11
11
|
super();
|
|
12
12
|
if (registerHost !== false) {
|
|
@@ -76,7 +76,7 @@ const RippleEffect = /*@__PURE__*/ proxyCustomElement(class RippleEffect extends
|
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
const mode = getIonMode(this);
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '3b59cbb44741569a7350f9638b4392add673b6f1', role: "presentation", class: {
|
|
80
80
|
[mode]: true,
|
|
81
81
|
unbounded: this.unbounded,
|
|
82
82
|
} }));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { proxyCustomElement,
|
|
5
|
-
import { c as createColorClasses } from './
|
|
6
|
-
import { b as getIonMode } from './
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-DWoUQeZ3.js';
|
|
5
|
+
import { c as createColorClasses } from './p-DiVJyqlX.js';
|
|
6
|
+
import { b as getIonMode } from './p-Bxl5etF4.js';
|
|
7
7
|
|
|
8
8
|
const listHeaderIosCss = ":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:min(1.375rem, 56.1px);font-weight:700;letter-spacing:0}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){--padding-top:0;--padding-bottom:0;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px;min-height:1.4em}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}";
|
|
9
9
|
|
|
10
10
|
const listHeaderMdCss = ":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);min-height:45px;font-size:0.875rem}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}";
|
|
11
11
|
|
|
12
|
-
const ListHeader = /*@__PURE__*/ proxyCustomElement(class ListHeader extends
|
|
12
|
+
const ListHeader = /*@__PURE__*/ proxyCustomElement(class ListHeader extends H {
|
|
13
13
|
constructor(registerHost) {
|
|
14
14
|
super();
|
|
15
15
|
if (registerHost !== false) {
|
|
@@ -20,10 +20,10 @@ const ListHeader = /*@__PURE__*/ proxyCustomElement(class ListHeader extends HTM
|
|
|
20
20
|
render() {
|
|
21
21
|
const { lines } = this;
|
|
22
22
|
const mode = getIonMode(this);
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '2e529021279761b2b2889885437f619b0e8f71c4', class: createColorClasses(this.color, {
|
|
24
24
|
[mode]: true,
|
|
25
25
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
26
|
-
}) }, h("div", { key: '
|
|
26
|
+
}) }, h("div", { key: '9a6a11b0db015df79374f6489a40b959bc80b3e4', class: "list-header-inner" }, h("slot", { key: 'ef347fc6afb47850797e2e4d1aeefcd6a318f789' }))));
|
|
27
27
|
}
|
|
28
28
|
static get style() { return {
|
|
29
29
|
ios: listHeaderIosCss,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { w as win, d as doc } from './
|
|
5
|
-
import { g as getScrollElement, c as scrollByPoint, a as findClosestIonContent } from './
|
|
6
|
-
import { a as addEventListener, b as removeEventListener, r as raf, c as componentOnReady } from './
|
|
7
|
-
import { a as KeyboardResize, K as Keyboard } from './
|
|
4
|
+
import { w as win, d as doc } from './p-ZjP4CjeZ.js';
|
|
5
|
+
import { g as getScrollElement, c as scrollByPoint, a as findClosestIonContent } from './p-DNDUsygf.js';
|
|
6
|
+
import { a as addEventListener, b as removeEventListener, r as raf, c as componentOnReady } from './p-D5hF6rwn.js';
|
|
7
|
+
import { a as KeyboardResize, K as Keyboard } from './p-D13Eaw-8.js';
|
|
8
8
|
|
|
9
9
|
const cloneMap = new WeakMap();
|
|
10
10
|
const relocateInput = (componentEl, inputEl, shouldRelocate, inputRelativeY = 0, disabledClonedInput = false) => {
|