@ionic/core 8.0.0-dev.11711035263.183d2423 → 8.0.0-dev.11711476529.17eae6ec
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 +11 -6
- package/components/alert.js +12 -8
- package/components/backdrop.js +8 -4
- package/components/button.js +41 -11
- package/components/buttons.js +9 -5
- package/components/checkbox.js +13 -9
- package/components/data.js +4 -4
- package/components/helpers.js +1 -4
- package/components/index4.js +8 -7
- package/components/index6.js +25 -30
- package/components/index7.js +124 -27
- package/components/index8.js +150 -111
- package/components/input-shims.js +1 -1
- package/components/input.utils.js +1 -1
- package/components/ion-accordion-group.js +9 -6
- package/components/ion-accordion.js +10 -6
- package/components/ion-app.js +5 -6
- package/components/ion-avatar.js +9 -2
- package/components/ion-back-button.js +12 -8
- package/components/ion-badge.js +9 -5
- package/components/ion-breadcrumb.js +11 -7
- package/components/ion-breadcrumbs.js +9 -5
- package/components/ion-card-content.js +9 -5
- package/components/ion-card-header.js +9 -5
- package/components/ion-card-subtitle.js +9 -5
- package/components/ion-card-title.js +9 -5
- package/components/ion-card.js +11 -7
- package/components/ion-chip.js +9 -5
- package/components/ion-col.js +5 -5
- package/components/ion-content.js +10 -10
- package/components/ion-datetime-button.js +9 -6
- package/components/ion-datetime.js +20 -17
- package/components/ion-fab-button.js +10 -6
- package/components/ion-fab-list.js +5 -5
- package/components/ion-fab.js +5 -5
- package/components/ion-footer.js +14 -10
- package/components/ion-grid.js +5 -5
- package/components/ion-header.js +14 -10
- package/components/ion-img.js +5 -2
- package/components/ion-infinite-scroll-content.js +12 -8
- package/components/ion-infinite-scroll.js +5 -5
- package/components/ion-input.js +18 -34
- package/components/ion-item-divider.js +9 -5
- package/components/ion-item-group.js +9 -5
- package/components/ion-item-option.js +9 -5
- package/components/ion-item-options.js +9 -5
- package/components/ion-item-sliding.js +5 -5
- package/components/ion-loading.js +10 -6
- package/components/ion-menu-button.js +11 -7
- package/components/ion-menu-toggle.js +5 -5
- package/components/ion-menu.js +9 -5
- package/components/ion-modal.js +11 -8
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +6 -5
- package/components/ion-note.js +9 -5
- package/components/ion-picker-legacy.js +5 -6
- package/components/ion-progress-bar.js +8 -4
- package/components/ion-range.js +11 -8
- package/components/ion-refresher-content.js +9 -8
- package/components/ion-refresher.js +10 -6
- package/components/ion-reorder-group.js +5 -5
- package/components/ion-reorder.js +11 -5
- package/components/ion-router-link.js +5 -5
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +5 -2
- package/components/ion-searchbar.js +16 -12
- package/components/ion-segment-button.js +10 -6
- package/components/ion-segment.js +9 -5
- package/components/ion-select-option.js +5 -2
- package/components/ion-select.js +23 -19
- package/components/ion-skeleton-text.js +5 -5
- package/components/ion-split-pane.js +10 -6
- package/components/ion-tab-bar.js +9 -5
- package/components/ion-tab-button.js +9 -5
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +5 -5
- package/components/ion-textarea.js +12 -8
- package/components/ion-thumbnail.js +5 -2
- package/components/ion-title.js +9 -5
- package/components/ion-toast.js +13 -9
- package/components/ion-toggle.js +17 -13
- package/components/ion-toolbar.js +9 -5
- package/components/ionic-global.js +190 -13
- package/components/ios.transition.js +1 -0
- package/components/item.js +11 -7
- package/components/label.js +9 -5
- package/components/list-header.js +9 -5
- package/components/list.js +10 -6
- package/components/overlays.js +1 -2
- package/components/picker-column-option.js +9 -5
- package/components/picker-column.js +6 -6
- package/components/picker-column2.js +4 -4
- package/components/picker.js +6 -2
- package/components/popover.js +9 -6
- package/components/radio-group.js +5 -3
- package/components/radio.js +10 -6
- package/components/ripple-effect.js +4 -4
- package/components/select-popover.js +9 -2
- package/components/spinner.js +6 -6
- package/components/status-tap.js +1 -1
- package/css/core.css +18 -0
- package/css/core.css.map +1 -1
- package/css/display.css +6 -0
- package/css/display.css.map +1 -1
- package/css/float-elements.css +6 -0
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css +12 -0
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +6 -0
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/padding.css +6 -0
- package/css/padding.css.map +1 -1
- package/css/structure.css +6 -0
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css +6 -0
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css +6 -0
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css +6 -0
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +30 -0
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{app-globals-e132c781.js → app-globals-98e49326.js} +1 -1
- package/dist/cjs/{data-21dc0f81.js → data-f2ccf911.js} +6 -6
- package/dist/cjs/{framework-delegate-df3a2b04.js → framework-delegate-55f5683a.js} +1 -1
- package/dist/cjs/{hardware-back-button-1c67a5a2.js → hardware-back-button-f66bce00.js} +1 -1
- package/dist/cjs/{helpers-71097d9c.js → helpers-afaa9001.js} +0 -4
- package/dist/cjs/{index-ef9261f8.js → index-5643c839.js} +3 -3
- package/dist/cjs/{index-7479ea5a.js → index-91435ed0.js} +3 -3
- package/dist/cjs/{index-a91a3e24.js → index-9509ecad.js} +5 -34
- package/dist/cjs/{index-073c7cdc.js → index-f52c6d38.js} +0 -4
- package/dist/cjs/{index-c2191aa0.js → index-f5fcf972.js} +14 -13
- package/dist/cjs/index.cjs.js +9 -10
- package/dist/cjs/{input-shims-77b14f24.js → input-shims-837af288.js} +4 -3
- package/dist/cjs/{input.utils-ca74d73a.js → input.utils-01c2fa15.js} +3 -3
- package/dist/cjs/ion-accordion_2.cjs.entry.js +20 -13
- package/dist/cjs/ion-action-sheet.cjs.entry.js +15 -11
- package/dist/cjs/ion-alert.cjs.entry.js +16 -13
- package/dist/cjs/ion-app_8.cjs.entry.js +83 -64
- package/dist/cjs/ion-avatar_3.cjs.entry.js +21 -7
- package/dist/cjs/ion-back-button.cjs.entry.js +13 -9
- package/dist/cjs/ion-backdrop.cjs.entry.js +8 -4
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +20 -12
- package/dist/cjs/ion-button_2.cjs.entry.js +43 -14
- package/dist/cjs/ion-card_5.cjs.entry.js +44 -24
- package/dist/cjs/ion-checkbox.cjs.entry.js +14 -10
- package/dist/cjs/ion-chip.cjs.entry.js +9 -5
- package/dist/cjs/ion-col_3.cjs.entry.js +13 -10
- package/dist/cjs/ion-datetime-button.cjs.entry.js +15 -12
- package/dist/cjs/ion-datetime_3.cjs.entry.js +108 -105
- package/dist/cjs/ion-fab_3.cjs.entry.js +19 -15
- package/dist/cjs/ion-img.cjs.entry.js +6 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +17 -14
- package/dist/cjs/ion-input.cjs.entry.js +19 -35
- package/dist/cjs/ion-item-option_3.cjs.entry.js +22 -15
- package/dist/cjs/ion-item_8.cjs.entry.js +65 -37
- package/dist/cjs/ion-loading.cjs.entry.js +14 -11
- package/dist/cjs/ion-menu_3.cjs.entry.js +28 -21
- package/dist/cjs/ion-modal.cjs.entry.js +21 -18
- package/dist/cjs/ion-nav_2.cjs.entry.js +11 -9
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +10 -6
- package/dist/cjs/ion-picker-column.cjs.entry.js +7 -7
- package/dist/cjs/ion-picker.cjs.entry.js +7 -3
- package/dist/cjs/ion-popover.cjs.entry.js +17 -14
- package/dist/cjs/ion-progress-bar.cjs.entry.js +9 -5
- package/dist/cjs/ion-radio_2.cjs.entry.js +15 -9
- package/dist/cjs/ion-range.cjs.entry.js +17 -14
- package/dist/cjs/ion-refresher_2.cjs.entry.js +19 -15
- package/dist/cjs/ion-reorder_2.cjs.entry.js +16 -11
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +4 -4
- package/dist/cjs/ion-route_4.cjs.entry.js +6 -6
- package/dist/cjs/ion-searchbar.cjs.entry.js +17 -13
- package/dist/cjs/ion-segment_2.cjs.entry.js +19 -11
- package/dist/cjs/ion-select_3.cjs.entry.js +40 -27
- package/dist/cjs/ion-spinner.cjs.entry.js +6 -6
- package/dist/cjs/ion-split-pane.cjs.entry.js +10 -6
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +18 -10
- package/dist/cjs/ion-tab_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-text.cjs.entry.js +5 -5
- package/dist/cjs/ion-textarea.cjs.entry.js +15 -12
- package/dist/cjs/ion-toast.cjs.entry.js +38 -34
- package/dist/cjs/ion-toggle.cjs.entry.js +18 -14
- package/dist/cjs/ionic-global-94d8021d.js +411 -0
- package/dist/cjs/ionic.cjs.js +3 -3
- package/dist/cjs/{ios.transition-2bb1c4d1.js → ios.transition-19155451.js} +3 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-c0afd670.js → md.transition-1b1135b1.js} +2 -2
- package/dist/cjs/{notch-controller-0042ad49.js → notch-controller-d69150f5.js} +1 -1
- package/dist/cjs/{overlays-30b83581.js → overlays-de847251.js} +5 -6
- package/dist/cjs/{status-tap-dc3b8fda.js → status-tap-3ef7ca2b.js} +3 -3
- package/dist/cjs/{swipe-back-29e88360.js → swipe-back-0303a5e4.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/accordion/accordion.ios.css +12 -0
- package/dist/collection/components/accordion/accordion.js +11 -8
- package/dist/collection/components/accordion/accordion.md.css +6 -0
- package/dist/collection/components/accordion-group/accordion-group.ios.css +12 -0
- package/dist/collection/components/accordion-group/accordion-group.js +11 -8
- package/dist/collection/components/accordion-group/accordion-group.md.css +18 -0
- package/dist/collection/components/action-sheet/action-sheet.ios.css +12 -0
- package/dist/collection/components/action-sheet/action-sheet.js +14 -10
- package/dist/collection/components/action-sheet/action-sheet.md.css +12 -0
- package/dist/collection/components/alert/alert.ios.css +18 -0
- package/dist/collection/components/alert/alert.js +15 -12
- package/dist/collection/components/alert/alert.md.css +18 -0
- package/dist/collection/components/app/app.js +8 -4
- package/dist/collection/components/avatar/avatar.ios.css +12 -0
- package/dist/collection/components/avatar/avatar.js +13 -4
- package/dist/collection/components/avatar/avatar.md.css +12 -0
- package/dist/collection/components/back-button/back-button.ios.css +12 -0
- package/dist/collection/components/back-button/back-button.js +13 -10
- package/dist/collection/components/back-button/back-button.md.css +12 -0
- package/dist/collection/components/backdrop/backdrop.ios.css +12 -0
- package/dist/collection/components/backdrop/backdrop.js +12 -6
- package/dist/collection/components/backdrop/backdrop.md.css +12 -0
- package/dist/collection/components/badge/badge.ios.css +12 -0
- package/dist/collection/components/badge/badge.js +11 -8
- package/dist/collection/components/badge/badge.md.css +12 -0
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +12 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +12 -9
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +12 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +11 -9
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
- package/dist/collection/components/button/button.ionic.css +565 -0
- package/dist/collection/components/button/button.ios.css +50 -10
- package/dist/collection/components/button/button.js +48 -14
- package/dist/collection/components/button/button.md.css +40 -13
- package/dist/collection/components/button/test/clear/button.e2e.js +6 -3
- package/dist/collection/components/button/test/shape/button.e2e.js +88 -0
- package/dist/collection/components/button/test/size/button.e2e.js +19 -1
- package/dist/collection/components/buttons/buttons.ios.css +18 -0
- package/dist/collection/components/buttons/buttons.js +14 -8
- package/dist/collection/components/buttons/buttons.md.css +18 -0
- package/dist/collection/components/card/card.ios.css +12 -0
- package/dist/collection/components/card/card.js +13 -10
- package/dist/collection/components/card/card.md.css +12 -0
- package/dist/collection/components/card-content/card-content.ios.css +12 -0
- package/dist/collection/components/card-content/card-content.js +11 -8
- package/dist/collection/components/card-content/card-content.md.css +12 -0
- package/dist/collection/components/card-header/card-header.ios.css +12 -0
- package/dist/collection/components/card-header/card-header.js +12 -9
- package/dist/collection/components/card-header/card-header.md.css +12 -0
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
- package/dist/collection/components/card-subtitle/card-subtitle.js +11 -8
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
- package/dist/collection/components/card-title/card-title.ios.css +12 -0
- package/dist/collection/components/card-title/card-title.js +11 -8
- package/dist/collection/components/card-title/card-title.md.css +12 -0
- package/dist/collection/components/checkbox/checkbox.ios.css +18 -0
- package/dist/collection/components/checkbox/checkbox.js +15 -12
- package/dist/collection/components/checkbox/checkbox.md.css +18 -0
- package/dist/collection/components/chip/chip.ios.css +6 -0
- package/dist/collection/components/chip/chip.js +11 -8
- package/dist/collection/components/chip/chip.md.css +6 -0
- package/dist/collection/components/col/col.css +12 -0
- package/dist/collection/components/col/col.js +9 -5
- package/dist/collection/components/content/content.css +6 -0
- package/dist/collection/components/content/content.js +13 -10
- package/dist/collection/components/datetime/datetime.ios.css +12 -0
- package/dist/collection/components/datetime/datetime.js +21 -18
- package/dist/collection/components/datetime/datetime.md.css +12 -0
- package/dist/collection/components/datetime/utils/data.js +3 -3
- package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
- package/dist/collection/components/datetime-button/datetime-button.js +11 -8
- package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
- package/dist/collection/components/fab/fab.css +24 -0
- package/dist/collection/components/fab/fab.js +9 -5
- package/dist/collection/components/fab-button/fab-button.ios.css +12 -0
- package/dist/collection/components/fab-button/fab-button.js +12 -9
- package/dist/collection/components/fab-button/fab-button.md.css +12 -0
- package/dist/collection/components/fab-list/fab-list.css +12 -0
- package/dist/collection/components/fab-list/fab-list.js +9 -5
- package/dist/collection/components/footer/footer.ios.css +12 -0
- package/dist/collection/components/footer/footer.js +17 -14
- 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 -5
- package/dist/collection/components/header/header.ios.css +12 -0
- package/dist/collection/components/header/header.js +17 -14
- package/dist/collection/components/header/header.md.css +12 -0
- package/dist/collection/components/img/img.js +8 -2
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +8 -4
- 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 +16 -10
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
- package/dist/collection/components/input/input.ios.css +17 -9
- package/dist/collection/components/input/input.js +18 -36
- package/dist/collection/components/input/input.md.css +35 -9
- package/dist/collection/components/item/item.ios.css +12 -0
- package/dist/collection/components/item/item.js +13 -10
- package/dist/collection/components/item/item.md.css +24 -0
- package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
- package/dist/collection/components/item-divider/item-divider.js +11 -8
- 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.ios.css +12 -0
- package/dist/collection/components/item-option/item-option.js +11 -8
- package/dist/collection/components/item-option/item-option.md.css +12 -0
- package/dist/collection/components/item-options/item-options.ios.css +18 -0
- package/dist/collection/components/item-options/item-options.js +13 -7
- 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 -4
- package/dist/collection/components/label/label.ios.css +18 -0
- package/dist/collection/components/label/label.js +11 -8
- package/dist/collection/components/label/label.md.css +18 -0
- package/dist/collection/components/list/list.ios.css +18 -0
- package/dist/collection/components/list/list.js +12 -9
- package/dist/collection/components/list/list.md.css +18 -0
- package/dist/collection/components/list-header/list-header.ios.css +18 -0
- package/dist/collection/components/list-header/list-header.js +11 -8
- package/dist/collection/components/list-header/list-header.md.css +18 -0
- package/dist/collection/components/loading/loading.ios.css +12 -0
- package/dist/collection/components/loading/loading.js +13 -10
- package/dist/collection/components/loading/loading.md.css +12 -0
- package/dist/collection/components/menu/menu.ios.css +12 -0
- package/dist/collection/components/menu/menu.js +12 -7
- package/dist/collection/components/menu/menu.md.css +12 -0
- package/dist/collection/components/menu-button/menu-button.ios.css +12 -0
- package/dist/collection/components/menu-button/menu-button.js +12 -9
- package/dist/collection/components/menu-button/menu-button.md.css +12 -0
- package/dist/collection/components/menu-toggle/menu-toggle.js +8 -5
- package/dist/collection/components/modal/modal.ios.css +12 -0
- package/dist/collection/components/modal/modal.js +12 -9
- package/dist/collection/components/modal/modal.md.css +12 -0
- package/dist/collection/components/nav/nav.css +6 -0
- package/dist/collection/components/nav/nav.js +11 -5
- package/dist/collection/components/nav-link/nav-link.js +5 -1
- package/dist/collection/components/note/note.ios.css +12 -0
- package/dist/collection/components/note/note.js +11 -8
- package/dist/collection/components/note/note.md.css +12 -0
- package/dist/collection/components/picker/picker.ios.css +12 -0
- package/dist/collection/components/picker/picker.js +8 -5
- package/dist/collection/components/picker/picker.md.css +12 -0
- package/dist/collection/components/picker-column/picker-column.css +6 -0
- package/dist/collection/components/picker-column/picker-column.js +8 -7
- 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 +13 -7
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
- package/dist/collection/components/picker-legacy/picker.ios.css +12 -0
- package/dist/collection/components/picker-legacy/picker.js +7 -6
- package/dist/collection/components/picker-legacy/picker.md.css +12 -0
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
- package/dist/collection/components/picker-legacy-column/picker-column.js +4 -4
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
- package/dist/collection/components/popover/popover.ios.css +12 -0
- package/dist/collection/components/popover/popover.js +15 -12
- package/dist/collection/components/popover/popover.md.css +12 -0
- package/dist/collection/components/progress-bar/progress-bar.ios.css +6 -0
- package/dist/collection/components/progress-bar/progress-bar.js +10 -7
- package/dist/collection/components/progress-bar/progress-bar.md.css +6 -0
- package/dist/collection/components/radio/radio.ios.css +18 -0
- package/dist/collection/components/radio/radio.js +12 -9
- package/dist/collection/components/radio/radio.md.css +18 -0
- package/dist/collection/components/radio-group/radio-group.js +9 -3
- package/dist/collection/components/range/range.ios.css +12 -0
- package/dist/collection/components/range/range.js +12 -9
- package/dist/collection/components/range/range.md.css +12 -0
- package/dist/collection/components/refresher/refresher.ios.css +12 -0
- package/dist/collection/components/refresher/refresher.js +11 -8
- package/dist/collection/components/refresher/refresher.md.css +12 -0
- package/dist/collection/components/refresher-content/refresher-content.js +12 -7
- package/dist/collection/components/reorder/reorder.ios.css +6 -0
- package/dist/collection/components/reorder/reorder.js +13 -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 -4
- package/dist/collection/components/ripple-effect/ripple-effect.css +6 -0
- package/dist/collection/components/ripple-effect/ripple-effect.js +8 -4
- package/dist/collection/components/route/route.js +4 -0
- package/dist/collection/components/router/router.js +4 -0
- package/dist/collection/components/router-link/router-link.css +6 -0
- package/dist/collection/components/router-link/router-link.js +9 -5
- package/dist/collection/components/router-outlet/router-outlet.css +6 -0
- package/dist/collection/components/router-outlet/router-outlet.js +5 -2
- package/dist/collection/components/row/row.css +12 -0
- package/dist/collection/components/row/row.js +9 -2
- package/dist/collection/components/searchbar/searchbar.ios.css +12 -0
- package/dist/collection/components/searchbar/searchbar.js +21 -18
- package/dist/collection/components/searchbar/searchbar.md.css +12 -0
- package/dist/collection/components/segment/segment.ios.css +18 -0
- package/dist/collection/components/segment/segment.js +11 -8
- package/dist/collection/components/segment/segment.md.css +18 -0
- package/dist/collection/components/segment-button/segment-button.ios.css +12 -0
- package/dist/collection/components/segment-button/segment-button.js +12 -9
- package/dist/collection/components/segment-button/segment-button.md.css +12 -0
- package/dist/collection/components/select/select.ios.css +18 -0
- package/dist/collection/components/select/select.js +27 -24
- package/dist/collection/components/select/select.md.css +30 -0
- package/dist/collection/components/select-option/select-option.js +9 -2
- package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
- package/dist/collection/components/select-popover/select-popover.js +12 -4
- 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 -5
- package/dist/collection/components/spinner/spinner.css +6 -0
- package/dist/collection/components/spinner/spinner.js +10 -6
- package/dist/collection/components/split-pane/split-pane.ios.css +18 -0
- package/dist/collection/components/split-pane/split-pane.js +14 -8
- package/dist/collection/components/split-pane/split-pane.md.css +18 -0
- package/dist/collection/components/tab/tab.js +6 -2
- package/dist/collection/components/tab-bar/tab-bar.ios.css +18 -0
- package/dist/collection/components/tab-bar/tab-bar.js +12 -9
- package/dist/collection/components/tab-bar/tab-bar.md.css +18 -0
- package/dist/collection/components/tab-button/tab-button.ios.css +12 -0
- package/dist/collection/components/tab-button/tab-button.js +11 -8
- package/dist/collection/components/tab-button/tab-button.md.css +12 -0
- package/dist/collection/components/tabs/tabs.css +6 -0
- package/dist/collection/components/tabs/tabs.js +4 -1
- package/dist/collection/components/text/text.css +6 -0
- package/dist/collection/components/text/text.js +7 -6
- package/dist/collection/components/textarea/textarea.ios.css +24 -0
- package/dist/collection/components/textarea/textarea.js +15 -12
- package/dist/collection/components/textarea/textarea.md.css +36 -0
- package/dist/collection/components/thumbnail/thumbnail.css +6 -0
- package/dist/collection/components/thumbnail/thumbnail.js +9 -2
- package/dist/collection/components/title/title.ios.css +6 -0
- package/dist/collection/components/title/title.js +13 -7
- package/dist/collection/components/title/title.md.css +6 -0
- package/dist/collection/components/toast/animations/utils.js +1 -1
- package/dist/collection/components/toast/toast.ios.css +12 -0
- package/dist/collection/components/toast/toast.js +15 -11
- package/dist/collection/components/toast/toast.md.css +12 -0
- package/dist/collection/components/toggle/toggle.ios.css +18 -0
- package/dist/collection/components/toggle/toggle.js +18 -15
- package/dist/collection/components/toggle/toggle.md.css +18 -0
- package/dist/collection/components/toolbar/toolbar.ios.css +12 -0
- package/dist/collection/components/toolbar/toolbar.js +13 -10
- package/dist/collection/components/toolbar/toolbar.md.css +12 -0
- package/dist/collection/global/ionic-global.js +160 -12
- package/dist/collection/global/test/ionic-global.spec.js +109 -0
- 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/tap-click/index.js +5 -34
- package/dist/collection/utils/test/playwright/generator.js +45 -22
- package/dist/collection/utils/test/playwright/page/utils/goto.js +13 -4
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +13 -1
- package/dist/collection/utils/transition/ios.transition.js +1 -0
- package/dist/docs.json +3896 -518
- package/dist/esm/{app-globals-80842d68.js → app-globals-4194f7b0.js} +1 -1
- package/dist/esm/{button-active-824983fa.js → button-active-6f657ae4.js} +1 -1
- package/dist/esm/{data-ae11fd43.js → data-735635b1.js} +4 -4
- package/dist/esm/{framework-delegate-3dede018.js → framework-delegate-63d1a679.js} +1 -1
- package/dist/esm/{hardware-back-button-fb295e3a.js → hardware-back-button-ff84501f.js} +2 -2
- package/dist/esm/{helpers-eab4f597.js → helpers-da915de8.js} +1 -4
- package/dist/esm/{index-5d6a0317.js → index-3a495cc6.js} +1 -1
- package/dist/esm/{index-044b5a86.js → index-4bbc4ca3.js} +2 -2
- package/dist/esm/{index-0089f1fa.js → index-62041d9c.js} +10 -9
- package/dist/esm/{index-fa221975.js → index-79b30591.js} +5 -34
- package/dist/esm/{index-f27077ac.js → index-e3f4491c.js} +4 -4
- package/dist/esm/{index-e2cf2ceb.js → index-f7dc70ba.js} +1 -3
- package/dist/esm/index.js +10 -11
- package/dist/esm/{input-shims-196afa11.js → input-shims-131a3f9f.js} +4 -3
- package/dist/esm/{input.utils-426cc674.js → input.utils-41b26b54.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +20 -13
- package/dist/esm/ion-action-sheet.entry.js +17 -13
- package/dist/esm/ion-alert.entry.js +18 -15
- package/dist/esm/ion-app_8.entry.js +73 -54
- package/dist/esm/ion-avatar_3.entry.js +22 -8
- package/dist/esm/ion-back-button.entry.js +14 -10
- package/dist/esm/ion-backdrop.entry.js +9 -5
- package/dist/esm/ion-breadcrumb_2.entry.js +21 -13
- package/dist/esm/ion-button_2.entry.js +41 -12
- package/dist/esm/ion-card_5.entry.js +45 -25
- package/dist/esm/ion-checkbox.entry.js +15 -11
- package/dist/esm/ion-chip.entry.js +10 -6
- package/dist/esm/ion-col_3.entry.js +14 -11
- package/dist/esm/ion-datetime-button.entry.js +12 -9
- package/dist/esm/ion-datetime_3.entry.js +33 -30
- package/dist/esm/ion-fab_3.entry.js +20 -16
- package/dist/esm/ion-img.entry.js +7 -4
- package/dist/esm/ion-infinite-scroll_2.entry.js +18 -15
- package/dist/esm/ion-input.entry.js +20 -36
- package/dist/esm/ion-item-option_3.entry.js +23 -16
- package/dist/esm/ion-item_8.entry.js +66 -38
- package/dist/esm/ion-loading.entry.js +15 -12
- package/dist/esm/ion-menu_3.entry.js +29 -22
- package/dist/esm/ion-modal.entry.js +17 -14
- package/dist/esm/ion-nav_2.entry.js +12 -10
- package/dist/esm/ion-picker-column-option.entry.js +11 -7
- package/dist/esm/ion-picker-column.entry.js +8 -8
- package/dist/esm/ion-picker.entry.js +8 -4
- package/dist/esm/ion-popover.entry.js +15 -12
- package/dist/esm/ion-progress-bar.entry.js +10 -6
- package/dist/esm/ion-radio_2.entry.js +16 -10
- package/dist/esm/ion-range.entry.js +13 -10
- package/dist/esm/ion-refresher_2.entry.js +20 -16
- package/dist/esm/ion-reorder_2.entry.js +17 -12
- package/dist/esm/ion-ripple-effect.entry.js +5 -5
- package/dist/esm/ion-route_4.entry.js +7 -7
- package/dist/esm/ion-searchbar.entry.js +18 -14
- package/dist/esm/ion-segment_2.entry.js +20 -12
- package/dist/esm/ion-select_3.entry.js +41 -28
- package/dist/esm/ion-spinner.entry.js +7 -7
- package/dist/esm/ion-split-pane.entry.js +11 -7
- package/dist/esm/ion-tab-bar_2.entry.js +19 -11
- package/dist/esm/ion-tab_2.entry.js +6 -6
- package/dist/esm/ion-text.entry.js +6 -6
- package/dist/esm/ion-textarea.entry.js +16 -13
- package/dist/esm/ion-toast.entry.js +18 -14
- package/dist/esm/ion-toggle.entry.js +19 -15
- package/dist/esm/ionic-global-d47e129d.js +401 -0
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-632deb95.js → ios.transition-2187a9fd.js} +4 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-3bcf4011.js → md.transition-a8d52fcb.js} +3 -3
- package/dist/esm/{notch-controller-cff691e5.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm/{overlays-d41f74ac.js → overlays-213b5a21.js} +4 -5
- package/dist/esm/{status-tap-45595148.js → status-tap-8838c434.js} +4 -4
- package/dist/esm/{swipe-back-57844616.js → swipe-back-e5394307.js} +1 -1
- package/dist/esm-es5/app-globals-4194f7b0.js +4 -0
- package/dist/esm-es5/{button-active-824983fa.js → button-active-6f657ae4.js} +1 -1
- package/dist/esm-es5/data-735635b1.js +4 -0
- package/dist/esm-es5/{framework-delegate-3dede018.js → framework-delegate-63d1a679.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-fb295e3a.js → hardware-back-button-ff84501f.js} +1 -1
- package/dist/esm-es5/{helpers-eab4f597.js → helpers-da915de8.js} +1 -1
- package/dist/esm-es5/{index-5d6a0317.js → index-3a495cc6.js} +1 -1
- package/dist/esm-es5/index-4bbc4ca3.js +4 -0
- package/dist/esm-es5/index-62041d9c.js +4 -0
- package/dist/esm-es5/index-79b30591.js +4 -0
- package/dist/esm-es5/{index-f27077ac.js → index-e3f4491c.js} +1 -1
- package/dist/esm-es5/{index-e2cf2ceb.js → index-f7dc70ba.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-131a3f9f.js +4 -0
- package/dist/esm-es5/input.utils-41b26b54.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.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic-global-d47e129d.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-2187a9fd.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-a8d52fcb.js +4 -0
- package/dist/esm-es5/{notch-controller-cff691e5.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm-es5/overlays-213b5a21.js +4 -0
- package/dist/esm-es5/status-tap-8838c434.js +4 -0
- package/dist/esm-es5/{swipe-back-57844616.js → swipe-back-e5394307.js} +1 -1
- package/dist/html.html-data.json +1900 -173
- 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-0507489e.system.entry.js +4 -0
- package/dist/ionic/p-09b71030.entry.js +4 -0
- package/dist/ionic/p-0c0065e8.js +4 -0
- package/dist/ionic/p-0daf382b.system.entry.js +4 -0
- package/dist/ionic/p-1126b6fb.entry.js +4 -0
- package/dist/ionic/p-116239e0.system.entry.js +4 -0
- package/dist/ionic/p-11f25a12.system.js +4 -0
- package/dist/ionic/{p-78b3da77.js → p-139e8ff1.js} +1 -1
- package/dist/ionic/p-13aa1338.entry.js +4 -0
- package/dist/ionic/p-16b3b748.system.js +4 -0
- package/dist/ionic/p-18d1e318.system.js +4 -0
- package/dist/ionic/p-197fca36.system.entry.js +4 -0
- package/dist/ionic/{p-2cc2c631.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/{p-ab6879e7.system.js → p-1a488d6f.system.js} +1 -1
- package/dist/ionic/p-1cc1ce24.system.entry.js +4 -0
- package/dist/ionic/p-1f04779e.entry.js +4 -0
- package/dist/ionic/p-226bdf0f.entry.js +4 -0
- package/dist/ionic/p-23132e1f.js +4 -0
- package/dist/ionic/p-23a3320b.js +4 -0
- package/dist/ionic/p-23e053d0.system.entry.js +4 -0
- package/dist/ionic/p-24cc69ab.entry.js +4 -0
- package/dist/ionic/p-24e9aa21.entry.js +4 -0
- package/dist/ionic/p-29ceda88.js +4 -0
- package/dist/ionic/p-2a4641fb.system.entry.js +4 -0
- package/dist/ionic/p-2bc784c2.system.entry.js +4 -0
- package/dist/ionic/p-2c8cb8c0.system.entry.js +4 -0
- package/dist/ionic/p-2fad37de.system.entry.js +4 -0
- package/dist/ionic/p-30aed000.system.entry.js +4 -0
- package/dist/ionic/p-30b7a6a6.system.entry.js +4 -0
- package/dist/ionic/{p-4a3055ef.system.js → p-322eb715.system.js} +1 -1
- package/dist/ionic/{p-a600a3e3.js → p-34b11c24.js} +1 -1
- package/dist/ionic/p-35b46c05.entry.js +4 -0
- package/dist/ionic/p-365d2cfe.system.entry.js +4 -0
- package/dist/ionic/p-385c76dc.system.entry.js +4 -0
- package/dist/ionic/{p-668607c2.system.js → p-3ad285e3.system.js} +1 -1
- package/dist/ionic/p-3b03dd5b.entry.js +4 -0
- package/dist/ionic/{p-c6f9f3eb.js → p-3cc276f4.js} +1 -1
- package/dist/ionic/p-3d7001d7.js +4 -0
- package/dist/ionic/p-3e47e61e.entry.js +4 -0
- package/dist/ionic/p-3e8cfe35.system.entry.js +4 -0
- package/dist/ionic/p-3e9e667a.entry.js +4 -0
- package/dist/ionic/p-3ecd1809.entry.js +4 -0
- package/dist/ionic/p-3ed32307.system.entry.js +4 -0
- package/dist/ionic/p-44d8d5c3.entry.js +4 -0
- package/dist/ionic/p-45684f75.system.entry.js +4 -0
- package/dist/ionic/p-46e489c1.entry.js +4 -0
- package/dist/ionic/p-4c2d5b80.system.js +4 -0
- package/dist/ionic/{p-b141e253.entry.js → p-4c55c5ce.entry.js} +1 -1
- package/dist/ionic/p-4c6278ca.system.entry.js +4 -0
- package/dist/ionic/p-4e7a18b3.entry.js +4 -0
- package/dist/ionic/p-4f30e4c3.system.entry.js +4 -0
- package/dist/ionic/p-52698131.entry.js +4 -0
- package/dist/ionic/p-56dfd814.entry.js +4 -0
- package/dist/ionic/{p-fbf23235.entry.js → p-57082094.entry.js} +1 -1
- package/dist/ionic/{p-239906f1.js → p-57a4c6c3.js} +1 -1
- package/dist/ionic/{p-92b05b70.system.entry.js → p-57b76977.system.entry.js} +1 -1
- package/dist/ionic/p-5919403e.js +4 -0
- package/dist/ionic/p-5fed4c24.system.entry.js +4 -0
- package/dist/ionic/p-605c456e.system.entry.js +4 -0
- package/dist/ionic/p-6087c7ac.system.entry.js +4 -0
- package/dist/ionic/p-617a8c10.system.entry.js +4 -0
- package/dist/ionic/p-62ad354a.system.entry.js +4 -0
- package/dist/ionic/{p-e1d4298f.system.entry.js → p-644df0cc.system.entry.js} +1 -1
- package/dist/ionic/p-6718dfd8.system.entry.js +4 -0
- package/dist/ionic/p-6770c46d.system.entry.js +4 -0
- package/dist/ionic/p-6981ada8.entry.js +4 -0
- package/dist/ionic/p-69e691df.system.entry.js +4 -0
- package/dist/ionic/p-6a5b979b.system.js +4 -0
- package/dist/ionic/p-6d1854de.system.entry.js +4 -0
- package/dist/ionic/p-70a396e0.entry.js +4 -0
- package/dist/ionic/p-716cc857.entry.js +4 -0
- package/dist/ionic/p-71784639.entry.js +4 -0
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/{p-91a83ede.js → p-72bc8a1c.js} +1 -1
- package/dist/ionic/{p-c629d22b.system.js → p-75257a79.system.js} +2 -2
- package/dist/ionic/p-77cdf8f0.system.entry.js +4 -0
- package/dist/ionic/{p-a2dc2ef1.system.entry.js → p-7c6ba817.system.entry.js} +1 -1
- package/dist/ionic/p-7d6993fa.entry.js +4 -0
- package/dist/ionic/{p-e0d52ee3.system.js → p-7fefe43e.system.js} +1 -1
- package/dist/ionic/{p-5b4b977f.entry.js → p-820be1bf.entry.js} +1 -1
- package/dist/ionic/p-831269de.js +4 -0
- package/dist/ionic/p-84dd4f6c.system.entry.js +4 -0
- package/dist/ionic/p-8635f5e6.system.js +4 -0
- package/dist/ionic/{p-86bdb32e.system.entry.js → p-8cd83c08.system.entry.js} +1 -1
- package/dist/ionic/p-8fbf7c49.entry.js +4 -0
- package/dist/ionic/p-8fd110c6.entry.js +4 -0
- package/dist/ionic/p-92b3df98.system.js +4 -0
- package/dist/ionic/p-9385f3c5.entry.js +4 -0
- package/dist/ionic/{p-9a4b9c91.system.entry.js → p-98ced5a7.system.entry.js} +2 -2
- package/dist/ionic/p-9a76dbbb.entry.js +4 -0
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/p-a5456295.entry.js +4 -0
- package/dist/ionic/p-a68b1b19.entry.js +4 -0
- package/dist/ionic/p-ac1eb107.system.js +4 -0
- package/dist/ionic/p-ae2c6708.system.entry.js +4 -0
- package/dist/ionic/p-ae3fdd38.entry.js +4 -0
- package/dist/ionic/{p-6a62da36.system.js → p-af732189.system.js} +1 -1
- package/dist/ionic/p-afeebbc2.entry.js +4 -0
- package/dist/ionic/p-b0bd2f28.system.entry.js +4 -0
- package/dist/ionic/p-b0da0e7e.entry.js +4 -0
- package/dist/ionic/{p-364044f0.js → p-b51e4004.js} +1 -1
- package/dist/ionic/p-b69db5bf.entry.js +4 -0
- package/dist/ionic/{p-5f6c0372.entry.js → p-b8df09fa.entry.js} +1 -1
- package/dist/ionic/p-bb01995b.entry.js +4 -0
- package/dist/ionic/p-bb4431d3.entry.js +4 -0
- package/dist/ionic/{p-cbb9269d.system.js → p-c11232d6.system.js} +1 -1
- package/dist/ionic/p-c1d0861e.entry.js +4 -0
- package/dist/ionic/p-c78731fc.system.js +4 -0
- package/dist/ionic/p-c7e3ef1f.js +4 -0
- package/dist/ionic/p-c8985963.system.js +4 -0
- package/dist/ionic/p-c957dcbd.system.entry.js +4 -0
- package/dist/ionic/{p-f8502e85.js → p-cb4da696.js} +1 -1
- package/dist/ionic/p-cc1dabd2.system.entry.js +4 -0
- package/dist/ionic/p-cd1250d7.js +4 -0
- package/dist/ionic/p-cd94b05a.system.entry.js +4 -0
- package/dist/ionic/{p-d60342e3.js → p-d2a65df9.js} +1 -1
- package/dist/ionic/p-d6788bde.system.entry.js +4 -0
- package/dist/ionic/p-d83f3852.system.entry.js +4 -0
- package/dist/ionic/p-de5f6929.system.entry.js +4 -0
- package/dist/ionic/{p-af9256a0.system.js → p-df92bab7.system.js} +1 -1
- package/dist/ionic/p-dfb6de03.system.js +4 -0
- package/dist/ionic/{p-f687573e.system.js → p-dff73ffc.system.js} +1 -1
- package/dist/ionic/p-e399a113.entry.js +4 -0
- package/dist/ionic/p-e557901b.entry.js +4 -0
- package/dist/ionic/p-e62f29e0.system.entry.js +4 -0
- package/dist/ionic/p-e7522003.js +4 -0
- package/dist/ionic/p-e86fef55.system.js +4 -0
- package/dist/ionic/p-eab67c46.system.entry.js +4 -0
- package/dist/ionic/{p-20bf9f84.entry.js → p-ed454419.entry.js} +1 -1
- package/dist/ionic/p-efdba78a.system.entry.js +4 -0
- package/dist/ionic/p-f7a041dc.js +4 -0
- package/dist/ionic/p-f85988bd.entry.js +4 -0
- package/dist/ionic/p-f9398178.entry.js +4 -0
- package/dist/ionic/p-f977c8c5.entry.js +4 -0
- package/dist/ionic/{p-a3dae2ce.js → p-fe1345b7.js} +1 -1
- package/dist/ionic/{p-647981a4.system.entry.js → p-fea6e789.system.entry.js} +1 -1
- package/dist/ionic/p-ff584ff5.entry.js +4 -0
- package/dist/ionic/p-ff93a0f3.entry.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +2 -1
- package/dist/types/components/accordion-group/accordion-group.d.ts +2 -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 -0
- package/dist/types/components/avatar/avatar.d.ts +4 -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 +2 -1
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +13 -3
- package/dist/types/components/buttons/buttons.d.ts +5 -1
- package/dist/types/components/card/card.d.ts +2 -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 +2 -1
- package/dist/types/components/chip/chip.d.ts +2 -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 +2 -1
- package/dist/types/components/datetime/utils/data.d.ts +3 -3
- 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 +3 -2
- 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 +4 -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 +3 -8
- package/dist/types/components/item/item.d.ts +4 -3
- 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 +2 -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 +2 -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 +2 -1
- package/dist/types/components/menu-toggle/menu-toggle.d.ts +3 -0
- package/dist/types/components/modal/modal-interface.d.ts +3 -7
- package/dist/types/components/modal/modal.d.ts +2 -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 -7
- 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 +3 -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 +8 -7
- package/dist/types/components/segment/segment.d.ts +2 -1
- package/dist/types/components/segment-button/segment-button.d.ts +2 -1
- package/dist/types/components/select/select.d.ts +6 -5
- 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 +4 -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 +3 -2
- package/dist/types/components/tab-button/tab-button.d.ts +2 -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 +3 -2
- 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 +3 -2
- package/dist/types/components/toggle/toggle.d.ts +2 -1
- package/dist/types/components/toolbar/toolbar.d.ts +4 -3
- package/dist/types/components.d.ts +1186 -208
- package/dist/types/global/ionic-global.d.ts +25 -2
- package/dist/types/interface.d.ts +3 -0
- package/dist/types/utils/config.d.ts +17 -2
- package/dist/types/utils/overlays-interface.d.ts +31 -1
- package/dist/types/utils/test/playwright/generator.d.ts +8 -1
- package/hydrate/index.js +1155 -630
- package/package.json +1 -1
- package/components/index9.js +0 -196
- package/components/ion-input-password-toggle.d.ts +0 -11
- package/components/ion-input-password-toggle.js +0 -132
- package/dist/cjs/index-5915f9b3.js +0 -38
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +0 -93
- package/dist/cjs/ionic-global-5762eca9.js +0 -230
- package/dist/collection/components/button/test/round/button.e2e.js +0 -17
- package/dist/collection/components/input-password-toggle/input-password-toggle.ios.css +0 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +0 -183
- package/dist/collection/components/input-password-toggle/input-password-toggle.md.css +0 -0
- package/dist/collection/components/input-password-toggle/test/a11y/input-password-toggle.e2e.js +0 -21
- package/dist/collection/components/input-password-toggle/test/basic/input-password-toggle.e2e.js +0 -38
- package/dist/collection/components/input-password-toggle/test/input-password-toggle.spec.js +0 -76
- package/dist/esm/index-9b0d46f4.js +0 -34
- package/dist/esm/ion-input-password-toggle.entry.js +0 -89
- package/dist/esm/ionic-global-a589c12c.js +0 -224
- package/dist/esm-es5/app-globals-80842d68.js +0 -4
- package/dist/esm-es5/data-ae11fd43.js +0 -4
- package/dist/esm-es5/index-0089f1fa.js +0 -4
- package/dist/esm-es5/index-044b5a86.js +0 -4
- package/dist/esm-es5/index-9b0d46f4.js +0 -4
- package/dist/esm-es5/index-fa221975.js +0 -4
- package/dist/esm-es5/input-shims-196afa11.js +0 -4
- package/dist/esm-es5/input.utils-426cc674.js +0 -4
- package/dist/esm-es5/ion-input-password-toggle.entry.js +0 -4
- package/dist/esm-es5/ionic-global-a589c12c.js +0 -4
- package/dist/esm-es5/ios.transition-632deb95.js +0 -4
- package/dist/esm-es5/md.transition-3bcf4011.js +0 -4
- package/dist/esm-es5/overlays-d41f74ac.js +0 -4
- package/dist/esm-es5/status-tap-45595148.js +0 -4
- package/dist/ionic/p-031c5621.js +0 -4
- package/dist/ionic/p-04bdc816.system.entry.js +0 -4
- package/dist/ionic/p-06fee233.js +0 -4
- package/dist/ionic/p-07759435.system.js +0 -4
- package/dist/ionic/p-07927036.system.entry.js +0 -4
- package/dist/ionic/p-0e4c9e45.system.js +0 -4
- package/dist/ionic/p-103ec049.system.entry.js +0 -4
- package/dist/ionic/p-126207f8.entry.js +0 -4
- package/dist/ionic/p-1d3f79b2.system.entry.js +0 -4
- package/dist/ionic/p-1d528988.system.entry.js +0 -4
- package/dist/ionic/p-1e955a45.system.js +0 -4
- package/dist/ionic/p-210248f5.system.entry.js +0 -4
- package/dist/ionic/p-219c17cf.system.entry.js +0 -4
- package/dist/ionic/p-23838a94.system.entry.js +0 -4
- package/dist/ionic/p-2807660b.entry.js +0 -4
- package/dist/ionic/p-282bd5f9.system.entry.js +0 -4
- package/dist/ionic/p-29ef3b9b.entry.js +0 -4
- package/dist/ionic/p-2d34b04a.system.entry.js +0 -4
- package/dist/ionic/p-2f53c3eb.js +0 -4
- package/dist/ionic/p-31794e40.system.js +0 -4
- package/dist/ionic/p-325c61a4.js +0 -4
- package/dist/ionic/p-34b8c5bc.entry.js +0 -4
- package/dist/ionic/p-3599e243.entry.js +0 -4
- package/dist/ionic/p-3739de23.system.entry.js +0 -4
- package/dist/ionic/p-3785c067.entry.js +0 -4
- package/dist/ionic/p-3895e131.system.entry.js +0 -4
- package/dist/ionic/p-38b129b6.entry.js +0 -4
- package/dist/ionic/p-38e25e67.js +0 -4
- package/dist/ionic/p-3ad1b1c5.entry.js +0 -4
- package/dist/ionic/p-3bf7a38d.system.entry.js +0 -4
- package/dist/ionic/p-3c1aac30.system.entry.js +0 -4
- package/dist/ionic/p-3d55c50f.system.entry.js +0 -4
- package/dist/ionic/p-3e6e53fe.system.entry.js +0 -4
- package/dist/ionic/p-40976b1c.system.entry.js +0 -4
- package/dist/ionic/p-456ae20a.system.entry.js +0 -4
- package/dist/ionic/p-468e20c0.system.entry.js +0 -4
- package/dist/ionic/p-49e5401f.entry.js +0 -4
- package/dist/ionic/p-4a20a758.system.entry.js +0 -4
- package/dist/ionic/p-4b318f5e.system.entry.js +0 -4
- package/dist/ionic/p-4d21e85e.system.entry.js +0 -4
- package/dist/ionic/p-4decdc16.system.entry.js +0 -4
- package/dist/ionic/p-50633cad.entry.js +0 -4
- package/dist/ionic/p-527e1d8a.entry.js +0 -4
- package/dist/ionic/p-5644df37.entry.js +0 -4
- package/dist/ionic/p-564554d0.system.js +0 -4
- package/dist/ionic/p-56864c25.system.js +0 -4
- package/dist/ionic/p-57a3b59e.system.entry.js +0 -4
- package/dist/ionic/p-5b52897c.js +0 -4
- package/dist/ionic/p-5c6d4276.entry.js +0 -4
- package/dist/ionic/p-652a7913.js +0 -4
- package/dist/ionic/p-659d8f84.entry.js +0 -4
- package/dist/ionic/p-66e50777.entry.js +0 -4
- package/dist/ionic/p-6f734552.system.entry.js +0 -4
- package/dist/ionic/p-7002bc75.entry.js +0 -4
- package/dist/ionic/p-7abeea68.system.entry.js +0 -4
- package/dist/ionic/p-7b8ece87.entry.js +0 -4
- package/dist/ionic/p-7c4c37ae.system.js +0 -4
- package/dist/ionic/p-7c7e495d.system.js +0 -4
- package/dist/ionic/p-84025e3c.entry.js +0 -4
- package/dist/ionic/p-8412860b.system.entry.js +0 -4
- package/dist/ionic/p-8543c360.system.entry.js +0 -4
- package/dist/ionic/p-8818519d.entry.js +0 -4
- package/dist/ionic/p-887984fc.entry.js +0 -4
- package/dist/ionic/p-8ed900e4.entry.js +0 -4
- package/dist/ionic/p-91567c90.system.entry.js +0 -4
- package/dist/ionic/p-96c06026.entry.js +0 -4
- package/dist/ionic/p-978f4710.js +0 -4
- package/dist/ionic/p-9b5d033a.system.entry.js +0 -4
- package/dist/ionic/p-9d00a694.system.entry.js +0 -4
- package/dist/ionic/p-9e3177a5.system.js +0 -4
- package/dist/ionic/p-9fd5857a.system.entry.js +0 -4
- package/dist/ionic/p-a668e0d4.entry.js +0 -4
- package/dist/ionic/p-a6ac25f2.entry.js +0 -4
- package/dist/ionic/p-a6bce1f5.js +0 -4
- package/dist/ionic/p-a7270027.system.entry.js +0 -4
- package/dist/ionic/p-a9d2fa95.entry.js +0 -4
- package/dist/ionic/p-ac585dba.entry.js +0 -4
- package/dist/ionic/p-b05c33d0.system.entry.js +0 -4
- package/dist/ionic/p-b6d1ce6c.entry.js +0 -4
- package/dist/ionic/p-bb01ff24.system.entry.js +0 -4
- package/dist/ionic/p-bb151f4b.entry.js +0 -4
- package/dist/ionic/p-c385e49d.entry.js +0 -4
- package/dist/ionic/p-c3f5d0e7.js +0 -4
- package/dist/ionic/p-c83741f7.entry.js +0 -4
- package/dist/ionic/p-c8383c20.entry.js +0 -4
- package/dist/ionic/p-c947155d.entry.js +0 -4
- package/dist/ionic/p-cb970588.entry.js +0 -4
- package/dist/ionic/p-cc769fb6.system.entry.js +0 -4
- package/dist/ionic/p-cc978d16.system.entry.js +0 -4
- package/dist/ionic/p-ce436e94.system.entry.js +0 -4
- package/dist/ionic/p-ce9eafa3.entry.js +0 -4
- package/dist/ionic/p-cf07fee5.entry.js +0 -4
- package/dist/ionic/p-d0adc028.system.entry.js +0 -4
- package/dist/ionic/p-d0d674d0.entry.js +0 -4
- package/dist/ionic/p-d35d485c.entry.js +0 -4
- package/dist/ionic/p-d704f798.system.js +0 -4
- package/dist/ionic/p-d80b7e31.system.js +0 -4
- package/dist/ionic/p-d834c508.entry.js +0 -4
- package/dist/ionic/p-da2b833b.js +0 -4
- package/dist/ionic/p-da5bbd4f.entry.js +0 -4
- package/dist/ionic/p-dbd782ec.system.entry.js +0 -4
- package/dist/ionic/p-e066780e.js +0 -4
- package/dist/ionic/p-e170e351.js +0 -4
- package/dist/ionic/p-e7b0b64d.system.js +0 -4
- package/dist/ionic/p-e7cd7553.system.js +0 -4
- package/dist/ionic/p-f270059b.entry.js +0 -4
- package/dist/ionic/p-f40aa619.entry.js +0 -4
- package/dist/ionic/p-f47c47f2.system.entry.js +0 -4
- package/dist/ionic/p-facad328.entry.js +0 -4
- package/dist/ionic/p-fe5ff8fb.system.entry.js +0 -4
- package/dist/ionic/p-fe8f0dd2.entry.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +0 -37
|
@@ -5,22 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index
|
|
8
|
+
const index = require('./index-2d21d526.js');
|
|
9
9
|
const focusVisible = require('./focus-visible-7a0ce04f.js');
|
|
10
|
-
const helpers = require('./helpers-
|
|
11
|
-
const
|
|
10
|
+
const helpers = require('./helpers-afaa9001.js');
|
|
11
|
+
const ionicGlobal = require('./ionic-global-94d8021d.js');
|
|
12
12
|
const dir = require('./dir-94c21456.js');
|
|
13
13
|
const theme = require('./theme-d1c573d2.js');
|
|
14
|
-
const index$
|
|
15
|
-
const
|
|
16
|
-
const data = require('./data-21dc0f81.js');
|
|
14
|
+
const index$1 = require('./index-f52c6d38.js');
|
|
15
|
+
const data = require('./data-f2ccf911.js');
|
|
17
16
|
const lockController = require('./lock-controller-6585a42a.js');
|
|
18
|
-
const overlays = require('./overlays-
|
|
17
|
+
const overlays = require('./overlays-de847251.js');
|
|
19
18
|
const animation = require('./animation-b4fdf128.js');
|
|
20
19
|
const haptic = require('./haptic-f6b37aa3.js');
|
|
21
20
|
require('./index-c8d52405.js');
|
|
22
|
-
require('./hardware-back-button-
|
|
23
|
-
require('./framework-delegate-
|
|
21
|
+
require('./hardware-back-button-f66bce00.js');
|
|
22
|
+
require('./framework-delegate-55f5683a.js');
|
|
24
23
|
require('./gesture-controller-9436f482.js');
|
|
25
24
|
require('./capacitor-c04564bf.js');
|
|
26
25
|
|
|
@@ -185,7 +184,7 @@ const getHighlightStyles = (highlightedDates, dateIsoString, el) => {
|
|
|
185
184
|
return highlightedDates(dateIsoString);
|
|
186
185
|
}
|
|
187
186
|
catch (e) {
|
|
188
|
-
|
|
187
|
+
ionicGlobal.printIonError('Exception thrown from provided `highlightedDates` callback. Please check your function and try again.', el, e);
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
return undefined;
|
|
@@ -202,7 +201,7 @@ const warnIfTimeZoneProvided = (el, formatOptions) => {
|
|
|
202
201
|
((_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _b === void 0 ? void 0 : _b.timeZoneName) ||
|
|
203
202
|
((_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _c === void 0 ? void 0 : _c.timeZone) ||
|
|
204
203
|
((_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _d === void 0 ? void 0 : _d.timeZoneName)) {
|
|
205
|
-
|
|
204
|
+
ionicGlobal.printIonWarning('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".', el);
|
|
206
205
|
}
|
|
207
206
|
};
|
|
208
207
|
const checkForPresentationFormatMismatch = (el, presentation, formatOptions) => {
|
|
@@ -216,23 +215,26 @@ const checkForPresentationFormatMismatch = (el, presentation, formatOptions) =>
|
|
|
216
215
|
case 'month':
|
|
217
216
|
case 'year':
|
|
218
217
|
if (formatOptions.date === undefined) {
|
|
219
|
-
|
|
218
|
+
ionicGlobal.printIonWarning(`Datetime: The '${presentation}' presentation requires a date object in formatOptions.`, el);
|
|
220
219
|
}
|
|
221
220
|
break;
|
|
222
221
|
case 'time':
|
|
223
222
|
if (formatOptions.time === undefined) {
|
|
224
|
-
|
|
223
|
+
ionicGlobal.printIonWarning(`Datetime: The 'time' presentation requires a time object in formatOptions.`, el);
|
|
225
224
|
}
|
|
226
225
|
break;
|
|
227
226
|
case 'date-time':
|
|
228
227
|
case 'time-date':
|
|
229
228
|
if (formatOptions.date === undefined && formatOptions.time === undefined) {
|
|
230
|
-
|
|
229
|
+
ionicGlobal.printIonWarning(`Datetime: The '${presentation}' presentation requires either a date or time object (or both) in formatOptions.`, el);
|
|
231
230
|
}
|
|
232
231
|
break;
|
|
233
232
|
}
|
|
234
233
|
};
|
|
235
234
|
|
|
235
|
+
const ionicDatetimeMdCss = ":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-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}";
|
|
236
|
+
const IonDatetimeIonicStyle0 = ionicDatetimeMdCss;
|
|
237
|
+
|
|
236
238
|
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%}";
|
|
237
239
|
const IonDatetimeIosStyle0 = datetimeIosCss;
|
|
238
240
|
|
|
@@ -241,14 +243,14 @@ const IonDatetimeMdStyle0 = datetimeMdCss;
|
|
|
241
243
|
|
|
242
244
|
const Datetime = class {
|
|
243
245
|
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
|
|
246
|
+
index.registerInstance(this, hostRef);
|
|
247
|
+
this.ionCancel = index.createEvent(this, "ionCancel", 7);
|
|
248
|
+
this.ionChange = index.createEvent(this, "ionChange", 7);
|
|
249
|
+
this.ionValueChange = index.createEvent(this, "ionValueChange", 7);
|
|
250
|
+
this.ionFocus = index.createEvent(this, "ionFocus", 7);
|
|
251
|
+
this.ionBlur = index.createEvent(this, "ionBlur", 7);
|
|
252
|
+
this.ionStyle = index.createEvent(this, "ionStyle", 7);
|
|
253
|
+
this.ionRender = index.createEvent(this, "ionRender", 7);
|
|
252
254
|
this.inputId = `ion-dt-${datetimeIds++}`;
|
|
253
255
|
this.prevPresentation = null;
|
|
254
256
|
this.warnIfIncorrectValueUsage = () => {
|
|
@@ -262,7 +264,7 @@ const Datetime = class {
|
|
|
262
264
|
* Default toString() behavior: a,b
|
|
263
265
|
* Custom behavior: ['a', 'b']
|
|
264
266
|
*/
|
|
265
|
-
|
|
267
|
+
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".
|
|
266
268
|
|
|
267
269
|
Value Passed: [${value.map((v) => `'${v}'`).join(', ')}]
|
|
268
270
|
`, this.el);
|
|
@@ -511,7 +513,7 @@ const Datetime = class {
|
|
|
511
513
|
* scrollIntoView() will scroll entire page
|
|
512
514
|
* if element is not in viewport. Use scrollLeft instead.
|
|
513
515
|
*/
|
|
514
|
-
index
|
|
516
|
+
index.writeTask(() => {
|
|
515
517
|
calendarBodyRef.scrollLeft = startMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
516
518
|
const getChangedMonth = (parts) => {
|
|
517
519
|
const box = calendarBodyRef.getBoundingClientRect();
|
|
@@ -602,7 +604,7 @@ const Datetime = class {
|
|
|
602
604
|
* but older/slower device may have a flicker
|
|
603
605
|
* if we did not do this.
|
|
604
606
|
*/
|
|
605
|
-
index
|
|
607
|
+
index.writeTask(() => {
|
|
606
608
|
this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month, day: day, year }));
|
|
607
609
|
calendarBodyRef.scrollLeft = workingMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
608
610
|
calendarBodyRef.style.removeProperty('overflow');
|
|
@@ -1027,7 +1029,7 @@ const Datetime = class {
|
|
|
1027
1029
|
* is that the content will pop into view a frame after. Maybe there
|
|
1028
1030
|
* is a better way to handle this?
|
|
1029
1031
|
*/
|
|
1030
|
-
index
|
|
1032
|
+
index.writeTask(() => {
|
|
1031
1033
|
this.el.classList.add('datetime-ready');
|
|
1032
1034
|
});
|
|
1033
1035
|
};
|
|
@@ -1060,7 +1062,7 @@ const Datetime = class {
|
|
|
1060
1062
|
* As a result, the wrong month will be shown.
|
|
1061
1063
|
*/
|
|
1062
1064
|
this.showMonthAndYear = false;
|
|
1063
|
-
index
|
|
1065
|
+
index.writeTask(() => {
|
|
1064
1066
|
this.el.classList.remove('datetime-ready');
|
|
1065
1067
|
});
|
|
1066
1068
|
};
|
|
@@ -1142,18 +1144,18 @@ const Datetime = class {
|
|
|
1142
1144
|
const { el, formatOptions, highlightedDates, multiple, presentation, preferWheel } = this;
|
|
1143
1145
|
if (multiple) {
|
|
1144
1146
|
if (presentation !== 'date') {
|
|
1145
|
-
|
|
1147
|
+
ionicGlobal.printIonWarning('Multiple date selection is only supported for presentation="date".', el);
|
|
1146
1148
|
}
|
|
1147
1149
|
if (preferWheel) {
|
|
1148
|
-
|
|
1150
|
+
ionicGlobal.printIonWarning('Multiple date selection is not supported with preferWheel="true".', el);
|
|
1149
1151
|
}
|
|
1150
1152
|
}
|
|
1151
1153
|
if (highlightedDates !== undefined) {
|
|
1152
1154
|
if (presentation !== 'date' && presentation !== 'date-time' && presentation !== 'time-date') {
|
|
1153
|
-
|
|
1155
|
+
ionicGlobal.printIonWarning('The highlightedDates property is only supported with the date, date-time, and time-date presentations.', el);
|
|
1154
1156
|
}
|
|
1155
1157
|
if (preferWheel) {
|
|
1156
|
-
|
|
1158
|
+
ionicGlobal.printIonWarning('The highlightedDates property is not supported with preferWheel="true".', el);
|
|
1157
1159
|
}
|
|
1158
1160
|
}
|
|
1159
1161
|
if (formatOptions) {
|
|
@@ -1216,10 +1218,10 @@ const Datetime = class {
|
|
|
1216
1218
|
* OK - Dismisses the datetime and
|
|
1217
1219
|
* updates the `value` prop.
|
|
1218
1220
|
*/
|
|
1219
|
-
return (index
|
|
1221
|
+
return (index.h("div", { class: "datetime-footer" }, index.h("div", { class: "datetime-buttons" }, index.h("div", { class: {
|
|
1220
1222
|
['datetime-action-buttons']: true,
|
|
1221
1223
|
['has-clear-button']: this.showClearButton,
|
|
1222
|
-
} }, index
|
|
1224
|
+
} }, 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 }, this.doneText)))))))));
|
|
1223
1225
|
}
|
|
1224
1226
|
/**
|
|
1225
1227
|
* Wheel picker render methods
|
|
@@ -1237,7 +1239,7 @@ const Datetime = class {
|
|
|
1237
1239
|
const renderArray = forcePresentation === 'time-date'
|
|
1238
1240
|
? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
|
|
1239
1241
|
: [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
|
|
1240
|
-
return index
|
|
1242
|
+
return index.h("ion-picker", null, renderArray);
|
|
1241
1243
|
}
|
|
1242
1244
|
renderDatePickerColumns(forcePresentation) {
|
|
1243
1245
|
return forcePresentation === 'date-time' || forcePresentation === 'time-date'
|
|
@@ -1272,8 +1274,8 @@ const Datetime = class {
|
|
|
1272
1274
|
let items = result.items;
|
|
1273
1275
|
const parts = result.parts;
|
|
1274
1276
|
if (isDateEnabled) {
|
|
1275
|
-
items = items.map((itemObject, index
|
|
1276
|
-
const referenceParts = parts[index
|
|
1277
|
+
items = items.map((itemObject, index) => {
|
|
1278
|
+
const referenceParts = parts[index];
|
|
1277
1279
|
let disabled;
|
|
1278
1280
|
try {
|
|
1279
1281
|
/**
|
|
@@ -1284,7 +1286,7 @@ const Datetime = class {
|
|
|
1284
1286
|
disabled = !isDateEnabled(data.convertDataToISO(referenceParts));
|
|
1285
1287
|
}
|
|
1286
1288
|
catch (e) {
|
|
1287
|
-
|
|
1289
|
+
ionicGlobal.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1288
1290
|
}
|
|
1289
1291
|
return Object.assign(Object.assign({}, itemObject), { disabled });
|
|
1290
1292
|
});
|
|
@@ -1296,13 +1298,13 @@ const Datetime = class {
|
|
|
1296
1298
|
const todayString = workingParts.day !== null
|
|
1297
1299
|
? `${workingParts.year}-${workingParts.month}-${workingParts.day}`
|
|
1298
1300
|
: `${defaultParts.year}-${defaultParts.month}-${defaultParts.day}`;
|
|
1299
|
-
return (index
|
|
1301
|
+
return (index.h("ion-picker-column", { class: "date-column", color: this.color, disabled: disabled, value: todayString, onIonChange: (ev) => {
|
|
1300
1302
|
const { value } = ev.detail;
|
|
1301
1303
|
const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`);
|
|
1302
1304
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
|
|
1303
1305
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), findPart));
|
|
1304
1306
|
ev.stopPropagation();
|
|
1305
|
-
} }, items.map((item) => (index
|
|
1307
|
+
} }, 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)))));
|
|
1306
1308
|
}
|
|
1307
1309
|
renderIndividualDatePickerColumns(forcePresentation) {
|
|
1308
1310
|
const { workingParts, isDateEnabled } = this;
|
|
@@ -1333,7 +1335,7 @@ const Datetime = class {
|
|
|
1333
1335
|
disabled = !isDateEnabled(data.convertDataToISO(referenceParts));
|
|
1334
1336
|
}
|
|
1335
1337
|
catch (e) {
|
|
1336
|
-
|
|
1338
|
+
ionicGlobal.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1337
1339
|
}
|
|
1338
1340
|
return Object.assign(Object.assign({}, dayObject), { disabled });
|
|
1339
1341
|
});
|
|
@@ -1371,11 +1373,11 @@ const Datetime = class {
|
|
|
1371
1373
|
const { disabled, workingParts } = this;
|
|
1372
1374
|
const activePart = this.getActivePartsWithFallback();
|
|
1373
1375
|
const pickerColumnValue = (_a = (workingParts.day !== null ? workingParts.day : this.defaultParts.day)) !== null && _a !== void 0 ? _a : undefined;
|
|
1374
|
-
return (index
|
|
1376
|
+
return (index.h("ion-picker-column", { class: "day-column", color: this.color, disabled: disabled, value: pickerColumnValue, onIonChange: (ev) => {
|
|
1375
1377
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
|
|
1376
1378
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { day: ev.detail.value }));
|
|
1377
1379
|
ev.stopPropagation();
|
|
1378
|
-
} }, days.map((day) => (index
|
|
1380
|
+
} }, 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)))));
|
|
1379
1381
|
}
|
|
1380
1382
|
renderMonthPickerColumn(months) {
|
|
1381
1383
|
if (months.length === 0) {
|
|
@@ -1383,11 +1385,11 @@ const Datetime = class {
|
|
|
1383
1385
|
}
|
|
1384
1386
|
const { disabled, workingParts } = this;
|
|
1385
1387
|
const activePart = this.getActivePartsWithFallback();
|
|
1386
|
-
return (index
|
|
1388
|
+
return (index.h("ion-picker-column", { class: "month-column", color: this.color, disabled: disabled, value: workingParts.month, onIonChange: (ev) => {
|
|
1387
1389
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { month: ev.detail.value }));
|
|
1388
1390
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { month: ev.detail.value }));
|
|
1389
1391
|
ev.stopPropagation();
|
|
1390
|
-
} }, months.map((month) => (index
|
|
1392
|
+
} }, 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)))));
|
|
1391
1393
|
}
|
|
1392
1394
|
renderYearPickerColumn(years) {
|
|
1393
1395
|
if (years.length === 0) {
|
|
@@ -1395,11 +1397,11 @@ const Datetime = class {
|
|
|
1395
1397
|
}
|
|
1396
1398
|
const { disabled, workingParts } = this;
|
|
1397
1399
|
const activePart = this.getActivePartsWithFallback();
|
|
1398
|
-
return (index
|
|
1400
|
+
return (index.h("ion-picker-column", { class: "year-column", color: this.color, disabled: disabled, value: workingParts.year, onIonChange: (ev) => {
|
|
1399
1401
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { year: ev.detail.value }));
|
|
1400
1402
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { year: ev.detail.value }));
|
|
1401
1403
|
ev.stopPropagation();
|
|
1402
|
-
} }, years.map((year) => (index
|
|
1404
|
+
} }, 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)))));
|
|
1403
1405
|
}
|
|
1404
1406
|
renderTimePickerColumns(forcePresentation) {
|
|
1405
1407
|
if (['date', 'month', 'month-year', 'year'].includes(forcePresentation)) {
|
|
@@ -1428,22 +1430,22 @@ const Datetime = class {
|
|
|
1428
1430
|
if (hoursData.length === 0)
|
|
1429
1431
|
return [];
|
|
1430
1432
|
const activePart = this.getActivePartsWithFallback();
|
|
1431
|
-
return (index
|
|
1433
|
+
return (index.h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
|
|
1432
1434
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
|
|
1433
1435
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { hour: ev.detail.value }));
|
|
1434
1436
|
ev.stopPropagation();
|
|
1435
|
-
} }, hoursData.map((hour) => (index
|
|
1437
|
+
} }, 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)))));
|
|
1436
1438
|
}
|
|
1437
1439
|
renderMinutePickerColumn(minutesData) {
|
|
1438
1440
|
const { disabled, workingParts } = this;
|
|
1439
1441
|
if (minutesData.length === 0)
|
|
1440
1442
|
return [];
|
|
1441
1443
|
const activePart = this.getActivePartsWithFallback();
|
|
1442
|
-
return (index
|
|
1444
|
+
return (index.h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
|
|
1443
1445
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
|
|
1444
1446
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { minute: ev.detail.value }));
|
|
1445
1447
|
ev.stopPropagation();
|
|
1446
|
-
} }, minutesData.map((minute) => (index
|
|
1448
|
+
} }, 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)))));
|
|
1447
1449
|
}
|
|
1448
1450
|
renderDayPeriodPickerColumn(dayPeriodData) {
|
|
1449
1451
|
const { disabled, workingParts } = this;
|
|
@@ -1452,38 +1454,38 @@ const Datetime = class {
|
|
|
1452
1454
|
}
|
|
1453
1455
|
const activePart = this.getActivePartsWithFallback();
|
|
1454
1456
|
const isDayPeriodRTL = data.isLocaleDayPeriodRTL(this.locale);
|
|
1455
|
-
return (index
|
|
1457
|
+
return (index.h("ion-picker-column", { style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
|
|
1456
1458
|
const hour = data.calculateHourFromAMPM(workingParts, ev.detail.value);
|
|
1457
1459
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
|
|
1458
1460
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { ampm: ev.detail.value, hour }));
|
|
1459
1461
|
ev.stopPropagation();
|
|
1460
|
-
} }, dayPeriodData.map((dayPeriod) => (index
|
|
1462
|
+
} }, 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)))));
|
|
1461
1463
|
}
|
|
1462
1464
|
renderWheelView(forcePresentation) {
|
|
1463
1465
|
const { locale } = this;
|
|
1464
1466
|
const showMonthFirst = data.isMonthFirstLocale(locale);
|
|
1465
1467
|
const columnOrder = showMonthFirst ? 'month-first' : 'year-first';
|
|
1466
|
-
return (index
|
|
1468
|
+
return (index.h("div", { class: {
|
|
1467
1469
|
[`wheel-order-${columnOrder}`]: true,
|
|
1468
1470
|
} }, this.renderWheelPicker(forcePresentation)));
|
|
1469
1471
|
}
|
|
1470
1472
|
/**
|
|
1471
1473
|
* Grid Render Methods
|
|
1472
1474
|
*/
|
|
1473
|
-
renderCalendarHeader(
|
|
1475
|
+
renderCalendarHeader(theme) {
|
|
1474
1476
|
const { disabled } = this;
|
|
1475
|
-
const expandedIcon =
|
|
1476
|
-
const collapsedIcon =
|
|
1477
|
+
const expandedIcon = theme === 'ios' ? index$1.chevronDown : index$1.caretUpSharp;
|
|
1478
|
+
const collapsedIcon = theme === 'ios' ? index$1.chevronForward : index$1.caretDownSharp;
|
|
1477
1479
|
const prevMonthDisabled = disabled || isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
|
|
1478
1480
|
const nextMonthDisabled = disabled || isNextMonthDisabled(this.workingParts, this.maxParts);
|
|
1479
1481
|
// don't use the inheritAttributes util because it removes dir from the host, and we still need that
|
|
1480
1482
|
const hostDir = this.el.getAttribute('dir') || undefined;
|
|
1481
|
-
return (index
|
|
1483
|
+
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: {
|
|
1482
1484
|
'calendar-month-year-toggle': true,
|
|
1483
1485
|
'ion-activatable': true,
|
|
1484
1486
|
'ion-focusable': true,
|
|
1485
|
-
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, index
|
|
1486
|
-
return index
|
|
1487
|
+
}, 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), index.h("ion-icon", { "aria-hidden": "true", icon: this.showMonthAndYear ? expandedIcon : collapsedIcon, 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: index$1.chevronBack, 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: index$1.chevronForward, 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) => {
|
|
1488
|
+
return index.h("div", { class: "day-of-week" }, d);
|
|
1487
1489
|
}))));
|
|
1488
1490
|
}
|
|
1489
1491
|
renderMonth(month, year) {
|
|
@@ -1509,11 +1511,11 @@ const Datetime = class {
|
|
|
1509
1511
|
// can free-scroll the calendar.
|
|
1510
1512
|
const isWorkingMonth = this.workingParts.month === month && this.workingParts.year === year;
|
|
1511
1513
|
const activePart = this.getActivePartsWithFallback();
|
|
1512
|
-
return (index
|
|
1514
|
+
return (index.h("div", { "aria-hidden": !isWorkingMonth ? 'true' : null, class: {
|
|
1513
1515
|
'calendar-month': true,
|
|
1514
1516
|
// Prevents scroll snap swipe gestures for months outside of the min/max bounds
|
|
1515
1517
|
'calendar-month-disabled': !isWorkingMonth && swipeDisabled,
|
|
1516
|
-
} }, index
|
|
1518
|
+
} }, index.h("div", { class: "calendar-month-grid" }, data.getDaysOfMonth(month, year, this.firstDayOfWeek % 7).map((dateObject, index$1) => {
|
|
1517
1519
|
const { day, dayOfWeek } = dateObject;
|
|
1518
1520
|
const { el, highlightedDates, isDateEnabled, multiple } = this;
|
|
1519
1521
|
const referenceParts = { month, day, year };
|
|
@@ -1531,7 +1533,7 @@ const Datetime = class {
|
|
|
1531
1533
|
isCalDayDisabled = !isDateEnabled(dateIsoString);
|
|
1532
1534
|
}
|
|
1533
1535
|
catch (e) {
|
|
1534
|
-
|
|
1536
|
+
ionicGlobal.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', el, e);
|
|
1535
1537
|
}
|
|
1536
1538
|
}
|
|
1537
1539
|
/**
|
|
@@ -1555,7 +1557,7 @@ const Datetime = class {
|
|
|
1555
1557
|
if (!isCalendarPadding) {
|
|
1556
1558
|
dateParts = `calendar-day${isActive ? ' active' : ''}${isToday ? ' today' : ''}${isCalDayDisabled ? ' disabled' : ''}`;
|
|
1557
1559
|
}
|
|
1558
|
-
return (index
|
|
1560
|
+
return (index.h("div", { class: "calendar-day-wrapper" }, index.h("button", {
|
|
1559
1561
|
// We need to use !important for the inline styles here because
|
|
1560
1562
|
// otherwise the CSS shadow parts will override these styles.
|
|
1561
1563
|
// See https://github.com/WICG/webcomponents/issues/847
|
|
@@ -1567,7 +1569,7 @@ const Datetime = class {
|
|
|
1567
1569
|
el.style.setProperty('color', `${dateStyle ? dateStyle.textColor : ''}`, 'important');
|
|
1568
1570
|
el.style.setProperty('background-color', `${dateStyle ? dateStyle.backgroundColor : ''}`, 'important');
|
|
1569
1571
|
}
|
|
1570
|
-
}, tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$
|
|
1572
|
+
}, tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$1, "data-day-of-week": dayOfWeek, disabled: isButtonDisabled, class: {
|
|
1571
1573
|
'calendar-day-padding': isCalendarPadding,
|
|
1572
1574
|
'calendar-day': true,
|
|
1573
1575
|
'calendar-day-active': isActive,
|
|
@@ -1598,27 +1600,27 @@ const Datetime = class {
|
|
|
1598
1600
|
}))));
|
|
1599
1601
|
}
|
|
1600
1602
|
renderCalendarBody() {
|
|
1601
|
-
return (index
|
|
1603
|
+
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 }) => {
|
|
1602
1604
|
return this.renderMonth(month, year);
|
|
1603
1605
|
})));
|
|
1604
1606
|
}
|
|
1605
|
-
renderCalendar(
|
|
1606
|
-
return (index
|
|
1607
|
+
renderCalendar(theme) {
|
|
1608
|
+
return (index.h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(theme), this.renderCalendarBody()));
|
|
1607
1609
|
}
|
|
1608
1610
|
renderTimeLabel() {
|
|
1609
1611
|
const hasSlottedTimeLabel = this.el.querySelector('[slot="time-label"]') !== null;
|
|
1610
1612
|
if (!hasSlottedTimeLabel && !this.showDefaultTimeLabel) {
|
|
1611
1613
|
return;
|
|
1612
1614
|
}
|
|
1613
|
-
return index
|
|
1615
|
+
return index.h("slot", { name: "time-label" }, "Time");
|
|
1614
1616
|
}
|
|
1615
1617
|
renderTimeOverlay() {
|
|
1616
1618
|
const { disabled, hourCycle, isTimePopoverOpen, locale, formatOptions } = this;
|
|
1617
1619
|
const computedHourCycle = data.getHourCycle(locale, hourCycle);
|
|
1618
1620
|
const activePart = this.getActivePartsWithFallback();
|
|
1619
1621
|
return [
|
|
1620
|
-
index
|
|
1621
|
-
index
|
|
1622
|
+
index.h("div", { class: "time-header" }, this.renderTimeLabel()),
|
|
1623
|
+
index.h("button", { class: {
|
|
1622
1624
|
'time-body': true,
|
|
1623
1625
|
'time-body-active': isTimePopoverOpen,
|
|
1624
1626
|
}, part: `time-button${isTimePopoverOpen ? ' active' : ''}`, "aria-expanded": "false", "aria-haspopup": "true", disabled: disabled, onClick: async (ev) => {
|
|
@@ -1634,7 +1636,7 @@ const Datetime = class {
|
|
|
1634
1636
|
this.isTimePopoverOpen = false;
|
|
1635
1637
|
}
|
|
1636
1638
|
} }, data.getLocalizedTime(locale, activePart, computedHourCycle, formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time)),
|
|
1637
|
-
index
|
|
1639
|
+
index.h("ion-popover", { alignment: "center", translucent: true, overlayIndex: 1, arrow: false, onWillPresent: (ev) => {
|
|
1638
1640
|
/**
|
|
1639
1641
|
* Intersection Observers do not consistently fire between Blink and Webkit
|
|
1640
1642
|
* when toggling the visibility of the popover and trying to scroll the picker
|
|
@@ -1667,7 +1669,7 @@ const Datetime = class {
|
|
|
1667
1669
|
headerText = titleSelectedDatesFormatter(data.convertDataToISO(activeParts));
|
|
1668
1670
|
}
|
|
1669
1671
|
catch (e) {
|
|
1670
|
-
|
|
1672
|
+
ionicGlobal.printIonError('Exception in provided `titleSelectedDatesFormatter`: ', e);
|
|
1671
1673
|
}
|
|
1672
1674
|
}
|
|
1673
1675
|
}
|
|
@@ -1682,7 +1684,7 @@ const Datetime = class {
|
|
|
1682
1684
|
if (!hasSlottedTitle && !this.showDefaultTitle) {
|
|
1683
1685
|
return;
|
|
1684
1686
|
}
|
|
1685
|
-
return (index
|
|
1687
|
+
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())));
|
|
1686
1688
|
}
|
|
1687
1689
|
/**
|
|
1688
1690
|
* Render time picker inside of datetime.
|
|
@@ -1694,7 +1696,7 @@ const Datetime = class {
|
|
|
1694
1696
|
renderTime() {
|
|
1695
1697
|
const { presentation } = this;
|
|
1696
1698
|
const timeOnlyPresentation = presentation === 'time';
|
|
1697
|
-
return (index
|
|
1699
|
+
return (index.h("div", { class: "datetime-time" }, timeOnlyPresentation ? this.renderWheelPicker() : this.renderTimeOverlay()));
|
|
1698
1700
|
}
|
|
1699
1701
|
/**
|
|
1700
1702
|
* Renders the month/year picker that is
|
|
@@ -1705,13 +1707,13 @@ const Datetime = class {
|
|
|
1705
1707
|
* toggle in the calendar header.
|
|
1706
1708
|
*/
|
|
1707
1709
|
renderCalendarViewMonthYearPicker() {
|
|
1708
|
-
return index
|
|
1710
|
+
return index.h("div", { class: "datetime-year" }, this.renderWheelView('month-year'));
|
|
1709
1711
|
}
|
|
1710
1712
|
/**
|
|
1711
1713
|
* Render entry point
|
|
1712
1714
|
* All presentation types are rendered from here.
|
|
1713
1715
|
*/
|
|
1714
|
-
renderDatetime(
|
|
1716
|
+
renderDatetime(theme) {
|
|
1715
1717
|
const { presentation, preferWheel } = this;
|
|
1716
1718
|
/**
|
|
1717
1719
|
* Certain presentation types have separate grid and wheel displays.
|
|
@@ -1725,7 +1727,7 @@ const Datetime = class {
|
|
|
1725
1727
|
case 'date-time':
|
|
1726
1728
|
return [
|
|
1727
1729
|
this.renderHeader(),
|
|
1728
|
-
this.renderCalendar(
|
|
1730
|
+
this.renderCalendar(theme),
|
|
1729
1731
|
this.renderCalendarViewMonthYearPicker(),
|
|
1730
1732
|
this.renderTime(),
|
|
1731
1733
|
this.renderFooter(),
|
|
@@ -1734,7 +1736,7 @@ const Datetime = class {
|
|
|
1734
1736
|
return [
|
|
1735
1737
|
this.renderHeader(),
|
|
1736
1738
|
this.renderTime(),
|
|
1737
|
-
this.renderCalendar(
|
|
1739
|
+
this.renderCalendar(theme),
|
|
1738
1740
|
this.renderCalendarViewMonthYearPicker(),
|
|
1739
1741
|
this.renderFooter(),
|
|
1740
1742
|
];
|
|
@@ -1747,7 +1749,7 @@ const Datetime = class {
|
|
|
1747
1749
|
default:
|
|
1748
1750
|
return [
|
|
1749
1751
|
this.renderHeader(),
|
|
1750
|
-
this.renderCalendar(
|
|
1752
|
+
this.renderCalendar(theme),
|
|
1751
1753
|
this.renderCalendarViewMonthYearPicker(),
|
|
1752
1754
|
this.renderFooter(),
|
|
1753
1755
|
];
|
|
@@ -1755,15 +1757,15 @@ const Datetime = class {
|
|
|
1755
1757
|
}
|
|
1756
1758
|
render() {
|
|
1757
1759
|
const { name, value, disabled, el, color, readonly, showMonthAndYear, preferWheel, presentation, size, isGridStyle, } = this;
|
|
1758
|
-
const
|
|
1760
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
1759
1761
|
const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year';
|
|
1760
1762
|
const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation;
|
|
1761
1763
|
const monthYearPickerOpen = showMonthAndYear && !isMonthAndYearPresentation;
|
|
1762
1764
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1763
1765
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1764
1766
|
helpers.renderHiddenInput(true, el, name, data.formatValue(value), disabled);
|
|
1765
|
-
return (index
|
|
1766
|
-
[
|
|
1767
|
+
return (index.h(index.Host, { key: '54afe8aefdc36f7cc5001d141e2f22b94fc7d9f8', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, theme.createColorClasses(color, {
|
|
1768
|
+
[theme$1]: true,
|
|
1767
1769
|
['datetime-readonly']: readonly,
|
|
1768
1770
|
['datetime-disabled']: disabled,
|
|
1769
1771
|
'show-month-and-year': shouldShowMonthAndYear,
|
|
@@ -1772,9 +1774,9 @@ const Datetime = class {
|
|
|
1772
1774
|
[`datetime-size-${size}`]: true,
|
|
1773
1775
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1774
1776
|
[`datetime-grid`]: isGridStyle,
|
|
1775
|
-
})) }, index
|
|
1777
|
+
})) }, index.h("div", { key: '632747f7ee8a54eafb16179f5039ba1df98ecd76', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(theme$1)));
|
|
1776
1778
|
}
|
|
1777
|
-
get el() { return index
|
|
1779
|
+
get el() { return index.getElement(this); }
|
|
1778
1780
|
static get watchers() { return {
|
|
1779
1781
|
"formatOptions": ["formatOptionsChanged"],
|
|
1780
1782
|
"disabled": ["disabledChanged"],
|
|
@@ -1793,6 +1795,7 @@ let datetimeIds = 0;
|
|
|
1793
1795
|
const WHEEL_ITEM_PART = 'wheel-item';
|
|
1794
1796
|
const WHEEL_ITEM_ACTIVE_PART = `active`;
|
|
1795
1797
|
Datetime.style = {
|
|
1798
|
+
ionic: IonDatetimeIonicStyle0,
|
|
1796
1799
|
ios: IonDatetimeIosStyle0,
|
|
1797
1800
|
md: IonDatetimeMdStyle0
|
|
1798
1801
|
};
|
|
@@ -1849,15 +1852,15 @@ const IonPickerLegacyMdStyle0 = pickerMdCss;
|
|
|
1849
1852
|
|
|
1850
1853
|
const Picker = class {
|
|
1851
1854
|
constructor(hostRef) {
|
|
1852
|
-
index
|
|
1853
|
-
this.didPresent = index
|
|
1854
|
-
this.willPresent = index
|
|
1855
|
-
this.willDismiss = index
|
|
1856
|
-
this.didDismiss = index
|
|
1857
|
-
this.didPresentShorthand = index
|
|
1858
|
-
this.willPresentShorthand = index
|
|
1859
|
-
this.willDismissShorthand = index
|
|
1860
|
-
this.didDismissShorthand = index
|
|
1855
|
+
index.registerInstance(this, hostRef);
|
|
1856
|
+
this.didPresent = index.createEvent(this, "ionPickerDidPresent", 7);
|
|
1857
|
+
this.willPresent = index.createEvent(this, "ionPickerWillPresent", 7);
|
|
1858
|
+
this.willDismiss = index.createEvent(this, "ionPickerWillDismiss", 7);
|
|
1859
|
+
this.didDismiss = index.createEvent(this, "ionPickerDidDismiss", 7);
|
|
1860
|
+
this.didPresentShorthand = index.createEvent(this, "didPresent", 7);
|
|
1861
|
+
this.willPresentShorthand = index.createEvent(this, "willPresent", 7);
|
|
1862
|
+
this.willDismissShorthand = index.createEvent(this, "willDismiss", 7);
|
|
1863
|
+
this.didDismissShorthand = index.createEvent(this, "didDismiss", 7);
|
|
1861
1864
|
this.delegateController = overlays.createDelegateController(this);
|
|
1862
1865
|
this.lockController = lockController.createLockController();
|
|
1863
1866
|
this.triggerController = overlays.createTriggerController();
|
|
@@ -1914,7 +1917,7 @@ const Picker = class {
|
|
|
1914
1917
|
overlays.setOverlayId(this.el);
|
|
1915
1918
|
}
|
|
1916
1919
|
componentDidLoad() {
|
|
1917
|
-
|
|
1920
|
+
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);
|
|
1918
1921
|
/**
|
|
1919
1922
|
* If picker was rendered with isOpen="true"
|
|
1920
1923
|
* then we should open picker immediately.
|
|
@@ -2023,14 +2026,14 @@ const Picker = class {
|
|
|
2023
2026
|
}
|
|
2024
2027
|
render() {
|
|
2025
2028
|
const { htmlAttributes } = this;
|
|
2026
|
-
const
|
|
2027
|
-
return (index
|
|
2029
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
2030
|
+
return (index.h(index.Host, Object.assign({ key: '687fd87fb2a0bffcdbd38fe91785d2572d4cd141', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2028
2031
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2029
|
-
}, class: Object.assign({ [
|
|
2032
|
+
}, class: Object.assign({ [theme$1]: true,
|
|
2030
2033
|
// Used internally for styling
|
|
2031
|
-
[`picker-${
|
|
2034
|
+
[`picker-${theme$1}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index.h("ion-backdrop", { key: '053fa3b4c98c0f29e45a74551978a831ac9742cb', visible: this.showBackdrop, tappable: this.backdropDismiss }), index.h("div", { key: 'dd3edfc5c879790849087f8ec251ca767d35ec3b', tabindex: "0" }), index.h("div", { key: '9a1b8b2008e5b6f76d35766164909edea71598ef', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, index.h("div", { key: 'af96808e7ab42b45ee922a410860b5cbbca38a34', 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: 'b0a382a73555146c5962a4c94fc54bb3080350b9', class: "picker-columns" }, index.h("div", { key: 'd09fa7270c06d9fccb9ee1043f93f267df1a0bbc', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => index.h("ion-picker-legacy-column", { col: c })), index.h("div", { key: 'c612908bf2523b81cc88e6fc445d52836a00fd45', class: "picker-below-highlight" }))), index.h("div", { key: 'd6254d12e1570d377ca2721f3f3cb040159aec60', tabindex: "0" })));
|
|
2032
2035
|
}
|
|
2033
|
-
get el() { return index
|
|
2036
|
+
get el() { return index.getElement(this); }
|
|
2034
2037
|
static get watchers() { return {
|
|
2035
2038
|
"isOpen": ["onIsOpenChange"],
|
|
2036
2039
|
"trigger": ["triggerChanged"]
|
|
@@ -2058,8 +2061,8 @@ const IonPickerLegacyColumnMdStyle0 = pickerColumnMdCss;
|
|
|
2058
2061
|
|
|
2059
2062
|
const PickerColumnCmp = class {
|
|
2060
2063
|
constructor(hostRef) {
|
|
2061
|
-
index
|
|
2062
|
-
this.ionPickerColChange = index
|
|
2064
|
+
index.registerInstance(this, hostRef);
|
|
2065
|
+
this.ionPickerColChange = index.createEvent(this, "ionPickerColChange", 7);
|
|
2063
2066
|
this.optHeight = 0;
|
|
2064
2067
|
this.rotateFactor = 0;
|
|
2065
2068
|
this.scaleFactor = 1;
|
|
@@ -2384,12 +2387,12 @@ const PickerColumnCmp = class {
|
|
|
2384
2387
|
}
|
|
2385
2388
|
render() {
|
|
2386
2389
|
const col = this.col;
|
|
2387
|
-
const
|
|
2388
|
-
return (index
|
|
2390
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
2391
|
+
return (index.h(index.Host, { key: '665ec7daa2e5f41536847b167146b04a444495c2', 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: {
|
|
2389
2392
|
'max-width': this.col.columnWidth,
|
|
2390
|
-
} }, col.prefix && (index
|
|
2393
|
+
} }, col.prefix && (index.h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), index.h("div", { key: '6195a1022a90538e9f638a4216910c125a43a8b7', 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", { class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
2391
2394
|
}
|
|
2392
|
-
get el() { return index
|
|
2395
|
+
get el() { return index.getElement(this); }
|
|
2393
2396
|
static get watchers() { return {
|
|
2394
2397
|
"col": ["colChanged"]
|
|
2395
2398
|
}; }
|