@ionic/core 8.3.1-dev.11726241210.1ab7a0ab → 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-2cfd442b.js → app-globals-7adfb8dd.js} +1 -1
- package/dist/cjs/{button-active-1a40c735.js → button-active-0f66de25.js} +1 -1
- 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-9bdd4f2a.js → index-686a2ab7.js} +8 -9
- package/dist/cjs/{index-9509ecad.js → index-c17dd541.js} +8 -7
- package/dist/cjs/{index-c170694d.js → index-d683cd69.js} +7 -10
- package/dist/cjs/index.cjs.js +9 -12
- 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 +3 -4
- package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -11
- package/dist/cjs/ion-alert.cjs.entry.js +8 -11
- package/dist/cjs/ion-app_8.cjs.entry.js +31 -101
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +5 -6
- 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 +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +7 -8
- package/dist/cjs/ion-datetime_3.cjs.entry.js +96 -99
- 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 +3 -4
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +6 -7
- package/dist/cjs/ion-input.cjs.entry.js +4 -6
- package/dist/cjs/ion-item-option_3.cjs.entry.js +3 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +5 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +7 -10
- package/dist/cjs/ion-modal.cjs.entry.js +49 -52
- package/dist/cjs/ion-nav_2.cjs.entry.js +5 -6
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +5 -6
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +9 -12
- 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 +8 -9
- package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -8
- package/dist/cjs/ion-reorder_2.cjs.entry.js +5 -7
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +5 -8
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +1 -1
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +5 -6
- package/dist/cjs/ion-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-text.cjs.entry.js +1 -1
- package/dist/cjs/ion-textarea.cjs.entry.js +4 -6
- package/dist/cjs/ion-toast.cjs.entry.js +31 -34
- package/dist/cjs/ion-toggle.cjs.entry.js +4 -5
- package/dist/cjs/ionic-global-7b45fd73.js +462 -0
- package/dist/cjs/ionic.cjs.js +2 -2
- package/dist/cjs/{ios.transition-ac67e283.js → ios.transition-1ee349d9.js} +4 -6
- 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 +2 -2
- package/dist/cjs/{md.transition-8ceb4e1a.js → md.transition-719e7e1c.js} +4 -6
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-a8eaed3b.js} +4 -4
- package/dist/cjs/{overlays-4451d3fc.js → overlays-14f167fc.js} +12 -15
- package/dist/cjs/{status-tap-e52a48f8.js → status-tap-e7029c0d.js} +3 -3
- package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-13234294.js} +1 -1
- 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 +107 -107
- package/dist/esm/{animation-eab5a4ca.js → animation-4833cc82.js} +1 -1
- package/dist/esm/{app-globals-b9f6e516.js → app-globals-120fc59a.js} +1 -1
- package/dist/esm/{button-active-13c37337.js → button-active-99997f21.js} +1 -1
- 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-97b0ab3f.js → index-462343ab.js} +3 -6
- package/{components/index9.js → dist/esm/index-4b965271.js} +3 -2
- package/dist/esm/{index-5cc724f3.js → index-57058cbb.js} +2 -2
- package/dist/esm/{index-8579e7fd.js → index-ea559016.js} +4 -5
- package/dist/esm/index.js +9 -12
- 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 +2 -3
- package/dist/esm/ion-action-sheet.entry.js +8 -11
- package/dist/esm/ion-alert.entry.js +8 -11
- package/dist/esm/ion-app_8.entry.js +21 -91
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -3
- 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 +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +3 -4
- package/dist/esm/ion-datetime_3.entry.js +9 -12
- 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 +3 -4
- package/dist/esm/ion-input-password-toggle.entry.js +1 -2
- package/dist/esm/ion-input.entry.js +4 -6
- package/dist/esm/ion-item-option_3.entry.js +3 -4
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +5 -8
- package/dist/esm/ion-menu_3.entry.js +6 -9
- package/dist/esm/ion-modal.entry.js +10 -13
- package/dist/esm/ion-nav_2.entry.js +5 -6
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +4 -5
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +6 -9
- 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 +3 -4
- package/dist/esm/ion-refresher_2.entry.js +6 -8
- package/dist/esm/ion-reorder_2.entry.js +5 -7
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +5 -8
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +1 -1
- package/dist/esm/ion-tab-bar_2.entry.js +5 -6
- package/dist/esm/ion-tab_2.entry.js +2 -2
- package/dist/esm/ion-text.entry.js +1 -1
- package/dist/esm/ion-textarea.entry.js +4 -6
- package/dist/esm/ion-toast.entry.js +5 -8
- package/dist/esm/ion-toggle.entry.js +4 -5
- package/dist/esm/ionic-global-03ec9636.js +448 -0
- package/dist/esm/ionic.js +2 -2
- package/dist/esm/{ios.transition-beb96e76.js → ios.transition-974d0663.js} +4 -6
- 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 +2 -2
- package/dist/esm/{md.transition-d5aa5703.js → md.transition-a592d042.js} +4 -6
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-8d28ece6.js} +2 -2
- package/dist/esm/{overlays-2ea57630.js → overlays-7d2c4725.js} +4 -7
- package/dist/esm/{status-tap-a264a37f.js → status-tap-eee70591.js} +3 -3
- 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-13c37337.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-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-89611183.system.js → p-0363123b.system.js} +1 -1
- package/dist/ionic/{p-fca0933c.system.entry.js → p-092161ab.system.entry.js} +1 -1
- package/dist/ionic/{p-e00617fb.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-3d9ecf70.entry.js → p-128849bc.entry.js} +1 -1
- package/dist/ionic/{p-b0fbe12b.entry.js → p-134b5dad.entry.js} +1 -1
- package/dist/ionic/{p-89d17c48.system.entry.js → p-1883a8fa.system.entry.js} +1 -1
- package/dist/ionic/{p-dc65c03b.js → p-19b78761.js} +1 -1
- package/dist/ionic/{p-19ea7bff.system.js → p-1d57f288.system.js} +1 -1
- package/dist/ionic/p-1d5a1bf5.entry.js +4 -0
- 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-fd70cb80.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-f4d568f8.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-4440f5b4.entry.js → p-36474df6.entry.js} +1 -1
- package/dist/ionic/{p-491deb33.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-cf6bad6d.entry.js → p-3dbf1af2.entry.js} +1 -1
- package/dist/ionic/{p-8b3ff142.entry.js → p-3ec5731b.entry.js} +1 -1
- package/dist/ionic/{p-83f7a890.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-e02807c4.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-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-aa5358cb.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-21904499.entry.js → p-5786ea53.entry.js} +1 -1
- package/dist/ionic/p-5821285e.system.entry.js +4 -0
- package/dist/ionic/{p-6d857105.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-289d16f5.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-98203dbd.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-0065a3d0.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-7de39857.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-8cab6a5c.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-4a963829.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-3ba261ac.entry.js → p-8bf061c5.entry.js} +1 -1
- package/dist/ionic/{p-b6fbbe81.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-c6181d52.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-7f375f5a.entry.js → p-a845b317.entry.js} +1 -1
- package/dist/ionic/p-a8ab986c.entry.js +4 -0
- package/dist/ionic/{p-4fbf3556.system.entry.js → p-a97c0ad2.system.entry.js} +1 -1
- package/dist/ionic/{p-23e0cd37.entry.js → p-ac3cefed.entry.js} +1 -1
- package/dist/ionic/{p-2b37f5bd.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-acaa514f.system.entry.js → p-b7e1017a.system.entry.js} +1 -1
- package/dist/ionic/{p-1e1b3d99.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-97f6c01c.system.entry.js → p-c7137d57.system.entry.js} +1 -1
- package/dist/ionic/p-c7914648.entry.js +4 -0
- package/dist/ionic/{p-eecf3a84.entry.js → p-c7e23c59.entry.js} +1 -1
- package/dist/ionic/p-ca48f040.js +4 -0
- package/dist/ionic/{p-86deab17.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-1f772e46.entry.js → p-eb660bf2.entry.js} +1 -1
- package/dist/ionic/{p-76256933.system.entry.js → p-ebcb711f.system.entry.js} +1 -1
- package/dist/ionic/{p-444c76ee.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-8884ee37.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-d4a694c5.system.entry.js → p-edd8f5f9.system.entry.js} +1 -1
- package/dist/ionic/p-ee9841a3.js +4 -0
- package/dist/ionic/{p-62bb4a33.system.entry.js → p-ef0b1f01.system.entry.js} +1 -1
- package/dist/ionic/{p-cc35239f.entry.js → p-f0e78055.entry.js} +1 -1
- package/dist/ionic/p-f0fe3aa8.system.js +4 -0
- package/dist/ionic/p-f1cc6c18.system.entry.js +4 -0
- package/dist/ionic/{p-505121c4.entry.js → p-f32b396b.entry.js} +1 -1
- package/dist/ionic/{p-1b57577b.entry.js → p-f4519e12.entry.js} +1 -1
- package/dist/ionic/{p-d7cde2c6.entry.js → p-f48ea493.entry.js} +1 -1
- package/dist/ionic/{p-4384e5de.system.entry.js → p-f4e225e1.system.entry.js} +1 -1
- package/dist/ionic/{p-96503a77.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/utils/focus-visible.d.ts +1 -0
- package/hydrate/index.js +142 -138
- package/hydrate/index.mjs +142 -138
- package/package.json +1 -1
- package/components/hardware-back-button.js +0 -115
- package/components/index8.js +0 -128
- package/dist/cjs/hardware-back-button-1f867b1e.js +0 -122
- package/dist/cjs/index-5915f9b3.js +0 -38
- package/dist/cjs/index-c8d52405.js +0 -10
- package/dist/cjs/ionic-global-86430f67.js +0 -237
- package/dist/esm/hardware-back-button-8e2c1354.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-8f9440ec.js +0 -231
- package/dist/esm-es5/animation-eab5a4ca.js +0 -4
- package/dist/esm-es5/app-globals-b9f6e516.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-8e2c1354.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-8579e7fd.js +0 -4
- package/dist/esm-es5/index-97b0ab3f.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/input-shims-0314bbe5.js +0 -4
- package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
- package/dist/esm-es5/ionic-global-8f9440ec.js +0 -4
- package/dist/esm-es5/ios.transition-beb96e76.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-d5aa5703.js +0 -4
- package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
- package/dist/esm-es5/overlays-2ea57630.js +0 -4
- package/dist/esm-es5/status-tap-a264a37f.js +0 -4
- package/dist/ionic/p-06e58c4e.js +0 -4
- package/dist/ionic/p-06fbb310.entry.js +0 -4
- package/dist/ionic/p-06fee233.js +0 -4
- package/dist/ionic/p-08cfccad.js +0 -4
- package/dist/ionic/p-0c06e09b.system.js +0 -4
- package/dist/ionic/p-11810112.system.entry.js +0 -4
- package/dist/ionic/p-1277436d.system.entry.js +0 -4
- package/dist/ionic/p-14c81a66.system.js +0 -4
- package/dist/ionic/p-15ef22b3.system.entry.js +0 -4
- package/dist/ionic/p-16917251.entry.js +0 -4
- package/dist/ionic/p-184f2f63.system.entry.js +0 -4
- package/dist/ionic/p-1cacb881.system.entry.js +0 -4
- package/dist/ionic/p-1d3ea8c1.entry.js +0 -4
- package/dist/ionic/p-1dfc11b3.system.js +0 -4
- package/dist/ionic/p-1dfe9aa7.entry.js +0 -4
- package/dist/ionic/p-1e4371bd.js +0 -4
- package/dist/ionic/p-2056f176.js +0 -4
- package/dist/ionic/p-2afb9310.entry.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2d93a7e5.system.js +0 -4
- package/dist/ionic/p-2de64a3f.system.entry.js +0 -4
- package/dist/ionic/p-303f64cd.entry.js +0 -4
- package/dist/ionic/p-330d7e08.entry.js +0 -4
- package/dist/ionic/p-34a6b5a7.entry.js +0 -4
- package/dist/ionic/p-382345db.system.entry.js +0 -4
- package/dist/ionic/p-46121609.entry.js +0 -4
- package/dist/ionic/p-49ffacc0.system.entry.js +0 -4
- package/dist/ionic/p-4ad3a2de.entry.js +0 -4
- package/dist/ionic/p-4c2d5b80.system.js +0 -4
- package/dist/ionic/p-4e6aa78c.entry.js +0 -4
- package/dist/ionic/p-4fa22b8c.entry.js +0 -4
- package/dist/ionic/p-50c38a28.system.entry.js +0 -4
- package/dist/ionic/p-52fce436.entry.js +0 -4
- package/dist/ionic/p-5749f245.system.entry.js +0 -4
- package/dist/ionic/p-586fa05c.system.js +0 -4
- package/dist/ionic/p-5ae3649f.system.entry.js +0 -4
- package/dist/ionic/p-669c0566.system.js +0 -4
- package/dist/ionic/p-66aa91c8.js +0 -4
- package/dist/ionic/p-6be871f6.system.entry.js +0 -4
- package/dist/ionic/p-6e444bfa.entry.js +0 -4
- package/dist/ionic/p-6e4ff107.system.entry.js +0 -4
- package/dist/ionic/p-7123a4b9.system.js +0 -4
- package/dist/ionic/p-72812e99.js +0 -4
- package/dist/ionic/p-72bc8a1c.js +0 -4
- package/dist/ionic/p-792919fd.system.js +0 -4
- package/dist/ionic/p-7b30edcc.js +0 -4
- package/dist/ionic/p-82ad7191.entry.js +0 -4
- package/dist/ionic/p-8302d21c.system.entry.js +0 -4
- package/dist/ionic/p-840cdfe8.entry.js +0 -4
- package/dist/ionic/p-86895ed7.system.js +0 -4
- package/dist/ionic/p-8c1f6a17.entry.js +0 -4
- package/dist/ionic/p-8d460677.entry.js +0 -4
- package/dist/ionic/p-8ed4381f.js +0 -4
- package/dist/ionic/p-96cc4814.js +0 -4
- package/dist/ionic/p-985f06f3.entry.js +0 -4
- package/dist/ionic/p-98a7aade.js +0 -4
- package/dist/ionic/p-9a64afc9.entry.js +0 -4
- package/dist/ionic/p-9a957058.system.entry.js +0 -4
- package/dist/ionic/p-9beb3fad.js +0 -4
- package/dist/ionic/p-9cd1f569.system.js +0 -4
- package/dist/ionic/p-a15ddedb.system.js +0 -4
- package/dist/ionic/p-ab44e74e.entry.js +0 -4
- package/dist/ionic/p-abe101da.system.js +0 -4
- package/dist/ionic/p-b032d7ad.system.entry.js +0 -4
- package/dist/ionic/p-b0d099be.js +0 -4
- package/dist/ionic/p-b0fea0ab.system.entry.js +0 -4
- package/dist/ionic/p-b6f09d60.system.entry.js +0 -4
- package/dist/ionic/p-bb013b6c.system.entry.js +0 -4
- package/dist/ionic/p-be11fb42.system.js +0 -4
- package/dist/ionic/p-be32a527.entry.js +0 -4
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-c61cc894.js +0 -4
- package/dist/ionic/p-c655f9cc.js +0 -4
- package/dist/ionic/p-c7b3353c.entry.js +0 -4
- package/dist/ionic/p-ccfe13f3.entry.js +0 -4
- package/dist/ionic/p-cdb1dc2f.system.entry.js +0 -4
- package/dist/ionic/p-d232cc6e.system.entry.js +0 -4
- package/dist/ionic/p-d47265c8.js +0 -4
- package/dist/ionic/p-d690dc50.system.entry.js +0 -4
- package/dist/ionic/p-d6b5bfa3.entry.js +0 -4
- package/dist/ionic/p-d81e5138.entry.js +0 -4
- package/dist/ionic/p-da5af268.system.entry.js +0 -4
- package/dist/ionic/p-e8cd5bde.js +0 -4
- package/dist/ionic/p-ebe1326c.system.js +0 -4
- package/dist/ionic/p-ed76b287.entry.js +0 -4
- package/dist/ionic/p-f8fbf20f.system.entry.js +0 -4
- package/dist/ionic/p-ff417d5d.system.entry.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { setPlatformHelpers, setMode, getMode } from '@stencil/core/internal/client';
|
|
4
|
+
import { setPlatformHelpers, setMode, Build, getMode } from '@stencil/core/internal/client';
|
|
5
|
+
|
|
6
|
+
const win = typeof window !== 'undefined' ? window : undefined;
|
|
7
|
+
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
5
8
|
|
|
6
9
|
// TODO(FW-2832): types
|
|
7
10
|
class Config {
|
|
@@ -78,6 +81,153 @@ const startsWith = (input, search) => {
|
|
|
78
81
|
const IONIC_PREFIX = 'ionic:';
|
|
79
82
|
const IONIC_SESSION_KEY = 'ionic-persist-config';
|
|
80
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Logs a warning to the console with an Ionic prefix
|
|
86
|
+
* to indicate the library that is warning the developer.
|
|
87
|
+
*
|
|
88
|
+
* @param message - The string message to be logged to the console.
|
|
89
|
+
*/
|
|
90
|
+
const printIonWarning = (message, ...params) => {
|
|
91
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
92
|
+
};
|
|
93
|
+
/*
|
|
94
|
+
* Logs an error to the console with an Ionic prefix
|
|
95
|
+
* to indicate the library that is warning the developer.
|
|
96
|
+
*
|
|
97
|
+
* @param message - The string message to be logged to the console.
|
|
98
|
+
* @param params - Additional arguments to supply to the console.error.
|
|
99
|
+
*/
|
|
100
|
+
const printIonError = (message, ...params) => {
|
|
101
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Prints an error informing developers that an implementation requires an element to be used
|
|
105
|
+
* within a specific selector.
|
|
106
|
+
*
|
|
107
|
+
* @param el The web component element this is requiring the element.
|
|
108
|
+
* @param targetSelectors The selector or selectors that were not found.
|
|
109
|
+
*/
|
|
110
|
+
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
111
|
+
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* CloseWatcher is a newer API that lets
|
|
116
|
+
* use detect the hardware back button event
|
|
117
|
+
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
118
|
+
* However, not every browser supports it yet.
|
|
119
|
+
*
|
|
120
|
+
* This needs to be a function so that we can
|
|
121
|
+
* check the config once it has been set.
|
|
122
|
+
* Otherwise, this code would be evaluated the
|
|
123
|
+
* moment this file is evaluated which could be
|
|
124
|
+
* before the config is set.
|
|
125
|
+
*/
|
|
126
|
+
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win !== undefined && 'CloseWatcher' in win;
|
|
127
|
+
/**
|
|
128
|
+
* When hardwareBackButton: false in config,
|
|
129
|
+
* we need to make sure we also block the default
|
|
130
|
+
* webview behavior. If we don't then it will be
|
|
131
|
+
* possible for users to navigate backward while
|
|
132
|
+
* an overlay is still open. Additionally, it will
|
|
133
|
+
* give the appearance that the hardwareBackButton
|
|
134
|
+
* config is not working as the page transition
|
|
135
|
+
* will still happen.
|
|
136
|
+
*/
|
|
137
|
+
const blockHardwareBackButton = () => {
|
|
138
|
+
document.addEventListener('backbutton', () => { }); // eslint-disable-line
|
|
139
|
+
};
|
|
140
|
+
const startHardwareBackButton = () => {
|
|
141
|
+
const doc = document;
|
|
142
|
+
let busy = false;
|
|
143
|
+
const backButtonCallback = () => {
|
|
144
|
+
if (busy) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
let index = 0;
|
|
148
|
+
let handlers = [];
|
|
149
|
+
const ev = new CustomEvent('ionBackButton', {
|
|
150
|
+
bubbles: false,
|
|
151
|
+
detail: {
|
|
152
|
+
register(priority, handler) {
|
|
153
|
+
handlers.push({ priority, handler, id: index++ });
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
doc.dispatchEvent(ev);
|
|
158
|
+
const executeAction = async (handlerRegister) => {
|
|
159
|
+
try {
|
|
160
|
+
if (handlerRegister === null || handlerRegister === void 0 ? void 0 : handlerRegister.handler) {
|
|
161
|
+
const result = handlerRegister.handler(processHandlers);
|
|
162
|
+
if (result != null) {
|
|
163
|
+
await result;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
catch (e) {
|
|
168
|
+
console.error(e);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
const processHandlers = () => {
|
|
172
|
+
if (handlers.length > 0) {
|
|
173
|
+
let selectedHandler = {
|
|
174
|
+
priority: Number.MIN_SAFE_INTEGER,
|
|
175
|
+
handler: () => undefined,
|
|
176
|
+
id: -1,
|
|
177
|
+
};
|
|
178
|
+
handlers.forEach((handler) => {
|
|
179
|
+
if (handler.priority >= selectedHandler.priority) {
|
|
180
|
+
selectedHandler = handler;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
busy = true;
|
|
184
|
+
handlers = handlers.filter((handler) => handler.id !== selectedHandler.id);
|
|
185
|
+
executeAction(selectedHandler).then(() => (busy = false));
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
processHandlers();
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* If the CloseWatcher is defined then
|
|
192
|
+
* we don't want to also listen for the native
|
|
193
|
+
* backbutton event otherwise we may get duplicate
|
|
194
|
+
* events firing.
|
|
195
|
+
*/
|
|
196
|
+
if (shouldUseCloseWatcher()) {
|
|
197
|
+
let watcher;
|
|
198
|
+
const configureWatcher = () => {
|
|
199
|
+
watcher === null || watcher === void 0 ? void 0 : watcher.destroy();
|
|
200
|
+
watcher = new win.CloseWatcher();
|
|
201
|
+
/**
|
|
202
|
+
* Once a close request happens
|
|
203
|
+
* the watcher gets destroyed.
|
|
204
|
+
* As a result, we need to re-configure
|
|
205
|
+
* the watcher so we can respond to other
|
|
206
|
+
* close requests.
|
|
207
|
+
*/
|
|
208
|
+
watcher.onclose = () => {
|
|
209
|
+
backButtonCallback();
|
|
210
|
+
configureWatcher();
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
configureWatcher();
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
doc.addEventListener('backbutton', backButtonCallback);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
220
|
+
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
221
|
+
|
|
222
|
+
const hardwareBackButton = /*#__PURE__*/Object.freeze({
|
|
223
|
+
__proto__: null,
|
|
224
|
+
shouldUseCloseWatcher: shouldUseCloseWatcher,
|
|
225
|
+
blockHardwareBackButton: blockHardwareBackButton,
|
|
226
|
+
startHardwareBackButton: startHardwareBackButton,
|
|
227
|
+
OVERLAY_BACK_BUTTON_PRIORITY: OVERLAY_BACK_BUTTON_PRIORITY,
|
|
228
|
+
MENU_BACK_BUTTON_PRIORITY: MENU_BACK_BUTTON_PRIORITY
|
|
229
|
+
});
|
|
230
|
+
|
|
81
231
|
const getPlatforms = (win) => setupPlatforms(win);
|
|
82
232
|
const isPlatform = (winOrPlatform, platform) => {
|
|
83
233
|
if (typeof winOrPlatform === 'string') {
|
|
@@ -171,6 +321,33 @@ let defaultMode;
|
|
|
171
321
|
const getIonMode = (ref) => {
|
|
172
322
|
return (ref && getMode(ref)) || defaultMode;
|
|
173
323
|
};
|
|
324
|
+
const rIC = (callback) => {
|
|
325
|
+
if ('requestIdleCallback' in window) {
|
|
326
|
+
window.requestIdleCallback(callback);
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
setTimeout(callback, 32);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
const needInputShims = () => {
|
|
333
|
+
/**
|
|
334
|
+
* iOS always needs input shims
|
|
335
|
+
*/
|
|
336
|
+
const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
|
|
337
|
+
if (needsShimsIOS) {
|
|
338
|
+
return true;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Android only needs input shims when running
|
|
342
|
+
* in the browser and only if the browser is using the
|
|
343
|
+
* new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
|
|
344
|
+
*/
|
|
345
|
+
const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
|
|
346
|
+
if (isAndroidMobileWeb) {
|
|
347
|
+
return true;
|
|
348
|
+
}
|
|
349
|
+
return false;
|
|
350
|
+
};
|
|
174
351
|
const initialize = (userConfig = {}) => {
|
|
175
352
|
if (typeof window === 'undefined') {
|
|
176
353
|
return;
|
|
@@ -226,6 +403,46 @@ const initialize = (userConfig = {}) => {
|
|
|
226
403
|
}
|
|
227
404
|
return defaultMode;
|
|
228
405
|
});
|
|
406
|
+
// `IonApp` code
|
|
407
|
+
// ----------------------------------------------
|
|
408
|
+
if (Build.isBrowser) {
|
|
409
|
+
rIC(async () => {
|
|
410
|
+
const isHybrid = isPlatform(window, 'hybrid');
|
|
411
|
+
if (!config.getBoolean('_testing')) {
|
|
412
|
+
import('./index7.js').then((module) => module.startTapClick(config));
|
|
413
|
+
}
|
|
414
|
+
if (config.getBoolean('statusTap', isHybrid)) {
|
|
415
|
+
import('./status-tap.js').then((module) => module.startStatusTap());
|
|
416
|
+
}
|
|
417
|
+
if (config.getBoolean('inputShims', needInputShims())) {
|
|
418
|
+
/**
|
|
419
|
+
* needInputShims() ensures that only iOS and Android
|
|
420
|
+
* platforms proceed into this block.
|
|
421
|
+
*/
|
|
422
|
+
const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
423
|
+
import('./input-shims.js').then((module) => module.startInputShims(config, platform));
|
|
424
|
+
}
|
|
425
|
+
const hardwareBackButtonModule = await Promise.resolve().then(function () { return hardwareBackButton; });
|
|
426
|
+
const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();
|
|
427
|
+
if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {
|
|
428
|
+
hardwareBackButtonModule.startHardwareBackButton();
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
/**
|
|
432
|
+
* If an app sets hardwareBackButton: false and experimentalCloseWatcher: true
|
|
433
|
+
* then the close watcher will not be used.
|
|
434
|
+
*/
|
|
435
|
+
if (shouldUseCloseWatcher()) {
|
|
436
|
+
printIonWarning('experimentalCloseWatcher was set to `true`, but hardwareBackButton was set to `false`. Both config options must be `true` for the Close Watcher API to be used.');
|
|
437
|
+
}
|
|
438
|
+
hardwareBackButtonModule.blockHardwareBackButton();
|
|
439
|
+
}
|
|
440
|
+
if (typeof window !== 'undefined') {
|
|
441
|
+
import('./keyboard2.js').then((module) => module.startKeyboardAssist(window));
|
|
442
|
+
}
|
|
443
|
+
import('./focus-visible.js').then((module) => module.getOrInitFocusVisibleUtility());
|
|
444
|
+
});
|
|
445
|
+
}
|
|
229
446
|
};
|
|
230
447
|
|
|
231
|
-
export { isPlatform as a, getIonMode as b, config as c, getPlatforms as g, initialize as i };
|
|
448
|
+
export { MENU_BACK_BUTTON_PRIORITY as M, OVERLAY_BACK_BUTTON_PRIORITY as O, isPlatform as a, getIonMode as b, config as c, doc as d, printIonError as e, printRequiredElementError as f, getPlatforms as g, initialize as i, printIonWarning as p, shouldUseCloseWatcher as s, win as w };
|
package/components/item.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { d as inheritAttributes, r as raf } from './helpers.js';
|
|
6
6
|
import { h as hostContext, c as createColorClasses, o as openURL } from './theme.js';
|
|
7
|
-
import { f as chevronForward } from './
|
|
7
|
+
import { f as chevronForward } from './index5.js';
|
|
8
8
|
import { b as getIonMode } from './ionic-global.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
10
10
|
import { d as defineCustomElement$1 } from './ripple-effect.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { w as win, d as doc } from './
|
|
4
|
+
import { w as win, d as doc } from './ionic-global.js';
|
|
5
5
|
import { K as Keyboard, a as KeyboardResize } from './keyboard.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -26,7 +26,7 @@ const getResizeContainer = (resizeMode) => {
|
|
|
26
26
|
* on that. In the event `ion-app` is not available then
|
|
27
27
|
* we can fall back to `body`.
|
|
28
28
|
*/
|
|
29
|
-
const ionApp = doc.querySelector('ion-app');
|
|
29
|
+
const ionApp = doc.querySelector('ion-app, .ion-app');
|
|
30
30
|
return ionApp !== null && ionApp !== void 0 ? ionApp : doc.body;
|
|
31
31
|
};
|
|
32
32
|
/**
|
package/components/overlays.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { d as doc } from './
|
|
4
|
+
import { O as OVERLAY_BACK_BUTTON_PRIORITY, s as shouldUseCloseWatcher, b as getIonMode, c as config, d as doc, p as printIonWarning } from './ionic-global.js';
|
|
5
5
|
import { f as focusVisibleElement, c as componentOnReady, a as addEventListener, b as removeEventListener, g as getElementRoot } from './helpers.js';
|
|
6
|
-
import { OVERLAY_BACK_BUTTON_PRIORITY, shouldUseCloseWatcher } from './hardware-back-button.js';
|
|
7
|
-
import { b as getIonMode, c as config } from './ionic-global.js';
|
|
8
6
|
import { C as CoreDelegate } from './framework-delegate.js';
|
|
9
7
|
import { B as BACKDROP_NO_SCROLL } from './gesture-controller.js';
|
|
10
|
-
import { p as printIonWarning } from './index6.js';
|
|
11
8
|
|
|
12
9
|
/**
|
|
13
10
|
* This query string selects elements that
|
|
@@ -652,7 +649,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
652
649
|
return true;
|
|
653
650
|
};
|
|
654
651
|
const getAppRoot = (doc) => {
|
|
655
|
-
return doc.querySelector('ion-app') || doc.body;
|
|
652
|
+
return doc.querySelector('ion-app, .ion-app') || doc.body;
|
|
656
653
|
};
|
|
657
654
|
const overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {
|
|
658
655
|
// Make overlay visible in case it's hidden
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { d as doc } from './
|
|
5
|
+
import { a as isPlatform, b as getIonMode, d as doc } from './ionic-global.js';
|
|
6
6
|
import { r as raf, g as getElementRoot } from './helpers.js';
|
|
7
7
|
import { a as hapticSelectionStart, b as hapticSelectionChanged, h as hapticSelectionEnd } from './haptic.js';
|
|
8
|
-
import { a as isPlatform, b as getIonMode } from './ionic-global.js';
|
|
9
8
|
import { c as createColorClasses } from './theme.js';
|
|
10
9
|
|
|
11
10
|
const pickerColumnCss = ":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;height:200px;font-size:22px;text-align:center}.assistive-focusable{left:0;right:0;top:0;bottom:0;position:absolute;z-index:1;pointer-events:none}.assistive-focusable:focus{outline:none}.picker-opts{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-width:26px;max-height:200px;outline:none;text-align:inherit;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none}.picker-item-empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.picker-opts::-webkit-scrollbar{display:none}::slotted(ion-picker-column-option){display:block;scroll-snap-align:center}.picker-item-empty,:host(:not([disabled])) ::slotted(ion-picker-column-option.option-disabled){scroll-snap-align:none}::slotted([slot=prefix]),::slotted([slot=suffix]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::slotted([slot=prefix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:end;justify-content:end}::slotted([slot=suffix]){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:0;-ms-flex-pack:start;justify-content:start}:host(.picker-column-disabled) .picker-opts{overflow-y:hidden}:host(.picker-column-disabled) ::slotted(ion-picker-column-option){cursor:default;opacity:0.4;pointer-events:none}@media (any-hover: hover){:host(:focus) .picker-opts{outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}";
|
package/components/popover.js
CHANGED
|
@@ -6,8 +6,7 @@ import { B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, n
|
|
|
6
6
|
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate.js';
|
|
7
7
|
import { r as raf, g as getElementRoot, a as addEventListener, j as hasLazyBuild } from './helpers.js';
|
|
8
8
|
import { c as createLockController } from './lock-controller.js';
|
|
9
|
-
import { p as printIonWarning } from './
|
|
10
|
-
import { b as getIonMode, a as isPlatform } from './ionic-global.js';
|
|
9
|
+
import { p as printIonWarning, b as getIonMode, a as isPlatform } from './ionic-global.js';
|
|
11
10
|
import { g as getClassMap } from './theme.js';
|
|
12
11
|
import { e as deepReady, w as waitForMount } from './index2.js';
|
|
13
12
|
import { c as createAnimation } from './animation.js';
|
package/components/status-tap.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { readTask, writeTask } from '@stencil/core/internal/client';
|
|
5
|
-
import { a as findClosestIonContent, s as scrollToTop } from './
|
|
5
|
+
import { a as findClosestIonContent, s as scrollToTop } from './index6.js';
|
|
6
6
|
import { c as componentOnReady } from './helpers.js';
|
|
7
7
|
|
|
8
8
|
const startStatusTap = () => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
7
7
|
|
|
8
8
|
let animationPrefix;
|
|
9
9
|
const getAnimationPrefix = (el) => {
|
|
@@ -66,7 +66,7 @@ const createAnimation = (animationId) => {
|
|
|
66
66
|
const _afterAddWriteFunctions = [];
|
|
67
67
|
const webAnimations = [];
|
|
68
68
|
const supportsAnimationEffect = typeof AnimationEffect === 'function' ||
|
|
69
|
-
(
|
|
69
|
+
(ionicGlobal.win !== undefined && typeof ionicGlobal.win.AnimationEffect === 'function');
|
|
70
70
|
/**
|
|
71
71
|
* This is a feature detection for Web Animations.
|
|
72
72
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
const index$1 = require('./index-b9e25ecd.js');
|
|
7
|
-
const haptic = require('./haptic-
|
|
7
|
+
const haptic = require('./haptic-2bdd48c1.js');
|
|
8
8
|
const index = require('./index-ee07ed59.js');
|
|
9
9
|
|
|
10
10
|
const createButtonActiveGesture = (el, isButton) => {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
7
7
|
|
|
8
8
|
const getCapacitor = () => {
|
|
9
|
-
if (
|
|
10
|
-
return
|
|
9
|
+
if (ionicGlobal.win !== undefined) {
|
|
10
|
+
return ionicGlobal.win.Capacitor;
|
|
11
11
|
}
|
|
12
12
|
return undefined;
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns true if the selected day is equal to the reference day
|
|
@@ -37,7 +37,7 @@ const warnIfValueOutOfBounds = (value, min, max) => {
|
|
|
37
37
|
const valueArray = Array.isArray(value) ? value : [value];
|
|
38
38
|
for (const val of valueArray) {
|
|
39
39
|
if ((min !== undefined && isBefore(val, min)) || (max !== undefined && isAfter(val, max))) {
|
|
40
|
-
|
|
40
|
+
ionicGlobal.printIonWarning('The value provided to ion-datetime is out of bounds.\n\n' +
|
|
41
41
|
`Min: ${JSON.stringify(min)}\n` +
|
|
42
42
|
`Max: ${JSON.stringify(max)}\n` +
|
|
43
43
|
`Value: ${JSON.stringify(value)}`);
|
|
@@ -254,7 +254,7 @@ function parseDate(val) {
|
|
|
254
254
|
}
|
|
255
255
|
if (parse === null) {
|
|
256
256
|
// wasn't able to parse the ISO datetime
|
|
257
|
-
|
|
257
|
+
ionicGlobal.printIonWarning(`Unable to parse date string: ${val}. Please provide a valid ISO 8601 datetime string.`);
|
|
258
258
|
return undefined;
|
|
259
259
|
}
|
|
260
260
|
// ensure all the parse values exist with at least 0
|
|
@@ -19,6 +19,13 @@ const FOCUS_KEYS = [
|
|
|
19
19
|
'Home',
|
|
20
20
|
'End',
|
|
21
21
|
];
|
|
22
|
+
let focusVisibleUtility = null;
|
|
23
|
+
const getOrInitFocusVisibleUtility = () => {
|
|
24
|
+
if (!focusVisibleUtility) {
|
|
25
|
+
focusVisibleUtility = startFocusVisible();
|
|
26
|
+
}
|
|
27
|
+
return focusVisibleUtility;
|
|
28
|
+
};
|
|
22
29
|
const startFocusVisible = (rootEl) => {
|
|
23
30
|
let currentFocus = [];
|
|
24
31
|
let keyboardMode = true;
|
|
@@ -74,4 +81,5 @@ const startFocusVisible = (rootEl) => {
|
|
|
74
81
|
};
|
|
75
82
|
};
|
|
76
83
|
|
|
84
|
+
exports.getOrInitFocusVisibleUtility = getOrInitFocusVisibleUtility;
|
|
77
85
|
exports.startFocusVisible = startFocusVisible;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const helpers = require('./helpers-
|
|
6
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
7
7
|
|
|
8
8
|
// TODO(FW-2832): types
|
|
9
9
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
@@ -104,7 +104,7 @@ const CoreDelegate = () => {
|
|
|
104
104
|
* Get the root of the app and
|
|
105
105
|
* add the overlay there.
|
|
106
106
|
*/
|
|
107
|
-
const app = document.querySelector('ion-app') || document.body;
|
|
107
|
+
const app = document.querySelector('ion-app, .ion-app') || document.body;
|
|
108
108
|
/**
|
|
109
109
|
* Create a placeholder comment so that
|
|
110
110
|
* we can return this component to where
|
|
@@ -243,7 +243,7 @@ const focusVisibleElement = (el) => {
|
|
|
243
243
|
* which will let us explicitly set the elements to focus.
|
|
244
244
|
*/
|
|
245
245
|
if (el.classList.contains('ion-focusable')) {
|
|
246
|
-
const app = el.closest('ion-app');
|
|
246
|
+
const app = el.closest('ion-app, .ion-app');
|
|
247
247
|
if (app) {
|
|
248
248
|
app.setFocus([el]);
|
|
249
249
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const helpers = require('./helpers-
|
|
7
|
-
const
|
|
6
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
7
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
8
8
|
|
|
9
9
|
const ION_CONTENT_TAG_NAME = 'ION-CONTENT';
|
|
10
10
|
const ION_CONTENT_ELEMENT_SELECTOR = 'ion-content';
|
|
@@ -92,7 +92,7 @@ const scrollByPoint = (el, x, y, durationMs) => {
|
|
|
92
92
|
* within either the `ion-content` selector or the `.ion-content-scroll-host` class.
|
|
93
93
|
*/
|
|
94
94
|
const printIonContentErrorMsg = (el) => {
|
|
95
|
-
return
|
|
95
|
+
return ionicGlobal.printRequiredElementError(el, ION_CONTENT_ELEMENT_SELECTOR);
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
* Several components in Ionic need to prevent scrolling
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const ionicGlobal = require('./ionic-global-
|
|
7
|
-
const index
|
|
8
|
-
const
|
|
9
|
-
const helpers = require('./helpers-afaa9001.js');
|
|
6
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
7
|
+
const index = require('./index-b9e25ecd.js');
|
|
8
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
10
9
|
|
|
11
10
|
const LIFECYCLE_WILL_ENTER = 'ionViewWillEnter';
|
|
12
11
|
const LIFECYCLE_DID_ENTER = 'ionViewDidEnter';
|
|
@@ -103,7 +102,7 @@ const createFocusController = () => {
|
|
|
103
102
|
}
|
|
104
103
|
break;
|
|
105
104
|
default:
|
|
106
|
-
|
|
105
|
+
ionicGlobal.printIonWarning(`Unrecognized focus manager priority value ${priority}`);
|
|
107
106
|
break;
|
|
108
107
|
}
|
|
109
108
|
}
|
|
@@ -122,13 +121,13 @@ const createFocusController = () => {
|
|
|
122
121
|
};
|
|
123
122
|
const LAST_FOCUS = 'ion-last-focus';
|
|
124
123
|
|
|
125
|
-
const iosTransitionAnimation = () => Promise.resolve().then(function () { return require('./ios.transition-
|
|
126
|
-
const mdTransitionAnimation = () => Promise.resolve().then(function () { return require('./md.transition-
|
|
124
|
+
const iosTransitionAnimation = () => Promise.resolve().then(function () { return require('./ios.transition-1ee349d9.js'); });
|
|
125
|
+
const mdTransitionAnimation = () => Promise.resolve().then(function () { return require('./md.transition-719e7e1c.js'); });
|
|
127
126
|
const focusController = createFocusController();
|
|
128
127
|
// TODO(FW-2832): types
|
|
129
128
|
const transition = (opts) => {
|
|
130
129
|
return new Promise((resolve, reject) => {
|
|
131
|
-
index
|
|
130
|
+
index.writeTask(() => {
|
|
132
131
|
beforeTransition(opts);
|
|
133
132
|
runTransition(opts).then((result) => {
|
|
134
133
|
if (result.animation) {
|
|
@@ -169,7 +168,7 @@ const beforeTransition = (opts) => {
|
|
|
169
168
|
};
|
|
170
169
|
const runTransition = async (opts) => {
|
|
171
170
|
const animationBuilder = await getAnimationBuilder(opts);
|
|
172
|
-
const ani = animationBuilder && index
|
|
171
|
+
const ani = animationBuilder && index.Build.isBrowser ? animation(animationBuilder, opts) : noAnimation(opts); // fast path for no animation
|
|
173
172
|
return ani;
|
|
174
173
|
};
|
|
175
174
|
const afterTransition = (opts) => {
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
const helpers = require('./helpers-
|
|
6
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
7
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
8
|
+
require('./index-b9e25ecd.js');
|
|
8
9
|
|
|
9
10
|
const startTapClick = (config) => {
|
|
10
|
-
if (
|
|
11
|
+
if (ionicGlobal.doc === undefined) {
|
|
11
12
|
return;
|
|
12
13
|
}
|
|
13
14
|
let lastActivated = 0;
|
|
@@ -110,9 +111,9 @@ const startTapClick = (config) => {
|
|
|
110
111
|
active.classList.remove(ACTIVATED);
|
|
111
112
|
}
|
|
112
113
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
ionicGlobal.doc.addEventListener('ionGestureCaptured', cancelActive);
|
|
115
|
+
ionicGlobal.doc.addEventListener('pointerdown', pointerDown, true);
|
|
116
|
+
ionicGlobal.doc.addEventListener('pointerup', pointerUp, true);
|
|
116
117
|
/**
|
|
117
118
|
* Tap click effects such as the ripple effect should
|
|
118
119
|
* not happen when scrolling. For example, if a user scrolls
|
|
@@ -125,7 +126,7 @@ const startTapClick = (config) => {
|
|
|
125
126
|
* starts, so this lets us avoid having to listen for
|
|
126
127
|
* ion-content's scroll events.
|
|
127
128
|
*/
|
|
128
|
-
|
|
129
|
+
ionicGlobal.doc.addEventListener('pointercancel', cancelActive, true);
|
|
129
130
|
};
|
|
130
131
|
// TODO(FW-2832): type
|
|
131
132
|
const getActivatableTarget = (ev) => {
|
|
@@ -3,12 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const helpers = require('./helpers-afaa9001.js');
|
|
10
|
-
const ionicGlobal = require('./ionic-global-86430f67.js');
|
|
11
|
-
const animation = require('./animation-b4fdf128.js');
|
|
6
|
+
const ionicGlobal = require('./ionic-global-7b45fd73.js');
|
|
7
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
8
|
+
const animation = require('./animation-1b5076f1.js');
|
|
12
9
|
|
|
13
10
|
/**
|
|
14
11
|
* baseAnimation
|
|
@@ -170,7 +167,7 @@ const createMenuController = () => {
|
|
|
170
167
|
const menuRefs = menus.filter((m) => m.side === menu && !m.disabled);
|
|
171
168
|
if (menuRefs.length >= 1) {
|
|
172
169
|
if (menuRefs.length > 1 && logOnMultipleSideMenus) {
|
|
173
|
-
|
|
170
|
+
ionicGlobal.printIonWarning(`menuController queried for a menu on the "${menu}" side, but ${menuRefs.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`, menuRefs.map((m) => m.el));
|
|
174
171
|
}
|
|
175
172
|
return menuRefs[0].el;
|
|
176
173
|
}
|
|
@@ -179,7 +176,7 @@ const createMenuController = () => {
|
|
|
179
176
|
const sideMenuRefs = menus.filter((m) => m.side === menu);
|
|
180
177
|
if (sideMenuRefs.length >= 1) {
|
|
181
178
|
if (sideMenuRefs.length > 1 && logOnMultipleSideMenus) {
|
|
182
|
-
|
|
179
|
+
ionicGlobal.printIonWarning(`menuController queried for a menu on the "${menu}" side, but ${sideMenuRefs.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`, sideMenuRefs.map((m) => m.el));
|
|
183
180
|
}
|
|
184
181
|
return sideMenuRefs[0].el;
|
|
185
182
|
}
|
|
@@ -275,10 +272,10 @@ const createMenuController = () => {
|
|
|
275
272
|
registerAnimation('reveal', menuRevealAnimation);
|
|
276
273
|
registerAnimation('push', menuPushAnimation);
|
|
277
274
|
registerAnimation('overlay', menuOverlayAnimation);
|
|
278
|
-
|
|
275
|
+
ionicGlobal.doc === null || ionicGlobal.doc === void 0 ? void 0 : ionicGlobal.doc.addEventListener('ionBackButton', (ev) => {
|
|
279
276
|
const openMenu = _getOpenSync();
|
|
280
277
|
if (openMenu) {
|
|
281
|
-
ev.detail.register(
|
|
278
|
+
ev.detail.register(ionicGlobal.MENU_BACK_BUTTON_PRIORITY, () => {
|
|
282
279
|
return openMenu.close();
|
|
283
280
|
});
|
|
284
281
|
}
|