@ionic/core 8.3.1-dev.11726258029.1014159b → 8.3.1-dev.11727904181.1070a434
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/alert.js +2 -1
- package/components/animation.js +1 -1
- package/components/button.js +1 -2
- package/components/capacitor.js +1 -1
- package/components/config2.js +79 -0
- package/components/data.js +1 -1
- package/components/focus-visible.js +8 -1
- package/components/framework-delegate.js +3 -1
- package/components/helpers.js +1 -1
- package/components/index2.js +2 -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 +3 -2
- package/components/ion-app.js +7 -75
- package/components/ion-back-button.js +3 -2
- 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-content.js +2 -1
- 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-loading.js +2 -1
- package/components/ion-menu-button.js +3 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -4
- package/components/ion-nav.js +2 -2
- package/components/ion-picker-legacy.js +1 -2
- package/components/ion-progress-bar.js +2 -1
- package/components/ion-range.js +2 -3
- package/components/ion-refresher-content.js +3 -2
- 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-router-outlet.js +2 -1
- package/components/ion-searchbar.js +3 -2
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +2 -1
- package/components/ion-tab-button.js +2 -1
- package/components/ion-toast.js +2 -3
- package/components/ion-toggle.js +3 -2
- package/components/ionic-global.js +215 -72
- package/components/item.js +1 -1
- package/components/keyboard-controller.js +2 -2
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +3 -5
- package/components/picker-column.js +1 -2
- package/components/popover.js +1 -2
- package/components/spinner.js +2 -1
- package/components/status-tap.js +1 -1
- package/dist/cjs/{animation-b4fdf128.js → animation-79f60b24.js} +2 -2
- package/dist/cjs/{app-globals-9d795e44.js → app-globals-da858d53.js} +1 -1
- package/dist/cjs/{button-active-4115dc12.js → button-active-d92fdc20.js} +2 -2
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-6d32aa8f.js} +3 -3
- package/dist/cjs/config-aff4ff52.js +84 -0
- package/dist/cjs/{data-21dc0f81.js → data-5e41413c.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-dd8c8308.js} +4 -2
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-48302ce8.js} +1 -1
- package/dist/cjs/{helpers-afaa9001.js → helpers-acd6c477.js} +1 -1
- package/dist/cjs/{index-248835d7.js → index-36089f7c.js} +7 -10
- package/dist/cjs/{index-5b6a7459.js → index-4c1435d8.js} +3 -3
- package/dist/cjs/{index-42dd5e74.js → index-b9e25ecd.js} +2 -8
- package/dist/cjs/{index-9509ecad.js → index-c66a0972.js} +9 -7
- package/dist/cjs/{index-44dacdce.js → index-e391e4f0.js} +12 -12
- package/dist/cjs/index.cjs.js +11 -13
- package/dist/cjs/{input-shims-9e59ef62.js → input-shims-6e96b5d0.js} +18 -17
- package/dist/cjs/{input.utils-611cde0b.js → input.utils-3f4f0242.js} +4 -5
- package/dist/cjs/ion-accordion_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -12
- package/dist/cjs/ion-alert.cjs.entry.js +13 -15
- package/dist/cjs/ion-app_8.cjs.entry.js +36 -105
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +8 -7
- package/dist/cjs/ion-backdrop.cjs.entry.js +3 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-button_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-card_5.cjs.entry.js +4 -3
- package/dist/cjs/ion-checkbox.cjs.entry.js +4 -3
- package/dist/cjs/ion-chip.cjs.entry.js +3 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +9 -9
- package/dist/cjs/ion-datetime_3.cjs.entry.js +97 -99
- package/dist/cjs/ion-fab_3.cjs.entry.js +4 -3
- package/dist/cjs/ion-img.cjs.entry.js +4 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +9 -9
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +8 -8
- package/dist/cjs/ion-input.cjs.entry.js +6 -7
- package/dist/cjs/ion-item-option_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-item_8.cjs.entry.js +5 -4
- package/dist/cjs/ion-loading.cjs.entry.js +11 -13
- package/dist/cjs/ion-menu_3.cjs.entry.js +12 -14
- package/dist/cjs/ion-modal.cjs.entry.js +52 -54
- package/dist/cjs/ion-nav_2.cjs.entry.js +10 -10
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +7 -7
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +11 -13
- package/dist/cjs/ion-progress-bar.cjs.entry.js +5 -4
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-range.cjs.entry.js +10 -10
- package/dist/cjs/ion-refresher_2.cjs.entry.js +14 -15
- package/dist/cjs/ion-reorder_2.cjs.entry.js +7 -8
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +4 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +6 -5
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -9
- package/dist/cjs/ion-spinner.cjs.entry.js +5 -4
- package/dist/cjs/ion-split-pane.cjs.entry.js +3 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +8 -8
- package/dist/cjs/ion-tab_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-text.cjs.entry.js +3 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +6 -7
- package/dist/cjs/ion-toast.cjs.entry.js +35 -37
- package/dist/cjs/ion-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ionic-global-e4b78f51.js +387 -0
- package/dist/cjs/ionic.cjs.js +5 -4
- package/dist/cjs/{ios.transition-c28ff3cc.js → ios.transition-ecdbe79a.js} +6 -7
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-5494d9e7.js} +5 -3
- package/dist/cjs/{keyboard-0272231f.js → keyboard-9c8c3373.js} +1 -1
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-3534c452.js} +9 -9
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{md.transition-01295b30.js → md.transition-a2dbb62b.js} +6 -7
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-b0da1dbc.js} +4 -4
- package/dist/cjs/{overlays-76ac42e7.js → overlays-2847add7.js} +17 -19
- package/dist/cjs/{status-tap-75c3a35d.js → status-tap-8d61febd.js} +5 -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 +3 -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-d5c468e5.js} +1 -1
- package/dist/esm/{app-globals-cef8aa6d.js → app-globals-b335b996.js} +1 -1
- package/dist/esm/{button-active-6700b8ee.js → button-active-f09c355a.js} +2 -2
- package/dist/esm/{capacitor-59395cbd.js → capacitor-1c6a7fef.js} +1 -1
- package/dist/esm/config-84eb9670.js +79 -0
- package/dist/esm/{data-ae11fd43.js → data-19c43db4.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-99a12a5b.js} +4 -2
- package/dist/esm/{haptic-ac164e4c.js → haptic-b7d0305a.js} +1 -1
- package/dist/esm/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
- package/dist/esm/{index-deb1a83e.js → index-36b10f9a.js} +3 -6
- package/dist/esm/{index-42907296.js → index-39f85469.js} +6 -6
- package/dist/esm/{index-3ed04e6d.js → index-4e02bb5d.js} +2 -8
- package/{components/index9.js → dist/esm/index-83a2d51b.js} +4 -2
- package/dist/esm/{index-5cc724f3.js → index-c2e9334e.js} +2 -2
- package/dist/esm/index.js +11 -13
- package/dist/esm/{input-shims-0314bbe5.js → input-shims-876f0204.js} +7 -6
- package/dist/esm/{input.utils-09c71bc7.js → input.utils-26068718.js} +2 -3
- package/dist/esm/ion-accordion_2.entry.js +4 -4
- package/dist/esm/ion-action-sheet.entry.js +10 -12
- package/dist/esm/ion-alert.entry.js +10 -12
- package/dist/esm/ion-app_8.entry.js +23 -92
- package/dist/esm/ion-avatar_3.entry.js +3 -2
- package/dist/esm/ion-back-button.entry.js +4 -3
- package/dist/esm/ion-backdrop.entry.js +3 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +4 -3
- package/dist/esm/ion-button_2.entry.js +4 -4
- package/dist/esm/ion-card_5.entry.js +4 -3
- package/dist/esm/ion-checkbox.entry.js +4 -3
- package/dist/esm/ion-chip.entry.js +3 -2
- package/dist/esm/ion-col_3.entry.js +3 -2
- package/dist/esm/ion-datetime-button.entry.js +5 -5
- package/dist/esm/ion-datetime_3.entry.js +11 -13
- package/dist/esm/ion-fab_3.entry.js +4 -3
- package/dist/esm/ion-img.entry.js +4 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
- package/dist/esm/ion-input-password-toggle.entry.js +3 -3
- package/dist/esm/ion-input.entry.js +6 -7
- package/dist/esm/ion-item-option_3.entry.js +5 -5
- package/dist/esm/ion-item_8.entry.js +4 -3
- package/dist/esm/ion-loading.entry.js +7 -9
- package/dist/esm/ion-menu_3.entry.js +8 -10
- package/dist/esm/ion-modal.entry.js +12 -14
- package/dist/esm/ion-nav_2.entry.js +7 -7
- package/dist/esm/ion-picker-column-option.entry.js +4 -3
- package/dist/esm/ion-picker-column.entry.js +6 -6
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +8 -10
- package/dist/esm/ion-progress-bar.entry.js +4 -3
- package/dist/esm/ion-radio_2.entry.js +4 -3
- package/dist/esm/ion-range.entry.js +5 -5
- package/dist/esm/ion-refresher_2.entry.js +8 -9
- package/dist/esm/ion-reorder_2.entry.js +7 -8
- package/dist/esm/ion-ripple-effect.entry.js +3 -2
- package/dist/esm/ion-route_4.entry.js +4 -3
- package/dist/esm/ion-searchbar.entry.js +4 -3
- package/dist/esm/ion-segment_2.entry.js +4 -3
- package/dist/esm/ion-select_3.entry.js +7 -9
- package/dist/esm/ion-spinner.entry.js +3 -2
- package/dist/esm/ion-split-pane.entry.js +3 -2
- package/dist/esm/ion-tab-bar_2.entry.js +7 -7
- package/dist/esm/ion-tab_2.entry.js +4 -3
- package/dist/esm/ion-text.entry.js +3 -2
- package/dist/esm/ion-textarea.entry.js +6 -7
- package/dist/esm/ion-toast.entry.js +7 -9
- package/dist/esm/ion-toggle.entry.js +6 -6
- package/dist/esm/ionic-global-1b15603f.js +374 -0
- package/dist/esm/ionic.js +6 -5
- package/dist/esm/{ios.transition-903646a5.js → ios.transition-18317bbc.js} +6 -7
- package/dist/esm/{keyboard-73175e24.js → keyboard-8fb7a65a.js} +1 -1
- package/dist/esm/{keyboard-52278bd7.js → keyboard-bdec136d.js} +5 -3
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-12d10050.js} +3 -3
- package/dist/esm/loader.js +5 -4
- package/dist/esm/{md.transition-92c7f8a6.js → md.transition-8661f3c2.js} +6 -7
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-39833b21.js} +2 -2
- package/dist/esm/{overlays-d1a2f8a8.js → overlays-5d12569d.js} +5 -7
- package/dist/esm/{status-tap-97e323a9.js → status-tap-e6919a78.js} +5 -4
- package/dist/esm/{swipe-back-e5394307.js → swipe-back-1c5e6095.js} +1 -1
- package/dist/esm-es5/animation-d5c468e5.js +4 -0
- package/dist/esm-es5/app-globals-b335b996.js +4 -0
- package/dist/esm-es5/{button-active-6700b8ee.js → button-active-f09c355a.js} +1 -1
- package/dist/esm-es5/capacitor-1c6a7fef.js +4 -0
- package/dist/esm-es5/config-84eb9670.js +4 -0
- package/dist/esm-es5/data-19c43db4.js +4 -0
- package/dist/esm-es5/focus-visible-501aff19.js +4 -0
- package/dist/esm-es5/framework-delegate-99a12a5b.js +4 -0
- package/dist/esm-es5/{haptic-ac164e4c.js → haptic-b7d0305a.js} +1 -1
- package/dist/esm-es5/{helpers-da915de8.js → helpers-b96cdeb7.js} +1 -1
- package/dist/esm-es5/index-36b10f9a.js +4 -0
- package/dist/esm-es5/index-39f85469.js +4 -0
- package/dist/esm-es5/index-4e02bb5d.js +5 -0
- package/dist/esm-es5/{index-79b30591.js → index-83a2d51b.js} +1 -1
- package/dist/esm-es5/index-c2e9334e.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-876f0204.js +4 -0
- package/dist/esm-es5/input.utils-26068718.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-1b15603f.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-18317bbc.js +4 -0
- package/dist/esm-es5/{keyboard-73175e24.js → keyboard-8fb7a65a.js} +1 -1
- package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-bdec136d.js} +1 -1
- package/dist/esm-es5/keyboard-controller-12d10050.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-8661f3c2.js +4 -0
- package/dist/esm-es5/notch-controller-39833b21.js +4 -0
- package/dist/esm-es5/overlays-5d12569d.js +4 -0
- package/dist/esm-es5/status-tap-e6919a78.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-99859f95.entry.js → p-09854f4b.entry.js} +1 -1
- package/dist/ionic/{p-4029255b.system.entry.js → p-0a89309d.system.entry.js} +1 -1
- package/dist/ionic/p-0b5267e0.entry.js +4 -0
- package/dist/ionic/{p-34b11c24.js → p-0b5401b5.js} +1 -1
- package/dist/ionic/p-0cdf3f2d.entry.js +4 -0
- package/dist/ionic/{p-abc5c0a4.system.entry.js → p-0fe43136.system.entry.js} +1 -1
- package/dist/ionic/p-11350afc.system.entry.js +4 -0
- package/dist/ionic/p-13a18cd1.entry.js +4 -0
- package/dist/ionic/{p-e8cc3bad.js → p-177c643a.js} +1 -1
- package/dist/ionic/p-17c019eb.system.js +4 -0
- package/dist/ionic/p-17cd5ba5.system.entry.js +4 -0
- package/dist/ionic/p-184ba459.system.entry.js +4 -0
- package/dist/ionic/p-1ec593ec.system.js +4 -0
- package/dist/ionic/p-1ff45220.system.js +4 -0
- package/dist/ionic/{p-c7e16491.js → p-20709fa2.js} +1 -1
- package/dist/ionic/p-22508aa1.system.entry.js +4 -0
- package/dist/ionic/p-22f10183.entry.js +4 -0
- package/dist/ionic/p-2388c346.entry.js +4 -0
- package/dist/ionic/p-23f5b42c.js +4 -0
- package/dist/ionic/p-2904da21.system.entry.js +4 -0
- package/dist/ionic/p-2a76429e.entry.js +4 -0
- package/dist/ionic/{p-192e07b1.system.entry.js → p-2d4c3128.system.entry.js} +1 -1
- package/dist/ionic/{p-b51e4004.js → p-2f5f9e37.js} +1 -1
- package/dist/ionic/p-33cc976b.system.js +4 -0
- package/dist/ionic/{p-5d5d5073.entry.js → p-341bd749.entry.js} +1 -1
- package/dist/ionic/p-344c665e.system.js +4 -0
- package/dist/ionic/p-37c86134.entry.js +4 -0
- package/dist/ionic/p-38244569.js +4 -0
- package/dist/ionic/p-3c1bc308.system.entry.js +4 -0
- package/dist/ionic/p-3d7c07b2.system.entry.js +4 -0
- package/dist/ionic/p-4188687b.js +4 -0
- package/dist/ionic/p-4459a66e.system.js +4 -0
- package/dist/ionic/p-450d0781.system.entry.js +4 -0
- package/dist/ionic/p-46787abb.system.js +4 -0
- package/dist/ionic/p-4713a52c.system.entry.js +4 -0
- package/dist/ionic/{p-f687573e.system.js → p-4791ab9e.system.js} +1 -1
- package/dist/ionic/p-47ce4a4b.entry.js +4 -0
- package/dist/ionic/p-487a3ae7.system.js +5 -0
- package/dist/ionic/p-49fb3aaf.js +4 -0
- package/dist/ionic/p-4b4bcb80.system.js +4 -0
- package/dist/ionic/p-4b528ed3.js +5 -0
- package/dist/ionic/p-4c1581a8.entry.js +4 -0
- package/dist/ionic/p-4c9b78f8.system.js +4 -0
- package/dist/ionic/p-4d85f5ea.js +4 -0
- package/dist/ionic/{p-3ad285e3.system.js → p-4e970f1c.system.js} +1 -1
- package/dist/ionic/p-4fce1c54.entry.js +4 -0
- package/dist/ionic/p-4feedef0.entry.js +4 -0
- package/dist/ionic/p-51f29267.system.entry.js +4 -0
- package/dist/ionic/p-5266cfc8.system.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-528e2d72.js} +1 -1
- package/dist/ionic/p-5348700b.entry.js +4 -0
- package/dist/ionic/p-536c3136.entry.js +4 -0
- package/dist/ionic/p-541f00c3.system.entry.js +4 -0
- package/dist/ionic/p-54cb772e.system.entry.js +4 -0
- package/dist/ionic/p-55dc854e.entry.js +4 -0
- package/dist/ionic/{p-14616c10.system.entry.js → p-56947de2.system.entry.js} +2 -2
- package/dist/ionic/p-574f568b.entry.js +4 -0
- package/dist/ionic/p-5bc27ad2.system.entry.js +4 -0
- package/dist/ionic/p-5ce35a03.js +4 -0
- package/dist/ionic/p-5e61ae2f.entry.js +4 -0
- package/dist/ionic/{p-2e5ee828.system.entry.js → p-64eb70c2.system.entry.js} +1 -1
- package/dist/ionic/p-656b9e5a.system.entry.js +4 -0
- package/dist/ionic/p-672431ae.entry.js +4 -0
- package/dist/ionic/p-6874be0f.js +4 -0
- package/dist/ionic/p-689d58a0.entry.js +4 -0
- package/dist/ionic/p-69746792.js +4 -0
- package/dist/ionic/p-6bf1b7c4.entry.js +4 -0
- package/dist/ionic/p-7071d7ca.js +4 -0
- package/dist/ionic/p-7163c868.system.entry.js +4 -0
- package/dist/ionic/p-721f704b.system.entry.js +4 -0
- package/dist/ionic/p-74da1bee.entry.js +4 -0
- package/dist/ionic/{p-30482ed4.system.js → p-7585d52f.system.js} +1 -1
- package/dist/ionic/p-76978bf3.system.entry.js +4 -0
- package/dist/ionic/{p-a93873de.system.js → p-76f6c195.system.js} +1 -1
- package/dist/ionic/p-7723bb75.system.entry.js +4 -0
- package/dist/ionic/p-77aab69d.js +4 -0
- package/dist/ionic/p-78d1ee98.system.entry.js +4 -0
- package/dist/ionic/p-7a8b6f72.entry.js +4 -0
- package/dist/ionic/p-7ab96568.entry.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-81fd74b8.js} +1 -1
- package/dist/ionic/p-878d8bbf.system.entry.js +4 -0
- package/dist/ionic/p-87a7b9ee.entry.js +4 -0
- package/dist/ionic/p-88a5925d.system.entry.js +4 -0
- package/dist/ionic/p-897fba2c.system.js +4 -0
- package/dist/ionic/{p-3447e604.system.entry.js → p-8d0a3bf5.system.entry.js} +1 -1
- package/dist/ionic/p-8f84ac87.system.entry.js +4 -0
- package/dist/ionic/p-901f2d60.system.entry.js +4 -0
- package/dist/ionic/p-92341215.system.js +4 -0
- package/dist/ionic/{p-1ca23ae9.system.entry.js → p-9538ca4d.system.entry.js} +2 -2
- package/dist/ionic/{p-d60342e3.js → p-95612c80.js} +1 -1
- package/dist/ionic/p-96ac6d73.system.js +4 -0
- package/dist/ionic/p-9a4236ab.entry.js +4 -0
- package/dist/ionic/p-9a8d7f70.entry.js +4 -0
- package/dist/ionic/p-9c1f23e6.system.entry.js +4 -0
- package/dist/ionic/p-9ce54ee5.entry.js +4 -0
- package/dist/ionic/p-9e4c3c31.system.entry.js +4 -0
- package/dist/ionic/p-9eb6c3e7.js +4 -0
- package/dist/ionic/p-9f05ff02.system.entry.js +4 -0
- package/dist/ionic/p-9f5e0684.system.js +4 -0
- package/dist/ionic/p-a013baec.entry.js +4 -0
- package/dist/ionic/p-a1d2be12.entry.js +4 -0
- package/dist/ionic/p-a44b565f.js +4 -0
- package/dist/ionic/p-a44dbc72.js +4 -0
- package/dist/ionic/p-a4f9181a.entry.js +4 -0
- package/dist/ionic/p-a5b8c4f3.entry.js +4 -0
- package/dist/ionic/p-a8a2a8a9.js +4 -0
- package/dist/ionic/p-a8cb7d8a.system.entry.js +4 -0
- package/dist/ionic/p-aaccafc3.entry.js +4 -0
- package/dist/ionic/p-aba574e0.system.entry.js +4 -0
- package/dist/ionic/p-ad074a8f.system.entry.js +4 -0
- package/dist/ionic/p-b321e219.system.entry.js +4 -0
- package/dist/ionic/{p-f36c9945.system.entry.js → p-b32203b0.system.entry.js} +2 -2
- package/dist/ionic/{p-9146695e.system.js → p-b3833aff.system.js} +1 -1
- package/dist/ionic/p-b3e99367.entry.js +4 -0
- package/dist/ionic/p-b6905606.entry.js +4 -0
- package/dist/ionic/p-b824f2ea.system.entry.js +4 -0
- package/dist/ionic/{p-06e58c4e.js → p-b82e4cfd.js} +1 -1
- package/dist/ionic/{p-c8e78b70.system.entry.js → p-b9665bf2.system.entry.js} +1 -1
- package/dist/ionic/p-b9f902b7.entry.js +4 -0
- package/dist/ionic/p-b9fc56ce.entry.js +4 -0
- package/dist/ionic/p-bc59161e.entry.js +4 -0
- package/dist/ionic/p-c0122ce8.entry.js +4 -0
- package/dist/ionic/p-c5cebd06.entry.js +4 -0
- package/dist/ionic/p-c6753166.system.js +4 -0
- package/dist/ionic/p-c9e87960.entry.js +4 -0
- package/dist/ionic/p-cd5487d5.entry.js +4 -0
- package/dist/ionic/p-d023db0e.system.js +4 -0
- package/dist/ionic/{p-b06ac4a5.system.js → p-d17dc9b4.system.js} +1 -1
- package/dist/ionic/{p-42f9a951.system.entry.js → p-d26214cb.system.entry.js} +1 -1
- package/dist/ionic/p-d635a135.system.entry.js +4 -0
- package/dist/ionic/p-d88bc366.entry.js +4 -0
- package/dist/ionic/p-d8a8873e.system.entry.js +4 -0
- package/dist/ionic/p-d9484ea5.entry.js +4 -0
- package/dist/ionic/p-da21e199.system.entry.js +4 -0
- package/dist/ionic/p-da8a14d0.entry.js +4 -0
- package/dist/ionic/p-dbf3a161.js +4 -0
- package/dist/ionic/{p-19ea7bff.system.js → p-dc971e94.system.js} +1 -1
- package/dist/ionic/p-ddeea474.system.entry.js +4 -0
- package/dist/ionic/p-dfc198fc.system.entry.js +4 -0
- package/dist/ionic/p-e285f90c.js +4 -0
- package/dist/ionic/p-e2f8cbe8.entry.js +4 -0
- package/dist/ionic/p-e48ecc9d.system.js +4 -0
- package/dist/ionic/p-e72b1a16.js +4 -0
- package/dist/ionic/p-e7deea0b.system.entry.js +4 -0
- package/dist/ionic/{p-91d713b7.system.entry.js → p-ec46d513.system.entry.js} +1 -1
- package/dist/ionic/p-ef67ccf4.system.js +4 -0
- package/dist/ionic/p-f2b51129.entry.js +4 -0
- package/dist/ionic/p-f3f7f713.js +4 -0
- package/dist/ionic/{p-0f9c24fe.system.js → p-f53e472e.system.js} +1 -1
- package/dist/ionic/{p-1d524f20.system.js → p-f9d31dea.system.js} +1 -1
- package/dist/ionic/{p-8985cdb6.system.js → p-fcfdf30d.system.js} +1 -1
- package/dist/ionic/p-ffee07a5.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/config.d.ts +1 -0
- package/dist/types/utils/focus-visible.d.ts +1 -0
- package/hydrate/index.d.ts +0 -6
- package/hydrate/index.js +385 -514
- package/hydrate/index.mjs +385 -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/framework-delegate-63d1a679.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-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-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-067db520.system.entry.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-0b2cb317.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-1350a9c2.entry.js +0 -4
- package/dist/ionic/p-149da974.system.js +0 -4
- package/dist/ionic/p-16b7cfc2.entry.js +0 -4
- package/dist/ionic/p-1955f63a.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-2690b1de.js +0 -4
- package/dist/ionic/p-2b2a48ed.entry.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2b87a770.entry.js +0 -4
- package/dist/ionic/p-2e2c1a93.system.entry.js +0 -4
- package/dist/ionic/p-2e6cf7f2.js +0 -4
- package/dist/ionic/p-2f244b7c.system.entry.js +0 -4
- package/dist/ionic/p-33fb4e9d.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-3cc276f4.js +0 -4
- package/dist/ionic/p-3e4a7bd8.system.entry.js +0 -4
- package/dist/ionic/p-40277321.system.entry.js +0 -4
- package/dist/ionic/p-4205a4d9.entry.js +0 -4
- package/dist/ionic/p-428db536.entry.js +0 -4
- package/dist/ionic/p-44d98be5.system.entry.js +0 -4
- package/dist/ionic/p-46bac798.entry.js +0 -4
- package/dist/ionic/p-488bc4e4.system.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-4b1364c9.entry.js +0 -4
- package/dist/ionic/p-4bd23b81.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-51d30486.entry.js +0 -4
- package/dist/ionic/p-52c20808.entry.js +0 -4
- package/dist/ionic/p-56435093.js +0 -4
- package/dist/ionic/p-57f94155.system.entry.js +0 -4
- package/dist/ionic/p-59a394ad.system.js +0 -5
- package/dist/ionic/p-59cda258.system.entry.js +0 -4
- package/dist/ionic/p-5d43e642.entry.js +0 -4
- package/dist/ionic/p-5d6c0bf8.system.js +0 -4
- package/dist/ionic/p-5d7ea80a.system.entry.js +0 -4
- package/dist/ionic/p-5e94453a.entry.js +0 -4
- package/dist/ionic/p-5e97855d.system.entry.js +0 -4
- package/dist/ionic/p-5ef51d63.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-6bbad9e4.system.entry.js +0 -4
- package/dist/ionic/p-6ca2a6af.entry.js +0 -4
- package/dist/ionic/p-6f465cce.js +0 -4
- package/dist/ionic/p-70325536.entry.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-76bb8eb2.entry.js +0 -4
- 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-8635f5e6.system.js +0 -4
- package/dist/ionic/p-89bd4ed2.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-9ea607bd.system.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-abe101da.system.js +0 -4
- package/dist/ionic/p-aed9cc5b.entry.js +0 -4
- package/dist/ionic/p-aee3f804.system.entry.js +0 -4
- package/dist/ionic/p-b2a2c6cf.system.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-b7836cec.entry.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-bd9fd891.system.entry.js +0 -4
- package/dist/ionic/p-c342dbdf.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-c76e43a2.system.entry.js +0 -4
- package/dist/ionic/p-cb9da2a3.entry.js +0 -4
- package/dist/ionic/p-cc3e2b52.entry.js +0 -4
- package/dist/ionic/p-ce58e8e0.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-d75bce6a.system.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-da5e7dbe.system.entry.js +0 -4
- package/dist/ionic/p-dc672c3a.entry.js +0 -4
- package/dist/ionic/p-dfb78785.system.js +0 -4
- package/dist/ionic/p-e351e0e3.entry.js +0 -4
- package/dist/ionic/p-e6e98f68.system.entry.js +0 -4
- package/dist/ionic/p-e9119176.entry.js +0 -4
- package/dist/ionic/p-ed3f6648.system.entry.js +0 -4
- package/dist/ionic/p-eec4b4ce.entry.js +0 -4
- package/dist/ionic/p-f08654ea.system.js +0 -4
- package/dist/ionic/p-f22b3a75.js +0 -4
- package/dist/ionic/p-f367478b.js +0 -4
- package/dist/ionic/p-fc9b4e5a.entry.js +0 -4
- package/dist/ionic/p-fdfa74cc.system.entry.js +0 -4
- package/dist/ionic/p-fec56d82.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
const helpers = require('./helpers-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const frameworkDelegate = require('./framework-delegate-55f5683a.js');
|
|
6
|
+
const ionicGlobal = require('./ionic-global-e4b78f51.js');
|
|
7
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
8
|
+
const config = require('./config-aff4ff52.js');
|
|
9
|
+
const frameworkDelegate = require('./framework-delegate-dd8c8308.js');
|
|
11
10
|
const gestureController = require('./gesture-controller-9436f482.js');
|
|
12
|
-
const index$1 = require('./index-5915f9b3.js');
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
* This query string selects elements that
|
|
@@ -390,7 +388,7 @@ const connectListeners = (doc) => {
|
|
|
390
388
|
doc.addEventListener('ionBackButton', (ev) => {
|
|
391
389
|
const lastOverlay = getPresentedOverlay(doc);
|
|
392
390
|
if (lastOverlay === null || lastOverlay === void 0 ? void 0 : lastOverlay.backdropDismiss) {
|
|
393
|
-
ev.detail.register(
|
|
391
|
+
ev.detail.register(ionicGlobal.OVERLAY_BACK_BUTTON_PRIORITY, () => {
|
|
394
392
|
/**
|
|
395
393
|
* Do not return this promise otherwise
|
|
396
394
|
* the hardware back button utility will
|
|
@@ -413,7 +411,7 @@ const connectListeners = (doc) => {
|
|
|
413
411
|
* this behavior will be handled via the ionBackButton
|
|
414
412
|
* event.
|
|
415
413
|
*/
|
|
416
|
-
if (!
|
|
414
|
+
if (!ionicGlobal.shouldUseCloseWatcher()) {
|
|
417
415
|
doc.addEventListener('keydown', (ev) => {
|
|
418
416
|
if (ev.key === 'Escape') {
|
|
419
417
|
const lastOverlay = getPresentedOverlay(doc);
|
|
@@ -512,7 +510,7 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
512
510
|
// get the user's animation fn if one was provided
|
|
513
511
|
const animationBuilder = overlay.enterAnimation
|
|
514
512
|
? overlay.enterAnimation
|
|
515
|
-
:
|
|
513
|
+
: config.config.get(name, mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
|
|
516
514
|
const completed = await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
517
515
|
if (completed) {
|
|
518
516
|
overlay.didPresent.emit();
|
|
@@ -601,7 +599,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
601
599
|
if (!overlay.presented) {
|
|
602
600
|
return false;
|
|
603
601
|
}
|
|
604
|
-
const lastOverlay =
|
|
602
|
+
const lastOverlay = ionicGlobal.doc !== undefined && getPresentedOverlays(ionicGlobal.doc).length === 1;
|
|
605
603
|
/**
|
|
606
604
|
* If this is the last visible overlay then
|
|
607
605
|
* we want to re-add the root to the accessibility tree.
|
|
@@ -619,7 +617,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
619
617
|
const mode = ionicGlobal.getIonMode(overlay);
|
|
620
618
|
const animationBuilder = overlay.leaveAnimation
|
|
621
619
|
? overlay.leaveAnimation
|
|
622
|
-
:
|
|
620
|
+
: config.config.get(name, mode === 'ios' ? iosLeaveAnimation : mdLeaveAnimation);
|
|
623
621
|
// If dismissed via gesture, no need to play leaving animation again
|
|
624
622
|
if (role !== GESTURE) {
|
|
625
623
|
await overlayAnimation(overlay, animationBuilder, overlay.el, opts);
|
|
@@ -654,14 +652,14 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
654
652
|
return true;
|
|
655
653
|
};
|
|
656
654
|
const getAppRoot = (doc) => {
|
|
657
|
-
return doc.querySelector('ion-app') || doc.body;
|
|
655
|
+
return doc.querySelector('ion-app, .ion-app') || doc.body;
|
|
658
656
|
};
|
|
659
657
|
const overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {
|
|
660
658
|
// Make overlay visible in case it's hidden
|
|
661
659
|
baseEl.classList.remove('overlay-hidden');
|
|
662
660
|
const aniRoot = overlay.el;
|
|
663
661
|
const animation = animationBuilder(aniRoot, opts);
|
|
664
|
-
if (!overlay.animated || !
|
|
662
|
+
if (!overlay.animated || !config.config.getBoolean('animated', true)) {
|
|
665
663
|
animation.duration(0);
|
|
666
664
|
}
|
|
667
665
|
if (overlay.keyboardClose) {
|
|
@@ -705,7 +703,7 @@ const defaultGate = (h) => h();
|
|
|
705
703
|
*/
|
|
706
704
|
const safeCall = (handler, arg) => {
|
|
707
705
|
if (typeof handler === 'function') {
|
|
708
|
-
const jmp =
|
|
706
|
+
const jmp = config.config.get('_zoneGate', defaultGate);
|
|
709
707
|
return jmp(() => {
|
|
710
708
|
try {
|
|
711
709
|
return handler(arg);
|
|
@@ -827,7 +825,7 @@ const createTriggerController = () => {
|
|
|
827
825
|
removeClickListener();
|
|
828
826
|
const triggerEl = trigger !== undefined ? document.getElementById(trigger) : null;
|
|
829
827
|
if (!triggerEl) {
|
|
830
|
-
|
|
828
|
+
ionicGlobal.printIonWarning(`A trigger element with the ID "${trigger}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`, el);
|
|
831
829
|
return;
|
|
832
830
|
}
|
|
833
831
|
const configureTriggerInteraction = (targetEl, overlayEl) => {
|
|
@@ -858,9 +856,9 @@ const createTriggerController = () => {
|
|
|
858
856
|
*/
|
|
859
857
|
const hideOverlaysFromScreenReaders = (newTopMostOverlay) => {
|
|
860
858
|
var _a;
|
|
861
|
-
if (
|
|
859
|
+
if (ionicGlobal.doc === undefined)
|
|
862
860
|
return;
|
|
863
|
-
const overlays = getPresentedOverlays(
|
|
861
|
+
const overlays = getPresentedOverlays(ionicGlobal.doc);
|
|
864
862
|
for (let i = overlays.length - 1; i >= 0; i--) {
|
|
865
863
|
const presentedOverlay = overlays[i];
|
|
866
864
|
const nextPresentedOverlay = (_a = overlays[i + 1]) !== null && _a !== void 0 ? _a : newTopMostOverlay;
|
|
@@ -880,9 +878,9 @@ const hideOverlaysFromScreenReaders = (newTopMostOverlay) => {
|
|
|
880
878
|
* focus is never automatically moved to the Toast.
|
|
881
879
|
*/
|
|
882
880
|
const revealOverlaysToScreenReaders = () => {
|
|
883
|
-
if (
|
|
881
|
+
if (ionicGlobal.doc === undefined)
|
|
884
882
|
return;
|
|
885
|
-
const overlays = getPresentedOverlays(
|
|
883
|
+
const overlays = getPresentedOverlays(ionicGlobal.doc);
|
|
886
884
|
for (let i = overlays.length - 1; i >= 0; i--) {
|
|
887
885
|
const currentOverlay = overlays[i];
|
|
888
886
|
/**
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index = require('./index-
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const helpers = require('./helpers-
|
|
9
|
-
require('./
|
|
6
|
+
const index = require('./index-b9e25ecd.js');
|
|
7
|
+
const index$1 = require('./index-4c1435d8.js');
|
|
8
|
+
const helpers = require('./helpers-acd6c477.js');
|
|
9
|
+
require('./ionic-global-e4b78f51.js');
|
|
10
|
+
require('./config-aff4ff52.js');
|
|
10
11
|
|
|
11
12
|
const startStatusTap = () => {
|
|
12
13
|
const win = window;
|
|
@@ -1,53 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { printIonWarning } from "../../utils/logging/index";
|
|
7
|
-
import { isPlatform } from "../../utils/platform";
|
|
4
|
+
import { Host, h } from "@stencil/core";
|
|
5
|
+
import { getOrInitFocusVisibleUtility } from "../../utils/focus-visible";
|
|
8
6
|
import { config } from "../../global/config";
|
|
9
7
|
import { getIonMode } from "../../global/ionic-global";
|
|
10
8
|
export class App {
|
|
11
|
-
componentDidLoad() {
|
|
12
|
-
if (Build.isBrowser) {
|
|
13
|
-
rIC(async () => {
|
|
14
|
-
const isHybrid = isPlatform(window, 'hybrid');
|
|
15
|
-
if (!config.getBoolean('_testing')) {
|
|
16
|
-
import('../../utils/tap-click').then((module) => module.startTapClick(config));
|
|
17
|
-
}
|
|
18
|
-
if (config.getBoolean('statusTap', isHybrid)) {
|
|
19
|
-
import('../../utils/status-tap').then((module) => module.startStatusTap());
|
|
20
|
-
}
|
|
21
|
-
if (config.getBoolean('inputShims', needInputShims())) {
|
|
22
|
-
/**
|
|
23
|
-
* needInputShims() ensures that only iOS and Android
|
|
24
|
-
* platforms proceed into this block.
|
|
25
|
-
*/
|
|
26
|
-
const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
27
|
-
import('../../utils/input-shims/input-shims').then((module) => module.startInputShims(config, platform));
|
|
28
|
-
}
|
|
29
|
-
const hardwareBackButtonModule = await import('../../utils/hardware-back-button');
|
|
30
|
-
const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();
|
|
31
|
-
if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {
|
|
32
|
-
hardwareBackButtonModule.startHardwareBackButton();
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
/**
|
|
36
|
-
* If an app sets hardwareBackButton: false and experimentalCloseWatcher: true
|
|
37
|
-
* then the close watcher will not be used.
|
|
38
|
-
*/
|
|
39
|
-
if (shouldUseCloseWatcher()) {
|
|
40
|
-
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.');
|
|
41
|
-
}
|
|
42
|
-
hardwareBackButtonModule.blockHardwareBackButton();
|
|
43
|
-
}
|
|
44
|
-
if (typeof window !== 'undefined') {
|
|
45
|
-
import('../../utils/keyboard/keyboard').then((module) => module.startKeyboardAssist(window));
|
|
46
|
-
}
|
|
47
|
-
import('../../utils/focus-visible').then((module) => (this.focusVisible = module.startFocusVisible()));
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
9
|
/**
|
|
52
10
|
* @internal
|
|
53
11
|
* Used to set focus on an element that uses `ion-focusable`.
|
|
@@ -59,13 +17,12 @@ export class App {
|
|
|
59
17
|
* presented as a result of keyboard action.)
|
|
60
18
|
*/
|
|
61
19
|
async setFocus(elements) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
20
|
+
const focusVisible = getOrInitFocusVisibleUtility();
|
|
21
|
+
focusVisible.setFocus(elements);
|
|
65
22
|
}
|
|
66
23
|
render() {
|
|
67
24
|
const mode = getIonMode(this);
|
|
68
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '4773923a95e44577ff634c0ae6f1a56f41b54088', class: {
|
|
69
26
|
[mode]: true,
|
|
70
27
|
'ion-page': true,
|
|
71
28
|
'force-statusbar-padding': config.getBoolean('_forceStatusbarPadding'),
|
|
@@ -116,30 +73,3 @@ export class App {
|
|
|
116
73
|
}
|
|
117
74
|
static get elementRef() { return "el"; }
|
|
118
75
|
}
|
|
119
|
-
const needInputShims = () => {
|
|
120
|
-
/**
|
|
121
|
-
* iOS always needs input shims
|
|
122
|
-
*/
|
|
123
|
-
const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
|
|
124
|
-
if (needsShimsIOS) {
|
|
125
|
-
return true;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Android only needs input shims when running
|
|
129
|
-
* in the browser and only if the browser is using the
|
|
130
|
-
* new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
|
|
131
|
-
*/
|
|
132
|
-
const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
|
|
133
|
-
if (isAndroidMobileWeb) {
|
|
134
|
-
return true;
|
|
135
|
-
}
|
|
136
|
-
return false;
|
|
137
|
-
};
|
|
138
|
-
const rIC = (callback) => {
|
|
139
|
-
if ('requestIdleCallback' in window) {
|
|
140
|
-
window.requestIdleCallback(callback);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
setTimeout(callback, 32);
|
|
144
|
-
}
|
|
145
|
-
};
|
|
@@ -773,7 +773,7 @@ const getPageElement = (el) => {
|
|
|
773
773
|
* between the popover and the edges of the screen. But if the popover contains
|
|
774
774
|
* its own page element, we should use that instead.
|
|
775
775
|
*/
|
|
776
|
-
const page = el.closest('ion-app, ion-page, .ion-page, page-inner, .popover-content');
|
|
776
|
+
const page = el.closest('ion-app, .ion-app, ion-page, .ion-page, page-inner, .popover-content');
|
|
777
777
|
if (page) {
|
|
778
778
|
return page;
|
|
779
779
|
}
|
|
@@ -21,7 +21,7 @@ export class Footer {
|
|
|
21
21
|
const hasFade = collapse === 'fade';
|
|
22
22
|
this.destroyCollapsibleFooter();
|
|
23
23
|
if (hasFade) {
|
|
24
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
24
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
25
25
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
26
26
|
if (!contentEl) {
|
|
27
27
|
printIonContentErrorMsg(this.el);
|
|
@@ -80,7 +80,7 @@ export class Footer {
|
|
|
80
80
|
const mode = getIonMode(this);
|
|
81
81
|
const tabs = this.el.closest('ion-tabs');
|
|
82
82
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '1ccb49da6f7c9f1f883904ae4b931fac5f341216', role: "contentinfo", class: {
|
|
84
84
|
[mode]: true,
|
|
85
85
|
// Used internally for styling
|
|
86
86
|
[`footer-${mode}`]: true,
|
|
@@ -88,7 +88,7 @@ export class Footer {
|
|
|
88
88
|
[`footer-translucent-${mode}`]: translucent,
|
|
89
89
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
90
90
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
91
|
-
} }, mode === 'ios' && translucent && h("div", { key: '
|
|
91
|
+
} }, mode === 'ios' && translucent && h("div", { key: 'a910070df4e5faee7b135d10364510c612cd2587', class: "footer-background" }), h("slot", { key: '1507567059072ecf7243d6a304079c52eb58455f' })));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "ion-footer"; }
|
|
94
94
|
static get originalStyleUrls() {
|
|
@@ -49,7 +49,7 @@ export class Header {
|
|
|
49
49
|
const hasFade = collapse === 'fade';
|
|
50
50
|
this.destroyCollapsibleHeader();
|
|
51
51
|
if (hasCondense) {
|
|
52
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
52
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
53
53
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
54
54
|
// Cloned elements are always needed in iOS transition
|
|
55
55
|
writeTask(() => {
|
|
@@ -60,7 +60,7 @@ export class Header {
|
|
|
60
60
|
await this.setupCondenseHeader(contentEl, pageEl);
|
|
61
61
|
}
|
|
62
62
|
else if (hasFade) {
|
|
63
|
-
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
|
63
|
+
const pageEl = this.el.closest('ion-app,.ion-app,ion-page,.ion-page,page-inner');
|
|
64
64
|
const contentEl = pageEl ? findIonContent(pageEl) : null;
|
|
65
65
|
if (!contentEl) {
|
|
66
66
|
printIonContentErrorMsg(this.el);
|
|
@@ -140,14 +140,14 @@ export class Header {
|
|
|
140
140
|
const collapse = this.collapse || 'none';
|
|
141
141
|
// banner role must be at top level, so remove role if inside a menu
|
|
142
142
|
const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
|
|
143
|
-
return (h(Host, Object.assign({ key: '
|
|
143
|
+
return (h(Host, Object.assign({ key: '6a248ea9b21b1122084069ba99477cdde3322158', role: roleType, class: {
|
|
144
144
|
[mode]: true,
|
|
145
145
|
// Used internally for styling
|
|
146
146
|
[`header-${mode}`]: true,
|
|
147
147
|
[`header-translucent`]: this.translucent,
|
|
148
148
|
[`header-collapse-${collapse}`]: true,
|
|
149
149
|
[`header-translucent-${mode}`]: this.translucent,
|
|
150
|
-
} }, inheritedAttributes), mode === 'ios' && translucent && h("div", { key: '
|
|
150
|
+
} }, inheritedAttributes), mode === 'ios' && translucent && h("div", { key: 'c3e8bc6dfacd2df1a2611a660dcabc3b876dd3f9', class: "header-background" }), h("slot", { key: '6f4829f92a05b97ae7d6e1ac2141934ee6041c4a' })));
|
|
151
151
|
}
|
|
152
152
|
static get is() { return "ion-header"; }
|
|
153
153
|
static get originalStyleUrls() {
|
|
@@ -489,7 +489,7 @@ export class Input {
|
|
|
489
489
|
"mutable": false,
|
|
490
490
|
"complexType": {
|
|
491
491
|
"original": "AutocompleteTypes",
|
|
492
|
-
"resolved": "\"name\" | \"
|
|
492
|
+
"resolved": "\"name\" | \"url\" | \"off\" | \"on\" | \"additional-name\" | \"address-level1\" | \"address-level2\" | \"address-level3\" | \"address-level4\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"cc-csc\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-family-name\" | \"cc-given-name\" | \"cc-name\" | \"cc-number\" | \"cc-type\" | \"country\" | \"country-name\" | \"current-password\" | \"family-name\" | \"given-name\" | \"honorific-prefix\" | \"honorific-suffix\" | \"new-password\" | \"one-time-code\" | \"organization\" | \"postal-code\" | \"street-address\" | \"transaction-amount\" | \"transaction-currency\" | \"username\" | \"email\" | \"tel\" | \"tel-area-code\" | \"tel-country-code\" | \"tel-extension\" | \"tel-local\" | \"tel-national\" | \"nickname\" | \"organization-title\" | \"cc-additional-name\" | \"language\" | \"bday\" | \"sex\" | \"impp\" | \"photo\"",
|
|
493
493
|
"references": {
|
|
494
494
|
"AutocompleteTypes": {
|
|
495
495
|
"location": "import",
|
|
@@ -478,7 +478,7 @@ export class Searchbar {
|
|
|
478
478
|
"mutable": false,
|
|
479
479
|
"complexType": {
|
|
480
480
|
"original": "AutocompleteTypes",
|
|
481
|
-
"resolved": "\"name\" | \"
|
|
481
|
+
"resolved": "\"name\" | \"url\" | \"off\" | \"on\" | \"additional-name\" | \"address-level1\" | \"address-level2\" | \"address-level3\" | \"address-level4\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"cc-csc\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-family-name\" | \"cc-given-name\" | \"cc-name\" | \"cc-number\" | \"cc-type\" | \"country\" | \"country-name\" | \"current-password\" | \"family-name\" | \"given-name\" | \"honorific-prefix\" | \"honorific-suffix\" | \"new-password\" | \"one-time-code\" | \"organization\" | \"postal-code\" | \"street-address\" | \"transaction-amount\" | \"transaction-currency\" | \"username\" | \"email\" | \"tel\" | \"tel-area-code\" | \"tel-country-code\" | \"tel-extension\" | \"tel-local\" | \"tel-national\" | \"nickname\" | \"organization-title\" | \"cc-additional-name\" | \"language\" | \"bday\" | \"sex\" | \"impp\" | \"photo\"",
|
|
482
482
|
"references": {
|
|
483
483
|
"AutocompleteTypes": {
|
|
484
484
|
"location": "import",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { getMode, setMode, setPlatformHelpers } from "@stencil/core";
|
|
4
|
+
import { Build, getMode, setMode, setPlatformHelpers } from "@stencil/core";
|
|
5
|
+
import { shouldUseCloseWatcher } from "../utils/hardware-back-button";
|
|
6
|
+
import { printIonWarning } from "../utils/logging";
|
|
5
7
|
import { isPlatform, setupPlatforms } from "../utils/platform";
|
|
6
8
|
import { config, configFromSession, configFromURL, saveConfig } from "./config";
|
|
7
9
|
// TODO(FW-2832): types
|
|
@@ -9,6 +11,33 @@ let defaultMode;
|
|
|
9
11
|
export const getIonMode = (ref) => {
|
|
10
12
|
return (ref && getMode(ref)) || defaultMode;
|
|
11
13
|
};
|
|
14
|
+
export const rIC = (callback) => {
|
|
15
|
+
if ('requestIdleCallback' in window) {
|
|
16
|
+
window.requestIdleCallback(callback);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
setTimeout(callback, 32);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export const needInputShims = () => {
|
|
23
|
+
/**
|
|
24
|
+
* iOS always needs input shims
|
|
25
|
+
*/
|
|
26
|
+
const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
|
|
27
|
+
if (needsShimsIOS) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Android only needs input shims when running
|
|
32
|
+
* in the browser and only if the browser is using the
|
|
33
|
+
* new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
|
|
34
|
+
*/
|
|
35
|
+
const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
|
|
36
|
+
if (isAndroidMobileWeb) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
};
|
|
12
41
|
export const initialize = (userConfig = {}) => {
|
|
13
42
|
if (typeof window === 'undefined') {
|
|
14
43
|
return;
|
|
@@ -64,5 +93,45 @@ export const initialize = (userConfig = {}) => {
|
|
|
64
93
|
}
|
|
65
94
|
return defaultMode;
|
|
66
95
|
});
|
|
96
|
+
// `IonApp` code
|
|
97
|
+
// ----------------------------------------------
|
|
98
|
+
if (Build.isBrowser) {
|
|
99
|
+
rIC(async () => {
|
|
100
|
+
const isHybrid = isPlatform(window, 'hybrid');
|
|
101
|
+
if (!config.getBoolean('_testing')) {
|
|
102
|
+
import('../utils/tap-click').then((module) => module.startTapClick(config));
|
|
103
|
+
}
|
|
104
|
+
if (config.getBoolean('statusTap', isHybrid)) {
|
|
105
|
+
import('../utils/status-tap').then((module) => module.startStatusTap());
|
|
106
|
+
}
|
|
107
|
+
if (config.getBoolean('inputShims', needInputShims())) {
|
|
108
|
+
/**
|
|
109
|
+
* needInputShims() ensures that only iOS and Android
|
|
110
|
+
* platforms proceed into this block.
|
|
111
|
+
*/
|
|
112
|
+
const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
113
|
+
import('../utils/input-shims/input-shims').then((module) => module.startInputShims(config, platform));
|
|
114
|
+
}
|
|
115
|
+
const hardwareBackButtonModule = await import('../utils/hardware-back-button');
|
|
116
|
+
const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();
|
|
117
|
+
if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {
|
|
118
|
+
hardwareBackButtonModule.startHardwareBackButton();
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
/**
|
|
122
|
+
* If an app sets hardwareBackButton: false and experimentalCloseWatcher: true
|
|
123
|
+
* then the close watcher will not be used.
|
|
124
|
+
*/
|
|
125
|
+
if (shouldUseCloseWatcher()) {
|
|
126
|
+
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.');
|
|
127
|
+
}
|
|
128
|
+
hardwareBackButtonModule.blockHardwareBackButton();
|
|
129
|
+
}
|
|
130
|
+
if (typeof window !== 'undefined') {
|
|
131
|
+
import('../utils/keyboard/keyboard').then((module) => module.startKeyboardAssist(window));
|
|
132
|
+
}
|
|
133
|
+
import('../utils/focus-visible').then((module) => module.getOrInitFocusVisibleUtility());
|
|
134
|
+
});
|
|
135
|
+
}
|
|
67
136
|
};
|
|
68
137
|
export default initialize;
|
|
@@ -17,6 +17,13 @@ const FOCUS_KEYS = [
|
|
|
17
17
|
'Home',
|
|
18
18
|
'End',
|
|
19
19
|
];
|
|
20
|
+
let focusVisibleUtility = null;
|
|
21
|
+
export const getOrInitFocusVisibleUtility = () => {
|
|
22
|
+
if (!focusVisibleUtility) {
|
|
23
|
+
focusVisibleUtility = startFocusVisible();
|
|
24
|
+
}
|
|
25
|
+
return focusVisibleUtility;
|
|
26
|
+
};
|
|
20
27
|
export const startFocusVisible = (rootEl) => {
|
|
21
28
|
let currentFocus = [];
|
|
22
29
|
let keyboardMode = true;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
+
import { config } from "../global/config";
|
|
4
5
|
import { componentOnReady } from "./helpers";
|
|
5
6
|
// TODO(FW-2832): types
|
|
6
7
|
export const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
@@ -101,7 +102,8 @@ export const CoreDelegate = () => {
|
|
|
101
102
|
* Get the root of the app and
|
|
102
103
|
* add the overlay there.
|
|
103
104
|
*/
|
|
104
|
-
const
|
|
105
|
+
const appRootClass = config.get('appRootClass', 'ion-app');
|
|
106
|
+
const app = document.querySelector(`ion-app, ${appRootClass}`) || document.body;
|
|
105
107
|
/**
|
|
106
108
|
* Create a placeholder comment so that
|
|
107
109
|
* we can return this component to where
|
|
@@ -241,7 +241,7 @@ export const focusVisibleElement = (el) => {
|
|
|
241
241
|
* which will let us explicitly set the elements to focus.
|
|
242
242
|
*/
|
|
243
243
|
if (el.classList.contains('ion-focusable')) {
|
|
244
|
-
const app = el.closest('ion-app');
|
|
244
|
+
const app = el.closest('ion-app, .ion-app');
|
|
245
245
|
if (app) {
|
|
246
246
|
app.setFocus([el]);
|
|
247
247
|
}
|
|
@@ -25,7 +25,7 @@ const getResizeContainer = (resizeMode) => {
|
|
|
25
25
|
* on that. In the event `ion-app` is not available then
|
|
26
26
|
* we can fall back to `body`.
|
|
27
27
|
*/
|
|
28
|
-
const ionApp = doc.querySelector('ion-app');
|
|
28
|
+
const ionApp = doc.querySelector('ion-app, .ion-app');
|
|
29
29
|
return ionApp !== null && ionApp !== void 0 ? ionApp : doc.body;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
@@ -579,7 +579,7 @@ export const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLe
|
|
|
579
579
|
return true;
|
|
580
580
|
};
|
|
581
581
|
const getAppRoot = (doc) => {
|
|
582
|
-
return doc.querySelector('ion-app') || doc.body;
|
|
582
|
+
return doc.querySelector('ion-app, .ion-app') || doc.body;
|
|
583
583
|
};
|
|
584
584
|
const overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {
|
|
585
585
|
// Make overlay visible in case it's hidden
|