@ionic/core 8.3.2-dev.11728314937.130218e6 → 8.3.2-dev.11729014526.1ab61c12
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/action-sheet.js +1 -1
- package/components/alert.js +1 -2
- package/components/animation.js +1 -1
- package/components/backdrop.js +1 -1
- package/components/button.js +1 -1
- package/components/buttons.js +1 -1
- package/components/capacitor.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/focus-visible.js +1 -8
- package/components/framework-delegate.js +1 -3
- package/components/hardware-back-button.js +115 -0
- package/components/helpers.js +1 -4
- package/components/index2.js +1 -2
- package/components/index4.js +3 -1
- package/components/index5.js +3 -27
- package/components/index6.js +27 -124
- package/components/index7.js +111 -150
- package/{dist/esm/index-7f65e865.js → components/index8.js} +2 -3
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +2 -1
- package/components/ion-accordion-group.js +1 -1
- package/components/ion-accordion.js +2 -3
- package/components/ion-app.js +74 -7
- package/components/ion-avatar.js +1 -1
- package/components/ion-back-button.js +2 -3
- package/components/ion-badge.js +1 -1
- package/components/ion-breadcrumb.js +2 -3
- package/components/ion-breadcrumbs.js +1 -1
- package/components/ion-card-content.js +1 -1
- package/components/ion-card-header.js +1 -1
- package/components/ion-card-subtitle.js +1 -1
- package/components/ion-card-title.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-col.js +1 -1
- package/components/ion-content.js +5 -7
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +2 -3
- package/components/ion-fab-button.js +2 -3
- package/components/ion-fab-list.js +1 -1
- package/components/ion-fab.js +1 -1
- package/components/ion-footer.js +5 -7
- package/components/ion-grid.js +1 -1
- package/components/ion-header.js +6 -8
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -2
- package/components/ion-infinite-scroll.js +2 -2
- package/components/ion-input-password-toggle.js +2 -3
- package/components/ion-input.js +2 -3
- package/components/ion-item-divider.js +1 -1
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +2 -2
- package/components/ion-loading.js +1 -2
- package/components/ion-menu-button.js +2 -3
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -3
- package/components/ion-nav.js +1 -2
- package/components/ion-note.js +1 -1
- package/components/ion-picker-legacy.js +1 -1
- package/components/ion-progress-bar.js +1 -2
- package/components/ion-range.js +2 -2
- package/components/ion-refresher-content.js +2 -3
- package/components/ion-refresher.js +2 -2
- package/components/ion-reorder-group.js +2 -2
- package/components/ion-reorder.js +2 -3
- package/components/ion-router-link.js +1 -1
- package/components/ion-router-outlet.js +1 -2
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +3 -4
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -3
- package/components/ion-skeleton-text.js +1 -2
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -2
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +8 -8
- package/components/ion-toggle.js +2 -3
- package/components/ion-toolbar.js +1 -1
- package/components/ionic-global.js +76 -189
- package/components/item.js +2 -3
- package/components/keyboard-controller.js +2 -4
- package/components/label.js +1 -1
- package/components/list-header.js +1 -1
- package/components/list.js +1 -1
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +4 -4
- package/components/picker-column-option.js +1 -1
- package/components/picker-column.js +2 -1
- package/components/picker-column2.js +1 -1
- package/components/popover.js +1 -1
- package/components/radio-group.js +1 -1
- package/components/radio.js +1 -1
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -2
- package/components/status-tap.js +1 -1
- package/dist/cjs/{animation-232e0c8f.js → animation-b4fdf128.js} +2 -2
- package/dist/cjs/{app-globals-0189a70c.js → app-globals-38bbc401.js} +1 -1
- package/dist/cjs/{button-active-41228dbf.js → button-active-3f2f60b4.js} +4 -4
- package/dist/cjs/{capacitor-806e7fee.js → capacitor-c04564bf.js} +3 -3
- package/dist/cjs/{data-cad5d489.js → data-b3a1a686.js} +1 -1
- package/dist/{esm/focus-visible-501aff19.js → cjs/focus-visible-7a0ce04f.js} +3 -8
- package/dist/cjs/{framework-delegate-cf116b1d.js → framework-delegate-55f5683a.js} +2 -4
- package/dist/cjs/{haptic-f0cad9a6.js → haptic-f6b37aa3.js} +1 -1
- package/dist/cjs/hardware-back-button-d37054f2.js +122 -0
- package/dist/cjs/{helpers-e75eb909.js → helpers-afaa9001.js} +1 -4
- package/dist/cjs/{index-1d02518d.js → index-2fa32189.js} +2 -2
- package/dist/cjs/{index-3ac79a1b.js → index-694a3808.js} +10 -10
- package/dist/cjs/{config-1349d5b4.js → index-73f75efb.js} +0 -79
- package/dist/cjs/{index-2c8b42cd.js → index-9509ecad.js} +7 -8
- package/dist/cjs/index-c8d52405.js +10 -0
- package/dist/cjs/{index-71085796.js → index-ed0f67a3.js} +7 -5
- package/dist/cjs/index.cjs.js +12 -10
- package/dist/cjs/{input-shims-2958dcc9.js → input-shims-ab680ecf.js} +18 -17
- package/dist/cjs/{input.utils-ed749ecb.js → input.utils-44ff82f0.js} +4 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +18 -18
- package/dist/cjs/ion-action-sheet.cjs.entry.js +25 -23
- package/dist/cjs/ion-alert.cjs.entry.js +35 -33
- package/dist/cjs/ion-app_8.cjs.entry.js +150 -84
- package/dist/cjs/ion-avatar_3.cjs.entry.js +12 -12
- package/dist/cjs/ion-back-button.cjs.entry.js +13 -13
- package/dist/cjs/ion-backdrop.cjs.entry.js +5 -5
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +24 -24
- package/dist/cjs/ion-button_2.cjs.entry.js +13 -13
- package/dist/cjs/ion-card_5.cjs.entry.js +19 -19
- package/dist/cjs/ion-checkbox.cjs.entry.js +15 -15
- package/dist/cjs/ion-chip.cjs.entry.js +5 -5
- package/dist/cjs/ion-col_3.cjs.entry.js +12 -12
- package/dist/cjs/ion-datetime-button.cjs.entry.js +8 -8
- package/dist/cjs/ion-datetime_3.cjs.entry.js +91 -89
- package/dist/cjs/ion-fab_3.cjs.entry.js +21 -21
- package/dist/cjs/ion-img.cjs.entry.js +10 -10
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +22 -22
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +14 -14
- package/dist/cjs/ion-input.cjs.entry.js +28 -27
- package/dist/cjs/ion-item-option_3.cjs.entry.js +19 -19
- package/dist/cjs/ion-item_8.cjs.entry.js +40 -40
- package/dist/cjs/ion-loading.cjs.entry.js +25 -23
- package/dist/cjs/ion-menu_3.cjs.entry.js +39 -37
- package/dist/cjs/ion-modal.cjs.entry.js +50 -48
- package/dist/cjs/ion-nav_2.cjs.entry.js +25 -25
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +7 -7
- package/dist/cjs/ion-picker-column.cjs.entry.js +14 -13
- package/dist/cjs/ion-picker.cjs.entry.js +7 -7
- package/dist/cjs/ion-popover.cjs.entry.js +24 -22
- package/dist/cjs/ion-progress-bar.cjs.entry.js +10 -10
- package/dist/cjs/ion-radio_2.cjs.entry.js +16 -16
- package/dist/cjs/ion-range.cjs.entry.js +23 -23
- package/dist/cjs/ion-refresher_2.cjs.entry.js +47 -46
- package/dist/cjs/ion-reorder_2.cjs.entry.js +21 -20
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +7 -7
- package/dist/cjs/ion-route_4.cjs.entry.js +14 -14
- package/dist/cjs/ion-searchbar.cjs.entry.js +31 -31
- package/dist/cjs/ion-segment_2.cjs.entry.js +17 -17
- package/dist/cjs/ion-select_3.cjs.entry.js +45 -43
- package/dist/cjs/ion-spinner.cjs.entry.js +12 -12
- package/dist/cjs/ion-split-pane.cjs.entry.js +7 -7
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +19 -18
- package/dist/cjs/ion-tab_2.cjs.entry.js +13 -13
- package/dist/cjs/ion-text.cjs.entry.js +5 -5
- package/dist/cjs/ion-textarea.cjs.entry.js +24 -23
- package/dist/cjs/ion-toast.cjs.entry.js +35 -33
- package/dist/cjs/ion-toggle.cjs.entry.js +25 -24
- package/dist/cjs/{ionic-global-3647b9f5.js → ionic-global-5df85d73.js} +89 -205
- package/dist/cjs/ionic.cjs.js +7 -7
- package/dist/cjs/{ios.transition-4411892c.js → ios.transition-7574ba71.js} +6 -5
- package/dist/cjs/{keyboard-ed6e1327.js → keyboard-0272231f.js} +1 -1
- package/dist/cjs/{keyboard-e0062bfc.js → keyboard-af1bb365.js} +3 -4
- package/dist/cjs/{keyboard-controller-020444ad.js → keyboard-controller-c05e747a.js} +9 -11
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{md.transition-261f9f67.js → md.transition-d9d90911.js} +6 -5
- package/dist/cjs/{notch-controller-70ad2323.js → notch-controller-d69150f5.js} +4 -4
- package/dist/cjs/{overlays-22320753.js → overlays-faf6f843.js} +17 -17
- package/dist/cjs/{status-tap-cfc7f9a5.js → status-tap-28780caa.js} +8 -8
- package/dist/cjs/{swipe-back-ecdf1cf5.js → swipe-back-0303a5e4.js} +1 -2
- package/dist/collection/components/app/app.js +75 -5
- package/dist/collection/components/content/content.js +4 -6
- package/dist/collection/components/footer/footer.js +3 -5
- package/dist/collection/components/header/header.js +4 -6
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/searchbar/searchbar.ionic.css +166 -89
- package/dist/collection/components/searchbar/searchbar.js +1 -1
- package/dist/collection/components/toast/toast.ionic.css +348 -0
- package/dist/collection/components/toast/toast.ios.css +68 -41
- package/dist/collection/components/toast/toast.js +4 -4
- package/dist/collection/components/toast/toast.md.css +68 -41
- package/dist/collection/global/ionic-global.js +1 -69
- package/dist/collection/utils/focus-visible.js +0 -7
- package/dist/collection/utils/framework-delegate.js +1 -3
- package/dist/collection/utils/helpers.js +1 -3
- package/dist/collection/utils/keyboard/keyboard-controller.js +1 -3
- package/dist/collection/utils/overlays.js +1 -2
- package/dist/docs.json +119 -107
- package/dist/esm/{animation-16546c84.js → animation-eab5a4ca.js} +1 -1
- package/dist/esm/{app-globals-35381e66.js → app-globals-c45950ba.js} +1 -1
- package/dist/esm/{button-active-c768aceb.js → button-active-873732e5.js} +2 -2
- package/dist/esm/{capacitor-0897b83c.js → capacitor-59395cbd.js} +1 -1
- package/dist/esm/{data-d9b1fbdb.js → data-fde041b0.js} +1 -1
- package/dist/{cjs/focus-visible-9aa87fa3.js → esm/focus-visible-dd40d69f.js} +1 -11
- package/dist/esm/{framework-delegate-56698eb0.js → framework-delegate-63d1a679.js} +2 -4
- package/dist/esm/{haptic-d9a770b8.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm/hardware-back-button-2bb5194f.js +116 -0
- package/dist/esm/{helpers-d57f52c8.js → helpers-da915de8.js} +1 -4
- package/dist/esm/{index-edf94b3b.js → index-29be96b3.js} +5 -5
- package/dist/esm/{index-82405a4a.js → index-2d8b49ae.js} +5 -3
- package/dist/esm/{index-f8ad386a.js → index-56cab0d6.js} +2 -2
- package/dist/esm/{config-0b6b1b3d.js → index-723c0e5d.js} +1 -76
- package/dist/esm/index-79b30591.js +167 -0
- package/dist/esm/index-a5d50daf.js +7 -0
- package/dist/esm/index.js +12 -10
- package/dist/esm/{input-shims-0f3cc1c3.js → input-shims-59f93016.js} +7 -6
- package/dist/esm/{input.utils-ef4d8197.js → input.utils-8755322f.js} +3 -2
- package/dist/esm/ion-accordion_2.entry.js +3 -3
- package/dist/esm/ion-action-sheet.entry.js +11 -9
- package/dist/esm/ion-alert.entry.js +11 -9
- package/dist/esm/ion-app_8.entry.js +94 -28
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +3 -3
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +3 -3
- package/dist/esm/ion-button_2.entry.js +3 -3
- package/dist/esm/ion-card_5.entry.js +3 -3
- package/dist/esm/ion-checkbox.entry.js +3 -3
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +4 -4
- package/dist/esm/ion-datetime_3.entry.js +12 -10
- package/dist/esm/ion-fab_3.entry.js +3 -3
- package/dist/esm/ion-img.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -4
- package/dist/esm/ion-input-password-toggle.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +6 -5
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +8 -6
- package/dist/esm/ion-menu_3.entry.js +9 -7
- package/dist/esm/ion-modal.entry.js +13 -11
- package/dist/esm/ion-nav_2.entry.js +6 -6
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +6 -5
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +9 -7
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +3 -3
- package/dist/esm/ion-range.entry.js +4 -4
- package/dist/esm/ion-refresher_2.entry.js +8 -7
- package/dist/esm/ion-reorder_2.entry.js +7 -6
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment_2.entry.js +3 -3
- package/dist/esm/ion-select_3.entry.js +8 -6
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +7 -6
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +6 -5
- package/dist/esm/ion-toast.entry.js +14 -12
- package/dist/esm/ion-toggle.entry.js +6 -5
- package/dist/esm/{ionic-global-d7017fd9.js → ionic-global-a8cbb8b0.js} +72 -184
- package/dist/esm/ionic.js +4 -4
- package/dist/esm/{ios.transition-4b9fe79e.js → ios.transition-4706aa28.js} +6 -5
- package/dist/esm/{keyboard-584d2e6f.js → keyboard-52278bd7.js} +3 -4
- package/dist/esm/{keyboard-ad38b8fc.js → keyboard-73175e24.js} +1 -1
- package/dist/esm/{keyboard-controller-9c9c2301.js → keyboard-controller-ec5c2bfa.js} +3 -5
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-a71dc418.js → md.transition-20ad6960.js} +6 -5
- package/dist/esm/{notch-controller-4d9a7b28.js → notch-controller-55b09e11.js} +2 -2
- package/dist/esm/{overlays-9da9aef5.js → overlays-40e86f77.js} +6 -6
- package/dist/esm/{status-tap-82f51b25.js → status-tap-0433b6a6.js} +4 -4
- package/dist/esm/{swipe-back-c5709ce5.js → swipe-back-e5394307.js} +1 -2
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-c45950ba.js +4 -0
- package/dist/esm-es5/button-active-873732e5.js +4 -0
- package/dist/esm-es5/capacitor-59395cbd.js +4 -0
- package/dist/esm-es5/{data-d9b1fbdb.js → data-fde041b0.js} +1 -1
- package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
- package/dist/esm-es5/framework-delegate-63d1a679.js +4 -0
- package/dist/esm-es5/{haptic-d9a770b8.js → haptic-ac164e4c.js} +1 -1
- package/dist/esm-es5/hardware-back-button-2bb5194f.js +4 -0
- package/dist/esm-es5/helpers-da915de8.js +4 -0
- package/dist/esm-es5/index-29be96b3.js +4 -0
- package/dist/esm-es5/index-2d8b49ae.js +4 -0
- package/dist/esm-es5/{index-f8ad386a.js → index-56cab0d6.js} +1 -1
- package/dist/esm-es5/{config-0b6b1b3d.js → index-723c0e5d.js} +2 -2
- package/dist/esm-es5/index-79b30591.js +4 -0
- package/dist/esm-es5/index-a5d50daf.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-59f93016.js +4 -0
- package/dist/esm-es5/input.utils-8755322f.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-a8cbb8b0.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-4706aa28.js +4 -0
- package/dist/esm-es5/keyboard-52278bd7.js +4 -0
- package/dist/esm-es5/{keyboard-ad38b8fc.js → keyboard-73175e24.js} +1 -1
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-20ad6960.js +4 -0
- package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
- package/dist/esm-es5/overlays-40e86f77.js +4 -0
- package/dist/esm-es5/status-tap-0433b6a6.js +4 -0
- package/dist/esm-es5/swipe-back-e5394307.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-00093fc0.entry.js +4 -0
- package/dist/ionic/{p-fbcf9790.system.entry.js → p-0328213e.system.entry.js} +1 -1
- package/dist/ionic/{p-0a820472.js → p-0b120b1d.js} +1 -1
- package/dist/ionic/p-0bfbe380.js +4 -0
- package/dist/ionic/{p-82832f09.system.entry.js → p-0c9a7872.system.entry.js} +1 -1
- package/dist/ionic/p-0cd67533.js +4 -0
- package/dist/ionic/p-0d86eb56.system.entry.js +4 -0
- package/dist/ionic/p-0d945ebd.entry.js +4 -0
- package/dist/ionic/p-0fa218e9.system.js +5 -0
- package/dist/ionic/{p-15d007ee.system.entry.js → p-0fd7a8cb.system.entry.js} +1 -1
- package/dist/ionic/{p-4d000ec5.entry.js → p-10dacd80.entry.js} +1 -1
- package/dist/ionic/p-12299223.system.entry.js +4 -0
- package/dist/ionic/p-175821bc.entry.js +4 -0
- package/dist/ionic/{p-9152f6a3.system.entry.js → p-19c89aeb.system.entry.js} +1 -1
- package/dist/ionic/{p-61a51379.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/p-1dfc11b3.system.js +4 -0
- package/dist/ionic/p-1e4371bd.js +4 -0
- package/dist/ionic/p-1f6507e4.entry.js +4 -0
- package/dist/ionic/p-1f7b26cc.entry.js +4 -0
- package/dist/ionic/{p-d9e1c48c.system.js → p-1fd1d157.system.js} +1 -1
- package/dist/ionic/p-2282c878.system.entry.js +4 -0
- package/dist/ionic/{p-11915ee9.system.entry.js → p-26313905.system.entry.js} +1 -1
- package/dist/ionic/{p-4ed7dfdb.js → p-27281edd.js} +1 -1
- package/dist/ionic/p-27bb59a9.system.entry.js +4 -0
- package/dist/ionic/p-28be0cf9.js +4 -0
- package/dist/ionic/p-2a844e7c.entry.js +4 -0
- package/dist/ionic/p-2b7827c7.js +4 -0
- package/dist/ionic/p-2b98e44b.system.entry.js +4 -0
- package/dist/ionic/p-2fd3e890.system.entry.js +4 -0
- package/dist/ionic/p-30c8168f.system.entry.js +4 -0
- package/dist/ionic/p-3281aaeb.entry.js +4 -0
- package/dist/ionic/p-32f4a0b9.entry.js +4 -0
- package/dist/ionic/p-34b11c24.js +4 -0
- package/dist/ionic/{p-3d9cad0b.system.entry.js → p-35b66bbc.system.entry.js} +1 -1
- package/dist/ionic/p-36db29d9.system.js +4 -0
- package/dist/ionic/p-3ad285e3.system.js +4 -0
- package/dist/ionic/p-3c1b93db.system.entry.js +4 -0
- package/dist/ionic/p-3cc276f4.js +4 -0
- package/dist/ionic/p-3dfa54e6.js +4 -0
- package/dist/ionic/{p-a65fe34d.system.entry.js → p-3efc5d47.system.entry.js} +1 -1
- package/dist/ionic/p-432e6521.system.entry.js +4 -0
- package/dist/ionic/{p-da968066.entry.js → p-44c281df.entry.js} +1 -1
- package/dist/ionic/{p-b14c601a.entry.js → p-46f790b3.entry.js} +1 -1
- package/dist/ionic/{p-92b48263.entry.js → p-48cd1ced.entry.js} +1 -1
- package/dist/ionic/p-4c2d5b80.system.js +4 -0
- package/dist/ionic/p-4c38fcdd.system.js +4 -0
- package/dist/ionic/{p-3bfe43bc.system.js → p-4ccbf702.system.js} +1 -1
- package/dist/ionic/{p-5468bfbf.entry.js → p-4de02483.entry.js} +1 -1
- package/dist/ionic/p-4e6c9480.system.entry.js +4 -0
- package/dist/ionic/p-4e7c68a5.entry.js +4 -0
- package/dist/ionic/{p-dbfc5db6.js → p-5771eacd.js} +1 -1
- package/dist/ionic/{p-413a936c.entry.js → p-5a583b1a.entry.js} +1 -1
- package/dist/ionic/p-5c766439.entry.js +4 -0
- package/dist/ionic/p-5c8fa89d.system.js +4 -0
- package/dist/ionic/{p-71e8ffdd.system.js → p-5cc80c49.system.js} +1 -1
- package/dist/ionic/p-614c3822.system.js +4 -0
- package/dist/ionic/{p-f41914c0.system.entry.js → p-614d974e.system.entry.js} +1 -1
- package/dist/ionic/p-62836b01.js +4 -0
- package/dist/ionic/p-63fe75bc.js +4 -0
- package/dist/ionic/p-664480c8.system.entry.js +4 -0
- package/dist/ionic/{p-2da8c20c.system.entry.js → p-6b6ee9ca.system.entry.js} +1 -1
- package/dist/ionic/{p-726b9197.system.entry.js → p-6c555957.system.entry.js} +1 -1
- package/dist/ionic/{p-fac985b6.system.entry.js → p-6ca5f4da.system.entry.js} +1 -1
- package/dist/ionic/p-6d7c455f.js +4 -0
- package/dist/ionic/p-6f418011.system.entry.js +4 -0
- package/dist/ionic/p-713374f2.entry.js +4 -0
- package/dist/ionic/{p-39c02066.system.entry.js → p-727aa804.system.entry.js} +1 -1
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/p-72bc8a1c.js +4 -0
- package/dist/ionic/p-737d64f9.entry.js +4 -0
- package/dist/ionic/{p-49a3fc76.entry.js → p-77c3fe69.entry.js} +1 -1
- package/dist/ionic/p-792919fd.system.js +4 -0
- package/dist/ionic/{p-f670192b.system.entry.js → p-7986665a.system.entry.js} +1 -1
- package/dist/ionic/p-7b30edcc.js +4 -0
- package/dist/ionic/p-7b341352.js +4 -0
- package/dist/ionic/p-7c9d5354.entry.js +4 -0
- package/dist/ionic/p-7ccf7f29.entry.js +4 -0
- package/dist/ionic/p-7dfa7ebc.entry.js +4 -0
- package/dist/ionic/p-80ff4e55.entry.js +4 -0
- package/dist/ionic/{p-6d9e1887.system.entry.js → p-82028c01.system.entry.js} +1 -1
- package/dist/ionic/{p-0695a0af.system.entry.js → p-8285d686.system.entry.js} +1 -1
- package/dist/ionic/p-82d80c8f.entry.js +4 -0
- package/dist/ionic/{p-a9fd9d48.js → p-83948e48.js} +2 -2
- package/dist/ionic/p-83e4478f.entry.js +4 -0
- package/dist/ionic/{p-4a9b61ed.system.entry.js → p-854b1e11.system.entry.js} +1 -1
- package/dist/ionic/p-8635f5e6.system.js +4 -0
- package/dist/ionic/p-87365857.system.entry.js +4 -0
- package/dist/ionic/p-87a81a63.system.entry.js +4 -0
- package/dist/ionic/{p-e61e3bb4.system.js → p-8985cdb6.system.js} +1 -1
- package/dist/ionic/{p-b9b36d56.js → p-89b61afc.js} +1 -1
- package/dist/ionic/{p-747e9c9a.system.js → p-9146695e.system.js} +1 -1
- package/dist/ionic/p-916f6c1d.entry.js +4 -0
- package/dist/ionic/{p-846dd10a.entry.js → p-927b5898.entry.js} +1 -1
- package/dist/ionic/p-93cf45ec.system.entry.js +4 -0
- package/dist/ionic/p-9493acfe.entry.js +4 -0
- package/dist/ionic/p-9805b25a.system.entry.js +4 -0
- package/dist/ionic/{p-bd50f24e.system.entry.js → p-9c8e5275.system.entry.js} +1 -1
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/p-a1b80dd6.system.js +4 -0
- package/dist/ionic/{p-2c5d7d84.system.js → p-a4519424.system.js} +1 -1
- package/dist/ionic/p-a8a04757.system.entry.js +4 -0
- package/dist/ionic/{p-f8e329da.system.js → p-a93873de.system.js} +1 -1
- package/dist/ionic/p-abe101da.system.js +4 -0
- package/dist/ionic/{p-c9ef0ca7.system.js → p-b06ac4a5.system.js} +1 -1
- package/dist/ionic/p-b24c259e.entry.js +4 -0
- package/dist/ionic/p-b33b643b.entry.js +4 -0
- package/dist/ionic/p-b51e4004.js +4 -0
- package/dist/ionic/{p-4b153a9f.entry.js → p-b6d72f12.entry.js} +1 -1
- package/dist/ionic/p-ba45ad7d.entry.js +4 -0
- package/dist/ionic/p-bc8e48de.entry.js +4 -0
- package/dist/ionic/p-bcf5573f.entry.js +4 -0
- package/dist/ionic/{p-ab6e0f02.system.entry.js → p-bcfa9bb5.system.entry.js} +1 -1
- package/dist/ionic/{p-69e54172.js → p-bd7fb7b4.js} +1 -1
- package/dist/ionic/p-bdd4e026.entry.js +4 -0
- package/dist/ionic/{p-ac64cba5.entry.js → p-bef12497.entry.js} +1 -1
- package/dist/ionic/{p-d085c881.system.entry.js → p-bf673222.system.entry.js} +1 -1
- package/dist/ionic/{p-6f8c2e62.system.entry.js → p-c32229bb.system.entry.js} +1 -1
- package/dist/ionic/p-c468af8a.system.js +4 -0
- package/dist/ionic/{p-3a11234f.system.js → p-c4ae4d32.system.js} +1 -1
- package/dist/ionic/p-c61cc894.js +4 -0
- package/dist/ionic/p-c628bdcb.system.js +4 -0
- package/dist/ionic/p-c6f1b434.js +4 -0
- package/dist/ionic/{p-d1e991c3.js → p-c7e16491.js} +1 -1
- package/dist/ionic/{p-cb8800fe.system.entry.js → p-ca3bf740.system.entry.js} +1 -1
- package/dist/ionic/{p-d0b7fe70.entry.js → p-cb3dc48f.entry.js} +1 -1
- package/dist/ionic/p-cd40baea.entry.js +4 -0
- package/dist/ionic/{p-291dc0b3.system.entry.js → p-cde755fc.system.entry.js} +1 -1
- package/dist/ionic/{p-73e32456.system.js → p-ce5c2902.system.js} +1 -1
- package/dist/ionic/{p-68f3fa48.system.entry.js → p-d05aabdf.system.entry.js} +2 -2
- package/dist/ionic/{p-0a701833.entry.js → p-d3fd2c98.entry.js} +1 -1
- package/dist/ionic/p-d47265c8.js +4 -0
- package/dist/ionic/p-d53e0b4b.entry.js +4 -0
- package/dist/ionic/{p-b6fc8ee2.system.entry.js → p-d6eda1bb.system.entry.js} +1 -1
- package/dist/ionic/p-d79ed7b3.system.js +4 -0
- package/dist/ionic/{p-2c368e32.entry.js → p-d878447e.entry.js} +1 -1
- package/dist/ionic/{p-c2a4c5c5.system.entry.js → p-db63907a.system.entry.js} +1 -1
- package/dist/ionic/p-dbb02a23.system.entry.js +4 -0
- package/dist/ionic/p-dd79c031.js +4 -0
- package/dist/ionic/{p-eeb60a8f.entry.js → p-dde3a646.entry.js} +1 -1
- package/dist/ionic/{p-e5239905.system.entry.js → p-dfd995cc.system.entry.js} +1 -1
- package/dist/ionic/p-e050dad9.system.js +4 -0
- package/dist/ionic/{p-9a9eb866.entry.js → p-e259208f.entry.js} +1 -1
- package/dist/ionic/p-e2bd011e.js +4 -0
- package/dist/ionic/{p-80342c88.system.entry.js → p-e34e037d.system.entry.js} +1 -1
- package/dist/ionic/{p-49d80815.entry.js → p-e5333f3f.entry.js} +1 -1
- package/dist/ionic/{p-fbcb3139.entry.js → p-e61c9280.entry.js} +1 -1
- package/dist/ionic/p-ea16a842.entry.js +4 -0
- package/dist/ionic/p-eafeb1ff.system.js +4 -0
- package/dist/ionic/p-ed419a44.entry.js +4 -0
- package/dist/ionic/{p-093de343.system.entry.js → p-eef611dc.system.entry.js} +1 -1
- package/dist/ionic/{p-6ecebfc6.entry.js → p-f3cfb48a.entry.js} +1 -1
- package/dist/ionic/{p-d346c889.system.entry.js → p-f4ad1cf6.system.entry.js} +1 -1
- package/dist/ionic/{p-d8339079.system.js → p-f7712c17.system.js} +1 -1
- package/dist/ionic/p-f9782d44.system.entry.js +4 -0
- package/dist/types/components/app/app.d.ts +2 -0
- package/dist/types/global/ionic-global.d.ts +0 -2
- package/dist/types/utils/config.d.ts +0 -7
- package/dist/types/utils/focus-visible.d.ts +0 -1
- package/hydrate/index.js +150 -161
- package/hydrate/index.mjs +150 -161
- package/package.json +1 -1
- package/components/config2.js +0 -79
- package/dist/esm-es5/animation-16546c84.js +0 -4
- package/dist/esm-es5/app-globals-35381e66.js +0 -4
- package/dist/esm-es5/button-active-c768aceb.js +0 -4
- package/dist/esm-es5/capacitor-0897b83c.js +0 -4
- package/dist/esm-es5/focus-visible-501aff19.js +0 -4
- package/dist/esm-es5/framework-delegate-56698eb0.js +0 -4
- package/dist/esm-es5/helpers-d57f52c8.js +0 -4
- package/dist/esm-es5/index-7f65e865.js +0 -4
- package/dist/esm-es5/index-82405a4a.js +0 -4
- package/dist/esm-es5/index-edf94b3b.js +0 -4
- package/dist/esm-es5/input-shims-0f3cc1c3.js +0 -4
- package/dist/esm-es5/input.utils-ef4d8197.js +0 -4
- package/dist/esm-es5/ionic-global-d7017fd9.js +0 -4
- package/dist/esm-es5/ios.transition-4b9fe79e.js +0 -4
- package/dist/esm-es5/keyboard-584d2e6f.js +0 -4
- package/dist/esm-es5/keyboard-controller-9c9c2301.js +0 -4
- package/dist/esm-es5/md.transition-a71dc418.js +0 -4
- package/dist/esm-es5/notch-controller-4d9a7b28.js +0 -4
- package/dist/esm-es5/overlays-9da9aef5.js +0 -4
- package/dist/esm-es5/status-tap-82f51b25.js +0 -4
- package/dist/esm-es5/swipe-back-c5709ce5.js +0 -4
- package/dist/ionic/p-027d729e.entry.js +0 -4
- package/dist/ionic/p-036e1c5b.entry.js +0 -4
- package/dist/ionic/p-08df90cf.system.js +0 -4
- package/dist/ionic/p-08f1ef0c.entry.js +0 -4
- package/dist/ionic/p-0ade0499.system.entry.js +0 -4
- package/dist/ionic/p-1037b7dd.js +0 -4
- package/dist/ionic/p-12e3e308.entry.js +0 -4
- package/dist/ionic/p-14719a77.entry.js +0 -4
- package/dist/ionic/p-15d51b10.js +0 -4
- package/dist/ionic/p-221e5078.system.js +0 -4
- package/dist/ionic/p-25e2c98f.system.js +0 -4
- package/dist/ionic/p-26f7c080.system.js +0 -4
- package/dist/ionic/p-28d04212.system.js +0 -4
- package/dist/ionic/p-29d6d1fc.system.entry.js +0 -4
- package/dist/ionic/p-2a559ac6.js +0 -4
- package/dist/ionic/p-2a79e451.entry.js +0 -4
- package/dist/ionic/p-2b428cf6.entry.js +0 -4
- package/dist/ionic/p-2d621d56.system.entry.js +0 -4
- package/dist/ionic/p-334c09da.entry.js +0 -4
- package/dist/ionic/p-33a1d951.system.entry.js +0 -4
- package/dist/ionic/p-36bdcfc4.js +0 -4
- package/dist/ionic/p-388ac217.js +0 -4
- package/dist/ionic/p-3ca5196c.js +0 -4
- package/dist/ionic/p-419fac38.entry.js +0 -4
- package/dist/ionic/p-434c7348.system.entry.js +0 -4
- package/dist/ionic/p-45e150eb.js +0 -4
- package/dist/ionic/p-46787abb.system.js +0 -4
- package/dist/ionic/p-46cc2492.system.js +0 -4
- package/dist/ionic/p-4c251d59.entry.js +0 -4
- package/dist/ionic/p-4e202665.js +0 -4
- package/dist/ionic/p-4ea10a10.entry.js +0 -4
- package/dist/ionic/p-4feea938.entry.js +0 -4
- package/dist/ionic/p-5655419d.system.entry.js +0 -4
- package/dist/ionic/p-5ce35a03.js +0 -4
- package/dist/ionic/p-5dc2a7c6.entry.js +0 -4
- package/dist/ionic/p-6320cbc1.system.entry.js +0 -4
- package/dist/ionic/p-643e2eb8.js +0 -4
- package/dist/ionic/p-660f3b98.entry.js +0 -4
- package/dist/ionic/p-6ad6d594.js +0 -4
- package/dist/ionic/p-70c6cd75.system.js +0 -4
- package/dist/ionic/p-7759fac2.system.entry.js +0 -4
- package/dist/ionic/p-7ebc381e.entry.js +0 -4
- package/dist/ionic/p-83d5ee25.entry.js +0 -4
- package/dist/ionic/p-8421aedf.js +0 -4
- package/dist/ionic/p-90089868.system.entry.js +0 -4
- package/dist/ionic/p-931dc464.entry.js +0 -4
- package/dist/ionic/p-95e22fa9.entry.js +0 -4
- package/dist/ionic/p-9c526519.entry.js +0 -4
- package/dist/ionic/p-9e4ede77.system.entry.js +0 -4
- package/dist/ionic/p-9e8e25e4.system.js +0 -4
- package/dist/ionic/p-9e9bff83.system.js +0 -4
- package/dist/ionic/p-9f51595b.entry.js +0 -4
- package/dist/ionic/p-a4df1928.entry.js +0 -4
- package/dist/ionic/p-a6aaef61.system.entry.js +0 -4
- package/dist/ionic/p-a856dbc6.entry.js +0 -4
- package/dist/ionic/p-aacc6ddd.system.js +0 -5
- package/dist/ionic/p-adaa7af1.entry.js +0 -4
- package/dist/ionic/p-adec897a.system.entry.js +0 -4
- package/dist/ionic/p-b0e10591.entry.js +0 -4
- package/dist/ionic/p-b19a9aa9.system.js +0 -4
- package/dist/ionic/p-b297c7b5.system.js +0 -4
- package/dist/ionic/p-ba3ddec4.js +0 -4
- package/dist/ionic/p-c6191942.js +0 -4
- package/dist/ionic/p-c6e47379.entry.js +0 -4
- package/dist/ionic/p-c7e967c0.system.entry.js +0 -4
- package/dist/ionic/p-c8097757.system.entry.js +0 -4
- package/dist/ionic/p-cb131dda.system.entry.js +0 -4
- package/dist/ionic/p-cf2f1ede.entry.js +0 -4
- package/dist/ionic/p-d0259f44.system.js +0 -4
- package/dist/ionic/p-d0953ec9.system.entry.js +0 -4
- package/dist/ionic/p-d10313a6.system.js +0 -4
- package/dist/ionic/p-d2a55f0a.system.entry.js +0 -4
- package/dist/ionic/p-d2ef848a.entry.js +0 -4
- package/dist/ionic/p-db8aeb40.system.js +0 -4
- package/dist/ionic/p-dd50ef12.js +0 -4
- package/dist/ionic/p-e270862e.js +0 -4
- package/dist/ionic/p-e7546060.entry.js +0 -4
- package/dist/ionic/p-eb376af4.entry.js +0 -4
- package/dist/ionic/p-ee091b80.system.entry.js +0 -4
- package/dist/ionic/p-f065578f.js +0 -4
- package/dist/ionic/p-f4ae533b.js +0 -4
- package/dist/ionic/p-f61ce679.js +0 -4
- package/dist/ionic/p-f63f81aa.system.entry.js +0 -4
- package/dist/ionic/p-fb0c3efa.entry.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { a as setPlatformHelpers, g as getElement, c as getMode, d as setMode } from './index-723c0e5d.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Logs a warning to the console with an Ionic prefix
|
|
@@ -33,125 +33,80 @@ const printRequiredElementError = (el, ...targetSelectors) => {
|
|
|
33
33
|
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* When hardwareBackButton: false in config,
|
|
54
|
-
* we need to make sure we also block the default
|
|
55
|
-
* webview behavior. If we don't then it will be
|
|
56
|
-
* possible for users to navigate backward while
|
|
57
|
-
* an overlay is still open. Additionally, it will
|
|
58
|
-
* give the appearance that the hardwareBackButton
|
|
59
|
-
* config is not working as the page transition
|
|
60
|
-
* will still happen.
|
|
61
|
-
*/
|
|
62
|
-
const blockHardwareBackButton = () => {
|
|
63
|
-
document.addEventListener('backbutton', () => { }); // eslint-disable-line
|
|
64
|
-
};
|
|
65
|
-
const startHardwareBackButton = () => {
|
|
66
|
-
const doc = document;
|
|
67
|
-
let busy = false;
|
|
68
|
-
const backButtonCallback = () => {
|
|
69
|
-
if (busy) {
|
|
70
|
-
return;
|
|
36
|
+
// TODO(FW-2832): types
|
|
37
|
+
class Config {
|
|
38
|
+
constructor() {
|
|
39
|
+
this.m = new Map();
|
|
40
|
+
}
|
|
41
|
+
reset(configObj) {
|
|
42
|
+
this.m = new Map(Object.entries(configObj));
|
|
43
|
+
}
|
|
44
|
+
get(key, fallback) {
|
|
45
|
+
const value = this.m.get(key);
|
|
46
|
+
return value !== undefined ? value : fallback;
|
|
47
|
+
}
|
|
48
|
+
getBoolean(key, fallback = false) {
|
|
49
|
+
const val = this.m.get(key);
|
|
50
|
+
if (val === undefined) {
|
|
51
|
+
return fallback;
|
|
71
52
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
detail: {
|
|
77
|
-
register(priority, handler) {
|
|
78
|
-
handlers.push({ priority, handler, id: index++ });
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
doc.dispatchEvent(ev);
|
|
83
|
-
const executeAction = async (handlerRegister) => {
|
|
84
|
-
try {
|
|
85
|
-
if (handlerRegister === null || handlerRegister === void 0 ? void 0 : handlerRegister.handler) {
|
|
86
|
-
const result = handlerRegister.handler(processHandlers);
|
|
87
|
-
if (result != null) {
|
|
88
|
-
await result;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
catch (e) {
|
|
93
|
-
console.error(e);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const processHandlers = () => {
|
|
97
|
-
if (handlers.length > 0) {
|
|
98
|
-
let selectedHandler = {
|
|
99
|
-
priority: Number.MIN_SAFE_INTEGER,
|
|
100
|
-
handler: () => undefined,
|
|
101
|
-
id: -1,
|
|
102
|
-
};
|
|
103
|
-
handlers.forEach((handler) => {
|
|
104
|
-
if (handler.priority >= selectedHandler.priority) {
|
|
105
|
-
selectedHandler = handler;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
busy = true;
|
|
109
|
-
handlers = handlers.filter((handler) => handler.id !== selectedHandler.id);
|
|
110
|
-
executeAction(selectedHandler).then(() => (busy = false));
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
processHandlers();
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* If the CloseWatcher is defined then
|
|
117
|
-
* we don't want to also listen for the native
|
|
118
|
-
* backbutton event otherwise we may get duplicate
|
|
119
|
-
* events firing.
|
|
120
|
-
*/
|
|
121
|
-
if (shouldUseCloseWatcher()) {
|
|
122
|
-
let watcher;
|
|
123
|
-
const configureWatcher = () => {
|
|
124
|
-
watcher === null || watcher === void 0 ? void 0 : watcher.destroy();
|
|
125
|
-
watcher = new win.CloseWatcher();
|
|
126
|
-
/**
|
|
127
|
-
* Once a close request happens
|
|
128
|
-
* the watcher gets destroyed.
|
|
129
|
-
* As a result, we need to re-configure
|
|
130
|
-
* the watcher so we can respond to other
|
|
131
|
-
* close requests.
|
|
132
|
-
*/
|
|
133
|
-
watcher.onclose = () => {
|
|
134
|
-
backButtonCallback();
|
|
135
|
-
configureWatcher();
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
configureWatcher();
|
|
53
|
+
if (typeof val === 'string') {
|
|
54
|
+
return val === 'true';
|
|
55
|
+
}
|
|
56
|
+
return !!val;
|
|
139
57
|
}
|
|
140
|
-
|
|
141
|
-
|
|
58
|
+
getNumber(key, fallback) {
|
|
59
|
+
const val = parseFloat(this.m.get(key));
|
|
60
|
+
return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
|
|
61
|
+
}
|
|
62
|
+
set(key, value) {
|
|
63
|
+
this.m.set(key, value);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const config = /*@__PURE__*/ new Config();
|
|
67
|
+
const configFromSession = (win) => {
|
|
68
|
+
try {
|
|
69
|
+
const configStr = win.sessionStorage.getItem(IONIC_SESSION_KEY);
|
|
70
|
+
return configStr !== null ? JSON.parse(configStr) : {};
|
|
71
|
+
}
|
|
72
|
+
catch (e) {
|
|
73
|
+
return {};
|
|
142
74
|
}
|
|
143
75
|
};
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
76
|
+
const saveConfig = (win, c) => {
|
|
77
|
+
try {
|
|
78
|
+
win.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(c));
|
|
79
|
+
}
|
|
80
|
+
catch (e) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const configFromURL = (win) => {
|
|
85
|
+
const configObj = {};
|
|
86
|
+
win.location.search
|
|
87
|
+
.slice(1)
|
|
88
|
+
.split('&')
|
|
89
|
+
.map((entry) => entry.split('='))
|
|
90
|
+
.map(([key, value]) => {
|
|
91
|
+
try {
|
|
92
|
+
return [decodeURIComponent(key), decodeURIComponent(value)];
|
|
93
|
+
}
|
|
94
|
+
catch (e) {
|
|
95
|
+
return ['', ''];
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
.filter(([key]) => startsWith(key, IONIC_PREFIX))
|
|
99
|
+
.map(([key, value]) => [key.slice(IONIC_PREFIX.length), value])
|
|
100
|
+
.forEach(([key, value]) => {
|
|
101
|
+
configObj[key] = value;
|
|
102
|
+
});
|
|
103
|
+
return configObj;
|
|
104
|
+
};
|
|
105
|
+
const startsWith = (input, search) => {
|
|
106
|
+
return input.substr(0, search.length) === search;
|
|
107
|
+
};
|
|
108
|
+
const IONIC_PREFIX = 'ionic:';
|
|
109
|
+
const IONIC_SESSION_KEY = 'ionic-persist-config';
|
|
155
110
|
|
|
156
111
|
const getPlatforms = (win) => setupPlatforms(win);
|
|
157
112
|
const isPlatform = (winOrPlatform, platform) => {
|
|
@@ -352,33 +307,6 @@ const getIonTheme = (ref) => {
|
|
|
352
307
|
*/
|
|
353
308
|
return defaultTheme;
|
|
354
309
|
};
|
|
355
|
-
const rIC = (callback) => {
|
|
356
|
-
if ('requestIdleCallback' in window) {
|
|
357
|
-
window.requestIdleCallback(callback);
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
setTimeout(callback, 32);
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
|
-
const needInputShims = () => {
|
|
364
|
-
/**
|
|
365
|
-
* iOS always needs input shims
|
|
366
|
-
*/
|
|
367
|
-
const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
|
|
368
|
-
if (needsShimsIOS) {
|
|
369
|
-
return true;
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* Android only needs input shims when running
|
|
373
|
-
* in the browser and only if the browser is using the
|
|
374
|
-
* new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
|
|
375
|
-
*/
|
|
376
|
-
const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
|
|
377
|
-
if (isAndroidMobileWeb) {
|
|
378
|
-
return true;
|
|
379
|
-
}
|
|
380
|
-
return false;
|
|
381
|
-
};
|
|
382
310
|
const initialize = (userConfig = {}) => {
|
|
383
311
|
if (typeof window === 'undefined') {
|
|
384
312
|
return;
|
|
@@ -475,46 +403,6 @@ const initialize = (userConfig = {}) => {
|
|
|
475
403
|
}
|
|
476
404
|
return defaultTheme;
|
|
477
405
|
});
|
|
478
|
-
// `IonApp` code
|
|
479
|
-
// ----------------------------------------------
|
|
480
|
-
{
|
|
481
|
-
rIC(async () => {
|
|
482
|
-
const isHybrid = isPlatform(window, 'hybrid');
|
|
483
|
-
if (!config.getBoolean('_testing')) {
|
|
484
|
-
import('./index-7f65e865.js').then((module) => module.startTapClick(config));
|
|
485
|
-
}
|
|
486
|
-
if (config.getBoolean('statusTap', isHybrid)) {
|
|
487
|
-
import('./status-tap-82f51b25.js').then((module) => module.startStatusTap());
|
|
488
|
-
}
|
|
489
|
-
if (config.getBoolean('inputShims', needInputShims())) {
|
|
490
|
-
/**
|
|
491
|
-
* needInputShims() ensures that only iOS and Android
|
|
492
|
-
* platforms proceed into this block.
|
|
493
|
-
*/
|
|
494
|
-
const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
|
|
495
|
-
import('./input-shims-0f3cc1c3.js').then((module) => module.startInputShims(config, platform));
|
|
496
|
-
}
|
|
497
|
-
const hardwareBackButtonModule = await Promise.resolve().then(function () { return hardwareBackButton; });
|
|
498
|
-
const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();
|
|
499
|
-
if (config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {
|
|
500
|
-
hardwareBackButtonModule.startHardwareBackButton();
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
/**
|
|
504
|
-
* If an app sets hardwareBackButton: false and experimentalCloseWatcher: true
|
|
505
|
-
* then the close watcher will not be used.
|
|
506
|
-
*/
|
|
507
|
-
if (shouldUseCloseWatcher()) {
|
|
508
|
-
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.');
|
|
509
|
-
}
|
|
510
|
-
hardwareBackButtonModule.blockHardwareBackButton();
|
|
511
|
-
}
|
|
512
|
-
if (typeof window !== 'undefined') {
|
|
513
|
-
import('./keyboard-584d2e6f.js').then((module) => module.startKeyboardAssist(window));
|
|
514
|
-
}
|
|
515
|
-
import('./focus-visible-501aff19.js').then((module) => module.getOrInitFocusVisibleUtility());
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
406
|
};
|
|
519
407
|
|
|
520
|
-
export {
|
|
408
|
+
export { isPlatform as a, getIonMode as b, config as c, getIonTheme as d, printIonError as e, printRequiredElementError as f, getPlatforms as g, initialize as i, printIonWarning as p };
|
package/dist/esm/ionic.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { p as promiseResolve, H, b as bootstrapLazy } from './
|
|
5
|
-
export { s as setNonce } from './
|
|
6
|
-
import { g as globalScripts } from './app-globals-
|
|
7
|
-
import './ionic-global-
|
|
4
|
+
import { p as promiseResolve, H, b as bootstrapLazy } from './index-723c0e5d.js';
|
|
5
|
+
export { s as setNonce } from './index-723c0e5d.js';
|
|
6
|
+
import { g as globalScripts } from './app-globals-c45950ba.js';
|
|
7
|
+
import './ionic-global-a8cbb8b0.js';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { c as createAnimation } from './animation-
|
|
5
|
-
import { g as getIonPageElement } from './index-
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
4
|
+
import { c as createAnimation } from './animation-eab5a4ca.js';
|
|
5
|
+
import { g as getIonPageElement } from './index-29be96b3.js';
|
|
6
|
+
import './index-a5d50daf.js';
|
|
7
|
+
import './ionic-global-a8cbb8b0.js';
|
|
8
|
+
import './index-723c0e5d.js';
|
|
9
|
+
import './helpers-da915de8.js';
|
|
9
10
|
|
|
10
11
|
const DURATION = 540;
|
|
11
12
|
// TODO(FW-2832): types
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { K as Keyboard } from './keyboard-
|
|
5
|
-
import './capacitor-
|
|
6
|
-
import './
|
|
7
|
-
import './config-0b6b1b3d.js';
|
|
4
|
+
import { K as Keyboard } from './keyboard-73175e24.js';
|
|
5
|
+
import './capacitor-59395cbd.js';
|
|
6
|
+
import './index-a5d50daf.js';
|
|
8
7
|
|
|
9
8
|
const KEYBOARD_DID_OPEN = 'ionKeyboardDidShow';
|
|
10
9
|
const KEYBOARD_DID_CLOSE = 'ionKeyboardDidHide';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { w as win, d as doc } from './
|
|
5
|
-
import {
|
|
6
|
-
import { K as Keyboard, a as KeyboardResize } from './keyboard-ad38b8fc.js';
|
|
4
|
+
import { w as win, d as doc } from './index-a5d50daf.js';
|
|
5
|
+
import { K as Keyboard, a as KeyboardResize } from './keyboard-73175e24.js';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* The element that resizes when the keyboard opens
|
|
@@ -27,8 +26,7 @@ const getResizeContainer = (resizeMode) => {
|
|
|
27
26
|
* on that. In the event `ion-app` is not available then
|
|
28
27
|
* we can fall back to `body`.
|
|
29
28
|
*/
|
|
30
|
-
const
|
|
31
|
-
const ionApp = doc.querySelector(appRootSelector);
|
|
29
|
+
const ionApp = doc.querySelector('ion-app');
|
|
32
30
|
return ionApp !== null && ionApp !== void 0 ? ionApp : doc.body;
|
|
33
31
|
};
|
|
34
32
|
/**
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { b as bootstrapLazy } from './
|
|
5
|
-
export { s as setNonce } from './
|
|
6
|
-
import { g as globalScripts } from './app-globals-
|
|
7
|
-
import './ionic-global-
|
|
4
|
+
import { b as bootstrapLazy } from './index-723c0e5d.js';
|
|
5
|
+
export { s as setNonce } from './index-723c0e5d.js';
|
|
6
|
+
import { g as globalScripts } from './app-globals-c45950ba.js';
|
|
7
|
+
import './ionic-global-a8cbb8b0.js';
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = async (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { c as createAnimation } from './animation-
|
|
5
|
-
import { g as getIonPageElement } from './index-
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
4
|
+
import { c as createAnimation } from './animation-eab5a4ca.js';
|
|
5
|
+
import { g as getIonPageElement } from './index-29be96b3.js';
|
|
6
|
+
import './index-a5d50daf.js';
|
|
7
|
+
import './ionic-global-a8cbb8b0.js';
|
|
8
|
+
import './index-723c0e5d.js';
|
|
9
|
+
import './helpers-da915de8.js';
|
|
9
10
|
|
|
10
11
|
const mdTransitionAnimation = (_, opts) => {
|
|
11
12
|
var _a, _b, _c;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { w as win } from './
|
|
5
|
-
import { r as raf } from './helpers-
|
|
4
|
+
import { w as win } from './index-a5d50daf.js';
|
|
5
|
+
import { r as raf } from './helpers-da915de8.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A utility to calculate the size of an outline notch
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { f as focusVisibleElement, c as componentOnReady, a as addEventListener, b as removeEventListener, g as getElementRoot } from './helpers-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { d as doc } from './index-a5d50daf.js';
|
|
5
|
+
import { f as focusVisibleElement, c as componentOnReady, a as addEventListener, b as removeEventListener, g as getElementRoot } from './helpers-da915de8.js';
|
|
6
|
+
import { OVERLAY_BACK_BUTTON_PRIORITY, shouldUseCloseWatcher } from './hardware-back-button-2bb5194f.js';
|
|
7
|
+
import { b as getIonMode, c as config, p as printIonWarning } from './ionic-global-a8cbb8b0.js';
|
|
8
|
+
import { C as CoreDelegate } from './framework-delegate-63d1a679.js';
|
|
8
9
|
import { B as BACKDROP_NO_SCROLL } from './gesture-controller-314a54f6.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -650,8 +651,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
650
651
|
return true;
|
|
651
652
|
};
|
|
652
653
|
const getAppRoot = (doc) => {
|
|
653
|
-
|
|
654
|
-
return doc.querySelector(appRootSelector) || doc.body;
|
|
654
|
+
return doc.querySelector('ion-app') || doc.body;
|
|
655
655
|
};
|
|
656
656
|
const overlayAnimation = async (overlay, animationBuilder, baseEl, opts) => {
|
|
657
657
|
// Make overlay visible in case it's hidden
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import { f as findClosestIonContent, s as scrollToTop } from './index-
|
|
6
|
-
import { c as componentOnReady } from './helpers-
|
|
7
|
-
import './ionic-global-
|
|
4
|
+
import { f as readTask, w as writeTask } from './index-723c0e5d.js';
|
|
5
|
+
import { f as findClosestIonContent, s as scrollToTop } from './index-56cab0d6.js';
|
|
6
|
+
import { c as componentOnReady } from './helpers-da915de8.js';
|
|
7
|
+
import './ionic-global-a8cbb8b0.js';
|
|
8
8
|
|
|
9
9
|
const startStatusTap = () => {
|
|
10
10
|
const win = window;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { j as clamp } from './helpers-
|
|
4
|
+
import { j as clamp } from './helpers-da915de8.js';
|
|
5
5
|
import { i as isRTL } from './dir-babeabeb.js';
|
|
6
6
|
import { createGesture } from './index-39782642.js';
|
|
7
|
-
import './config-0b6b1b3d.js';
|
|
8
7
|
import './gesture-controller-314a54f6.js';
|
|
9
8
|
|
|
10
9
|
const createSwipeBackGesture = (el, canStartHandler, onStartHandler, onMoveHandler, onEndHandler) => {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{__spreadArray}from"tslib";
|
|
2
|
+
/*!
|
|
3
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
+
*/import{w as win}from"./index-a5d50daf.js";var animationPrefix;var getAnimationPrefix=function(r){if(animationPrefix===undefined){var n=r.style.animationName!==undefined;var e=r.style.webkitAnimationName!==undefined;animationPrefix=!n&&e?"-webkit-":""}return animationPrefix};var setStyleProperty=function(r,n,e){var i=n.startsWith("animation")?getAnimationPrefix(r):"";r.style.setProperty(i+n,e)};var addClassToArray=function(r,n){if(r===void 0){r=[]}if(n!==undefined){var e=Array.isArray(n)?n:[n];return __spreadArray(__spreadArray([],r,true),e,true)}return r};var createAnimation=function(r){var n;var e;var i;var t;var a;var f;var u=[];var o=[];var v=[];var d=false;var c;var s={};var l=[];var y=[];var m={};var p=0;var A=false;var g=false;var C;var b;var _;var P=true;var S=false;var T=true;var x;var E=false;var w=r;var h=[];var k=[];var R=[];var D=[];var F=[];var W=[];var I=[];var K=[];var M=[];var j=[];var q=[];var z=typeof AnimationEffect==="function"||win!==undefined&&typeof win.AnimationEffect==="function";var B=typeof Element==="function"&&typeof Element.prototype.animate==="function"&&z;var G=function(){return q};var H=function(r){F.forEach((function(n){n.destroy(r)}));J(r);D.length=0;F.length=0;u.length=0;V();d=false;T=true;return x};var J=function(r){X();if(r){Y()}};var L=function(){A=false;g=false;T=true;C=undefined;b=undefined;_=undefined;p=0;S=false;P=true;E=false};var N=function(){return p!==0&&!E};var O=function(r,n){var e=n.findIndex((function(n){return n.c===r}));if(e>-1){n.splice(e,1)}};var Q=function(r,n){R.push({c:r,o:n});return x};var U=function(r,n){var e=(n===null||n===void 0?void 0:n.oneTimeCallback)?k:h;e.push({c:r,o:n});return x};var V=function(){h.length=0;k.length=0;return x};var X=function(){if(B){q.forEach((function(r){r.cancel()}));q.length=0}};var Y=function(){W.forEach((function(r){if(r===null||r===void 0?void 0:r.parentNode){r.parentNode.removeChild(r)}}));W.length=0};var Z=function(r){I.push(r);return x};var $=function(r){K.push(r);return x};var rr=function(r){M.push(r);return x};var nr=function(r){j.push(r);return x};var er=function(r){o=addClassToArray(o,r);return x};var ir=function(r){v=addClassToArray(v,r);return x};var tr=function(r){if(r===void 0){r={}}s=r;return x};var ar=function(r){if(r===void 0){r=[]}for(var n=0,e=r;n<e.length;n++){var i=e[n];s[i]=""}return x};var fr=function(r){l=addClassToArray(l,r);return x};var ur=function(r){y=addClassToArray(y,r);return x};var or=function(r){if(r===void 0){r={}}m=r;return x};var vr=function(r){if(r===void 0){r=[]}for(var n=0,e=r;n<e.length;n++){var i=e[n];m[i]=""}return x};var dr=function(){if(a!==undefined){return a}if(c){return c.getFill()}return"both"};var cr=function(){if(C!==undefined){return C}if(f!==undefined){return f}if(c){return c.getDirection()}return"normal"};var sr=function(){if(A){return"linear"}if(i!==undefined){return i}if(c){return c.getEasing()}return"linear"};var lr=function(){if(g){return 0}if(b!==undefined){return b}if(e!==undefined){return e}if(c){return c.getDuration()}return 0};var yr=function(){if(t!==undefined){return t}if(c){return c.getIterations()}return 1};var mr=function(){if(_!==undefined){return _}if(n!==undefined){return n}if(c){return c.getDelay()}return 0};var pr=function(){return u};var Ar=function(r){f=r;Kr(true);return x};var gr=function(r){a=r;Kr(true);return x};var Cr=function(r){n=r;Kr(true);return x};var br=function(r){i=r;Kr(true);return x};var _r=function(r){if(!B&&r===0){r=1}e=r;Kr(true);return x};var Pr=function(r){t=r;Kr(true);return x};var Sr=function(r){c=r;return x};var Tr=function(r){if(r!=null){if(r.nodeType===1){D.push(r)}else if(r.length>=0){for(var n=0;n<r.length;n++){D.push(r[n])}}else{console.error("Invalid addElement value")}}return x};var xr=function(r){if(r!=null){if(Array.isArray(r)){for(var n=0,e=r;n<e.length;n++){var i=e[n];i.parent(x);F.push(i)}}else{r.parent(x);F.push(r)}}return x};var Er=function(r){var n=u!==r;u=r;if(n){wr(u)}return x};var wr=function(r){if(B){G().forEach((function(n){var e=n.effect;if(e.setKeyframes){e.setKeyframes(r)}else{var i=new KeyframeEffect(e.target,r,e.getTiming());n.effect=i}}))}};var hr=function(){I.forEach((function(r){return r()}));K.forEach((function(r){return r()}));var r=o;var n=v;var e=s;D.forEach((function(i){var t=i.classList;r.forEach((function(r){return t.add(r)}));n.forEach((function(r){return t.remove(r)}));for(var a in e){if(e.hasOwnProperty(a)){setStyleProperty(i,a,e[a])}}}))};var kr=function(){M.forEach((function(r){return r()}));j.forEach((function(r){return r()}));var r=P?1:0;var n=l;var e=y;var i=m;D.forEach((function(r){var t=r.classList;n.forEach((function(r){return t.add(r)}));e.forEach((function(r){return t.remove(r)}));for(var a in i){if(i.hasOwnProperty(a)){setStyleProperty(r,a,i[a])}}}));b=undefined;C=undefined;_=undefined;h.forEach((function(n){return n.c(r,x)}));k.forEach((function(n){return n.c(r,x)}));k.length=0;T=true;if(P){S=true}P=true};var Rr=function(){if(p===0){return}p--;if(p===0){kr();if(c){c.animationFinish()}}};var Dr=function(){D.forEach((function(r){var n=r.animate(u,{id:w,delay:mr(),duration:lr(),easing:sr(),iterations:yr(),fill:dr(),direction:cr()});n.pause();q.push(n)}));if(q.length>0){q[0].onfinish=function(){Rr()}}};var Fr=function(){hr();if(u.length>0){if(B){Dr()}}d=true};var Wr=function(r){r=Math.min(Math.max(r,0),.9999);if(B){q.forEach((function(n){n.currentTime=n.effect.getComputedTiming().delay+lr()*r;n.pause()}))}};var Ir=function(r){q.forEach((function(r){r.effect.updateTiming({delay:mr(),duration:lr(),easing:sr(),iterations:yr(),fill:dr(),direction:cr()})}));if(r!==undefined){Wr(r)}};var Kr=function(r,n,e){if(r===void 0){r=false}if(n===void 0){n=true}if(r){F.forEach((function(i){i.update(r,n,e)}))}if(B){Ir(e)}return x};var Mr=function(r,n){if(r===void 0){r=false}F.forEach((function(e){e.progressStart(r,n)}));zr();A=r;if(!d){Fr()}Kr(false,true,n);return x};var jr=function(r){F.forEach((function(n){n.progressStep(r)}));Wr(r);return x};var qr=function(r,n,e){A=false;F.forEach((function(i){i.progressEnd(r,n,e)}));if(e!==undefined){b=e}S=false;P=true;if(r===0){C=cr()==="reverse"?"normal":"reverse";if(C==="reverse"){P=false}if(B){Kr();Wr(1-n)}else{_=(1-n)*lr()*-1;Kr(false,false)}}else if(r===1){if(B){Kr();Wr(n)}else{_=n*lr()*-1;Kr(false,false)}}if(r!==undefined&&!c){Lr()}return x};var zr=function(){if(d){if(B){q.forEach((function(r){r.pause()}))}else{D.forEach((function(r){setStyleProperty(r,"animation-play-state","paused")}))}E=true}};var Br=function(){F.forEach((function(r){r.pause()}));zr();return x};var Gr=function(){Rr()};var Hr=function(){q.forEach((function(r){r.play()}));if(u.length===0||D.length===0){Rr()}};var Jr=function(){if(B){Wr(0);Ir()}};var Lr=function(r){return new Promise((function(n){if(r===null||r===void 0?void 0:r.sync){g=true;U((function(){return g=false}),{oneTimeCallback:true})}if(!d){Fr()}if(S){Jr();S=false}if(T){p=F.length+1;T=false}var e=function(){O(i,k);n()};var i=function(){O(e,R);n()};U(i,{oneTimeCallback:true});Q(e,{oneTimeCallback:true});F.forEach((function(r){r.play()}));if(B){Hr()}else{Gr()}E=false}))};var Nr=function(){F.forEach((function(r){r.stop()}));if(d){X();d=false}L();R.forEach((function(r){return r.c(0,x)}));R.length=0};var Or=function(r,n){var e;var i=u[0];if(i!==undefined&&(i.offset===undefined||i.offset===0)){i[r]=n}else{u=__spreadArray([(e={offset:0},e[r]=n,e)],u,true)}return x};var Qr=function(r,n){var e;var i=u[u.length-1];if(i!==undefined&&(i.offset===undefined||i.offset===1)){i[r]=n}else{u=__spreadArray(__spreadArray([],u,true),[(e={offset:1},e[r]=n,e)],false)}return x};var Ur=function(r,n,e){return Or(r,n).to(r,e)};return x={parentAnimation:c,elements:D,childAnimations:F,id:w,animationFinish:Rr,from:Or,to:Qr,fromTo:Ur,parent:Sr,play:Lr,pause:Br,stop:Nr,destroy:H,keyframes:Er,addAnimation:xr,addElement:Tr,update:Kr,fill:gr,direction:Ar,iterations:Pr,duration:_r,easing:br,delay:Cr,getWebAnimations:G,getKeyframes:pr,getFill:dr,getDirection:cr,getDelay:mr,getIterations:yr,getEasing:sr,getDuration:lr,afterAddRead:rr,afterAddWrite:nr,afterClearStyles:vr,afterStyles:or,afterRemoveClass:ur,afterAddClass:fr,beforeAddRead:Z,beforeAddWrite:$,beforeClearStyles:ar,beforeStyles:tr,beforeRemoveClass:ir,beforeAddClass:er,onFinish:U,isRunning:N,progressStart:Mr,progressStep:jr,progressEnd:qr}};export{createAnimation as c};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import{w as writeTask}from"./index-723c0e5d.js";import{h as hapticSelectionEnd,a as hapticSelectionStart,b as hapticSelectionChanged}from"./haptic-ac164e4c.js";import{createGesture}from"./index-39782642.js";var createButtonActiveGesture=function(t,e){var n;var r;var i=function(t,r,i){if(typeof document==="undefined"){return}var o=document.elementFromPoint(t,r);if(!o||!e(o)||o.disabled){c();return}if(o!==n){c();a(o,i)}};var a=function(t,e){n=t;if(!r){r=n}var i=n;writeTask((function(){return i.classList.add("ion-activated")}));e()};var c=function(t){if(t===void 0){t=false}if(!n){return}var e=n;writeTask((function(){return e.classList.remove("ion-activated")}));if(t&&r!==n){n.click()}n=undefined};return createGesture({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:function(t){return i(t.currentX,t.currentY,hapticSelectionStart)},onMove:function(t){return i(t.currentX,t.currentY,hapticSelectionChanged)},onEnd:function(){c(true);hapticSelectionEnd();r=undefined}})};export{createButtonActiveGesture as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import{__spreadArray}from"tslib";
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{p as printIonWarning}from"./ionic-global-d7017fd9.js";var isSameDay=function(e,r){return e.month===r.month&&e.day===r.day&&e.year===r.year};var isBefore=function(e,r){return!!(e.year<r.year||e.year===r.year&&e.month<r.month||e.year===r.year&&e.month===r.month&&e.day!==null&&e.day<r.day)};var isAfter=function(e,r){return!!(e.year>r.year||e.year===r.year&&e.month>r.month||e.year===r.year&&e.month===r.month&&e.day!==null&&e.day>r.day)};var warnIfValueOutOfBounds=function(e,r,n){var a=Array.isArray(e)?e:[e];for(var t=0,i=a;t<i.length;t++){var u=i[t];if(r!==undefined&&isBefore(u,r)||n!==undefined&&isAfter(u,n)){printIonWarning("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(r),"\n")+"Max: ".concat(JSON.stringify(n),"\n")+"Value: ".concat(JSON.stringify(e)));break}}};var isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0};var getHourCycle=function(e,r){if(r!==undefined){return r}var n=new Intl.DateTimeFormat(e,{hour:"numeric"});var a=n.resolvedOptions();if(a.hourCycle!==undefined){return a.hourCycle}var t=new Date("5/18/2021 00:00");var i=n.formatToParts(t);var u=i.find((function(e){return e.type==="hour"}));if(!u){throw new Error("Hour value not found from DateTimeFormat")}switch(u.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var is24Hour=function(e){return e==="h23"||e==="h24"};var getNumDaysInMonth=function(e,r){return e===4||e===6||e===9||e===11?30:e===2?isLeapYear(r)?29:28:31};var isMonthFirstLocale=function(e,r){if(r===void 0){r={month:"numeric",year:"numeric"}}var n=new Intl.DateTimeFormat(e,r).formatToParts(new Date);return n[0].type==="month"};var isLocaleDayPeriodRTL=function(e){var r=new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date);return r[0].type==="dayPeriod"};var ISO_8601_REGEXP=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var TIME_REGEXP=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var convertToArrayOfNumbers=function(e){if(e===undefined){return}var r=e;if(typeof e==="string"){r=e.replace(/\[|\]|\s/g,"").split(",")}var n;if(Array.isArray(r)){n=r.map((function(e){return parseInt(e,10)})).filter(isFinite)}else{n=[r]}return n};var getPartsFromCalendarDay=function(e){return{month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)}};function parseDate(e){if(Array.isArray(e)){var r=[];for(var n=0,a=e;n<a.length;n++){var t=a[n];var i=parseDate(t);if(!i){return undefined}r.push(i)}return r}var u=null;if(e!=null&&e!==""){u=TIME_REGEXP.exec(e);if(u){u.unshift(undefined,undefined);u[2]=u[3]=undefined}else{u=ISO_8601_REGEXP.exec(e)}}if(u===null){printIonWarning("Unable to parse date string: ".concat(e,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var o=1;o<8;o++){u[o]=u[o]!==undefined?parseInt(u[o],10):undefined}return{year:u[1],month:u[2],day:u[3],hour:u[4],minute:u[5],ampm:u[4]<12?"am":"pm"}}var clampDate=function(e,r,n){if(r&&isBefore(e,r)){return r}else if(n&&isAfter(e,n)){return n}return e};var parseAmPm=function(e){return e>=12?"pm":"am"};var parseMaxParts=function(e,r){var n=parseDate(e);if(n===undefined){return}var a=n.month,t=n.day,i=n.year,u=n.hour,o=n.minute;var d=i!==null&&i!==void 0?i:r.year;var f=a!==null&&a!==void 0?a:12;return{month:f,day:t!==null&&t!==void 0?t:getNumDaysInMonth(f,d),year:d,hour:u!==null&&u!==void 0?u:23,minute:o!==null&&o!==void 0?o:59}};var parseMinParts=function(e,r){var n=parseDate(e);if(n===undefined){return}var a=n.month,t=n.day,i=n.year,u=n.hour,o=n.minute;return{month:a!==null&&a!==void 0?a:1,day:t!==null&&t!==void 0?t:1,year:i!==null&&i!==void 0?i:r.year,hour:u!==null&&u!==void 0?u:0,minute:o!==null&&o!==void 0?o:0}};var twoDigit=function(e){return("0"+(e!==undefined?Math.abs(e):"0")).slice(-2)};var fourDigit=function(e){return("000"+(e!==undefined?Math.abs(e):"0")).slice(-4)};function convertDataToISO(e){if(Array.isArray(e)){return e.map((function(e){return convertDataToISO(e)}))}var r="";if(e.year!==undefined){r=fourDigit(e.year);if(e.month!==undefined){r+="-"+twoDigit(e.month);if(e.day!==undefined){r+="-"+twoDigit(e.day);if(e.hour!==undefined){r+="T".concat(twoDigit(e.hour),":").concat(twoDigit(e.minute),":00")}}}}else if(e.hour!==undefined){r=twoDigit(e.hour)+":"+twoDigit(e.minute)}return r}var convert12HourTo24Hour=function(e,r){if(r===undefined){return e}if(r==="am"){if(e===12){return 0}return e}if(e===12){return 12}return e+12};var getStartOfWeek=function(e){var r=e.dayOfWeek;if(r===null||r===undefined){throw new Error("No day of week provided")}return subtractDays(e,r)};var getEndOfWeek=function(e){var r=e.dayOfWeek;if(r===null||r===undefined){throw new Error("No day of week provided")}return addDays(e,6-r)};var getNextDay=function(e){return addDays(e,1)};var getPreviousDay=function(e){return subtractDays(e,1)};var getPreviousWeek=function(e){return subtractDays(e,7)};var getNextWeek=function(e){return addDays(e,7)};var subtractDays=function(e,r){var n=e.month,a=e.day,t=e.year;if(a===null){throw new Error("No day provided")}var i={month:n,day:a,year:t};i.day=a-r;if(i.day<1){i.month-=1}if(i.month<1){i.month=12;i.year-=1}if(i.day<1){var u=getNumDaysInMonth(i.month,i.year);i.day=u+i.day}return i};var addDays=function(e,r){var n=e.month,a=e.day,t=e.year;if(a===null){throw new Error("No day provided")}var i={month:n,day:a,year:t};var u=getNumDaysInMonth(n,t);i.day=a+r;if(i.day>u){i.day-=u;i.month+=1}if(i.month>12){i.month=1;i.year+=1}return i};var getPreviousMonth=function(e){var r=e.month===1?12:e.month-1;var n=e.month===1?e.year-1:e.year;var a=getNumDaysInMonth(r,n);var t=a<e.day?a:e.day;return{month:r,year:n,day:t}};var getNextMonth=function(e){var r=e.month===12?1:e.month+1;var n=e.month===12?e.year+1:e.year;var a=getNumDaysInMonth(r,n);var t=a<e.day?a:e.day;return{month:r,year:n,day:t}};var changeYear=function(e,r){var n=e.month;var a=e.year+r;var t=getNumDaysInMonth(n,a);var i=t<e.day?t:e.day;return{month:n,year:a,day:i}};var getPreviousYear=function(e){return changeYear(e,-1)};var getNextYear=function(e){return changeYear(e,1)};var getInternalHourValue=function(e,r,n){if(r){return e}return convert12HourTo24Hour(e,n)};var calculateHourFromAMPM=function(e,r){var n=e.ampm,a=e.hour;var t=a;if(n==="am"&&r==="pm"){t=convert12HourTo24Hour(t,"pm")}else if(n==="pm"&&r==="am"){t=Math.abs(t-12)}return t};var validateParts=function(e,r,n){var a=e.month,t=e.day,i=e.year;var u=clampDate(Object.assign({},e),r,n);var o=getNumDaysInMonth(a,i);if(t!==null&&o<t){u.day=o}if(r!==undefined&&isSameDay(u,r)){if(u.hour!==undefined&&r.hour!==undefined){if(u.hour<r.hour){u.hour=r.hour;u.minute=r.minute}else if(u.hour===r.hour&&u.minute!==undefined&&r.minute!==undefined&&u.minute<r.minute){u.minute=r.minute}}}if(n!==undefined&&isSameDay(e,n)){if(u.hour!==undefined&&n.hour!==undefined){if(u.hour>n.hour){u.hour=n.hour;u.minute=n.minute}else if(u.hour===n.hour&&u.minute!==undefined&&n.minute!==undefined&&u.minute>n.minute){u.minute=n.minute}}}return u};var getClosestValidDate=function(e){var r=e.refParts,n=e.monthValues,a=e.dayValues,t=e.yearValues,i=e.hourValues,u=e.minuteValues,o=e.minParts,d=e.maxParts;var f=r.hour,v=r.minute,s=r.day,l=r.month,c=r.year;var m=Object.assign(Object.assign({},r),{dayOfWeek:undefined});if(t!==undefined){var y=t.filter((function(e){if(o!==undefined&&e<o.year){return false}if(d!==undefined&&e>d.year){return false}return true}));m.year=findClosestValue(c,y)}if(n!==undefined){var g=n.filter((function(e){if(o!==undefined&&m.year===o.year&&e<o.month){return false}if(d!==undefined&&m.year===d.year&&e>d.month){return false}return true}));m.month=findClosestValue(l,g)}if(s!==null&&a!==undefined){var D=a.filter((function(e){if(o!==undefined&&isBefore(Object.assign(Object.assign({},m),{day:e}),o)){return false}if(d!==undefined&&isAfter(Object.assign(Object.assign({},m),{day:e}),d)){return false}return true}));m.day=findClosestValue(s,D)}if(f!==undefined&&i!==undefined){var h=i.filter((function(e){if((o===null||o===void 0?void 0:o.hour)!==undefined&&isSameDay(m,o)&&e<o.hour){return false}if((d===null||d===void 0?void 0:d.hour)!==undefined&&isSameDay(m,d)&&e>d.hour){return false}return true}));m.hour=findClosestValue(f,h);m.ampm=parseAmPm(m.hour)}if(v!==undefined&&u!==undefined){var T=u.filter((function(e){if((o===null||o===void 0?void 0:o.minute)!==undefined&&isSameDay(m,o)&&m.hour===o.hour&&e<o.minute){return false}if((d===null||d===void 0?void 0:d.minute)!==undefined&&isSameDay(m,d)&&m.hour===d.hour&&e>d.minute){return false}return true}));m.minute=findClosestValue(v,T)}return m};var findClosestValue=function(e,r){var n=r[0];var a=Math.abs(n-e);for(var t=1;t<r.length;t++){var i=r[t];var u=Math.abs(i-e);if(u<a){n=i;a=u}}return n};var getFormattedDayPeriod=function(e){if(e===undefined){return""}return e.toUpperCase()};var stripTimeZone=function(e){return Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:undefined})};var getLocalizedTime=function(e,r,n,a){if(a===void 0){a={hour:"numeric",minute:"numeric"}}var t={hour:r.hour,minute:r.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},stripTimeZone(a)),{hourCycle:n})).format(new Date(convertDataToISO(Object.assign({year:2023,day:1,month:1},t))+"Z"))};var addTimePadding=function(e){var r=e.toString();if(r.length>1){return r}return"0".concat(r)};var getFormattedHour=function(e,r){if(e===0){switch(r){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}}var n=is24Hour(r);if(n){return addTimePadding(e)}return e.toString()};var generateDayAriaLabel=function(e,r,n){if(n.day===null){return null}var a=getNormalizedDate(n);var t=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(a);return r?"Today, ".concat(t):t};var getMonthAndYear=function(e,r){var n=getNormalizedDate(r);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)};var getDay=function(e,r){return getLocalizedDateTimeParts(e,r,{day:"numeric"}).find((function(e){return e.type==="day"})).value};var getYear=function(e,r){return getLocalizedDateTime(e,r,{year:"numeric"})};var getNormalizedDate=function(e){var r,n,a;var t=e.hour!==undefined&&e.minute!==undefined?" ".concat(e.hour,":").concat(e.minute):"";return new Date("".concat((r=e.month)!==null&&r!==void 0?r:1,"/").concat((n=e.day)!==null&&n!==void 0?n:1,"/").concat((a=e.year)!==null&&a!==void 0?a:2023).concat(t," GMT+0000"))};var getLocalizedDateTime=function(e,r,n){var a=getNormalizedDate(r);return getDateTimeFormat(e,stripTimeZone(n)).format(a)};var getLocalizedDateTimeParts=function(e,r,n){var a=getNormalizedDate(r);return getDateTimeFormat(e,n).formatToParts(a)};var getDateTimeFormat=function(e,r){return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},r),{timeZone:"UTC"}))};var getTodayLabel=function(e){if("RelativeTimeFormat"in Intl){var r=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return r.charAt(0).toUpperCase()+r.slice(1)}else{return"Today"}};var removeDateTzOffset=function(e){var r=e.getTimezoneOffset();e.setMinutes(e.getMinutes()-r);return e};var DATE_AM=removeDateTzOffset(new Date("2022T01:00"));var DATE_PM=removeDateTzOffset(new Date("2022T13:00"));var getLocalizedDayPeriod=function(e,r){var n=r==="am"?DATE_AM:DATE_PM;var a=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((function(e){return e.type==="dayPeriod"}));if(a){return a.value}return getFormattedDayPeriod(r)};var formatValue=function(e){return Array.isArray(e)?e.join(","):e};var getToday=function(){return removeDateTzOffset(new Date).toISOString()};var minutes=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var hour11=[0,1,2,3,4,5,6,7,8,9,10,11];var hour12=[0,1,2,3,4,5,6,7,8,9,10,11];var hour23=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var hour24=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var getDaysOfWeek=function(e,r,n){if(n===void 0){n=0}var a=r==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(e,{weekday:a});var i=new Date("11/01/2020");var u=[];for(var o=n;o<n+7;o++){var d=new Date(i);d.setDate(d.getDate()+o);u.push(t.format(d))}return u};var getDaysOfMonth=function(e,r,n){var a=getNumDaysInMonth(e,r);var t=new Date("".concat(e,"/1/").concat(r)).getDay();var i=t>=n?t-(n+1):6-(n-t);var u=[];for(var o=1;o<=a;o++){u.push({day:o,dayOfWeek:(i+o)%7})}for(var o=0;o<=i;o++){u=__spreadArray([{day:null,dayOfWeek:null}],u,true)}return u};var getHourData=function(e){switch(e){case"h11":return hour11;case"h12":return hour12;case"h23":return hour23;case"h24":return hour24;default:throw new Error('Invalid hour cycle "'.concat(e,'"'))}};var generateTime=function(e,r,n,a,t,i,u){if(n===void 0){n="h12"}var o=getHourCycle(e,n);var d=is24Hour(o);var f=getHourData(o);var v=minutes;var s=true;var l=true;if(i){f=f.filter((function(e){return i.includes(e)}))}if(u){v=v.filter((function(e){return u.includes(e)}))}if(a){if(isSameDay(r,a)){if(a.hour!==undefined){f=f.filter((function(e){var n=r.ampm==="pm"?(e+12)%24:e;return(d?e:n)>=a.hour}));s=a.hour<13}if(a.minute!==undefined){var c=false;if(a.hour!==undefined&&r.hour!==undefined){if(r.hour>a.hour){c=true}}v=v.filter((function(e){if(c){return true}return e>=a.minute}))}}else if(isBefore(r,a)){f=[];v=[];s=l=false}}if(t){if(isSameDay(r,t)){if(t.hour!==undefined){f=f.filter((function(e){var n=r.ampm==="pm"?(e+12)%24:e;return(d?e:n)<=t.hour}));l=t.hour>=12}if(t.minute!==undefined&&r.hour===t.hour){v=v.filter((function(e){return e<=t.minute}))}}else if(isAfter(r,t)){f=[];v=[];s=l=false}}return{hours:f,minutes:v,am:s,pm:l}};var generateMonths=function(e,r){var n={month:e.month,year:e.year,day:e.day};if(r!==undefined&&(e.month!==r.month||e.year!==r.year)){var a={month:r.month,year:r.year,day:r.day};var t=isBefore(a,n);return t?[a,n,getNextMonth(e)]:[getPreviousMonth(e),n,a]}return[getPreviousMonth(e),n,getNextMonth(e)]};var getMonthColumnData=function(e,r,n,a,t,i){if(i===void 0){i={month:"long"}}var u=r.year;var o=[];if(t!==undefined){var d=t;if((a===null||a===void 0?void 0:a.month)!==undefined){d=d.filter((function(e){return e<=a.month}))}if((n===null||n===void 0?void 0:n.month)!==undefined){d=d.filter((function(e){return e>=n.month}))}d.forEach((function(r){var n=new Date("".concat(r,"/1/").concat(u," GMT+0000"));var a=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(n);o.push({text:a,value:r})}))}else{var f=a&&a.year===u?a.month:12;var v=n&&n.year===u?n.month:1;for(var s=v;s<=f;s++){var l=new Date("".concat(s,"/1/").concat(u," GMT+0000"));var c=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(l);o.push({text:c,value:s})}}return o};var getDayColumnData=function(e,r,n,a,t,i){if(i===void 0){i={day:"numeric"}}var u=r.month,o=r.year;var d=[];var f=getNumDaysInMonth(u,o);var v=(a===null||a===void 0?void 0:a.day)!==null&&(a===null||a===void 0?void 0:a.day)!==undefined&&a.year===o&&a.month===u?a.day:f;var s=(n===null||n===void 0?void 0:n.day)!==null&&(n===null||n===void 0?void 0:n.day)!==undefined&&n.year===o&&n.month===u?n.day:1;if(t!==undefined){var l=t;l=l.filter((function(e){return e>=s&&e<=v}));l.forEach((function(r){var n=new Date("".concat(u,"/").concat(r,"/").concat(o," GMT+0000"));var a=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(n);d.push({text:a,value:r})}))}else{for(var c=s;c<=v;c++){var m=new Date("".concat(u,"/").concat(c,"/").concat(o," GMT+0000"));var y=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(m);d.push({text:y,value:c})}}return d};var getYearColumnData=function(e,r,n,a,t){var i,u;var o=[];if(t!==undefined){o=t;if((a===null||a===void 0?void 0:a.year)!==undefined){o=o.filter((function(e){return e<=a.year}))}if((n===null||n===void 0?void 0:n.year)!==undefined){o=o.filter((function(e){return e>=n.year}))}}else{var d=r.year;var f=(i=a===null||a===void 0?void 0:a.year)!==null&&i!==void 0?i:d;var v=(u=n===null||n===void 0?void 0:n.year)!==null&&u!==void 0?u:d-100;for(var s=v;s<=f;s++){o.push(s)}}return o.map((function(n){return{text:getYear(e,{year:n,month:r.month,day:r.day}),value:n}}))};var getAllMonthsInRange=function(e,r){if(e.month===r.month&&e.year===r.year){return[e]}return __spreadArray([e],getAllMonthsInRange(getNextMonth(e),r),true)};var getCombinedDateColumnData=function(e,r,n,a,t,i){var u=[];var o=[];var d=getAllMonthsInRange(n,a);if(i){d=d.filter((function(e){var r=e.month;return i.includes(r)}))}d.forEach((function(i){var d={month:i.month,day:null,year:i.year};var f=getDayColumnData(e,d,n,a,t,{month:"short",day:"numeric",weekday:"short"});var v=[];var s=[];f.forEach((function(n){var a=isSameDay(Object.assign(Object.assign({},d),{day:n.value}),r);s.push({text:a?getTodayLabel(e):n.text,value:"".concat(d.year,"-").concat(d.month,"-").concat(n.value)});v.push({month:d.month,year:d.year,day:n.value})}));o=__spreadArray(__spreadArray([],o,true),v,true);u=__spreadArray(__spreadArray([],u,true),s,true)}));return{parts:o,items:u}};var getTimeColumnsData=function(e,r,n,a,t,i,u){var o=getHourCycle(e,n);var d=is24Hour(o);var f=generateTime(e,r,o,a,t,i,u),v=f.hours,s=f.minutes,l=f.am,c=f.pm;var m=v.map((function(e){return{text:getFormattedHour(e,o),value:getInternalHourValue(e,d,r.ampm)}}));var y=s.map((function(e){return{text:addTimePadding(e),value:e}}));var g=[];if(l&&!d){g.push({text:getLocalizedDayPeriod(e,"am"),value:"am"})}if(c&&!d){g.push({text:getLocalizedDayPeriod(e,"pm"),value:"pm"})}return{minutesData:y,hoursData:m,dayPeriodData:g}};export{getNumDaysInMonth as A,getCombinedDateColumnData as B,getMonthColumnData as C,getDayColumnData as D,getYearColumnData as E,isMonthFirstLocale as F,getTimeColumnsData as G,isLocaleDayPeriodRTL as H,getDaysOfWeek as I,getMonthAndYear as J,getDaysOfMonth as K,getHourCycle as L,getLocalizedTime as M,getLocalizedDateTime as N,formatValue as O,clampDate as P,parseAmPm as Q,calculateHourFromAMPM as R,getDay as a,isAfter as b,isSameDay as c,getPreviousMonth as d,getNextMonth as e,getPartsFromCalendarDay as f,generateDayAriaLabel as g,getNextYear as h,isBefore as i,getPreviousYear as j,getEndOfWeek as k,getStartOfWeek as l,getPreviousDay as m,getNextDay as n,getPreviousWeek as o,getNextWeek as p,parseMinParts as q,parseMaxParts as r,parseDate as s,convertToArrayOfNumbers as t,convertDataToISO as u,validateParts as v,warnIfValueOutOfBounds as w,getToday as x,getClosestValidDate as y,generateMonths as z};
|
|
4
|
+
*/import{p as printIonWarning}from"./ionic-global-a8cbb8b0.js";var isSameDay=function(e,r){return e.month===r.month&&e.day===r.day&&e.year===r.year};var isBefore=function(e,r){return!!(e.year<r.year||e.year===r.year&&e.month<r.month||e.year===r.year&&e.month===r.month&&e.day!==null&&e.day<r.day)};var isAfter=function(e,r){return!!(e.year>r.year||e.year===r.year&&e.month>r.month||e.year===r.year&&e.month===r.month&&e.day!==null&&e.day>r.day)};var warnIfValueOutOfBounds=function(e,r,n){var a=Array.isArray(e)?e:[e];for(var t=0,i=a;t<i.length;t++){var u=i[t];if(r!==undefined&&isBefore(u,r)||n!==undefined&&isAfter(u,n)){printIonWarning("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(r),"\n")+"Max: ".concat(JSON.stringify(n),"\n")+"Value: ".concat(JSON.stringify(e)));break}}};var isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0};var getHourCycle=function(e,r){if(r!==undefined){return r}var n=new Intl.DateTimeFormat(e,{hour:"numeric"});var a=n.resolvedOptions();if(a.hourCycle!==undefined){return a.hourCycle}var t=new Date("5/18/2021 00:00");var i=n.formatToParts(t);var u=i.find((function(e){return e.type==="hour"}));if(!u){throw new Error("Hour value not found from DateTimeFormat")}switch(u.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var is24Hour=function(e){return e==="h23"||e==="h24"};var getNumDaysInMonth=function(e,r){return e===4||e===6||e===9||e===11?30:e===2?isLeapYear(r)?29:28:31};var isMonthFirstLocale=function(e,r){if(r===void 0){r={month:"numeric",year:"numeric"}}var n=new Intl.DateTimeFormat(e,r).formatToParts(new Date);return n[0].type==="month"};var isLocaleDayPeriodRTL=function(e){var r=new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date);return r[0].type==="dayPeriod"};var ISO_8601_REGEXP=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var TIME_REGEXP=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var convertToArrayOfNumbers=function(e){if(e===undefined){return}var r=e;if(typeof e==="string"){r=e.replace(/\[|\]|\s/g,"").split(",")}var n;if(Array.isArray(r)){n=r.map((function(e){return parseInt(e,10)})).filter(isFinite)}else{n=[r]}return n};var getPartsFromCalendarDay=function(e){return{month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)}};function parseDate(e){if(Array.isArray(e)){var r=[];for(var n=0,a=e;n<a.length;n++){var t=a[n];var i=parseDate(t);if(!i){return undefined}r.push(i)}return r}var u=null;if(e!=null&&e!==""){u=TIME_REGEXP.exec(e);if(u){u.unshift(undefined,undefined);u[2]=u[3]=undefined}else{u=ISO_8601_REGEXP.exec(e)}}if(u===null){printIonWarning("Unable to parse date string: ".concat(e,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var o=1;o<8;o++){u[o]=u[o]!==undefined?parseInt(u[o],10):undefined}return{year:u[1],month:u[2],day:u[3],hour:u[4],minute:u[5],ampm:u[4]<12?"am":"pm"}}var clampDate=function(e,r,n){if(r&&isBefore(e,r)){return r}else if(n&&isAfter(e,n)){return n}return e};var parseAmPm=function(e){return e>=12?"pm":"am"};var parseMaxParts=function(e,r){var n=parseDate(e);if(n===undefined){return}var a=n.month,t=n.day,i=n.year,u=n.hour,o=n.minute;var d=i!==null&&i!==void 0?i:r.year;var f=a!==null&&a!==void 0?a:12;return{month:f,day:t!==null&&t!==void 0?t:getNumDaysInMonth(f,d),year:d,hour:u!==null&&u!==void 0?u:23,minute:o!==null&&o!==void 0?o:59}};var parseMinParts=function(e,r){var n=parseDate(e);if(n===undefined){return}var a=n.month,t=n.day,i=n.year,u=n.hour,o=n.minute;return{month:a!==null&&a!==void 0?a:1,day:t!==null&&t!==void 0?t:1,year:i!==null&&i!==void 0?i:r.year,hour:u!==null&&u!==void 0?u:0,minute:o!==null&&o!==void 0?o:0}};var twoDigit=function(e){return("0"+(e!==undefined?Math.abs(e):"0")).slice(-2)};var fourDigit=function(e){return("000"+(e!==undefined?Math.abs(e):"0")).slice(-4)};function convertDataToISO(e){if(Array.isArray(e)){return e.map((function(e){return convertDataToISO(e)}))}var r="";if(e.year!==undefined){r=fourDigit(e.year);if(e.month!==undefined){r+="-"+twoDigit(e.month);if(e.day!==undefined){r+="-"+twoDigit(e.day);if(e.hour!==undefined){r+="T".concat(twoDigit(e.hour),":").concat(twoDigit(e.minute),":00")}}}}else if(e.hour!==undefined){r=twoDigit(e.hour)+":"+twoDigit(e.minute)}return r}var convert12HourTo24Hour=function(e,r){if(r===undefined){return e}if(r==="am"){if(e===12){return 0}return e}if(e===12){return 12}return e+12};var getStartOfWeek=function(e){var r=e.dayOfWeek;if(r===null||r===undefined){throw new Error("No day of week provided")}return subtractDays(e,r)};var getEndOfWeek=function(e){var r=e.dayOfWeek;if(r===null||r===undefined){throw new Error("No day of week provided")}return addDays(e,6-r)};var getNextDay=function(e){return addDays(e,1)};var getPreviousDay=function(e){return subtractDays(e,1)};var getPreviousWeek=function(e){return subtractDays(e,7)};var getNextWeek=function(e){return addDays(e,7)};var subtractDays=function(e,r){var n=e.month,a=e.day,t=e.year;if(a===null){throw new Error("No day provided")}var i={month:n,day:a,year:t};i.day=a-r;if(i.day<1){i.month-=1}if(i.month<1){i.month=12;i.year-=1}if(i.day<1){var u=getNumDaysInMonth(i.month,i.year);i.day=u+i.day}return i};var addDays=function(e,r){var n=e.month,a=e.day,t=e.year;if(a===null){throw new Error("No day provided")}var i={month:n,day:a,year:t};var u=getNumDaysInMonth(n,t);i.day=a+r;if(i.day>u){i.day-=u;i.month+=1}if(i.month>12){i.month=1;i.year+=1}return i};var getPreviousMonth=function(e){var r=e.month===1?12:e.month-1;var n=e.month===1?e.year-1:e.year;var a=getNumDaysInMonth(r,n);var t=a<e.day?a:e.day;return{month:r,year:n,day:t}};var getNextMonth=function(e){var r=e.month===12?1:e.month+1;var n=e.month===12?e.year+1:e.year;var a=getNumDaysInMonth(r,n);var t=a<e.day?a:e.day;return{month:r,year:n,day:t}};var changeYear=function(e,r){var n=e.month;var a=e.year+r;var t=getNumDaysInMonth(n,a);var i=t<e.day?t:e.day;return{month:n,year:a,day:i}};var getPreviousYear=function(e){return changeYear(e,-1)};var getNextYear=function(e){return changeYear(e,1)};var getInternalHourValue=function(e,r,n){if(r){return e}return convert12HourTo24Hour(e,n)};var calculateHourFromAMPM=function(e,r){var n=e.ampm,a=e.hour;var t=a;if(n==="am"&&r==="pm"){t=convert12HourTo24Hour(t,"pm")}else if(n==="pm"&&r==="am"){t=Math.abs(t-12)}return t};var validateParts=function(e,r,n){var a=e.month,t=e.day,i=e.year;var u=clampDate(Object.assign({},e),r,n);var o=getNumDaysInMonth(a,i);if(t!==null&&o<t){u.day=o}if(r!==undefined&&isSameDay(u,r)){if(u.hour!==undefined&&r.hour!==undefined){if(u.hour<r.hour){u.hour=r.hour;u.minute=r.minute}else if(u.hour===r.hour&&u.minute!==undefined&&r.minute!==undefined&&u.minute<r.minute){u.minute=r.minute}}}if(n!==undefined&&isSameDay(e,n)){if(u.hour!==undefined&&n.hour!==undefined){if(u.hour>n.hour){u.hour=n.hour;u.minute=n.minute}else if(u.hour===n.hour&&u.minute!==undefined&&n.minute!==undefined&&u.minute>n.minute){u.minute=n.minute}}}return u};var getClosestValidDate=function(e){var r=e.refParts,n=e.monthValues,a=e.dayValues,t=e.yearValues,i=e.hourValues,u=e.minuteValues,o=e.minParts,d=e.maxParts;var f=r.hour,v=r.minute,s=r.day,l=r.month,c=r.year;var m=Object.assign(Object.assign({},r),{dayOfWeek:undefined});if(t!==undefined){var y=t.filter((function(e){if(o!==undefined&&e<o.year){return false}if(d!==undefined&&e>d.year){return false}return true}));m.year=findClosestValue(c,y)}if(n!==undefined){var g=n.filter((function(e){if(o!==undefined&&m.year===o.year&&e<o.month){return false}if(d!==undefined&&m.year===d.year&&e>d.month){return false}return true}));m.month=findClosestValue(l,g)}if(s!==null&&a!==undefined){var D=a.filter((function(e){if(o!==undefined&&isBefore(Object.assign(Object.assign({},m),{day:e}),o)){return false}if(d!==undefined&&isAfter(Object.assign(Object.assign({},m),{day:e}),d)){return false}return true}));m.day=findClosestValue(s,D)}if(f!==undefined&&i!==undefined){var h=i.filter((function(e){if((o===null||o===void 0?void 0:o.hour)!==undefined&&isSameDay(m,o)&&e<o.hour){return false}if((d===null||d===void 0?void 0:d.hour)!==undefined&&isSameDay(m,d)&&e>d.hour){return false}return true}));m.hour=findClosestValue(f,h);m.ampm=parseAmPm(m.hour)}if(v!==undefined&&u!==undefined){var T=u.filter((function(e){if((o===null||o===void 0?void 0:o.minute)!==undefined&&isSameDay(m,o)&&m.hour===o.hour&&e<o.minute){return false}if((d===null||d===void 0?void 0:d.minute)!==undefined&&isSameDay(m,d)&&m.hour===d.hour&&e>d.minute){return false}return true}));m.minute=findClosestValue(v,T)}return m};var findClosestValue=function(e,r){var n=r[0];var a=Math.abs(n-e);for(var t=1;t<r.length;t++){var i=r[t];var u=Math.abs(i-e);if(u<a){n=i;a=u}}return n};var getFormattedDayPeriod=function(e){if(e===undefined){return""}return e.toUpperCase()};var stripTimeZone=function(e){return Object.assign(Object.assign({},e),{timeZone:"UTC",timeZoneName:undefined})};var getLocalizedTime=function(e,r,n,a){if(a===void 0){a={hour:"numeric",minute:"numeric"}}var t={hour:r.hour,minute:r.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},stripTimeZone(a)),{hourCycle:n})).format(new Date(convertDataToISO(Object.assign({year:2023,day:1,month:1},t))+"Z"))};var addTimePadding=function(e){var r=e.toString();if(r.length>1){return r}return"0".concat(r)};var getFormattedHour=function(e,r){if(e===0){switch(r){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}}var n=is24Hour(r);if(n){return addTimePadding(e)}return e.toString()};var generateDayAriaLabel=function(e,r,n){if(n.day===null){return null}var a=getNormalizedDate(n);var t=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(a);return r?"Today, ".concat(t):t};var getMonthAndYear=function(e,r){var n=getNormalizedDate(r);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(n)};var getDay=function(e,r){return getLocalizedDateTimeParts(e,r,{day:"numeric"}).find((function(e){return e.type==="day"})).value};var getYear=function(e,r){return getLocalizedDateTime(e,r,{year:"numeric"})};var getNormalizedDate=function(e){var r,n,a;var t=e.hour!==undefined&&e.minute!==undefined?" ".concat(e.hour,":").concat(e.minute):"";return new Date("".concat((r=e.month)!==null&&r!==void 0?r:1,"/").concat((n=e.day)!==null&&n!==void 0?n:1,"/").concat((a=e.year)!==null&&a!==void 0?a:2023).concat(t," GMT+0000"))};var getLocalizedDateTime=function(e,r,n){var a=getNormalizedDate(r);return getDateTimeFormat(e,stripTimeZone(n)).format(a)};var getLocalizedDateTimeParts=function(e,r,n){var a=getNormalizedDate(r);return getDateTimeFormat(e,n).formatToParts(a)};var getDateTimeFormat=function(e,r){return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},r),{timeZone:"UTC"}))};var getTodayLabel=function(e){if("RelativeTimeFormat"in Intl){var r=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return r.charAt(0).toUpperCase()+r.slice(1)}else{return"Today"}};var removeDateTzOffset=function(e){var r=e.getTimezoneOffset();e.setMinutes(e.getMinutes()-r);return e};var DATE_AM=removeDateTzOffset(new Date("2022T01:00"));var DATE_PM=removeDateTzOffset(new Date("2022T13:00"));var getLocalizedDayPeriod=function(e,r){var n=r==="am"?DATE_AM:DATE_PM;var a=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(n).find((function(e){return e.type==="dayPeriod"}));if(a){return a.value}return getFormattedDayPeriod(r)};var formatValue=function(e){return Array.isArray(e)?e.join(","):e};var getToday=function(){return removeDateTzOffset(new Date).toISOString()};var minutes=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var hour11=[0,1,2,3,4,5,6,7,8,9,10,11];var hour12=[0,1,2,3,4,5,6,7,8,9,10,11];var hour23=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var hour24=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var getDaysOfWeek=function(e,r,n){if(n===void 0){n=0}var a=r==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(e,{weekday:a});var i=new Date("11/01/2020");var u=[];for(var o=n;o<n+7;o++){var d=new Date(i);d.setDate(d.getDate()+o);u.push(t.format(d))}return u};var getDaysOfMonth=function(e,r,n){var a=getNumDaysInMonth(e,r);var t=new Date("".concat(e,"/1/").concat(r)).getDay();var i=t>=n?t-(n+1):6-(n-t);var u=[];for(var o=1;o<=a;o++){u.push({day:o,dayOfWeek:(i+o)%7})}for(var o=0;o<=i;o++){u=__spreadArray([{day:null,dayOfWeek:null}],u,true)}return u};var getHourData=function(e){switch(e){case"h11":return hour11;case"h12":return hour12;case"h23":return hour23;case"h24":return hour24;default:throw new Error('Invalid hour cycle "'.concat(e,'"'))}};var generateTime=function(e,r,n,a,t,i,u){if(n===void 0){n="h12"}var o=getHourCycle(e,n);var d=is24Hour(o);var f=getHourData(o);var v=minutes;var s=true;var l=true;if(i){f=f.filter((function(e){return i.includes(e)}))}if(u){v=v.filter((function(e){return u.includes(e)}))}if(a){if(isSameDay(r,a)){if(a.hour!==undefined){f=f.filter((function(e){var n=r.ampm==="pm"?(e+12)%24:e;return(d?e:n)>=a.hour}));s=a.hour<13}if(a.minute!==undefined){var c=false;if(a.hour!==undefined&&r.hour!==undefined){if(r.hour>a.hour){c=true}}v=v.filter((function(e){if(c){return true}return e>=a.minute}))}}else if(isBefore(r,a)){f=[];v=[];s=l=false}}if(t){if(isSameDay(r,t)){if(t.hour!==undefined){f=f.filter((function(e){var n=r.ampm==="pm"?(e+12)%24:e;return(d?e:n)<=t.hour}));l=t.hour>=12}if(t.minute!==undefined&&r.hour===t.hour){v=v.filter((function(e){return e<=t.minute}))}}else if(isAfter(r,t)){f=[];v=[];s=l=false}}return{hours:f,minutes:v,am:s,pm:l}};var generateMonths=function(e,r){var n={month:e.month,year:e.year,day:e.day};if(r!==undefined&&(e.month!==r.month||e.year!==r.year)){var a={month:r.month,year:r.year,day:r.day};var t=isBefore(a,n);return t?[a,n,getNextMonth(e)]:[getPreviousMonth(e),n,a]}return[getPreviousMonth(e),n,getNextMonth(e)]};var getMonthColumnData=function(e,r,n,a,t,i){if(i===void 0){i={month:"long"}}var u=r.year;var o=[];if(t!==undefined){var d=t;if((a===null||a===void 0?void 0:a.month)!==undefined){d=d.filter((function(e){return e<=a.month}))}if((n===null||n===void 0?void 0:n.month)!==undefined){d=d.filter((function(e){return e>=n.month}))}d.forEach((function(r){var n=new Date("".concat(r,"/1/").concat(u," GMT+0000"));var a=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(n);o.push({text:a,value:r})}))}else{var f=a&&a.year===u?a.month:12;var v=n&&n.year===u?n.month:1;for(var s=v;s<=f;s++){var l=new Date("".concat(s,"/1/").concat(u," GMT+0000"));var c=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(l);o.push({text:c,value:s})}}return o};var getDayColumnData=function(e,r,n,a,t,i){if(i===void 0){i={day:"numeric"}}var u=r.month,o=r.year;var d=[];var f=getNumDaysInMonth(u,o);var v=(a===null||a===void 0?void 0:a.day)!==null&&(a===null||a===void 0?void 0:a.day)!==undefined&&a.year===o&&a.month===u?a.day:f;var s=(n===null||n===void 0?void 0:n.day)!==null&&(n===null||n===void 0?void 0:n.day)!==undefined&&n.year===o&&n.month===u?n.day:1;if(t!==undefined){var l=t;l=l.filter((function(e){return e>=s&&e<=v}));l.forEach((function(r){var n=new Date("".concat(u,"/").concat(r,"/").concat(o," GMT+0000"));var a=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(n);d.push({text:a,value:r})}))}else{for(var c=s;c<=v;c++){var m=new Date("".concat(u,"/").concat(c,"/").concat(o," GMT+0000"));var y=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(m);d.push({text:y,value:c})}}return d};var getYearColumnData=function(e,r,n,a,t){var i,u;var o=[];if(t!==undefined){o=t;if((a===null||a===void 0?void 0:a.year)!==undefined){o=o.filter((function(e){return e<=a.year}))}if((n===null||n===void 0?void 0:n.year)!==undefined){o=o.filter((function(e){return e>=n.year}))}}else{var d=r.year;var f=(i=a===null||a===void 0?void 0:a.year)!==null&&i!==void 0?i:d;var v=(u=n===null||n===void 0?void 0:n.year)!==null&&u!==void 0?u:d-100;for(var s=v;s<=f;s++){o.push(s)}}return o.map((function(n){return{text:getYear(e,{year:n,month:r.month,day:r.day}),value:n}}))};var getAllMonthsInRange=function(e,r){if(e.month===r.month&&e.year===r.year){return[e]}return __spreadArray([e],getAllMonthsInRange(getNextMonth(e),r),true)};var getCombinedDateColumnData=function(e,r,n,a,t,i){var u=[];var o=[];var d=getAllMonthsInRange(n,a);if(i){d=d.filter((function(e){var r=e.month;return i.includes(r)}))}d.forEach((function(i){var d={month:i.month,day:null,year:i.year};var f=getDayColumnData(e,d,n,a,t,{month:"short",day:"numeric",weekday:"short"});var v=[];var s=[];f.forEach((function(n){var a=isSameDay(Object.assign(Object.assign({},d),{day:n.value}),r);s.push({text:a?getTodayLabel(e):n.text,value:"".concat(d.year,"-").concat(d.month,"-").concat(n.value)});v.push({month:d.month,year:d.year,day:n.value})}));o=__spreadArray(__spreadArray([],o,true),v,true);u=__spreadArray(__spreadArray([],u,true),s,true)}));return{parts:o,items:u}};var getTimeColumnsData=function(e,r,n,a,t,i,u){var o=getHourCycle(e,n);var d=is24Hour(o);var f=generateTime(e,r,o,a,t,i,u),v=f.hours,s=f.minutes,l=f.am,c=f.pm;var m=v.map((function(e){return{text:getFormattedHour(e,o),value:getInternalHourValue(e,d,r.ampm)}}));var y=s.map((function(e){return{text:addTimePadding(e),value:e}}));var g=[];if(l&&!d){g.push({text:getLocalizedDayPeriod(e,"am"),value:"am"})}if(c&&!d){g.push({text:getLocalizedDayPeriod(e,"pm"),value:"pm"})}return{minutesData:y,hoursData:m,dayPeriodData:g}};export{getNumDaysInMonth as A,getCombinedDateColumnData as B,getMonthColumnData as C,getDayColumnData as D,getYearColumnData as E,isMonthFirstLocale as F,getTimeColumnsData as G,isLocaleDayPeriodRTL as H,getDaysOfWeek as I,getMonthAndYear as J,getDaysOfMonth as K,getHourCycle as L,getLocalizedTime as M,getLocalizedDateTime as N,formatValue as O,clampDate as P,parseAmPm as Q,calculateHourFromAMPM as R,getDay as a,isAfter as b,isSameDay as c,getPreviousMonth as d,getNextMonth as e,getPartsFromCalendarDay as f,generateDayAriaLabel as g,getNextYear as h,isBefore as i,getPreviousYear as j,getEndOfWeek as k,getStartOfWeek as l,getPreviousDay as m,getNextDay as n,getPreviousWeek as o,getNextWeek as p,parseMinParts as q,parseMaxParts as r,parseDate as s,convertToArrayOfNumbers as t,convertDataToISO as u,validateParts as v,warnIfValueOutOfBounds as w,getToday as x,getClosestValidDate as y,generateMonths as z};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
var ION_FOCUSED="ion-focused";var ION_FOCUSABLE="ion-focusable";var FOCUS_KEYS=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"];var startFocusVisible=function(r){var o=[];var n=true;var t=r?r.shadowRoot:document;var u=r?r:document.body;var e=function(r){o.forEach((function(r){return r.classList.remove(ION_FOCUSED)}));r.forEach((function(r){return r.classList.add(ION_FOCUSED)}));o=r};var a=function(){n=false;e([])};var i=function(r){n=FOCUS_KEYS.includes(r.key);if(!n){e([])}};var c=function(r){if(n&&r.composedPath!==undefined){var o=r.composedPath().filter((function(r){if(r.classList){return r.classList.contains(ION_FOCUSABLE)}return false}));e(o)}};var f=function(){if(t.activeElement===u){e([])}};t.addEventListener("keydown",i);t.addEventListener("focusin",c);t.addEventListener("focusout",f);t.addEventListener("touchstart",a,{passive:true});t.addEventListener("mousedown",a);var s=function(){t.removeEventListener("keydown",i);t.removeEventListener("focusin",c);t.removeEventListener("focusout",f);t.removeEventListener("touchstart",a);t.removeEventListener("mousedown",a)};return{destroy:s,setFocus:e}};export{startFocusVisible};
|