@ionic/core 8.3.1-dev.11726165401.13e99534 → 8.3.1-dev.11726167750.15400355
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/animation.js +1 -1
- package/components/button.js +2 -1
- package/components/capacitor.js +1 -1
- package/components/data.js +1 -1
- package/components/hardware-back-button.js +115 -0
- package/components/index2.js +2 -1
- package/components/index4.js +4 -1
- package/components/index5.js +3 -27
- package/components/index6.js +20 -114
- package/components/index7.js +27 -163
- package/components/index8.js +128 -0
- package/components/index9.js +167 -0
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +2 -1
- package/components/ion-accordion-group.js +2 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-app.js +64 -3
- package/components/ion-back-button.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-datetime-button.js +2 -1
- package/components/ion-datetime.js +3 -2
- package/components/ion-fab-button.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-password-toggle.js +3 -2
- package/components/ion-input.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu.js +2 -1
- package/components/ion-modal.js +4 -2
- package/components/ion-nav.js +2 -1
- package/components/ion-picker-legacy.js +2 -1
- package/components/ion-range.js +3 -2
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-toast.js +3 -1
- package/components/ion-toggle.js +1 -1
- package/components/ionic-global.js +2 -220
- package/components/item.js +1 -1
- package/components/keyboard-controller.js +1 -1
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +4 -1
- package/components/picker-column.js +2 -1
- package/components/popover.js +2 -1
- package/components/status-tap.js +1 -1
- package/dist/cjs/{animation-0e966ffd.js → animation-b4fdf128.js} +2 -2
- package/dist/cjs/{app-globals-efeec904.js → app-globals-21afee77.js} +1 -1
- package/dist/cjs/{button-active-2b9e348c.js → button-active-3f2f60b4.js} +2 -2
- package/dist/cjs/{capacitor-8b094750.js → capacitor-c04564bf.js} +3 -3
- package/dist/cjs/{data-dbc55c01.js → data-21dc0f81.js} +3 -3
- package/dist/cjs/{haptic-90af2b30.js → haptic-f6b37aa3.js} +1 -1
- package/dist/cjs/hardware-back-button-9e8a2c4f.js +122 -0
- package/dist/cjs/index-5915f9b3.js +38 -0
- package/dist/cjs/{index-2329dd7d.js → index-5b6a7459.js} +2 -2
- package/dist/cjs/{index-b9e25ecd.js → index-73f75efb.js} +13 -19
- package/dist/cjs/{index-205f4d6c.js → index-9509ecad.js} +6 -7
- package/dist/cjs/{index-b0d55bd0.js → index-9cd00dc3.js} +9 -6
- package/dist/cjs/index-c8d52405.js +10 -0
- package/dist/cjs/{index-2a7fa0c6.js → index-f05acd21.js} +8 -7
- package/dist/cjs/index.cjs.js +11 -8
- package/dist/cjs/{input-shims-850e2ebb.js → input-shims-9e59ef62.js} +16 -16
- package/dist/cjs/{input.utils-bff12d3f.js → input.utils-611cde0b.js} +4 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -7
- package/dist/cjs/ion-alert.cjs.entry.js +10 -7
- package/dist/cjs/ion-app_8.cjs.entry.js +82 -20
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +6 -5
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +8 -7
- package/dist/cjs/ion-datetime_3.cjs.entry.js +96 -93
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +8 -7
- package/dist/cjs/ion-input.cjs.entry.js +6 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -3
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +7 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +9 -6
- package/dist/cjs/ion-modal.cjs.entry.js +50 -47
- package/dist/cjs/ion-nav_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +6 -5
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +11 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +9 -8
- package/dist/cjs/ion-refresher_2.cjs.entry.js +8 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +7 -5
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +6 -5
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +6 -4
- package/dist/cjs/ion-toast.cjs.entry.js +32 -29
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -4
- package/dist/cjs/ionic-global-d9a8bb5b.js +237 -0
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-d3b17084.js → ios.transition-cf40433b.js} +6 -4
- package/dist/cjs/{keyboard-6a572bd2.js → keyboard-0272231f.js} +1 -1
- package/dist/cjs/{keyboard-29ccffc1.js → keyboard-af1bb365.js} +3 -4
- package/dist/cjs/{keyboard-controller-fcba95dc.js → keyboard-controller-c05e747a.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-fa016453.js → md.transition-ededf99f.js} +6 -4
- package/dist/cjs/{notch-controller-f23af294.js → notch-controller-d69150f5.js} +3 -3
- package/dist/cjs/{overlays-6cdb8aa4.js → overlays-0123d7d4.js} +12 -9
- package/dist/cjs/{status-tap-147ee377.js → status-tap-37681226.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/app/app.js +65 -3
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +1 -1
- package/dist/collection/global/ionic-global.js +1 -71
- package/dist/docs.json +108 -108
- package/dist/esm/{animation-bc91b6f2.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-a405ed0d.js → app-globals-5dbb61a5.js} +1 -1
- package/dist/esm/{button-active-405f8dfb.js → button-active-f6503382.js} +2 -2
- package/dist/esm/{capacitor-7a4165d9.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-a1b4d211.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{haptic-c00dcaf7.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm/hardware-back-button-06ef3c3e.js +116 -0
- package/dist/esm/{index-4e02bb5d.js → index-28849c61.js} +13 -19
- package/dist/esm/{index-3497dcba.js → index-3ad7f18b.js} +5 -4
- package/dist/esm/{index-3811e0a3.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-7d7fdaad.js → index-79b30591.js} +1 -2
- package/dist/esm/index-9b0d46f4.js +34 -0
- package/dist/esm/index-a5d50daf.js +7 -0
- package/dist/esm/{index-52a167d1.js → index-fe1782b1.js} +5 -2
- package/dist/esm/index.js +11 -8
- package/dist/esm/{input-shims-bc1cc120.js → input-shims-0314bbe5.js} +5 -5
- package/dist/esm/{input.utils-7a6034e6.js → input.utils-09c71bc7.js} +2 -1
- package/dist/esm/ion-accordion_2.entry.js +3 -2
- package/dist/esm/ion-action-sheet.entry.js +10 -7
- package/dist/esm/ion-alert.entry.js +10 -7
- package/dist/esm/ion-app_8.entry.js +71 -9
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +3 -2
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +4 -3
- package/dist/esm/ion-datetime_3.entry.js +10 -7
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -3
- package/dist/esm/ion-input-password-toggle.entry.js +3 -2
- package/dist/esm/ion-input.entry.js +6 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -3
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +7 -4
- package/dist/esm/ion-menu_3.entry.js +8 -5
- package/dist/esm/ion-modal.entry.js +12 -9
- package/dist/esm/ion-nav_2.entry.js +4 -3
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +5 -4
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +8 -5
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +4 -3
- package/dist/esm/ion-refresher_2.entry.js +8 -6
- package/dist/esm/ion-reorder_2.entry.js +7 -5
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +7 -4
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +6 -5
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +6 -4
- package/dist/esm/ion-toast.entry.js +7 -4
- package/dist/esm/ion-toggle.entry.js +5 -4
- package/dist/esm/ionic-global-c81d82ab.js +231 -0
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-d4256afc.js → ios.transition-4ee1a3af.js} +6 -4
- package/dist/esm/{keyboard-ed2134e3.js → keyboard-52278bd7.js} +3 -4
- package/dist/esm/{keyboard-d793eb55.js → keyboard-73175e24.js} +1 -1
- package/dist/esm/{keyboard-controller-63a70cc3.js → keyboard-controller-ec5c2bfa.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-2e0541c4.js → md.transition-5106a0d2.js} +6 -4
- package/dist/esm/{notch-controller-efd4d592.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm/{overlays-8ea559a8.js → overlays-9c75ec54.js} +4 -1
- package/dist/esm/{status-tap-b5cdef45.js → status-tap-f472b09f.js} +3 -3
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-5dbb61a5.js +4 -0
- package/dist/esm-es5/{button-active-405f8dfb.js → button-active-f6503382.js} +1 -1
- package/dist/esm-es5/capacitor-59395cbd.js +4 -0
- package/dist/esm-es5/data-ae11fd43.js +4 -0
- package/dist/esm-es5/{haptic-c00dcaf7.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm-es5/hardware-back-button-06ef3c3e.js +4 -0
- package/dist/esm-es5/index-28849c61.js +5 -0
- package/dist/esm-es5/index-3ad7f18b.js +4 -0
- package/dist/esm-es5/index-5cc724f3.js +4 -0
- package/dist/esm-es5/index-79b30591.js +4 -0
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/index-a5d50daf.js +4 -0
- package/dist/esm-es5/index-fe1782b1.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-0314bbe5.js +4 -0
- package/dist/esm-es5/input.utils-09c71bc7.js +4 -0
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic-global-c81d82ab.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-4ee1a3af.js +4 -0
- package/dist/esm-es5/keyboard-52278bd7.js +4 -0
- package/dist/esm-es5/{keyboard-d793eb55.js → keyboard-73175e24.js} +1 -1
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-5106a0d2.js +4 -0
- package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
- package/dist/esm-es5/overlays-9c75ec54.js +4 -0
- package/dist/esm-es5/status-tap-f472b09f.js +4 -0
- package/dist/html.html-data.json +102 -102
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-ae2ffc81.entry.js → p-003eecb9.entry.js} +1 -1
- package/dist/ionic/{p-8a2509af.system.entry.js → p-00b01a55.system.entry.js} +1 -1
- package/dist/ionic/{p-0e13c364.system.entry.js → p-01503bbd.system.entry.js} +1 -1
- package/dist/ionic/p-0303d0f8.js +4 -0
- package/dist/ionic/p-0373d924.system.entry.js +4 -0
- package/dist/ionic/p-0574e87e.js +4 -0
- package/dist/ionic/p-05beda73.entry.js +4 -0
- package/dist/ionic/p-06e58c4e.js +4 -0
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-0c06e09b.system.js +4 -0
- package/dist/ionic/p-0fa0c92b.entry.js +4 -0
- package/dist/ionic/p-100b83fd.system.entry.js +4 -0
- package/dist/ionic/{p-872bf4d3.system.entry.js → p-16207409.system.entry.js} +1 -1
- package/dist/ionic/p-17474161.system.js +4 -0
- package/dist/ionic/p-176b372f.entry.js +4 -0
- package/dist/ionic/{p-a3d8a4d8.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/{p-4018f881.system.js → p-1dfc11b3.system.js} +1 -1
- package/dist/ionic/{p-705a8c00.js → p-1e4371bd.js} +1 -1
- package/dist/ionic/p-21cfd4de.entry.js +4 -0
- package/dist/ionic/p-21e5e7e4.js +4 -0
- package/dist/ionic/{p-ed96c9a0.entry.js → p-2200e26b.entry.js} +1 -1
- package/dist/ionic/p-22c020db.system.entry.js +4 -0
- package/dist/ionic/{p-68728b43.entry.js → p-233e6c93.entry.js} +1 -1
- package/dist/ionic/p-25180df3.system.js +5 -0
- package/dist/ionic/{p-27292ed7.system.entry.js → p-25928b83.system.entry.js} +1 -1
- package/dist/ionic/{p-e7aee7cd.js → p-2690b1de.js} +1 -1
- package/dist/ionic/{p-67feade9.js → p-27281edd.js} +1 -1
- package/dist/ionic/{p-48d7aa61.system.entry.js → p-293ed6ac.system.entry.js} +1 -1
- package/dist/ionic/p-2b7827c7.js +4 -0
- package/dist/ionic/p-2b7c93b4.entry.js +4 -0
- package/dist/ionic/p-2c4bdd9d.entry.js +4 -0
- package/dist/ionic/{p-f8a3a05d.system.entry.js → p-2ca6eac2.system.entry.js} +1 -1
- package/dist/ionic/p-2ea1ca4f.system.entry.js +4 -0
- package/dist/ionic/{p-7a3cc822.system.entry.js → p-313ccc01.system.entry.js} +1 -1
- package/dist/ionic/{p-b5defde7.system.js → p-322c5fb4.system.js} +1 -1
- package/dist/ionic/{p-43a264be.js → p-34b11c24.js} +1 -1
- package/dist/ionic/{p-49530528.system.js → p-372ae7f4.system.js} +1 -1
- package/dist/ionic/{p-141fffe4.system.js → p-3c8e5c23.system.js} +1 -1
- package/dist/ionic/p-3c968c7f.system.entry.js +4 -0
- package/dist/ionic/{p-1ef8603e.entry.js → p-49bc6544.entry.js} +1 -1
- package/dist/ionic/{p-aed2b108.system.entry.js → p-4a0a4204.system.entry.js} +1 -1
- package/dist/ionic/{p-8cf8bda2.system.entry.js → p-4a82bd1c.system.entry.js} +1 -1
- package/dist/ionic/p-4b0fedb7.system.entry.js +4 -0
- package/dist/ionic/{p-cc5c828d.entry.js → p-4c8fceb0.entry.js} +1 -1
- package/dist/ionic/p-521eca2e.entry.js +4 -0
- package/dist/ionic/{p-7b24df04.entry.js → p-53854390.entry.js} +1 -1
- package/dist/ionic/p-5417b9bb.entry.js +4 -0
- package/dist/ionic/{p-e217d369.system.js → p-5da94421.system.js} +2 -2
- package/dist/ionic/p-5e66bcf2.entry.js +4 -0
- package/dist/ionic/{p-fa4b0c41.entry.js → p-5e842258.entry.js} +1 -1
- package/dist/ionic/{p-9d134a58.system.entry.js → p-6562e0a9.system.entry.js} +1 -1
- package/dist/ionic/{p-444c76ee.system.entry.js → p-6817cf42.system.entry.js} +1 -1
- package/dist/ionic/{p-ba1396d4.entry.js → p-68c4df55.entry.js} +1 -1
- package/dist/ionic/{p-bddc8f8e.js → p-69066a53.js} +1 -1
- package/dist/ionic/p-6b8893dd.entry.js +4 -0
- package/dist/ionic/p-6d7931cc.system.entry.js +4 -0
- package/dist/ionic/{p-97195002.entry.js → p-6e85e450.entry.js} +1 -1
- package/dist/ionic/{p-702d3b7d.entry.js → p-7243df6f.entry.js} +1 -1
- package/dist/ionic/p-7251fed5.entry.js +4 -0
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/{p-f92ff9d2.system.entry.js → p-72ffd137.system.entry.js} +1 -1
- package/dist/ionic/p-755b27f0.system.entry.js +4 -0
- package/dist/ionic/p-75c0dc65.system.entry.js +4 -0
- package/dist/ionic/{p-dd2e30d9.system.entry.js → p-772dacba.system.entry.js} +1 -1
- package/dist/ionic/{p-5222cdd0.entry.js → p-773d118d.entry.js} +1 -1
- package/dist/ionic/p-7740e32c.system.js +4 -0
- package/dist/ionic/p-792919fd.system.js +4 -0
- package/dist/ionic/p-7b30edcc.js +4 -0
- package/dist/ionic/p-7c50965e.entry.js +4 -0
- package/dist/ionic/{p-b6fbbe81.system.entry.js → p-836d39d4.system.entry.js} +1 -1
- package/dist/ionic/{p-45fdfccc.entry.js → p-854f9b64.entry.js} +1 -1
- package/dist/ionic/p-8836d0eb.system.entry.js +4 -0
- package/dist/ionic/p-88e63c7d.js +4 -0
- package/dist/ionic/{p-eb099866.system.js → p-8985cdb6.system.js} +1 -1
- package/dist/ionic/{p-ee00b4c1.entry.js → p-89a0a446.entry.js} +1 -1
- package/dist/ionic/{p-2b41e073.js → p-89b61afc.js} +1 -1
- package/dist/ionic/p-8b6232a6.system.entry.js +4 -0
- package/dist/ionic/{p-b0df97b9.entry.js → p-8d44cf1f.entry.js} +1 -1
- package/dist/ionic/p-8ed31163.system.entry.js +4 -0
- package/dist/ionic/{p-ddf9c7fa.system.js → p-9146695e.system.js} +1 -1
- package/dist/ionic/{p-6f58c884.entry.js → p-9172535c.entry.js} +1 -1
- package/dist/ionic/{p-325414c0.entry.js → p-92d7a3d1.entry.js} +1 -1
- package/dist/ionic/{p-ea72f71b.system.entry.js → p-93f37ceb.system.entry.js} +1 -1
- package/dist/ionic/p-95823c62.system.entry.js +4 -0
- package/dist/ionic/{p-95b84628.system.entry.js → p-960803fc.system.entry.js} +1 -1
- package/dist/ionic/p-96cc4814.js +4 -0
- package/dist/ionic/{p-cdc702c5.system.entry.js → p-973f0b15.system.entry.js} +1 -1
- package/dist/ionic/p-98871496.system.js +4 -0
- package/dist/ionic/{p-03852992.system.entry.js → p-9b6c6302.system.entry.js} +1 -1
- package/dist/ionic/p-9c23044d.entry.js +4 -0
- package/dist/ionic/p-9cc3bcc5.system.entry.js +4 -0
- package/dist/ionic/{p-fe533e9b.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/{p-e00617fb.entry.js → p-9ece8dcf.entry.js} +1 -1
- package/dist/ionic/p-9f3008d4.system.js +4 -0
- package/dist/ionic/p-9fef1364.entry.js +4 -0
- package/dist/ionic/p-a0c88dc2.system.entry.js +4 -0
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/p-a3711608.system.entry.js +4 -0
- package/dist/ionic/p-a41699db.entry.js +4 -0
- package/dist/ionic/p-a440397c.js +4 -0
- package/dist/ionic/p-a4565eb5.system.js +4 -0
- package/dist/ionic/p-a4d51b8d.system.js +4 -0
- package/dist/ionic/p-a69b9fc5.system.js +4 -0
- package/dist/ionic/p-a72fb8a1.system.entry.js +4 -0
- package/dist/ionic/{p-d74676dc.system.entry.js → p-a879ecb7.system.entry.js} +1 -1
- package/dist/ionic/p-a90e2708.system.entry.js +4 -0
- package/dist/ionic/{p-995f77b5.system.js → p-a93873de.system.js} +1 -1
- package/dist/ionic/{p-9cbf03b9.entry.js → p-ab8a2ff1.entry.js} +1 -1
- package/dist/ionic/p-abe101da.system.js +4 -0
- package/dist/ionic/{p-cc1e9101.entry.js → p-af999a31.entry.js} +1 -1
- package/dist/ionic/p-b0568945.system.entry.js +4 -0
- package/dist/ionic/{p-2693d3fb.system.js → p-b06ac4a5.system.js} +1 -1
- package/dist/ionic/p-b4c950f8.entry.js +4 -0
- package/dist/ionic/p-b54fc1ae.entry.js +4 -0
- package/dist/ionic/p-b7657e8d.entry.js +4 -0
- package/dist/ionic/p-baffaf8d.system.entry.js +4 -0
- package/dist/ionic/{p-e0b155a5.system.entry.js → p-bd25d639.system.entry.js} +1 -1
- package/dist/ionic/p-bfa2e81c.entry.js +4 -0
- package/dist/ionic/p-c34659b9.entry.js +4 -0
- package/dist/ionic/p-c45bd24c.entry.js +4 -0
- package/dist/ionic/p-c61cc894.js +4 -0
- package/dist/ionic/{p-646e5cb0.js → p-c7e16491.js} +1 -1
- package/dist/ionic/{p-a861930f.system.entry.js → p-cdb11938.system.entry.js} +1 -1
- package/dist/ionic/{p-ed1491e2.system.entry.js → p-ce705aac.system.entry.js} +1 -1
- package/dist/ionic/p-cff5585e.system.entry.js +4 -0
- package/dist/ionic/{p-e046c13d.js → p-d60342e3.js} +1 -1
- package/dist/ionic/p-d6841eac.js +4 -0
- package/dist/ionic/{p-92585b67.js → p-d743e981.js} +1 -1
- package/dist/ionic/p-d77e12ca.entry.js +4 -0
- package/dist/ionic/p-d836d43e.js +5 -0
- package/dist/ionic/p-da263d8e.entry.js +4 -0
- package/dist/ionic/p-df83e308.system.entry.js +4 -0
- package/dist/ionic/{p-ae31a576.system.js → p-dfb78785.system.js} +1 -1
- package/dist/ionic/p-e3a5da9d.entry.js +4 -0
- package/dist/ionic/{p-2f95e4a4.entry.js → p-e3e1e3de.entry.js} +1 -1
- package/dist/ionic/p-e3f13b08.js +4 -0
- package/dist/ionic/p-ecb57d24.system.entry.js +4 -0
- package/dist/ionic/p-ecceeb90.js +4 -0
- package/dist/ionic/p-efaffe74.entry.js +4 -0
- package/dist/ionic/p-f1acf541.system.entry.js +4 -0
- package/dist/ionic/p-f50ae0d5.system.entry.js +4 -0
- package/dist/ionic/{p-999693a8.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/p-f88ebc36.entry.js +4 -0
- package/dist/ionic/{p-de1e5d8a.entry.js → p-f8c8b9ba.entry.js} +1 -1
- package/dist/ionic/p-f9a53abb.system.js +4 -0
- package/dist/ionic/{p-2a3860b9.system.entry.js → p-fcd71204.system.entry.js} +1 -1
- package/dist/ionic/{p-cc35239f.entry.js → p-fd0cb4ef.entry.js} +1 -1
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/types/global/ionic-global.d.ts +0 -2
- package/hydrate/index.d.ts +4 -4
- package/hydrate/index.js +64 -75
- package/hydrate/index.mjs +64 -75
- package/package.json +3 -3
- package/dist/cjs/ionic-global-6d67c8d1.js +0 -464
- package/dist/esm/ionic-global-c44ae874.js +0 -449
- package/dist/esm-es5/animation-bc91b6f2.js +0 -4
- package/dist/esm-es5/app-globals-a405ed0d.js +0 -4
- package/dist/esm-es5/capacitor-7a4165d9.js +0 -4
- package/dist/esm-es5/data-a1b4d211.js +0 -4
- package/dist/esm-es5/index-3497dcba.js +0 -4
- package/dist/esm-es5/index-3811e0a3.js +0 -4
- package/dist/esm-es5/index-4e02bb5d.js +0 -5
- package/dist/esm-es5/index-52a167d1.js +0 -4
- package/dist/esm-es5/index-7d7fdaad.js +0 -4
- package/dist/esm-es5/input-shims-bc1cc120.js +0 -4
- package/dist/esm-es5/input.utils-7a6034e6.js +0 -4
- package/dist/esm-es5/ionic-global-c44ae874.js +0 -4
- package/dist/esm-es5/ios.transition-d4256afc.js +0 -4
- package/dist/esm-es5/keyboard-controller-63a70cc3.js +0 -4
- package/dist/esm-es5/keyboard-ed2134e3.js +0 -4
- package/dist/esm-es5/md.transition-2e0541c4.js +0 -4
- package/dist/esm-es5/notch-controller-efd4d592.js +0 -4
- package/dist/esm-es5/overlays-8ea559a8.js +0 -4
- package/dist/esm-es5/status-tap-b5cdef45.js +0 -4
- package/dist/ionic/p-002a43eb.system.entry.js +0 -4
- package/dist/ionic/p-0170e66d.system.entry.js +0 -4
- package/dist/ionic/p-06a15c1a.js +0 -4
- package/dist/ionic/p-0ae0b773.system.entry.js +0 -4
- package/dist/ionic/p-101b8d3c.system.entry.js +0 -4
- package/dist/ionic/p-1bc17376.js +0 -4
- package/dist/ionic/p-244f21d9.system.entry.js +0 -4
- package/dist/ionic/p-246855ee.js +0 -4
- package/dist/ionic/p-2901b77d.entry.js +0 -4
- package/dist/ionic/p-2e95ce86.entry.js +0 -4
- package/dist/ionic/p-3231947e.system.entry.js +0 -4
- package/dist/ionic/p-3414d514.entry.js +0 -4
- package/dist/ionic/p-3936977d.system.entry.js +0 -4
- package/dist/ionic/p-421103f4.entry.js +0 -4
- package/dist/ionic/p-48691dfe.system.entry.js +0 -4
- package/dist/ionic/p-487a3ae7.system.js +0 -5
- package/dist/ionic/p-48c96b9c.js +0 -4
- package/dist/ionic/p-4b528ed3.js +0 -5
- package/dist/ionic/p-4e2452de.entry.js +0 -4
- package/dist/ionic/p-5bacc2dc.entry.js +0 -4
- package/dist/ionic/p-5bc2035a.entry.js +0 -4
- package/dist/ionic/p-5d706e16.system.js +0 -4
- package/dist/ionic/p-61740302.entry.js +0 -4
- package/dist/ionic/p-64bfc41b.entry.js +0 -4
- package/dist/ionic/p-65492fd5.entry.js +0 -4
- package/dist/ionic/p-66cb9ae9.entry.js +0 -4
- package/dist/ionic/p-6a304027.js +0 -4
- package/dist/ionic/p-6aeef436.system.entry.js +0 -4
- package/dist/ionic/p-701188f8.system.entry.js +0 -4
- package/dist/ionic/p-703c78f0.js +0 -4
- package/dist/ionic/p-740566fc.system.js +0 -4
- package/dist/ionic/p-757b4aa4.system.entry.js +0 -4
- package/dist/ionic/p-769484a8.system.js +0 -4
- package/dist/ionic/p-7a5a9a11.entry.js +0 -4
- package/dist/ionic/p-7c64f804.entry.js +0 -4
- package/dist/ionic/p-7cca9c01.system.js +0 -4
- package/dist/ionic/p-8235cab9.system.entry.js +0 -4
- package/dist/ionic/p-8ac6a104.system.entry.js +0 -4
- package/dist/ionic/p-8af57279.js +0 -4
- package/dist/ionic/p-8b067044.system.entry.js +0 -4
- package/dist/ionic/p-9282e480.system.entry.js +0 -4
- package/dist/ionic/p-96eaa7e2.entry.js +0 -4
- package/dist/ionic/p-9890a4c4.entry.js +0 -4
- package/dist/ionic/p-996a2209.system.js +0 -4
- package/dist/ionic/p-a03a1264.system.js +0 -4
- package/dist/ionic/p-a5537ce0.system.entry.js +0 -4
- package/dist/ionic/p-a6af8913.js +0 -4
- package/dist/ionic/p-a9fb3848.entry.js +0 -4
- package/dist/ionic/p-aa5f8086.system.entry.js +0 -4
- package/dist/ionic/p-ab6f49d3.system.entry.js +0 -4
- package/dist/ionic/p-b46ccde5.js +0 -4
- package/dist/ionic/p-b6438d56.js +0 -4
- package/dist/ionic/p-bce90bcc.entry.js +0 -4
- package/dist/ionic/p-bd5f5dd5.system.entry.js +0 -4
- package/dist/ionic/p-be720bce.entry.js +0 -4
- package/dist/ionic/p-be7ba661.system.entry.js +0 -4
- package/dist/ionic/p-c8414717.entry.js +0 -4
- package/dist/ionic/p-c95c6694.entry.js +0 -4
- package/dist/ionic/p-cc8dc05a.js +0 -4
- package/dist/ionic/p-cd78816f.system.js +0 -4
- package/dist/ionic/p-cdd44009.system.entry.js +0 -4
- package/dist/ionic/p-cf4097be.system.js +0 -4
- package/dist/ionic/p-d08ba7ce.entry.js +0 -4
- package/dist/ionic/p-d599973b.entry.js +0 -4
- package/dist/ionic/p-d95bfbd2.entry.js +0 -4
- package/dist/ionic/p-da014e9d.entry.js +0 -4
- package/dist/ionic/p-df41ef98.entry.js +0 -4
- package/dist/ionic/p-e0cda956.js +0 -4
- package/dist/ionic/p-e5c0076e.system.entry.js +0 -4
- package/dist/ionic/p-eb8b0915.system.js +0 -4
- package/dist/ionic/p-ec7c2905.system.entry.js +0 -4
- package/dist/ionic/p-efdc8a89.entry.js +0 -4
- package/dist/ionic/p-f9f735c2.system.entry.js +0 -4
- package/dist/ionic/p-fb885b36.system.entry.js +0 -4
- package/dist/ionic/p-ff896585.system.js +0 -4
package/components/ion-range.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { a as findClosestIonContent, d as disableContentScrollY, r as resetContentScrollY } from './
|
|
5
|
+
import { a as findClosestIonContent, d as disableContentScrollY, r as resetContentScrollY } from './index8.js';
|
|
6
6
|
import { k as clamp, l as debounceEvent, i as inheritAriaAttributes, e as renderHiddenInput } from './helpers.js';
|
|
7
|
-
import { p as printIonWarning
|
|
7
|
+
import { p as printIonWarning } from './index6.js';
|
|
8
8
|
import { i as isRTL } from './dir.js';
|
|
9
9
|
import { h as hostContext, c as createColorClasses } from './theme.js';
|
|
10
|
+
import { b as getIonMode } from './ionic-global.js';
|
|
10
11
|
|
|
11
12
|
function getDecimalPlaces(n) {
|
|
12
13
|
if (n % 1 === 0)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config.js';
|
|
6
|
-
import { p as caretBackSharp, q as arrowDown } from './
|
|
6
|
+
import { p as caretBackSharp, q as arrowDown } from './index7.js';
|
|
7
7
|
import { c as config, b as getIonMode } from './ionic-global.js';
|
|
8
8
|
import { e as supportsRubberBandScrolling } from './refresher.utils.js';
|
|
9
9
|
import { d as defineCustomElement$2, S as SPINNERS } from './spinner.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, writeTask, readTask, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { g as getTimeGivenProgression } from './cubic-bezier.js';
|
|
6
|
-
import { I as ION_CONTENT_CLASS_SELECTOR, b as ION_CONTENT_ELEMENT_SELECTOR, p as printIonContentErrorMsg, g as getScrollElement } from './
|
|
6
|
+
import { I as ION_CONTENT_CLASS_SELECTOR, b as ION_CONTENT_ELEMENT_SELECTOR, p as printIonContentErrorMsg, g as getScrollElement } from './index8.js';
|
|
7
7
|
import { t as transitionEndAsync, k as clamp, g as getElementRoot, c as componentOnReady, r as raf } from './helpers.js';
|
|
8
8
|
import { c as hapticImpact, I as ImpactStyle } from './haptic.js';
|
|
9
9
|
import { b as getIonMode } from './ionic-global.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { a as findClosestIonContent, g as getScrollElement } from './
|
|
5
|
+
import { a as findClosestIonContent, g as getScrollElement } from './index8.js';
|
|
6
6
|
import { r as raf } from './helpers.js';
|
|
7
7
|
import { a as hapticSelectionStart, b as hapticSelectionChanged, h as hapticSelectionEnd } from './haptic.js';
|
|
8
8
|
import { b as getIonMode } from './ionic-global.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { r as reorderThreeOutline, s as reorderTwoSharp } from './
|
|
5
|
+
import { r as reorderThreeOutline, s as reorderTwoSharp } from './index7.js';
|
|
6
6
|
import { b as getIonMode } from './ionic-global.js';
|
|
7
7
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } fr
|
|
|
5
5
|
import { l as debounceEvent, d as inheritAttributes, c as componentOnReady, r as raf } from './helpers.js';
|
|
6
6
|
import { i as isRTL } from './dir.js';
|
|
7
7
|
import { c as createColorClasses } from './theme.js';
|
|
8
|
-
import { b as arrowBackSharp, j as closeCircle, k as closeSharp, t as searchOutline, u as searchSharp } from './
|
|
8
|
+
import { b as arrowBackSharp, j as closeCircle, k as closeSharp, t as searchOutline, u as searchSharp } from './index7.js';
|
|
9
9
|
import { c as config, b as getIonMode } from './ionic-global.js';
|
|
10
10
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
11
11
|
|
package/components/ion-select.js
CHANGED
|
@@ -9,7 +9,7 @@ import { c as popoverController, b as actionSheetController, a as alertControlle
|
|
|
9
9
|
import { i as isRTL } from './dir.js';
|
|
10
10
|
import { h as hostContext, c as createColorClasses } from './theme.js';
|
|
11
11
|
import { w as watchForOptions } from './watch-options.js';
|
|
12
|
-
import { v as chevronExpand, h as caretDownSharp } from './
|
|
12
|
+
import { v as chevronExpand, h as caretDownSharp } from './index7.js';
|
|
13
13
|
import { b as getIonMode } from './ionic-global.js';
|
|
14
14
|
import { d as defineCustomElement$f } from './action-sheet.js';
|
|
15
15
|
import { d as defineCustomElement$e } from './alert.js';
|
package/components/ion-toast.js
CHANGED
|
@@ -5,10 +5,12 @@ import { Build, proxyCustomElement, HTMLElement, createEvent, h, Host } from '@s
|
|
|
5
5
|
import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config.js';
|
|
6
6
|
import { g as getElementRoot, r as raf } from './helpers.js';
|
|
7
7
|
import { c as createLockController } from './lock-controller.js';
|
|
8
|
-
import {
|
|
8
|
+
import { p as printIonWarning } from './index6.js';
|
|
9
9
|
import { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays.js';
|
|
10
10
|
import { c as createColorClasses, g as getClassMap } from './theme.js';
|
|
11
|
+
import { c as config, b as getIonMode } from './ionic-global.js';
|
|
11
12
|
import { c as createAnimation } from './animation.js';
|
|
13
|
+
import { w as win } from './index5.js';
|
|
12
14
|
import { createGesture } from './index3.js';
|
|
13
15
|
import { d as defineCustomElement$3 } from './icon.js';
|
|
14
16
|
import { d as defineCustomElement$2 } from './ripple-effect.js';
|
package/components/ion-toggle.js
CHANGED
|
@@ -6,7 +6,7 @@ import { i as inheritAriaAttributes, e as renderHiddenInput } from './helpers.js
|
|
|
6
6
|
import { d as hapticSelection } from './haptic.js';
|
|
7
7
|
import { i as isRTL } from './dir.js';
|
|
8
8
|
import { c as createColorClasses, h as hostContext } from './theme.js';
|
|
9
|
-
import { w as checkmarkOutline, x as removeOutline, y as ellipseOutline } from './
|
|
9
|
+
import { w as checkmarkOutline, x as removeOutline, y as ellipseOutline } from './index7.js';
|
|
10
10
|
import { c as config, b as getIonMode } from './ionic-global.js';
|
|
11
11
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
12
12
|
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { setPlatformHelpers, setMode,
|
|
5
|
-
|
|
6
|
-
const win = typeof window !== 'undefined' ? window : undefined;
|
|
7
|
-
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
4
|
+
import { setPlatformHelpers, setMode, getMode } from '@stencil/core/internal/client';
|
|
8
5
|
|
|
9
6
|
// TODO(FW-2832): types
|
|
10
7
|
class Config {
|
|
@@ -81,153 +78,6 @@ const startsWith = (input, search) => {
|
|
|
81
78
|
const IONIC_PREFIX = 'ionic:';
|
|
82
79
|
const IONIC_SESSION_KEY = 'ionic-persist-config';
|
|
83
80
|
|
|
84
|
-
/**
|
|
85
|
-
* Logs a warning to the console with an Ionic prefix
|
|
86
|
-
* to indicate the library that is warning the developer.
|
|
87
|
-
*
|
|
88
|
-
* @param message - The string message to be logged to the console.
|
|
89
|
-
*/
|
|
90
|
-
const printIonWarning = (message, ...params) => {
|
|
91
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
92
|
-
};
|
|
93
|
-
/*
|
|
94
|
-
* Logs an error to the console with an Ionic prefix
|
|
95
|
-
* to indicate the library that is warning the developer.
|
|
96
|
-
*
|
|
97
|
-
* @param message - The string message to be logged to the console.
|
|
98
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
99
|
-
*/
|
|
100
|
-
const printIonError = (message, ...params) => {
|
|
101
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
105
|
-
* within a specific selector.
|
|
106
|
-
*
|
|
107
|
-
* @param el The web component element this is requiring the element.
|
|
108
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
109
|
-
*/
|
|
110
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
111
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* CloseWatcher is a newer API that lets
|
|
116
|
-
* use detect the hardware back button event
|
|
117
|
-
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
118
|
-
* However, not every browser supports it yet.
|
|
119
|
-
*
|
|
120
|
-
* This needs to be a function so that we can
|
|
121
|
-
* check the config once it has been set.
|
|
122
|
-
* Otherwise, this code would be evaluated the
|
|
123
|
-
* moment this file is evaluated which could be
|
|
124
|
-
* before the config is set.
|
|
125
|
-
*/
|
|
126
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win !== undefined && 'CloseWatcher' in win;
|
|
127
|
-
/**
|
|
128
|
-
* When hardwareBackButton: false in config,
|
|
129
|
-
* we need to make sure we also block the default
|
|
130
|
-
* webview behavior. If we don't then it will be
|
|
131
|
-
* possible for users to navigate backward while
|
|
132
|
-
* an overlay is still open. Additionally, it will
|
|
133
|
-
* give the appearance that the hardwareBackButton
|
|
134
|
-
* config is not working as the page transition
|
|
135
|
-
* will still happen.
|
|
136
|
-
*/
|
|
137
|
-
const blockHardwareBackButton = () => {
|
|
138
|
-
document.addEventListener('backbutton', () => { }); // eslint-disable-line
|
|
139
|
-
};
|
|
140
|
-
const startHardwareBackButton = () => {
|
|
141
|
-
const doc = document;
|
|
142
|
-
let busy = false;
|
|
143
|
-
const backButtonCallback = () => {
|
|
144
|
-
if (busy) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
let index = 0;
|
|
148
|
-
let handlers = [];
|
|
149
|
-
const ev = new CustomEvent('ionBackButton', {
|
|
150
|
-
bubbles: false,
|
|
151
|
-
detail: {
|
|
152
|
-
register(priority, handler) {
|
|
153
|
-
handlers.push({ priority, handler, id: index++ });
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
});
|
|
157
|
-
doc.dispatchEvent(ev);
|
|
158
|
-
const executeAction = async (handlerRegister) => {
|
|
159
|
-
try {
|
|
160
|
-
if (handlerRegister === null || handlerRegister === void 0 ? void 0 : handlerRegister.handler) {
|
|
161
|
-
const result = handlerRegister.handler(processHandlers);
|
|
162
|
-
if (result != null) {
|
|
163
|
-
await result;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
catch (e) {
|
|
168
|
-
console.error(e);
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const processHandlers = () => {
|
|
172
|
-
if (handlers.length > 0) {
|
|
173
|
-
let selectedHandler = {
|
|
174
|
-
priority: Number.MIN_SAFE_INTEGER,
|
|
175
|
-
handler: () => undefined,
|
|
176
|
-
id: -1,
|
|
177
|
-
};
|
|
178
|
-
handlers.forEach((handler) => {
|
|
179
|
-
if (handler.priority >= selectedHandler.priority) {
|
|
180
|
-
selectedHandler = handler;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
busy = true;
|
|
184
|
-
handlers = handlers.filter((handler) => handler.id !== selectedHandler.id);
|
|
185
|
-
executeAction(selectedHandler).then(() => (busy = false));
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
processHandlers();
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* If the CloseWatcher is defined then
|
|
192
|
-
* we don't want to also listen for the native
|
|
193
|
-
* backbutton event otherwise we may get duplicate
|
|
194
|
-
* events firing.
|
|
195
|
-
*/
|
|
196
|
-
if (shouldUseCloseWatcher()) {
|
|
197
|
-
let watcher;
|
|
198
|
-
const configureWatcher = () => {
|
|
199
|
-
watcher === null || watcher === void 0 ? void 0 : watcher.destroy();
|
|
200
|
-
watcher = new win.CloseWatcher();
|
|
201
|
-
/**
|
|
202
|
-
* Once a close request happens
|
|
203
|
-
* the watcher gets destroyed.
|
|
204
|
-
* As a result, we need to re-configure
|
|
205
|
-
* the watcher so we can respond to other
|
|
206
|
-
* close requests.
|
|
207
|
-
*/
|
|
208
|
-
watcher.onclose = () => {
|
|
209
|
-
backButtonCallback();
|
|
210
|
-
configureWatcher();
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
configureWatcher();
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
doc.addEventListener('backbutton', backButtonCallback);
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
220
|
-
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
221
|
-
|
|
222
|
-
const hardwareBackButton = /*#__PURE__*/Object.freeze({
|
|
223
|
-
__proto__: null,
|
|
224
|
-
shouldUseCloseWatcher: shouldUseCloseWatcher,
|
|
225
|
-
blockHardwareBackButton: blockHardwareBackButton,
|
|
226
|
-
startHardwareBackButton: startHardwareBackButton,
|
|
227
|
-
OVERLAY_BACK_BUTTON_PRIORITY: OVERLAY_BACK_BUTTON_PRIORITY,
|
|
228
|
-
MENU_BACK_BUTTON_PRIORITY: MENU_BACK_BUTTON_PRIORITY
|
|
229
|
-
});
|
|
230
|
-
|
|
231
81
|
const getPlatforms = (win) => setupPlatforms(win);
|
|
232
82
|
const isPlatform = (winOrPlatform, platform) => {
|
|
233
83
|
if (typeof winOrPlatform === 'string') {
|
|
@@ -321,33 +171,6 @@ let defaultMode;
|
|
|
321
171
|
const getIonMode = (ref) => {
|
|
322
172
|
return (ref && getMode(ref)) || defaultMode;
|
|
323
173
|
};
|
|
324
|
-
const rIC = (callback) => {
|
|
325
|
-
if ('requestIdleCallback' in window) {
|
|
326
|
-
window.requestIdleCallback(callback);
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
setTimeout(callback, 32);
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
const needInputShims = () => {
|
|
333
|
-
/**
|
|
334
|
-
* iOS always needs input shims
|
|
335
|
-
*/
|
|
336
|
-
const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
|
|
337
|
-
if (needsShimsIOS) {
|
|
338
|
-
return true;
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Android only needs input shims when running
|
|
342
|
-
* in the browser and only if the browser is using the
|
|
343
|
-
* new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
|
|
344
|
-
*/
|
|
345
|
-
const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
|
|
346
|
-
if (isAndroidMobileWeb) {
|
|
347
|
-
return true;
|
|
348
|
-
}
|
|
349
|
-
return false;
|
|
350
|
-
};
|
|
351
174
|
const initialize = (userConfig = {}) => {
|
|
352
175
|
if (typeof window === 'undefined') {
|
|
353
176
|
return;
|
|
@@ -403,47 +226,6 @@ const initialize = (userConfig = {}) => {
|
|
|
403
226
|
}
|
|
404
227
|
return defaultMode;
|
|
405
228
|
});
|
|
406
|
-
// `IonApp` code
|
|
407
|
-
// ----------------------------------------------
|
|
408
|
-
if (Build.isBrowser) {
|
|
409
|
-
rIC(async () => {
|
|
410
|
-
const isHybrid = isPlatform(window, 'hybrid');
|
|
411
|
-
if (!config.getBoolean('_testing')) {
|
|
412
|
-
import('./index7.js').then((module) => module.startTapClick(config));
|
|
413
|
-
}
|
|
414
|
-
if (config.getBoolean('statusTap', isHybrid)) {
|
|
415
|
-
import('./status-tap.js').then((module) => module.startStatusTap());
|
|
416
|
-
}
|
|
417
|
-
if (config.getBoolean('inputShims', needInputShims())) {
|
|
418
|
-
/**
|
|
419
|
-
* needInputShims() ensures that only iOS and Android
|
|
420
|
-
* platforms proceed into this block.
|
|
421
|
-
*/
|
|
422
|
-
const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
423
|
-
import('./input-shims.js').then((module) => module.startInputShims(config, platform));
|
|
424
|
-
}
|
|
425
|
-
const hardwareBackButtonModule = await Promise.resolve().then(function () { return hardwareBackButton; });
|
|
426
|
-
const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();
|
|
427
|
-
if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {
|
|
428
|
-
hardwareBackButtonModule.startHardwareBackButton();
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
/**
|
|
432
|
-
* If an app sets hardwareBackButton: false and experimentalCloseWatcher: true
|
|
433
|
-
* then the close watcher will not be used.
|
|
434
|
-
*/
|
|
435
|
-
if (shouldUseCloseWatcher()) {
|
|
436
|
-
printIonWarning('experimentalCloseWatcher was set to `true`, but hardwareBackButton was set to `false`. Both config options must be `true` for the Close Watcher API to be used.');
|
|
437
|
-
}
|
|
438
|
-
hardwareBackButtonModule.blockHardwareBackButton();
|
|
439
|
-
}
|
|
440
|
-
if (typeof window !== 'undefined') {
|
|
441
|
-
import('./keyboard2.js').then((module) => module.startKeyboardAssist(window));
|
|
442
|
-
}
|
|
443
|
-
// TODO
|
|
444
|
-
// import('../../utils/focus-visible').then((module) => (this.focusVisible = module.startFocusVisible()));
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
229
|
};
|
|
448
230
|
|
|
449
|
-
export {
|
|
231
|
+
export { isPlatform as a, getIonMode as b, config as c, getPlatforms as g, initialize as i };
|
package/components/item.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { d as inheritAttributes, r as raf } from './helpers.js';
|
|
6
6
|
import { h as hostContext, c as createColorClasses, o as openURL } from './theme.js';
|
|
7
|
-
import { f as chevronForward } from './
|
|
7
|
+
import { f as chevronForward } from './index7.js';
|
|
8
8
|
import { b as getIonMode } from './ionic-global.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
10
10
|
import { d as defineCustomElement$1 } from './ripple-effect.js';
|
package/components/overlays.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { d as doc } from './index5.js';
|
|
5
5
|
import { f as focusVisibleElement, c as componentOnReady, a as addEventListener, b as removeEventListener, g as getElementRoot } from './helpers.js';
|
|
6
|
+
import { OVERLAY_BACK_BUTTON_PRIORITY, shouldUseCloseWatcher } from './hardware-back-button.js';
|
|
7
|
+
import { b as getIonMode, c as config } from './ionic-global.js';
|
|
6
8
|
import { C as CoreDelegate } from './framework-delegate.js';
|
|
7
9
|
import { B as BACKDROP_NO_SCROLL } from './gesture-controller.js';
|
|
10
|
+
import { p as printIonWarning } from './index6.js';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* This query string selects elements that
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import {
|
|
5
|
+
import { d as doc } from './index5.js';
|
|
6
6
|
import { r as raf, g as getElementRoot } from './helpers.js';
|
|
7
7
|
import { a as hapticSelectionStart, b as hapticSelectionChanged, h as hapticSelectionEnd } from './haptic.js';
|
|
8
|
+
import { a as isPlatform, b as getIonMode } from './ionic-global.js';
|
|
8
9
|
import { c as createColorClasses } from './theme.js';
|
|
9
10
|
|
|
10
11
|
const pickerColumnCss = ":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;height:200px;font-size:22px;text-align:center}.assistive-focusable{left:0;right:0;top:0;bottom:0;position:absolute;z-index:1;pointer-events:none}.assistive-focusable:focus{outline:none}.picker-opts{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-width:26px;max-height:200px;outline:none;text-align:inherit;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none}.picker-item-empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.picker-opts::-webkit-scrollbar{display:none}::slotted(ion-picker-column-option){display:block;scroll-snap-align:center}.picker-item-empty,:host(:not([disabled])) ::slotted(ion-picker-column-option.option-disabled){scroll-snap-align:none}::slotted([slot=prefix]),::slotted([slot=suffix]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::slotted([slot=prefix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:end;justify-content:end}::slotted([slot=suffix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:start;justify-content:start}:host(.picker-column-disabled) .picker-opts{overflow-y:hidden}:host(.picker-column-disabled) ::slotted(ion-picker-column-option){cursor:default;opacity:0.4;pointer-events:none}@media (any-hover: hover){:host(:focus) .picker-opts{outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}";
|
package/components/popover.js
CHANGED
|
@@ -6,7 +6,8 @@ import { B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, n
|
|
|
6
6
|
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate.js';
|
|
7
7
|
import { r as raf, g as getElementRoot, a as addEventListener, j as hasLazyBuild } from './helpers.js';
|
|
8
8
|
import { c as createLockController } from './lock-controller.js';
|
|
9
|
-
import { p as printIonWarning
|
|
9
|
+
import { p as printIonWarning } from './index6.js';
|
|
10
|
+
import { b as getIonMode, a as isPlatform } from './ionic-global.js';
|
|
10
11
|
import { g as getClassMap } from './theme.js';
|
|
11
12
|
import { e as deepReady, w as waitForMount } from './index2.js';
|
|
12
13
|
import { c as createAnimation } from './animation.js';
|
package/components/status-tap.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { readTask, writeTask } from '@stencil/core/internal/client';
|
|
5
|
-
import { a as findClosestIonContent, s as scrollToTop } from './
|
|
5
|
+
import { a as findClosestIonContent, s as scrollToTop } from './index8.js';
|
|
6
6
|
import { c as componentOnReady } from './helpers.js';
|
|
7
7
|
|
|
8
8
|
const startStatusTap = () => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const index = require('./index-c8d52405.js');
|
|
7
7
|
|
|
8
8
|
let animationPrefix;
|
|
9
9
|
const getAnimationPrefix = (el) => {
|
|
@@ -66,7 +66,7 @@ const createAnimation = (animationId) => {
|
|
|
66
66
|
const _afterAddWriteFunctions = [];
|
|
67
67
|
const webAnimations = [];
|
|
68
68
|
const supportsAnimationEffect = typeof AnimationEffect === 'function' ||
|
|
69
|
-
(
|
|
69
|
+
(index.win !== undefined && typeof index.win.AnimationEffect === 'function');
|
|
70
70
|
/**
|
|
71
71
|
* This is a feature detection for Web Animations.
|
|
72
72
|
*
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const haptic = require('./haptic-
|
|
6
|
+
const index$1 = require('./index-73f75efb.js');
|
|
7
|
+
const haptic = require('./haptic-f6b37aa3.js');
|
|
8
8
|
const index = require('./index-ee07ed59.js');
|
|
9
9
|
|
|
10
10
|
const createButtonActiveGesture = (el, isButton) => {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const index = require('./index-c8d52405.js');
|
|
7
7
|
|
|
8
8
|
const getCapacitor = () => {
|
|
9
|
-
if (
|
|
10
|
-
return
|
|
9
|
+
if (index.win !== undefined) {
|
|
10
|
+
return index.win.Capacitor;
|
|
11
11
|
}
|
|
12
12
|
return undefined;
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const index = require('./index-5915f9b3.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns true if the selected day is equal to the reference day
|
|
@@ -37,7 +37,7 @@ const warnIfValueOutOfBounds = (value, min, max) => {
|
|
|
37
37
|
const valueArray = Array.isArray(value) ? value : [value];
|
|
38
38
|
for (const val of valueArray) {
|
|
39
39
|
if ((min !== undefined && isBefore(val, min)) || (max !== undefined && isAfter(val, max))) {
|
|
40
|
-
|
|
40
|
+
index.printIonWarning('The value provided to ion-datetime is out of bounds.\n\n' +
|
|
41
41
|
`Min: ${JSON.stringify(min)}\n` +
|
|
42
42
|
`Max: ${JSON.stringify(max)}\n` +
|
|
43
43
|
`Value: ${JSON.stringify(value)}`);
|
|
@@ -254,7 +254,7 @@ function parseDate(val) {
|
|
|
254
254
|
}
|
|
255
255
|
if (parse === null) {
|
|
256
256
|
// wasn't able to parse the ISO datetime
|
|
257
|
-
|
|
257
|
+
index.printIonWarning(`Unable to parse date string: ${val}. Please provide a valid ISO 8601 datetime string.`);
|
|
258
258
|
return undefined;
|
|
259
259
|
}
|
|
260
260
|
// ensure all the parse values exist with at least 0
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
const index = require('./index-c8d52405.js');
|
|
7
|
+
const ionicGlobal = require('./ionic-global-d9a8bb5b.js');
|
|
8
|
+
require('./index-73f75efb.js');
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* CloseWatcher is a newer API that lets
|
|
12
|
+
* use detect the hardware back button event
|
|
13
|
+
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
14
|
+
* However, not every browser supports it yet.
|
|
15
|
+
*
|
|
16
|
+
* This needs to be a function so that we can
|
|
17
|
+
* check the config once it has been set.
|
|
18
|
+
* Otherwise, this code would be evaluated the
|
|
19
|
+
* moment this file is evaluated which could be
|
|
20
|
+
* before the config is set.
|
|
21
|
+
*/
|
|
22
|
+
const shouldUseCloseWatcher = () => ionicGlobal.config.get('experimentalCloseWatcher', false) && index.win !== undefined && 'CloseWatcher' in index.win;
|
|
23
|
+
/**
|
|
24
|
+
* When hardwareBackButton: false in config,
|
|
25
|
+
* we need to make sure we also block the default
|
|
26
|
+
* webview behavior. If we don't then it will be
|
|
27
|
+
* possible for users to navigate backward while
|
|
28
|
+
* an overlay is still open. Additionally, it will
|
|
29
|
+
* give the appearance that the hardwareBackButton
|
|
30
|
+
* config is not working as the page transition
|
|
31
|
+
* will still happen.
|
|
32
|
+
*/
|
|
33
|
+
const blockHardwareBackButton = () => {
|
|
34
|
+
document.addEventListener('backbutton', () => { }); // eslint-disable-line
|
|
35
|
+
};
|
|
36
|
+
const startHardwareBackButton = () => {
|
|
37
|
+
const doc = document;
|
|
38
|
+
let busy = false;
|
|
39
|
+
const backButtonCallback = () => {
|
|
40
|
+
if (busy) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
let index = 0;
|
|
44
|
+
let handlers = [];
|
|
45
|
+
const ev = new CustomEvent('ionBackButton', {
|
|
46
|
+
bubbles: false,
|
|
47
|
+
detail: {
|
|
48
|
+
register(priority, handler) {
|
|
49
|
+
handlers.push({ priority, handler, id: index++ });
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
doc.dispatchEvent(ev);
|
|
54
|
+
const executeAction = async (handlerRegister) => {
|
|
55
|
+
try {
|
|
56
|
+
if (handlerRegister === null || handlerRegister === void 0 ? void 0 : handlerRegister.handler) {
|
|
57
|
+
const result = handlerRegister.handler(processHandlers);
|
|
58
|
+
if (result != null) {
|
|
59
|
+
await result;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e) {
|
|
64
|
+
console.error(e);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const processHandlers = () => {
|
|
68
|
+
if (handlers.length > 0) {
|
|
69
|
+
let selectedHandler = {
|
|
70
|
+
priority: Number.MIN_SAFE_INTEGER,
|
|
71
|
+
handler: () => undefined,
|
|
72
|
+
id: -1,
|
|
73
|
+
};
|
|
74
|
+
handlers.forEach((handler) => {
|
|
75
|
+
if (handler.priority >= selectedHandler.priority) {
|
|
76
|
+
selectedHandler = handler;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
busy = true;
|
|
80
|
+
handlers = handlers.filter((handler) => handler.id !== selectedHandler.id);
|
|
81
|
+
executeAction(selectedHandler).then(() => (busy = false));
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
processHandlers();
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* If the CloseWatcher is defined then
|
|
88
|
+
* we don't want to also listen for the native
|
|
89
|
+
* backbutton event otherwise we may get duplicate
|
|
90
|
+
* events firing.
|
|
91
|
+
*/
|
|
92
|
+
if (shouldUseCloseWatcher()) {
|
|
93
|
+
let watcher;
|
|
94
|
+
const configureWatcher = () => {
|
|
95
|
+
watcher === null || watcher === void 0 ? void 0 : watcher.destroy();
|
|
96
|
+
watcher = new index.win.CloseWatcher();
|
|
97
|
+
/**
|
|
98
|
+
* Once a close request happens
|
|
99
|
+
* the watcher gets destroyed.
|
|
100
|
+
* As a result, we need to re-configure
|
|
101
|
+
* the watcher so we can respond to other
|
|
102
|
+
* close requests.
|
|
103
|
+
*/
|
|
104
|
+
watcher.onclose = () => {
|
|
105
|
+
backButtonCallback();
|
|
106
|
+
configureWatcher();
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
configureWatcher();
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
doc.addEventListener('backbutton', backButtonCallback);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
116
|
+
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
117
|
+
|
|
118
|
+
exports.MENU_BACK_BUTTON_PRIORITY = MENU_BACK_BUTTON_PRIORITY;
|
|
119
|
+
exports.OVERLAY_BACK_BUTTON_PRIORITY = OVERLAY_BACK_BUTTON_PRIORITY;
|
|
120
|
+
exports.blockHardwareBackButton = blockHardwareBackButton;
|
|
121
|
+
exports.shouldUseCloseWatcher = shouldUseCloseWatcher;
|
|
122
|
+
exports.startHardwareBackButton = startHardwareBackButton;
|