@ionic/core 8.3.1-dev.11726172907.15a1af41 → 8.3.1-dev.11726258029.1014159b
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/focus-visible.js +1 -8
- 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 +75 -6
- 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 -219
- 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-f43e6366.js → animation-b4fdf128.js} +2 -2
- package/dist/cjs/{app-globals-aa7aec45.js → app-globals-9d795e44.js} +1 -1
- package/dist/cjs/{button-active-1164881e.js → button-active-4115dc12.js} +2 -2
- package/dist/cjs/{capacitor-094870c0.js → capacitor-c04564bf.js} +3 -3
- package/dist/cjs/{data-c6182804.js → data-21dc0f81.js} +3 -3
- package/dist/cjs/{focus-visible-ca81ce81.js → focus-visible-7a0ce04f.js} +0 -8
- package/dist/cjs/{haptic-188baa8e.js → haptic-f6b37aa3.js} +1 -1
- package/dist/cjs/hardware-back-button-35a9ebdb.js +122 -0
- package/dist/cjs/{index-afc28d19.js → index-248835d7.js} +9 -6
- package/dist/cjs/{index-b9e25ecd.js → index-42dd5e74.js} +8 -2
- package/dist/cjs/{index-23381b18.js → index-44dacdce.js} +8 -7
- package/dist/cjs/index-5915f9b3.js +38 -0
- package/dist/cjs/{index-b3550209.js → index-5b6a7459.js} +2 -2
- package/dist/cjs/{index-60f4c4b4.js → index-9509ecad.js} +6 -7
- package/dist/cjs/index-c8d52405.js +10 -0
- package/dist/cjs/index.cjs.js +11 -8
- package/dist/cjs/{input-shims-833981ee.js → input-shims-9e59ef62.js} +16 -16
- package/dist/cjs/{input.utils-a4020823.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 +91 -21
- 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 +97 -94
- 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-2fc6b860.js +237 -0
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-dac99bf0.js → ios.transition-c28ff3cc.js} +6 -4
- package/dist/cjs/{keyboard-6d170faf.js → keyboard-0272231f.js} +1 -1
- package/dist/cjs/{keyboard-c79a662b.js → keyboard-af1bb365.js} +3 -4
- package/dist/cjs/{keyboard-controller-a6533765.js → keyboard-controller-c05e747a.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-65b7c8b6.js → md.transition-01295b30.js} +6 -4
- package/dist/cjs/{notch-controller-b33a54ec.js → notch-controller-d69150f5.js} +3 -3
- package/dist/cjs/{overlays-44027b72.js → overlays-76ac42e7.js} +12 -9
- package/dist/cjs/{status-tap-643bbfa4.js → status-tap-75c3a35d.js} +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/app/app.js +75 -5
- 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 -70
- package/dist/collection/utils/focus-visible.js +0 -7
- package/dist/docs.json +109 -109
- package/dist/esm/{animation-840e1209.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-537d56c1.js → app-globals-cef8aa6d.js} +1 -1
- package/dist/esm/{button-active-dba2328e.js → button-active-6700b8ee.js} +2 -2
- package/dist/esm/{capacitor-fcd09564.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-8389220e.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{focus-visible-b960316e.js → focus-visible-dd40d69f.js} +1 -8
- package/dist/esm/{haptic-6d16c679.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm/hardware-back-button-3dd2cf5a.js +116 -0
- package/dist/esm/{index-4e02bb5d.js → index-3ed04e6d.js} +8 -2
- package/dist/esm/{index-a4bd9891.js → index-42907296.js} +5 -4
- package/dist/esm/{index-40662748.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-3f9b7dcc.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-07e10d19.js → index-deb1a83e.js} +5 -2
- package/dist/esm/index.js +11 -8
- package/dist/esm/{input-shims-d4681aea.js → input-shims-0314bbe5.js} +5 -5
- package/dist/esm/{input.utils-c7e363b4.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 +81 -11
- 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 +11 -8
- 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-aba82484.js +231 -0
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-e50705d1.js → ios.transition-903646a5.js} +6 -4
- package/dist/esm/{keyboard-630cb801.js → keyboard-52278bd7.js} +3 -4
- package/dist/esm/{keyboard-f89a5eae.js → keyboard-73175e24.js} +1 -1
- package/dist/esm/{keyboard-controller-00b92ab3.js → keyboard-controller-ec5c2bfa.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-58674b20.js → md.transition-92c7f8a6.js} +6 -4
- package/dist/esm/{notch-controller-e45ab374.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm/{overlays-a2dfa4a7.js → overlays-d1a2f8a8.js} +4 -1
- package/dist/esm/{status-tap-a9f0d61d.js → status-tap-97e323a9.js} +3 -3
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-cef8aa6d.js +4 -0
- package/dist/esm-es5/{button-active-dba2328e.js → button-active-6700b8ee.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/focus-visible-dd40d69f.js +4 -0
- package/dist/esm-es5/{haptic-6d16c679.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm-es5/hardware-back-button-3dd2cf5a.js +4 -0
- package/dist/esm-es5/index-3ed04e6d.js +5 -0
- package/dist/esm-es5/index-42907296.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-deb1a83e.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-aba82484.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-903646a5.js +4 -0
- package/dist/esm-es5/keyboard-52278bd7.js +4 -0
- package/dist/esm-es5/{keyboard-f89a5eae.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-92c7f8a6.js +4 -0
- package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
- package/dist/esm-es5/overlays-d1a2f8a8.js +4 -0
- package/dist/esm-es5/status-tap-97e323a9.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-0047371d.system.entry.js +4 -0
- package/dist/ionic/p-019fe44c.system.entry.js +4 -0
- package/dist/ionic/p-05399319.entry.js +4 -0
- package/dist/ionic/{p-de6fd4fb.system.entry.js → p-067db520.system.entry.js} +1 -1
- package/dist/ionic/{p-47c92e81.js → p-06e58c4e.js} +1 -1
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-0956b807.system.entry.js +4 -0
- package/dist/ionic/{p-6418a407.system.entry.js → p-0b2cb317.system.entry.js} +1 -1
- package/dist/ionic/p-0b61b67e.system.js +4 -0
- package/dist/ionic/p-0bfdb16f.system.js +4 -0
- package/dist/ionic/p-0c06e09b.system.js +4 -0
- package/dist/ionic/p-0dc1d769.entry.js +4 -0
- package/dist/ionic/p-0f9c24fe.system.js +4 -0
- package/dist/ionic/{p-3ef8ff43.entry.js → p-1350a9c2.entry.js} +1 -1
- package/dist/ionic/p-14616c10.system.entry.js +4 -0
- package/dist/ionic/p-149da974.system.js +4 -0
- package/dist/ionic/{p-ddd6d918.entry.js → p-16b7cfc2.entry.js} +1 -1
- package/dist/ionic/p-192e07b1.system.entry.js +4 -0
- package/dist/ionic/{p-00c9cfa0.entry.js → p-1955f63a.entry.js} +1 -1
- package/dist/ionic/{p-eae596b8.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/p-1ca23ae9.system.entry.js +4 -0
- package/dist/ionic/{p-ad4a3c01.system.js → p-1d524f20.system.js} +1 -1
- package/dist/ionic/{p-6c810800.system.js → p-1dfc11b3.system.js} +1 -1
- package/dist/ionic/p-1e4371bd.js +4 -0
- package/dist/ionic/p-2067d815.system.entry.js +4 -0
- package/dist/ionic/p-2583e966.js +4 -0
- package/dist/ionic/p-263a3f91.system.js +4 -0
- package/dist/ionic/p-2690b1de.js +4 -0
- package/dist/ionic/{p-845c8117.js → p-27281edd.js} +1 -1
- package/dist/ionic/{p-3eca6ffb.entry.js → p-2b2a48ed.entry.js} +1 -1
- package/dist/ionic/p-2b7827c7.js +4 -0
- package/dist/ionic/{p-11cf4ee1.entry.js → p-2b87a770.entry.js} +1 -1
- package/dist/ionic/{p-c1c1b3c1.system.entry.js → p-2e2c1a93.system.entry.js} +1 -1
- package/dist/ionic/p-2e5ee828.system.entry.js +4 -0
- package/dist/ionic/p-2e6cf7f2.js +4 -0
- package/dist/ionic/{p-7f85fd7d.system.entry.js → p-2f244b7c.system.entry.js} +1 -1
- package/dist/ionic/{p-bc088eb6.system.js → p-30482ed4.system.js} +1 -1
- package/dist/ionic/{p-cc35239f.entry.js → p-33fb4e9d.entry.js} +1 -1
- package/dist/ionic/p-3447e604.system.entry.js +4 -0
- package/dist/ionic/{p-809941d0.js → p-34b11c24.js} +1 -1
- package/dist/ionic/{p-861785a6.entry.js → p-3b2c0ca4.entry.js} +1 -1
- package/dist/ionic/p-3c8001c7.system.entry.js +4 -0
- package/dist/ionic/{p-ca2083bc.system.entry.js → p-3e4a7bd8.system.entry.js} +1 -1
- package/dist/ionic/{p-39ed01f6.system.entry.js → p-40277321.system.entry.js} +1 -1
- package/dist/ionic/p-4029255b.system.entry.js +4 -0
- package/dist/ionic/{p-39166cd5.entry.js → p-4205a4d9.entry.js} +1 -1
- package/dist/ionic/p-428db536.entry.js +4 -0
- package/dist/ionic/p-42f9a951.system.entry.js +4 -0
- package/dist/ionic/{p-3657cf1a.system.entry.js → p-44d98be5.system.entry.js} +1 -1
- package/dist/ionic/p-46bac798.entry.js +4 -0
- package/dist/ionic/{p-765a2b13.system.entry.js → p-488bc4e4.system.entry.js} +1 -1
- package/dist/ionic/p-49c26aa9.entry.js +4 -0
- package/dist/ionic/p-4ad055dc.system.entry.js +4 -0
- package/dist/ionic/{p-8c13b08d.entry.js → p-4b1364c9.entry.js} +1 -1
- package/dist/ionic/{p-d52f8930.entry.js → p-4bd23b81.entry.js} +1 -1
- package/dist/ionic/p-4d81423b.entry.js +4 -0
- package/dist/ionic/p-4e7b0cee.entry.js +4 -0
- package/dist/ionic/p-4fe468c2.entry.js +4 -0
- package/dist/ionic/p-51ae8a06.system.entry.js +4 -0
- package/dist/ionic/{p-1c6bb45f.entry.js → p-51d30486.entry.js} +1 -1
- package/dist/ionic/{p-e4f401d7.entry.js → p-52c20808.entry.js} +1 -1
- package/dist/ionic/p-56435093.js +4 -0
- package/dist/ionic/{p-b6fbbe81.system.entry.js → p-57f94155.system.entry.js} +1 -1
- package/dist/ionic/p-59a394ad.system.js +5 -0
- package/dist/ionic/{p-b760b2fa.system.entry.js → p-59cda258.system.entry.js} +1 -1
- package/dist/ionic/{p-91459095.entry.js → p-5d43e642.entry.js} +1 -1
- package/dist/ionic/p-5d5d5073.entry.js +4 -0
- package/dist/ionic/p-5d6c0bf8.system.js +4 -0
- package/dist/ionic/{p-0bee79fc.system.entry.js → p-5d7ea80a.system.entry.js} +1 -1
- package/dist/ionic/p-5e94453a.entry.js +4 -0
- package/dist/ionic/{p-7cbcee2c.system.entry.js → p-5e97855d.system.entry.js} +1 -1
- package/dist/ionic/{p-5a0f3c6f.entry.js → p-5ef51d63.entry.js} +1 -1
- package/dist/ionic/p-600a4ea0.js +4 -0
- package/dist/ionic/p-62b04b4c.entry.js +4 -0
- package/dist/ionic/p-663fe7c8.system.entry.js +4 -0
- package/dist/ionic/p-68da7fc8.system.js +4 -0
- package/dist/ionic/{p-d7bd9057.system.entry.js → p-6bbad9e4.system.entry.js} +1 -1
- package/dist/ionic/p-6ca2a6af.entry.js +4 -0
- package/dist/ionic/p-6f465cce.js +4 -0
- package/dist/ionic/{p-21a0f452.entry.js → p-70325536.entry.js} +1 -1
- package/dist/ionic/p-714841be.system.js +4 -0
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/p-7414228b.js +5 -0
- package/dist/ionic/{p-00cbf542.entry.js → p-76bb8eb2.entry.js} +1 -1
- package/dist/ionic/p-792919fd.system.js +4 -0
- package/dist/ionic/p-7b30edcc.js +4 -0
- package/dist/ionic/p-7e07fb64.entry.js +4 -0
- package/dist/ionic/p-7e497250.system.entry.js +4 -0
- package/dist/ionic/{p-dab508d0.system.js → p-8985cdb6.system.js} +1 -1
- package/dist/ionic/{p-4525cc2f.js → p-89b61afc.js} +1 -1
- package/dist/ionic/{p-0a7a7ab9.entry.js → p-89bd4ed2.entry.js} +1 -1
- package/dist/ionic/{p-0476b3cc.system.js → p-9146695e.system.js} +1 -1
- package/dist/ionic/{p-444c76ee.system.entry.js → p-91d713b7.system.entry.js} +1 -1
- package/dist/ionic/p-933e9e71.entry.js +4 -0
- package/dist/ionic/p-96cc4814.js +4 -0
- package/dist/ionic/{p-e00617fb.entry.js → p-99859f95.entry.js} +1 -1
- package/dist/ionic/{p-c9525721.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/p-9f8740b2.entry.js +4 -0
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/p-a8775bf9.entry.js +4 -0
- package/dist/ionic/{p-abe01542.system.js → p-a93873de.system.js} +1 -1
- package/dist/ionic/p-abc5c0a4.system.entry.js +4 -0
- package/dist/ionic/p-abe101da.system.js +4 -0
- package/dist/ionic/p-aed9cc5b.entry.js +4 -0
- package/dist/ionic/{p-30c57db4.system.entry.js → p-aee3f804.system.entry.js} +1 -1
- package/dist/ionic/{p-5b6645a1.system.js → p-b06ac4a5.system.js} +1 -1
- package/dist/ionic/{p-eecf5384.system.entry.js → p-b2a2c6cf.system.entry.js} +1 -1
- package/dist/ionic/p-b69c1e65.system.entry.js +4 -0
- package/dist/ionic/p-b719790b.js +4 -0
- package/dist/ionic/{p-c0e7cab8.entry.js → p-b7836cec.entry.js} +1 -1
- package/dist/ionic/p-b8157bb5.system.entry.js +4 -0
- package/dist/ionic/p-bae531fb.system.entry.js +4 -0
- package/dist/ionic/{p-f41cce45.system.entry.js → p-bd9fd891.system.entry.js} +1 -1
- package/dist/ionic/{p-cf7d3a87.system.entry.js → p-c342dbdf.system.entry.js} +1 -1
- package/dist/ionic/p-c468af8a.system.js +4 -0
- package/dist/ionic/p-c57d792e.entry.js +4 -0
- package/dist/ionic/p-c61cc894.js +4 -0
- package/dist/ionic/{p-f3bc485f.system.entry.js → p-c76e43a2.system.entry.js} +1 -1
- package/dist/ionic/{p-60c38dee.js → p-c7e16491.js} +1 -1
- package/dist/ionic/p-c8e78b70.system.entry.js +4 -0
- package/dist/ionic/{p-cd6bd33e.entry.js → p-cb9da2a3.entry.js} +1 -1
- package/dist/ionic/p-cc3e2b52.entry.js +4 -0
- package/dist/ionic/{p-77cda5c7.entry.js → p-ce58e8e0.entry.js} +1 -1
- package/dist/ionic/p-d073ba84.entry.js +4 -0
- package/dist/ionic/p-d0f8d0aa.entry.js +4 -0
- package/dist/ionic/p-d47265c8.js +4 -0
- package/dist/ionic/{p-4ee57cf5.js → p-d60342e3.js} +1 -1
- package/dist/ionic/p-d65d9c9c.system.entry.js +4 -0
- package/dist/ionic/p-d6e463ee.system.entry.js +4 -0
- package/dist/ionic/{p-886a05f9.system.js → p-d75bce6a.system.js} +1 -1
- package/dist/ionic/p-d8ace0cb.entry.js +4 -0
- package/dist/ionic/p-d8dcfbf3.system.entry.js +4 -0
- package/dist/ionic/{p-84e08e08.system.entry.js → p-da5e7dbe.system.entry.js} +1 -1
- package/dist/ionic/{p-1253d402.entry.js → p-dc672c3a.entry.js} +1 -1
- package/dist/ionic/{p-9ced646a.system.js → p-dfb78785.system.js} +1 -1
- package/dist/ionic/p-e351e0e3.entry.js +4 -0
- package/dist/ionic/{p-2f8773b2.system.entry.js → p-e6e98f68.system.entry.js} +1 -1
- package/dist/ionic/{p-84030740.js → p-e8cc3bad.js} +1 -1
- package/dist/ionic/{p-9ea9eef2.entry.js → p-e9119176.entry.js} +1 -1
- package/dist/ionic/{p-d312edb3.system.entry.js → p-ed3f6648.system.entry.js} +1 -1
- package/dist/ionic/p-eec4b4ce.entry.js +4 -0
- package/dist/ionic/{p-aa037934.system.js → p-f08654ea.system.js} +1 -1
- package/dist/ionic/p-f22b3a75.js +4 -0
- package/dist/ionic/p-f367478b.js +4 -0
- package/dist/ionic/p-f36c9945.system.entry.js +4 -0
- package/dist/ionic/{p-8ff1e95d.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/p-fc9b4e5a.entry.js +4 -0
- package/dist/ionic/{p-6a95a932.system.entry.js → p-fdfa74cc.system.entry.js} +1 -1
- package/dist/ionic/p-fec56d82.js +4 -0
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/types/components/app/app.d.ts +2 -0
- package/dist/types/global/ionic-global.d.ts +0 -2
- package/dist/types/stencil-public-runtime.d.ts +4 -0
- package/dist/types/utils/focus-visible.d.ts +0 -1
- package/hydrate/index.d.ts +6 -0
- package/hydrate/index.js +502 -372
- package/hydrate/index.mjs +502 -372
- package/package.json +2 -2
- package/dist/cjs/ionic-global-4503ea83.js +0 -462
- package/dist/esm/ionic-global-b1979612.js +0 -448
- package/dist/esm-es5/animation-840e1209.js +0 -4
- package/dist/esm-es5/app-globals-537d56c1.js +0 -4
- package/dist/esm-es5/capacitor-fcd09564.js +0 -4
- package/dist/esm-es5/data-8389220e.js +0 -4
- package/dist/esm-es5/focus-visible-b960316e.js +0 -4
- package/dist/esm-es5/index-07e10d19.js +0 -4
- package/dist/esm-es5/index-3f9b7dcc.js +0 -4
- package/dist/esm-es5/index-40662748.js +0 -4
- package/dist/esm-es5/index-4e02bb5d.js +0 -5
- package/dist/esm-es5/index-a4bd9891.js +0 -4
- package/dist/esm-es5/input-shims-d4681aea.js +0 -4
- package/dist/esm-es5/input.utils-c7e363b4.js +0 -4
- package/dist/esm-es5/ionic-global-b1979612.js +0 -4
- package/dist/esm-es5/ios.transition-e50705d1.js +0 -4
- package/dist/esm-es5/keyboard-630cb801.js +0 -4
- package/dist/esm-es5/keyboard-controller-00b92ab3.js +0 -4
- package/dist/esm-es5/md.transition-58674b20.js +0 -4
- package/dist/esm-es5/notch-controller-e45ab374.js +0 -4
- package/dist/esm-es5/overlays-a2dfa4a7.js +0 -4
- package/dist/esm-es5/status-tap-a9f0d61d.js +0 -4
- package/dist/ionic/p-01b0e865.system.js +0 -4
- package/dist/ionic/p-073dacf3.entry.js +0 -4
- package/dist/ionic/p-07e807fb.js +0 -4
- package/dist/ionic/p-0a31c7b9.system.entry.js +0 -4
- package/dist/ionic/p-0f1ba402.entry.js +0 -4
- package/dist/ionic/p-16917861.system.js +0 -4
- package/dist/ionic/p-179c573b.system.entry.js +0 -4
- package/dist/ionic/p-20ffa318.entry.js +0 -4
- package/dist/ionic/p-23889fd8.entry.js +0 -4
- package/dist/ionic/p-25a2d298.js +0 -4
- package/dist/ionic/p-28b059c3.system.entry.js +0 -4
- package/dist/ionic/p-2d8341d0.system.js +0 -4
- package/dist/ionic/p-2f2fd67f.entry.js +0 -4
- package/dist/ionic/p-31f1eb81.entry.js +0 -4
- package/dist/ionic/p-37fbd57a.system.entry.js +0 -4
- package/dist/ionic/p-4175803c.system.js +0 -4
- package/dist/ionic/p-41ec2afd.entry.js +0 -4
- package/dist/ionic/p-460070eb.system.js +0 -4
- package/dist/ionic/p-466434d4.system.js +0 -4
- package/dist/ionic/p-46db4410.system.entry.js +0 -4
- package/dist/ionic/p-480cfc61.entry.js +0 -4
- package/dist/ionic/p-487a3ae7.system.js +0 -5
- package/dist/ionic/p-4a274d8d.entry.js +0 -4
- package/dist/ionic/p-4b528ed3.js +0 -5
- package/dist/ionic/p-4fbde654.js +0 -4
- package/dist/ionic/p-51b9d14a.js +0 -4
- package/dist/ionic/p-52371477.system.entry.js +0 -4
- package/dist/ionic/p-5328e386.system.entry.js +0 -4
- package/dist/ionic/p-57eb8bf5.entry.js +0 -4
- package/dist/ionic/p-58812aa8.system.entry.js +0 -4
- package/dist/ionic/p-5c456cd2.system.entry.js +0 -4
- package/dist/ionic/p-5e03c97e.system.entry.js +0 -4
- package/dist/ionic/p-5fb843ce.entry.js +0 -4
- package/dist/ionic/p-5fd711d1.entry.js +0 -4
- package/dist/ionic/p-67bb048a.system.entry.js +0 -4
- package/dist/ionic/p-69f80fd3.entry.js +0 -4
- package/dist/ionic/p-73216388.entry.js +0 -4
- package/dist/ionic/p-736d36fb.system.js +0 -4
- package/dist/ionic/p-73b45a64.entry.js +0 -4
- package/dist/ionic/p-7a86440f.entry.js +0 -4
- package/dist/ionic/p-82b38b14.system.js +0 -4
- package/dist/ionic/p-833104fe.system.entry.js +0 -4
- package/dist/ionic/p-86b6a057.system.entry.js +0 -4
- package/dist/ionic/p-877dee4e.system.entry.js +0 -4
- package/dist/ionic/p-902f1e0d.entry.js +0 -4
- package/dist/ionic/p-90b717c3.entry.js +0 -4
- package/dist/ionic/p-958d1ddf.entry.js +0 -4
- package/dist/ionic/p-9647f627.system.entry.js +0 -4
- package/dist/ionic/p-969bb0cd.system.entry.js +0 -4
- package/dist/ionic/p-98612ecd.system.entry.js +0 -4
- package/dist/ionic/p-99322726.js +0 -4
- package/dist/ionic/p-9a41931a.system.js +0 -4
- package/dist/ionic/p-9fa489bf.system.js +0 -4
- package/dist/ionic/p-9fb5d3f0.js +0 -4
- package/dist/ionic/p-a60688ea.system.entry.js +0 -4
- package/dist/ionic/p-a7c80b6e.js +0 -4
- package/dist/ionic/p-a97cc6e0.entry.js +0 -4
- package/dist/ionic/p-aa28a06a.system.entry.js +0 -4
- package/dist/ionic/p-ab51df52.js +0 -4
- package/dist/ionic/p-b84b226d.entry.js +0 -4
- package/dist/ionic/p-b95e719d.js +0 -4
- package/dist/ionic/p-b9d74da7.system.js +0 -4
- package/dist/ionic/p-bb816352.system.entry.js +0 -4
- package/dist/ionic/p-bc0d6e7d.system.entry.js +0 -4
- package/dist/ionic/p-bc60a88f.entry.js +0 -4
- package/dist/ionic/p-cf05bb26.entry.js +0 -4
- package/dist/ionic/p-d247bdc6.js +0 -4
- package/dist/ionic/p-d32dc2ca.system.entry.js +0 -4
- package/dist/ionic/p-df2f4a29.entry.js +0 -4
- package/dist/ionic/p-e079f4f4.system.entry.js +0 -4
- package/dist/ionic/p-e35fa668.js +0 -4
- package/dist/ionic/p-e44c11d0.entry.js +0 -4
- package/dist/ionic/p-e6867fc0.js +0 -4
- package/dist/ionic/p-efd6e0d2.system.entry.js +0 -4
- package/dist/ionic/p-f0e951e5.system.entry.js +0 -4
- package/dist/ionic/p-f4a57fb7.js +0 -4
- package/dist/ionic/p-f7f11c42.js +0 -4
- package/dist/ionic/p-f8234ebd.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/core",
|
|
3
|
-
"version": "8.3.1-dev.
|
|
3
|
+
"version": "8.3.1-dev.11726258029.1014159b",
|
|
4
4
|
"description": "Base components for Ionic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"loader/"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@stencil/core": "^4.
|
|
34
|
+
"@stencil/core": "^4.21.0-dev.1726257631.b82b008",
|
|
35
35
|
"ionicons": "^7.2.2",
|
|
36
36
|
"tslib": "^2.1.0"
|
|
37
37
|
},
|
|
@@ -1,462 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
const index = require('./index-b9e25ecd.js');
|
|
7
|
-
|
|
8
|
-
const win = typeof window !== 'undefined' ? window : undefined;
|
|
9
|
-
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
10
|
-
|
|
11
|
-
// TODO(FW-2832): types
|
|
12
|
-
class Config {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.m = new Map();
|
|
15
|
-
}
|
|
16
|
-
reset(configObj) {
|
|
17
|
-
this.m = new Map(Object.entries(configObj));
|
|
18
|
-
}
|
|
19
|
-
get(key, fallback) {
|
|
20
|
-
const value = this.m.get(key);
|
|
21
|
-
return value !== undefined ? value : fallback;
|
|
22
|
-
}
|
|
23
|
-
getBoolean(key, fallback = false) {
|
|
24
|
-
const val = this.m.get(key);
|
|
25
|
-
if (val === undefined) {
|
|
26
|
-
return fallback;
|
|
27
|
-
}
|
|
28
|
-
if (typeof val === 'string') {
|
|
29
|
-
return val === 'true';
|
|
30
|
-
}
|
|
31
|
-
return !!val;
|
|
32
|
-
}
|
|
33
|
-
getNumber(key, fallback) {
|
|
34
|
-
const val = parseFloat(this.m.get(key));
|
|
35
|
-
return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
|
|
36
|
-
}
|
|
37
|
-
set(key, value) {
|
|
38
|
-
this.m.set(key, value);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const config = /*@__PURE__*/ new Config();
|
|
42
|
-
const configFromSession = (win) => {
|
|
43
|
-
try {
|
|
44
|
-
const configStr = win.sessionStorage.getItem(IONIC_SESSION_KEY);
|
|
45
|
-
return configStr !== null ? JSON.parse(configStr) : {};
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
return {};
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
const saveConfig = (win, c) => {
|
|
52
|
-
try {
|
|
53
|
-
win.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(c));
|
|
54
|
-
}
|
|
55
|
-
catch (e) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const configFromURL = (win) => {
|
|
60
|
-
const configObj = {};
|
|
61
|
-
win.location.search
|
|
62
|
-
.slice(1)
|
|
63
|
-
.split('&')
|
|
64
|
-
.map((entry) => entry.split('='))
|
|
65
|
-
.map(([key, value]) => {
|
|
66
|
-
try {
|
|
67
|
-
return [decodeURIComponent(key), decodeURIComponent(value)];
|
|
68
|
-
}
|
|
69
|
-
catch (e) {
|
|
70
|
-
return ['', ''];
|
|
71
|
-
}
|
|
72
|
-
})
|
|
73
|
-
.filter(([key]) => startsWith(key, IONIC_PREFIX))
|
|
74
|
-
.map(([key, value]) => [key.slice(IONIC_PREFIX.length), value])
|
|
75
|
-
.forEach(([key, value]) => {
|
|
76
|
-
configObj[key] = value;
|
|
77
|
-
});
|
|
78
|
-
return configObj;
|
|
79
|
-
};
|
|
80
|
-
const startsWith = (input, search) => {
|
|
81
|
-
return input.substr(0, search.length) === search;
|
|
82
|
-
};
|
|
83
|
-
const IONIC_PREFIX = 'ionic:';
|
|
84
|
-
const IONIC_SESSION_KEY = 'ionic-persist-config';
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* CloseWatcher is a newer API that lets
|
|
88
|
-
* use detect the hardware back button event
|
|
89
|
-
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
90
|
-
* However, not every browser supports it yet.
|
|
91
|
-
*
|
|
92
|
-
* This needs to be a function so that we can
|
|
93
|
-
* check the config once it has been set.
|
|
94
|
-
* Otherwise, this code would be evaluated the
|
|
95
|
-
* moment this file is evaluated which could be
|
|
96
|
-
* before the config is set.
|
|
97
|
-
*/
|
|
98
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win !== undefined && 'CloseWatcher' in win;
|
|
99
|
-
/**
|
|
100
|
-
* When hardwareBackButton: false in config,
|
|
101
|
-
* we need to make sure we also block the default
|
|
102
|
-
* webview behavior. If we don't then it will be
|
|
103
|
-
* possible for users to navigate backward while
|
|
104
|
-
* an overlay is still open. Additionally, it will
|
|
105
|
-
* give the appearance that the hardwareBackButton
|
|
106
|
-
* config is not working as the page transition
|
|
107
|
-
* will still happen.
|
|
108
|
-
*/
|
|
109
|
-
const blockHardwareBackButton = () => {
|
|
110
|
-
document.addEventListener('backbutton', () => { }); // eslint-disable-line
|
|
111
|
-
};
|
|
112
|
-
const startHardwareBackButton = () => {
|
|
113
|
-
const doc = document;
|
|
114
|
-
let busy = false;
|
|
115
|
-
const backButtonCallback = () => {
|
|
116
|
-
if (busy) {
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
let index = 0;
|
|
120
|
-
let handlers = [];
|
|
121
|
-
const ev = new CustomEvent('ionBackButton', {
|
|
122
|
-
bubbles: false,
|
|
123
|
-
detail: {
|
|
124
|
-
register(priority, handler) {
|
|
125
|
-
handlers.push({ priority, handler, id: index++ });
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
});
|
|
129
|
-
doc.dispatchEvent(ev);
|
|
130
|
-
const executeAction = async (handlerRegister) => {
|
|
131
|
-
try {
|
|
132
|
-
if (handlerRegister === null || handlerRegister === void 0 ? void 0 : handlerRegister.handler) {
|
|
133
|
-
const result = handlerRegister.handler(processHandlers);
|
|
134
|
-
if (result != null) {
|
|
135
|
-
await result;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e) {
|
|
140
|
-
console.error(e);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const processHandlers = () => {
|
|
144
|
-
if (handlers.length > 0) {
|
|
145
|
-
let selectedHandler = {
|
|
146
|
-
priority: Number.MIN_SAFE_INTEGER,
|
|
147
|
-
handler: () => undefined,
|
|
148
|
-
id: -1,
|
|
149
|
-
};
|
|
150
|
-
handlers.forEach((handler) => {
|
|
151
|
-
if (handler.priority >= selectedHandler.priority) {
|
|
152
|
-
selectedHandler = handler;
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
busy = true;
|
|
156
|
-
handlers = handlers.filter((handler) => handler.id !== selectedHandler.id);
|
|
157
|
-
executeAction(selectedHandler).then(() => (busy = false));
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
processHandlers();
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* If the CloseWatcher is defined then
|
|
164
|
-
* we don't want to also listen for the native
|
|
165
|
-
* backbutton event otherwise we may get duplicate
|
|
166
|
-
* events firing.
|
|
167
|
-
*/
|
|
168
|
-
if (shouldUseCloseWatcher()) {
|
|
169
|
-
let watcher;
|
|
170
|
-
const configureWatcher = () => {
|
|
171
|
-
watcher === null || watcher === void 0 ? void 0 : watcher.destroy();
|
|
172
|
-
watcher = new win.CloseWatcher();
|
|
173
|
-
/**
|
|
174
|
-
* Once a close request happens
|
|
175
|
-
* the watcher gets destroyed.
|
|
176
|
-
* As a result, we need to re-configure
|
|
177
|
-
* the watcher so we can respond to other
|
|
178
|
-
* close requests.
|
|
179
|
-
*/
|
|
180
|
-
watcher.onclose = () => {
|
|
181
|
-
backButtonCallback();
|
|
182
|
-
configureWatcher();
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
configureWatcher();
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
doc.addEventListener('backbutton', backButtonCallback);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
192
|
-
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
193
|
-
|
|
194
|
-
const hardwareBackButton = /*#__PURE__*/Object.freeze({
|
|
195
|
-
__proto__: null,
|
|
196
|
-
shouldUseCloseWatcher: shouldUseCloseWatcher,
|
|
197
|
-
blockHardwareBackButton: blockHardwareBackButton,
|
|
198
|
-
startHardwareBackButton: startHardwareBackButton,
|
|
199
|
-
OVERLAY_BACK_BUTTON_PRIORITY: OVERLAY_BACK_BUTTON_PRIORITY,
|
|
200
|
-
MENU_BACK_BUTTON_PRIORITY: MENU_BACK_BUTTON_PRIORITY
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Logs a warning to the console with an Ionic prefix
|
|
205
|
-
* to indicate the library that is warning the developer.
|
|
206
|
-
*
|
|
207
|
-
* @param message - The string message to be logged to the console.
|
|
208
|
-
*/
|
|
209
|
-
const printIonWarning = (message, ...params) => {
|
|
210
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
211
|
-
};
|
|
212
|
-
/*
|
|
213
|
-
* Logs an error to the console with an Ionic prefix
|
|
214
|
-
* to indicate the library that is warning the developer.
|
|
215
|
-
*
|
|
216
|
-
* @param message - The string message to be logged to the console.
|
|
217
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
218
|
-
*/
|
|
219
|
-
const printIonError = (message, ...params) => {
|
|
220
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
224
|
-
* within a specific selector.
|
|
225
|
-
*
|
|
226
|
-
* @param el The web component element this is requiring the element.
|
|
227
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
228
|
-
*/
|
|
229
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
230
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
const getPlatforms = (win) => setupPlatforms(win);
|
|
234
|
-
const isPlatform = (winOrPlatform, platform) => {
|
|
235
|
-
if (typeof winOrPlatform === 'string') {
|
|
236
|
-
platform = winOrPlatform;
|
|
237
|
-
winOrPlatform = undefined;
|
|
238
|
-
}
|
|
239
|
-
return getPlatforms(winOrPlatform).includes(platform);
|
|
240
|
-
};
|
|
241
|
-
const setupPlatforms = (win = window) => {
|
|
242
|
-
if (typeof win === 'undefined') {
|
|
243
|
-
return [];
|
|
244
|
-
}
|
|
245
|
-
win.Ionic = win.Ionic || {};
|
|
246
|
-
let platforms = win.Ionic.platforms;
|
|
247
|
-
if (platforms == null) {
|
|
248
|
-
platforms = win.Ionic.platforms = detectPlatforms(win);
|
|
249
|
-
platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
|
|
250
|
-
}
|
|
251
|
-
return platforms;
|
|
252
|
-
};
|
|
253
|
-
const detectPlatforms = (win) => {
|
|
254
|
-
const customPlatformMethods = config.get('platform');
|
|
255
|
-
return Object.keys(PLATFORMS_MAP).filter((p) => {
|
|
256
|
-
const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
|
|
257
|
-
return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
|
-
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
|
261
|
-
const isIpad = (win) => {
|
|
262
|
-
// iOS 12 and below
|
|
263
|
-
if (testUserAgent(win, /iPad/i)) {
|
|
264
|
-
return true;
|
|
265
|
-
}
|
|
266
|
-
// iOS 13+
|
|
267
|
-
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
|
268
|
-
return true;
|
|
269
|
-
}
|
|
270
|
-
return false;
|
|
271
|
-
};
|
|
272
|
-
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
|
273
|
-
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
274
|
-
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
275
|
-
const isAndroidTablet = (win) => {
|
|
276
|
-
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
|
277
|
-
};
|
|
278
|
-
const isPhablet = (win) => {
|
|
279
|
-
const width = win.innerWidth;
|
|
280
|
-
const height = win.innerHeight;
|
|
281
|
-
const smallest = Math.min(width, height);
|
|
282
|
-
const largest = Math.max(width, height);
|
|
283
|
-
return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
|
|
284
|
-
};
|
|
285
|
-
const isTablet = (win) => {
|
|
286
|
-
const width = win.innerWidth;
|
|
287
|
-
const height = win.innerHeight;
|
|
288
|
-
const smallest = Math.min(width, height);
|
|
289
|
-
const largest = Math.max(width, height);
|
|
290
|
-
return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
|
|
291
|
-
};
|
|
292
|
-
const isMobile = (win) => matchMedia(win, '(any-pointer:coarse)');
|
|
293
|
-
const isDesktop = (win) => !isMobile(win);
|
|
294
|
-
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
295
|
-
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
296
|
-
const isCapacitorNative = (win) => {
|
|
297
|
-
const capacitor = win['Capacitor'];
|
|
298
|
-
return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
|
|
299
|
-
};
|
|
300
|
-
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
301
|
-
const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
|
|
302
|
-
const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
|
303
|
-
const matchMedia = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
|
|
304
|
-
const PLATFORMS_MAP = {
|
|
305
|
-
ipad: isIpad,
|
|
306
|
-
iphone: isIphone,
|
|
307
|
-
ios: isIOS,
|
|
308
|
-
android: isAndroid,
|
|
309
|
-
phablet: isPhablet,
|
|
310
|
-
tablet: isTablet,
|
|
311
|
-
cordova: isCordova,
|
|
312
|
-
capacitor: isCapacitorNative,
|
|
313
|
-
electron: isElectron,
|
|
314
|
-
pwa: isPWA,
|
|
315
|
-
mobile: isMobile,
|
|
316
|
-
mobileweb: isMobileWeb,
|
|
317
|
-
desktop: isDesktop,
|
|
318
|
-
hybrid: isHybrid,
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
// TODO(FW-2832): types
|
|
322
|
-
let defaultMode;
|
|
323
|
-
const getIonMode = (ref) => {
|
|
324
|
-
return (ref && index.getMode(ref)) || defaultMode;
|
|
325
|
-
};
|
|
326
|
-
const rIC = (callback) => {
|
|
327
|
-
if ('requestIdleCallback' in window) {
|
|
328
|
-
window.requestIdleCallback(callback);
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
setTimeout(callback, 32);
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
const needInputShims = () => {
|
|
335
|
-
/**
|
|
336
|
-
* iOS always needs input shims
|
|
337
|
-
*/
|
|
338
|
-
const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
|
|
339
|
-
if (needsShimsIOS) {
|
|
340
|
-
return true;
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* Android only needs input shims when running
|
|
344
|
-
* in the browser and only if the browser is using the
|
|
345
|
-
* new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
|
|
346
|
-
*/
|
|
347
|
-
const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
|
|
348
|
-
if (isAndroidMobileWeb) {
|
|
349
|
-
return true;
|
|
350
|
-
}
|
|
351
|
-
return false;
|
|
352
|
-
};
|
|
353
|
-
const initialize = (userConfig = {}) => {
|
|
354
|
-
if (typeof window === 'undefined') {
|
|
355
|
-
return;
|
|
356
|
-
}
|
|
357
|
-
const doc = window.document;
|
|
358
|
-
const win = window;
|
|
359
|
-
const Ionic = (win.Ionic = win.Ionic || {});
|
|
360
|
-
const platformHelpers = {};
|
|
361
|
-
if (userConfig._ael) {
|
|
362
|
-
platformHelpers.ael = userConfig._ael;
|
|
363
|
-
}
|
|
364
|
-
if (userConfig._rel) {
|
|
365
|
-
platformHelpers.rel = userConfig._rel;
|
|
366
|
-
}
|
|
367
|
-
if (userConfig._ce) {
|
|
368
|
-
platformHelpers.ce = userConfig._ce;
|
|
369
|
-
}
|
|
370
|
-
index.setPlatformHelpers(platformHelpers);
|
|
371
|
-
// create the Ionic.config from raw config object (if it exists)
|
|
372
|
-
// and convert Ionic.config into a ConfigApi that has a get() fn
|
|
373
|
-
const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), { persistConfig: false }), Ionic.config), configFromURL(win)), userConfig);
|
|
374
|
-
config.reset(configObj);
|
|
375
|
-
if (config.getBoolean('persistConfig')) {
|
|
376
|
-
saveConfig(win, configObj);
|
|
377
|
-
}
|
|
378
|
-
// Setup platforms
|
|
379
|
-
setupPlatforms(win);
|
|
380
|
-
// first see if the mode was set as an attribute on <html>
|
|
381
|
-
// which could have been set by the user, or by pre-rendering
|
|
382
|
-
// otherwise get the mode via config settings, and fallback to md
|
|
383
|
-
Ionic.config = config;
|
|
384
|
-
Ionic.mode = defaultMode = config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));
|
|
385
|
-
config.set('mode', defaultMode);
|
|
386
|
-
doc.documentElement.setAttribute('mode', defaultMode);
|
|
387
|
-
doc.documentElement.classList.add(defaultMode);
|
|
388
|
-
if (config.getBoolean('_testing')) {
|
|
389
|
-
config.set('animated', false);
|
|
390
|
-
}
|
|
391
|
-
const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };
|
|
392
|
-
const isAllowedIonicModeValue = (elmMode) => ['ios', 'md'].includes(elmMode);
|
|
393
|
-
index.setMode((elm) => {
|
|
394
|
-
while (elm) {
|
|
395
|
-
const elmMode = elm.mode || elm.getAttribute('mode');
|
|
396
|
-
if (elmMode) {
|
|
397
|
-
if (isAllowedIonicModeValue(elmMode)) {
|
|
398
|
-
return elmMode;
|
|
399
|
-
}
|
|
400
|
-
else if (isIonicElement(elm)) {
|
|
401
|
-
console.warn('Invalid ionic mode: "' + elmMode + '", expected: "ios" or "md"');
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
elm = elm.parentElement;
|
|
405
|
-
}
|
|
406
|
-
return defaultMode;
|
|
407
|
-
});
|
|
408
|
-
// `IonApp` code
|
|
409
|
-
// ----------------------------------------------
|
|
410
|
-
{
|
|
411
|
-
rIC(async () => {
|
|
412
|
-
const isHybrid = isPlatform(window, 'hybrid');
|
|
413
|
-
if (!config.getBoolean('_testing')) {
|
|
414
|
-
Promise.resolve().then(function () { return require('./index-60f4c4b4.js'); }).then((module) => module.startTapClick(config));
|
|
415
|
-
}
|
|
416
|
-
if (config.getBoolean('statusTap', isHybrid)) {
|
|
417
|
-
Promise.resolve().then(function () { return require('./status-tap-643bbfa4.js'); }).then((module) => module.startStatusTap());
|
|
418
|
-
}
|
|
419
|
-
if (config.getBoolean('inputShims', needInputShims())) {
|
|
420
|
-
/**
|
|
421
|
-
* needInputShims() ensures that only iOS and Android
|
|
422
|
-
* platforms proceed into this block.
|
|
423
|
-
*/
|
|
424
|
-
const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
425
|
-
Promise.resolve().then(function () { return require('./input-shims-833981ee.js'); }).then((module) => module.startInputShims(config, platform));
|
|
426
|
-
}
|
|
427
|
-
const hardwareBackButtonModule = await Promise.resolve().then(function () { return hardwareBackButton; });
|
|
428
|
-
const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();
|
|
429
|
-
if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {
|
|
430
|
-
hardwareBackButtonModule.startHardwareBackButton();
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
/**
|
|
434
|
-
* If an app sets hardwareBackButton: false and experimentalCloseWatcher: true
|
|
435
|
-
* then the close watcher will not be used.
|
|
436
|
-
*/
|
|
437
|
-
if (shouldUseCloseWatcher()) {
|
|
438
|
-
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.');
|
|
439
|
-
}
|
|
440
|
-
hardwareBackButtonModule.blockHardwareBackButton();
|
|
441
|
-
}
|
|
442
|
-
if (typeof window !== 'undefined') {
|
|
443
|
-
Promise.resolve().then(function () { return require('./keyboard-c79a662b.js'); }).then((module) => module.startKeyboardAssist(window));
|
|
444
|
-
}
|
|
445
|
-
Promise.resolve().then(function () { return require('./focus-visible-ca81ce81.js'); }).then((module) => (module.initFocusVisibleUtility()));
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
exports.MENU_BACK_BUTTON_PRIORITY = MENU_BACK_BUTTON_PRIORITY;
|
|
451
|
-
exports.OVERLAY_BACK_BUTTON_PRIORITY = OVERLAY_BACK_BUTTON_PRIORITY;
|
|
452
|
-
exports.config = config;
|
|
453
|
-
exports.doc = doc;
|
|
454
|
-
exports.getIonMode = getIonMode;
|
|
455
|
-
exports.getPlatforms = getPlatforms;
|
|
456
|
-
exports.initialize = initialize;
|
|
457
|
-
exports.isPlatform = isPlatform;
|
|
458
|
-
exports.printIonError = printIonError;
|
|
459
|
-
exports.printIonWarning = printIonWarning;
|
|
460
|
-
exports.printRequiredElementError = printRequiredElementError;
|
|
461
|
-
exports.shouldUseCloseWatcher = shouldUseCloseWatcher;
|
|
462
|
-
exports.win = win;
|