@ionic/core 8.4.2-dev.11736797843.16cc5058 → 8.4.2-dev.11739377372.17be7c08
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 +29 -40
- package/components/alert.js +33 -46
- package/components/animation.js +1 -1
- package/components/backdrop.js +10 -15
- package/components/button.js +58 -36
- package/components/buttons.js +11 -19
- package/components/capacitor.js +1 -1
- package/components/caret-down.js +6 -0
- package/components/caret-left.js +6 -0
- package/components/caret-right.js +6 -0
- package/components/checkbox.js +39 -44
- package/components/config2.js +79 -0
- package/components/content.js +16 -34
- package/components/data.js +6 -6
- package/components/focus-visible.js +8 -1
- package/components/framework-delegate.js +3 -1
- package/components/header.js +26 -24
- package/components/helpers.js +4 -1
- package/components/index2.js +2 -2
- package/components/index4.js +8 -9
- package/components/index5.js +27 -3
- package/components/index6.js +114 -20
- package/components/index7.js +163 -27
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +1 -2
- package/components/ion-accordion-group.js +27 -23
- package/components/ion-accordion.js +43 -44
- package/components/ion-app.js +9 -77
- package/components/ion-avatar.js +52 -3
- package/components/ion-back-button.js +36 -27
- package/components/ion-badge.js +45 -8
- package/components/ion-breadcrumb.js +58 -28
- package/components/ion-breadcrumbs.js +15 -17
- package/components/ion-card-content.js +11 -7
- package/components/ion-card-header.js +10 -10
- package/components/ion-card-subtitle.js +10 -5
- package/components/ion-card-title.js +10 -5
- package/components/ion-card.js +23 -22
- package/components/ion-chip.js +46 -14
- package/components/ion-col.js +29 -5
- package/components/ion-datetime-button.js +17 -18
- package/components/ion-datetime.js +141 -138
- package/components/ion-fab-button.js +46 -42
- package/components/ion-fab-list.js +5 -11
- package/components/ion-fab.js +8 -15
- package/components/ion-footer.js +21 -22
- package/components/ion-grid.js +5 -8
- package/components/ion-img.js +9 -2
- package/components/ion-infinite-scroll-content.js +15 -8
- package/components/ion-infinite-scroll.js +9 -31
- package/components/ion-input-password-toggle.js +57 -18
- package/components/ion-input.js +152 -84
- package/components/ion-item-divider.js +10 -12
- package/components/ion-item-group.js +9 -5
- package/components/ion-item-option.js +36 -20
- package/components/ion-item-options.js +9 -9
- package/components/ion-item-sliding.js +5 -8
- package/components/ion-loading.js +25 -39
- package/components/ion-menu-button.js +33 -22
- package/components/ion-menu-toggle.js +8 -13
- package/components/ion-menu.js +15 -29
- package/components/ion-nav-link.js +5 -5
- package/components/ion-nav.js +13 -9
- package/components/ion-note.js +10 -5
- package/components/ion-picker-legacy.js +24 -47
- package/components/ion-progress-bar.js +12 -22
- package/components/ion-range.js +32 -71
- package/components/ion-refresher-content.js +32 -9
- package/components/ion-refresher.js +11 -57
- package/components/ion-reorder-group.js +5 -8
- package/components/ion-reorder.js +31 -5
- package/components/ion-route-redirect.js +2 -0
- package/components/ion-route.js +4 -6
- package/components/ion-router-link.js +12 -11
- package/components/ion-router-outlet.js +7 -9
- package/components/ion-router.js +0 -18
- package/components/ion-row.js +5 -2
- package/components/ion-searchbar.js +116 -90
- package/components/ion-segment-button.js +64 -30
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +7 -5
- package/components/ion-segment.js +18 -27
- package/components/ion-select-option.js +6 -5
- package/components/ion-select.js +138 -76
- package/components/ion-skeleton-text.js +6 -8
- package/components/ion-split-pane.js +13 -16
- package/components/ion-tab-bar.js +33 -13
- package/components/ion-tab-button.js +36 -15
- package/components/ion-tab.js +5 -3
- package/components/ion-tabs.js +4 -4
- package/components/ion-text.js +6 -5
- package/components/ion-textarea.js +76 -70
- package/components/ion-thumbnail.js +5 -2
- package/components/ion-toast.js +53 -59
- package/components/ion-toggle.js +87 -51
- package/components/ionic-global.js +374 -84
- package/components/ios.transition.js +1 -0
- package/components/item.js +49 -27
- package/components/keyboard-controller.js +4 -2
- package/components/label.js +11 -5
- package/components/list-header.js +11 -5
- package/components/list.js +30 -9
- package/components/list2.js +6 -0
- package/components/modal.js +76 -113
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +4 -5
- package/components/picker-column-option.js +10 -21
- package/components/picker-column.js +13 -30
- package/components/picker-column2.js +5 -4
- package/components/picker.js +8 -4
- package/components/popover.js +39 -130
- package/components/radio-group.js +9 -11
- package/components/radio.js +21 -33
- package/components/ripple-effect.js +18 -17
- package/components/select-modal.js +7 -5
- package/components/select-popover.js +13 -5
- package/components/spinner.js +39 -12
- package/components/status-tap.js +1 -1
- package/components/title.js +13 -7
- package/components/toolbar.js +12 -7
- package/components/x.js +6 -0
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic/bundle.ionic.css +1 -0
- package/css/ionic/bundle.ionic.css.map +1 -0
- package/css/ionic/core.ionic.css +1 -0
- package/css/ionic/core.ionic.css.map +1 -0
- package/css/ionic/global.bundle.ionic.css +1 -0
- package/css/ionic/global.bundle.ionic.css.map +1 -0
- package/css/ionic/ionic-swiper.ionic.css +1 -0
- package/css/ionic/ionic-swiper.ionic.css.map +1 -0
- package/css/ionic/link.ionic.css +1 -0
- package/css/ionic/link.ionic.css.map +1 -0
- package/css/ionic/structure.ionic.css +1 -0
- package/css/ionic/structure.ionic.css.map +1 -0
- package/css/ionic/typography.ionic.css +1 -0
- package/css/ionic/typography.ionic.css.map +1 -0
- package/css/ionic/utils.bundle.ionic.css +1 -0
- package/css/ionic/utils.bundle.ionic.css.map +1 -0
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{animation-b4fdf128.js → animation-58015a44.js} +2 -2
- package/dist/cjs/{app-globals-d2d85416.js → app-globals-d64148d3.js} +1 -1
- package/dist/cjs/{button-active-8d4c8099.js → button-active-ec1fd1d8.js} +2 -2
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-454dd071.js} +3 -3
- package/dist/cjs/caret-down-3c215cff.js +8 -0
- package/dist/cjs/caret-left-2bb66970.js +8 -0
- package/dist/cjs/caret-right-88e03970.js +8 -0
- package/dist/cjs/config-aff4ff52.js +84 -0
- package/dist/cjs/{data-21dc0f81.js → data-5a4013f1.js} +8 -8
- package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-9aa87fa3.js} +8 -0
- package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-32f1a0e4.js} +4 -2
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-7c25be74.js} +1 -1
- package/dist/cjs/{helpers-afaa9001.js → helpers-4e2936d2.js} +4 -1
- package/dist/cjs/{index-38a015a8.js → index-03fbee1d.js} +14 -15
- package/dist/cjs/{index-9509ecad.js → index-0e0c6196.js} +9 -7
- package/dist/cjs/{index-5b6a7459.js → index-604c36ae.js} +3 -3
- package/dist/cjs/{index-2e7a27db.js → index-73f75efb.js} +847 -1215
- package/dist/cjs/{index-213cabf1.js → index-8f975cf4.js} +12 -12
- package/dist/cjs/index.cjs.js +11 -13
- package/dist/cjs/{input-shims-9e59ef62.js → input-shims-4b4d2251.js} +18 -17
- package/dist/cjs/{input.utils-611cde0b.js → input.utils-fb1debe4.js} +4 -5
- package/dist/cjs/ion-accordion_2.cjs.entry.js +71 -69
- package/dist/cjs/ion-action-sheet.cjs.entry.js +38 -51
- package/dist/cjs/ion-alert.cjs.entry.js +44 -60
- package/dist/cjs/ion-app_8.cjs.entry.js +122 -212
- package/dist/cjs/ion-avatar_3.cjs.entry.js +95 -10
- package/dist/cjs/ion-back-button.cjs.entry.js +39 -30
- package/dist/cjs/ion-backdrop.cjs.entry.js +12 -16
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +73 -45
- package/dist/cjs/ion-button_2.cjs.entry.js +64 -41
- package/dist/cjs/ion-card_5.cjs.entry.js +62 -47
- package/dist/cjs/ion-checkbox.cjs.entry.js +40 -46
- package/dist/cjs/ion-chip.cjs.entry.js +45 -14
- package/dist/cjs/ion-col_3.cjs.entry.js +39 -14
- package/dist/cjs/ion-datetime-button.cjs.entry.js +25 -25
- package/dist/cjs/ion-datetime_3.cjs.entry.js +251 -271
- package/dist/cjs/ion-fab_3.cjs.entry.js +58 -67
- package/dist/cjs/ion-img.cjs.entry.js +12 -4
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +28 -44
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +60 -21
- package/dist/cjs/ion-input.cjs.entry.js +153 -88
- package/dist/cjs/ion-item-option_3.cjs.entry.js +49 -37
- package/dist/cjs/ion-item_8.cjs.entry.js +129 -71
- package/dist/cjs/ion-loading.cjs.entry.js +33 -50
- package/dist/cjs/ion-menu_3.cjs.entry.js +60 -71
- package/dist/cjs/ion-modal.cjs.entry.js +120 -159
- package/dist/cjs/ion-nav_2.cjs.entry.js +25 -21
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +13 -23
- package/dist/cjs/ion-picker-column.cjs.entry.js +19 -35
- package/dist/cjs/ion-picker.cjs.entry.js +11 -6
- package/dist/cjs/ion-popover.cjs.entry.js +49 -141
- package/dist/cjs/ion-progress-bar.cjs.entry.js +15 -25
- package/dist/cjs/ion-radio_2.cjs.entry.js +32 -45
- package/dist/cjs/ion-range.cjs.entry.js +40 -78
- package/dist/cjs/ion-refresher_2.cjs.entry.js +49 -74
- package/dist/cjs/ion-reorder_2.cjs.entry.js +38 -17
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +19 -17
- package/dist/cjs/ion-route_4.cjs.entry.js +21 -37
- package/dist/cjs/ion-searchbar.cjs.entry.js +118 -92
- package/dist/cjs/ion-segment-content.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment-view.cjs.entry.js +8 -6
- package/dist/cjs/ion-segment_2.cjs.entry.js +84 -58
- package/dist/cjs/ion-select-modal.cjs.entry.js +13 -13
- package/dist/cjs/ion-select_3.cjs.entry.js +158 -91
- package/dist/cjs/ion-spinner.cjs.entry.js +39 -13
- package/dist/cjs/ion-split-pane.cjs.entry.js +15 -17
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +71 -34
- package/dist/cjs/ion-tab_2.cjs.entry.js +13 -10
- package/dist/cjs/ion-text.cjs.entry.js +8 -6
- package/dist/cjs/ion-textarea.cjs.entry.js +80 -76
- package/dist/cjs/ion-toast.cjs.entry.js +81 -89
- package/dist/cjs/ion-toggle.cjs.entry.js +90 -55
- package/dist/cjs/ionic-global-14af9c21.js +535 -0
- package/dist/cjs/ionic.cjs.js +6 -5
- package/dist/cjs/{ios.transition-ac964d6c.js → ios.transition-2bb0f7d5.js} +7 -7
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-0a5d46dd.js} +5 -3
- package/dist/cjs/{keyboard-0272231f.js → keyboard-53c12a15.js} +1 -1
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-102bad3e.js} +11 -9
- package/dist/cjs/list-2930c629.js +8 -0
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{md.transition-45089eda.js → md.transition-cf600117.js} +6 -7
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-ea70e230.js} +4 -4
- package/dist/cjs/{overlays-56fecd6c.js → overlays-542a90b3.js} +19 -20
- package/dist/cjs/{status-tap-84e22ef3.js → status-tap-aa97d209.js} +5 -4
- package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-27975274.js} +2 -1
- package/dist/cjs/x-81a8f51c.js +8 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.ionic.css +197 -0
- package/dist/collection/components/accordion/accordion.ios.css +73 -58
- package/dist/collection/components/accordion/accordion.js +44 -58
- package/dist/collection/components/accordion/accordion.md.css +67 -59
- package/dist/collection/components/accordion-group/accordion-group.ionic.css +95 -0
- package/dist/collection/components/accordion-group/accordion-group.ios.css +16 -4
- package/dist/collection/components/accordion-group/accordion-group.js +45 -37
- package/dist/collection/components/accordion-group/accordion-group.md.css +22 -4
- package/dist/collection/components/action-sheet/action-sheet.ios.css +18 -6
- package/dist/collection/components/action-sheet/action-sheet.js +34 -78
- package/dist/collection/components/action-sheet/action-sheet.md.css +17 -5
- package/dist/collection/components/alert/alert.ios.css +19 -1
- package/dist/collection/components/alert/alert.js +37 -88
- package/dist/collection/components/alert/alert.md.css +19 -1
- package/dist/collection/components/app/app.js +12 -78
- package/dist/collection/components/avatar/avatar.ionic.css +268 -0
- package/dist/collection/components/avatar/avatar.ios.css +12 -0
- package/dist/collection/components/avatar/avatar.js +92 -4
- package/dist/collection/components/avatar/avatar.md.css +12 -0
- package/dist/collection/components/back-button/back-button.ios.css +60 -48
- package/dist/collection/components/back-button/back-button.js +35 -42
- package/dist/collection/components/back-button/back-button.md.css +60 -48
- package/dist/collection/components/backdrop/backdrop.ionic.css +151 -0
- package/dist/collection/components/backdrop/backdrop.ios.css +13 -1
- package/dist/collection/components/backdrop/backdrop.js +12 -21
- package/dist/collection/components/backdrop/backdrop.md.css +13 -1
- package/dist/collection/components/badge/badge.ionic.css +249 -0
- package/dist/collection/components/badge/badge.ios.css +106 -3
- package/dist/collection/components/badge/badge.js +78 -10
- package/dist/collection/components/badge/badge.md.css +106 -3
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +20 -8
- package/dist/collection/components/breadcrumb/breadcrumb.js +57 -55
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +20 -8
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +17 -29
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
- package/dist/collection/components/button/button.ionic.css +589 -0
- package/dist/collection/components/button/button.ios.css +129 -36
- package/dist/collection/components/button/button.js +64 -74
- package/dist/collection/components/button/button.md.css +120 -40
- package/dist/collection/components/buttons/buttons.ionic.css +100 -0
- package/dist/collection/components/buttons/buttons.ios.css +59 -7
- package/dist/collection/components/buttons/buttons.js +14 -22
- package/dist/collection/components/buttons/buttons.md.css +55 -3
- package/dist/collection/components/card/card.ionic.css +137 -0
- package/dist/collection/components/card/card.ios.css +65 -14
- package/dist/collection/components/card/card.js +40 -43
- package/dist/collection/components/card/card.md.css +65 -14
- package/dist/collection/components/card-content/card-content.ionic.css +90 -0
- package/dist/collection/components/card-content/card-content.ios.css +16 -1
- package/dist/collection/components/card-content/card-content.js +11 -8
- package/dist/collection/components/card-content/card-content.md.css +16 -1
- package/dist/collection/components/card-header/card-header.ionic.css +87 -0
- package/dist/collection/components/card-header/card-header.ios.css +27 -15
- package/dist/collection/components/card-header/card-header.js +13 -18
- package/dist/collection/components/card-header/card-header.md.css +27 -15
- package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +146 -0
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
- package/dist/collection/components/card-subtitle/card-subtitle.js +14 -10
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
- package/dist/collection/components/card-title/card-title.ios.css +73 -0
- package/dist/collection/components/card-title/card-title.js +14 -10
- package/dist/collection/components/card-title/card-title.md.css +73 -0
- package/dist/collection/components/checkbox/checkbox.ionic.css +402 -0
- package/dist/collection/components/checkbox/checkbox.ios.css +20 -2
- package/dist/collection/components/checkbox/checkbox.js +73 -64
- package/dist/collection/components/checkbox/checkbox.md.css +21 -3
- package/dist/collection/components/chip/chip.ionic.css +160 -0
- package/dist/collection/components/chip/chip.ios.css +20 -1
- package/dist/collection/components/chip/chip.js +78 -20
- package/dist/collection/components/chip/chip.md.css +20 -1
- package/dist/collection/components/col/col.css +12 -0
- package/dist/collection/components/col/col.js +35 -53
- package/dist/collection/components/content/content.css +8 -2
- package/dist/collection/components/content/content.js +18 -47
- package/dist/collection/components/datetime/datetime.ionic.css +673 -0
- package/dist/collection/components/datetime/datetime.ios.css +237 -86
- package/dist/collection/components/datetime/datetime.js +144 -201
- package/dist/collection/components/datetime/datetime.md.css +237 -86
- package/dist/collection/components/datetime/utils/data.js +5 -5
- package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
- package/dist/collection/components/datetime-button/datetime-button.js +19 -26
- package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
- package/dist/collection/components/fab/fab.css +25 -1
- package/dist/collection/components/fab/fab.js +11 -22
- package/dist/collection/components/fab-button/fab-button.ios.css +18 -6
- package/dist/collection/components/fab-button/fab-button.js +50 -76
- package/dist/collection/components/fab-button/fab-button.md.css +20 -8
- package/dist/collection/components/fab-list/fab-list.css +12 -0
- package/dist/collection/components/fab-list/fab-list.js +9 -15
- package/dist/collection/components/footer/footer.ios.css +14 -2
- package/dist/collection/components/footer/footer.js +23 -29
- package/dist/collection/components/footer/footer.md.css +12 -0
- package/dist/collection/components/grid/grid.css +12 -0
- package/dist/collection/components/grid/grid.js +9 -10
- package/dist/collection/components/header/header.ionic.css +86 -0
- package/dist/collection/components/header/header.ios.css +25 -10
- package/dist/collection/components/header/header.js +44 -30
- package/dist/collection/components/header/header.md.css +23 -8
- package/dist/collection/components/img/img.js +12 -6
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +12 -36
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +12 -0
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +18 -14
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
- package/dist/collection/components/input/input.ionic.css +1078 -0
- package/dist/collection/components/input/input.ios.css +21 -2
- package/dist/collection/components/input/input.js +179 -163
- package/dist/collection/components/input/input.md.css +43 -4
- package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +61 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +141 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +52 -24
- package/dist/collection/components/item/item.ionic.css +497 -0
- package/dist/collection/components/item/item.ios.css +109 -69
- package/dist/collection/components/item/item.js +53 -59
- package/dist/collection/components/item/item.md.css +120 -68
- package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
- package/dist/collection/components/item-divider/item-divider.js +12 -19
- package/dist/collection/components/item-divider/item-divider.md.css +18 -0
- package/dist/collection/components/item-group/item-group.ios.css +12 -0
- package/dist/collection/components/item-group/item-group.js +13 -7
- package/dist/collection/components/item-group/item-group.md.css +12 -0
- package/dist/collection/components/item-option/item-option.ionic.css +332 -0
- package/dist/collection/components/item-option/item-option.ios.css +14 -2
- package/dist/collection/components/item-option/item-option.js +51 -36
- package/dist/collection/components/item-option/item-option.md.css +14 -2
- package/dist/collection/components/item-options/item-options.ionic.css +259 -0
- package/dist/collection/components/item-options/item-options.ios.css +18 -0
- package/dist/collection/components/item-options/item-options.js +13 -13
- package/dist/collection/components/item-options/item-options.md.css +18 -0
- package/dist/collection/components/item-sliding/item-sliding.css +6 -0
- package/dist/collection/components/item-sliding/item-sliding.js +8 -9
- package/dist/collection/components/label/label.ios.css +18 -0
- package/dist/collection/components/label/label.js +13 -12
- package/dist/collection/components/label/label.md.css +18 -0
- package/dist/collection/components/list/list.ionic.css +192 -0
- package/dist/collection/components/list/list.ios.css +18 -0
- package/dist/collection/components/list/list.js +48 -16
- package/dist/collection/components/list/list.md.css +20 -2
- package/dist/collection/components/list-header/list-header.ionic.css +236 -0
- package/dist/collection/components/list-header/list-header.ios.css +18 -0
- package/dist/collection/components/list-header/list-header.js +15 -12
- package/dist/collection/components/list-header/list-header.md.css +18 -0
- package/dist/collection/components/loading/loading.ios.css +13 -1
- package/dist/collection/components/loading/loading.js +29 -79
- package/dist/collection/components/loading/loading.md.css +13 -1
- package/dist/collection/components/menu/menu.ios.css +15 -3
- package/dist/collection/components/menu/menu.js +15 -42
- package/dist/collection/components/menu/menu.md.css +15 -3
- package/dist/collection/components/menu-button/menu-button.ionic.css +238 -0
- package/dist/collection/components/menu-button/menu-button.ios.css +48 -14
- package/dist/collection/components/menu-button/menu-button.js +31 -32
- package/dist/collection/components/menu-button/menu-button.md.css +49 -15
- package/dist/collection/components/menu-toggle/menu-toggle.js +11 -17
- package/dist/collection/components/modal/animations/sheet.js +8 -2
- package/dist/collection/components/modal/gestures/sheet.js +10 -6
- package/dist/collection/components/modal/modal.ionic.css +239 -0
- package/dist/collection/components/modal/modal.ios.css +106 -63
- package/dist/collection/components/modal/modal.js +79 -158
- package/dist/collection/components/modal/modal.md.css +106 -63
- package/dist/collection/components/nav/nav.css +7 -1
- package/dist/collection/components/nav/nav.js +19 -23
- package/dist/collection/components/nav-link/nav-link.js +11 -15
- package/dist/collection/components/note/note.ios.css +12 -0
- package/dist/collection/components/note/note.js +14 -10
- package/dist/collection/components/note/note.md.css +12 -0
- package/dist/collection/components/picker/picker.ios.css +15 -3
- package/dist/collection/components/picker/picker.js +8 -5
- package/dist/collection/components/picker/picker.md.css +15 -3
- package/dist/collection/components/picker-column/picker-column.css +9 -2
- package/dist/collection/components/picker-column/picker-column.js +14 -37
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +6 -0
- package/dist/collection/components/picker-column-option/picker-column-option.js +14 -29
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
- package/dist/collection/components/picker-legacy/picker.ios.css +13 -1
- package/dist/collection/components/picker-legacy/picker.js +28 -81
- package/dist/collection/components/picker-legacy/picker.md.css +13 -1
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
- package/dist/collection/components/picker-legacy-column/picker-column.js +6 -7
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
- package/dist/collection/components/popover/popover.ios.css +13 -1
- package/dist/collection/components/popover/popover.js +48 -193
- package/dist/collection/components/popover/popover.md.css +13 -1
- package/dist/collection/components/progress-bar/progress-bar.ios.css +8 -2
- package/dist/collection/components/progress-bar/progress-bar.js +11 -33
- package/dist/collection/components/progress-bar/progress-bar.md.css +8 -2
- package/dist/collection/components/radio/radio.ionic.css +424 -0
- package/dist/collection/components/radio/radio.ios.css +134 -91
- package/dist/collection/components/radio/radio.js +21 -48
- package/dist/collection/components/radio/radio.md.css +134 -91
- package/dist/collection/components/radio-group/radio-group.js +13 -19
- package/dist/collection/components/range/range.ionic.css +555 -0
- package/dist/collection/components/range/range.ios.css +128 -85
- package/dist/collection/components/range/range.js +31 -102
- package/dist/collection/components/range/range.md.css +128 -85
- package/dist/collection/components/refresher/refresher.ios.css +14 -1
- package/dist/collection/components/refresher/refresher.js +11 -70
- package/dist/collection/components/refresher/refresher.md.css +15 -2
- package/dist/collection/components/refresher-content/refresher-content.js +32 -15
- package/dist/collection/components/reorder/reorder.ios.css +6 -0
- package/dist/collection/components/reorder/reorder.js +33 -6
- package/dist/collection/components/reorder/reorder.md.css +6 -0
- package/dist/collection/components/reorder-group/reorder-group.css +6 -0
- package/dist/collection/components/reorder-group/reorder-group.js +8 -9
- package/dist/collection/components/ripple-effect/{ripple-effect.css → ripple-effect.common.css} +7 -1
- package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +154 -0
- package/dist/collection/components/ripple-effect/ripple-effect.js +14 -17
- package/dist/collection/components/route/route.js +11 -19
- package/dist/collection/components/route-redirect/route-redirect.js +4 -4
- package/dist/collection/components/router/router.js +4 -22
- package/dist/collection/components/router-link/router-link.css +8 -2
- package/dist/collection/components/router-link/router-link.js +16 -23
- package/dist/collection/components/router-outlet/router-outlet.css +7 -1
- package/dist/collection/components/router-outlet/router-outlet.js +11 -21
- package/dist/collection/components/row/row.css +12 -0
- package/dist/collection/components/row/row.js +9 -2
- package/dist/collection/components/searchbar/searchbar.ionic.css +345 -0
- package/dist/collection/components/searchbar/searchbar.ios.css +56 -18
- package/dist/collection/components/searchbar/searchbar.js +120 -143
- package/dist/collection/components/searchbar/searchbar.md.css +56 -18
- package/dist/collection/components/segment/segment.ionic.css +117 -0
- package/dist/collection/components/segment/segment.ios.css +45 -2
- package/dist/collection/components/segment/segment.js +18 -40
- package/dist/collection/components/segment/segment.md.css +45 -2
- package/dist/collection/components/segment-button/segment-button.ionic.css +355 -0
- package/dist/collection/components/segment-button/segment-button.ios.css +146 -105
- package/dist/collection/components/segment-button/segment-button.js +64 -41
- package/dist/collection/components/segment-button/segment-button.md.css +148 -107
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.ios.css +6 -0
- package/dist/collection/components/segment-view/segment-view.js +7 -9
- package/dist/collection/components/segment-view/segment-view.md.css +6 -0
- package/dist/collection/components/select/select.ionic.css +706 -0
- package/dist/collection/components/select/select.ios.css +187 -121
- package/dist/collection/components/select/select.js +159 -120
- package/dist/collection/components/select/select.md.css +184 -226
- package/dist/collection/components/select-modal/select-modal.ionic.css +121 -0
- package/dist/collection/components/select-modal/select-modal.ios.css +0 -186
- package/dist/collection/components/select-modal/select-modal.js +6 -10
- package/dist/collection/components/select-modal/select-modal.md.css +7 -3
- package/dist/collection/components/select-option/select-option.js +10 -9
- package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
- package/dist/collection/components/select-popover/select-popover.js +16 -17
- package/dist/collection/components/select-popover/select-popover.md.css +18 -0
- package/dist/collection/components/skeleton-text/skeleton-text.css +6 -0
- package/dist/collection/components/skeleton-text/skeleton-text.js +9 -10
- package/dist/collection/components/spinner/spinner.common.css +199 -0
- package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +63 -0
- package/dist/collection/components/spinner/spinner.js +49 -17
- package/dist/collection/components/split-pane/split-pane.ios.css +20 -2
- package/dist/collection/components/split-pane/split-pane.js +15 -22
- package/dist/collection/components/split-pane/split-pane.md.css +20 -2
- package/dist/collection/components/tab/tab.js +10 -12
- package/dist/collection/components/tab-bar/tab-bar.ionic.css +188 -0
- package/dist/collection/components/tab-bar/tab-bar.ios.css +71 -43
- package/dist/collection/components/tab-bar/tab-bar.js +67 -21
- package/dist/collection/components/tab-bar/tab-bar.md.css +71 -43
- package/dist/collection/components/tab-button/tab-button.ionic.css +282 -0
- package/dist/collection/components/tab-button/tab-button.ios.css +103 -88
- package/dist/collection/components/tab-button/tab-button.js +51 -32
- package/dist/collection/components/tab-button/tab-button.md.css +103 -88
- package/dist/collection/components/tabs/tabs.css +7 -1
- package/dist/collection/components/tabs/tabs.js +6 -5
- package/dist/collection/components/text/text.css +6 -0
- package/dist/collection/components/text/text.js +10 -8
- package/dist/collection/components/textarea/textarea.ionic.css +834 -0
- package/dist/collection/components/textarea/textarea.ios.css +201 -96
- package/dist/collection/components/textarea/textarea.js +98 -132
- package/dist/collection/components/textarea/textarea.md.css +214 -97
- package/dist/collection/components/thumbnail/thumbnail.css +6 -0
- package/dist/collection/components/thumbnail/thumbnail.js +9 -2
- package/dist/collection/components/title/title.ionic.css +145 -0
- package/dist/collection/components/title/title.ios.css +32 -4
- package/dist/collection/components/title/title.js +17 -11
- package/dist/collection/components/title/title.md.css +32 -4
- package/dist/collection/components/toast/animations/utils.js +1 -1
- package/dist/collection/components/toast/toast.ionic.css +377 -0
- package/dist/collection/components/toast/toast.ios.css +74 -35
- package/dist/collection/components/toast/toast.js +73 -107
- package/dist/collection/components/toast/toast.md.css +74 -35
- package/dist/collection/components/toggle/toggle.ionic.css +419 -0
- package/dist/collection/components/toggle/toggle.ios.css +166 -120
- package/dist/collection/components/toggle/toggle.js +83 -69
- package/dist/collection/components/toggle/toggle.md.css +163 -120
- package/dist/collection/components/toolbar/toolbar.ionic.css +233 -0
- package/dist/collection/components/toolbar/toolbar.ios.css +90 -47
- package/dist/collection/components/toolbar/toolbar.js +14 -12
- package/dist/collection/components/toolbar/toolbar.md.css +90 -47
- package/dist/collection/global/ionic-global.js +229 -13
- package/dist/collection/utils/focus-visible.js +7 -0
- package/dist/collection/utils/framework-delegate.js +3 -1
- package/dist/collection/utils/helpers.js +3 -1
- package/dist/collection/utils/keyboard/keyboard-controller.js +3 -1
- package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
- package/dist/collection/utils/menu-controller/animations/push.js +2 -1
- package/dist/collection/utils/menu-controller/animations/reveal.js +2 -1
- package/dist/collection/utils/overlays.js +2 -1
- package/dist/collection/utils/test/playwright/generator.js +48 -23
- package/dist/collection/utils/test/playwright/page/utils/goto.js +14 -5
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +16 -2
- package/dist/collection/utils/transition/ios.transition.js +1 -0
- package/dist/docs.d.ts +0 -8
- package/dist/docs.json +7864 -2219
- package/dist/esm/{animation-eab5a4ca.js → animation-f1a88600.js} +1 -1
- package/dist/esm/{app-globals-1318774c.js → app-globals-eceadabb.js} +1 -1
- package/dist/esm/{button-active-10b36beb.js → button-active-321f0dba.js} +2 -2
- package/dist/esm/{capacitor-59395cbd.js → capacitor-6b0341c8.js} +1 -1
- package/dist/esm/caret-down-3eaad1cc.js +6 -0
- package/dist/esm/caret-left-33424bb0.js +6 -0
- package/dist/esm/caret-right-68d856ad.js +6 -0
- package/dist/esm/config-84eb9670.js +79 -0
- package/dist/esm/{data-ae11fd43.js → data-98c06dea.js} +6 -6
- package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-501aff19.js} +8 -1
- package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-3e4a8c9f.js} +4 -2
- package/dist/esm/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
- package/dist/esm/{helpers-da915de8.js → helpers-f08d15bd.js} +4 -1
- package/dist/esm/{index-ed9a6c67.js → index-31109e63.js} +10 -11
- package/dist/esm/{index-13b48bcb.js → index-59f81cb8.js} +6 -6
- package/{components/index9.js → dist/esm/index-62b4a18b.js} +4 -2
- package/dist/esm/{index-fcdfc1aa.js → index-723c0e5d.js} +848 -1216
- package/dist/esm/{index-5cc724f3.js → index-7bd160c2.js} +2 -2
- package/dist/esm/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
- package/dist/esm/index.js +11 -13
- package/dist/esm/{input-shims-0314bbe5.js → input-shims-6be83e59.js} +7 -6
- package/dist/esm/{input.utils-09c71bc7.js → input.utils-67459bae.js} +2 -3
- package/dist/esm/ion-accordion_2.entry.js +70 -68
- package/dist/esm/ion-action-sheet.entry.js +38 -51
- package/dist/esm/ion-alert.entry.js +41 -57
- package/dist/esm/ion-app_8.entry.js +109 -199
- package/dist/esm/ion-avatar_3.entry.js +95 -10
- package/dist/esm/ion-back-button.entry.js +38 -29
- package/dist/esm/ion-backdrop.entry.js +12 -16
- package/dist/esm/ion-breadcrumb_2.entry.js +74 -46
- package/dist/esm/ion-button_2.entry.js +61 -38
- package/dist/esm/ion-card_5.entry.js +62 -47
- package/dist/esm/ion-checkbox.entry.js +40 -46
- package/dist/esm/ion-chip.entry.js +45 -14
- package/dist/esm/ion-col_3.entry.js +39 -14
- package/dist/esm/ion-datetime-button.entry.js +21 -21
- package/dist/esm/ion-datetime_3.entry.js +177 -197
- package/dist/esm/ion-fab_3.entry.js +59 -68
- package/dist/esm/ion-img.entry.js +12 -4
- package/dist/esm/ion-infinite-scroll_2.entry.js +25 -41
- package/dist/esm/ion-input-password-toggle.entry.js +58 -19
- package/dist/esm/ion-input.entry.js +154 -89
- package/dist/esm/ion-item-option_3.entry.js +49 -37
- package/dist/esm/ion-item_8.entry.js +129 -71
- package/dist/esm/ion-loading.entry.js +30 -47
- package/dist/esm/ion-menu_3.entry.js +59 -70
- package/dist/esm/ion-modal.entry.js +84 -123
- package/dist/esm/ion-nav_2.entry.js +23 -19
- package/dist/esm/ion-picker-column-option.entry.js +13 -23
- package/dist/esm/ion-picker-column.entry.js +18 -34
- package/dist/esm/ion-picker.entry.js +11 -6
- package/dist/esm/ion-popover.entry.js +46 -138
- package/dist/esm/ion-progress-bar.entry.js +14 -24
- package/dist/esm/ion-radio_2.entry.js +32 -45
- package/dist/esm/ion-range.entry.js +35 -73
- package/dist/esm/ion-refresher_2.entry.js +46 -71
- package/dist/esm/ion-reorder_2.entry.js +39 -18
- package/dist/esm/ion-ripple-effect.entry.js +19 -17
- package/dist/esm/ion-route_4.entry.js +21 -37
- package/dist/esm/ion-searchbar.entry.js +118 -92
- package/dist/esm/ion-segment-content.entry.js +2 -2
- package/dist/esm/ion-segment-view.entry.js +8 -6
- package/dist/esm/ion-segment_2.entry.js +84 -58
- package/dist/esm/ion-select-modal.entry.js +13 -13
- package/dist/esm/ion-select_3.entry.js +159 -92
- package/dist/esm/ion-spinner.entry.js +37 -11
- package/dist/esm/ion-split-pane.entry.js +15 -17
- package/dist/esm/ion-tab-bar_2.entry.js +70 -33
- package/dist/esm/ion-tab_2.entry.js +13 -10
- package/dist/esm/ion-text.entry.js +8 -6
- package/dist/esm/ion-textarea.entry.js +80 -76
- package/dist/esm/ion-toast.entry.js +57 -65
- package/dist/esm/ion-toggle.entry.js +91 -56
- package/dist/esm/ionic-global-3c97a4aa.js +521 -0
- package/dist/esm/ionic.js +7 -6
- package/dist/esm/{ios.transition-1cb16beb.js → ios.transition-06b78ea0.js} +7 -7
- package/dist/esm/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +5 -3
- package/dist/esm/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-aff395fd.js} +5 -3
- package/dist/esm/list-6524700c.js +6 -0
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{md.transition-20f80721.js → md.transition-e5712bda.js} +6 -7
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-c0bd22ff.js} +2 -2
- package/dist/esm/{overlays-6163edd5.js → overlays-66cb5522.js} +6 -7
- package/dist/esm/{status-tap-6971c722.js → status-tap-edf9f395.js} +5 -4
- package/dist/esm/{swipe-back-e5394307.js → swipe-back-17c42610.js} +2 -1
- package/dist/esm/x-a64bcd9f.js +6 -0
- package/dist/esm-es5/animation-f1a88600.js +4 -0
- package/dist/esm-es5/app-globals-eceadabb.js +4 -0
- package/dist/esm-es5/{button-active-10b36beb.js → button-active-321f0dba.js} +1 -1
- package/dist/esm-es5/capacitor-6b0341c8.js +4 -0
- package/dist/esm-es5/caret-down-3eaad1cc.js +4 -0
- package/dist/esm-es5/caret-left-33424bb0.js +4 -0
- package/dist/esm-es5/caret-right-68d856ad.js +4 -0
- package/dist/esm-es5/config-84eb9670.js +4 -0
- package/dist/esm-es5/data-98c06dea.js +4 -0
- package/dist/esm-es5/focus-visible-501aff19.js +4 -0
- package/dist/esm-es5/framework-delegate-3e4a8c9f.js +4 -0
- package/dist/esm-es5/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
- package/dist/esm-es5/helpers-f08d15bd.js +4 -0
- package/dist/esm-es5/index-31109e63.js +4 -0
- package/dist/esm-es5/index-59f81cb8.js +4 -0
- package/dist/esm-es5/{index-79b30591.js → index-62b4a18b.js} +1 -1
- package/dist/esm-es5/index-723c0e5d.js +5 -0
- package/dist/esm-es5/index-7bd160c2.js +4 -0
- package/dist/esm-es5/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-6be83e59.js +4 -0
- package/dist/esm-es5/input.utils-67459bae.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-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.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-3c97a4aa.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-06b78ea0.js +4 -0
- package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +1 -1
- package/dist/esm-es5/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
- package/dist/esm-es5/keyboard-controller-aff395fd.js +4 -0
- package/dist/esm-es5/list-6524700c.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-e5712bda.js +4 -0
- package/dist/esm-es5/notch-controller-c0bd22ff.js +4 -0
- package/dist/esm-es5/overlays-66cb5522.js +4 -0
- package/dist/esm-es5/status-tap-edf9f395.js +4 -0
- package/dist/esm-es5/swipe-back-17c42610.js +4 -0
- package/dist/esm-es5/x-a64bcd9f.js +4 -0
- package/dist/html.html-data.json +2347 -209
- 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-01451762.entry.js +4 -0
- package/dist/ionic/p-01d80901.system.js +4 -0
- package/dist/ionic/p-038a6294.js +4 -0
- package/dist/ionic/p-06ec4706.js +4 -0
- package/dist/ionic/p-06f2f110.system.entry.js +4 -0
- package/dist/ionic/p-09125f4f.entry.js +4 -0
- package/dist/ionic/p-096e5f6d.system.entry.js +4 -0
- package/dist/ionic/p-09c6b5e4.js +4 -0
- package/dist/ionic/p-0a0ce78f.system.entry.js +4 -0
- package/dist/ionic/p-0db90e9b.entry.js +4 -0
- package/dist/ionic/p-0fa218e9.system.js +5 -0
- package/dist/ionic/p-101ccd60.system.entry.js +4 -0
- package/dist/ionic/p-112120d7.system.js +4 -0
- package/dist/ionic/{p-c7e16491.js → p-11266916.js} +1 -1
- package/dist/ionic/{p-1e955a45.system.js → p-115d74cd.system.js} +1 -1
- package/dist/ionic/p-12337305.system.entry.js +4 -0
- package/dist/ionic/{p-34b11c24.js → p-12d6df53.js} +1 -1
- package/dist/ionic/p-156d17cd.js +4 -0
- package/dist/ionic/p-18892506.entry.js +4 -0
- package/dist/ionic/p-18bbe9a5.entry.js +4 -0
- package/dist/ionic/p-18c930a5.system.entry.js +4 -0
- package/dist/ionic/{p-b06ac4a5.system.js → p-18f86177.system.js} +1 -1
- package/dist/ionic/p-1abd1c99.entry.js +4 -0
- package/dist/ionic/p-1cf1141c.system.entry.js +4 -0
- package/dist/ionic/p-1dd2b0af.entry.js +4 -0
- package/dist/ionic/p-1eeb9796.entry.js +4 -0
- package/dist/ionic/p-1efa63f2.js +4 -0
- package/dist/ionic/p-23b31425.entry.js +4 -0
- package/dist/ionic/p-243adf8c.js +4 -0
- package/dist/ionic/p-24f15ce4.system.entry.js +4 -0
- package/dist/ionic/p-25cc2477.entry.js +4 -0
- package/dist/ionic/p-27258d5a.entry.js +4 -0
- package/dist/ionic/p-29ca4da2.entry.js +4 -0
- package/dist/ionic/p-2e35a770.system.js +4 -0
- package/dist/ionic/p-2ef115ec.system.entry.js +4 -0
- package/dist/ionic/p-330e703e.entry.js +4 -0
- package/dist/ionic/p-33dc4514.js +4 -0
- package/dist/ionic/p-346c67b0.js +4 -0
- package/dist/ionic/p-3583dd40.system.entry.js +4 -0
- package/dist/ionic/p-3608e72b.entry.js +4 -0
- package/dist/ionic/p-398b00a5.system.entry.js +4 -0
- package/dist/ionic/p-3b7adbc3.system.entry.js +4 -0
- package/dist/ionic/p-3ce95a91.entry.js +4 -0
- package/dist/ionic/p-3d61263b.system.entry.js +4 -0
- package/dist/ionic/{p-9ea607bd.system.js → p-3e91ea3a.system.js} +2 -2
- package/dist/ionic/{p-7a1241fe.system.js → p-41c19986.system.js} +1 -1
- package/dist/ionic/p-41f06734.entry.js +4 -0
- package/dist/ionic/p-4219582c.system.js +4 -0
- package/dist/ionic/p-429dd2b5.system.js +4 -0
- package/dist/ionic/p-4385e3fb.system.entry.js +4 -0
- package/dist/ionic/p-4459a66e.system.js +4 -0
- package/dist/ionic/{p-8985cdb6.system.js → p-4626fb32.system.js} +1 -1
- package/dist/ionic/p-46787abb.system.js +4 -0
- package/dist/ionic/p-47fd935c.system.js +4 -0
- package/dist/ionic/p-4a39ba11.entry.js +4 -0
- package/dist/ionic/p-4a6d4288.entry.js +4 -0
- package/dist/ionic/p-4a869870.entry.js +4 -0
- package/dist/ionic/p-4ac4f52a.system.entry.js +4 -0
- package/dist/ionic/p-4b4e4592.system.entry.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-4c275462.js} +1 -1
- package/dist/ionic/p-4c9e1b2c.js +4 -0
- package/dist/ionic/p-51371e21.system.js +4 -0
- package/dist/ionic/p-530c591a.entry.js +4 -0
- package/dist/ionic/p-5377db51.system.entry.js +4 -0
- package/dist/ionic/p-55546d77.system.entry.js +4 -0
- package/dist/ionic/p-556778bd.system.js +4 -0
- package/dist/ionic/p-5684893b.system.entry.js +4 -0
- package/dist/ionic/p-57de8d54.system.entry.js +4 -0
- package/dist/ionic/{p-cec30029.system.js → p-58aa8a36.system.js} +1 -1
- package/dist/ionic/p-58c64779.system.entry.js +4 -0
- package/dist/ionic/{p-da2b833b.js → p-58f16ef6.js} +1 -1
- package/dist/ionic/p-5a6b3c0d.entry.js +4 -0
- package/dist/ionic/p-5a6d245d.system.entry.js +4 -0
- package/dist/ionic/p-5b57d327.system.js +4 -0
- package/dist/ionic/p-5ce35a03.js +4 -0
- package/dist/ionic/p-5eb8561f.system.entry.js +4 -0
- package/dist/ionic/p-5ff5d2bb.entry.js +4 -0
- package/dist/ionic/p-607c9c33.js +4 -0
- package/dist/ionic/p-60d21ee9.system.entry.js +4 -0
- package/dist/ionic/p-61f85a49.system.entry.js +4 -0
- package/dist/ionic/p-623fcccc.entry.js +4 -0
- package/dist/ionic/{p-9146695e.system.js → p-62887754.system.js} +1 -1
- package/dist/ionic/p-63fde7fe.entry.js +4 -0
- package/dist/ionic/p-6433742e.system.entry.js +4 -0
- package/dist/ionic/p-67b6e18d.entry.js +4 -0
- package/dist/ionic/p-697eee8c.system.entry.js +4 -0
- package/dist/ionic/p-6a0dd6bc.js +4 -0
- package/dist/ionic/p-6bc2795b.entry.js +4 -0
- package/dist/ionic/p-6bd1c0ee.system.entry.js +4 -0
- package/dist/ionic/p-6caa76ec.js +4 -0
- package/dist/ionic/p-6cbca6c5.system.entry.js +4 -0
- package/dist/ionic/p-6dc32e8b.entry.js +4 -0
- package/dist/ionic/p-6e53290f.system.entry.js +4 -0
- package/dist/ionic/p-7071d7ca.js +4 -0
- package/dist/ionic/{p-f687573e.system.js → p-728f5b22.system.js} +1 -1
- package/dist/ionic/p-72cbf799.system.entry.js +4 -0
- package/dist/ionic/p-74d76684.js +4 -0
- package/dist/ionic/p-7607d8ba.system.entry.js +4 -0
- package/dist/ionic/p-78ed8923.js +4 -0
- package/dist/ionic/p-7a858bae.system.js +4 -0
- package/dist/ionic/p-7d36cf9f.system.entry.js +4 -0
- package/dist/ionic/p-815f649a.system.entry.js +4 -0
- package/dist/ionic/p-81b72701.entry.js +4 -0
- package/dist/ionic/p-822e47a9.system.js +4 -0
- package/dist/ionic/{p-976cffa3.js → p-82cb4235.js} +1 -1
- package/dist/ionic/p-83948e48.js +5 -0
- package/dist/ionic/p-8463212e.js +4 -0
- package/dist/ionic/p-84667060.entry.js +4 -0
- package/dist/ionic/p-857ba8d4.entry.js +4 -0
- package/dist/ionic/p-86d98446.system.entry.js +4 -0
- package/dist/ionic/p-86e9a917.system.entry.js +4 -0
- package/dist/ionic/p-871f4046.entry.js +4 -0
- package/dist/ionic/p-8956f9a8.system.entry.js +4 -0
- package/dist/ionic/p-8b0f0a87.entry.js +4 -0
- package/dist/ionic/p-8dbfae64.entry.js +4 -0
- package/dist/ionic/p-903c544a.js +4 -0
- package/dist/ionic/p-916bc9ed.system.entry.js +4 -0
- package/dist/ionic/p-92646426.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-93e47936.js} +1 -1
- package/dist/ionic/{p-a93873de.system.js → p-94816e7a.system.js} +1 -1
- package/dist/ionic/p-94fc2104.system.entry.js +4 -0
- package/dist/ionic/p-986855d6.js +4 -0
- package/dist/ionic/p-9abb7d9b.entry.js +4 -0
- package/dist/ionic/p-9ac1a506.system.js +4 -0
- package/dist/ionic/{p-d60342e3.js → p-9ed87d1b.js} +1 -1
- package/dist/ionic/p-a1cdc742.js +4 -0
- package/dist/ionic/p-a2814291.system.js +4 -0
- package/dist/ionic/{p-782beb5a.js → p-a510e9c0.js} +1 -1
- package/dist/ionic/p-a538ab98.js +4 -0
- package/dist/ionic/p-a5a9206f.entry.js +4 -0
- package/dist/ionic/p-a685da08.system.entry.js +4 -0
- package/dist/ionic/p-a98061d0.entry.js +4 -0
- package/dist/ionic/p-a9af4103.js +4 -0
- package/dist/ionic/p-ac1c2b6a.js +4 -0
- package/dist/ionic/p-b18c52cd.entry.js +4 -0
- package/dist/ionic/p-b517144d.system.entry.js +4 -0
- package/dist/ionic/p-b5dc9a32.system.entry.js +4 -0
- package/dist/ionic/p-b80582fe.system.entry.js +4 -0
- package/dist/ionic/p-b9d2d554.entry.js +4 -0
- package/dist/ionic/p-bbcec459.system.js +4 -0
- package/dist/ionic/p-bcdd3eaf.entry.js +4 -0
- package/dist/ionic/p-be87ec25.entry.js +4 -0
- package/dist/ionic/p-c248c88d.system.js +4 -0
- package/dist/ionic/p-c373eebd.system.js +4 -0
- package/dist/ionic/p-cdff6a80.system.entry.js +4 -0
- package/dist/ionic/p-cea92c46.system.js +4 -0
- package/dist/ionic/p-d4862803.entry.js +4 -0
- package/dist/ionic/p-d6ed3be1.entry.js +4 -0
- package/dist/ionic/{p-19ea7bff.system.js → p-dbd39afd.system.js} +1 -1
- package/dist/ionic/p-dc286a59.entry.js +4 -0
- package/dist/ionic/p-df09db21.entry.js +4 -0
- package/dist/ionic/p-df4b88fc.system.entry.js +4 -0
- package/dist/ionic/p-e3b70846.system.js +4 -0
- package/dist/ionic/p-ea3ca474.system.js +4 -0
- package/dist/ionic/p-eb4ba253.entry.js +4 -0
- package/dist/ionic/p-ebd641e4.system.entry.js +4 -0
- package/dist/ionic/p-ebe94d15.entry.js +4 -0
- package/dist/ionic/p-eda736d7.entry.js +4 -0
- package/dist/ionic/p-ee17be82.entry.js +4 -0
- package/dist/ionic/p-eee899d5.system.entry.js +4 -0
- package/dist/ionic/p-f116fb3f.system.js +4 -0
- package/dist/ionic/{p-95902a17.system.js → p-f193945e.system.js} +1 -1
- package/dist/ionic/{p-aee73160.entry.js → p-f1e11e93.entry.js} +1 -1
- package/dist/ionic/p-f25ad420.system.entry.js +4 -0
- package/dist/ionic/p-f44c9c6e.system.entry.js +4 -0
- package/dist/ionic/p-f5be97b8.entry.js +4 -0
- package/dist/ionic/p-f8123284.entry.js +4 -0
- package/dist/ionic/{p-3e9fea9e.system.js → p-f8c63ac0.system.js} +2 -2
- package/dist/ionic/p-fad81132.system.entry.js +4 -0
- package/dist/ionic/p-fff78cd2.system.entry.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +5 -3
- package/dist/types/components/accordion-group/accordion-group.d.ts +12 -1
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +3 -7
- package/dist/types/components/action-sheet/action-sheet.d.ts +3 -2
- package/dist/types/components/alert/alert-interface.d.ts +3 -7
- package/dist/types/components/alert/alert.d.ts +3 -2
- package/dist/types/components/app/app.d.ts +4 -2
- package/dist/types/components/avatar/avatar.d.ts +28 -0
- package/dist/types/components/back-button/back-button.d.ts +2 -1
- package/dist/types/components/backdrop/backdrop.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +23 -1
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +4 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +15 -4
- package/dist/types/components/buttons/buttons.d.ts +5 -1
- package/dist/types/components/card/card.d.ts +8 -1
- package/dist/types/components/card-content/card-content.d.ts +2 -1
- package/dist/types/components/card-header/card-header.d.ts +3 -2
- package/dist/types/components/card-subtitle/card-subtitle.d.ts +2 -1
- package/dist/types/components/card-title/card-title.d.ts +2 -1
- package/dist/types/components/checkbox/checkbox.d.ts +14 -4
- package/dist/types/components/chip/chip.d.ts +19 -1
- package/dist/types/components/col/col.d.ts +4 -0
- package/dist/types/components/content/content.d.ts +3 -0
- package/dist/types/components/datetime/datetime.d.ts +26 -1
- package/dist/types/components/datetime/utils/data.d.ts +5 -5
- package/dist/types/components/datetime-button/datetime-button.d.ts +2 -1
- package/dist/types/components/fab/fab.d.ts +4 -0
- package/dist/types/components/fab-button/fab-button.d.ts +5 -3
- package/dist/types/components/fab-list/fab-list.d.ts +4 -0
- package/dist/types/components/footer/footer.d.ts +4 -3
- package/dist/types/components/grid/grid.d.ts +4 -0
- package/dist/types/components/header/header.d.ts +9 -3
- package/dist/types/components/img/img.d.ts +3 -0
- package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +4 -0
- package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +4 -0
- package/dist/types/components/input/input.d.ts +31 -5
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +2 -0
- package/dist/types/components/item/item.d.ts +11 -4
- package/dist/types/components/item-divider/item-divider.d.ts +2 -1
- package/dist/types/components/item-group/item-group.d.ts +4 -0
- package/dist/types/components/item-option/item-option.d.ts +11 -1
- package/dist/types/components/item-options/item-options.d.ts +4 -0
- package/dist/types/components/item-sliding/item-sliding.d.ts +4 -0
- package/dist/types/components/label/label.d.ts +2 -1
- package/dist/types/components/list/list.d.ts +15 -1
- package/dist/types/components/list-header/list-header.d.ts +2 -1
- package/dist/types/components/loading/loading-interface.d.ts +2 -7
- package/dist/types/components/loading/loading.d.ts +3 -2
- package/dist/types/components/menu/menu.d.ts +3 -0
- package/dist/types/components/menu-button/menu-button.d.ts +3 -1
- package/dist/types/components/menu-toggle/menu-toggle.d.ts +3 -0
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +4 -7
- package/dist/types/components/modal/modal.d.ts +11 -1
- package/dist/types/components/nav/nav-interface.d.ts +9 -1
- package/dist/types/components/nav/nav.d.ts +5 -1
- package/dist/types/components/nav-link/nav-link.d.ts +4 -0
- package/dist/types/components/note/note.d.ts +2 -1
- package/dist/types/components/picker/picker.d.ts +2 -1
- package/dist/types/components/picker-column/picker-column.d.ts +2 -1
- package/dist/types/components/picker-column-option/picker-column-option.d.ts +4 -0
- package/dist/types/components/picker-legacy/picker.d.ts +2 -1
- package/dist/types/components/popover/popover-interface.d.ts +3 -6
- package/dist/types/components/popover/popover.d.ts +6 -5
- package/dist/types/components/progress-bar/progress-bar.d.ts +2 -1
- package/dist/types/components/radio/radio.d.ts +2 -1
- package/dist/types/components/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/range/range.d.ts +2 -1
- package/dist/types/components/refresher/refresher.d.ts +2 -1
- package/dist/types/components/refresher-content/refresher-content.d.ts +4 -0
- package/dist/types/components/reorder/reorder.d.ts +9 -0
- package/dist/types/components/reorder-group/reorder-group.d.ts +4 -0
- package/dist/types/components/ripple-effect/ripple-effect.d.ts +4 -0
- package/dist/types/components/route/route.d.ts +4 -0
- package/dist/types/components/router/router.d.ts +4 -0
- package/dist/types/components/router-link/router-link.d.ts +4 -0
- package/dist/types/components/router-outlet/router-outlet.d.ts +4 -1
- package/dist/types/components/row/row.d.ts +4 -0
- package/dist/types/components/searchbar/searchbar.d.ts +30 -8
- package/dist/types/components/segment/segment.d.ts +2 -1
- package/dist/types/components/segment-button/segment-button.d.ts +5 -2
- package/dist/types/components/select/select.d.ts +35 -7
- package/dist/types/components/select-option/select-option.d.ts +4 -0
- package/dist/types/components/select-popover/select-popover.d.ts +3 -0
- package/dist/types/components/skeleton-text/skeleton-text.d.ts +4 -0
- package/dist/types/components/spinner/spinner.d.ts +15 -0
- package/dist/types/components/split-pane/split-pane.d.ts +4 -0
- package/dist/types/components/tab/tab.d.ts +4 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +22 -2
- package/dist/types/components/tab-button/tab-button.d.ts +11 -1
- package/dist/types/components/tabs/tabs.d.ts +3 -0
- package/dist/types/components/text/text.d.ts +2 -1
- package/dist/types/components/textarea/textarea.d.ts +17 -4
- package/dist/types/components/thumbnail/thumbnail.d.ts +4 -0
- package/dist/types/components/title/title.d.ts +4 -0
- package/dist/types/components/toast/animations/utils.d.ts +2 -2
- package/dist/types/components/toast/toast-interface.d.ts +3 -7
- package/dist/types/components/toast/toast.d.ts +12 -2
- package/dist/types/components/toggle/toggle.d.ts +15 -1
- package/dist/types/components/toolbar/toolbar.d.ts +4 -3
- package/dist/types/components.d.ts +1384 -184
- package/dist/types/global/ionic-global.d.ts +27 -2
- package/dist/types/interface.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/types/utils/config.d.ts +106 -2
- package/dist/types/utils/focus-visible.d.ts +1 -0
- package/dist/types/utils/overlays-interface.d.ts +31 -1
- package/dist/types/utils/test/playwright/generator.d.ts +31 -2
- package/hydrate/index.d.ts +4 -10
- package/hydrate/index.js +3805 -3847
- package/hydrate/index.mjs +3805 -3847
- package/package.json +10 -5
- package/components/hardware-back-button.js +0 -115
- package/components/index8.js +0 -128
- package/dist/cjs/hardware-back-button-f0972dab.js +0 -122
- package/dist/cjs/index-5915f9b3.js +0 -38
- package/dist/cjs/index-c8d52405.js +0 -10
- package/dist/cjs/ionic-global-3c758a1a.js +0 -237
- package/dist/esm/hardware-back-button-0a284222.js +0 -116
- package/dist/esm/index-79b30591.js +0 -167
- package/dist/esm/index-9b0d46f4.js +0 -34
- package/dist/esm/index-a5d50daf.js +0 -7
- package/dist/esm/ionic-global-6b9f2b5a.js +0 -231
- package/dist/esm-es5/animation-eab5a4ca.js +0 -4
- package/dist/esm-es5/app-globals-1318774c.js +0 -4
- package/dist/esm-es5/capacitor-59395cbd.js +0 -4
- package/dist/esm-es5/data-ae11fd43.js +0 -4
- package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
- package/dist/esm-es5/framework-delegate-63d1a679.js +0 -4
- package/dist/esm-es5/hardware-back-button-0a284222.js +0 -4
- package/dist/esm-es5/helpers-da915de8.js +0 -4
- package/dist/esm-es5/index-13b48bcb.js +0 -4
- package/dist/esm-es5/index-5cc724f3.js +0 -4
- package/dist/esm-es5/index-9b0d46f4.js +0 -4
- package/dist/esm-es5/index-a5d50daf.js +0 -4
- package/dist/esm-es5/index-ed9a6c67.js +0 -4
- package/dist/esm-es5/index-fcdfc1aa.js +0 -5
- package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
- package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
- package/dist/esm-es5/ionic-global-6b9f2b5a.js +0 -4
- package/dist/esm-es5/ios.transition-1cb16beb.js +0 -4
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
- package/dist/esm-es5/md.transition-20f80721.js +0 -4
- package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
- package/dist/esm-es5/overlays-6163edd5.js +0 -4
- package/dist/esm-es5/status-tap-6971c722.js +0 -4
- package/dist/esm-es5/swipe-back-e5394307.js +0 -4
- package/dist/ionic/p-009f82b0.entry.js +0 -4
- package/dist/ionic/p-00d0d756.system.entry.js +0 -4
- package/dist/ionic/p-02a67bb6.entry.js +0 -4
- package/dist/ionic/p-06db9f72.system.entry.js +0 -4
- package/dist/ionic/p-06e58c4e.js +0 -4
- package/dist/ionic/p-06fee233.js +0 -4
- package/dist/ionic/p-0b7a6f61.system.entry.js +0 -4
- package/dist/ionic/p-0c06e09b.system.js +0 -4
- package/dist/ionic/p-0e3657b4.system.entry.js +0 -4
- package/dist/ionic/p-0f461830.entry.js +0 -4
- package/dist/ionic/p-1050c06b.entry.js +0 -4
- package/dist/ionic/p-10e0c150.entry.js +0 -4
- package/dist/ionic/p-12130ed6.entry.js +0 -4
- package/dist/ionic/p-12f321c2.system.entry.js +0 -4
- package/dist/ionic/p-13672c38.system.entry.js +0 -4
- package/dist/ionic/p-1424bf51.system.entry.js +0 -4
- package/dist/ionic/p-14862d17.js +0 -4
- package/dist/ionic/p-15764963.entry.js +0 -4
- package/dist/ionic/p-178f8860.js +0 -4
- package/dist/ionic/p-19d9e3c1.entry.js +0 -4
- package/dist/ionic/p-1a02bce6.system.js +0 -4
- package/dist/ionic/p-1c152e5e.entry.js +0 -4
- package/dist/ionic/p-1dfc11b3.system.js +0 -4
- package/dist/ionic/p-1e4371bd.js +0 -4
- package/dist/ionic/p-1fd5d9bc.system.js +0 -4
- package/dist/ionic/p-20034878.entry.js +0 -4
- package/dist/ionic/p-231bc1a6.entry.js +0 -4
- package/dist/ionic/p-256d6439.system.entry.js +0 -4
- package/dist/ionic/p-25ffd217.system.entry.js +0 -4
- package/dist/ionic/p-2690b1de.js +0 -4
- package/dist/ionic/p-2799a566.entry.js +0 -4
- package/dist/ionic/p-27c32980.system.entry.js +0 -4
- package/dist/ionic/p-28dfa27e.entry.js +0 -4
- package/dist/ionic/p-2af55ad8.entry.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2d31d826.entry.js +0 -4
- package/dist/ionic/p-2e092bfc.js +0 -4
- package/dist/ionic/p-2e25154e.entry.js +0 -4
- package/dist/ionic/p-33e4b80b.entry.js +0 -4
- package/dist/ionic/p-39d3c108.entry.js +0 -4
- package/dist/ionic/p-39f7d87a.system.entry.js +0 -4
- package/dist/ionic/p-3ad285e3.system.js +0 -4
- package/dist/ionic/p-3be897c8.system.entry.js +0 -4
- package/dist/ionic/p-3cc276f4.js +0 -4
- package/dist/ionic/p-40b63137.js +0 -4
- package/dist/ionic/p-47dc25dc.system.entry.js +0 -4
- package/dist/ionic/p-48da821c.system.js +0 -4
- package/dist/ionic/p-49e8212a.entry.js +0 -4
- package/dist/ionic/p-4c2d5b80.system.js +0 -4
- package/dist/ionic/p-4c553a2a.system.entry.js +0 -4
- package/dist/ionic/p-4e9cfad5.system.entry.js +0 -4
- package/dist/ionic/p-50d264fa.system.entry.js +0 -4
- package/dist/ionic/p-515d6848.system.entry.js +0 -4
- package/dist/ionic/p-548a72aa.system.entry.js +0 -4
- package/dist/ionic/p-550a3b74.system.entry.js +0 -4
- package/dist/ionic/p-56b2ba69.system.entry.js +0 -4
- package/dist/ionic/p-576c3a98.js +0 -4
- package/dist/ionic/p-58f53534.entry.js +0 -4
- package/dist/ionic/p-5d9ac963.entry.js +0 -4
- package/dist/ionic/p-5ed6403e.system.entry.js +0 -4
- package/dist/ionic/p-639d0578.system.entry.js +0 -4
- package/dist/ionic/p-64bbdc67.entry.js +0 -4
- package/dist/ionic/p-65d01407.entry.js +0 -4
- package/dist/ionic/p-6b2e506b.entry.js +0 -4
- package/dist/ionic/p-6b6a8f94.system.entry.js +0 -4
- package/dist/ionic/p-6d119deb.system.entry.js +0 -4
- package/dist/ionic/p-7148eaf9.system.js +0 -4
- package/dist/ionic/p-72812e99.js +0 -4
- package/dist/ionic/p-72bc8a1c.js +0 -4
- package/dist/ionic/p-72bfbdb8.entry.js +0 -4
- package/dist/ionic/p-78667ff0.entry.js +0 -4
- package/dist/ionic/p-78c786a5.system.entry.js +0 -4
- package/dist/ionic/p-792919fd.system.js +0 -4
- package/dist/ionic/p-7b30edcc.js +0 -4
- package/dist/ionic/p-7b5771f9.entry.js +0 -4
- package/dist/ionic/p-7e58bbf9.system.js +0 -5
- package/dist/ionic/p-81757650.entry.js +0 -4
- package/dist/ionic/p-825e7bd7.system.entry.js +0 -4
- package/dist/ionic/p-8318c25d.entry.js +0 -4
- package/dist/ionic/p-861176bf.js +0 -5
- package/dist/ionic/p-8635f5e6.system.js +0 -4
- package/dist/ionic/p-87a5a16c.system.entry.js +0 -4
- package/dist/ionic/p-87ce1c7b.system.entry.js +0 -4
- package/dist/ionic/p-8dd3da91.entry.js +0 -4
- package/dist/ionic/p-8e640927.entry.js +0 -4
- package/dist/ionic/p-8ef7a3d4.js +0 -4
- package/dist/ionic/p-900bf295.system.entry.js +0 -4
- package/dist/ionic/p-9437291a.system.entry.js +0 -4
- package/dist/ionic/p-96cc4814.js +0 -4
- package/dist/ionic/p-9a87fe2d.entry.js +0 -4
- package/dist/ionic/p-9b48727c.system.entry.js +0 -4
- package/dist/ionic/p-a049797d.system.entry.js +0 -4
- package/dist/ionic/p-a09686af.system.entry.js +0 -4
- package/dist/ionic/p-a15ddedb.system.js +0 -4
- package/dist/ionic/p-aa92906a.entry.js +0 -4
- package/dist/ionic/p-abe101da.system.js +0 -4
- package/dist/ionic/p-ae304d51.system.entry.js +0 -4
- package/dist/ionic/p-ae830361.entry.js +0 -4
- package/dist/ionic/p-af19e17f.entry.js +0 -4
- package/dist/ionic/p-b13c5a74.system.js +0 -4
- package/dist/ionic/p-b51e4004.js +0 -4
- package/dist/ionic/p-b5400a4e.entry.js +0 -4
- package/dist/ionic/p-b84b4728.system.entry.js +0 -4
- package/dist/ionic/p-bc35609f.system.entry.js +0 -4
- package/dist/ionic/p-c29e3a26.entry.js +0 -4
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-c5bbf6c1.system.entry.js +0 -4
- package/dist/ionic/p-c61cc894.js +0 -4
- package/dist/ionic/p-c7d9e292.system.js +0 -4
- package/dist/ionic/p-ccba2087.system.entry.js +0 -4
- package/dist/ionic/p-cdf6fc3a.system.entry.js +0 -4
- package/dist/ionic/p-d3e8f550.entry.js +0 -4
- package/dist/ionic/p-d46804b1.system.entry.js +0 -4
- package/dist/ionic/p-d47265c8.js +0 -4
- package/dist/ionic/p-da1d2cb3.entry.js +0 -4
- package/dist/ionic/p-dbdccd05.entry.js +0 -4
- package/dist/ionic/p-dc480111.entry.js +0 -4
- package/dist/ionic/p-dc75988a.system.entry.js +0 -4
- package/dist/ionic/p-de104ff8.system.js +0 -4
- package/dist/ionic/p-dfb78785.system.js +0 -4
- package/dist/ionic/p-e3177e13.system.entry.js +0 -4
- package/dist/ionic/p-e4e3296d.system.js +0 -4
- package/dist/ionic/p-e8d1ae44.system.entry.js +0 -4
- package/dist/ionic/p-e992e256.js +0 -4
- package/dist/ionic/p-eb82a2ad.entry.js +0 -4
- package/dist/ionic/p-ebef8e16.system.entry.js +0 -4
- package/dist/ionic/p-f03983ca.system.entry.js +0 -4
- package/dist/ionic/p-f244eea8.system.entry.js +0 -4
- package/dist/ionic/p-f2e5ec87.entry.js +0 -4
- package/dist/ionic/p-f5aef6f1.system.entry.js +0 -4
- package/dist/ionic/p-f5b1cfba.entry.js +0 -4
- package/dist/ionic/p-f8ff5ad1.entry.js +0 -4
- package/dist/ionic/p-fa459c81.entry.js +0 -4
- package/dist/ionic/p-fa7120fe.entry.js +0 -4
- package/dist/ionic/p-fbebb25d.entry.js +0 -4
- package/dist/ionic/p-fc8bdbc9.system.entry.js +0 -4
- package/dist/ionic/p-fca658be.system.entry.js +0 -4
- package/dist/ionic/p-fdb92b6d.entry.js +0 -4
- package/dist/ionic/p-fe10600c.js +0 -4
- package/dist/ionic/p-fe5dca01.system.entry.js +0 -4
- package/dist/ionic/p-fe6ab8d4.entry.js +0 -4
- package/dist/ionic/p-fee6c9c2.system.entry.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
- /package/dist/collection/components/{input-password-toggle/input-password-toggle.css → refresher-content/refresher-content.css} +0 -0
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
8
|
+
const index = require('./index-73f75efb.js');
|
|
9
|
+
const caretLeft = require('./caret-left-2bb66970.js');
|
|
10
|
+
const caretRight = require('./caret-right-88e03970.js');
|
|
11
|
+
const focusVisible = require('./focus-visible-9aa87fa3.js');
|
|
12
|
+
const helpers = require('./helpers-4e2936d2.js');
|
|
13
|
+
const ionicGlobal = require('./ionic-global-14af9c21.js');
|
|
12
14
|
const dir = require('./dir-94c21456.js');
|
|
13
15
|
const theme = require('./theme-d1c573d2.js');
|
|
14
|
-
const index$
|
|
15
|
-
const
|
|
16
|
-
const data = require('./data-
|
|
16
|
+
const index$1 = require('./index-073c7cdc.js');
|
|
17
|
+
const config = require('./config-aff4ff52.js');
|
|
18
|
+
const data = require('./data-5a4013f1.js');
|
|
17
19
|
const lockController = require('./lock-controller-6585a42a.js');
|
|
18
|
-
const overlays = require('./overlays-
|
|
19
|
-
const animation = require('./animation-
|
|
20
|
-
const haptic = require('./haptic-
|
|
21
|
-
require('./
|
|
22
|
-
require('./hardware-back-button-f0972dab.js');
|
|
23
|
-
require('./framework-delegate-55f5683a.js');
|
|
20
|
+
const overlays = require('./overlays-542a90b3.js');
|
|
21
|
+
const animation = require('./animation-58015a44.js');
|
|
22
|
+
const haptic = require('./haptic-7c25be74.js');
|
|
23
|
+
require('./framework-delegate-32f1a0e4.js');
|
|
24
24
|
require('./gesture-controller-9436f482.js');
|
|
25
|
-
require('./capacitor-
|
|
25
|
+
require('./capacitor-454dd071.js');
|
|
26
26
|
|
|
27
27
|
const isYearDisabled = (refYear, minParts, maxParts) => {
|
|
28
28
|
if (minParts && minParts.year > refYear) {
|
|
@@ -185,7 +185,7 @@ const getHighlightStyles = (highlightedDates, dateIsoString, el) => {
|
|
|
185
185
|
return highlightedDates(dateIsoString);
|
|
186
186
|
}
|
|
187
187
|
catch (e) {
|
|
188
|
-
|
|
188
|
+
ionicGlobal.printIonError('Exception thrown from provided `highlightedDates` callback. Please check your function and try again.', el, e);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
return undefined;
|
|
@@ -202,7 +202,7 @@ const warnIfTimeZoneProvided = (el, formatOptions) => {
|
|
|
202
202
|
((_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _b === void 0 ? void 0 : _b.timeZoneName) ||
|
|
203
203
|
((_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _c === void 0 ? void 0 : _c.timeZone) ||
|
|
204
204
|
((_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _d === void 0 ? void 0 : _d.timeZoneName)) {
|
|
205
|
-
|
|
205
|
+
ionicGlobal.printIonWarning('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".', el);
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
const checkForPresentationFormatMismatch = (el, presentation, formatOptions) => {
|
|
@@ -216,158 +216,44 @@ const checkForPresentationFormatMismatch = (el, presentation, formatOptions) =>
|
|
|
216
216
|
case 'month':
|
|
217
217
|
case 'year':
|
|
218
218
|
if (formatOptions.date === undefined) {
|
|
219
|
-
|
|
219
|
+
ionicGlobal.printIonWarning(`Datetime: The '${presentation}' presentation requires a date object in formatOptions.`, el);
|
|
220
220
|
}
|
|
221
221
|
break;
|
|
222
222
|
case 'time':
|
|
223
223
|
if (formatOptions.time === undefined) {
|
|
224
|
-
|
|
224
|
+
ionicGlobal.printIonWarning(`Datetime: The 'time' presentation requires a time object in formatOptions.`, el);
|
|
225
225
|
}
|
|
226
226
|
break;
|
|
227
227
|
case 'date-time':
|
|
228
228
|
case 'time-date':
|
|
229
229
|
if (formatOptions.date === undefined && formatOptions.time === undefined) {
|
|
230
|
-
|
|
230
|
+
ionicGlobal.printIonWarning(`Datetime: The '${presentation}' presentation requires either a date or time object (or both) in formatOptions.`, el);
|
|
231
231
|
}
|
|
232
232
|
break;
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
|
|
236
|
-
const datetimeIosCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2);font-size:min(1.375rem, 35.2px)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}";
|
|
236
|
+
const datetimeIonicCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons,.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{--background:var(--ion-primitives-base-white, #ffffff);--focus-ring-color:var(--ion-border-focus-default, #b5c0f7);--focus-ring-width:var(--ion-border-radius-025, 2px)}:host .datetime-header{-webkit-padding-start:var(--ion-space-400, 16px);padding-inline-start:var(--ion-space-400, 16px);-webkit-padding-end:var(--ion-space-400, 16px);padding-inline-end:var(--ion-space-400, 16px);padding-top:var(--ion-space-200, 8px);padding-bottom:var(--ion-space-400, 16px);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start;-ms-flex-pack:justify;justify-content:space-between;height:var(--ion-scale-1400, 56px);margin-bottom:var(--ion-space-200, 8px);border-bottom:var(--ion-border-style-solid, solid) var(--ion-border-size-025, 1px) var(--ion-primitives-neutral-300, #cfcfcf)}:host .datetime-header .datetime-title{font-size:var(--ion-font-size-450, 1.125rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-700, 28px);text-decoration:none;text-transform:none;color:var(--ion-primitives-neutral-800, #626262)}:host .datetime-header .datetime-selected-date{font-size:var(--ion-font-size-350, 0.875rem);font-weight:var(--ion-font-weight-regular, 400);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;color:var(--ion-primitives-neutral-1000, #3b3b3b)}.calendar-action-buttons{padding-top:var(--ion-space-200, 8px);padding-bottom:var(--ion-space-200, 8px);-ms-flex-align:center;align-items:center;height:var(--ion-scale-1400, 56px);-webkit-box-sizing:border-box;box-sizing:border-box}.calendar-month-year{-ms-flex:1 0 0px;flex:1 0 0}.calendar-month-year-toggle{border-radius:var(--ion-border-radius-full, 999px);font-size:var(--ion-font-size-400, 1rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-1, 1%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;-webkit-padding-start:var(--ion-space-400, 16px);padding-inline-start:var(--ion-space-400, 16px);-webkit-padding-end:var(--ion-space-400, 16px);padding-inline-end:var(--ion-space-400, 16px);padding-top:var(--ion-space-200, 8px);padding-bottom:var(--ion-space-200, 8px);min-width:var(--ion-scale-1600, 64px);min-height:var(--ion-scale-1000, 40px);border:var(--focus-ring-width) var(--ion-border-style-solid, solid) transparent;color:var(--ion-semantics-primary-base, #105cef)}@media (any-hover: hover){.calendar-month-year-toggle:hover{background:var(--ion-primitives-neutral-200, #e7e7e7)}}.calendar-month-year-toggle.ion-focused{border-color:var(--focus-ring-color)}.calendar-month-year-toggle.ion-activated{background:var(--ion-primitives-neutral-200, #e7e7e7)}.calendar-next-prev ion-button.button-has-icon-only{--color:var(--ion-primitives-neutral-1000, #3b3b3b);--background-activated:var(--ion-primitives-neutral-200, #e7e7e7);--background-hover:var(--ion-primitives-neutral-200, #e7e7e7);--background-hover-opacity:1}.calendar-next-prev ion-button.button-has-icon-only.ion-focused::part(native){border:var(--ion-border-size-050, 2px) var(--ion-border-style-solid, solid) var(--ion-border-focus-default, #b5c0f7);outline:none}.calendar-days-of-week{font-size:var(--ion-font-size-300, 0.75rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-2, 1.5%);line-height:var(--ion-font-line-height-500, 20px);text-decoration:none;text-transform:uppercase;-ms-flex-line-pack:center;align-content:center;height:var(--ion-scale-1200, 48px);color:var(--ion-primitives-neutral-800, #626262)}.calendar-day{border-radius:var(--ion-border-radius-full, 999px);-webkit-padding-start:var(--ion-space-100, 4px);padding-inline-start:var(--ion-space-100, 4px);-webkit-padding-end:var(--ion-space-100, 4px);padding-inline-end:var(--ion-space-100, 4px);padding-top:var(--ion-space-100, 4px);padding-bottom:var(--ion-space-100, 4px);font-size:var(--ion-font-size-350, 0.875rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-1, 1%);line-height:var(--ion-font-line-height-500, 20px);text-decoration:none;text-transform:none;width:var(--ion-scale-1200, 48px);min-width:var(--ion-scale-1200, 48px);height:var(--ion-scale-1200, 48px);color:var(--ion-primitives-neutral-1200, #242424)}.calendar-day[disabled]:not(.calendar-day-constrained){color:var(--ion-primitives-neutral-500, #a2a2a2)}.calendar-day.calendar-day-today{color:var(--ion-semantics-primary-base, #105cef)}.calendar-day.calendar-day-active{background:var(--ion-semantics-primary-100, #f2f4fd)}.calendar-day:focus-visible{border:var(--focus-ring-width) var(--ion-border-style-solid, solid) var(--focus-ring-color)}@media (any-hover: hover){.calendar-day:not([disabled]):not(:active):hover{background:var(--ion-semantics-primary-200, #e9ecfc)}}.calendar-day:active{background:var(--ion-semantics-primary-300, #d0d7fa)}:host .datetime-time{-webkit-padding-start:var(--ion-space-400, 16px);padding-inline-start:var(--ion-space-400, 16px);-webkit-padding-end:var(--ion-space-400, 16px);padding-inline-end:var(--ion-space-400, 16px);padding-top:var(--ion-space-100, 4px);padding-bottom:var(--ion-space-100, 4px);height:var(--ion-scale-800, 32px)}:host .datetime-time .time-header{font-size:var(--ion-font-size-400, 1rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-1, 1%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;color:var(--ion-primitives-neutral-800, #626262)}:host .datetime-time button{-webkit-padding-start:var(--ion-space-200, 8px);padding-inline-start:var(--ion-space-200, 8px);-webkit-padding-end:var(--ion-space-200, 8px);padding-inline-end:var(--ion-space-200, 8px);padding-top:var(--ion-space-0, 0px);padding-bottom:var(--ion-space-0, 0px);font-size:var(--ion-font-size-350, 0.875rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;border-radius:var(--ion-border-radius-full, 999px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--ion-primitives-neutral-100, #f5f5f5);color:var(--ion-primitives-neutral-1200, #242424)}:host .datetime-buttons ion-buttons,.datetime-action-buttons .datetime-action-buttons-container{-ms-flex-flow:column;flex-flow:column;-ms-flex-align:stretch;align-items:stretch;gap:var(--ion-space-200, 8px)}:host .datetime-buttons ion-buttons ion-button{font-size:var(--ion-font-size-400, 1rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-1, 1%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;min-height:var(--ion-space-1200, 48px)}";
|
|
237
|
+
const IonDatetimeIonicStyle0 = datetimeIonicCss;
|
|
238
|
+
|
|
239
|
+
const datetimeIosCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons,.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons ion-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2);font-size:min(1.375rem, 35.2px)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}";
|
|
237
240
|
const IonDatetimeIosStyle0 = datetimeIosCss;
|
|
238
241
|
|
|
239
|
-
const datetimeMdCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-
|
|
242
|
+
const datetimeMdCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons,.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons ion-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}";
|
|
240
243
|
const IonDatetimeMdStyle0 = datetimeMdCss;
|
|
241
244
|
|
|
242
245
|
const Datetime = class {
|
|
243
246
|
constructor(hostRef) {
|
|
244
|
-
index
|
|
245
|
-
this.ionCancel = index
|
|
246
|
-
this.ionChange = index
|
|
247
|
-
this.ionValueChange = index
|
|
248
|
-
this.ionFocus = index
|
|
249
|
-
this.ionBlur = index
|
|
250
|
-
this.ionStyle = index
|
|
251
|
-
this.ionRender = index
|
|
247
|
+
index.registerInstance(this, hostRef);
|
|
248
|
+
this.ionCancel = index.createEvent(this, "ionCancel", 7);
|
|
249
|
+
this.ionChange = index.createEvent(this, "ionChange", 7);
|
|
250
|
+
this.ionValueChange = index.createEvent(this, "ionValueChange", 7);
|
|
251
|
+
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
|
252
|
+
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
|
253
|
+
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
|
254
|
+
this.ionRender = index.createEvent(this, "ionRender", 7);
|
|
252
255
|
this.inputId = `ion-dt-${datetimeIds++}`;
|
|
253
256
|
this.prevPresentation = null;
|
|
254
|
-
this.showMonthAndYear = false;
|
|
255
|
-
this.activeParts = [];
|
|
256
|
-
this.workingParts = {
|
|
257
|
-
month: 5,
|
|
258
|
-
day: 28,
|
|
259
|
-
year: 2021,
|
|
260
|
-
hour: 13,
|
|
261
|
-
minute: 52,
|
|
262
|
-
ampm: 'pm',
|
|
263
|
-
};
|
|
264
|
-
this.isTimePopoverOpen = false;
|
|
265
|
-
/**
|
|
266
|
-
* The color to use from your application's color palette.
|
|
267
|
-
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
|
|
268
|
-
* For more information on colors, see [theming](/docs/theming/basics).
|
|
269
|
-
*/
|
|
270
|
-
this.color = 'primary';
|
|
271
|
-
/**
|
|
272
|
-
* The name of the control, which is submitted with the form data.
|
|
273
|
-
*/
|
|
274
|
-
this.name = this.inputId;
|
|
275
|
-
/**
|
|
276
|
-
* If `true`, the user cannot interact with the datetime.
|
|
277
|
-
*/
|
|
278
|
-
this.disabled = false;
|
|
279
|
-
/**
|
|
280
|
-
* If `true`, the datetime appears normal but the selected date cannot be changed.
|
|
281
|
-
*/
|
|
282
|
-
this.readonly = false;
|
|
283
|
-
/**
|
|
284
|
-
* Which values you want to select. `"date"` will show
|
|
285
|
-
* a calendar picker to select the month, day, and year. `"time"`
|
|
286
|
-
* will show a time picker to select the hour, minute, and (optionally)
|
|
287
|
-
* AM/PM. `"date-time"` will show the date picker first and time picker second.
|
|
288
|
-
* `"time-date"` will show the time picker first and date picker second.
|
|
289
|
-
*/
|
|
290
|
-
this.presentation = 'date-time';
|
|
291
|
-
/**
|
|
292
|
-
* The text to display on the picker's cancel button.
|
|
293
|
-
*/
|
|
294
|
-
this.cancelText = 'Cancel';
|
|
295
|
-
/**
|
|
296
|
-
* The text to display on the picker's "Done" button.
|
|
297
|
-
*/
|
|
298
|
-
this.doneText = 'Done';
|
|
299
|
-
/**
|
|
300
|
-
* The text to display on the picker's "Clear" button.
|
|
301
|
-
*/
|
|
302
|
-
this.clearText = 'Clear';
|
|
303
|
-
/**
|
|
304
|
-
* The locale to use for `ion-datetime`. This
|
|
305
|
-
* impacts month and day name formatting.
|
|
306
|
-
* The `"default"` value refers to the default
|
|
307
|
-
* locale set by your device.
|
|
308
|
-
*/
|
|
309
|
-
this.locale = 'default';
|
|
310
|
-
/**
|
|
311
|
-
* The first day of the week to use for `ion-datetime`. The
|
|
312
|
-
* default value is `0` and represents Sunday.
|
|
313
|
-
*/
|
|
314
|
-
this.firstDayOfWeek = 0;
|
|
315
|
-
/**
|
|
316
|
-
* If `true`, multiple dates can be selected at once. Only
|
|
317
|
-
* applies to `presentation="date"` and `preferWheel="false"`.
|
|
318
|
-
*/
|
|
319
|
-
this.multiple = false;
|
|
320
|
-
/**
|
|
321
|
-
* If `true`, a header will be shown above the calendar
|
|
322
|
-
* picker. This will include both the slotted title, and
|
|
323
|
-
* the selected date.
|
|
324
|
-
*/
|
|
325
|
-
this.showDefaultTitle = false;
|
|
326
|
-
/**
|
|
327
|
-
* If `true`, the default "Cancel" and "OK" buttons
|
|
328
|
-
* will be rendered at the bottom of the `ion-datetime`
|
|
329
|
-
* component. Developers can also use the `button` slot
|
|
330
|
-
* if they want to customize these buttons. If custom
|
|
331
|
-
* buttons are set in the `button` slot then the
|
|
332
|
-
* default buttons will not be rendered.
|
|
333
|
-
*/
|
|
334
|
-
this.showDefaultButtons = false;
|
|
335
|
-
/**
|
|
336
|
-
* If `true`, a "Clear" button will be rendered alongside
|
|
337
|
-
* the default "Cancel" and "OK" buttons at the bottom of the `ion-datetime`
|
|
338
|
-
* component. Developers can also use the `button` slot
|
|
339
|
-
* if they want to customize these buttons. If custom
|
|
340
|
-
* buttons are set in the `button` slot then the
|
|
341
|
-
* default buttons will not be rendered.
|
|
342
|
-
*/
|
|
343
|
-
this.showClearButton = false;
|
|
344
|
-
/**
|
|
345
|
-
* If `true`, the default "Time" label will be rendered
|
|
346
|
-
* for the time selector of the `ion-datetime` component.
|
|
347
|
-
* Developers can also use the `time-label` slot
|
|
348
|
-
* if they want to customize this label. If a custom
|
|
349
|
-
* label is set in the `time-label` slot then the
|
|
350
|
-
* default label will not be rendered.
|
|
351
|
-
*/
|
|
352
|
-
this.showDefaultTimeLabel = true;
|
|
353
|
-
/**
|
|
354
|
-
* If `cover`, the `ion-datetime` will expand to cover the full width of its container.
|
|
355
|
-
* If `fixed`, the `ion-datetime` will have a fixed width.
|
|
356
|
-
*/
|
|
357
|
-
this.size = 'fixed';
|
|
358
|
-
/**
|
|
359
|
-
* If `true`, a wheel picker will be rendered instead of a calendar grid
|
|
360
|
-
* where possible. If `false`, a calendar grid will be rendered instead of
|
|
361
|
-
* a wheel picker where possible.
|
|
362
|
-
*
|
|
363
|
-
* A wheel picker can be rendered instead of a grid when `presentation` is
|
|
364
|
-
* one of the following values: `"date"`, `"date-time"`, or `"time-date"`.
|
|
365
|
-
*
|
|
366
|
-
* A wheel picker will always be rendered regardless of
|
|
367
|
-
* the `preferWheel` value when `presentation` is one of the following values:
|
|
368
|
-
* `"time"`, `"month"`, `"month-year"`, or `"year"`.
|
|
369
|
-
*/
|
|
370
|
-
this.preferWheel = false;
|
|
371
257
|
this.warnIfIncorrectValueUsage = () => {
|
|
372
258
|
const { multiple, value } = this;
|
|
373
259
|
if (!multiple && Array.isArray(value)) {
|
|
@@ -379,7 +265,7 @@ const Datetime = class {
|
|
|
379
265
|
* Default toString() behavior: a,b
|
|
380
266
|
* Custom behavior: ['a', 'b']
|
|
381
267
|
*/
|
|
382
|
-
|
|
268
|
+
ionicGlobal.printIonWarning(`ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".
|
|
383
269
|
|
|
384
270
|
Value Passed: [${value.map((v) => `'${v}'`).join(', ')}]
|
|
385
271
|
`, this.el);
|
|
@@ -628,7 +514,7 @@ const Datetime = class {
|
|
|
628
514
|
* scrollIntoView() will scroll entire page
|
|
629
515
|
* if element is not in viewport. Use scrollLeft instead.
|
|
630
516
|
*/
|
|
631
|
-
index
|
|
517
|
+
index.writeTask(() => {
|
|
632
518
|
calendarBodyRef.scrollLeft = startMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
633
519
|
const getChangedMonth = (parts) => {
|
|
634
520
|
const box = calendarBodyRef.getBoundingClientRect();
|
|
@@ -720,7 +606,7 @@ const Datetime = class {
|
|
|
720
606
|
* but older/slower device may have a flicker
|
|
721
607
|
* if we did not do this.
|
|
722
608
|
*/
|
|
723
|
-
index
|
|
609
|
+
index.writeTask(() => {
|
|
724
610
|
this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month, day: day, year }));
|
|
725
611
|
calendarBodyRef.scrollLeft = workingMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
726
612
|
calendarBodyRef.style.removeProperty('overflow');
|
|
@@ -960,6 +846,48 @@ const Datetime = class {
|
|
|
960
846
|
this.toggleMonthAndYearView = () => {
|
|
961
847
|
this.showMonthAndYear = !this.showMonthAndYear;
|
|
962
848
|
};
|
|
849
|
+
this.showMonthAndYear = false;
|
|
850
|
+
this.activeParts = [];
|
|
851
|
+
this.workingParts = {
|
|
852
|
+
month: 5,
|
|
853
|
+
day: 28,
|
|
854
|
+
year: 2021,
|
|
855
|
+
hour: 13,
|
|
856
|
+
minute: 52,
|
|
857
|
+
ampm: 'pm',
|
|
858
|
+
};
|
|
859
|
+
this.isTimePopoverOpen = false;
|
|
860
|
+
this.forceRenderDate = undefined;
|
|
861
|
+
this.color = 'primary';
|
|
862
|
+
this.name = this.inputId;
|
|
863
|
+
this.disabled = false;
|
|
864
|
+
this.formatOptions = undefined;
|
|
865
|
+
this.readonly = false;
|
|
866
|
+
this.isDateEnabled = undefined;
|
|
867
|
+
this.min = undefined;
|
|
868
|
+
this.max = undefined;
|
|
869
|
+
this.presentation = 'date-time';
|
|
870
|
+
this.cancelText = 'Cancel';
|
|
871
|
+
this.doneText = 'Done';
|
|
872
|
+
this.clearText = 'Clear';
|
|
873
|
+
this.yearValues = undefined;
|
|
874
|
+
this.monthValues = undefined;
|
|
875
|
+
this.dayValues = undefined;
|
|
876
|
+
this.hourValues = undefined;
|
|
877
|
+
this.minuteValues = undefined;
|
|
878
|
+
this.locale = 'default';
|
|
879
|
+
this.firstDayOfWeek = 0;
|
|
880
|
+
this.titleSelectedDatesFormatter = undefined;
|
|
881
|
+
this.multiple = false;
|
|
882
|
+
this.highlightedDates = undefined;
|
|
883
|
+
this.value = undefined;
|
|
884
|
+
this.showDefaultTitle = false;
|
|
885
|
+
this.showDefaultButtons = false;
|
|
886
|
+
this.showClearButton = false;
|
|
887
|
+
this.showDefaultTimeLabel = true;
|
|
888
|
+
this.hourCycle = undefined;
|
|
889
|
+
this.size = 'fixed';
|
|
890
|
+
this.preferWheel = false;
|
|
963
891
|
}
|
|
964
892
|
formatOptionsChanged() {
|
|
965
893
|
const { el, formatOptions, presentation } = this;
|
|
@@ -1103,7 +1031,7 @@ const Datetime = class {
|
|
|
1103
1031
|
* is that the content will pop into view a frame after. Maybe there
|
|
1104
1032
|
* is a better way to handle this?
|
|
1105
1033
|
*/
|
|
1106
|
-
index
|
|
1034
|
+
index.writeTask(() => {
|
|
1107
1035
|
this.el.classList.add('datetime-ready');
|
|
1108
1036
|
});
|
|
1109
1037
|
};
|
|
@@ -1136,7 +1064,7 @@ const Datetime = class {
|
|
|
1136
1064
|
* As a result, the wrong month will be shown.
|
|
1137
1065
|
*/
|
|
1138
1066
|
this.showMonthAndYear = false;
|
|
1139
|
-
index
|
|
1067
|
+
index.writeTask(() => {
|
|
1140
1068
|
this.el.classList.remove('datetime-ready');
|
|
1141
1069
|
});
|
|
1142
1070
|
};
|
|
@@ -1218,18 +1146,18 @@ const Datetime = class {
|
|
|
1218
1146
|
const { el, formatOptions, highlightedDates, multiple, presentation, preferWheel } = this;
|
|
1219
1147
|
if (multiple) {
|
|
1220
1148
|
if (presentation !== 'date') {
|
|
1221
|
-
|
|
1149
|
+
ionicGlobal.printIonWarning('Multiple date selection is only supported for presentation="date".', el);
|
|
1222
1150
|
}
|
|
1223
1151
|
if (preferWheel) {
|
|
1224
|
-
|
|
1152
|
+
ionicGlobal.printIonWarning('Multiple date selection is not supported with preferWheel="true".', el);
|
|
1225
1153
|
}
|
|
1226
1154
|
}
|
|
1227
1155
|
if (highlightedDates !== undefined) {
|
|
1228
1156
|
if (presentation !== 'date' && presentation !== 'date-time' && presentation !== 'time-date') {
|
|
1229
|
-
|
|
1157
|
+
ionicGlobal.printIonWarning('The highlightedDates property is only supported with the date, date-time, and time-date presentations.', el);
|
|
1230
1158
|
}
|
|
1231
1159
|
if (preferWheel) {
|
|
1232
|
-
|
|
1160
|
+
ionicGlobal.printIonWarning('The highlightedDates property is not supported with preferWheel="true".', el);
|
|
1233
1161
|
}
|
|
1234
1162
|
}
|
|
1235
1163
|
if (formatOptions) {
|
|
@@ -1270,6 +1198,7 @@ const Datetime = class {
|
|
|
1270
1198
|
* are rendered independently of presentation.
|
|
1271
1199
|
*/
|
|
1272
1200
|
renderFooter() {
|
|
1201
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
1273
1202
|
const { disabled, readonly, showDefaultButtons, showClearButton } = this;
|
|
1274
1203
|
/**
|
|
1275
1204
|
* The cancel, clear, and confirm buttons
|
|
@@ -1277,6 +1206,7 @@ const Datetime = class {
|
|
|
1277
1206
|
* is disabled or readonly.
|
|
1278
1207
|
*/
|
|
1279
1208
|
const isButtonDisabled = disabled || readonly;
|
|
1209
|
+
const confirmFill = theme === 'ionic' ? 'solid' : undefined;
|
|
1280
1210
|
const hasSlottedButtons = this.el.querySelector('[slot="buttons"]') !== null;
|
|
1281
1211
|
if (!hasSlottedButtons && !showDefaultButtons && !showClearButton) {
|
|
1282
1212
|
return;
|
|
@@ -1292,10 +1222,10 @@ const Datetime = class {
|
|
|
1292
1222
|
* OK - Dismisses the datetime and
|
|
1293
1223
|
* updates the `value` prop.
|
|
1294
1224
|
*/
|
|
1295
|
-
return (index
|
|
1225
|
+
return (index.h("div", { class: "datetime-footer" }, index.h("div", { class: "datetime-buttons" }, index.h("div", { class: {
|
|
1296
1226
|
['datetime-action-buttons']: true,
|
|
1297
1227
|
['has-clear-button']: this.showClearButton,
|
|
1298
|
-
} }, index
|
|
1228
|
+
} }, index.h("slot", { name: "buttons" }, index.h("ion-buttons", null, showDefaultButtons && (index.h("ion-button", { id: "cancel-button", color: this.color, onClick: () => this.cancel(true), disabled: isButtonDisabled }, this.cancelText)), index.h("div", { class: "datetime-action-buttons-container" }, showClearButton && (index.h("ion-button", { id: "clear-button", color: this.color, onClick: () => clearButtonClick(), disabled: isButtonDisabled }, this.clearText)), showDefaultButtons && (index.h("ion-button", { id: "confirm-button", color: this.color, onClick: () => this.confirm(true), disabled: isButtonDisabled, fill: confirmFill }, this.doneText)))))))));
|
|
1299
1229
|
}
|
|
1300
1230
|
/**
|
|
1301
1231
|
* Wheel picker render methods
|
|
@@ -1313,7 +1243,7 @@ const Datetime = class {
|
|
|
1313
1243
|
const renderArray = forcePresentation === 'time-date'
|
|
1314
1244
|
? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
|
|
1315
1245
|
: [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
|
|
1316
|
-
return index
|
|
1246
|
+
return index.h("ion-picker", null, renderArray);
|
|
1317
1247
|
}
|
|
1318
1248
|
renderDatePickerColumns(forcePresentation) {
|
|
1319
1249
|
return forcePresentation === 'date-time' || forcePresentation === 'time-date'
|
|
@@ -1348,8 +1278,8 @@ const Datetime = class {
|
|
|
1348
1278
|
let items = result.items;
|
|
1349
1279
|
const parts = result.parts;
|
|
1350
1280
|
if (isDateEnabled) {
|
|
1351
|
-
items = items.map((itemObject, index
|
|
1352
|
-
const referenceParts = parts[index
|
|
1281
|
+
items = items.map((itemObject, index) => {
|
|
1282
|
+
const referenceParts = parts[index];
|
|
1353
1283
|
let disabled;
|
|
1354
1284
|
try {
|
|
1355
1285
|
/**
|
|
@@ -1360,7 +1290,7 @@ const Datetime = class {
|
|
|
1360
1290
|
disabled = !isDateEnabled(data.convertDataToISO(referenceParts));
|
|
1361
1291
|
}
|
|
1362
1292
|
catch (e) {
|
|
1363
|
-
|
|
1293
|
+
ionicGlobal.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1364
1294
|
}
|
|
1365
1295
|
return Object.assign(Object.assign({}, itemObject), { disabled });
|
|
1366
1296
|
});
|
|
@@ -1372,13 +1302,13 @@ const Datetime = class {
|
|
|
1372
1302
|
const todayString = workingParts.day !== null
|
|
1373
1303
|
? `${workingParts.year}-${workingParts.month}-${workingParts.day}`
|
|
1374
1304
|
: `${defaultParts.year}-${defaultParts.month}-${defaultParts.day}`;
|
|
1375
|
-
return (index
|
|
1305
|
+
return (index.h("ion-picker-column", { "aria-label": "Select a date", class: "date-column", color: this.color, disabled: disabled, value: todayString, onIonChange: (ev) => {
|
|
1376
1306
|
const { value } = ev.detail;
|
|
1377
1307
|
const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`);
|
|
1378
1308
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
|
|
1379
1309
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), findPart));
|
|
1380
1310
|
ev.stopPropagation();
|
|
1381
|
-
} }, items.map((item) => (index
|
|
1311
|
+
} }, items.map((item) => (index.h("ion-picker-column-option", { part: item.value === todayString ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: item.value, disabled: item.disabled, value: item.value }, item.text)))));
|
|
1382
1312
|
}
|
|
1383
1313
|
renderIndividualDatePickerColumns(forcePresentation) {
|
|
1384
1314
|
const { workingParts, isDateEnabled } = this;
|
|
@@ -1409,7 +1339,7 @@ const Datetime = class {
|
|
|
1409
1339
|
disabled = !isDateEnabled(data.convertDataToISO(referenceParts));
|
|
1410
1340
|
}
|
|
1411
1341
|
catch (e) {
|
|
1412
|
-
|
|
1342
|
+
ionicGlobal.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1413
1343
|
}
|
|
1414
1344
|
return Object.assign(Object.assign({}, dayObject), { disabled });
|
|
1415
1345
|
});
|
|
@@ -1447,11 +1377,11 @@ const Datetime = class {
|
|
|
1447
1377
|
const { disabled, workingParts } = this;
|
|
1448
1378
|
const activePart = this.getActivePartsWithFallback();
|
|
1449
1379
|
const pickerColumnValue = (_a = (workingParts.day !== null ? workingParts.day : this.defaultParts.day)) !== null && _a !== void 0 ? _a : undefined;
|
|
1450
|
-
return (index
|
|
1380
|
+
return (index.h("ion-picker-column", { "aria-label": "Select a day", class: "day-column", color: this.color, disabled: disabled, value: pickerColumnValue, onIonChange: (ev) => {
|
|
1451
1381
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
|
|
1452
1382
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { day: ev.detail.value }));
|
|
1453
1383
|
ev.stopPropagation();
|
|
1454
|
-
} }, days.map((day) => (index
|
|
1384
|
+
} }, days.map((day) => (index.h("ion-picker-column-option", { part: day.value === pickerColumnValue ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: day.value, disabled: day.disabled, value: day.value }, day.text)))));
|
|
1455
1385
|
}
|
|
1456
1386
|
renderMonthPickerColumn(months) {
|
|
1457
1387
|
if (months.length === 0) {
|
|
@@ -1459,11 +1389,11 @@ const Datetime = class {
|
|
|
1459
1389
|
}
|
|
1460
1390
|
const { disabled, workingParts } = this;
|
|
1461
1391
|
const activePart = this.getActivePartsWithFallback();
|
|
1462
|
-
return (index
|
|
1392
|
+
return (index.h("ion-picker-column", { "aria-label": "Select a month", class: "month-column", color: this.color, disabled: disabled, value: workingParts.month, onIonChange: (ev) => {
|
|
1463
1393
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { month: ev.detail.value }));
|
|
1464
1394
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { month: ev.detail.value }));
|
|
1465
1395
|
ev.stopPropagation();
|
|
1466
|
-
} }, months.map((month) => (index
|
|
1396
|
+
} }, months.map((month) => (index.h("ion-picker-column-option", { part: month.value === workingParts.month ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: month.value, disabled: month.disabled, value: month.value }, month.text)))));
|
|
1467
1397
|
}
|
|
1468
1398
|
renderYearPickerColumn(years) {
|
|
1469
1399
|
if (years.length === 0) {
|
|
@@ -1471,11 +1401,11 @@ const Datetime = class {
|
|
|
1471
1401
|
}
|
|
1472
1402
|
const { disabled, workingParts } = this;
|
|
1473
1403
|
const activePart = this.getActivePartsWithFallback();
|
|
1474
|
-
return (index
|
|
1404
|
+
return (index.h("ion-picker-column", { "aria-label": "Select a year", class: "year-column", color: this.color, disabled: disabled, value: workingParts.year, onIonChange: (ev) => {
|
|
1475
1405
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { year: ev.detail.value }));
|
|
1476
1406
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { year: ev.detail.value }));
|
|
1477
1407
|
ev.stopPropagation();
|
|
1478
|
-
} }, years.map((year) => (index
|
|
1408
|
+
} }, years.map((year) => (index.h("ion-picker-column-option", { part: year.value === workingParts.year ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: year.value, disabled: year.disabled, value: year.value }, year.text)))));
|
|
1479
1409
|
}
|
|
1480
1410
|
renderTimePickerColumns(forcePresentation) {
|
|
1481
1411
|
if (['date', 'month', 'month-year', 'year'].includes(forcePresentation)) {
|
|
@@ -1504,22 +1434,22 @@ const Datetime = class {
|
|
|
1504
1434
|
if (hoursData.length === 0)
|
|
1505
1435
|
return [];
|
|
1506
1436
|
const activePart = this.getActivePartsWithFallback();
|
|
1507
|
-
return (index
|
|
1437
|
+
return (index.h("ion-picker-column", { "aria-label": "Select an hour", color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
|
|
1508
1438
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
|
|
1509
1439
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { hour: ev.detail.value }));
|
|
1510
1440
|
ev.stopPropagation();
|
|
1511
|
-
} }, hoursData.map((hour) => (index
|
|
1441
|
+
} }, hoursData.map((hour) => (index.h("ion-picker-column-option", { part: hour.value === activePart.hour ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: hour.value, disabled: hour.disabled, value: hour.value }, hour.text)))));
|
|
1512
1442
|
}
|
|
1513
1443
|
renderMinutePickerColumn(minutesData) {
|
|
1514
1444
|
const { disabled, workingParts } = this;
|
|
1515
1445
|
if (minutesData.length === 0)
|
|
1516
1446
|
return [];
|
|
1517
1447
|
const activePart = this.getActivePartsWithFallback();
|
|
1518
|
-
return (index
|
|
1448
|
+
return (index.h("ion-picker-column", { "aria-label": "Select a minute", color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
|
|
1519
1449
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
|
|
1520
1450
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { minute: ev.detail.value }));
|
|
1521
1451
|
ev.stopPropagation();
|
|
1522
|
-
} }, minutesData.map((minute) => (index
|
|
1452
|
+
} }, minutesData.map((minute) => (index.h("ion-picker-column-option", { part: minute.value === activePart.minute ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: minute.value, disabled: minute.disabled, value: minute.value }, minute.text)))));
|
|
1523
1453
|
}
|
|
1524
1454
|
renderDayPeriodPickerColumn(dayPeriodData) {
|
|
1525
1455
|
const { disabled, workingParts } = this;
|
|
@@ -1528,38 +1458,36 @@ const Datetime = class {
|
|
|
1528
1458
|
}
|
|
1529
1459
|
const activePart = this.getActivePartsWithFallback();
|
|
1530
1460
|
const isDayPeriodRTL = data.isLocaleDayPeriodRTL(this.locale);
|
|
1531
|
-
return (index
|
|
1461
|
+
return (index.h("ion-picker-column", { "aria-label": "Select a day period", style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
|
|
1532
1462
|
const hour = data.calculateHourFromAMPM(workingParts, ev.detail.value);
|
|
1533
1463
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
|
|
1534
1464
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { ampm: ev.detail.value, hour }));
|
|
1535
1465
|
ev.stopPropagation();
|
|
1536
|
-
} }, dayPeriodData.map((dayPeriod) => (index
|
|
1466
|
+
} }, dayPeriodData.map((dayPeriod) => (index.h("ion-picker-column-option", { part: dayPeriod.value === activePart.ampm ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: dayPeriod.value, disabled: dayPeriod.disabled, value: dayPeriod.value }, dayPeriod.text)))));
|
|
1537
1467
|
}
|
|
1538
1468
|
renderWheelView(forcePresentation) {
|
|
1539
1469
|
const { locale } = this;
|
|
1540
1470
|
const showMonthFirst = data.isMonthFirstLocale(locale);
|
|
1541
1471
|
const columnOrder = showMonthFirst ? 'month-first' : 'year-first';
|
|
1542
|
-
return (index
|
|
1472
|
+
return (index.h("div", { class: {
|
|
1543
1473
|
[`wheel-order-${columnOrder}`]: true,
|
|
1544
1474
|
} }, this.renderWheelPicker(forcePresentation)));
|
|
1545
1475
|
}
|
|
1546
1476
|
/**
|
|
1547
1477
|
* Grid Render Methods
|
|
1548
1478
|
*/
|
|
1549
|
-
renderCalendarHeader(
|
|
1550
|
-
const { disabled } = this;
|
|
1551
|
-
const expandedIcon = mode === 'ios' ? index$2.chevronDown : index$2.caretUpSharp;
|
|
1552
|
-
const collapsedIcon = mode === 'ios' ? index$2.chevronForward : index$2.caretDownSharp;
|
|
1479
|
+
renderCalendarHeader(theme) {
|
|
1480
|
+
const { disabled, datetimeNextIcon, datetimePreviousIcon, datetimeCollapsedIcon, datetimeExpandedIcon } = this;
|
|
1553
1481
|
const prevMonthDisabled = disabled || isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
|
|
1554
1482
|
const nextMonthDisabled = disabled || isNextMonthDisabled(this.workingParts, this.maxParts);
|
|
1555
1483
|
// don't use the inheritAttributes util because it removes dir from the host, and we still need that
|
|
1556
1484
|
const hostDir = this.el.getAttribute('dir') || undefined;
|
|
1557
|
-
return (index
|
|
1485
|
+
return (index.h("div", { class: "calendar-header" }, index.h("div", { class: "calendar-action-buttons" }, index.h("div", { class: "calendar-month-year" }, index.h("button", { class: {
|
|
1558
1486
|
'calendar-month-year-toggle': true,
|
|
1559
1487
|
'ion-activatable': true,
|
|
1560
1488
|
'ion-focusable': true,
|
|
1561
|
-
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, index
|
|
1562
|
-
return index
|
|
1489
|
+
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, index.h("span", { id: "toggle-wrapper" }, data.getMonthAndYear(this.locale, this.workingParts), theme !== 'ionic' && (index.h("ion-icon", { "aria-hidden": "true", icon: this.showMonthAndYear ? datetimeExpandedIcon : datetimeCollapsedIcon, lazy: false, flipRtl: true }))), theme === 'md' && index.h("ion-ripple-effect", null))), index.h("div", { class: "calendar-next-prev" }, index.h("ion-buttons", null, index.h("ion-button", { "aria-label": "Previous month", disabled: prevMonthDisabled, onClick: () => this.prevMonth() }, index.h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: datetimePreviousIcon, lazy: false, flipRtl: true })), index.h("ion-button", { "aria-label": "Next month", disabled: nextMonthDisabled, onClick: () => this.nextMonth() }, index.h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: datetimeNextIcon, lazy: false, flipRtl: true }))))), index.h("div", { class: "calendar-days-of-week", "aria-hidden": "true" }, data.getDaysOfWeek(this.locale, theme, this.firstDayOfWeek % 7).map((d) => {
|
|
1490
|
+
return index.h("div", { class: "day-of-week" }, d);
|
|
1563
1491
|
}))));
|
|
1564
1492
|
}
|
|
1565
1493
|
renderMonth(month, year) {
|
|
@@ -1585,11 +1513,11 @@ const Datetime = class {
|
|
|
1585
1513
|
// can free-scroll the calendar.
|
|
1586
1514
|
const isWorkingMonth = this.workingParts.month === month && this.workingParts.year === year;
|
|
1587
1515
|
const activePart = this.getActivePartsWithFallback();
|
|
1588
|
-
return (index
|
|
1516
|
+
return (index.h("div", { "aria-hidden": !isWorkingMonth ? 'true' : null, class: {
|
|
1589
1517
|
'calendar-month': true,
|
|
1590
1518
|
// Prevents scroll snap swipe gestures for months outside of the min/max bounds
|
|
1591
1519
|
'calendar-month-disabled': !isWorkingMonth && swipeDisabled,
|
|
1592
|
-
} }, index
|
|
1520
|
+
} }, index.h("div", { class: "calendar-month-grid" }, data.getDaysOfMonth(month, year, this.firstDayOfWeek % 7).map((dateObject, index$1) => {
|
|
1593
1521
|
const { day, dayOfWeek } = dateObject;
|
|
1594
1522
|
const { el, highlightedDates, isDateEnabled, multiple } = this;
|
|
1595
1523
|
const referenceParts = { month, day, year };
|
|
@@ -1607,7 +1535,7 @@ const Datetime = class {
|
|
|
1607
1535
|
isCalDayDisabled = !isDateEnabled(dateIsoString);
|
|
1608
1536
|
}
|
|
1609
1537
|
catch (e) {
|
|
1610
|
-
|
|
1538
|
+
ionicGlobal.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', el, e);
|
|
1611
1539
|
}
|
|
1612
1540
|
}
|
|
1613
1541
|
/**
|
|
@@ -1631,7 +1559,7 @@ const Datetime = class {
|
|
|
1631
1559
|
if (!isCalendarPadding) {
|
|
1632
1560
|
dateParts = `calendar-day${isActive ? ' active' : ''}${isToday ? ' today' : ''}${isCalDayDisabled ? ' disabled' : ''}`;
|
|
1633
1561
|
}
|
|
1634
|
-
return (index
|
|
1562
|
+
return (index.h("div", { class: "calendar-day-wrapper" }, index.h("button", {
|
|
1635
1563
|
// We need to use !important for the inline styles here because
|
|
1636
1564
|
// otherwise the CSS shadow parts will override these styles.
|
|
1637
1565
|
// See https://github.com/WICG/webcomponents/issues/847
|
|
@@ -1643,7 +1571,7 @@ const Datetime = class {
|
|
|
1643
1571
|
el.style.setProperty('color', `${dateStyle ? dateStyle.textColor : ''}`, 'important');
|
|
1644
1572
|
el.style.setProperty('background-color', `${dateStyle ? dateStyle.backgroundColor : ''}`, 'important');
|
|
1645
1573
|
}
|
|
1646
|
-
}, tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$
|
|
1574
|
+
}, tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$1, "data-day-of-week": dayOfWeek, disabled: isButtonDisabled, class: {
|
|
1647
1575
|
'calendar-day-padding': isCalendarPadding,
|
|
1648
1576
|
'calendar-day': true,
|
|
1649
1577
|
'calendar-day-active': isActive,
|
|
@@ -1674,27 +1602,27 @@ const Datetime = class {
|
|
|
1674
1602
|
}))));
|
|
1675
1603
|
}
|
|
1676
1604
|
renderCalendarBody() {
|
|
1677
|
-
return (index
|
|
1605
|
+
return (index.h("div", { class: "calendar-body ion-focusable", ref: (el) => (this.calendarBodyRef = el), tabindex: "0" }, data.generateMonths(this.workingParts, this.forceRenderDate).map(({ month, year }) => {
|
|
1678
1606
|
return this.renderMonth(month, year);
|
|
1679
1607
|
})));
|
|
1680
1608
|
}
|
|
1681
|
-
renderCalendar(
|
|
1682
|
-
return (index
|
|
1609
|
+
renderCalendar(theme) {
|
|
1610
|
+
return (index.h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(theme), this.renderCalendarBody()));
|
|
1683
1611
|
}
|
|
1684
1612
|
renderTimeLabel() {
|
|
1685
1613
|
const hasSlottedTimeLabel = this.el.querySelector('[slot="time-label"]') !== null;
|
|
1686
1614
|
if (!hasSlottedTimeLabel && !this.showDefaultTimeLabel) {
|
|
1687
1615
|
return;
|
|
1688
1616
|
}
|
|
1689
|
-
return index
|
|
1617
|
+
return index.h("slot", { name: "time-label" }, "Time");
|
|
1690
1618
|
}
|
|
1691
1619
|
renderTimeOverlay() {
|
|
1692
1620
|
const { disabled, hourCycle, isTimePopoverOpen, locale, formatOptions } = this;
|
|
1693
1621
|
const computedHourCycle = data.getHourCycle(locale, hourCycle);
|
|
1694
1622
|
const activePart = this.getActivePartsWithFallback();
|
|
1695
1623
|
return [
|
|
1696
|
-
index
|
|
1697
|
-
index
|
|
1624
|
+
index.h("div", { class: "time-header" }, this.renderTimeLabel()),
|
|
1625
|
+
index.h("button", { class: {
|
|
1698
1626
|
'time-body': true,
|
|
1699
1627
|
'time-body-active': isTimePopoverOpen,
|
|
1700
1628
|
}, part: `time-button${isTimePopoverOpen ? ' active' : ''}`, "aria-expanded": "false", "aria-haspopup": "true", disabled: disabled, onClick: async (ev) => {
|
|
@@ -1710,7 +1638,7 @@ const Datetime = class {
|
|
|
1710
1638
|
this.isTimePopoverOpen = false;
|
|
1711
1639
|
}
|
|
1712
1640
|
} }, data.getLocalizedTime(locale, activePart, computedHourCycle, formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time)),
|
|
1713
|
-
index
|
|
1641
|
+
index.h("ion-popover", { alignment: "center", translucent: true, overlayIndex: 1, arrow: false, onWillPresent: (ev) => {
|
|
1714
1642
|
/**
|
|
1715
1643
|
* Intersection Observers do not consistently fire between Blink and Webkit
|
|
1716
1644
|
* when toggling the visibility of the popover and trying to scroll the picker
|
|
@@ -1743,7 +1671,7 @@ const Datetime = class {
|
|
|
1743
1671
|
headerText = titleSelectedDatesFormatter(data.convertDataToISO(activeParts));
|
|
1744
1672
|
}
|
|
1745
1673
|
catch (e) {
|
|
1746
|
-
|
|
1674
|
+
ionicGlobal.printIonError('Exception in provided `titleSelectedDatesFormatter`: ', e);
|
|
1747
1675
|
}
|
|
1748
1676
|
}
|
|
1749
1677
|
}
|
|
@@ -1758,7 +1686,7 @@ const Datetime = class {
|
|
|
1758
1686
|
if (!hasSlottedTitle && !this.showDefaultTitle) {
|
|
1759
1687
|
return;
|
|
1760
1688
|
}
|
|
1761
|
-
return (index
|
|
1689
|
+
return (index.h("div", { class: "datetime-header" }, index.h("div", { class: "datetime-title" }, index.h("slot", { name: "title" }, "Select Date")), showExpandedHeader && index.h("div", { class: "datetime-selected-date" }, this.getHeaderSelectedDateText())));
|
|
1762
1690
|
}
|
|
1763
1691
|
/**
|
|
1764
1692
|
* Render time picker inside of datetime.
|
|
@@ -1770,7 +1698,7 @@ const Datetime = class {
|
|
|
1770
1698
|
renderTime() {
|
|
1771
1699
|
const { presentation } = this;
|
|
1772
1700
|
const timeOnlyPresentation = presentation === 'time';
|
|
1773
|
-
return (index
|
|
1701
|
+
return (index.h("div", { class: "datetime-time" }, timeOnlyPresentation ? this.renderWheelPicker() : this.renderTimeOverlay()));
|
|
1774
1702
|
}
|
|
1775
1703
|
/**
|
|
1776
1704
|
* Renders the month/year picker that is
|
|
@@ -1781,13 +1709,13 @@ const Datetime = class {
|
|
|
1781
1709
|
* toggle in the calendar header.
|
|
1782
1710
|
*/
|
|
1783
1711
|
renderCalendarViewMonthYearPicker() {
|
|
1784
|
-
return index
|
|
1712
|
+
return index.h("div", { class: "datetime-year" }, this.renderWheelView('month-year'));
|
|
1785
1713
|
}
|
|
1786
1714
|
/**
|
|
1787
1715
|
* Render entry point
|
|
1788
1716
|
* All presentation types are rendered from here.
|
|
1789
1717
|
*/
|
|
1790
|
-
renderDatetime(
|
|
1718
|
+
renderDatetime(theme) {
|
|
1791
1719
|
const { presentation, preferWheel } = this;
|
|
1792
1720
|
/**
|
|
1793
1721
|
* Certain presentation types have separate grid and wheel displays.
|
|
@@ -1801,7 +1729,7 @@ const Datetime = class {
|
|
|
1801
1729
|
case 'date-time':
|
|
1802
1730
|
return [
|
|
1803
1731
|
this.renderHeader(),
|
|
1804
|
-
this.renderCalendar(
|
|
1732
|
+
this.renderCalendar(theme),
|
|
1805
1733
|
this.renderCalendarViewMonthYearPicker(),
|
|
1806
1734
|
this.renderTime(),
|
|
1807
1735
|
this.renderFooter(),
|
|
@@ -1810,7 +1738,7 @@ const Datetime = class {
|
|
|
1810
1738
|
return [
|
|
1811
1739
|
this.renderHeader(),
|
|
1812
1740
|
this.renderTime(),
|
|
1813
|
-
this.renderCalendar(
|
|
1741
|
+
this.renderCalendar(theme),
|
|
1814
1742
|
this.renderCalendarViewMonthYearPicker(),
|
|
1815
1743
|
this.renderFooter(),
|
|
1816
1744
|
];
|
|
@@ -1823,23 +1751,95 @@ const Datetime = class {
|
|
|
1823
1751
|
default:
|
|
1824
1752
|
return [
|
|
1825
1753
|
this.renderHeader(),
|
|
1826
|
-
this.renderCalendar(
|
|
1754
|
+
this.renderCalendar(theme),
|
|
1827
1755
|
this.renderCalendarViewMonthYearPicker(),
|
|
1828
1756
|
this.renderFooter(),
|
|
1829
1757
|
];
|
|
1830
1758
|
}
|
|
1831
1759
|
}
|
|
1760
|
+
/**
|
|
1761
|
+
* Get the icon to use for the next icon.
|
|
1762
|
+
* Otherwise, use the icon set in the config.
|
|
1763
|
+
* If no icon is set in the config, use the default icon.
|
|
1764
|
+
*/
|
|
1765
|
+
get datetimeNextIcon() {
|
|
1766
|
+
// Determine the theme and map to default icons
|
|
1767
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
1768
|
+
const defaultIcons = {
|
|
1769
|
+
ios: index$1.chevronForward,
|
|
1770
|
+
ionic: caretRight.caretRightSvg,
|
|
1771
|
+
md: index$1.chevronForward,
|
|
1772
|
+
};
|
|
1773
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1774
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1775
|
+
// Return the configured datetime next icon or the default icon
|
|
1776
|
+
return config.config.get('datetimeNextIcon', defaultIcon);
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Get the icon to use for the previous icon.
|
|
1780
|
+
* Otherwise, use the icon set in the config.
|
|
1781
|
+
* If no icon is set in the config, use the default icon.
|
|
1782
|
+
*/
|
|
1783
|
+
get datetimePreviousIcon() {
|
|
1784
|
+
// Determine the theme and map to default icons
|
|
1785
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
1786
|
+
const defaultIcons = {
|
|
1787
|
+
ios: index$1.chevronBack,
|
|
1788
|
+
ionic: caretLeft.caretLeftSvg,
|
|
1789
|
+
md: index$1.chevronBack,
|
|
1790
|
+
};
|
|
1791
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1792
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1793
|
+
// Return the configured datetime previous icon or the default icon
|
|
1794
|
+
return config.config.get('datetimePreviousIcon', defaultIcon);
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Get the icon to use for the show month and year icon.
|
|
1798
|
+
* Otherwise, use the icon set in the config.
|
|
1799
|
+
* If no icon is set in the config, use the default icon.
|
|
1800
|
+
*/
|
|
1801
|
+
get datetimeCollapsedIcon() {
|
|
1802
|
+
// Determine the theme and map to default icons
|
|
1803
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
1804
|
+
const defaultIcons = {
|
|
1805
|
+
ios: index$1.chevronForward,
|
|
1806
|
+
ionic: undefined,
|
|
1807
|
+
md: index$1.caretDownSharp,
|
|
1808
|
+
};
|
|
1809
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1810
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1811
|
+
// Return the configured datetime show month and year icon or the default icon
|
|
1812
|
+
return config.config.get('datetimeCollapsedIcon', defaultIcon);
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Get the icon to use for the hide month and year icon.
|
|
1816
|
+
* Otherwise, use the icon set in the config.
|
|
1817
|
+
* If no icon is set in the config, use the default icon.
|
|
1818
|
+
*/
|
|
1819
|
+
get datetimeExpandedIcon() {
|
|
1820
|
+
// Determine the theme and map to default icons
|
|
1821
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
1822
|
+
const defaultIcons = {
|
|
1823
|
+
ios: index$1.chevronDown,
|
|
1824
|
+
ionic: undefined,
|
|
1825
|
+
md: index$1.caretUpSharp,
|
|
1826
|
+
};
|
|
1827
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
1828
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
1829
|
+
// Return the configured datetime hide month and year icon or the default icon
|
|
1830
|
+
return config.config.get('datetimeExpandedIcon', defaultIcon);
|
|
1831
|
+
}
|
|
1832
1832
|
render() {
|
|
1833
1833
|
const { name, value, disabled, el, color, readonly, showMonthAndYear, preferWheel, presentation, size, isGridStyle, } = this;
|
|
1834
|
-
const
|
|
1834
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
1835
1835
|
const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year';
|
|
1836
1836
|
const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation;
|
|
1837
1837
|
const monthYearPickerOpen = showMonthAndYear && !isMonthAndYearPresentation;
|
|
1838
1838
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1839
1839
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1840
1840
|
helpers.renderHiddenInput(true, el, name, data.formatValue(value), disabled);
|
|
1841
|
-
return (index
|
|
1842
|
-
[
|
|
1841
|
+
return (index.h(index.Host, { key: 'ab0e90e68515ba32cafb69b0ded436c123b97b74', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, theme.createColorClasses(color, {
|
|
1842
|
+
[theme$1]: true,
|
|
1843
1843
|
['datetime-readonly']: readonly,
|
|
1844
1844
|
['datetime-disabled']: disabled,
|
|
1845
1845
|
'show-month-and-year': shouldShowMonthAndYear,
|
|
@@ -1848,9 +1848,9 @@ const Datetime = class {
|
|
|
1848
1848
|
[`datetime-size-${size}`]: true,
|
|
1849
1849
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1850
1850
|
[`datetime-grid`]: isGridStyle,
|
|
1851
|
-
})) }, index
|
|
1851
|
+
})) }, index.h("div", { key: '16ffe958948a7d599dcd1c5c970d98cc77d6c8da', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(theme$1)));
|
|
1852
1852
|
}
|
|
1853
|
-
get el() { return index
|
|
1853
|
+
get el() { return index.getElement(this); }
|
|
1854
1854
|
static get watchers() { return {
|
|
1855
1855
|
"formatOptions": ["formatOptionsChanged"],
|
|
1856
1856
|
"disabled": ["disabledChanged"],
|
|
@@ -1871,6 +1871,7 @@ const CONFIRM_ROLE = 'datetime-confirm';
|
|
|
1871
1871
|
const WHEEL_ITEM_PART = 'wheel-item';
|
|
1872
1872
|
const WHEEL_ITEM_ACTIVE_PART = `active`;
|
|
1873
1873
|
Datetime.style = {
|
|
1874
|
+
ionic: IonDatetimeIonicStyle0,
|
|
1874
1875
|
ios: IonDatetimeIosStyle0,
|
|
1875
1876
|
md: IonDatetimeMdStyle0
|
|
1876
1877
|
};
|
|
@@ -1919,65 +1920,26 @@ const iosLeaveAnimation = (baseEl) => {
|
|
|
1919
1920
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
1920
1921
|
};
|
|
1921
1922
|
|
|
1922
|
-
const pickerIosCss = ".sc-ion-picker-legacy-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-ios-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-ios-h{display:none}.picker-wrapper.sc-ion-picker-legacy-ios{border-radius:var(--border-radius);
|
|
1923
|
+
const pickerIosCss = ".sc-ion-picker-legacy-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-ios-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-ios-h{display:none}.picker-wrapper.sc-ion-picker-legacy-ios{border-radius:var(--border-radius);right:0;left:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-ios:active,.picker-button.sc-ion-picker-legacy-ios:focus{outline:none}.picker-columns.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-ios,.picker-below-highlight.sc-ion-picker-legacy-ios{display:none;pointer-events:none}.sc-ion-picker-legacy-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-legacy-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-legacy-ios:last-child .picker-button.sc-ion-picker-legacy-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-legacy-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-legacy-ios,.picker-button.ion-activated.sc-ion-picker-legacy-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:16px}.picker-columns.sc-ion-picker-legacy-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-legacy-ios{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-ios{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-ios{inset-inline-start:0}";
|
|
1923
1924
|
const IonPickerLegacyIosStyle0 = pickerIosCss;
|
|
1924
1925
|
|
|
1925
|
-
const pickerMdCss = ".sc-ion-picker-legacy-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-md-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-md-h{display:none}.picker-wrapper.sc-ion-picker-legacy-md{border-radius:var(--border-radius);
|
|
1926
|
+
const pickerMdCss = ".sc-ion-picker-legacy-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.sc-ion-picker-legacy-md-h{inset-inline-start:0}.overlay-hidden.sc-ion-picker-legacy-md-h{display:none}.picker-wrapper.sc-ion-picker-legacy-md{border-radius:var(--border-radius);right:0;left:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-legacy-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-legacy-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-legacy-md:active,.picker-button.sc-ion-picker-legacy-md:focus{outline:none}.picker-columns.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-legacy-md,.picker-below-highlight.sc-ion-picker-legacy-md{display:none;pointer-events:none}.sc-ion-picker-legacy-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-legacy-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-legacy-md,.picker-button.ion-activated.sc-ion-picker-legacy-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #0054e9);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-legacy-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-legacy-md{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}.picker-above-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}.picker-below-highlight.sc-ion-picker-legacy-md{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.13)))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}.picker-below-highlight.sc-ion-picker-legacy-md{inset-inline-start:0}";
|
|
1926
1927
|
const IonPickerLegacyMdStyle0 = pickerMdCss;
|
|
1927
1928
|
|
|
1928
1929
|
const Picker = class {
|
|
1929
1930
|
constructor(hostRef) {
|
|
1930
|
-
index
|
|
1931
|
-
this.didPresent = index
|
|
1932
|
-
this.willPresent = index
|
|
1933
|
-
this.willDismiss = index
|
|
1934
|
-
this.didDismiss = index
|
|
1935
|
-
this.didPresentShorthand = index
|
|
1936
|
-
this.willPresentShorthand = index
|
|
1937
|
-
this.willDismissShorthand = index
|
|
1938
|
-
this.didDismissShorthand = index
|
|
1931
|
+
index.registerInstance(this, hostRef);
|
|
1932
|
+
this.didPresent = index.createEvent(this, "ionPickerDidPresent", 7);
|
|
1933
|
+
this.willPresent = index.createEvent(this, "ionPickerWillPresent", 7);
|
|
1934
|
+
this.willDismiss = index.createEvent(this, "ionPickerWillDismiss", 7);
|
|
1935
|
+
this.didDismiss = index.createEvent(this, "ionPickerDidDismiss", 7);
|
|
1936
|
+
this.didPresentShorthand = index.createEvent(this, "didPresent", 7);
|
|
1937
|
+
this.willPresentShorthand = index.createEvent(this, "willPresent", 7);
|
|
1938
|
+
this.willDismissShorthand = index.createEvent(this, "willDismiss", 7);
|
|
1939
|
+
this.didDismissShorthand = index.createEvent(this, "didDismiss", 7);
|
|
1939
1940
|
this.delegateController = overlays.createDelegateController(this);
|
|
1940
1941
|
this.lockController = lockController.createLockController();
|
|
1941
1942
|
this.triggerController = overlays.createTriggerController();
|
|
1942
|
-
this.presented = false;
|
|
1943
|
-
/** @internal */
|
|
1944
|
-
this.hasController = false;
|
|
1945
|
-
/**
|
|
1946
|
-
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
|
1947
|
-
*/
|
|
1948
|
-
this.keyboardClose = true;
|
|
1949
|
-
/**
|
|
1950
|
-
* Array of buttons to be displayed at the top of the picker.
|
|
1951
|
-
*/
|
|
1952
|
-
this.buttons = [];
|
|
1953
|
-
/**
|
|
1954
|
-
* Array of columns to be displayed in the picker.
|
|
1955
|
-
*/
|
|
1956
|
-
this.columns = [];
|
|
1957
|
-
/**
|
|
1958
|
-
* Number of milliseconds to wait before dismissing the picker.
|
|
1959
|
-
*/
|
|
1960
|
-
this.duration = 0;
|
|
1961
|
-
/**
|
|
1962
|
-
* If `true`, a backdrop will be displayed behind the picker.
|
|
1963
|
-
*/
|
|
1964
|
-
this.showBackdrop = true;
|
|
1965
|
-
/**
|
|
1966
|
-
* If `true`, the picker will be dismissed when the backdrop is clicked.
|
|
1967
|
-
*/
|
|
1968
|
-
this.backdropDismiss = true;
|
|
1969
|
-
/**
|
|
1970
|
-
* If `true`, the picker will animate.
|
|
1971
|
-
*/
|
|
1972
|
-
this.animated = true;
|
|
1973
|
-
/**
|
|
1974
|
-
* If `true`, the picker will open. If `false`, the picker will close.
|
|
1975
|
-
* Use this if you need finer grained control over presentation, otherwise
|
|
1976
|
-
* just use the pickerController or the `trigger` property.
|
|
1977
|
-
* Note: `isOpen` will not automatically be set back to `false` when
|
|
1978
|
-
* the picker dismisses. You will need to do that in your code.
|
|
1979
|
-
*/
|
|
1980
|
-
this.isOpen = false;
|
|
1981
1943
|
this.onBackdropTap = () => {
|
|
1982
1944
|
this.dismiss(undefined, overlays.BACKDROP);
|
|
1983
1945
|
};
|
|
@@ -1988,6 +1950,23 @@ const Picker = class {
|
|
|
1988
1950
|
this.callButtonHandler(cancelButton);
|
|
1989
1951
|
}
|
|
1990
1952
|
};
|
|
1953
|
+
this.presented = false;
|
|
1954
|
+
this.overlayIndex = undefined;
|
|
1955
|
+
this.delegate = undefined;
|
|
1956
|
+
this.hasController = false;
|
|
1957
|
+
this.keyboardClose = true;
|
|
1958
|
+
this.enterAnimation = undefined;
|
|
1959
|
+
this.leaveAnimation = undefined;
|
|
1960
|
+
this.buttons = [];
|
|
1961
|
+
this.columns = [];
|
|
1962
|
+
this.cssClass = undefined;
|
|
1963
|
+
this.duration = 0;
|
|
1964
|
+
this.showBackdrop = true;
|
|
1965
|
+
this.backdropDismiss = true;
|
|
1966
|
+
this.animated = true;
|
|
1967
|
+
this.htmlAttributes = undefined;
|
|
1968
|
+
this.isOpen = false;
|
|
1969
|
+
this.trigger = undefined;
|
|
1991
1970
|
}
|
|
1992
1971
|
onIsOpenChange(newValue, oldValue) {
|
|
1993
1972
|
if (newValue === true && oldValue === false) {
|
|
@@ -2017,7 +1996,7 @@ const Picker = class {
|
|
|
2017
1996
|
}
|
|
2018
1997
|
}
|
|
2019
1998
|
componentDidLoad() {
|
|
2020
|
-
|
|
1999
|
+
ionicGlobal.printIonWarning('ion-picker-legacy and ion-picker-legacy-column have been deprecated in favor of new versions of the ion-picker and ion-picker-column components. These new components display inline with your page content allowing for more presentation flexibility than before.', this.el);
|
|
2021
2000
|
/**
|
|
2022
2001
|
* If picker was rendered with isOpen="true"
|
|
2023
2002
|
* then we should open picker immediately.
|
|
@@ -2126,14 +2105,14 @@ const Picker = class {
|
|
|
2126
2105
|
}
|
|
2127
2106
|
render() {
|
|
2128
2107
|
const { htmlAttributes } = this;
|
|
2129
|
-
const
|
|
2130
|
-
return (index
|
|
2108
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
2109
|
+
return (index.h(index.Host, Object.assign({ key: '4e70d13b33371449d0cb0128351e7ab8c8fec190', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2131
2110
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2132
|
-
}, class: Object.assign({ [
|
|
2111
|
+
}, class: Object.assign({ [theme$1]: true,
|
|
2133
2112
|
// Used internally for styling
|
|
2134
|
-
[`picker-${
|
|
2113
|
+
[`picker-${theme$1}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index.h("ion-backdrop", { key: '8715935ffe5b7a3bd1b0c0f9339fcda633b6e011', visible: this.showBackdrop, tappable: this.backdropDismiss }), index.h("div", { key: 'dc10f6154190212e85cf057667f651bbdac567b9', tabindex: "0", "aria-hidden": "true" }), index.h("div", { key: '18b96fb9944686ee914288d8b45158f5d4447544', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, index.h("div", { key: '387a67b74c590fad761dca811fd76f12e65f29ca', class: "picker-toolbar" }, this.buttons.map((b) => (index.h("div", { class: buttonWrapperClass(b) }, index.h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), index.h("div", { key: '835fccbf301c838f5efde7722c13c911e09fb5d4', class: "picker-columns" }, index.h("div", { key: 'e15f6919a4adc4c89386cad2704849d2f37008e5', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => index.h("ion-picker-legacy-column", { col: c })), index.h("div", { key: '11e7e701569a61a13c2fd5b5619087198437f128', class: "picker-below-highlight" }))), index.h("div", { key: '290fc1f449b733d8e4a68a546a3a5018d057777c', tabindex: "0", "aria-hidden": "true" })));
|
|
2135
2114
|
}
|
|
2136
|
-
get el() { return index
|
|
2115
|
+
get el() { return index.getElement(this); }
|
|
2137
2116
|
static get watchers() { return {
|
|
2138
2117
|
"isOpen": ["onIsOpenChange"],
|
|
2139
2118
|
"trigger": ["triggerChanged"]
|
|
@@ -2161,8 +2140,8 @@ const IonPickerLegacyColumnMdStyle0 = pickerColumnMdCss;
|
|
|
2161
2140
|
|
|
2162
2141
|
const PickerColumnCmp = class {
|
|
2163
2142
|
constructor(hostRef) {
|
|
2164
|
-
index
|
|
2165
|
-
this.ionPickerColChange = index
|
|
2143
|
+
index.registerInstance(this, hostRef);
|
|
2144
|
+
this.ionPickerColChange = index.createEvent(this, "ionPickerColChange", 7);
|
|
2166
2145
|
this.optHeight = 0;
|
|
2167
2146
|
this.rotateFactor = 0;
|
|
2168
2147
|
this.scaleFactor = 1;
|
|
@@ -2177,6 +2156,7 @@ const PickerColumnCmp = class {
|
|
|
2177
2156
|
// Ex: column is created with 3 options. User updates the column data
|
|
2178
2157
|
// to have 5 options. The column will still think it only has 3 options.
|
|
2179
2158
|
this.colDidChange = false;
|
|
2159
|
+
this.col = undefined;
|
|
2180
2160
|
}
|
|
2181
2161
|
colChanged() {
|
|
2182
2162
|
this.colDidChange = true;
|
|
@@ -2486,12 +2466,12 @@ const PickerColumnCmp = class {
|
|
|
2486
2466
|
}
|
|
2487
2467
|
render() {
|
|
2488
2468
|
const col = this.col;
|
|
2489
|
-
const
|
|
2490
|
-
return (index
|
|
2469
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
2470
|
+
return (index.h(index.Host, { key: '5bd2ebb0d08fb254a7c4cc338550794ca720684b', class: Object.assign({ [theme$1]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, theme.getClassMap(col.cssClass)), style: {
|
|
2491
2471
|
'max-width': this.col.columnWidth,
|
|
2492
|
-
} }, col.prefix && (index
|
|
2472
|
+
} }, col.prefix && (index.h("div", { key: '11f508e7c354a0cacfd59eb83f87cf5eeed0767f', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), index.h("div", { key: 'ed46c4cdbdc4dc983eb51e923b523af1413af28d', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index$1) => (index.h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index$1 }, o.text)))), col.suffix && (index.h("div", { key: '5effd8d2d09200ee92f97689d82f2a29af8a7774', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
2493
2473
|
}
|
|
2494
|
-
get el() { return index
|
|
2474
|
+
get el() { return index.getElement(this); }
|
|
2495
2475
|
static get watchers() { return {
|
|
2496
2476
|
"col": ["colChanged"]
|
|
2497
2477
|
}; }
|