@ionic/core 8.3.1-dev.11726258029.1014159b → 8.3.1-dev.11727899155.103c4afc
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 +1 -2
- package/components/capacitor.js +1 -1
- package/components/data.js +1 -1
- package/components/focus-visible.js +8 -1
- package/components/framework-delegate.js +1 -1
- package/components/helpers.js +1 -1
- package/components/index2.js +1 -2
- package/components/index4.js +1 -4
- package/components/index5.js +27 -3
- package/components/index6.js +114 -20
- package/components/index7.js +163 -27
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +1 -2
- package/components/ion-accordion-group.js +1 -2
- package/components/ion-accordion.js +1 -1
- package/components/ion-app.js +6 -75
- package/components/ion-back-button.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -2
- package/components/ion-datetime.js +2 -3
- package/components/ion-fab-button.js +1 -1
- package/components/ion-footer.js +4 -4
- package/components/ion-header.js +5 -5
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-password-toggle.js +2 -3
- 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 +1 -2
- package/components/ion-modal.js +2 -4
- package/components/ion-nav.js +1 -2
- package/components/ion-picker-legacy.js +1 -2
- package/components/ion-range.js +2 -3
- 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 +1 -3
- package/components/ion-toggle.js +1 -1
- package/components/ionic-global.js +219 -2
- package/components/item.js +1 -1
- package/components/keyboard-controller.js +2 -2
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +2 -5
- package/components/picker-column.js +1 -2
- package/components/popover.js +1 -2
- package/components/status-tap.js +1 -1
- package/dist/cjs/{animation-b4fdf128.js → animation-1b5076f1.js} +2 -2
- package/dist/cjs/{app-globals-9d795e44.js → app-globals-7adfb8dd.js} +1 -1
- package/dist/cjs/{button-active-4115dc12.js → button-active-0f66de25.js} +2 -2
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-618d05d6.js} +3 -3
- package/dist/cjs/{data-21dc0f81.js → data-5d4f17b4.js} +3 -3
- package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-9aa87fa3.js} +8 -0
- package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-d1e05576.js} +2 -2
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-2bdd48c1.js} +1 -1
- package/dist/cjs/{helpers-afaa9001.js → helpers-acd6c477.js} +1 -1
- package/dist/cjs/{index-5b6a7459.js → index-3eb98cb9.js} +3 -3
- package/dist/cjs/{index-44dacdce.js → index-686a2ab7.js} +8 -9
- package/dist/cjs/{index-42dd5e74.js → index-b9e25ecd.js} +2 -8
- package/dist/cjs/{index-9509ecad.js → index-c17dd541.js} +8 -7
- package/dist/cjs/{index-248835d7.js → index-d683cd69.js} +7 -10
- package/dist/cjs/index.cjs.js +10 -13
- package/dist/cjs/{input-shims-9e59ef62.js → input-shims-f41730e2.js} +17 -17
- package/dist/cjs/{input.utils-611cde0b.js → input.utils-1215e537.js} +4 -5
- package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-action-sheet.cjs.entry.js +9 -12
- package/dist/cjs/ion-alert.cjs.entry.js +9 -12
- package/dist/cjs/ion-app_8.cjs.entry.js +32 -102
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +3 -3
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-button_2.cjs.entry.js +6 -7
- package/dist/cjs/ion-card_5.cjs.entry.js +3 -3
- package/dist/cjs/ion-checkbox.cjs.entry.js +3 -3
- 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 -9
- package/dist/cjs/ion-datetime_3.cjs.entry.js +96 -99
- package/dist/cjs/ion-fab_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-img.cjs.entry.js +3 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +7 -8
- package/dist/cjs/ion-input.cjs.entry.js +5 -7
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -5
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +6 -9
- package/dist/cjs/ion-menu_3.cjs.entry.js +8 -11
- package/dist/cjs/ion-modal.cjs.entry.js +49 -52
- package/dist/cjs/ion-nav_2.cjs.entry.js +6 -7
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +6 -7
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +10 -13
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-range.cjs.entry.js +9 -10
- package/dist/cjs/ion-refresher_2.cjs.entry.js +7 -9
- package/dist/cjs/ion-reorder_2.cjs.entry.js +6 -8
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +3 -3
- package/dist/cjs/ion-segment_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-select_3.cjs.entry.js +6 -9
- 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 -7
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +5 -7
- package/dist/cjs/ion-toast.cjs.entry.js +31 -34
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -6
- package/dist/cjs/ionic-global-7b45fd73.js +462 -0
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-c28ff3cc.js → ios.transition-1ee349d9.js} +5 -7
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-49920cbd.js} +4 -3
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-5b01bcd9.js} +9 -9
- package/dist/cjs/{keyboard-0272231f.js → keyboard-d77ef081.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-01295b30.js → md.transition-719e7e1c.js} +5 -7
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-a8eaed3b.js} +4 -4
- package/dist/cjs/{overlays-76ac42e7.js → overlays-14f167fc.js} +12 -15
- package/dist/cjs/{status-tap-75c3a35d.js → status-tap-e7029c0d.js} +4 -4
- package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-13234294.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/app/app.js +5 -75
- package/dist/collection/components/content/content.js +1 -1
- package/dist/collection/components/footer/footer.js +3 -3
- package/dist/collection/components/header/header.js +4 -4
- 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 +70 -1
- package/dist/collection/utils/focus-visible.js +7 -0
- package/dist/collection/utils/framework-delegate.js +1 -1
- package/dist/collection/utils/helpers.js +1 -1
- package/dist/collection/utils/keyboard/keyboard-controller.js +1 -1
- package/dist/collection/utils/overlays.js +1 -1
- package/dist/docs.json +109 -109
- package/dist/esm/{animation-eab5a4ca.js → animation-4833cc82.js} +1 -1
- package/dist/esm/{app-globals-cef8aa6d.js → app-globals-120fc59a.js} +1 -1
- package/dist/esm/{button-active-6700b8ee.js → button-active-99997f21.js} +2 -2
- package/dist/esm/{capacitor-59395cbd.js → capacitor-90256979.js} +1 -1
- package/dist/esm/{data-ae11fd43.js → data-ef61a6bc.js} +1 -1
- package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-501aff19.js} +8 -1
- package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-3b8e3146.js} +2 -2
- package/dist/esm/{haptic-ac164e4c.js → haptic-2a877838.js} +1 -1
- package/dist/esm/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
- package/dist/esm/{index-deb1a83e.js → index-462343ab.js} +3 -6
- package/{components/index9.js → dist/esm/index-4b965271.js} +3 -2
- package/dist/esm/{index-3ed04e6d.js → index-4e02bb5d.js} +2 -8
- package/dist/esm/{index-5cc724f3.js → index-57058cbb.js} +2 -2
- package/dist/esm/{index-42907296.js → index-ea559016.js} +5 -6
- package/dist/esm/index.js +10 -13
- package/dist/esm/{input-shims-0314bbe5.js → input-shims-3803b8f3.js} +6 -6
- package/dist/esm/{input.utils-09c71bc7.js → input.utils-40cda890.js} +2 -3
- package/dist/esm/ion-accordion_2.entry.js +3 -4
- package/dist/esm/ion-action-sheet.entry.js +9 -12
- package/dist/esm/ion-alert.entry.js +9 -12
- package/dist/esm/ion-app_8.entry.js +22 -92
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +3 -3
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +3 -3
- package/dist/esm/ion-button_2.entry.js +3 -4
- package/dist/esm/ion-card_5.entry.js +3 -3
- package/dist/esm/ion-checkbox.entry.js +3 -3
- 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 -5
- package/dist/esm/ion-datetime_3.entry.js +10 -13
- package/dist/esm/ion-fab_3.entry.js +3 -3
- package/dist/esm/ion-img.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -5
- package/dist/esm/ion-input-password-toggle.entry.js +2 -3
- package/dist/esm/ion-input.entry.js +5 -7
- package/dist/esm/ion-item-option_3.entry.js +4 -5
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +6 -9
- package/dist/esm/ion-menu_3.entry.js +7 -10
- package/dist/esm/ion-modal.entry.js +11 -14
- package/dist/esm/ion-nav_2.entry.js +6 -7
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +5 -6
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +7 -10
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +3 -3
- package/dist/esm/ion-range.entry.js +4 -5
- package/dist/esm/ion-refresher_2.entry.js +7 -9
- package/dist/esm/ion-reorder_2.entry.js +6 -8
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +3 -3
- package/dist/esm/ion-segment_2.entry.js +3 -3
- package/dist/esm/ion-select_3.entry.js +6 -9
- 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 -7
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +5 -7
- package/dist/esm/ion-toast.entry.js +6 -9
- package/dist/esm/ion-toggle.entry.js +5 -6
- package/dist/esm/ionic-global-03ec9636.js +448 -0
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-903646a5.js → ios.transition-974d0663.js} +5 -7
- package/dist/esm/{keyboard-73175e24.js → keyboard-2f90c451.js} +1 -1
- package/dist/esm/{keyboard-52278bd7.js → keyboard-4a5eec96.js} +4 -3
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-bf0b9670.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-92c7f8a6.js → md.transition-a592d042.js} +5 -7
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-8d28ece6.js} +2 -2
- package/dist/esm/{overlays-d1a2f8a8.js → overlays-7d2c4725.js} +4 -7
- package/dist/esm/{status-tap-97e323a9.js → status-tap-eee70591.js} +4 -4
- package/dist/esm/{swipe-back-e5394307.js → swipe-back-1c5e6095.js} +1 -1
- package/dist/esm-es5/animation-4833cc82.js +4 -0
- package/dist/esm-es5/app-globals-120fc59a.js +4 -0
- package/dist/esm-es5/{button-active-6700b8ee.js → button-active-99997f21.js} +1 -1
- package/dist/esm-es5/capacitor-90256979.js +4 -0
- package/dist/esm-es5/data-ef61a6bc.js +4 -0
- package/dist/esm-es5/focus-visible-501aff19.js +4 -0
- package/dist/esm-es5/{framework-delegate-63d1a679.js → framework-delegate-3b8e3146.js} +1 -1
- package/dist/esm-es5/{haptic-ac164e4c.js → haptic-2a877838.js} +1 -1
- package/dist/esm-es5/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
- package/dist/esm-es5/index-462343ab.js +4 -0
- package/dist/esm-es5/index-4b965271.js +4 -0
- package/dist/esm-es5/index-4e02bb5d.js +5 -0
- package/dist/esm-es5/index-57058cbb.js +4 -0
- package/dist/esm-es5/index-ea559016.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-3803b8f3.js +4 -0
- package/dist/esm-es5/input.utils-40cda890.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-03ec9636.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-974d0663.js +4 -0
- package/dist/esm-es5/{keyboard-73175e24.js → keyboard-2f90c451.js} +1 -1
- package/dist/esm-es5/keyboard-4a5eec96.js +4 -0
- package/dist/esm-es5/keyboard-controller-bf0b9670.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-a592d042.js +4 -0
- package/dist/esm-es5/notch-controller-8d28ece6.js +4 -0
- package/dist/esm-es5/overlays-7d2c4725.js +4 -0
- package/dist/esm-es5/status-tap-eee70591.js +4 -0
- package/dist/esm-es5/{swipe-back-e5394307.js → swipe-back-1c5e6095.js} +1 -1
- 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-0323014f.entry.js +4 -0
- package/dist/ionic/{p-f08654ea.system.js → p-0363123b.system.js} +1 -1
- package/dist/ionic/{p-5e97855d.system.entry.js → p-092161ab.system.entry.js} +1 -1
- package/dist/ionic/{p-99859f95.entry.js → p-09854f4b.entry.js} +1 -1
- package/dist/ionic/p-0b886ca7.entry.js +4 -0
- package/dist/ionic/p-0e48d764.entry.js +4 -0
- package/dist/ionic/p-10bc5191.system.entry.js +4 -0
- package/dist/ionic/p-10f5df89.system.entry.js +4 -0
- package/dist/ionic/{p-cb9da2a3.entry.js → p-128849bc.entry.js} +1 -1
- package/dist/ionic/{p-ce58e8e0.entry.js → p-134b5dad.entry.js} +1 -1
- package/dist/ionic/{p-c342dbdf.system.entry.js → p-1883a8fa.system.entry.js} +1 -1
- package/dist/ionic/{p-e8cc3bad.js → p-19b78761.js} +1 -1
- package/dist/ionic/{p-19ea7bff.system.js → p-1d57f288.system.js} +1 -1
- package/dist/ionic/{p-2b2a48ed.entry.js → p-1d5a1bf5.entry.js} +1 -1
- package/dist/ionic/p-1d6f8fab.system.js +4 -0
- package/dist/ionic/p-1dcb0d05.entry.js +4 -0
- package/dist/ionic/p-1e89c2ed.js +4 -0
- package/dist/ionic/{p-6bbad9e4.system.entry.js → p-1e98f497.system.entry.js} +1 -1
- package/dist/ionic/p-29085dc1.system.js +4 -0
- package/dist/ionic/{p-b51e4004.js → p-2f5f9e37.js} +1 -1
- package/dist/ionic/{p-4205a4d9.entry.js → p-33e29f21.entry.js} +1 -1
- package/dist/ionic/p-34726df4.system.entry.js +4 -0
- package/dist/ionic/p-3616a3e7.system.entry.js +4 -0
- package/dist/ionic/p-364105d1.system.entry.js +4 -0
- package/dist/ionic/{p-5d43e642.entry.js → p-36474df6.entry.js} +1 -1
- package/dist/ionic/{p-2b87a770.entry.js → p-368133aa.entry.js} +1 -1
- package/dist/ionic/p-3996cc2f.js +4 -0
- package/dist/ionic/p-3aa92b96.system.entry.js +4 -0
- package/dist/ionic/{p-b7836cec.entry.js → p-3dbf1af2.entry.js} +1 -1
- package/dist/ionic/{p-4bd23b81.entry.js → p-3ec5731b.entry.js} +1 -1
- package/dist/ionic/{p-e6e98f68.system.entry.js → p-3fb02efa.system.entry.js} +1 -1
- package/dist/ionic/p-414b9a61.entry.js +4 -0
- package/dist/ionic/p-41dd8be3.entry.js +4 -0
- package/dist/ionic/p-421796ce.js +4 -0
- package/dist/ionic/{p-a93873de.system.js → p-43f1441e.system.js} +1 -1
- package/dist/ionic/{p-51d30486.entry.js → p-4407067a.entry.js} +1 -1
- package/dist/ionic/p-46787abb.system.js +4 -0
- package/dist/ionic/p-48096596.entry.js +4 -0
- package/dist/ionic/p-487a3ae7.system.js +5 -0
- package/dist/ionic/p-4b528ed3.js +5 -0
- package/dist/ionic/p-4c4de719.entry.js +4 -0
- package/dist/ionic/{p-3ad285e3.system.js → p-4e970f1c.system.js} +1 -1
- package/dist/ionic/p-4efa1a1d.system.entry.js +4 -0
- package/dist/ionic/{p-0b2cb317.system.entry.js → p-511c01d3.system.entry.js} +1 -1
- package/dist/ionic/p-51d13493.entry.js +4 -0
- package/dist/ionic/p-55dbf33b.entry.js +4 -0
- package/dist/ionic/p-5605b84f.js +4 -0
- package/dist/ionic/p-566c88f6.system.js +4 -0
- package/dist/ionic/{p-1955f63a.entry.js → p-5786ea53.entry.js} +1 -1
- package/dist/ionic/p-5821285e.system.entry.js +4 -0
- package/dist/ionic/{p-2f244b7c.system.entry.js → p-58d23d7a.system.entry.js} +1 -1
- package/dist/ionic/p-5abd61c9.js +4 -0
- package/dist/ionic/p-5ada7868.system.js +4 -0
- package/dist/ionic/p-5ce35a03.js +4 -0
- package/dist/ionic/p-5d672083.system.entry.js +4 -0
- package/dist/ionic/p-62bd2e43.system.entry.js +4 -0
- package/dist/ionic/p-6455b864.system.entry.js +4 -0
- package/dist/ionic/p-651766ac.entry.js +4 -0
- package/dist/ionic/{p-b06ac4a5.system.js → p-6596229d.system.js} +1 -1
- package/dist/ionic/{p-1d524f20.system.js → p-67c8dcfd.system.js} +1 -1
- package/dist/ionic/p-6ae88498.js +4 -0
- package/dist/ionic/p-6cf3857f.system.entry.js +4 -0
- package/dist/ionic/p-6d8c0944.system.js +4 -0
- package/dist/ionic/p-6e2918f3.system.entry.js +4 -0
- package/dist/ionic/p-707236b4.system.entry.js +4 -0
- package/dist/ionic/{p-59cda258.system.entry.js → p-718726b0.system.entry.js} +1 -1
- package/dist/ionic/p-73f6766e.system.entry.js +4 -0
- package/dist/ionic/p-7539a724.system.entry.js +4 -0
- package/dist/ionic/{p-3e4a7bd8.system.entry.js → p-759b8d9a.system.entry.js} +1 -1
- package/dist/ionic/{p-f687573e.system.js → p-7767ca8a.system.js} +1 -1
- package/dist/ionic/p-7774e10d.entry.js +4 -0
- package/dist/ionic/p-77aab69d.js +4 -0
- package/dist/ionic/p-78c10d41.entry.js +4 -0
- package/dist/ionic/p-7931413d.entry.js +4 -0
- package/dist/ionic/{p-9146695e.system.js → p-7e56e6cc.system.js} +1 -1
- package/dist/ionic/p-7ffef389.system.entry.js +4 -0
- package/dist/ionic/{p-40277321.system.entry.js → p-80487596.system.entry.js} +1 -1
- package/dist/ionic/{p-8985cdb6.system.js → p-80fa15f7.system.js} +1 -1
- package/dist/ionic/p-8133332f.entry.js +4 -0
- package/dist/ionic/p-83c633c8.js +4 -0
- package/dist/ionic/{p-ed3f6648.system.entry.js → p-84b1b6f7.system.entry.js} +1 -1
- package/dist/ionic/p-84d72d1d.entry.js +4 -0
- package/dist/ionic/p-86391425.js +4 -0
- package/dist/ionic/{p-bd9fd891.system.entry.js → p-8655c143.system.entry.js} +1 -1
- package/dist/ionic/p-86a12c6d.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-86fabcac.js} +1 -1
- package/dist/ionic/p-870c2d06.system.entry.js +4 -0
- package/dist/ionic/p-8857f3ce.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-89d820c6.js} +1 -1
- package/dist/ionic/{p-52c20808.entry.js → p-8bf061c5.entry.js} +1 -1
- package/dist/ionic/{p-57f94155.system.entry.js → p-8dd188b5.system.entry.js} +1 -1
- package/dist/ionic/{p-dfb78785.system.js → p-8f6462ed.system.js} +1 -1
- package/dist/ionic/p-90671ced.system.js +4 -0
- package/dist/ionic/p-92341215.system.js +4 -0
- package/dist/ionic/{p-3cc276f4.js → p-97e18d86.js} +1 -1
- package/dist/ionic/p-9a2dfb2a.system.entry.js +4 -0
- package/dist/ionic/p-9eb18e77.system.js +4 -0
- package/dist/ionic/{p-30482ed4.system.js → p-a09d82d3.system.js} +1 -1
- package/dist/ionic/p-a4cb22d4.entry.js +4 -0
- package/dist/ionic/p-a69ae8cf.js +4 -0
- package/dist/ionic/p-a798933c.system.js +4 -0
- package/dist/ionic/{p-70325536.entry.js → p-a845b317.entry.js} +1 -1
- package/dist/ionic/p-a8ab986c.entry.js +4 -0
- package/dist/ionic/{p-fdfa74cc.system.entry.js → p-a97c0ad2.system.entry.js} +1 -1
- package/dist/ionic/{p-e9119176.entry.js → p-ac3cefed.entry.js} +1 -1
- package/dist/ionic/{p-1350a9c2.entry.js → p-ae371c25.entry.js} +1 -1
- package/dist/ionic/p-b6839dbe.entry.js +4 -0
- package/dist/ionic/p-b7bef03d.system.js +4 -0
- package/dist/ionic/{p-5d7ea80a.system.entry.js → p-b7e1017a.system.entry.js} +1 -1
- package/dist/ionic/{p-2e2c1a93.system.entry.js → p-b8ed1419.system.entry.js} +1 -1
- package/dist/ionic/p-ba3a434f.system.entry.js +4 -0
- package/dist/ionic/p-bd9cd14e.system.js +4 -0
- package/dist/ionic/p-be5cf9f9.system.entry.js +4 -0
- package/dist/ionic/{p-c7e16491.js → p-be81d4c0.js} +1 -1
- package/dist/ionic/p-c160c3e1.system.entry.js +4 -0
- package/dist/ionic/p-c2c4da88.entry.js +4 -0
- package/dist/ionic/{p-b2a2c6cf.system.entry.js → p-c7137d57.system.entry.js} +1 -1
- package/dist/ionic/p-c7914648.entry.js +4 -0
- package/dist/ionic/{p-5ef51d63.entry.js → p-c7e23c59.entry.js} +1 -1
- package/dist/ionic/p-ca48f040.js +4 -0
- package/dist/ionic/{p-488bc4e4.system.entry.js → p-cc984799.system.entry.js} +1 -1
- package/dist/ionic/{p-2690b1de.js → p-cf0e9e1e.js} +1 -1
- package/dist/ionic/{p-34b11c24.js → p-d16139c2.js} +1 -1
- package/dist/ionic/{p-d60342e3.js → p-d24f5d16.js} +1 -1
- package/dist/ionic/p-d9a384b9.entry.js +4 -0
- package/dist/ionic/p-ddda4235.system.js +4 -0
- package/dist/ionic/p-e5be3dfb.js +4 -0
- package/dist/ionic/p-e9fc0e09.system.entry.js +4 -0
- package/dist/ionic/{p-dc672c3a.entry.js → p-eb660bf2.entry.js} +1 -1
- package/dist/ionic/{p-c76e43a2.system.entry.js → p-ebcb711f.system.entry.js} +1 -1
- package/dist/ionic/{p-91d713b7.system.entry.js → p-ec46d513.system.entry.js} +1 -1
- package/dist/ionic/{p-8635f5e6.system.js → p-ec680233.system.js} +1 -1
- package/dist/ionic/{p-aee3f804.system.entry.js → p-ec85f7f5.system.entry.js} +1 -1
- package/dist/ionic/{p-9ea607bd.system.js → p-ed6d9792.system.js} +2 -2
- package/dist/ionic/{p-da5e7dbe.system.entry.js → p-edd8f5f9.system.entry.js} +1 -1
- package/dist/ionic/p-ee9841a3.js +4 -0
- package/dist/ionic/{p-067db520.system.entry.js → p-ef0b1f01.system.entry.js} +1 -1
- package/dist/ionic/{p-33fb4e9d.entry.js → p-f0e78055.entry.js} +1 -1
- package/dist/ionic/{p-d75bce6a.system.js → p-f0fe3aa8.system.js} +1 -1
- package/dist/ionic/p-f1cc6c18.system.entry.js +4 -0
- package/dist/ionic/{p-76bb8eb2.entry.js → p-f32b396b.entry.js} +1 -1
- package/dist/ionic/{p-16b7cfc2.entry.js → p-f4519e12.entry.js} +1 -1
- package/dist/ionic/{p-4b1364c9.entry.js → p-f48ea493.entry.js} +1 -1
- package/dist/ionic/{p-44d98be5.system.entry.js → p-f4e225e1.system.entry.js} +1 -1
- package/dist/ionic/{p-89bd4ed2.entry.js → p-f9286a3b.entry.js} +1 -1
- package/dist/ionic/p-fa23b5f4.entry.js +4 -0
- package/dist/ionic/p-fb229af3.entry.js +4 -0
- package/dist/ionic/p-fe4b96e6.entry.js +4 -0
- package/dist/ionic/p-fe66d1a5.entry.js +4 -0
- package/dist/ionic/p-ffd50854.system.entry.js +4 -0
- package/dist/types/components/app/app.d.ts +0 -2
- package/dist/types/global/ionic-global.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -4
- package/dist/types/utils/focus-visible.d.ts +1 -0
- package/hydrate/index.d.ts +0 -6
- package/hydrate/index.js +384 -514
- package/hydrate/index.mjs +384 -514
- package/package.json +2 -2
- package/components/hardware-back-button.js +0 -115
- package/components/index8.js +0 -128
- package/dist/cjs/hardware-back-button-35a9ebdb.js +0 -122
- package/dist/cjs/index-5915f9b3.js +0 -38
- package/dist/cjs/index-c8d52405.js +0 -10
- package/dist/cjs/ionic-global-2fc6b860.js +0 -237
- package/dist/esm/hardware-back-button-3dd2cf5a.js +0 -116
- package/dist/esm/index-79b30591.js +0 -167
- package/dist/esm/index-9b0d46f4.js +0 -34
- package/dist/esm/index-a5d50daf.js +0 -7
- package/dist/esm/ionic-global-aba82484.js +0 -231
- package/dist/esm-es5/animation-eab5a4ca.js +0 -4
- package/dist/esm-es5/app-globals-cef8aa6d.js +0 -4
- package/dist/esm-es5/capacitor-59395cbd.js +0 -4
- package/dist/esm-es5/data-ae11fd43.js +0 -4
- package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
- package/dist/esm-es5/hardware-back-button-3dd2cf5a.js +0 -4
- package/dist/esm-es5/index-3ed04e6d.js +0 -5
- package/dist/esm-es5/index-42907296.js +0 -4
- package/dist/esm-es5/index-5cc724f3.js +0 -4
- package/dist/esm-es5/index-79b30591.js +0 -4
- package/dist/esm-es5/index-9b0d46f4.js +0 -4
- package/dist/esm-es5/index-a5d50daf.js +0 -4
- package/dist/esm-es5/index-deb1a83e.js +0 -4
- package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
- package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
- package/dist/esm-es5/ionic-global-aba82484.js +0 -4
- package/dist/esm-es5/ios.transition-903646a5.js +0 -4
- package/dist/esm-es5/keyboard-52278bd7.js +0 -4
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
- package/dist/esm-es5/md.transition-92c7f8a6.js +0 -4
- package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
- package/dist/esm-es5/overlays-d1a2f8a8.js +0 -4
- package/dist/esm-es5/status-tap-97e323a9.js +0 -4
- package/dist/ionic/p-0047371d.system.entry.js +0 -4
- package/dist/ionic/p-019fe44c.system.entry.js +0 -4
- package/dist/ionic/p-05399319.entry.js +0 -4
- package/dist/ionic/p-06e58c4e.js +0 -4
- package/dist/ionic/p-06fee233.js +0 -4
- package/dist/ionic/p-0956b807.system.entry.js +0 -4
- package/dist/ionic/p-0b61b67e.system.js +0 -4
- package/dist/ionic/p-0bfdb16f.system.js +0 -4
- package/dist/ionic/p-0c06e09b.system.js +0 -4
- package/dist/ionic/p-0dc1d769.entry.js +0 -4
- package/dist/ionic/p-0f9c24fe.system.js +0 -4
- package/dist/ionic/p-14616c10.system.entry.js +0 -4
- package/dist/ionic/p-149da974.system.js +0 -4
- package/dist/ionic/p-192e07b1.system.entry.js +0 -4
- package/dist/ionic/p-1ca23ae9.system.entry.js +0 -4
- package/dist/ionic/p-1dfc11b3.system.js +0 -4
- package/dist/ionic/p-1e4371bd.js +0 -4
- package/dist/ionic/p-2067d815.system.entry.js +0 -4
- package/dist/ionic/p-2583e966.js +0 -4
- package/dist/ionic/p-263a3f91.system.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2e5ee828.system.entry.js +0 -4
- package/dist/ionic/p-2e6cf7f2.js +0 -4
- package/dist/ionic/p-3447e604.system.entry.js +0 -4
- package/dist/ionic/p-3b2c0ca4.entry.js +0 -4
- package/dist/ionic/p-3c8001c7.system.entry.js +0 -4
- package/dist/ionic/p-4029255b.system.entry.js +0 -4
- package/dist/ionic/p-428db536.entry.js +0 -4
- package/dist/ionic/p-42f9a951.system.entry.js +0 -4
- package/dist/ionic/p-46bac798.entry.js +0 -4
- package/dist/ionic/p-49c26aa9.entry.js +0 -4
- package/dist/ionic/p-4ad055dc.system.entry.js +0 -4
- package/dist/ionic/p-4c2d5b80.system.js +0 -4
- package/dist/ionic/p-4d81423b.entry.js +0 -4
- package/dist/ionic/p-4e7b0cee.entry.js +0 -4
- package/dist/ionic/p-4fe468c2.entry.js +0 -4
- package/dist/ionic/p-51ae8a06.system.entry.js +0 -4
- package/dist/ionic/p-56435093.js +0 -4
- package/dist/ionic/p-59a394ad.system.js +0 -5
- package/dist/ionic/p-5d5d5073.entry.js +0 -4
- package/dist/ionic/p-5d6c0bf8.system.js +0 -4
- package/dist/ionic/p-5e94453a.entry.js +0 -4
- package/dist/ionic/p-600a4ea0.js +0 -4
- package/dist/ionic/p-62b04b4c.entry.js +0 -4
- package/dist/ionic/p-663fe7c8.system.entry.js +0 -4
- package/dist/ionic/p-68da7fc8.system.js +0 -4
- package/dist/ionic/p-6ca2a6af.entry.js +0 -4
- package/dist/ionic/p-6f465cce.js +0 -4
- package/dist/ionic/p-714841be.system.js +0 -4
- package/dist/ionic/p-72812e99.js +0 -4
- package/dist/ionic/p-72bc8a1c.js +0 -4
- package/dist/ionic/p-7414228b.js +0 -5
- package/dist/ionic/p-792919fd.system.js +0 -4
- package/dist/ionic/p-7b30edcc.js +0 -4
- package/dist/ionic/p-7e07fb64.entry.js +0 -4
- package/dist/ionic/p-7e497250.system.entry.js +0 -4
- package/dist/ionic/p-933e9e71.entry.js +0 -4
- package/dist/ionic/p-96cc4814.js +0 -4
- package/dist/ionic/p-9f8740b2.entry.js +0 -4
- package/dist/ionic/p-a15ddedb.system.js +0 -4
- package/dist/ionic/p-a8775bf9.entry.js +0 -4
- package/dist/ionic/p-abc5c0a4.system.entry.js +0 -4
- package/dist/ionic/p-abe101da.system.js +0 -4
- package/dist/ionic/p-aed9cc5b.entry.js +0 -4
- package/dist/ionic/p-b69c1e65.system.entry.js +0 -4
- package/dist/ionic/p-b719790b.js +0 -4
- package/dist/ionic/p-b8157bb5.system.entry.js +0 -4
- package/dist/ionic/p-bae531fb.system.entry.js +0 -4
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-c57d792e.entry.js +0 -4
- package/dist/ionic/p-c61cc894.js +0 -4
- package/dist/ionic/p-c8e78b70.system.entry.js +0 -4
- package/dist/ionic/p-cc3e2b52.entry.js +0 -4
- package/dist/ionic/p-d073ba84.entry.js +0 -4
- package/dist/ionic/p-d0f8d0aa.entry.js +0 -4
- package/dist/ionic/p-d47265c8.js +0 -4
- package/dist/ionic/p-d65d9c9c.system.entry.js +0 -4
- package/dist/ionic/p-d6e463ee.system.entry.js +0 -4
- package/dist/ionic/p-d8ace0cb.entry.js +0 -4
- package/dist/ionic/p-d8dcfbf3.system.entry.js +0 -4
- package/dist/ionic/p-e351e0e3.entry.js +0 -4
- package/dist/ionic/p-eec4b4ce.entry.js +0 -4
- package/dist/ionic/p-f22b3a75.js +0 -4
- package/dist/ionic/p-f367478b.js +0 -4
- package/dist/ionic/p-f36c9945.system.entry.js +0 -4
- package/dist/ionic/p-fc9b4e5a.entry.js +0 -4
- package/dist/ionic/p-fec56d82.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
|
@@ -5,19 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index$
|
|
8
|
+
const index$1 = require('./index-b9e25ecd.js');
|
|
9
9
|
const config = require('./config-4f60b98a.js');
|
|
10
|
-
const helpers = require('./helpers-
|
|
10
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
11
11
|
const lockController = require('./lock-controller-6585a42a.js');
|
|
12
|
-
const
|
|
13
|
-
const overlays = require('./overlays-
|
|
12
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
13
|
+
const overlays = require('./overlays-14f167fc.js');
|
|
14
14
|
const theme = require('./theme-d1c573d2.js');
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const index$2 = require('./index-ee07ed59.js');
|
|
19
|
-
require('./hardware-back-button-35a9ebdb.js');
|
|
20
|
-
require('./framework-delegate-55f5683a.js');
|
|
15
|
+
const animation = require('./animation-1b5076f1.js');
|
|
16
|
+
const index = require('./index-ee07ed59.js');
|
|
17
|
+
require('./framework-delegate-d1e05576.js');
|
|
21
18
|
require('./gesture-controller-9436f482.js');
|
|
22
19
|
|
|
23
20
|
/**
|
|
@@ -55,7 +52,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
55
52
|
* bottom anchor edge is targeted. For position="bottom", the top
|
|
56
53
|
* anchor edge is targeted.
|
|
57
54
|
*/
|
|
58
|
-
if (positionAnchor &&
|
|
55
|
+
if (positionAnchor && ionicGlobal.win) {
|
|
59
56
|
warnIfAnchorIsHidden(positionAnchor, toast);
|
|
60
57
|
const box = positionAnchor.getBoundingClientRect();
|
|
61
58
|
if (position === 'top') {
|
|
@@ -67,7 +64,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
67
64
|
* to the top edge of the anchor. We want to calculate from the
|
|
68
65
|
* bottom edge of the screen instead.
|
|
69
66
|
*/
|
|
70
|
-
offset -=
|
|
67
|
+
offset -= ionicGlobal.win.innerHeight - box.top;
|
|
71
68
|
}
|
|
72
69
|
/**
|
|
73
70
|
* We don't include safe area here because that should already be
|
|
@@ -92,7 +89,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
92
89
|
*/
|
|
93
90
|
function warnIfAnchorIsHidden(positionAnchor, toast) {
|
|
94
91
|
if (positionAnchor.offsetParent === null) {
|
|
95
|
-
|
|
92
|
+
ionicGlobal.printIonWarning('The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.', toast);
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
/**
|
|
@@ -438,7 +435,7 @@ const createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {
|
|
|
438
435
|
}, { oneTimeCallback: true })
|
|
439
436
|
.progressEnd(playTo, step, duration);
|
|
440
437
|
};
|
|
441
|
-
const gesture = index
|
|
438
|
+
const gesture = index.createGesture({
|
|
442
439
|
el: wrapperEl,
|
|
443
440
|
gestureName: 'toast-swipe-to-dismiss',
|
|
444
441
|
gesturePriority: overlays.OVERLAY_GESTURE_PRIORITY,
|
|
@@ -462,15 +459,15 @@ const IonToastMdStyle0 = toastMdCss;
|
|
|
462
459
|
|
|
463
460
|
const Toast = class {
|
|
464
461
|
constructor(hostRef) {
|
|
465
|
-
index$
|
|
466
|
-
this.didPresent = index$
|
|
467
|
-
this.willPresent = index$
|
|
468
|
-
this.willDismiss = index$
|
|
469
|
-
this.didDismiss = index$
|
|
470
|
-
this.didPresentShorthand = index$
|
|
471
|
-
this.willPresentShorthand = index$
|
|
472
|
-
this.willDismissShorthand = index$
|
|
473
|
-
this.didDismissShorthand = index$
|
|
462
|
+
index$1.registerInstance(this, hostRef);
|
|
463
|
+
this.didPresent = index$1.createEvent(this, "ionToastDidPresent", 7);
|
|
464
|
+
this.willPresent = index$1.createEvent(this, "ionToastWillPresent", 7);
|
|
465
|
+
this.willDismiss = index$1.createEvent(this, "ionToastWillDismiss", 7);
|
|
466
|
+
this.didDismiss = index$1.createEvent(this, "ionToastDidDismiss", 7);
|
|
467
|
+
this.didPresentShorthand = index$1.createEvent(this, "didPresent", 7);
|
|
468
|
+
this.willPresentShorthand = index$1.createEvent(this, "willPresent", 7);
|
|
469
|
+
this.willDismissShorthand = index$1.createEvent(this, "willDismiss", 7);
|
|
470
|
+
this.didDismissShorthand = index$1.createEvent(this, "didDismiss", 7);
|
|
474
471
|
this.delegateController = overlays.createDelegateController(this);
|
|
475
472
|
this.lockController = lockController.createLockController();
|
|
476
473
|
this.triggerController = overlays.createTriggerController();
|
|
@@ -732,7 +729,7 @@ const Toast = class {
|
|
|
732
729
|
return;
|
|
733
730
|
}
|
|
734
731
|
if (position === 'middle' && positionAnchor !== undefined) {
|
|
735
|
-
|
|
732
|
+
ionicGlobal.printIonWarning('The positionAnchor property is ignored when using position="middle".', this.el);
|
|
736
733
|
return undefined;
|
|
737
734
|
}
|
|
738
735
|
if (typeof positionAnchor === 'string') {
|
|
@@ -744,7 +741,7 @@ const Toast = class {
|
|
|
744
741
|
*/
|
|
745
742
|
const foundEl = document.getElementById(positionAnchor);
|
|
746
743
|
if (foundEl === null) {
|
|
747
|
-
|
|
744
|
+
ionicGlobal.printIonWarning(`An anchor element with an ID of "${positionAnchor}" was not found in the DOM.`, el);
|
|
748
745
|
return undefined;
|
|
749
746
|
}
|
|
750
747
|
return foundEl;
|
|
@@ -752,7 +749,7 @@ const Toast = class {
|
|
|
752
749
|
if (positionAnchor instanceof HTMLElement) {
|
|
753
750
|
return positionAnchor;
|
|
754
751
|
}
|
|
755
|
-
|
|
752
|
+
ionicGlobal.printIonWarning('Invalid positionAnchor value:', positionAnchor, el);
|
|
756
753
|
return undefined;
|
|
757
754
|
}
|
|
758
755
|
async buttonClick(button) {
|
|
@@ -792,7 +789,7 @@ const Toast = class {
|
|
|
792
789
|
'toast-button-group': true,
|
|
793
790
|
[`toast-button-group-${side}`]: true,
|
|
794
791
|
};
|
|
795
|
-
return (index$
|
|
792
|
+
return (index$1.h("div", { class: buttonGroupsClasses }, buttons.map((b) => (index$1.h("button", Object.assign({}, b.htmlAttributes, { type: "button", class: buttonClass(b), tabIndex: 0, onClick: () => this.buttonClick(b), part: buttonPart(b) }), index$1.h("div", { class: "toast-button-inner" }, b.icon && (index$1.h("ion-icon", { "aria-hidden": "true", icon: b.icon, slot: b.text === undefined ? 'icon-only' : undefined, class: "toast-button-icon" })), b.text), mode === 'md' && (index$1.h("ion-ripple-effect", { type: b.icon !== undefined && b.text === undefined ? 'unbounded' : 'bounded' })))))));
|
|
796
793
|
}
|
|
797
794
|
/**
|
|
798
795
|
* Render the `message` property.
|
|
@@ -802,9 +799,9 @@ const Toast = class {
|
|
|
802
799
|
renderToastMessage(key, ariaHidden = null) {
|
|
803
800
|
const { customHTMLEnabled, message } = this;
|
|
804
801
|
if (customHTMLEnabled) {
|
|
805
|
-
return (index$
|
|
802
|
+
return (index$1.h("div", { key: key, "aria-hidden": ariaHidden, class: "toast-message", part: "message", innerHTML: config.sanitizeDOMString(message) }));
|
|
806
803
|
}
|
|
807
|
-
return (index$
|
|
804
|
+
return (index$1.h("div", { key: key, "aria-hidden": ariaHidden, class: "toast-message", part: "message" }, message));
|
|
808
805
|
}
|
|
809
806
|
/**
|
|
810
807
|
* Render the `header` property.
|
|
@@ -812,7 +809,7 @@ const Toast = class {
|
|
|
812
809
|
* @param ariaHidden - If "true" then content will be hidden from screen readers.
|
|
813
810
|
*/
|
|
814
811
|
renderHeader(key, ariaHidden = null) {
|
|
815
|
-
return (index$
|
|
812
|
+
return (index$1.h("div", { key: key, class: "toast-header", "aria-hidden": ariaHidden, part: "header" }, this.header));
|
|
816
813
|
}
|
|
817
814
|
render() {
|
|
818
815
|
const { layout, el, revealContentToScreenReader, header, message } = this;
|
|
@@ -830,13 +827,13 @@ const Toast = class {
|
|
|
830
827
|
* used with one type of button.
|
|
831
828
|
*/
|
|
832
829
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
833
|
-
|
|
830
|
+
ionicGlobal.printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
834
831
|
}
|
|
835
|
-
return (index$
|
|
832
|
+
return (index$1.h(index$1.Host, Object.assign({ key: '68c336f80af04ba484ca9899bae8f40c0d9b7691', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
836
833
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
837
|
-
}, class: theme.createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), index$
|
|
834
|
+
}, class: theme.createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), index$1.h("div", { key: '3483b188f14b700964a123997a60a43a2023a1b6', class: wrapperClass }, index$1.h("div", { key: '1b88544a9b87253b364cbec6285625388979b560', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (index$1.h("ion-icon", { key: 'bd1c42e3b14af66b880dfe283e3ae910075c0f70', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), index$1.h("div", { key: 'a5ef6cdabc1f7c70d11a5f2a0abf8737fe7550e8', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
838
835
|
}
|
|
839
|
-
get el() { return index$
|
|
836
|
+
get el() { return index$1.getElement(this); }
|
|
840
837
|
static get watchers() { return {
|
|
841
838
|
"swipeGesture": ["swipeGestureChanged"],
|
|
842
839
|
"isOpen": ["onIsOpenChange"],
|
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
9
|
-
const helpers = require('./helpers-
|
|
10
|
-
const haptic = require('./haptic-
|
|
8
|
+
const index = require('./index-b9e25ecd.js');
|
|
9
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
10
|
+
const haptic = require('./haptic-2bdd48c1.js');
|
|
11
11
|
const dir = require('./dir-94c21456.js');
|
|
12
12
|
const theme = require('./theme-d1c573d2.js');
|
|
13
13
|
const index$1 = require('./index-073c7cdc.js');
|
|
14
|
-
const ionicGlobal = require('./ionic-global-
|
|
15
|
-
require('./capacitor-
|
|
16
|
-
require('./index-c8d52405.js');
|
|
14
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
15
|
+
require('./capacitor-618d05d6.js');
|
|
17
16
|
|
|
18
17
|
const toggleIosCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between),:host(.toggle-justify-start),:host(.toggle-justify-end),:host(.toggle-alignment-start),:host(.toggle-alignment-center){display:block}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--track-background-checked:var(--ion-color-primary, #0054e9);--border-radius:15.5px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 4px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.06);--handle-height:calc(31px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(31px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms}.native-wrapper .toggle-icon{width:51px;height:31px;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:background-color 300ms;transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity 300ms, color 300ms;transition:opacity 300ms, color 300ms}.toggle-switch-icon{position:absolute;color:var(--ion-color-dark, #222428)}:host(.toggle-ltr) .toggle-switch-icon{right:6px}:host(.toggle-rtl) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{position:absolute;width:15px;height:15px;-webkit-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}:host(.toggle-ltr) .toggle-switch-icon-checked{right:initial;left:4px;}:host(.toggle-rtl) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-ltr.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0);transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host(.toggle-rtl.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0);transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}";
|
|
19
18
|
const IonToggleIosStyle0 = toggleIosCss;
|
|
@@ -0,0 +1,462 @@
|
|
|
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-c17dd541.js'); }).then((module) => module.startTapClick(config));
|
|
415
|
+
}
|
|
416
|
+
if (config.getBoolean('statusTap', isHybrid)) {
|
|
417
|
+
Promise.resolve().then(function () { return require('./status-tap-e7029c0d.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-f41730e2.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-49920cbd.js'); }).then((module) => module.startKeyboardAssist(window));
|
|
444
|
+
}
|
|
445
|
+
Promise.resolve().then(function () { return require('./focus-visible-9aa87fa3.js'); }).then((module) => module.getOrInitFocusVisibleUtility());
|
|
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;
|