@ionic/core 8.3.1-dev.11726094383.1cdbab6f → 8.3.1-dev.11726165401.13e99534
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/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 +3 -64
- package/components/ion-back-button.js +1 -1
- package/components/ion-breadcrumb.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 +1 -1
- package/components/ion-header.js +1 -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-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 +220 -2
- package/components/item.js +1 -1
- package/components/keyboard-controller.js +1 -1
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +1 -4
- 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-0e966ffd.js} +2 -2
- package/dist/cjs/{app-globals-2cfd442b.js → app-globals-efeec904.js} +1 -1
- package/dist/cjs/{button-active-1a40c735.js → button-active-2b9e348c.js} +1 -1
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-8b094750.js} +3 -3
- package/dist/cjs/{data-21dc0f81.js → data-dbc55c01.js} +3 -3
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-90af2b30.js} +1 -1
- package/dist/cjs/{index-9509ecad.js → index-205f4d6c.js} +7 -6
- package/dist/cjs/{index-5b6a7459.js → index-2329dd7d.js} +2 -2
- package/dist/cjs/{index-9bdd4f2a.js → index-2a7fa0c6.js} +7 -8
- package/dist/cjs/{index-c170694d.js → index-b0d55bd0.js} +6 -9
- package/dist/cjs/index.cjs.js +7 -10
- package/dist/cjs/{input-shims-9e59ef62.js → input-shims-850e2ebb.js} +16 -16
- package/dist/cjs/{input.utils-611cde0b.js → input.utils-bff12d3f.js} +3 -4
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +6 -9
- package/dist/cjs/ion-alert.cjs.entry.js +6 -9
- package/dist/cjs/ion-app_8.cjs.entry.js +19 -81
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +4 -5
- package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
- 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 +6 -7
- package/dist/cjs/ion-datetime_3.cjs.entry.js +93 -96
- package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-img.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +6 -7
- package/dist/cjs/ion-input.cjs.entry.js +3 -5
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -3
- package/dist/cjs/ion-item_8.cjs.entry.js +1 -1
- package/dist/cjs/ion-loading.cjs.entry.js +3 -6
- package/dist/cjs/ion-menu_3.cjs.entry.js +5 -8
- package/dist/cjs/ion-modal.cjs.entry.js +47 -50
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +1 -1
- package/dist/cjs/ion-picker-column.cjs.entry.js +4 -5
- package/dist/cjs/ion-popover.cjs.entry.js +7 -10
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-range.cjs.entry.js +7 -8
- package/dist/cjs/ion-refresher_2.cjs.entry.js +5 -7
- package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -6
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +1 -1
- package/dist/cjs/ion-searchbar.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +3 -6
- 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 +4 -5
- package/dist/cjs/ion-text.cjs.entry.js +1 -1
- package/dist/cjs/ion-textarea.cjs.entry.js +3 -5
- package/dist/cjs/ion-toast.cjs.entry.js +29 -32
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -4
- package/dist/cjs/ionic-global-6d67c8d1.js +464 -0
- package/dist/cjs/ionic.cjs.js +2 -2
- package/dist/cjs/{ios.transition-ac67e283.js → ios.transition-d3b17084.js} +3 -5
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-29ccffc1.js} +4 -3
- package/dist/cjs/{keyboard-0272231f.js → keyboard-6a572bd2.js} +1 -1
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-fcba95dc.js} +9 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{md.transition-8ceb4e1a.js → md.transition-fa016453.js} +3 -5
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-f23af294.js} +3 -3
- package/dist/cjs/{overlays-4451d3fc.js → overlays-6cdb8aa4.js} +9 -12
- package/dist/cjs/{status-tap-e52a48f8.js → status-tap-147ee377.js} +2 -2
- package/dist/collection/components/app/app.js +3 -65
- 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 +71 -1
- package/dist/docs.json +107 -107
- package/dist/esm/{animation-eab5a4ca.js → animation-bc91b6f2.js} +1 -1
- package/dist/esm/{app-globals-b9f6e516.js → app-globals-a405ed0d.js} +1 -1
- package/dist/esm/{button-active-13c37337.js → button-active-405f8dfb.js} +1 -1
- package/dist/esm/{capacitor-59395cbd.js → capacitor-7a4165d9.js} +1 -1
- package/dist/esm/{data-ae11fd43.js → data-a1b4d211.js} +1 -1
- package/dist/esm/{haptic-ac164e4c.js → haptic-c00dcaf7.js} +1 -1
- package/dist/esm/{index-8579e7fd.js → index-3497dcba.js} +3 -4
- package/dist/esm/{index-5cc724f3.js → index-3811e0a3.js} +1 -1
- package/dist/esm/{index-97b0ab3f.js → index-52a167d1.js} +2 -5
- package/dist/esm/{index-79b30591.js → index-7d7fdaad.js} +2 -1
- package/dist/esm/index.js +7 -10
- package/dist/esm/{input-shims-0314bbe5.js → input-shims-bc1cc120.js} +5 -5
- package/dist/esm/{input.utils-09c71bc7.js → input.utils-7a6034e6.js} +1 -2
- package/dist/esm/ion-accordion_2.entry.js +1 -2
- package/dist/esm/ion-action-sheet.entry.js +6 -9
- package/dist/esm/ion-alert.entry.js +6 -9
- package/dist/esm/ion-app_8.entry.js +8 -70
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-backdrop.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +1 -2
- package/dist/esm/ion-card_5.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +1 -1
- 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 +2 -3
- package/dist/esm/ion-datetime_3.entry.js +6 -9
- package/dist/esm/ion-fab_3.entry.js +1 -1
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -3
- package/dist/esm/ion-input-password-toggle.entry.js +1 -2
- package/dist/esm/ion-input.entry.js +3 -5
- package/dist/esm/ion-item-option_3.entry.js +2 -3
- package/dist/esm/ion-item_8.entry.js +1 -1
- package/dist/esm/ion-loading.entry.js +3 -6
- package/dist/esm/ion-menu_3.entry.js +4 -7
- package/dist/esm/ion-modal.entry.js +8 -11
- package/dist/esm/ion-nav_2.entry.js +2 -3
- package/dist/esm/ion-picker-column-option.entry.js +1 -1
- package/dist/esm/ion-picker-column.entry.js +3 -4
- package/dist/esm/ion-popover.entry.js +4 -7
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +1 -1
- package/dist/esm/ion-range.entry.js +2 -3
- package/dist/esm/ion-refresher_2.entry.js +5 -7
- package/dist/esm/ion-reorder_2.entry.js +4 -6
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +1 -1
- package/dist/esm/ion-searchbar.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +3 -6
- 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 +4 -5
- package/dist/esm/ion-text.entry.js +1 -1
- package/dist/esm/ion-textarea.entry.js +3 -5
- package/dist/esm/ion-toast.entry.js +3 -6
- package/dist/esm/ion-toggle.entry.js +3 -4
- package/dist/esm/ionic-global-c44ae874.js +449 -0
- package/dist/esm/ionic.js +2 -2
- package/dist/esm/{ios.transition-beb96e76.js → ios.transition-d4256afc.js} +3 -5
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-63a70cc3.js} +2 -2
- package/dist/esm/{keyboard-73175e24.js → keyboard-d793eb55.js} +1 -1
- package/dist/esm/{keyboard-52278bd7.js → keyboard-ed2134e3.js} +4 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{md.transition-d5aa5703.js → md.transition-2e0541c4.js} +3 -5
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-efd4d592.js} +1 -1
- package/dist/esm/{overlays-2ea57630.js → overlays-8ea559a8.js} +1 -4
- package/dist/esm/{status-tap-a264a37f.js → status-tap-b5cdef45.js} +2 -2
- package/dist/esm-es5/animation-bc91b6f2.js +4 -0
- package/dist/esm-es5/app-globals-a405ed0d.js +4 -0
- package/dist/esm-es5/{button-active-13c37337.js → button-active-405f8dfb.js} +1 -1
- package/dist/esm-es5/capacitor-7a4165d9.js +4 -0
- package/dist/esm-es5/data-a1b4d211.js +4 -0
- package/dist/esm-es5/{haptic-ac164e4c.js → haptic-c00dcaf7.js} +1 -1
- package/dist/esm-es5/index-3497dcba.js +4 -0
- package/dist/esm-es5/index-3811e0a3.js +4 -0
- package/dist/esm-es5/index-52a167d1.js +4 -0
- package/dist/esm-es5/index-7d7fdaad.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-bc1cc120.js +4 -0
- package/dist/esm-es5/input.utils-7a6034e6.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-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-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-c44ae874.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-d4256afc.js +4 -0
- package/dist/esm-es5/keyboard-controller-63a70cc3.js +4 -0
- package/dist/esm-es5/{keyboard-73175e24.js → keyboard-d793eb55.js} +1 -1
- package/dist/esm-es5/keyboard-ed2134e3.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-2e0541c4.js +4 -0
- package/dist/esm-es5/notch-controller-efd4d592.js +4 -0
- package/dist/esm-es5/overlays-8ea559a8.js +4 -0
- package/dist/esm-es5/status-tap-b5cdef45.js +4 -0
- package/dist/html.html-data.json +102 -102
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/p-002a43eb.system.entry.js +4 -0
- package/dist/ionic/p-0170e66d.system.entry.js +4 -0
- package/dist/ionic/{p-8884ee37.system.entry.js → p-03852992.system.entry.js} +1 -1
- package/dist/ionic/p-06a15c1a.js +4 -0
- package/dist/ionic/p-0ae0b773.system.entry.js +4 -0
- package/dist/ionic/{p-8cab6a5c.system.entry.js → p-0e13c364.system.entry.js} +1 -1
- package/dist/ionic/p-101b8d3c.system.entry.js +4 -0
- package/dist/ionic/p-141fffe4.system.js +4 -0
- package/dist/ionic/p-1bc17376.js +4 -0
- package/dist/ionic/{p-f4d568f8.entry.js → p-1ef8603e.entry.js} +1 -1
- package/dist/ionic/p-244f21d9.system.entry.js +4 -0
- package/dist/ionic/p-246855ee.js +4 -0
- package/dist/ionic/{p-b06ac4a5.system.js → p-2693d3fb.system.js} +1 -1
- package/dist/ionic/{p-97f6c01c.system.entry.js → p-27292ed7.system.entry.js} +1 -1
- package/dist/ionic/p-2901b77d.entry.js +4 -0
- package/dist/ionic/{p-fd70cb80.system.entry.js → p-2a3860b9.system.entry.js} +1 -1
- package/dist/ionic/{p-89b61afc.js → p-2b41e073.js} +1 -1
- package/dist/ionic/p-2e95ce86.entry.js +4 -0
- package/dist/ionic/{p-d7cde2c6.entry.js → p-2f95e4a4.entry.js} +1 -1
- package/dist/ionic/p-3231947e.system.entry.js +4 -0
- package/dist/ionic/{p-23e0cd37.entry.js → p-325414c0.entry.js} +1 -1
- package/dist/ionic/p-3414d514.entry.js +4 -0
- package/dist/ionic/p-3936977d.system.entry.js +4 -0
- package/dist/ionic/{p-1dfc11b3.system.js → p-4018f881.system.js} +1 -1
- package/dist/ionic/p-421103f4.entry.js +4 -0
- package/dist/ionic/{p-34b11c24.js → p-43a264be.js} +1 -1
- package/dist/ionic/{p-e02807c4.entry.js → p-45fdfccc.entry.js} +1 -1
- package/dist/ionic/p-48691dfe.system.entry.js +4 -0
- package/dist/ionic/p-48c96b9c.js +4 -0
- package/dist/ionic/{p-aa5358cb.system.entry.js → p-48d7aa61.system.entry.js} +1 -1
- package/dist/ionic/{p-c6181d52.system.js → p-49530528.system.js} +1 -1
- package/dist/ionic/p-4e2452de.entry.js +4 -0
- package/dist/ionic/{p-1b57577b.entry.js → p-5222cdd0.entry.js} +1 -1
- package/dist/ionic/p-5bacc2dc.entry.js +4 -0
- package/dist/ionic/p-5bc2035a.entry.js +4 -0
- package/dist/ionic/p-5d706e16.system.js +4 -0
- package/dist/ionic/p-61740302.entry.js +4 -0
- package/dist/ionic/{p-c7e16491.js → p-646e5cb0.js} +1 -1
- package/dist/ionic/p-64bfc41b.entry.js +4 -0
- package/dist/ionic/p-65492fd5.entry.js +4 -0
- package/dist/ionic/p-66cb9ae9.entry.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-67feade9.js} +1 -1
- package/dist/ionic/{p-2b37f5bd.entry.js → p-68728b43.entry.js} +1 -1
- package/dist/ionic/p-6a304027.js +4 -0
- package/dist/ionic/p-6aeef436.system.entry.js +4 -0
- package/dist/ionic/{p-491deb33.entry.js → p-6f58c884.entry.js} +1 -1
- package/dist/ionic/p-701188f8.system.entry.js +4 -0
- package/dist/ionic/{p-96503a77.entry.js → p-702d3b7d.entry.js} +1 -1
- package/dist/ionic/p-703c78f0.js +4 -0
- package/dist/ionic/{p-1e4371bd.js → p-705a8c00.js} +1 -1
- package/dist/ionic/p-740566fc.system.js +4 -0
- package/dist/ionic/p-757b4aa4.system.entry.js +4 -0
- package/dist/ionic/p-769484a8.system.js +4 -0
- package/dist/ionic/{p-6d857105.system.entry.js → p-7a3cc822.system.entry.js} +1 -1
- package/dist/ionic/p-7a5a9a11.entry.js +4 -0
- package/dist/ionic/{p-7f375f5a.entry.js → p-7b24df04.entry.js} +1 -1
- package/dist/ionic/p-7c64f804.entry.js +4 -0
- package/dist/ionic/p-7cca9c01.system.js +4 -0
- package/dist/ionic/p-8235cab9.system.entry.js +4 -0
- package/dist/ionic/{p-1e1b3d99.system.entry.js → p-872bf4d3.system.entry.js} +1 -1
- package/dist/ionic/{p-fca0933c.system.entry.js → p-8a2509af.system.entry.js} +1 -1
- package/dist/ionic/p-8ac6a104.system.entry.js +4 -0
- package/dist/ionic/p-8af57279.js +4 -0
- package/dist/ionic/p-8b067044.system.entry.js +4 -0
- package/dist/ionic/{p-7de39857.system.entry.js → p-8cf8bda2.system.entry.js} +1 -1
- package/dist/ionic/{p-dc65c03b.js → p-92585b67.js} +1 -1
- package/dist/ionic/p-9282e480.system.entry.js +4 -0
- package/dist/ionic/{p-d4a694c5.system.entry.js → p-95b84628.system.entry.js} +1 -1
- package/dist/ionic/p-96eaa7e2.entry.js +4 -0
- package/dist/ionic/{p-505121c4.entry.js → p-97195002.entry.js} +1 -1
- package/dist/ionic/p-9890a4c4.entry.js +4 -0
- package/dist/ionic/{p-a93873de.system.js → p-995f77b5.system.js} +1 -1
- package/dist/ionic/p-996a2209.system.js +4 -0
- package/dist/ionic/{p-f687573e.system.js → p-999693a8.system.js} +1 -1
- package/dist/ionic/{p-eecf3a84.entry.js → p-9cbf03b9.entry.js} +1 -1
- package/dist/ionic/{p-98203dbd.system.entry.js → p-9d134a58.system.entry.js} +1 -1
- package/dist/ionic/p-a03a1264.system.js +4 -0
- package/dist/ionic/{p-19ea7bff.system.js → p-a3d8a4d8.system.js} +1 -1
- package/dist/ionic/p-a5537ce0.system.entry.js +4 -0
- package/dist/ionic/p-a6af8913.js +4 -0
- package/dist/ionic/{p-83f7a890.system.entry.js → p-a861930f.system.entry.js} +1 -1
- package/dist/ionic/p-a9fb3848.entry.js +4 -0
- package/dist/ionic/p-aa5f8086.system.entry.js +4 -0
- package/dist/ionic/p-ab6f49d3.system.entry.js +4 -0
- package/dist/ionic/{p-b0fbe12b.entry.js → p-ae2ffc81.entry.js} +1 -1
- package/dist/ionic/{p-dfb78785.system.js → p-ae31a576.system.js} +1 -1
- package/dist/ionic/{p-0065a3d0.system.entry.js → p-aed2b108.system.entry.js} +1 -1
- package/dist/ionic/{p-1f772e46.entry.js → p-b0df97b9.entry.js} +1 -1
- package/dist/ionic/p-b46ccde5.js +4 -0
- package/dist/ionic/{p-89611183.system.js → p-b5defde7.system.js} +1 -1
- package/dist/ionic/p-b6438d56.js +4 -0
- package/dist/ionic/{p-8b3ff142.entry.js → p-ba1396d4.entry.js} +1 -1
- package/dist/ionic/p-bce90bcc.entry.js +4 -0
- package/dist/ionic/p-bd5f5dd5.system.entry.js +4 -0
- package/dist/ionic/{p-b0d099be.js → p-bddc8f8e.js} +1 -1
- package/dist/ionic/p-be720bce.entry.js +4 -0
- package/dist/ionic/p-be7ba661.system.entry.js +4 -0
- package/dist/ionic/p-c8414717.entry.js +4 -0
- package/dist/ionic/p-c95c6694.entry.js +4 -0
- package/dist/ionic/{p-3ba261ac.entry.js → p-cc1e9101.entry.js} +1 -1
- package/dist/ionic/{p-3d9ecf70.entry.js → p-cc5c828d.entry.js} +1 -1
- package/dist/ionic/p-cc8dc05a.js +4 -0
- package/dist/ionic/p-cd78816f.system.js +4 -0
- package/dist/ionic/{p-4384e5de.system.entry.js → p-cdc702c5.system.entry.js} +1 -1
- package/dist/ionic/p-cdd44009.system.entry.js +4 -0
- package/dist/ionic/p-cf4097be.system.js +4 -0
- package/dist/ionic/p-d08ba7ce.entry.js +4 -0
- package/dist/ionic/p-d599973b.entry.js +4 -0
- package/dist/ionic/{p-86deab17.system.entry.js → p-d74676dc.system.entry.js} +1 -1
- package/dist/ionic/p-d95bfbd2.entry.js +4 -0
- package/dist/ionic/p-da014e9d.entry.js +4 -0
- package/dist/ionic/{p-4a963829.system.entry.js → p-dd2e30d9.system.entry.js} +1 -1
- package/dist/ionic/{p-9146695e.system.js → p-ddf9c7fa.system.js} +1 -1
- package/dist/ionic/{p-21904499.entry.js → p-de1e5d8a.entry.js} +1 -1
- package/dist/ionic/p-df41ef98.entry.js +4 -0
- package/dist/ionic/{p-d60342e3.js → p-e046c13d.js} +1 -1
- package/dist/ionic/{p-76256933.system.entry.js → p-e0b155a5.system.entry.js} +1 -1
- package/dist/ionic/p-e0cda956.js +4 -0
- package/dist/ionic/{p-289d16f5.system.js → p-e217d369.system.js} +1 -1
- package/dist/ionic/p-e5c0076e.system.entry.js +4 -0
- package/dist/ionic/{p-2690b1de.js → p-e7aee7cd.js} +1 -1
- package/dist/ionic/{p-acaa514f.system.entry.js → p-ea72f71b.system.entry.js} +1 -1
- package/dist/ionic/{p-8985cdb6.system.js → p-eb099866.system.js} +1 -1
- package/dist/ionic/p-eb8b0915.system.js +4 -0
- package/dist/ionic/p-ec7c2905.system.entry.js +4 -0
- package/dist/ionic/{p-62bb4a33.system.entry.js → p-ed1491e2.system.entry.js} +1 -1
- package/dist/ionic/{p-cf6bad6d.entry.js → p-ed96c9a0.entry.js} +1 -1
- package/dist/ionic/p-ee00b4c1.entry.js +4 -0
- package/dist/ionic/p-efdc8a89.entry.js +4 -0
- package/dist/ionic/{p-89d17c48.system.entry.js → p-f8a3a05d.system.entry.js} +1 -1
- package/dist/ionic/{p-4fbf3556.system.entry.js → p-f92ff9d2.system.entry.js} +1 -1
- package/dist/ionic/p-f9f735c2.system.entry.js +4 -0
- package/dist/ionic/{p-4440f5b4.entry.js → p-fa4b0c41.entry.js} +1 -1
- package/dist/ionic/p-fb885b36.system.entry.js +4 -0
- package/dist/ionic/{p-9ea607bd.system.js → p-fe533e9b.system.js} +2 -2
- package/dist/ionic/p-ff896585.system.js +4 -0
- package/dist/types/global/ionic-global.d.ts +2 -0
- package/hydrate/index.js +50 -50
- package/hydrate/index.mjs +50 -50
- package/package.json +1 -1
- package/components/hardware-back-button.js +0 -115
- package/components/index8.js +0 -128
- package/components/index9.js +0 -167
- 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-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/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-1dfe9aa7.entry.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-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-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-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-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-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,38 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Logs a warning to the console with an Ionic prefix
|
|
8
|
-
* to indicate the library that is warning the developer.
|
|
9
|
-
*
|
|
10
|
-
* @param message - The string message to be logged to the console.
|
|
11
|
-
*/
|
|
12
|
-
const printIonWarning = (message, ...params) => {
|
|
13
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
14
|
-
};
|
|
15
|
-
/*
|
|
16
|
-
* Logs an error to the console with an Ionic prefix
|
|
17
|
-
* to indicate the library that is warning the developer.
|
|
18
|
-
*
|
|
19
|
-
* @param message - The string message to be logged to the console.
|
|
20
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
21
|
-
*/
|
|
22
|
-
const printIonError = (message, ...params) => {
|
|
23
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
27
|
-
* within a specific selector.
|
|
28
|
-
*
|
|
29
|
-
* @param el The web component element this is requiring the element.
|
|
30
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
31
|
-
*/
|
|
32
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
33
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
exports.printIonError = printIonError;
|
|
37
|
-
exports.printIonWarning = printIonWarning;
|
|
38
|
-
exports.printRequiredElementError = printRequiredElementError;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
const win = typeof window !== 'undefined' ? window : undefined;
|
|
7
|
-
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
8
|
-
|
|
9
|
-
exports.doc = doc;
|
|
10
|
-
exports.win = win;
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
const index = require('./index-b9e25ecd.js');
|
|
7
|
-
|
|
8
|
-
// TODO(FW-2832): types
|
|
9
|
-
class Config {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.m = new Map();
|
|
12
|
-
}
|
|
13
|
-
reset(configObj) {
|
|
14
|
-
this.m = new Map(Object.entries(configObj));
|
|
15
|
-
}
|
|
16
|
-
get(key, fallback) {
|
|
17
|
-
const value = this.m.get(key);
|
|
18
|
-
return value !== undefined ? value : fallback;
|
|
19
|
-
}
|
|
20
|
-
getBoolean(key, fallback = false) {
|
|
21
|
-
const val = this.m.get(key);
|
|
22
|
-
if (val === undefined) {
|
|
23
|
-
return fallback;
|
|
24
|
-
}
|
|
25
|
-
if (typeof val === 'string') {
|
|
26
|
-
return val === 'true';
|
|
27
|
-
}
|
|
28
|
-
return !!val;
|
|
29
|
-
}
|
|
30
|
-
getNumber(key, fallback) {
|
|
31
|
-
const val = parseFloat(this.m.get(key));
|
|
32
|
-
return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
|
|
33
|
-
}
|
|
34
|
-
set(key, value) {
|
|
35
|
-
this.m.set(key, value);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const config = /*@__PURE__*/ new Config();
|
|
39
|
-
const configFromSession = (win) => {
|
|
40
|
-
try {
|
|
41
|
-
const configStr = win.sessionStorage.getItem(IONIC_SESSION_KEY);
|
|
42
|
-
return configStr !== null ? JSON.parse(configStr) : {};
|
|
43
|
-
}
|
|
44
|
-
catch (e) {
|
|
45
|
-
return {};
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
const saveConfig = (win, c) => {
|
|
49
|
-
try {
|
|
50
|
-
win.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(c));
|
|
51
|
-
}
|
|
52
|
-
catch (e) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const configFromURL = (win) => {
|
|
57
|
-
const configObj = {};
|
|
58
|
-
win.location.search
|
|
59
|
-
.slice(1)
|
|
60
|
-
.split('&')
|
|
61
|
-
.map((entry) => entry.split('='))
|
|
62
|
-
.map(([key, value]) => {
|
|
63
|
-
try {
|
|
64
|
-
return [decodeURIComponent(key), decodeURIComponent(value)];
|
|
65
|
-
}
|
|
66
|
-
catch (e) {
|
|
67
|
-
return ['', ''];
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
.filter(([key]) => startsWith(key, IONIC_PREFIX))
|
|
71
|
-
.map(([key, value]) => [key.slice(IONIC_PREFIX.length), value])
|
|
72
|
-
.forEach(([key, value]) => {
|
|
73
|
-
configObj[key] = value;
|
|
74
|
-
});
|
|
75
|
-
return configObj;
|
|
76
|
-
};
|
|
77
|
-
const startsWith = (input, search) => {
|
|
78
|
-
return input.substr(0, search.length) === search;
|
|
79
|
-
};
|
|
80
|
-
const IONIC_PREFIX = 'ionic:';
|
|
81
|
-
const IONIC_SESSION_KEY = 'ionic-persist-config';
|
|
82
|
-
|
|
83
|
-
const getPlatforms = (win) => setupPlatforms(win);
|
|
84
|
-
const isPlatform = (winOrPlatform, platform) => {
|
|
85
|
-
if (typeof winOrPlatform === 'string') {
|
|
86
|
-
platform = winOrPlatform;
|
|
87
|
-
winOrPlatform = undefined;
|
|
88
|
-
}
|
|
89
|
-
return getPlatforms(winOrPlatform).includes(platform);
|
|
90
|
-
};
|
|
91
|
-
const setupPlatforms = (win = window) => {
|
|
92
|
-
if (typeof win === 'undefined') {
|
|
93
|
-
return [];
|
|
94
|
-
}
|
|
95
|
-
win.Ionic = win.Ionic || {};
|
|
96
|
-
let platforms = win.Ionic.platforms;
|
|
97
|
-
if (platforms == null) {
|
|
98
|
-
platforms = win.Ionic.platforms = detectPlatforms(win);
|
|
99
|
-
platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
|
|
100
|
-
}
|
|
101
|
-
return platforms;
|
|
102
|
-
};
|
|
103
|
-
const detectPlatforms = (win) => {
|
|
104
|
-
const customPlatformMethods = config.get('platform');
|
|
105
|
-
return Object.keys(PLATFORMS_MAP).filter((p) => {
|
|
106
|
-
const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
|
|
107
|
-
return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
|
111
|
-
const isIpad = (win) => {
|
|
112
|
-
// iOS 12 and below
|
|
113
|
-
if (testUserAgent(win, /iPad/i)) {
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
// iOS 13+
|
|
117
|
-
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
|
118
|
-
return true;
|
|
119
|
-
}
|
|
120
|
-
return false;
|
|
121
|
-
};
|
|
122
|
-
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
|
123
|
-
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
124
|
-
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
125
|
-
const isAndroidTablet = (win) => {
|
|
126
|
-
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
|
127
|
-
};
|
|
128
|
-
const isPhablet = (win) => {
|
|
129
|
-
const width = win.innerWidth;
|
|
130
|
-
const height = win.innerHeight;
|
|
131
|
-
const smallest = Math.min(width, height);
|
|
132
|
-
const largest = Math.max(width, height);
|
|
133
|
-
return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
|
|
134
|
-
};
|
|
135
|
-
const isTablet = (win) => {
|
|
136
|
-
const width = win.innerWidth;
|
|
137
|
-
const height = win.innerHeight;
|
|
138
|
-
const smallest = Math.min(width, height);
|
|
139
|
-
const largest = Math.max(width, height);
|
|
140
|
-
return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
|
|
141
|
-
};
|
|
142
|
-
const isMobile = (win) => matchMedia(win, '(any-pointer:coarse)');
|
|
143
|
-
const isDesktop = (win) => !isMobile(win);
|
|
144
|
-
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
145
|
-
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
146
|
-
const isCapacitorNative = (win) => {
|
|
147
|
-
const capacitor = win['Capacitor'];
|
|
148
|
-
return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
|
|
149
|
-
};
|
|
150
|
-
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
151
|
-
const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
|
|
152
|
-
const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
|
153
|
-
const matchMedia = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
|
|
154
|
-
const PLATFORMS_MAP = {
|
|
155
|
-
ipad: isIpad,
|
|
156
|
-
iphone: isIphone,
|
|
157
|
-
ios: isIOS,
|
|
158
|
-
android: isAndroid,
|
|
159
|
-
phablet: isPhablet,
|
|
160
|
-
tablet: isTablet,
|
|
161
|
-
cordova: isCordova,
|
|
162
|
-
capacitor: isCapacitorNative,
|
|
163
|
-
electron: isElectron,
|
|
164
|
-
pwa: isPWA,
|
|
165
|
-
mobile: isMobile,
|
|
166
|
-
mobileweb: isMobileWeb,
|
|
167
|
-
desktop: isDesktop,
|
|
168
|
-
hybrid: isHybrid,
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
// TODO(FW-2832): types
|
|
172
|
-
let defaultMode;
|
|
173
|
-
const getIonMode = (ref) => {
|
|
174
|
-
return (ref && index.getMode(ref)) || defaultMode;
|
|
175
|
-
};
|
|
176
|
-
const initialize = (userConfig = {}) => {
|
|
177
|
-
if (typeof window === 'undefined') {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
const doc = window.document;
|
|
181
|
-
const win = window;
|
|
182
|
-
const Ionic = (win.Ionic = win.Ionic || {});
|
|
183
|
-
const platformHelpers = {};
|
|
184
|
-
if (userConfig._ael) {
|
|
185
|
-
platformHelpers.ael = userConfig._ael;
|
|
186
|
-
}
|
|
187
|
-
if (userConfig._rel) {
|
|
188
|
-
platformHelpers.rel = userConfig._rel;
|
|
189
|
-
}
|
|
190
|
-
if (userConfig._ce) {
|
|
191
|
-
platformHelpers.ce = userConfig._ce;
|
|
192
|
-
}
|
|
193
|
-
index.setPlatformHelpers(platformHelpers);
|
|
194
|
-
// create the Ionic.config from raw config object (if it exists)
|
|
195
|
-
// and convert Ionic.config into a ConfigApi that has a get() fn
|
|
196
|
-
const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), { persistConfig: false }), Ionic.config), configFromURL(win)), userConfig);
|
|
197
|
-
config.reset(configObj);
|
|
198
|
-
if (config.getBoolean('persistConfig')) {
|
|
199
|
-
saveConfig(win, configObj);
|
|
200
|
-
}
|
|
201
|
-
// Setup platforms
|
|
202
|
-
setupPlatforms(win);
|
|
203
|
-
// first see if the mode was set as an attribute on <html>
|
|
204
|
-
// which could have been set by the user, or by pre-rendering
|
|
205
|
-
// otherwise get the mode via config settings, and fallback to md
|
|
206
|
-
Ionic.config = config;
|
|
207
|
-
Ionic.mode = defaultMode = config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));
|
|
208
|
-
config.set('mode', defaultMode);
|
|
209
|
-
doc.documentElement.setAttribute('mode', defaultMode);
|
|
210
|
-
doc.documentElement.classList.add(defaultMode);
|
|
211
|
-
if (config.getBoolean('_testing')) {
|
|
212
|
-
config.set('animated', false);
|
|
213
|
-
}
|
|
214
|
-
const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };
|
|
215
|
-
const isAllowedIonicModeValue = (elmMode) => ['ios', 'md'].includes(elmMode);
|
|
216
|
-
index.setMode((elm) => {
|
|
217
|
-
while (elm) {
|
|
218
|
-
const elmMode = elm.mode || elm.getAttribute('mode');
|
|
219
|
-
if (elmMode) {
|
|
220
|
-
if (isAllowedIonicModeValue(elmMode)) {
|
|
221
|
-
return elmMode;
|
|
222
|
-
}
|
|
223
|
-
else if (isIonicElement(elm)) {
|
|
224
|
-
console.warn('Invalid ionic mode: "' + elmMode + '", expected: "ios" or "md"');
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
elm = elm.parentElement;
|
|
228
|
-
}
|
|
229
|
-
return defaultMode;
|
|
230
|
-
});
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
exports.config = config;
|
|
234
|
-
exports.getIonMode = getIonMode;
|
|
235
|
-
exports.getPlatforms = getPlatforms;
|
|
236
|
-
exports.initialize = initialize;
|
|
237
|
-
exports.isPlatform = isPlatform;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { w as win } from './index-a5d50daf.js';
|
|
5
|
-
import { c as config } from './ionic-global-8f9440ec.js';
|
|
6
|
-
import './index-4e02bb5d.js';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* CloseWatcher is a newer API that lets
|
|
10
|
-
* use detect the hardware back button event
|
|
11
|
-
* in a web browser: https://caniuse.com/?search=closewatcher
|
|
12
|
-
* However, not every browser supports it yet.
|
|
13
|
-
*
|
|
14
|
-
* This needs to be a function so that we can
|
|
15
|
-
* check the config once it has been set.
|
|
16
|
-
* Otherwise, this code would be evaluated the
|
|
17
|
-
* moment this file is evaluated which could be
|
|
18
|
-
* before the config is set.
|
|
19
|
-
*/
|
|
20
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win !== undefined && 'CloseWatcher' in win;
|
|
21
|
-
/**
|
|
22
|
-
* When hardwareBackButton: false in config,
|
|
23
|
-
* we need to make sure we also block the default
|
|
24
|
-
* webview behavior. If we don't then it will be
|
|
25
|
-
* possible for users to navigate backward while
|
|
26
|
-
* an overlay is still open. Additionally, it will
|
|
27
|
-
* give the appearance that the hardwareBackButton
|
|
28
|
-
* config is not working as the page transition
|
|
29
|
-
* will still happen.
|
|
30
|
-
*/
|
|
31
|
-
const blockHardwareBackButton = () => {
|
|
32
|
-
document.addEventListener('backbutton', () => { }); // eslint-disable-line
|
|
33
|
-
};
|
|
34
|
-
const startHardwareBackButton = () => {
|
|
35
|
-
const doc = document;
|
|
36
|
-
let busy = false;
|
|
37
|
-
const backButtonCallback = () => {
|
|
38
|
-
if (busy) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
let index = 0;
|
|
42
|
-
let handlers = [];
|
|
43
|
-
const ev = new CustomEvent('ionBackButton', {
|
|
44
|
-
bubbles: false,
|
|
45
|
-
detail: {
|
|
46
|
-
register(priority, handler) {
|
|
47
|
-
handlers.push({ priority, handler, id: index++ });
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
doc.dispatchEvent(ev);
|
|
52
|
-
const executeAction = async (handlerRegister) => {
|
|
53
|
-
try {
|
|
54
|
-
if (handlerRegister === null || handlerRegister === void 0 ? void 0 : handlerRegister.handler) {
|
|
55
|
-
const result = handlerRegister.handler(processHandlers);
|
|
56
|
-
if (result != null) {
|
|
57
|
-
await result;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
catch (e) {
|
|
62
|
-
console.error(e);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const processHandlers = () => {
|
|
66
|
-
if (handlers.length > 0) {
|
|
67
|
-
let selectedHandler = {
|
|
68
|
-
priority: Number.MIN_SAFE_INTEGER,
|
|
69
|
-
handler: () => undefined,
|
|
70
|
-
id: -1,
|
|
71
|
-
};
|
|
72
|
-
handlers.forEach((handler) => {
|
|
73
|
-
if (handler.priority >= selectedHandler.priority) {
|
|
74
|
-
selectedHandler = handler;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
busy = true;
|
|
78
|
-
handlers = handlers.filter((handler) => handler.id !== selectedHandler.id);
|
|
79
|
-
executeAction(selectedHandler).then(() => (busy = false));
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
processHandlers();
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* If the CloseWatcher is defined then
|
|
86
|
-
* we don't want to also listen for the native
|
|
87
|
-
* backbutton event otherwise we may get duplicate
|
|
88
|
-
* events firing.
|
|
89
|
-
*/
|
|
90
|
-
if (shouldUseCloseWatcher()) {
|
|
91
|
-
let watcher;
|
|
92
|
-
const configureWatcher = () => {
|
|
93
|
-
watcher === null || watcher === void 0 ? void 0 : watcher.destroy();
|
|
94
|
-
watcher = new win.CloseWatcher();
|
|
95
|
-
/**
|
|
96
|
-
* Once a close request happens
|
|
97
|
-
* the watcher gets destroyed.
|
|
98
|
-
* As a result, we need to re-configure
|
|
99
|
-
* the watcher so we can respond to other
|
|
100
|
-
* close requests.
|
|
101
|
-
*/
|
|
102
|
-
watcher.onclose = () => {
|
|
103
|
-
backButtonCallback();
|
|
104
|
-
configureWatcher();
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
configureWatcher();
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
doc.addEventListener('backbutton', backButtonCallback);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
114
|
-
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
115
|
-
|
|
116
|
-
export { MENU_BACK_BUTTON_PRIORITY, OVERLAY_BACK_BUTTON_PRIORITY, blockHardwareBackButton, shouldUseCloseWatcher, startHardwareBackButton };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Logs a warning to the console with an Ionic prefix
|
|
6
|
-
* to indicate the library that is warning the developer.
|
|
7
|
-
*
|
|
8
|
-
* @param message - The string message to be logged to the console.
|
|
9
|
-
*/
|
|
10
|
-
const printIonWarning = (message, ...params) => {
|
|
11
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
12
|
-
};
|
|
13
|
-
/*
|
|
14
|
-
* Logs an error to the console with an Ionic prefix
|
|
15
|
-
* to indicate the library that is warning the developer.
|
|
16
|
-
*
|
|
17
|
-
* @param message - The string message to be logged to the console.
|
|
18
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
19
|
-
*/
|
|
20
|
-
const printIonError = (message, ...params) => {
|
|
21
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Prints an error informing developers that an implementation requires an element to be used
|
|
25
|
-
* within a specific selector.
|
|
26
|
-
*
|
|
27
|
-
* @param el The web component element this is requiring the element.
|
|
28
|
-
* @param targetSelectors The selector or selectors that were not found.
|
|
29
|
-
*/
|
|
30
|
-
const printRequiredElementError = (el, ...targetSelectors) => {
|
|
31
|
-
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export { printIonError as a, printRequiredElementError as b, printIonWarning as p };
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { a as setPlatformHelpers, g as getMode, c as setMode } from './index-4e02bb5d.js';
|
|
5
|
-
|
|
6
|
-
// TODO(FW-2832): types
|
|
7
|
-
class Config {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.m = new Map();
|
|
10
|
-
}
|
|
11
|
-
reset(configObj) {
|
|
12
|
-
this.m = new Map(Object.entries(configObj));
|
|
13
|
-
}
|
|
14
|
-
get(key, fallback) {
|
|
15
|
-
const value = this.m.get(key);
|
|
16
|
-
return value !== undefined ? value : fallback;
|
|
17
|
-
}
|
|
18
|
-
getBoolean(key, fallback = false) {
|
|
19
|
-
const val = this.m.get(key);
|
|
20
|
-
if (val === undefined) {
|
|
21
|
-
return fallback;
|
|
22
|
-
}
|
|
23
|
-
if (typeof val === 'string') {
|
|
24
|
-
return val === 'true';
|
|
25
|
-
}
|
|
26
|
-
return !!val;
|
|
27
|
-
}
|
|
28
|
-
getNumber(key, fallback) {
|
|
29
|
-
const val = parseFloat(this.m.get(key));
|
|
30
|
-
return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
|
|
31
|
-
}
|
|
32
|
-
set(key, value) {
|
|
33
|
-
this.m.set(key, value);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
const config = /*@__PURE__*/ new Config();
|
|
37
|
-
const configFromSession = (win) => {
|
|
38
|
-
try {
|
|
39
|
-
const configStr = win.sessionStorage.getItem(IONIC_SESSION_KEY);
|
|
40
|
-
return configStr !== null ? JSON.parse(configStr) : {};
|
|
41
|
-
}
|
|
42
|
-
catch (e) {
|
|
43
|
-
return {};
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const saveConfig = (win, c) => {
|
|
47
|
-
try {
|
|
48
|
-
win.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(c));
|
|
49
|
-
}
|
|
50
|
-
catch (e) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
const configFromURL = (win) => {
|
|
55
|
-
const configObj = {};
|
|
56
|
-
win.location.search
|
|
57
|
-
.slice(1)
|
|
58
|
-
.split('&')
|
|
59
|
-
.map((entry) => entry.split('='))
|
|
60
|
-
.map(([key, value]) => {
|
|
61
|
-
try {
|
|
62
|
-
return [decodeURIComponent(key), decodeURIComponent(value)];
|
|
63
|
-
}
|
|
64
|
-
catch (e) {
|
|
65
|
-
return ['', ''];
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
.filter(([key]) => startsWith(key, IONIC_PREFIX))
|
|
69
|
-
.map(([key, value]) => [key.slice(IONIC_PREFIX.length), value])
|
|
70
|
-
.forEach(([key, value]) => {
|
|
71
|
-
configObj[key] = value;
|
|
72
|
-
});
|
|
73
|
-
return configObj;
|
|
74
|
-
};
|
|
75
|
-
const startsWith = (input, search) => {
|
|
76
|
-
return input.substr(0, search.length) === search;
|
|
77
|
-
};
|
|
78
|
-
const IONIC_PREFIX = 'ionic:';
|
|
79
|
-
const IONIC_SESSION_KEY = 'ionic-persist-config';
|
|
80
|
-
|
|
81
|
-
const getPlatforms = (win) => setupPlatforms(win);
|
|
82
|
-
const isPlatform = (winOrPlatform, platform) => {
|
|
83
|
-
if (typeof winOrPlatform === 'string') {
|
|
84
|
-
platform = winOrPlatform;
|
|
85
|
-
winOrPlatform = undefined;
|
|
86
|
-
}
|
|
87
|
-
return getPlatforms(winOrPlatform).includes(platform);
|
|
88
|
-
};
|
|
89
|
-
const setupPlatforms = (win = window) => {
|
|
90
|
-
if (typeof win === 'undefined') {
|
|
91
|
-
return [];
|
|
92
|
-
}
|
|
93
|
-
win.Ionic = win.Ionic || {};
|
|
94
|
-
let platforms = win.Ionic.platforms;
|
|
95
|
-
if (platforms == null) {
|
|
96
|
-
platforms = win.Ionic.platforms = detectPlatforms(win);
|
|
97
|
-
platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
|
|
98
|
-
}
|
|
99
|
-
return platforms;
|
|
100
|
-
};
|
|
101
|
-
const detectPlatforms = (win) => {
|
|
102
|
-
const customPlatformMethods = config.get('platform');
|
|
103
|
-
return Object.keys(PLATFORMS_MAP).filter((p) => {
|
|
104
|
-
const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
|
|
105
|
-
return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
|
109
|
-
const isIpad = (win) => {
|
|
110
|
-
// iOS 12 and below
|
|
111
|
-
if (testUserAgent(win, /iPad/i)) {
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
// iOS 13+
|
|
115
|
-
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
return false;
|
|
119
|
-
};
|
|
120
|
-
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
|
121
|
-
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
122
|
-
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
123
|
-
const isAndroidTablet = (win) => {
|
|
124
|
-
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
|
125
|
-
};
|
|
126
|
-
const isPhablet = (win) => {
|
|
127
|
-
const width = win.innerWidth;
|
|
128
|
-
const height = win.innerHeight;
|
|
129
|
-
const smallest = Math.min(width, height);
|
|
130
|
-
const largest = Math.max(width, height);
|
|
131
|
-
return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
|
|
132
|
-
};
|
|
133
|
-
const isTablet = (win) => {
|
|
134
|
-
const width = win.innerWidth;
|
|
135
|
-
const height = win.innerHeight;
|
|
136
|
-
const smallest = Math.min(width, height);
|
|
137
|
-
const largest = Math.max(width, height);
|
|
138
|
-
return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
|
|
139
|
-
};
|
|
140
|
-
const isMobile = (win) => matchMedia(win, '(any-pointer:coarse)');
|
|
141
|
-
const isDesktop = (win) => !isMobile(win);
|
|
142
|
-
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
143
|
-
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
144
|
-
const isCapacitorNative = (win) => {
|
|
145
|
-
const capacitor = win['Capacitor'];
|
|
146
|
-
return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
|
|
147
|
-
};
|
|
148
|
-
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
149
|
-
const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
|
|
150
|
-
const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
|
151
|
-
const matchMedia = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
|
|
152
|
-
const PLATFORMS_MAP = {
|
|
153
|
-
ipad: isIpad,
|
|
154
|
-
iphone: isIphone,
|
|
155
|
-
ios: isIOS,
|
|
156
|
-
android: isAndroid,
|
|
157
|
-
phablet: isPhablet,
|
|
158
|
-
tablet: isTablet,
|
|
159
|
-
cordova: isCordova,
|
|
160
|
-
capacitor: isCapacitorNative,
|
|
161
|
-
electron: isElectron,
|
|
162
|
-
pwa: isPWA,
|
|
163
|
-
mobile: isMobile,
|
|
164
|
-
mobileweb: isMobileWeb,
|
|
165
|
-
desktop: isDesktop,
|
|
166
|
-
hybrid: isHybrid,
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
// TODO(FW-2832): types
|
|
170
|
-
let defaultMode;
|
|
171
|
-
const getIonMode = (ref) => {
|
|
172
|
-
return (ref && getMode(ref)) || defaultMode;
|
|
173
|
-
};
|
|
174
|
-
const initialize = (userConfig = {}) => {
|
|
175
|
-
if (typeof window === 'undefined') {
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
const doc = window.document;
|
|
179
|
-
const win = window;
|
|
180
|
-
const Ionic = (win.Ionic = win.Ionic || {});
|
|
181
|
-
const platformHelpers = {};
|
|
182
|
-
if (userConfig._ael) {
|
|
183
|
-
platformHelpers.ael = userConfig._ael;
|
|
184
|
-
}
|
|
185
|
-
if (userConfig._rel) {
|
|
186
|
-
platformHelpers.rel = userConfig._rel;
|
|
187
|
-
}
|
|
188
|
-
if (userConfig._ce) {
|
|
189
|
-
platformHelpers.ce = userConfig._ce;
|
|
190
|
-
}
|
|
191
|
-
setPlatformHelpers(platformHelpers);
|
|
192
|
-
// create the Ionic.config from raw config object (if it exists)
|
|
193
|
-
// and convert Ionic.config into a ConfigApi that has a get() fn
|
|
194
|
-
const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), { persistConfig: false }), Ionic.config), configFromURL(win)), userConfig);
|
|
195
|
-
config.reset(configObj);
|
|
196
|
-
if (config.getBoolean('persistConfig')) {
|
|
197
|
-
saveConfig(win, configObj);
|
|
198
|
-
}
|
|
199
|
-
// Setup platforms
|
|
200
|
-
setupPlatforms(win);
|
|
201
|
-
// first see if the mode was set as an attribute on <html>
|
|
202
|
-
// which could have been set by the user, or by pre-rendering
|
|
203
|
-
// otherwise get the mode via config settings, and fallback to md
|
|
204
|
-
Ionic.config = config;
|
|
205
|
-
Ionic.mode = defaultMode = config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));
|
|
206
|
-
config.set('mode', defaultMode);
|
|
207
|
-
doc.documentElement.setAttribute('mode', defaultMode);
|
|
208
|
-
doc.documentElement.classList.add(defaultMode);
|
|
209
|
-
if (config.getBoolean('_testing')) {
|
|
210
|
-
config.set('animated', false);
|
|
211
|
-
}
|
|
212
|
-
const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };
|
|
213
|
-
const isAllowedIonicModeValue = (elmMode) => ['ios', 'md'].includes(elmMode);
|
|
214
|
-
setMode((elm) => {
|
|
215
|
-
while (elm) {
|
|
216
|
-
const elmMode = elm.mode || elm.getAttribute('mode');
|
|
217
|
-
if (elmMode) {
|
|
218
|
-
if (isAllowedIonicModeValue(elmMode)) {
|
|
219
|
-
return elmMode;
|
|
220
|
-
}
|
|
221
|
-
else if (isIonicElement(elm)) {
|
|
222
|
-
console.warn('Invalid ionic mode: "' + elmMode + '", expected: "ios" or "md"');
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
elm = elm.parentElement;
|
|
226
|
-
}
|
|
227
|
-
return defaultMode;
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
export { isPlatform as a, getIonMode as b, config as c, getPlatforms as g, initialize as i };
|