@ionic/core 8.0.0-dev.11711476529.17eae6ec → 8.0.0-rc.0
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 +6 -11
- package/components/alert.js +8 -12
- package/components/backdrop.js +4 -8
- package/components/button.js +8 -25
- package/components/buttons.js +5 -9
- package/components/checkbox.js +9 -13
- package/components/data.js +4 -4
- package/components/index4.js +7 -8
- package/components/index6.js +30 -25
- package/components/index7.js +27 -124
- package/components/index8.js +111 -150
- package/components/index9.js +167 -0
- package/components/input-shims.js +1 -1
- package/components/input.utils.js +1 -1
- package/components/ion-accordion-group.js +6 -9
- package/components/ion-accordion.js +6 -10
- package/components/ion-app.js +6 -5
- package/components/ion-avatar.js +2 -9
- package/components/ion-back-button.js +8 -12
- package/components/ion-badge.js +5 -9
- package/components/ion-breadcrumb.js +7 -11
- package/components/ion-breadcrumbs.js +5 -9
- package/components/ion-card-content.js +5 -9
- package/components/ion-card-header.js +5 -9
- package/components/ion-card-subtitle.js +5 -9
- package/components/ion-card-title.js +5 -9
- package/components/ion-card.js +7 -11
- package/components/ion-chip.js +5 -9
- package/components/ion-col.js +5 -5
- package/components/ion-content.js +10 -10
- package/components/ion-datetime-button.js +6 -9
- package/components/ion-datetime.js +17 -20
- package/components/ion-fab-button.js +6 -10
- package/components/ion-fab-list.js +5 -5
- package/components/ion-fab.js +5 -5
- package/components/ion-footer.js +10 -14
- package/components/ion-grid.js +5 -5
- package/components/ion-header.js +10 -14
- package/components/ion-img.js +2 -5
- package/components/ion-infinite-scroll-content.js +8 -12
- package/components/ion-infinite-scroll.js +5 -5
- package/components/ion-input-password-toggle.d.ts +11 -0
- package/components/ion-input-password-toggle.js +132 -0
- package/components/ion-input.js +34 -18
- package/components/ion-item-divider.js +5 -9
- package/components/ion-item-group.js +5 -9
- package/components/ion-item-option.js +5 -9
- package/components/ion-item-options.js +5 -9
- package/components/ion-item-sliding.js +5 -5
- package/components/ion-loading.js +6 -10
- package/components/ion-menu-button.js +7 -11
- package/components/ion-menu-toggle.js +5 -5
- package/components/ion-menu.js +5 -9
- package/components/ion-modal.js +8 -11
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +5 -6
- package/components/ion-note.js +5 -9
- package/components/ion-picker-legacy.js +6 -5
- package/components/ion-progress-bar.js +4 -8
- package/components/ion-range.js +8 -11
- package/components/ion-refresher-content.js +8 -9
- package/components/ion-refresher.js +6 -10
- package/components/ion-reorder-group.js +5 -5
- package/components/ion-reorder.js +5 -11
- package/components/ion-router-link.js +5 -5
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +2 -5
- package/components/ion-searchbar.js +14 -18
- package/components/ion-segment-button.js +6 -10
- package/components/ion-segment.js +5 -9
- package/components/ion-select-option.js +2 -5
- package/components/ion-select.js +19 -23
- package/components/ion-skeleton-text.js +5 -5
- package/components/ion-split-pane.js +6 -10
- package/components/ion-tab-bar.js +5 -9
- package/components/ion-tab-button.js +5 -9
- 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 +8 -12
- package/components/ion-thumbnail.js +2 -5
- package/components/ion-title.js +5 -9
- package/components/ion-toast.js +9 -13
- package/components/ion-toggle.js +13 -17
- package/components/ion-toolbar.js +5 -9
- package/components/ionic-global.js +13 -190
- package/components/ios.transition.js +0 -1
- package/components/item.js +7 -11
- package/components/label.js +5 -9
- package/components/list-header.js +5 -9
- package/components/list.js +6 -10
- package/components/overlays.js +2 -1
- package/components/picker-column-option.js +5 -9
- package/components/picker-column.js +6 -6
- package/components/picker-column2.js +4 -4
- package/components/picker.js +2 -6
- package/components/popover.js +6 -9
- package/components/radio-group.js +3 -5
- package/components/radio.js +6 -10
- package/components/ripple-effect.js +4 -4
- package/components/select-popover.js +2 -9
- package/components/spinner.js +6 -6
- package/components/status-tap.js +1 -1
- package/css/core.css +0 -18
- package/css/core.css.map +1 -1
- package/css/display.css +0 -6
- package/css/display.css.map +1 -1
- package/css/float-elements.css +0 -6
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css +0 -12
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +0 -6
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/padding.css +0 -6
- package/css/padding.css.map +1 -1
- package/css/structure.css +0 -6
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css +0 -6
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css +0 -6
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css +0 -6
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +0 -30
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{app-globals-98e49326.js → app-globals-63aebf89.js} +1 -1
- package/dist/cjs/{button-active-e2ed5329.js → button-active-bd13859e.js} +1 -1
- package/dist/cjs/{data-f2ccf911.js → data-21dc0f81.js} +6 -6
- package/dist/cjs/{hardware-back-button-f66bce00.js → hardware-back-button-ad9299b4.js} +2 -2
- package/dist/cjs/{index-f52c6d38.js → index-073c7cdc.js} +4 -0
- package/dist/cjs/index-5915f9b3.js +38 -0
- package/dist/cjs/{index-91435ed0.js → index-5b6a7459.js} +2 -2
- package/dist/cjs/{index-f5fcf972.js → index-5cf05f94.js} +12 -13
- package/dist/cjs/{index-2d21d526.js → index-af6d0fbb.js} +16 -4
- package/dist/cjs/{index-5643c839.js → index-ff66cc7c.js} +3 -3
- package/dist/cjs/index.cjs.js +9 -8
- package/dist/cjs/{input-shims-837af288.js → input-shims-20d639e6.js} +2 -3
- package/dist/cjs/{input.utils-01c2fa15.js → input.utils-611cde0b.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +13 -20
- package/dist/cjs/ion-action-sheet.cjs.entry.js +11 -15
- package/dist/cjs/ion-alert.cjs.entry.js +13 -16
- package/dist/cjs/ion-app_8.cjs.entry.js +61 -80
- package/dist/cjs/ion-avatar_3.cjs.entry.js +8 -22
- package/dist/cjs/ion-back-button.cjs.entry.js +9 -13
- package/dist/cjs/ion-backdrop.cjs.entry.js +5 -9
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +12 -20
- package/dist/cjs/ion-button_2.cjs.entry.js +12 -29
- package/dist/cjs/ion-card_5.cjs.entry.js +24 -44
- package/dist/cjs/ion-checkbox.cjs.entry.js +10 -14
- package/dist/cjs/ion-chip.cjs.entry.js +6 -10
- package/dist/cjs/ion-col_3.cjs.entry.js +11 -14
- package/dist/cjs/ion-datetime-button.cjs.entry.js +12 -15
- package/dist/cjs/ion-datetime_3.cjs.entry.js +103 -106
- package/dist/cjs/ion-fab_3.cjs.entry.js +15 -19
- package/dist/cjs/ion-img.cjs.entry.js +3 -6
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +14 -17
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +93 -0
- package/dist/cjs/ion-input.cjs.entry.js +34 -18
- package/dist/cjs/ion-item-option_3.cjs.entry.js +15 -22
- package/dist/cjs/ion-item_8.cjs.entry.js +37 -65
- package/dist/cjs/ion-loading.cjs.entry.js +10 -13
- package/dist/cjs/ion-menu_3.cjs.entry.js +20 -27
- package/dist/cjs/ion-modal.cjs.entry.js +17 -20
- package/dist/cjs/ion-nav_2.cjs.entry.js +7 -9
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +6 -10
- package/dist/cjs/ion-picker-column.cjs.entry.js +7 -7
- package/dist/cjs/ion-picker.cjs.entry.js +3 -7
- package/dist/cjs/ion-popover.cjs.entry.js +13 -16
- package/dist/cjs/ion-progress-bar.cjs.entry.js +5 -9
- package/dist/cjs/ion-radio_2.cjs.entry.js +9 -15
- package/dist/cjs/ion-range.cjs.entry.js +14 -17
- package/dist/cjs/ion-refresher_2.cjs.entry.js +15 -19
- package/dist/cjs/ion-reorder_2.cjs.entry.js +11 -16
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +5 -5
- package/dist/cjs/ion-route_4.cjs.entry.js +6 -6
- package/dist/cjs/ion-searchbar.cjs.entry.js +15 -19
- package/dist/cjs/ion-segment_2.cjs.entry.js +11 -19
- package/dist/cjs/ion-select_3.cjs.entry.js +25 -38
- package/dist/cjs/ion-spinner.cjs.entry.js +7 -7
- package/dist/cjs/ion-split-pane.cjs.entry.js +7 -11
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +10 -18
- package/dist/cjs/ion-tab_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-text.cjs.entry.js +6 -6
- package/dist/cjs/ion-textarea.cjs.entry.js +11 -14
- package/dist/cjs/ion-toast.cjs.entry.js +32 -36
- package/dist/cjs/ion-toggle.cjs.entry.js +14 -18
- package/dist/cjs/ionic-global-1adf9bc4.js +230 -0
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-19155451.js → ios.transition-06673f18.js} +2 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-1b1135b1.js → md.transition-4d7bb4b1.js} +2 -2
- package/dist/cjs/{overlays-de847251.js → overlays-6487955a.js} +4 -3
- package/dist/cjs/{status-tap-3ef7ca2b.js → status-tap-0be20572.js} +3 -3
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion/accordion.ios.css +0 -12
- package/dist/collection/components/accordion/accordion.js +8 -11
- package/dist/collection/components/accordion/accordion.md.css +0 -6
- package/dist/collection/components/accordion-group/accordion-group.ios.css +0 -12
- package/dist/collection/components/accordion-group/accordion-group.js +8 -11
- package/dist/collection/components/accordion-group/accordion-group.md.css +0 -18
- package/dist/collection/components/action-sheet/action-sheet.ios.css +0 -12
- package/dist/collection/components/action-sheet/action-sheet.js +10 -14
- package/dist/collection/components/action-sheet/action-sheet.md.css +0 -12
- package/dist/collection/components/alert/alert.ios.css +0 -18
- package/dist/collection/components/alert/alert.js +12 -15
- package/dist/collection/components/alert/alert.md.css +0 -18
- package/dist/collection/components/app/app.js +4 -8
- package/dist/collection/components/avatar/avatar.ios.css +0 -12
- package/dist/collection/components/avatar/avatar.js +4 -13
- package/dist/collection/components/avatar/avatar.md.css +0 -12
- package/dist/collection/components/back-button/back-button.ios.css +0 -12
- package/dist/collection/components/back-button/back-button.js +10 -13
- package/dist/collection/components/back-button/back-button.md.css +0 -12
- package/dist/collection/components/backdrop/backdrop.ios.css +0 -12
- package/dist/collection/components/backdrop/backdrop.js +6 -12
- package/dist/collection/components/backdrop/backdrop.md.css +0 -12
- package/dist/collection/components/badge/badge.ios.css +0 -12
- package/dist/collection/components/badge/badge.js +8 -11
- package/dist/collection/components/badge/badge.md.css +0 -12
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +0 -12
- package/dist/collection/components/breadcrumb/breadcrumb.js +9 -12
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +0 -12
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -6
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +9 -11
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -6
- package/dist/collection/components/button/button.ios.css +0 -18
- package/dist/collection/components/button/button.js +14 -31
- package/dist/collection/components/button/button.md.css +0 -12
- package/dist/collection/components/button/test/clear/button.e2e.js +3 -6
- package/dist/collection/components/button/test/round/button.e2e.js +52 -0
- package/dist/collection/components/button/test/size/button.e2e.js +1 -19
- package/dist/collection/components/buttons/buttons.ios.css +0 -18
- package/dist/collection/components/buttons/buttons.js +8 -14
- package/dist/collection/components/buttons/buttons.md.css +0 -18
- package/dist/collection/components/card/card.ios.css +0 -12
- package/dist/collection/components/card/card.js +10 -13
- package/dist/collection/components/card/card.md.css +0 -12
- package/dist/collection/components/card-content/card-content.ios.css +0 -12
- package/dist/collection/components/card-content/card-content.js +8 -11
- package/dist/collection/components/card-content/card-content.md.css +0 -12
- package/dist/collection/components/card-header/card-header.ios.css +0 -12
- package/dist/collection/components/card-header/card-header.js +9 -12
- package/dist/collection/components/card-header/card-header.md.css +0 -12
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -12
- package/dist/collection/components/card-subtitle/card-subtitle.js +8 -11
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -12
- package/dist/collection/components/card-title/card-title.ios.css +0 -12
- package/dist/collection/components/card-title/card-title.js +8 -11
- package/dist/collection/components/card-title/card-title.md.css +0 -12
- package/dist/collection/components/checkbox/checkbox.ios.css +0 -18
- package/dist/collection/components/checkbox/checkbox.js +12 -15
- package/dist/collection/components/checkbox/checkbox.md.css +0 -18
- package/dist/collection/components/chip/chip.ios.css +0 -6
- package/dist/collection/components/chip/chip.js +8 -11
- package/dist/collection/components/chip/chip.md.css +0 -6
- package/dist/collection/components/col/col.css +0 -12
- package/dist/collection/components/col/col.js +5 -9
- package/dist/collection/components/content/content.css +0 -6
- package/dist/collection/components/content/content.js +10 -13
- package/dist/collection/components/datetime/datetime.ios.css +0 -12
- package/dist/collection/components/datetime/datetime.js +18 -21
- package/dist/collection/components/datetime/datetime.md.css +0 -12
- package/dist/collection/components/datetime/utils/data.js +3 -3
- package/dist/collection/components/datetime-button/datetime-button.ios.css +0 -6
- package/dist/collection/components/datetime-button/datetime-button.js +8 -11
- package/dist/collection/components/datetime-button/datetime-button.md.css +0 -6
- package/dist/collection/components/fab/fab.css +0 -24
- package/dist/collection/components/fab/fab.js +5 -9
- package/dist/collection/components/fab-button/fab-button.ios.css +0 -12
- package/dist/collection/components/fab-button/fab-button.js +9 -12
- package/dist/collection/components/fab-button/fab-button.md.css +0 -12
- package/dist/collection/components/fab-list/fab-list.css +0 -12
- package/dist/collection/components/fab-list/fab-list.js +5 -9
- package/dist/collection/components/footer/footer.ios.css +0 -12
- package/dist/collection/components/footer/footer.js +14 -17
- package/dist/collection/components/footer/footer.md.css +0 -12
- package/dist/collection/components/grid/grid.css +0 -12
- package/dist/collection/components/grid/grid.js +5 -9
- package/dist/collection/components/header/header.ios.css +0 -12
- package/dist/collection/components/header/header.js +14 -17
- package/dist/collection/components/header/header.md.css +0 -12
- package/dist/collection/components/img/img.js +2 -8
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +4 -8
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -12
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +10 -16
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -12
- package/dist/collection/components/input/input.ios.css +7 -16
- package/dist/collection/components/input/input.js +37 -19
- package/dist/collection/components/input/input.md.css +7 -34
- package/dist/collection/components/input-password-toggle/input-password-toggle.css +0 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +183 -0
- package/dist/collection/components/input-password-toggle/test/a11y/input-password-toggle.e2e.js +21 -0
- package/dist/collection/components/input-password-toggle/test/basic/input-password-toggle.e2e.js +38 -0
- package/dist/collection/components/input-password-toggle/test/input-password-toggle.spec.js +76 -0
- package/dist/collection/components/item/item.ios.css +0 -12
- package/dist/collection/components/item/item.js +10 -13
- package/dist/collection/components/item/item.md.css +0 -24
- package/dist/collection/components/item-divider/item-divider.ios.css +0 -18
- package/dist/collection/components/item-divider/item-divider.js +8 -11
- package/dist/collection/components/item-divider/item-divider.md.css +0 -18
- package/dist/collection/components/item-group/item-group.ios.css +0 -12
- package/dist/collection/components/item-group/item-group.js +7 -13
- package/dist/collection/components/item-group/item-group.md.css +0 -12
- package/dist/collection/components/item-option/item-option.ios.css +0 -12
- package/dist/collection/components/item-option/item-option.js +8 -11
- package/dist/collection/components/item-option/item-option.md.css +0 -12
- package/dist/collection/components/item-options/item-options.ios.css +0 -18
- package/dist/collection/components/item-options/item-options.js +7 -13
- package/dist/collection/components/item-options/item-options.md.css +0 -18
- package/dist/collection/components/item-sliding/item-sliding.css +0 -6
- package/dist/collection/components/item-sliding/item-sliding.js +4 -8
- package/dist/collection/components/label/label.ios.css +0 -18
- package/dist/collection/components/label/label.js +8 -11
- package/dist/collection/components/label/label.md.css +0 -18
- package/dist/collection/components/list/list.ios.css +0 -18
- package/dist/collection/components/list/list.js +9 -12
- package/dist/collection/components/list/list.md.css +0 -18
- package/dist/collection/components/list-header/list-header.ios.css +0 -18
- package/dist/collection/components/list-header/list-header.js +8 -11
- package/dist/collection/components/list-header/list-header.md.css +0 -18
- package/dist/collection/components/loading/loading.ios.css +0 -12
- package/dist/collection/components/loading/loading.js +10 -13
- package/dist/collection/components/loading/loading.md.css +0 -12
- package/dist/collection/components/menu/menu.ios.css +0 -12
- package/dist/collection/components/menu/menu.js +7 -12
- package/dist/collection/components/menu/menu.md.css +0 -12
- package/dist/collection/components/menu-button/menu-button.ios.css +0 -12
- package/dist/collection/components/menu-button/menu-button.js +9 -12
- package/dist/collection/components/menu-button/menu-button.md.css +0 -12
- package/dist/collection/components/menu-toggle/menu-toggle.js +5 -8
- package/dist/collection/components/modal/modal.ios.css +0 -12
- package/dist/collection/components/modal/modal.js +9 -12
- package/dist/collection/components/modal/modal.md.css +0 -12
- package/dist/collection/components/nav/nav.css +0 -6
- package/dist/collection/components/nav/nav.js +5 -11
- package/dist/collection/components/nav-link/nav-link.js +1 -5
- package/dist/collection/components/note/note.ios.css +0 -12
- package/dist/collection/components/note/note.js +8 -11
- package/dist/collection/components/note/note.md.css +0 -12
- package/dist/collection/components/picker/picker.ios.css +0 -12
- package/dist/collection/components/picker/picker.js +5 -8
- package/dist/collection/components/picker/picker.md.css +0 -12
- package/dist/collection/components/picker-column/picker-column.css +0 -6
- package/dist/collection/components/picker-column/picker-column.js +7 -8
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +0 -6
- package/dist/collection/components/picker-column-option/picker-column-option.js +7 -13
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +0 -6
- package/dist/collection/components/picker-legacy/picker.ios.css +0 -12
- package/dist/collection/components/picker-legacy/picker.js +6 -7
- package/dist/collection/components/picker-legacy/picker.md.css +0 -12
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +0 -12
- package/dist/collection/components/picker-legacy-column/picker-column.js +4 -4
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +0 -12
- package/dist/collection/components/popover/popover.ios.css +0 -12
- package/dist/collection/components/popover/popover.js +12 -15
- package/dist/collection/components/popover/popover.md.css +0 -12
- package/dist/collection/components/progress-bar/progress-bar.ios.css +0 -6
- package/dist/collection/components/progress-bar/progress-bar.js +7 -10
- package/dist/collection/components/progress-bar/progress-bar.md.css +0 -6
- package/dist/collection/components/radio/radio.ios.css +0 -18
- package/dist/collection/components/radio/radio.js +9 -12
- package/dist/collection/components/radio/radio.md.css +0 -18
- package/dist/collection/components/radio-group/radio-group.js +3 -9
- package/dist/collection/components/range/range.ios.css +0 -12
- package/dist/collection/components/range/range.js +9 -12
- package/dist/collection/components/range/range.md.css +0 -12
- package/dist/collection/components/refresher/refresher.ios.css +0 -12
- package/dist/collection/components/refresher/refresher.js +8 -11
- package/dist/collection/components/refresher/refresher.md.css +0 -12
- package/dist/collection/components/refresher-content/refresher-content.js +7 -12
- package/dist/collection/components/reorder/reorder.ios.css +0 -6
- package/dist/collection/components/reorder/reorder.js +6 -13
- package/dist/collection/components/reorder/reorder.md.css +0 -6
- package/dist/collection/components/reorder-group/reorder-group.css +0 -6
- package/dist/collection/components/reorder-group/reorder-group.js +4 -8
- package/dist/collection/components/ripple-effect/ripple-effect.css +0 -6
- package/dist/collection/components/ripple-effect/ripple-effect.js +4 -8
- package/dist/collection/components/route/route.js +0 -4
- package/dist/collection/components/router/router.js +0 -4
- package/dist/collection/components/router-link/router-link.css +0 -6
- package/dist/collection/components/router-link/router-link.js +5 -9
- package/dist/collection/components/router-outlet/router-outlet.css +0 -6
- package/dist/collection/components/router-outlet/router-outlet.js +2 -5
- package/dist/collection/components/row/row.css +0 -12
- package/dist/collection/components/row/row.js +2 -9
- package/dist/collection/components/searchbar/searchbar.ios.css +0 -12
- package/dist/collection/components/searchbar/searchbar.js +24 -26
- package/dist/collection/components/searchbar/searchbar.md.css +0 -12
- package/dist/collection/components/segment/segment.ios.css +0 -18
- package/dist/collection/components/segment/segment.js +8 -11
- package/dist/collection/components/segment/segment.md.css +0 -18
- package/dist/collection/components/segment-button/segment-button.ios.css +0 -12
- package/dist/collection/components/segment-button/segment-button.js +9 -12
- package/dist/collection/components/segment-button/segment-button.md.css +0 -12
- package/dist/collection/components/select/select.ios.css +0 -18
- package/dist/collection/components/select/select.js +24 -27
- package/dist/collection/components/select/select.md.css +0 -30
- package/dist/collection/components/select-option/select-option.js +2 -9
- package/dist/collection/components/select-popover/select-popover.ios.css +0 -18
- package/dist/collection/components/select-popover/select-popover.js +4 -12
- package/dist/collection/components/select-popover/select-popover.md.css +0 -18
- package/dist/collection/components/skeleton-text/skeleton-text.css +0 -6
- package/dist/collection/components/skeleton-text/skeleton-text.js +5 -9
- package/dist/collection/components/spinner/spinner.css +0 -6
- package/dist/collection/components/spinner/spinner.js +6 -10
- package/dist/collection/components/split-pane/split-pane.ios.css +0 -18
- package/dist/collection/components/split-pane/split-pane.js +8 -14
- package/dist/collection/components/split-pane/split-pane.md.css +0 -18
- package/dist/collection/components/tab/tab.js +2 -6
- package/dist/collection/components/tab-bar/tab-bar.ios.css +0 -18
- package/dist/collection/components/tab-bar/tab-bar.js +9 -12
- package/dist/collection/components/tab-bar/tab-bar.md.css +0 -18
- package/dist/collection/components/tab-button/tab-button.ios.css +0 -12
- package/dist/collection/components/tab-button/tab-button.js +8 -11
- package/dist/collection/components/tab-button/tab-button.md.css +0 -12
- package/dist/collection/components/tabs/tabs.css +0 -6
- package/dist/collection/components/tabs/tabs.js +1 -4
- package/dist/collection/components/text/text.css +0 -6
- package/dist/collection/components/text/text.js +6 -7
- package/dist/collection/components/textarea/textarea.ios.css +0 -24
- package/dist/collection/components/textarea/textarea.js +12 -15
- package/dist/collection/components/textarea/textarea.md.css +0 -36
- package/dist/collection/components/thumbnail/thumbnail.css +0 -6
- package/dist/collection/components/thumbnail/thumbnail.js +2 -9
- package/dist/collection/components/title/title.ios.css +0 -6
- package/dist/collection/components/title/title.js +7 -13
- package/dist/collection/components/title/title.md.css +0 -6
- package/dist/collection/components/toast/animations/utils.js +1 -1
- package/dist/collection/components/toast/toast.ios.css +0 -12
- package/dist/collection/components/toast/toast.js +11 -15
- package/dist/collection/components/toast/toast.md.css +0 -12
- package/dist/collection/components/toggle/toggle.ios.css +0 -18
- package/dist/collection/components/toggle/toggle.js +15 -18
- package/dist/collection/components/toggle/toggle.md.css +0 -18
- package/dist/collection/components/toolbar/toolbar.ios.css +0 -12
- package/dist/collection/components/toolbar/toolbar.js +10 -13
- package/dist/collection/components/toolbar/toolbar.md.css +0 -12
- package/dist/collection/global/ionic-global.js +12 -160
- package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
- package/dist/collection/utils/menu-controller/animations/push.js +1 -2
- package/dist/collection/utils/menu-controller/animations/reveal.js +1 -2
- package/dist/collection/utils/test/playwright/generator.js +22 -45
- package/dist/collection/utils/test/playwright/page/utils/goto.js +4 -13
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +1 -13
- package/dist/collection/utils/transition/ios.transition.js +0 -1
- package/dist/docs.json +520 -3902
- package/dist/esm/{app-globals-4194f7b0.js → app-globals-b8e5e7fa.js} +1 -1
- package/dist/esm/{button-active-6f657ae4.js → button-active-a411da52.js} +1 -1
- package/dist/esm/{data-735635b1.js → data-ae11fd43.js} +4 -4
- package/dist/esm/{hardware-back-button-ff84501f.js → hardware-back-button-329c81fd.js} +2 -2
- package/dist/esm/{index-62041d9c.js → index-10916999.js} +8 -9
- package/dist/esm/{index-4bbc4ca3.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-3a495cc6.js → index-6e4709ff.js} +17 -5
- package/dist/esm/index-9b0d46f4.js +34 -0
- package/dist/esm/{index-f7dc70ba.js → index-e2cf2ceb.js} +3 -1
- package/dist/esm/{index-e3f4491c.js → index-f1f5de26.js} +3 -3
- package/dist/esm/index.js +9 -8
- package/dist/esm/{input-shims-131a3f9f.js → input-shims-4530285e.js} +2 -3
- package/dist/esm/{input.utils-41b26b54.js → input.utils-09c71bc7.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +12 -19
- package/dist/esm/ion-action-sheet.entry.js +11 -15
- package/dist/esm/ion-alert.entry.js +13 -16
- package/dist/esm/ion-app_8.entry.js +50 -69
- package/dist/esm/ion-avatar_3.entry.js +8 -22
- package/dist/esm/ion-back-button.entry.js +9 -13
- package/dist/esm/ion-backdrop.entry.js +5 -9
- package/dist/esm/ion-breadcrumb_2.entry.js +12 -20
- package/dist/esm/ion-button_2.entry.js +9 -26
- package/dist/esm/ion-card_5.entry.js +24 -44
- package/dist/esm/ion-checkbox.entry.js +10 -14
- package/dist/esm/ion-chip.entry.js +6 -10
- package/dist/esm/ion-col_3.entry.js +11 -14
- package/dist/esm/ion-datetime-button.entry.js +8 -11
- package/dist/esm/ion-datetime_3.entry.js +28 -31
- package/dist/esm/ion-fab_3.entry.js +15 -19
- package/dist/esm/ion-img.entry.js +3 -6
- package/dist/esm/ion-infinite-scroll_2.entry.js +14 -17
- package/dist/esm/ion-input-password-toggle.entry.js +89 -0
- package/dist/esm/ion-input.entry.js +34 -18
- package/dist/esm/ion-item-option_3.entry.js +15 -22
- package/dist/esm/ion-item_8.entry.js +37 -65
- package/dist/esm/ion-loading.entry.js +10 -13
- package/dist/esm/ion-menu_3.entry.js +20 -27
- package/dist/esm/ion-modal.entry.js +12 -15
- package/dist/esm/ion-nav_2.entry.js +7 -9
- package/dist/esm/ion-picker-column-option.entry.js +6 -10
- package/dist/esm/ion-picker-column.entry.js +7 -7
- package/dist/esm/ion-picker.entry.js +3 -7
- package/dist/esm/ion-popover.entry.js +10 -13
- package/dist/esm/ion-progress-bar.entry.js +5 -9
- package/dist/esm/ion-radio_2.entry.js +9 -15
- package/dist/esm/ion-range.entry.js +9 -12
- package/dist/esm/ion-refresher_2.entry.js +15 -19
- package/dist/esm/ion-reorder_2.entry.js +11 -16
- package/dist/esm/ion-ripple-effect.entry.js +5 -5
- package/dist/esm/ion-route_4.entry.js +6 -6
- package/dist/esm/ion-searchbar.entry.js +15 -19
- package/dist/esm/ion-segment_2.entry.js +11 -19
- package/dist/esm/ion-select_3.entry.js +25 -38
- package/dist/esm/ion-spinner.entry.js +7 -7
- package/dist/esm/ion-split-pane.entry.js +7 -11
- package/dist/esm/ion-tab-bar_2.entry.js +10 -18
- package/dist/esm/ion-tab_2.entry.js +4 -4
- package/dist/esm/ion-text.entry.js +6 -6
- package/dist/esm/ion-textarea.entry.js +11 -14
- package/dist/esm/ion-toast.entry.js +12 -16
- package/dist/esm/ion-toggle.entry.js +14 -18
- package/dist/esm/ionic-global-c4e0c089.js +224 -0
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-2187a9fd.js → ios.transition-8e181a7e.js} +2 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-a8d52fcb.js → md.transition-f1c3c737.js} +2 -2
- package/dist/esm/{overlays-213b5a21.js → overlays-9472c98b.js} +3 -2
- package/dist/esm/{status-tap-8838c434.js → status-tap-39da9160.js} +3 -3
- package/dist/esm-es5/app-globals-b8e5e7fa.js +4 -0
- package/dist/esm-es5/{button-active-6f657ae4.js → button-active-a411da52.js} +1 -1
- package/dist/esm-es5/data-ae11fd43.js +4 -0
- package/dist/esm-es5/framework-delegate-63d1a679.js +2 -2
- package/dist/esm-es5/{hardware-back-button-ff84501f.js → hardware-back-button-329c81fd.js} +1 -1
- package/dist/esm-es5/index-10916999.js +4 -0
- package/dist/esm-es5/index-5cc724f3.js +4 -0
- package/dist/esm-es5/index-6e4709ff.js +5 -0
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/{index-f7dc70ba.js → index-e2cf2ceb.js} +1 -1
- package/dist/esm-es5/{index-e3f4491c.js → index-f1f5de26.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-4530285e.js +4 -0
- package/dist/esm-es5/input.utils-09c71bc7.js +4 -0
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +4 -0
- 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-c4e0c089.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-8e181a7e.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-f1c3c737.js +4 -0
- package/dist/esm-es5/overlays-9472c98b.js +4 -0
- package/dist/esm-es5/status-tap-39da9160.js +4 -0
- package/dist/html.html-data.json +180 -1907
- 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-57b76977.system.entry.js → p-04070329.system.entry.js} +1 -1
- package/dist/ionic/p-049fa018.system.entry.js +4 -0
- package/dist/ionic/p-06e58c4e.js +4 -0
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-07ae133d.system.entry.js +4 -0
- package/dist/ionic/p-0aa4682e.entry.js +4 -0
- package/dist/ionic/p-0bbb6edf.system.entry.js +4 -0
- package/dist/ionic/{p-322eb715.system.js → p-0c06e09b.system.js} +1 -1
- package/dist/ionic/p-0de546bb.entry.js +4 -0
- package/dist/ionic/p-0ebb1fe7.system.entry.js +4 -0
- package/dist/ionic/p-0f2d99a6.entry.js +4 -0
- package/dist/ionic/p-100bedc4.system.entry.js +4 -0
- package/dist/ionic/p-105f7d62.system.entry.js +4 -0
- package/dist/ionic/p-1672c4fd.system.entry.js +4 -0
- package/dist/ionic/{p-820be1bf.entry.js → p-17978fce.entry.js} +1 -1
- package/dist/ionic/p-1b235142.entry.js +4 -0
- package/dist/ionic/p-1cff9cad.entry.js +4 -0
- package/dist/ionic/p-1e955a45.system.js +4 -0
- package/dist/ionic/p-1f9cdee2.entry.js +4 -0
- package/dist/ionic/p-23b89985.entry.js +4 -0
- package/dist/ionic/p-25575222.system.js +4 -0
- package/dist/ionic/p-266fc56e.system.js +4 -0
- package/dist/ionic/p-2e12bda2.entry.js +4 -0
- package/dist/ionic/p-2f6cedaf.system.entry.js +4 -0
- package/dist/ionic/{p-139e8ff1.js → p-3040730e.js} +1 -1
- package/dist/ionic/p-3391d9a3.entry.js +4 -0
- package/dist/ionic/p-352f7037.system.entry.js +4 -0
- package/dist/ionic/p-35722bba.system.entry.js +4 -0
- package/dist/ionic/p-35b9e842.entry.js +4 -0
- package/dist/ionic/p-3c70b01b.entry.js +4 -0
- package/dist/ionic/{p-8cd83c08.system.entry.js → p-3d6e882f.system.entry.js} +1 -1
- package/dist/ionic/p-3e3b34f7.system.entry.js +4 -0
- package/dist/ionic/p-3f70bfba.entry.js +4 -0
- package/dist/ionic/p-4196b2d1.system.entry.js +4 -0
- package/dist/ionic/{p-98ced5a7.system.entry.js → p-43505ff8.system.entry.js} +2 -2
- package/dist/ionic/p-4429fc97.system.entry.js +4 -0
- package/dist/ionic/p-46111310.js +4 -0
- package/dist/ionic/p-46f407f0.system.js +4 -0
- package/dist/ionic/p-49b6fee0.system.entry.js +4 -0
- package/dist/ionic/p-4a615fea.entry.js +4 -0
- package/dist/ionic/{p-c11232d6.system.js → p-4dd82d9d.system.js} +1 -1
- package/dist/ionic/{p-af732189.system.js → p-5033128d.system.js} +2 -2
- package/dist/ionic/p-510578f3.system.entry.js +4 -0
- package/dist/ionic/p-51b68ec9.system.entry.js +4 -0
- package/dist/ionic/p-51ff648c.entry.js +4 -0
- package/dist/ionic/p-546433d2.js +4 -0
- package/dist/ionic/p-54f76ced.js +4 -0
- package/dist/ionic/p-56c3b69c.entry.js +4 -0
- package/dist/ionic/p-58ea73f7.system.entry.js +4 -0
- package/dist/ionic/p-596e0cf8.system.entry.js +4 -0
- package/dist/ionic/p-5ae49f12.entry.js +4 -0
- package/dist/ionic/p-5b1273f4.system.entry.js +4 -0
- package/dist/ionic/p-5d3f6707.entry.js +4 -0
- package/dist/ionic/p-5da04d11.entry.js +4 -0
- package/dist/ionic/p-5e7c32e8.system.entry.js +4 -0
- package/dist/ionic/p-5fa8587e.system.entry.js +4 -0
- package/dist/ionic/p-68a1e274.system.entry.js +4 -0
- package/dist/ionic/p-6994c97a.js +4 -0
- package/dist/ionic/p-69bc14fd.entry.js +4 -0
- package/dist/ionic/p-6a7eac5a.js +4 -0
- package/dist/ionic/p-6f4db5ce.system.entry.js +4 -0
- package/dist/ionic/{p-1a488d6f.system.js → p-71215c1d.system.js} +1 -1
- package/dist/ionic/p-71688099.system.entry.js +4 -0
- package/dist/ionic/p-716ab5f8.system.entry.js +4 -0
- package/dist/ionic/p-74a9cafe.system.js +5 -0
- package/dist/ionic/p-75280815.entry.js +4 -0
- package/dist/ionic/p-75cddcc9.js +4 -0
- package/dist/ionic/{p-7c6ba817.system.entry.js → p-76907c2f.system.entry.js} +1 -1
- package/dist/ionic/p-7d9eefb3.system.js +4 -0
- package/dist/ionic/p-7df2c495.entry.js +4 -0
- package/dist/ionic/p-7fc505bf.entry.js +4 -0
- package/dist/ionic/p-83321ee8.entry.js +4 -0
- package/dist/ionic/p-8635f5e6.system.js +2 -2
- package/dist/ionic/p-88cff52d.entry.js +4 -0
- package/dist/ionic/p-896111fa.entry.js +4 -0
- package/dist/ionic/p-89b59bd7.entry.js +4 -0
- package/dist/ionic/p-8bd567ba.system.entry.js +4 -0
- package/dist/ionic/p-8e9ac22d.entry.js +4 -0
- package/dist/ionic/p-9540561f.entry.js +4 -0
- package/dist/ionic/{p-fe1345b7.js → p-96cc4814.js} +1 -1
- package/dist/ionic/{p-b8df09fa.entry.js → p-99daf8b7.entry.js} +1 -1
- package/dist/ionic/p-9ad82dba.js +5 -0
- package/dist/ionic/{p-df92bab7.system.js → p-9d7fc908.system.js} +1 -1
- package/dist/ionic/{p-7fefe43e.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/p-a1b4e619.system.entry.js +4 -0
- package/dist/ionic/p-a1f9f629.system.entry.js +4 -0
- package/dist/ionic/p-a7ba2dcc.system.js +4 -0
- package/dist/ionic/{p-ed454419.entry.js → p-a88fdfac.entry.js} +1 -1
- package/dist/ionic/p-a8f02173.system.js +4 -0
- package/dist/ionic/p-aa110ca0.system.entry.js +4 -0
- package/dist/ionic/p-aa4f2703.system.entry.js +4 -0
- package/dist/ionic/p-ab85debb.entry.js +4 -0
- package/dist/ionic/p-ac4e2a74.system.entry.js +4 -0
- package/dist/ionic/p-ac9f44a8.system.entry.js +4 -0
- package/dist/ionic/p-bb835b4d.system.entry.js +4 -0
- package/dist/ionic/p-c04d5a75.entry.js +4 -0
- package/dist/ionic/p-c198e1e1.system.entry.js +4 -0
- package/dist/ionic/{p-fea6e789.system.entry.js → p-c1d1d004.system.entry.js} +1 -1
- package/dist/ionic/{p-57a4c6c3.js → p-c222f76a.js} +1 -1
- package/dist/ionic/p-c41af68a.entry.js +4 -0
- package/dist/ionic/p-c80d05c9.js +4 -0
- package/dist/ionic/p-c8f2b769.entry.js +4 -0
- package/dist/ionic/p-c99ccdc9.entry.js +4 -0
- package/dist/ionic/p-c9c39c98.system.entry.js +4 -0
- package/dist/ionic/p-cae889f9.entry.js +4 -0
- package/dist/ionic/p-d2544865.system.js +4 -0
- package/dist/ionic/p-d5f48185.system.entry.js +4 -0
- package/dist/ionic/{p-d2a65df9.js → p-d60342e3.js} +1 -1
- package/dist/ionic/p-d79542bd.system.js +4 -0
- package/dist/ionic/p-d8067ea4.system.entry.js +4 -0
- package/dist/ionic/p-d8f66669.entry.js +4 -0
- package/dist/ionic/{p-4c55c5ce.entry.js → p-d98c0112.entry.js} +1 -1
- package/dist/ionic/p-da2b833b.js +4 -0
- package/dist/ionic/p-dc1372e0.entry.js +4 -0
- package/dist/ionic/{p-24e9aa21.entry.js → p-df48edd6.entry.js} +1 -1
- package/dist/ionic/p-df6fa126.entry.js +4 -0
- package/dist/ionic/p-e8a0e731.entry.js +4 -0
- package/dist/ionic/p-e955bf61.entry.js +4 -0
- package/dist/ionic/p-ea2c16b5.system.entry.js +4 -0
- package/dist/ionic/p-ea4be6ac.system.js +4 -0
- package/dist/ionic/p-eb3da535.system.entry.js +4 -0
- package/dist/ionic/p-f0392d49.entry.js +4 -0
- package/dist/ionic/p-f4cb521c.js +4 -0
- package/dist/ionic/{p-dff73ffc.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/p-f818b01a.entry.js +4 -0
- package/dist/ionic/p-f94cbfe9.js +4 -0
- package/dist/ionic/p-fab4ecad.system.entry.js +4 -0
- package/dist/ionic/p-fb02eeec.system.entry.js +4 -0
- package/dist/ionic/p-fb97326f.system.entry.js +4 -0
- package/dist/ionic/p-fbd30ec7.entry.js +4 -0
- package/dist/ionic/{p-57082094.entry.js → p-fda4872f.entry.js} +1 -1
- package/dist/ionic/p-ff2323ba.system.entry.js +4 -0
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +1 -2
- package/dist/types/components/accordion-group/accordion-group.d.ts +1 -2
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +7 -3
- package/dist/types/components/action-sheet/action-sheet.d.ts +2 -3
- package/dist/types/components/alert/alert-interface.d.ts +7 -3
- package/dist/types/components/alert/alert.d.ts +2 -3
- package/dist/types/components/app/app.d.ts +0 -4
- package/dist/types/components/avatar/avatar.d.ts +0 -4
- package/dist/types/components/back-button/back-button.d.ts +1 -2
- package/dist/types/components/backdrop/backdrop.d.ts +0 -4
- package/dist/types/components/badge/badge.d.ts +1 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +1 -2
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +3 -8
- package/dist/types/components/buttons/buttons.d.ts +1 -5
- package/dist/types/components/card/card.d.ts +1 -2
- package/dist/types/components/card-content/card-content.d.ts +1 -2
- package/dist/types/components/card-header/card-header.d.ts +2 -3
- package/dist/types/components/card-subtitle/card-subtitle.d.ts +1 -2
- package/dist/types/components/card-title/card-title.d.ts +1 -2
- package/dist/types/components/checkbox/checkbox.d.ts +1 -2
- package/dist/types/components/chip/chip.d.ts +1 -2
- package/dist/types/components/col/col.d.ts +0 -4
- package/dist/types/components/content/content.d.ts +0 -3
- package/dist/types/components/datetime/datetime.d.ts +1 -2
- package/dist/types/components/datetime/utils/data.d.ts +3 -3
- package/dist/types/components/datetime-button/datetime-button.d.ts +1 -2
- package/dist/types/components/fab/fab.d.ts +0 -4
- package/dist/types/components/fab-button/fab-button.d.ts +2 -3
- package/dist/types/components/fab-list/fab-list.d.ts +0 -4
- package/dist/types/components/footer/footer.d.ts +3 -4
- package/dist/types/components/grid/grid.d.ts +0 -4
- package/dist/types/components/header/header.d.ts +3 -4
- package/dist/types/components/img/img.d.ts +0 -3
- package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +0 -4
- package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +0 -4
- package/dist/types/components/input/input.d.ts +8 -3
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +37 -0
- package/dist/types/components/item/item.d.ts +3 -4
- package/dist/types/components/item-divider/item-divider.d.ts +1 -2
- package/dist/types/components/item-group/item-group.d.ts +0 -4
- package/dist/types/components/item-option/item-option.d.ts +1 -2
- package/dist/types/components/item-options/item-options.d.ts +0 -4
- package/dist/types/components/item-sliding/item-sliding.d.ts +0 -4
- package/dist/types/components/label/label.d.ts +1 -2
- package/dist/types/components/list/list.d.ts +1 -2
- package/dist/types/components/list-header/list-header.d.ts +1 -2
- package/dist/types/components/loading/loading-interface.d.ts +7 -2
- package/dist/types/components/loading/loading.d.ts +2 -3
- package/dist/types/components/menu/menu.d.ts +0 -3
- package/dist/types/components/menu-button/menu-button.d.ts +1 -2
- package/dist/types/components/menu-toggle/menu-toggle.d.ts +0 -3
- package/dist/types/components/modal/modal-interface.d.ts +7 -3
- package/dist/types/components/modal/modal.d.ts +1 -2
- package/dist/types/components/nav/nav-interface.d.ts +1 -9
- package/dist/types/components/nav/nav.d.ts +1 -5
- package/dist/types/components/nav-link/nav-link.d.ts +0 -4
- package/dist/types/components/note/note.d.ts +1 -2
- package/dist/types/components/picker/picker.d.ts +1 -2
- package/dist/types/components/picker-column/picker-column.d.ts +1 -2
- package/dist/types/components/picker-column-option/picker-column-option.d.ts +0 -4
- package/dist/types/components/picker-legacy/picker.d.ts +1 -2
- package/dist/types/components/popover/popover-interface.d.ts +7 -3
- package/dist/types/components/popover/popover.d.ts +5 -6
- package/dist/types/components/progress-bar/progress-bar.d.ts +1 -2
- package/dist/types/components/radio/radio.d.ts +1 -2
- package/dist/types/components/radio-group/radio-group.d.ts +0 -4
- package/dist/types/components/range/range.d.ts +1 -2
- package/dist/types/components/refresher/refresher.d.ts +1 -2
- package/dist/types/components/refresher-content/refresher-content.d.ts +0 -4
- package/dist/types/components/reorder/reorder.d.ts +0 -3
- package/dist/types/components/reorder-group/reorder-group.d.ts +0 -4
- package/dist/types/components/ripple-effect/ripple-effect.d.ts +0 -4
- package/dist/types/components/route/route.d.ts +0 -4
- package/dist/types/components/router/router.d.ts +0 -4
- package/dist/types/components/router-link/router-link.d.ts +0 -4
- package/dist/types/components/router-outlet/router-outlet.d.ts +1 -4
- package/dist/types/components/row/row.d.ts +0 -4
- package/dist/types/components/searchbar/searchbar.d.ts +7 -22
- package/dist/types/components/segment/segment.d.ts +1 -2
- package/dist/types/components/segment-button/segment-button.d.ts +1 -2
- package/dist/types/components/select/select.d.ts +5 -6
- package/dist/types/components/select-option/select-option.d.ts +0 -4
- package/dist/types/components/select-popover/select-popover.d.ts +0 -3
- package/dist/types/components/skeleton-text/skeleton-text.d.ts +0 -4
- package/dist/types/components/spinner/spinner.d.ts +0 -4
- package/dist/types/components/split-pane/split-pane.d.ts +0 -4
- package/dist/types/components/tab/tab.d.ts +0 -4
- package/dist/types/components/tab-bar/tab-bar.d.ts +2 -3
- package/dist/types/components/tab-button/tab-button.d.ts +1 -2
- package/dist/types/components/tabs/tabs.d.ts +0 -3
- package/dist/types/components/text/text.d.ts +1 -2
- package/dist/types/components/textarea/textarea.d.ts +2 -3
- package/dist/types/components/thumbnail/thumbnail.d.ts +0 -4
- package/dist/types/components/title/title.d.ts +0 -4
- package/dist/types/components/toast/animations/utils.d.ts +2 -2
- package/dist/types/components/toast/toast-interface.d.ts +7 -3
- package/dist/types/components/toast/toast.d.ts +2 -3
- package/dist/types/components/toggle/toggle.d.ts +1 -2
- package/dist/types/components/toolbar/toolbar.d.ts +3 -4
- package/dist/types/components.d.ts +208 -1186
- package/dist/types/global/ionic-global.d.ts +2 -25
- package/dist/types/interface.d.ts +0 -3
- package/dist/types/utils/config.d.ts +2 -17
- package/dist/types/utils/focus-trap.d.ts +2 -2
- package/dist/types/utils/overlays-interface.d.ts +1 -31
- package/dist/types/utils/overlays.d.ts +2 -2
- package/dist/types/utils/test/playwright/generator.d.ts +1 -8
- package/hydrate/index.js +660 -1158
- package/package.json +1 -1
- package/dist/cjs/ionic-global-94d8021d.js +0 -411
- package/dist/collection/components/button/button.ionic.css +0 -565
- package/dist/collection/components/button/test/shape/button.e2e.js +0 -88
- package/dist/collection/global/test/ionic-global.spec.js +0 -109
- package/dist/esm/ionic-global-d47e129d.js +0 -401
- package/dist/esm-es5/app-globals-4194f7b0.js +0 -4
- package/dist/esm-es5/data-735635b1.js +0 -4
- package/dist/esm-es5/index-3a495cc6.js +0 -5
- package/dist/esm-es5/index-4bbc4ca3.js +0 -4
- package/dist/esm-es5/index-62041d9c.js +0 -4
- package/dist/esm-es5/input-shims-131a3f9f.js +0 -4
- package/dist/esm-es5/input.utils-41b26b54.js +0 -4
- package/dist/esm-es5/ionic-global-d47e129d.js +0 -4
- package/dist/esm-es5/ios.transition-2187a9fd.js +0 -4
- package/dist/esm-es5/md.transition-a8d52fcb.js +0 -4
- package/dist/esm-es5/overlays-213b5a21.js +0 -4
- package/dist/esm-es5/status-tap-8838c434.js +0 -4
- package/dist/ionic/p-0507489e.system.entry.js +0 -4
- package/dist/ionic/p-09b71030.entry.js +0 -4
- package/dist/ionic/p-0c0065e8.js +0 -4
- package/dist/ionic/p-0daf382b.system.entry.js +0 -4
- package/dist/ionic/p-1126b6fb.entry.js +0 -4
- package/dist/ionic/p-116239e0.system.entry.js +0 -4
- package/dist/ionic/p-11f25a12.system.js +0 -4
- package/dist/ionic/p-13aa1338.entry.js +0 -4
- package/dist/ionic/p-16b3b748.system.js +0 -4
- package/dist/ionic/p-18d1e318.system.js +0 -4
- package/dist/ionic/p-197fca36.system.entry.js +0 -4
- package/dist/ionic/p-1cc1ce24.system.entry.js +0 -4
- package/dist/ionic/p-1f04779e.entry.js +0 -4
- package/dist/ionic/p-226bdf0f.entry.js +0 -4
- package/dist/ionic/p-23132e1f.js +0 -4
- package/dist/ionic/p-23a3320b.js +0 -4
- package/dist/ionic/p-23e053d0.system.entry.js +0 -4
- package/dist/ionic/p-24cc69ab.entry.js +0 -4
- package/dist/ionic/p-29ceda88.js +0 -4
- package/dist/ionic/p-2a4641fb.system.entry.js +0 -4
- package/dist/ionic/p-2bc784c2.system.entry.js +0 -4
- package/dist/ionic/p-2c8cb8c0.system.entry.js +0 -4
- package/dist/ionic/p-2fad37de.system.entry.js +0 -4
- package/dist/ionic/p-30aed000.system.entry.js +0 -4
- package/dist/ionic/p-30b7a6a6.system.entry.js +0 -4
- package/dist/ionic/p-35b46c05.entry.js +0 -4
- package/dist/ionic/p-365d2cfe.system.entry.js +0 -4
- package/dist/ionic/p-385c76dc.system.entry.js +0 -4
- package/dist/ionic/p-3b03dd5b.entry.js +0 -4
- package/dist/ionic/p-3d7001d7.js +0 -4
- package/dist/ionic/p-3e47e61e.entry.js +0 -4
- package/dist/ionic/p-3e8cfe35.system.entry.js +0 -4
- package/dist/ionic/p-3e9e667a.entry.js +0 -4
- package/dist/ionic/p-3ecd1809.entry.js +0 -4
- package/dist/ionic/p-3ed32307.system.entry.js +0 -4
- package/dist/ionic/p-44d8d5c3.entry.js +0 -4
- package/dist/ionic/p-45684f75.system.entry.js +0 -4
- package/dist/ionic/p-46e489c1.entry.js +0 -4
- package/dist/ionic/p-4c6278ca.system.entry.js +0 -4
- package/dist/ionic/p-4e7a18b3.entry.js +0 -4
- package/dist/ionic/p-4f30e4c3.system.entry.js +0 -4
- package/dist/ionic/p-52698131.entry.js +0 -4
- package/dist/ionic/p-56dfd814.entry.js +0 -4
- package/dist/ionic/p-5919403e.js +0 -4
- package/dist/ionic/p-5fed4c24.system.entry.js +0 -4
- package/dist/ionic/p-605c456e.system.entry.js +0 -4
- package/dist/ionic/p-6087c7ac.system.entry.js +0 -4
- package/dist/ionic/p-617a8c10.system.entry.js +0 -4
- package/dist/ionic/p-62ad354a.system.entry.js +0 -4
- package/dist/ionic/p-644df0cc.system.entry.js +0 -4
- package/dist/ionic/p-6718dfd8.system.entry.js +0 -4
- package/dist/ionic/p-6770c46d.system.entry.js +0 -4
- package/dist/ionic/p-6981ada8.entry.js +0 -4
- package/dist/ionic/p-69e691df.system.entry.js +0 -4
- package/dist/ionic/p-6a5b979b.system.js +0 -4
- package/dist/ionic/p-6d1854de.system.entry.js +0 -4
- package/dist/ionic/p-70a396e0.entry.js +0 -4
- package/dist/ionic/p-716cc857.entry.js +0 -4
- package/dist/ionic/p-71784639.entry.js +0 -4
- package/dist/ionic/p-75257a79.system.js +0 -5
- package/dist/ionic/p-77cdf8f0.system.entry.js +0 -4
- package/dist/ionic/p-7d6993fa.entry.js +0 -4
- package/dist/ionic/p-831269de.js +0 -4
- package/dist/ionic/p-84dd4f6c.system.entry.js +0 -4
- package/dist/ionic/p-8fbf7c49.entry.js +0 -4
- package/dist/ionic/p-8fd110c6.entry.js +0 -4
- package/dist/ionic/p-92b3df98.system.js +0 -4
- package/dist/ionic/p-9385f3c5.entry.js +0 -4
- package/dist/ionic/p-9a76dbbb.entry.js +0 -4
- package/dist/ionic/p-a5456295.entry.js +0 -4
- package/dist/ionic/p-a68b1b19.entry.js +0 -4
- package/dist/ionic/p-ac1eb107.system.js +0 -4
- package/dist/ionic/p-ae2c6708.system.entry.js +0 -4
- package/dist/ionic/p-ae3fdd38.entry.js +0 -4
- package/dist/ionic/p-afeebbc2.entry.js +0 -4
- package/dist/ionic/p-b0bd2f28.system.entry.js +0 -4
- package/dist/ionic/p-b0da0e7e.entry.js +0 -4
- package/dist/ionic/p-b69db5bf.entry.js +0 -4
- package/dist/ionic/p-bb01995b.entry.js +0 -4
- package/dist/ionic/p-bb4431d3.entry.js +0 -4
- package/dist/ionic/p-c1d0861e.entry.js +0 -4
- package/dist/ionic/p-c78731fc.system.js +0 -4
- package/dist/ionic/p-c7e3ef1f.js +0 -4
- package/dist/ionic/p-c8985963.system.js +0 -4
- package/dist/ionic/p-c957dcbd.system.entry.js +0 -4
- package/dist/ionic/p-cb4da696.js +0 -5
- package/dist/ionic/p-cc1dabd2.system.entry.js +0 -4
- package/dist/ionic/p-cd1250d7.js +0 -4
- package/dist/ionic/p-cd94b05a.system.entry.js +0 -4
- package/dist/ionic/p-d6788bde.system.entry.js +0 -4
- package/dist/ionic/p-d83f3852.system.entry.js +0 -4
- package/dist/ionic/p-de5f6929.system.entry.js +0 -4
- package/dist/ionic/p-dfb6de03.system.js +0 -4
- package/dist/ionic/p-e399a113.entry.js +0 -4
- package/dist/ionic/p-e557901b.entry.js +0 -4
- package/dist/ionic/p-e62f29e0.system.entry.js +0 -4
- package/dist/ionic/p-e7522003.js +0 -4
- package/dist/ionic/p-e86fef55.system.js +0 -4
- package/dist/ionic/p-eab67c46.system.entry.js +0 -4
- package/dist/ionic/p-efdba78a.system.entry.js +0 -4
- package/dist/ionic/p-f7a041dc.js +0 -4
- package/dist/ionic/p-f85988bd.entry.js +0 -4
- package/dist/ionic/p-f9398178.entry.js +0 -4
- package/dist/ionic/p-f977c8c5.entry.js +0 -4
- package/dist/ionic/p-ff584ff5.entry.js +0 -4
- package/dist/ionic/p-ff93a0f3.entry.js +0 -4
|
@@ -5,20 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index$1 = require('./index-af6d0fbb.js');
|
|
9
9
|
const focusVisible = require('./focus-visible-7a0ce04f.js');
|
|
10
10
|
const helpers = require('./helpers-afaa9001.js');
|
|
11
|
-
const
|
|
11
|
+
const index = require('./index-5915f9b3.js');
|
|
12
12
|
const dir = require('./dir-94c21456.js');
|
|
13
13
|
const theme = require('./theme-d1c573d2.js');
|
|
14
|
-
const index$
|
|
15
|
-
const
|
|
14
|
+
const index$2 = require('./index-073c7cdc.js');
|
|
15
|
+
const ionicGlobal = require('./ionic-global-1adf9bc4.js');
|
|
16
|
+
const data = require('./data-21dc0f81.js');
|
|
16
17
|
const lockController = require('./lock-controller-6585a42a.js');
|
|
17
|
-
const overlays = require('./overlays-
|
|
18
|
+
const overlays = require('./overlays-6487955a.js');
|
|
18
19
|
const animation = require('./animation-b4fdf128.js');
|
|
19
20
|
const haptic = require('./haptic-f6b37aa3.js');
|
|
20
21
|
require('./index-c8d52405.js');
|
|
21
|
-
require('./hardware-back-button-
|
|
22
|
+
require('./hardware-back-button-ad9299b4.js');
|
|
22
23
|
require('./framework-delegate-55f5683a.js');
|
|
23
24
|
require('./gesture-controller-9436f482.js');
|
|
24
25
|
require('./capacitor-c04564bf.js');
|
|
@@ -184,7 +185,7 @@ const getHighlightStyles = (highlightedDates, dateIsoString, el) => {
|
|
|
184
185
|
return highlightedDates(dateIsoString);
|
|
185
186
|
}
|
|
186
187
|
catch (e) {
|
|
187
|
-
|
|
188
|
+
index.printIonError('Exception thrown from provided `highlightedDates` callback. Please check your function and try again.', el, e);
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
191
|
return undefined;
|
|
@@ -201,7 +202,7 @@ const warnIfTimeZoneProvided = (el, formatOptions) => {
|
|
|
201
202
|
((_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _b === void 0 ? void 0 : _b.timeZoneName) ||
|
|
202
203
|
((_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _c === void 0 ? void 0 : _c.timeZone) ||
|
|
203
204
|
((_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _d === void 0 ? void 0 : _d.timeZoneName)) {
|
|
204
|
-
|
|
205
|
+
index.printIonWarning('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".', el);
|
|
205
206
|
}
|
|
206
207
|
};
|
|
207
208
|
const checkForPresentationFormatMismatch = (el, presentation, formatOptions) => {
|
|
@@ -215,26 +216,23 @@ const checkForPresentationFormatMismatch = (el, presentation, formatOptions) =>
|
|
|
215
216
|
case 'month':
|
|
216
217
|
case 'year':
|
|
217
218
|
if (formatOptions.date === undefined) {
|
|
218
|
-
|
|
219
|
+
index.printIonWarning(`Datetime: The '${presentation}' presentation requires a date object in formatOptions.`, el);
|
|
219
220
|
}
|
|
220
221
|
break;
|
|
221
222
|
case 'time':
|
|
222
223
|
if (formatOptions.time === undefined) {
|
|
223
|
-
|
|
224
|
+
index.printIonWarning(`Datetime: The 'time' presentation requires a time object in formatOptions.`, el);
|
|
224
225
|
}
|
|
225
226
|
break;
|
|
226
227
|
case 'date-time':
|
|
227
228
|
case 'time-date':
|
|
228
229
|
if (formatOptions.date === undefined && formatOptions.time === undefined) {
|
|
229
|
-
|
|
230
|
+
index.printIonWarning(`Datetime: The '${presentation}' presentation requires either a date or time object (or both) in formatOptions.`, el);
|
|
230
231
|
}
|
|
231
232
|
break;
|
|
232
233
|
}
|
|
233
234
|
};
|
|
234
235
|
|
|
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
|
-
|
|
238
236
|
const datetimeIosCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-button{--background:transparent}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}.calendar-month-year{min-width:0}.calendar-month-year-toggle{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2);font-size:min(1.375rem, 35.2px)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}";
|
|
239
237
|
const IonDatetimeIosStyle0 = datetimeIosCss;
|
|
240
238
|
|
|
@@ -243,14 +241,14 @@ const IonDatetimeMdStyle0 = datetimeMdCss;
|
|
|
243
241
|
|
|
244
242
|
const Datetime = class {
|
|
245
243
|
constructor(hostRef) {
|
|
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);
|
|
244
|
+
index$1.registerInstance(this, hostRef);
|
|
245
|
+
this.ionCancel = index$1.createEvent(this, "ionCancel", 7);
|
|
246
|
+
this.ionChange = index$1.createEvent(this, "ionChange", 7);
|
|
247
|
+
this.ionValueChange = index$1.createEvent(this, "ionValueChange", 7);
|
|
248
|
+
this.ionFocus = index$1.createEvent(this, "ionFocus", 7);
|
|
249
|
+
this.ionBlur = index$1.createEvent(this, "ionBlur", 7);
|
|
250
|
+
this.ionStyle = index$1.createEvent(this, "ionStyle", 7);
|
|
251
|
+
this.ionRender = index$1.createEvent(this, "ionRender", 7);
|
|
254
252
|
this.inputId = `ion-dt-${datetimeIds++}`;
|
|
255
253
|
this.prevPresentation = null;
|
|
256
254
|
this.warnIfIncorrectValueUsage = () => {
|
|
@@ -264,7 +262,7 @@ const Datetime = class {
|
|
|
264
262
|
* Default toString() behavior: a,b
|
|
265
263
|
* Custom behavior: ['a', 'b']
|
|
266
264
|
*/
|
|
267
|
-
|
|
265
|
+
index.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".
|
|
268
266
|
|
|
269
267
|
Value Passed: [${value.map((v) => `'${v}'`).join(', ')}]
|
|
270
268
|
`, this.el);
|
|
@@ -513,7 +511,7 @@ const Datetime = class {
|
|
|
513
511
|
* scrollIntoView() will scroll entire page
|
|
514
512
|
* if element is not in viewport. Use scrollLeft instead.
|
|
515
513
|
*/
|
|
516
|
-
index.writeTask(() => {
|
|
514
|
+
index$1.writeTask(() => {
|
|
517
515
|
calendarBodyRef.scrollLeft = startMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
518
516
|
const getChangedMonth = (parts) => {
|
|
519
517
|
const box = calendarBodyRef.getBoundingClientRect();
|
|
@@ -604,7 +602,7 @@ const Datetime = class {
|
|
|
604
602
|
* but older/slower device may have a flicker
|
|
605
603
|
* if we did not do this.
|
|
606
604
|
*/
|
|
607
|
-
index.writeTask(() => {
|
|
605
|
+
index$1.writeTask(() => {
|
|
608
606
|
this.setWorkingParts(Object.assign(Object.assign({}, this.workingParts), { month, day: day, year }));
|
|
609
607
|
calendarBodyRef.scrollLeft = workingMonth.clientWidth * (dir.isRTL(this.el) ? -1 : 1);
|
|
610
608
|
calendarBodyRef.style.removeProperty('overflow');
|
|
@@ -1029,7 +1027,7 @@ const Datetime = class {
|
|
|
1029
1027
|
* is that the content will pop into view a frame after. Maybe there
|
|
1030
1028
|
* is a better way to handle this?
|
|
1031
1029
|
*/
|
|
1032
|
-
index.writeTask(() => {
|
|
1030
|
+
index$1.writeTask(() => {
|
|
1033
1031
|
this.el.classList.add('datetime-ready');
|
|
1034
1032
|
});
|
|
1035
1033
|
};
|
|
@@ -1062,7 +1060,7 @@ const Datetime = class {
|
|
|
1062
1060
|
* As a result, the wrong month will be shown.
|
|
1063
1061
|
*/
|
|
1064
1062
|
this.showMonthAndYear = false;
|
|
1065
|
-
index.writeTask(() => {
|
|
1063
|
+
index$1.writeTask(() => {
|
|
1066
1064
|
this.el.classList.remove('datetime-ready');
|
|
1067
1065
|
});
|
|
1068
1066
|
};
|
|
@@ -1144,18 +1142,18 @@ const Datetime = class {
|
|
|
1144
1142
|
const { el, formatOptions, highlightedDates, multiple, presentation, preferWheel } = this;
|
|
1145
1143
|
if (multiple) {
|
|
1146
1144
|
if (presentation !== 'date') {
|
|
1147
|
-
|
|
1145
|
+
index.printIonWarning('Multiple date selection is only supported for presentation="date".', el);
|
|
1148
1146
|
}
|
|
1149
1147
|
if (preferWheel) {
|
|
1150
|
-
|
|
1148
|
+
index.printIonWarning('Multiple date selection is not supported with preferWheel="true".', el);
|
|
1151
1149
|
}
|
|
1152
1150
|
}
|
|
1153
1151
|
if (highlightedDates !== undefined) {
|
|
1154
1152
|
if (presentation !== 'date' && presentation !== 'date-time' && presentation !== 'time-date') {
|
|
1155
|
-
|
|
1153
|
+
index.printIonWarning('The highlightedDates property is only supported with the date, date-time, and time-date presentations.', el);
|
|
1156
1154
|
}
|
|
1157
1155
|
if (preferWheel) {
|
|
1158
|
-
|
|
1156
|
+
index.printIonWarning('The highlightedDates property is not supported with preferWheel="true".', el);
|
|
1159
1157
|
}
|
|
1160
1158
|
}
|
|
1161
1159
|
if (formatOptions) {
|
|
@@ -1218,10 +1216,10 @@ const Datetime = class {
|
|
|
1218
1216
|
* OK - Dismisses the datetime and
|
|
1219
1217
|
* updates the `value` prop.
|
|
1220
1218
|
*/
|
|
1221
|
-
return (index.h("div", { class: "datetime-footer" }, index.h("div", { class: "datetime-buttons" }, index.h("div", { class: {
|
|
1219
|
+
return (index$1.h("div", { class: "datetime-footer" }, index$1.h("div", { class: "datetime-buttons" }, index$1.h("div", { class: {
|
|
1222
1220
|
['datetime-action-buttons']: true,
|
|
1223
1221
|
['has-clear-button']: this.showClearButton,
|
|
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)))))))));
|
|
1222
|
+
} }, index$1.h("slot", { name: "buttons" }, index$1.h("ion-buttons", null, showDefaultButtons && (index$1.h("ion-button", { id: "cancel-button", color: this.color, onClick: () => this.cancel(true), disabled: isButtonDisabled }, this.cancelText)), index$1.h("div", { class: "datetime-action-buttons-container" }, showClearButton && (index$1.h("ion-button", { id: "clear-button", color: this.color, onClick: () => clearButtonClick(), disabled: isButtonDisabled }, this.clearText)), showDefaultButtons && (index$1.h("ion-button", { id: "confirm-button", color: this.color, onClick: () => this.confirm(true), disabled: isButtonDisabled }, this.doneText)))))))));
|
|
1225
1223
|
}
|
|
1226
1224
|
/**
|
|
1227
1225
|
* Wheel picker render methods
|
|
@@ -1239,7 +1237,7 @@ const Datetime = class {
|
|
|
1239
1237
|
const renderArray = forcePresentation === 'time-date'
|
|
1240
1238
|
? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
|
|
1241
1239
|
: [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
|
|
1242
|
-
return index.h("ion-picker", null, renderArray);
|
|
1240
|
+
return index$1.h("ion-picker", null, renderArray);
|
|
1243
1241
|
}
|
|
1244
1242
|
renderDatePickerColumns(forcePresentation) {
|
|
1245
1243
|
return forcePresentation === 'date-time' || forcePresentation === 'time-date'
|
|
@@ -1274,8 +1272,8 @@ const Datetime = class {
|
|
|
1274
1272
|
let items = result.items;
|
|
1275
1273
|
const parts = result.parts;
|
|
1276
1274
|
if (isDateEnabled) {
|
|
1277
|
-
items = items.map((itemObject, index) => {
|
|
1278
|
-
const referenceParts = parts[index];
|
|
1275
|
+
items = items.map((itemObject, index$1) => {
|
|
1276
|
+
const referenceParts = parts[index$1];
|
|
1279
1277
|
let disabled;
|
|
1280
1278
|
try {
|
|
1281
1279
|
/**
|
|
@@ -1286,7 +1284,7 @@ const Datetime = class {
|
|
|
1286
1284
|
disabled = !isDateEnabled(data.convertDataToISO(referenceParts));
|
|
1287
1285
|
}
|
|
1288
1286
|
catch (e) {
|
|
1289
|
-
|
|
1287
|
+
index.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1290
1288
|
}
|
|
1291
1289
|
return Object.assign(Object.assign({}, itemObject), { disabled });
|
|
1292
1290
|
});
|
|
@@ -1298,13 +1296,13 @@ const Datetime = class {
|
|
|
1298
1296
|
const todayString = workingParts.day !== null
|
|
1299
1297
|
? `${workingParts.year}-${workingParts.month}-${workingParts.day}`
|
|
1300
1298
|
: `${defaultParts.year}-${defaultParts.month}-${defaultParts.day}`;
|
|
1301
|
-
return (index.h("ion-picker-column", { class: "date-column", color: this.color, disabled: disabled, value: todayString, onIonChange: (ev) => {
|
|
1299
|
+
return (index$1.h("ion-picker-column", { class: "date-column", color: this.color, disabled: disabled, value: todayString, onIonChange: (ev) => {
|
|
1302
1300
|
const { value } = ev.detail;
|
|
1303
1301
|
const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`);
|
|
1304
1302
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
|
|
1305
1303
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), findPart));
|
|
1306
1304
|
ev.stopPropagation();
|
|
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)))));
|
|
1305
|
+
} }, items.map((item) => (index$1.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)))));
|
|
1308
1306
|
}
|
|
1309
1307
|
renderIndividualDatePickerColumns(forcePresentation) {
|
|
1310
1308
|
const { workingParts, isDateEnabled } = this;
|
|
@@ -1335,7 +1333,7 @@ const Datetime = class {
|
|
|
1335
1333
|
disabled = !isDateEnabled(data.convertDataToISO(referenceParts));
|
|
1336
1334
|
}
|
|
1337
1335
|
catch (e) {
|
|
1338
|
-
|
|
1336
|
+
index.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', e);
|
|
1339
1337
|
}
|
|
1340
1338
|
return Object.assign(Object.assign({}, dayObject), { disabled });
|
|
1341
1339
|
});
|
|
@@ -1373,11 +1371,11 @@ const Datetime = class {
|
|
|
1373
1371
|
const { disabled, workingParts } = this;
|
|
1374
1372
|
const activePart = this.getActivePartsWithFallback();
|
|
1375
1373
|
const pickerColumnValue = (_a = (workingParts.day !== null ? workingParts.day : this.defaultParts.day)) !== null && _a !== void 0 ? _a : undefined;
|
|
1376
|
-
return (index.h("ion-picker-column", { class: "day-column", color: this.color, disabled: disabled, value: pickerColumnValue, onIonChange: (ev) => {
|
|
1374
|
+
return (index$1.h("ion-picker-column", { class: "day-column", color: this.color, disabled: disabled, value: pickerColumnValue, onIonChange: (ev) => {
|
|
1377
1375
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
|
|
1378
1376
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { day: ev.detail.value }));
|
|
1379
1377
|
ev.stopPropagation();
|
|
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)))));
|
|
1378
|
+
} }, days.map((day) => (index$1.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)))));
|
|
1381
1379
|
}
|
|
1382
1380
|
renderMonthPickerColumn(months) {
|
|
1383
1381
|
if (months.length === 0) {
|
|
@@ -1385,11 +1383,11 @@ const Datetime = class {
|
|
|
1385
1383
|
}
|
|
1386
1384
|
const { disabled, workingParts } = this;
|
|
1387
1385
|
const activePart = this.getActivePartsWithFallback();
|
|
1388
|
-
return (index.h("ion-picker-column", { class: "month-column", color: this.color, disabled: disabled, value: workingParts.month, onIonChange: (ev) => {
|
|
1386
|
+
return (index$1.h("ion-picker-column", { class: "month-column", color: this.color, disabled: disabled, value: workingParts.month, onIonChange: (ev) => {
|
|
1389
1387
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { month: ev.detail.value }));
|
|
1390
1388
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { month: ev.detail.value }));
|
|
1391
1389
|
ev.stopPropagation();
|
|
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)))));
|
|
1390
|
+
} }, months.map((month) => (index$1.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)))));
|
|
1393
1391
|
}
|
|
1394
1392
|
renderYearPickerColumn(years) {
|
|
1395
1393
|
if (years.length === 0) {
|
|
@@ -1397,11 +1395,11 @@ const Datetime = class {
|
|
|
1397
1395
|
}
|
|
1398
1396
|
const { disabled, workingParts } = this;
|
|
1399
1397
|
const activePart = this.getActivePartsWithFallback();
|
|
1400
|
-
return (index.h("ion-picker-column", { class: "year-column", color: this.color, disabled: disabled, value: workingParts.year, onIonChange: (ev) => {
|
|
1398
|
+
return (index$1.h("ion-picker-column", { class: "year-column", color: this.color, disabled: disabled, value: workingParts.year, onIonChange: (ev) => {
|
|
1401
1399
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { year: ev.detail.value }));
|
|
1402
1400
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { year: ev.detail.value }));
|
|
1403
1401
|
ev.stopPropagation();
|
|
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)))));
|
|
1402
|
+
} }, years.map((year) => (index$1.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)))));
|
|
1405
1403
|
}
|
|
1406
1404
|
renderTimePickerColumns(forcePresentation) {
|
|
1407
1405
|
if (['date', 'month', 'month-year', 'year'].includes(forcePresentation)) {
|
|
@@ -1430,22 +1428,22 @@ const Datetime = class {
|
|
|
1430
1428
|
if (hoursData.length === 0)
|
|
1431
1429
|
return [];
|
|
1432
1430
|
const activePart = this.getActivePartsWithFallback();
|
|
1433
|
-
return (index.h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
|
|
1431
|
+
return (index$1.h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
|
|
1434
1432
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
|
|
1435
1433
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { hour: ev.detail.value }));
|
|
1436
1434
|
ev.stopPropagation();
|
|
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)))));
|
|
1435
|
+
} }, hoursData.map((hour) => (index$1.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)))));
|
|
1438
1436
|
}
|
|
1439
1437
|
renderMinutePickerColumn(minutesData) {
|
|
1440
1438
|
const { disabled, workingParts } = this;
|
|
1441
1439
|
if (minutesData.length === 0)
|
|
1442
1440
|
return [];
|
|
1443
1441
|
const activePart = this.getActivePartsWithFallback();
|
|
1444
|
-
return (index.h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
|
|
1442
|
+
return (index$1.h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
|
|
1445
1443
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
|
|
1446
1444
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { minute: ev.detail.value }));
|
|
1447
1445
|
ev.stopPropagation();
|
|
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)))));
|
|
1446
|
+
} }, minutesData.map((minute) => (index$1.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)))));
|
|
1449
1447
|
}
|
|
1450
1448
|
renderDayPeriodPickerColumn(dayPeriodData) {
|
|
1451
1449
|
const { disabled, workingParts } = this;
|
|
@@ -1454,38 +1452,38 @@ const Datetime = class {
|
|
|
1454
1452
|
}
|
|
1455
1453
|
const activePart = this.getActivePartsWithFallback();
|
|
1456
1454
|
const isDayPeriodRTL = data.isLocaleDayPeriodRTL(this.locale);
|
|
1457
|
-
return (index.h("ion-picker-column", { style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
|
|
1455
|
+
return (index$1.h("ion-picker-column", { style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
|
|
1458
1456
|
const hour = data.calculateHourFromAMPM(workingParts, ev.detail.value);
|
|
1459
1457
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
|
|
1460
1458
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { ampm: ev.detail.value, hour }));
|
|
1461
1459
|
ev.stopPropagation();
|
|
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)))));
|
|
1460
|
+
} }, dayPeriodData.map((dayPeriod) => (index$1.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)))));
|
|
1463
1461
|
}
|
|
1464
1462
|
renderWheelView(forcePresentation) {
|
|
1465
1463
|
const { locale } = this;
|
|
1466
1464
|
const showMonthFirst = data.isMonthFirstLocale(locale);
|
|
1467
1465
|
const columnOrder = showMonthFirst ? 'month-first' : 'year-first';
|
|
1468
|
-
return (index.h("div", { class: {
|
|
1466
|
+
return (index$1.h("div", { class: {
|
|
1469
1467
|
[`wheel-order-${columnOrder}`]: true,
|
|
1470
1468
|
} }, this.renderWheelPicker(forcePresentation)));
|
|
1471
1469
|
}
|
|
1472
1470
|
/**
|
|
1473
1471
|
* Grid Render Methods
|
|
1474
1472
|
*/
|
|
1475
|
-
renderCalendarHeader(
|
|
1473
|
+
renderCalendarHeader(mode) {
|
|
1476
1474
|
const { disabled } = this;
|
|
1477
|
-
const expandedIcon =
|
|
1478
|
-
const collapsedIcon =
|
|
1475
|
+
const expandedIcon = mode === 'ios' ? index$2.chevronDown : index$2.caretUpSharp;
|
|
1476
|
+
const collapsedIcon = mode === 'ios' ? index$2.chevronForward : index$2.caretDownSharp;
|
|
1479
1477
|
const prevMonthDisabled = disabled || isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
|
|
1480
1478
|
const nextMonthDisabled = disabled || isNextMonthDisabled(this.workingParts, this.maxParts);
|
|
1481
1479
|
// don't use the inheritAttributes util because it removes dir from the host, and we still need that
|
|
1482
1480
|
const hostDir = this.el.getAttribute('dir') || undefined;
|
|
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: {
|
|
1481
|
+
return (index$1.h("div", { class: "calendar-header" }, index$1.h("div", { class: "calendar-action-buttons" }, index$1.h("div", { class: "calendar-month-year" }, index$1.h("button", { class: {
|
|
1484
1482
|
'calendar-month-year-toggle': true,
|
|
1485
1483
|
'ion-activatable': true,
|
|
1486
1484
|
'ion-focusable': true,
|
|
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 })),
|
|
1488
|
-
return index.h("div", { class: "day-of-week" }, d);
|
|
1485
|
+
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, index$1.h("span", { id: "toggle-wrapper" }, data.getMonthAndYear(this.locale, this.workingParts), index$1.h("ion-icon", { "aria-hidden": "true", icon: this.showMonthAndYear ? expandedIcon : collapsedIcon, lazy: false, flipRtl: true })), mode === 'md' && index$1.h("ion-ripple-effect", null))), index$1.h("div", { class: "calendar-next-prev" }, index$1.h("ion-buttons", null, index$1.h("ion-button", { "aria-label": "Previous month", disabled: prevMonthDisabled, onClick: () => this.prevMonth() }, index$1.h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: index$2.chevronBack, lazy: false, flipRtl: true })), index$1.h("ion-button", { "aria-label": "Next month", disabled: nextMonthDisabled, onClick: () => this.nextMonth() }, index$1.h("ion-icon", { dir: hostDir, "aria-hidden": "true", slot: "icon-only", icon: index$2.chevronForward, lazy: false, flipRtl: true }))))), index$1.h("div", { class: "calendar-days-of-week", "aria-hidden": "true" }, data.getDaysOfWeek(this.locale, mode, this.firstDayOfWeek % 7).map((d) => {
|
|
1486
|
+
return index$1.h("div", { class: "day-of-week" }, d);
|
|
1489
1487
|
}))));
|
|
1490
1488
|
}
|
|
1491
1489
|
renderMonth(month, year) {
|
|
@@ -1511,11 +1509,11 @@ const Datetime = class {
|
|
|
1511
1509
|
// can free-scroll the calendar.
|
|
1512
1510
|
const isWorkingMonth = this.workingParts.month === month && this.workingParts.year === year;
|
|
1513
1511
|
const activePart = this.getActivePartsWithFallback();
|
|
1514
|
-
return (index.h("div", { "aria-hidden": !isWorkingMonth ? 'true' : null, class: {
|
|
1512
|
+
return (index$1.h("div", { "aria-hidden": !isWorkingMonth ? 'true' : null, class: {
|
|
1515
1513
|
'calendar-month': true,
|
|
1516
1514
|
// Prevents scroll snap swipe gestures for months outside of the min/max bounds
|
|
1517
1515
|
'calendar-month-disabled': !isWorkingMonth && swipeDisabled,
|
|
1518
|
-
} }, index.h("div", { class: "calendar-month-grid" }, data.getDaysOfMonth(month, year, this.firstDayOfWeek % 7).map((dateObject, index$
|
|
1516
|
+
} }, index$1.h("div", { class: "calendar-month-grid" }, data.getDaysOfMonth(month, year, this.firstDayOfWeek % 7).map((dateObject, index$2) => {
|
|
1519
1517
|
const { day, dayOfWeek } = dateObject;
|
|
1520
1518
|
const { el, highlightedDates, isDateEnabled, multiple } = this;
|
|
1521
1519
|
const referenceParts = { month, day, year };
|
|
@@ -1533,7 +1531,7 @@ const Datetime = class {
|
|
|
1533
1531
|
isCalDayDisabled = !isDateEnabled(dateIsoString);
|
|
1534
1532
|
}
|
|
1535
1533
|
catch (e) {
|
|
1536
|
-
|
|
1534
|
+
index.printIonError('Exception thrown from provided `isDateEnabled` function. Please check your function and try again.', el, e);
|
|
1537
1535
|
}
|
|
1538
1536
|
}
|
|
1539
1537
|
/**
|
|
@@ -1557,7 +1555,7 @@ const Datetime = class {
|
|
|
1557
1555
|
if (!isCalendarPadding) {
|
|
1558
1556
|
dateParts = `calendar-day${isActive ? ' active' : ''}${isToday ? ' today' : ''}${isCalDayDisabled ? ' disabled' : ''}`;
|
|
1559
1557
|
}
|
|
1560
|
-
return (index.h("div", { class: "calendar-day-wrapper" }, index.h("button", {
|
|
1558
|
+
return (index$1.h("div", { class: "calendar-day-wrapper" }, index$1.h("button", {
|
|
1561
1559
|
// We need to use !important for the inline styles here because
|
|
1562
1560
|
// otherwise the CSS shadow parts will override these styles.
|
|
1563
1561
|
// See https://github.com/WICG/webcomponents/issues/847
|
|
@@ -1569,7 +1567,7 @@ const Datetime = class {
|
|
|
1569
1567
|
el.style.setProperty('color', `${dateStyle ? dateStyle.textColor : ''}`, 'important');
|
|
1570
1568
|
el.style.setProperty('background-color', `${dateStyle ? dateStyle.backgroundColor : ''}`, 'important');
|
|
1571
1569
|
}
|
|
1572
|
-
}, tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$
|
|
1570
|
+
}, tabindex: "-1", "data-day": day, "data-month": month, "data-year": year, "data-index": index$2, "data-day-of-week": dayOfWeek, disabled: isButtonDisabled, class: {
|
|
1573
1571
|
'calendar-day-padding': isCalendarPadding,
|
|
1574
1572
|
'calendar-day': true,
|
|
1575
1573
|
'calendar-day-active': isActive,
|
|
@@ -1600,27 +1598,27 @@ const Datetime = class {
|
|
|
1600
1598
|
}))));
|
|
1601
1599
|
}
|
|
1602
1600
|
renderCalendarBody() {
|
|
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 }) => {
|
|
1601
|
+
return (index$1.h("div", { class: "calendar-body ion-focusable", ref: (el) => (this.calendarBodyRef = el), tabindex: "0" }, data.generateMonths(this.workingParts, this.forceRenderDate).map(({ month, year }) => {
|
|
1604
1602
|
return this.renderMonth(month, year);
|
|
1605
1603
|
})));
|
|
1606
1604
|
}
|
|
1607
|
-
renderCalendar(
|
|
1608
|
-
return (index.h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(
|
|
1605
|
+
renderCalendar(mode) {
|
|
1606
|
+
return (index$1.h("div", { class: "datetime-calendar", key: "datetime-calendar" }, this.renderCalendarHeader(mode), this.renderCalendarBody()));
|
|
1609
1607
|
}
|
|
1610
1608
|
renderTimeLabel() {
|
|
1611
1609
|
const hasSlottedTimeLabel = this.el.querySelector('[slot="time-label"]') !== null;
|
|
1612
1610
|
if (!hasSlottedTimeLabel && !this.showDefaultTimeLabel) {
|
|
1613
1611
|
return;
|
|
1614
1612
|
}
|
|
1615
|
-
return index.h("slot", { name: "time-label" }, "Time");
|
|
1613
|
+
return index$1.h("slot", { name: "time-label" }, "Time");
|
|
1616
1614
|
}
|
|
1617
1615
|
renderTimeOverlay() {
|
|
1618
1616
|
const { disabled, hourCycle, isTimePopoverOpen, locale, formatOptions } = this;
|
|
1619
1617
|
const computedHourCycle = data.getHourCycle(locale, hourCycle);
|
|
1620
1618
|
const activePart = this.getActivePartsWithFallback();
|
|
1621
1619
|
return [
|
|
1622
|
-
index.h("div", { class: "time-header" }, this.renderTimeLabel()),
|
|
1623
|
-
index.h("button", { class: {
|
|
1620
|
+
index$1.h("div", { class: "time-header" }, this.renderTimeLabel()),
|
|
1621
|
+
index$1.h("button", { class: {
|
|
1624
1622
|
'time-body': true,
|
|
1625
1623
|
'time-body-active': isTimePopoverOpen,
|
|
1626
1624
|
}, part: `time-button${isTimePopoverOpen ? ' active' : ''}`, "aria-expanded": "false", "aria-haspopup": "true", disabled: disabled, onClick: async (ev) => {
|
|
@@ -1636,7 +1634,7 @@ const Datetime = class {
|
|
|
1636
1634
|
this.isTimePopoverOpen = false;
|
|
1637
1635
|
}
|
|
1638
1636
|
} }, data.getLocalizedTime(locale, activePart, computedHourCycle, formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time)),
|
|
1639
|
-
index.h("ion-popover", { alignment: "center", translucent: true, overlayIndex: 1, arrow: false, onWillPresent: (ev) => {
|
|
1637
|
+
index$1.h("ion-popover", { alignment: "center", translucent: true, overlayIndex: 1, arrow: false, onWillPresent: (ev) => {
|
|
1640
1638
|
/**
|
|
1641
1639
|
* Intersection Observers do not consistently fire between Blink and Webkit
|
|
1642
1640
|
* when toggling the visibility of the popover and trying to scroll the picker
|
|
@@ -1669,7 +1667,7 @@ const Datetime = class {
|
|
|
1669
1667
|
headerText = titleSelectedDatesFormatter(data.convertDataToISO(activeParts));
|
|
1670
1668
|
}
|
|
1671
1669
|
catch (e) {
|
|
1672
|
-
|
|
1670
|
+
index.printIonError('Exception in provided `titleSelectedDatesFormatter`: ', e);
|
|
1673
1671
|
}
|
|
1674
1672
|
}
|
|
1675
1673
|
}
|
|
@@ -1684,7 +1682,7 @@ const Datetime = class {
|
|
|
1684
1682
|
if (!hasSlottedTitle && !this.showDefaultTitle) {
|
|
1685
1683
|
return;
|
|
1686
1684
|
}
|
|
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())));
|
|
1685
|
+
return (index$1.h("div", { class: "datetime-header" }, index$1.h("div", { class: "datetime-title" }, index$1.h("slot", { name: "title" }, "Select Date")), showExpandedHeader && index$1.h("div", { class: "datetime-selected-date" }, this.getHeaderSelectedDateText())));
|
|
1688
1686
|
}
|
|
1689
1687
|
/**
|
|
1690
1688
|
* Render time picker inside of datetime.
|
|
@@ -1696,7 +1694,7 @@ const Datetime = class {
|
|
|
1696
1694
|
renderTime() {
|
|
1697
1695
|
const { presentation } = this;
|
|
1698
1696
|
const timeOnlyPresentation = presentation === 'time';
|
|
1699
|
-
return (index.h("div", { class: "datetime-time" }, timeOnlyPresentation ? this.renderWheelPicker() : this.renderTimeOverlay()));
|
|
1697
|
+
return (index$1.h("div", { class: "datetime-time" }, timeOnlyPresentation ? this.renderWheelPicker() : this.renderTimeOverlay()));
|
|
1700
1698
|
}
|
|
1701
1699
|
/**
|
|
1702
1700
|
* Renders the month/year picker that is
|
|
@@ -1707,13 +1705,13 @@ const Datetime = class {
|
|
|
1707
1705
|
* toggle in the calendar header.
|
|
1708
1706
|
*/
|
|
1709
1707
|
renderCalendarViewMonthYearPicker() {
|
|
1710
|
-
return index.h("div", { class: "datetime-year" }, this.renderWheelView('month-year'));
|
|
1708
|
+
return index$1.h("div", { class: "datetime-year" }, this.renderWheelView('month-year'));
|
|
1711
1709
|
}
|
|
1712
1710
|
/**
|
|
1713
1711
|
* Render entry point
|
|
1714
1712
|
* All presentation types are rendered from here.
|
|
1715
1713
|
*/
|
|
1716
|
-
renderDatetime(
|
|
1714
|
+
renderDatetime(mode) {
|
|
1717
1715
|
const { presentation, preferWheel } = this;
|
|
1718
1716
|
/**
|
|
1719
1717
|
* Certain presentation types have separate grid and wheel displays.
|
|
@@ -1727,7 +1725,7 @@ const Datetime = class {
|
|
|
1727
1725
|
case 'date-time':
|
|
1728
1726
|
return [
|
|
1729
1727
|
this.renderHeader(),
|
|
1730
|
-
this.renderCalendar(
|
|
1728
|
+
this.renderCalendar(mode),
|
|
1731
1729
|
this.renderCalendarViewMonthYearPicker(),
|
|
1732
1730
|
this.renderTime(),
|
|
1733
1731
|
this.renderFooter(),
|
|
@@ -1736,7 +1734,7 @@ const Datetime = class {
|
|
|
1736
1734
|
return [
|
|
1737
1735
|
this.renderHeader(),
|
|
1738
1736
|
this.renderTime(),
|
|
1739
|
-
this.renderCalendar(
|
|
1737
|
+
this.renderCalendar(mode),
|
|
1740
1738
|
this.renderCalendarViewMonthYearPicker(),
|
|
1741
1739
|
this.renderFooter(),
|
|
1742
1740
|
];
|
|
@@ -1749,7 +1747,7 @@ const Datetime = class {
|
|
|
1749
1747
|
default:
|
|
1750
1748
|
return [
|
|
1751
1749
|
this.renderHeader(),
|
|
1752
|
-
this.renderCalendar(
|
|
1750
|
+
this.renderCalendar(mode),
|
|
1753
1751
|
this.renderCalendarViewMonthYearPicker(),
|
|
1754
1752
|
this.renderFooter(),
|
|
1755
1753
|
];
|
|
@@ -1757,15 +1755,15 @@ const Datetime = class {
|
|
|
1757
1755
|
}
|
|
1758
1756
|
render() {
|
|
1759
1757
|
const { name, value, disabled, el, color, readonly, showMonthAndYear, preferWheel, presentation, size, isGridStyle, } = this;
|
|
1760
|
-
const
|
|
1758
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
1761
1759
|
const isMonthAndYearPresentation = presentation === 'year' || presentation === 'month' || presentation === 'month-year';
|
|
1762
1760
|
const shouldShowMonthAndYear = showMonthAndYear || isMonthAndYearPresentation;
|
|
1763
1761
|
const monthYearPickerOpen = showMonthAndYear && !isMonthAndYearPresentation;
|
|
1764
1762
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1765
1763
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1766
1764
|
helpers.renderHiddenInput(true, el, name, data.formatValue(value), disabled);
|
|
1767
|
-
return (index.h(index.Host, { key: '
|
|
1768
|
-
[
|
|
1765
|
+
return (index$1.h(index$1.Host, { key: '79357d753d003539aaadbc30aa0ca7e2ab97415d', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, theme.createColorClasses(color, {
|
|
1766
|
+
[mode]: true,
|
|
1769
1767
|
['datetime-readonly']: readonly,
|
|
1770
1768
|
['datetime-disabled']: disabled,
|
|
1771
1769
|
'show-month-and-year': shouldShowMonthAndYear,
|
|
@@ -1774,9 +1772,9 @@ const Datetime = class {
|
|
|
1774
1772
|
[`datetime-size-${size}`]: true,
|
|
1775
1773
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1776
1774
|
[`datetime-grid`]: isGridStyle,
|
|
1777
|
-
})) }, index.h("div", { key: '
|
|
1775
|
+
})) }, index$1.h("div", { key: '18b6631ffcf028c5062659e75be5d6712ac30402', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
1778
1776
|
}
|
|
1779
|
-
get el() { return index.getElement(this); }
|
|
1777
|
+
get el() { return index$1.getElement(this); }
|
|
1780
1778
|
static get watchers() { return {
|
|
1781
1779
|
"formatOptions": ["formatOptionsChanged"],
|
|
1782
1780
|
"disabled": ["disabledChanged"],
|
|
@@ -1795,7 +1793,6 @@ let datetimeIds = 0;
|
|
|
1795
1793
|
const WHEEL_ITEM_PART = 'wheel-item';
|
|
1796
1794
|
const WHEEL_ITEM_ACTIVE_PART = `active`;
|
|
1797
1795
|
Datetime.style = {
|
|
1798
|
-
ionic: IonDatetimeIonicStyle0,
|
|
1799
1796
|
ios: IonDatetimeIosStyle0,
|
|
1800
1797
|
md: IonDatetimeMdStyle0
|
|
1801
1798
|
};
|
|
@@ -1852,15 +1849,15 @@ const IonPickerLegacyMdStyle0 = pickerMdCss;
|
|
|
1852
1849
|
|
|
1853
1850
|
const Picker = class {
|
|
1854
1851
|
constructor(hostRef) {
|
|
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);
|
|
1852
|
+
index$1.registerInstance(this, hostRef);
|
|
1853
|
+
this.didPresent = index$1.createEvent(this, "ionPickerDidPresent", 7);
|
|
1854
|
+
this.willPresent = index$1.createEvent(this, "ionPickerWillPresent", 7);
|
|
1855
|
+
this.willDismiss = index$1.createEvent(this, "ionPickerWillDismiss", 7);
|
|
1856
|
+
this.didDismiss = index$1.createEvent(this, "ionPickerDidDismiss", 7);
|
|
1857
|
+
this.didPresentShorthand = index$1.createEvent(this, "didPresent", 7);
|
|
1858
|
+
this.willPresentShorthand = index$1.createEvent(this, "willPresent", 7);
|
|
1859
|
+
this.willDismissShorthand = index$1.createEvent(this, "willDismiss", 7);
|
|
1860
|
+
this.didDismissShorthand = index$1.createEvent(this, "didDismiss", 7);
|
|
1864
1861
|
this.delegateController = overlays.createDelegateController(this);
|
|
1865
1862
|
this.lockController = lockController.createLockController();
|
|
1866
1863
|
this.triggerController = overlays.createTriggerController();
|
|
@@ -1917,7 +1914,7 @@ const Picker = class {
|
|
|
1917
1914
|
overlays.setOverlayId(this.el);
|
|
1918
1915
|
}
|
|
1919
1916
|
componentDidLoad() {
|
|
1920
|
-
|
|
1917
|
+
index.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);
|
|
1921
1918
|
/**
|
|
1922
1919
|
* If picker was rendered with isOpen="true"
|
|
1923
1920
|
* then we should open picker immediately.
|
|
@@ -2026,14 +2023,14 @@ const Picker = class {
|
|
|
2026
2023
|
}
|
|
2027
2024
|
render() {
|
|
2028
2025
|
const { htmlAttributes } = this;
|
|
2029
|
-
const
|
|
2030
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
2026
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
2027
|
+
return (index$1.h(index$1.Host, Object.assign({ key: '91d3d127c46d125a2a86222e3002d804ebd8bc84', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2031
2028
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2032
|
-
}, class: Object.assign({ [
|
|
2029
|
+
}, class: Object.assign({ [mode]: true,
|
|
2033
2030
|
// Used internally for styling
|
|
2034
|
-
[`picker-${
|
|
2031
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index$1.h("ion-backdrop", { key: '63140c43f7a2e3000076adec0406197cb569f985', visible: this.showBackdrop, tappable: this.backdropDismiss }), index$1.h("div", { key: '3e86ec5e61adf40983a1d33ef24f66f4f75307e8', tabindex: "0" }), index$1.h("div", { key: '3c3844f369da33e35c9a498d88d1b7e4d686b8ce', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, index$1.h("div", { key: 'e03200231976723409505b0c4070e7f596815e50', class: "picker-toolbar" }, this.buttons.map((b) => (index$1.h("div", { class: buttonWrapperClass(b) }, index$1.h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), index$1.h("div", { key: 'd59de79e8c364376bc16d2edae3672b21443f3fe', class: "picker-columns" }, index$1.h("div", { key: 'e79cb88c5397047bc8c7e71efb4f1a338773e744', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => index$1.h("ion-picker-legacy-column", { col: c })), index$1.h("div", { key: '776de64da09485ad1dbf78d4d402e297b94348a6', class: "picker-below-highlight" }))), index$1.h("div", { key: 'f0aa77e3b467c3fb4950389d27c13769dc913b14', tabindex: "0" })));
|
|
2035
2032
|
}
|
|
2036
|
-
get el() { return index.getElement(this); }
|
|
2033
|
+
get el() { return index$1.getElement(this); }
|
|
2037
2034
|
static get watchers() { return {
|
|
2038
2035
|
"isOpen": ["onIsOpenChange"],
|
|
2039
2036
|
"trigger": ["triggerChanged"]
|
|
@@ -2061,8 +2058,8 @@ const IonPickerLegacyColumnMdStyle0 = pickerColumnMdCss;
|
|
|
2061
2058
|
|
|
2062
2059
|
const PickerColumnCmp = class {
|
|
2063
2060
|
constructor(hostRef) {
|
|
2064
|
-
index.registerInstance(this, hostRef);
|
|
2065
|
-
this.ionPickerColChange = index.createEvent(this, "ionPickerColChange", 7);
|
|
2061
|
+
index$1.registerInstance(this, hostRef);
|
|
2062
|
+
this.ionPickerColChange = index$1.createEvent(this, "ionPickerColChange", 7);
|
|
2066
2063
|
this.optHeight = 0;
|
|
2067
2064
|
this.rotateFactor = 0;
|
|
2068
2065
|
this.scaleFactor = 1;
|
|
@@ -2387,12 +2384,12 @@ const PickerColumnCmp = class {
|
|
|
2387
2384
|
}
|
|
2388
2385
|
render() {
|
|
2389
2386
|
const col = this.col;
|
|
2390
|
-
const
|
|
2391
|
-
return (index.h(index.Host, { key: '
|
|
2387
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
2388
|
+
return (index$1.h(index$1.Host, { key: '90b9d07917c0643cf8a622f090abefcd2846ac96', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, theme.getClassMap(col.cssClass)), style: {
|
|
2392
2389
|
'max-width': this.col.columnWidth,
|
|
2393
|
-
} }, col.prefix && (index.h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), index.h("div", { key: '
|
|
2390
|
+
} }, col.prefix && (index$1.h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), index$1.h("div", { key: '4adca834de9295a18bdb355ebbfa49813f0f93f8', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (index$1.h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (index$1.h("div", { class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
2394
2391
|
}
|
|
2395
|
-
get el() { return index.getElement(this); }
|
|
2392
|
+
get el() { return index$1.getElement(this); }
|
|
2396
2393
|
static get watchers() { return {
|
|
2397
2394
|
"col": ["colChanged"]
|
|
2398
2395
|
}; }
|