@ionic/core 7.4.2-dev.11695944163.13e7414e → 7.4.2-dev.11696878562.16da82aa
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 +2 -2
- package/components/alert.js +8 -0
- package/components/button.js +2 -2
- package/components/buttons.js +2 -2
- package/components/checkbox.js +2 -2
- package/components/data.js +96 -22
- package/components/haptic.js +1 -0
- package/components/index.js +1 -0
- package/components/ion-back-button.js +2 -2
- package/components/ion-badge.js +2 -2
- package/components/ion-breadcrumb.js +2 -2
- package/components/ion-card-content.js +2 -2
- package/components/ion-card-subtitle.js +2 -2
- package/components/ion-card-title.js +2 -2
- package/components/ion-card.js +2 -2
- package/components/ion-chip.js +3 -8
- package/components/ion-datetime-button.js +6 -6
- package/components/ion-datetime.js +6 -6
- package/components/ion-header.js +1 -1
- package/components/ion-input.js +2 -2
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +2 -2
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-nav.js +1 -0
- package/components/ion-range.js +2 -2
- package/components/ion-reorder.js +2 -2
- package/components/ion-router.js +3 -0
- package/components/ion-searchbar.js +3 -9
- package/components/ion-select.js +3 -3
- package/components/ion-textarea.js +2 -2
- package/components/ion-title.js +2 -2
- package/components/ion-toast.js +152 -15
- package/components/ion-toolbar.js +1 -1
- package/components/ios.transition.js +5 -4
- package/components/item.js +2 -2
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/note.js +2 -2
- package/components/overlays.js +1 -0
- package/components/radio.js +2 -2
- package/css/core.css +0 -100
- package/css/core.css.map +1 -1
- package/css/display.css +0 -33
- package/css/display.css.map +1 -1
- package/css/float-elements.css +0 -33
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css +6 -84
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +0 -33
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/padding.css +0 -33
- package/css/padding.css.map +1 -1
- package/css/structure.css +0 -33
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css +0 -33
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css +0 -33
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css +6 -51
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +0 -165
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{button-active-32f15660.js → button-active-19cc8cae.js} +1 -1
- package/dist/cjs/{data-db832785.js → data-c8d21093.js} +96 -22
- package/dist/cjs/{haptic-c5f6b4d5.js → haptic-678abc9f.js} +1 -0
- package/dist/cjs/{index-4e502bd1.js → index-77d4b2e7.js} +2 -2
- package/dist/cjs/index.cjs.js +6 -4
- package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
- package/dist/cjs/ion-alert.cjs.entry.js +11 -3
- package/dist/cjs/ion-app_8.cjs.entry.js +7 -7
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +8 -8
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-chip.cjs.entry.js +2 -7
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -6
- package/dist/cjs/ion-datetime_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +10 -10
- package/dist/cjs/ion-loading.cjs.entry.js +3 -3
- package/dist/cjs/ion-menu_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-modal.cjs.entry.js +2 -2
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -1
- package/dist/cjs/ion-picker-column-internal.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-reorder_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -0
- package/dist/cjs/ion-searchbar.cjs.entry.js +3 -9
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +169 -34
- package/dist/cjs/ion-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-7ff33297.js → ios.transition-458ee399.js} +6 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-2224e480.js → md.transition-3423dd44.js} +1 -1
- package/dist/cjs/{overlays-d3a13e61.js → overlays-817dca17.js} +1 -0
- package/dist/collection/components/accordion/accordion.ios.css +0 -66
- package/dist/collection/components/accordion/accordion.md.css +0 -33
- package/dist/collection/components/accordion-group/accordion-group.ios.css +0 -66
- package/dist/collection/components/accordion-group/accordion-group.md.css +0 -99
- package/dist/collection/components/action-sheet/action-sheet.ios.css +12 -80
- package/dist/collection/components/action-sheet/action-sheet.md.css +8 -76
- package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +0 -27
- package/dist/collection/components/alert/alert.ios.css +0 -99
- package/dist/collection/components/alert/alert.js +8 -0
- package/dist/collection/components/alert/alert.md.css +0 -99
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +11 -0
- package/dist/collection/components/avatar/avatar.ios.css +0 -66
- package/dist/collection/components/avatar/avatar.md.css +0 -66
- package/dist/collection/components/back-button/back-button.ios.css +1 -83
- package/dist/collection/components/back-button/back-button.md.css +3 -75
- package/dist/collection/components/backdrop/backdrop.ios.css +0 -66
- package/dist/collection/components/backdrop/backdrop.md.css +0 -66
- package/dist/collection/components/badge/badge.ios.css +1 -75
- package/dist/collection/components/badge/badge.md.css +1 -67
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +3 -80
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +3 -69
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -33
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -33
- package/dist/collection/components/breadcrumbs/test/a11y/breadcrumbs.e2e.js +0 -21
- package/dist/collection/components/button/button.ios.css +19 -118
- package/dist/collection/components/button/button.md.css +3 -69
- package/dist/collection/components/buttons/buttons.ios.css +3 -102
- package/dist/collection/components/buttons/buttons.md.css +2 -101
- package/dist/collection/components/card/card.ios.css +1 -67
- package/dist/collection/components/card/card.md.css +1 -67
- package/dist/collection/components/card-content/card-content.ios.css +5 -71
- package/dist/collection/components/card-content/card-content.md.css +5 -71
- package/dist/collection/components/card-header/card-header.ios.css +0 -66
- package/dist/collection/components/card-header/card-header.md.css +0 -66
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +1 -67
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +1 -67
- package/dist/collection/components/card-title/card-title.ios.css +1 -67
- package/dist/collection/components/card-title/card-title.md.css +1 -67
- package/dist/collection/components/checkbox/checkbox.ios.css +2 -101
- package/dist/collection/components/checkbox/checkbox.md.css +2 -101
- package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +0 -18
- package/dist/collection/components/chip/{chip.md.css → chip.css} +7 -43
- package/dist/collection/components/chip/chip.js +2 -4
- package/dist/collection/components/col/col.css +0 -66
- package/dist/collection/components/content/content.css +0 -33
- package/dist/collection/components/datetime/datetime.ios.css +7 -198
- package/dist/collection/components/datetime/datetime.js +13 -7
- package/dist/collection/components/datetime/datetime.md.css +5 -97
- package/dist/collection/components/datetime/test/hour-cycle/datetime.e2e.js +14 -0
- package/dist/collection/components/datetime/utils/data.js +33 -7
- package/dist/collection/components/datetime/utils/format.js +27 -10
- package/dist/collection/components/datetime/utils/helpers.js +37 -5
- package/dist/collection/components/datetime-button/datetime-button.css +2 -36
- package/dist/collection/components/datetime-button/datetime-button.js +4 -4
- package/dist/collection/components/fab/fab.css +0 -66
- package/dist/collection/components/fab-button/fab-button.ios.css +0 -66
- package/dist/collection/components/fab-button/fab-button.md.css +0 -66
- package/dist/collection/components/fab-list/fab-list.css +0 -66
- package/dist/collection/components/footer/footer.ios.css +0 -66
- package/dist/collection/components/footer/footer.md.css +0 -66
- package/dist/collection/components/grid/grid.css +0 -66
- package/dist/collection/components/header/header.ios.css +2 -71
- package/dist/collection/components/header/header.md.css +0 -66
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -66
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -66
- package/dist/collection/components/input/input.ios.css +1 -100
- package/dist/collection/components/input/input.md.css +1 -199
- package/dist/collection/components/input/test/a11y/input.e2e.js +1 -15
- package/dist/collection/components/item/item.ios.css +4 -70
- package/dist/collection/components/item/item.md.css +6 -138
- package/dist/collection/components/item/test/a11y/item.e2e.js +1 -116
- package/dist/collection/components/item-divider/item-divider.ios.css +9 -101
- package/dist/collection/components/item-divider/item-divider.md.css +11 -103
- package/dist/collection/components/item-group/item-group.ios.css +1 -68
- package/dist/collection/components/item-group/item-group.md.css +1 -68
- package/dist/collection/components/item-option/item-option.ios.css +1 -67
- package/dist/collection/components/item-option/item-option.md.css +1 -67
- package/dist/collection/components/item-options/item-options.ios.css +1 -99
- package/dist/collection/components/item-options/item-options.md.css +1 -99
- package/dist/collection/components/item-sliding/item-sliding.css +0 -33
- package/dist/collection/components/label/label.ios.css +6 -105
- package/dist/collection/components/label/label.md.css +5 -104
- package/dist/collection/components/list/list.ios.css +0 -99
- package/dist/collection/components/list/list.md.css +0 -99
- package/dist/collection/components/list-header/list-header.ios.css +1 -100
- package/dist/collection/components/list-header/list-header.md.css +1 -100
- package/dist/collection/components/loading/loading.ios.css +1 -67
- package/dist/collection/components/loading/loading.md.css +1 -67
- package/dist/collection/components/loading/test/a11y/loading.e2e.js +0 -19
- package/dist/collection/components/menu/menu.ios.css +0 -66
- package/dist/collection/components/menu/menu.md.css +0 -66
- package/dist/collection/components/menu-button/menu-button.ios.css +2 -70
- package/dist/collection/components/menu-button/menu-button.md.css +3 -71
- package/dist/collection/components/menu-button/test/a11y/menu-button.e2e.js +1 -20
- package/dist/collection/components/modal/modal.ios.css +0 -66
- package/dist/collection/components/modal/modal.md.css +0 -66
- package/dist/collection/components/nav/nav.css +0 -33
- package/dist/collection/components/nav/nav.js +1 -0
- package/dist/collection/components/note/note.ios.css +0 -67
- package/dist/collection/components/note/note.md.css +1 -67
- package/dist/collection/components/picker/picker.ios.css +0 -66
- package/dist/collection/components/picker/picker.md.css +0 -66
- package/dist/collection/components/picker-column/picker-column.ios.css +0 -66
- package/dist/collection/components/picker-column/picker-column.md.css +0 -66
- package/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +0 -33
- package/dist/collection/components/picker-column-internal/picker-column-internal.md.css +0 -66
- package/dist/collection/components/picker-internal/picker-internal.ios.css +0 -66
- package/dist/collection/components/picker-internal/picker-internal.md.css +0 -66
- package/dist/collection/components/popover/popover.ios.css +0 -66
- package/dist/collection/components/popover/popover.md.css +0 -66
- package/dist/collection/components/progress-bar/progress-bar.ios.css +0 -33
- package/dist/collection/components/progress-bar/progress-bar.md.css +0 -33
- package/dist/collection/components/radio/radio.ios.css +5 -104
- package/dist/collection/components/radio/radio.md.css +5 -104
- package/dist/collection/components/radio/test/a11y/radio.e2e.js +0 -21
- package/dist/collection/components/range/range.ios.css +8 -82
- package/dist/collection/components/range/range.md.css +11 -99
- package/dist/collection/components/range/test/a11y/range.e2e.js +0 -22
- package/dist/collection/components/refresher/refresher.ios.css +0 -66
- package/dist/collection/components/refresher/refresher.md.css +0 -66
- package/dist/collection/components/reorder/reorder.ios.css +2 -75
- package/dist/collection/components/reorder/reorder.md.css +2 -75
- package/dist/collection/components/reorder-group/reorder-group.css +0 -33
- package/dist/collection/components/ripple-effect/ripple-effect.css +0 -33
- package/dist/collection/components/router/router.js +2 -0
- package/dist/collection/components/router/utils/path.js +1 -0
- package/dist/collection/components/router-link/router-link.css +0 -33
- package/dist/collection/components/router-outlet/router-outlet.css +0 -33
- package/dist/collection/components/row/row.css +0 -66
- package/dist/collection/components/searchbar/searchbar.ios.css +16 -95
- package/dist/collection/components/searchbar/searchbar.js +1 -7
- package/dist/collection/components/searchbar/searchbar.md.css +10 -77
- package/dist/collection/components/searchbar/test/basic/searchbar.e2e.js +0 -18
- package/dist/collection/components/segment/segment.ios.css +0 -99
- package/dist/collection/components/segment/segment.md.css +0 -99
- package/dist/collection/components/segment-button/segment-button.ios.css +0 -66
- package/dist/collection/components/segment-button/segment-button.md.css +0 -66
- package/dist/collection/components/select/select.ios.css +3 -102
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/select/select.md.css +2 -167
- package/dist/collection/components/select/test/a11y/select.e2e.js +0 -22
- package/dist/collection/components/select-popover/select-popover.ios.css +1 -101
- package/dist/collection/components/select-popover/select-popover.md.css +0 -99
- package/dist/collection/components/skeleton-text/skeleton-text.css +0 -33
- package/dist/collection/components/spinner/spinner.css +0 -33
- package/dist/collection/components/split-pane/split-pane.ios.css +0 -99
- package/dist/collection/components/split-pane/split-pane.md.css +0 -99
- package/dist/collection/components/tab-bar/tab-bar.ios.css +0 -99
- package/dist/collection/components/tab-bar/tab-bar.md.css +0 -99
- package/dist/collection/components/tab-button/tab-button.ios.css +0 -66
- package/dist/collection/components/tab-button/tab-button.md.css +0 -66
- package/dist/collection/components/tabs/tabs.css +0 -33
- package/dist/collection/components/text/text.css +0 -33
- package/dist/collection/components/textarea/test/a11y/textarea.e2e.js +1 -15
- package/dist/collection/components/textarea/textarea.ios.css +1 -133
- package/dist/collection/components/textarea/textarea.md.css +1 -199
- package/dist/collection/components/thumbnail/thumbnail.css +0 -33
- package/dist/collection/components/title/title.ios.css +10 -44
- package/dist/collection/components/title/title.md.css +2 -35
- package/dist/collection/components/toast/animations/ios.enter.js +2 -3
- package/dist/collection/components/toast/animations/ios.leave.js +2 -3
- package/dist/collection/components/toast/animations/md.enter.js +2 -3
- package/dist/collection/components/toast/animations/utils.js +85 -0
- package/dist/collection/components/toast/test/a11y/toast.e2e.js +1 -98
- package/dist/collection/components/toast/test/position-anchor/toast.e2e.js +45 -0
- package/dist/collection/components/toast/toast.ios.css +3 -74
- package/dist/collection/components/toast/toast.js +91 -9
- package/dist/collection/components/toast/toast.md.css +4 -74
- package/dist/collection/components/toggle/toggle.ios.css +0 -99
- package/dist/collection/components/toggle/toggle.md.css +0 -99
- package/dist/collection/components/toolbar/toolbar.ios.css +14 -66
- package/dist/collection/components/toolbar/toolbar.md.css +0 -66
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/native/haptic.js +1 -0
- package/dist/collection/utils/overlays.js +1 -0
- package/dist/collection/utils/transition/ios.transition.js +5 -4
- package/dist/docs.json +73 -10
- package/dist/esm/{button-active-513e9fff.js → button-active-d2346892.js} +1 -1
- package/dist/esm/{data-009dbf15.js → data-44d9e816.js} +96 -22
- package/dist/esm/{haptic-6447af60.js → haptic-1243b917.js} +1 -0
- package/dist/esm/{index-39bc1180.js → index-dac72b4c.js} +2 -2
- package/dist/esm/index.js +5 -4
- package/dist/esm/ion-action-sheet.entry.js +5 -5
- package/dist/esm/ion-alert.entry.js +11 -3
- package/dist/esm/ion-app_8.entry.js +7 -7
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-card_5.entry.js +8 -8
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-chip.entry.js +2 -7
- package/dist/esm/ion-datetime-button.entry.js +6 -6
- package/dist/esm/ion-datetime_3.entry.js +8 -8
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +10 -10
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu_3.entry.js +3 -3
- package/dist/esm/ion-modal.entry.js +2 -2
- package/dist/esm/ion-nav_2.entry.js +2 -1
- package/dist/esm/ion-picker-column-internal.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +1 -1
- package/dist/esm/ion-reorder_2.entry.js +3 -3
- package/dist/esm/ion-route_4.entry.js +3 -0
- package/dist/esm/ion-searchbar.entry.js +3 -9
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +152 -17
- package/dist/esm/ion-toggle.entry.js +1 -1
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-72ffa6ed.js → ios.transition-991c1a56.js} +6 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-e6a907d4.js → md.transition-fb443521.js} +1 -1
- package/dist/esm/{overlays-8fc6656c.js → overlays-e064e499.js} +1 -0
- package/dist/esm-es5/{button-active-513e9fff.js → button-active-d2346892.js} +1 -1
- package/dist/esm-es5/data-44d9e816.js +4 -0
- package/dist/esm-es5/{index-39bc1180.js → index-dac72b4c.js} +1 -1
- package/dist/esm-es5/index.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-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-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-internal.entry.js +1 -1
- package/dist/esm-es5/ion-popover.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-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.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.js +1 -1
- package/dist/esm-es5/ios.transition-991c1a56.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{md.transition-e6a907d4.js → md.transition-fb443521.js} +1 -1
- package/dist/html.html-data.json +11 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-7ea21b21.system.entry.js → p-06116432.system.entry.js} +1 -1
- package/dist/ionic/p-06c94b76.entry.js +4 -0
- package/dist/ionic/p-09e15a2a.system.entry.js +4 -0
- package/dist/ionic/p-0bd3cc92.entry.js +4 -0
- package/dist/ionic/{p-a0a87b9c.entry.js → p-13ce151b.entry.js} +1 -1
- package/dist/ionic/{p-270aa06b.entry.js → p-14dec15f.entry.js} +1 -1
- package/dist/ionic/p-161a6465.system.entry.js +4 -0
- package/dist/ionic/p-17240d90.js +4 -0
- package/dist/ionic/p-17e6836b.system.entry.js +4 -0
- package/dist/ionic/p-1bce805b.entry.js +4 -0
- package/dist/ionic/p-1c406ee0.system.entry.js +4 -0
- package/dist/ionic/{p-c5729044.system.entry.js → p-1e207aa7.system.entry.js} +1 -1
- package/dist/ionic/p-20e5eb3e.entry.js +4 -0
- package/dist/ionic/{p-972763df.js → p-2b70878e.js} +1 -1
- package/dist/ionic/p-2bea5600.entry.js +4 -0
- package/dist/ionic/{p-380ef450.entry.js → p-2d74ee51.entry.js} +1 -1
- package/dist/ionic/{p-2c35490e.entry.js → p-2dac36bf.entry.js} +1 -1
- package/dist/ionic/p-2ffbf4bc.system.entry.js +4 -0
- package/dist/ionic/p-30bd5385.system.entry.js +4 -0
- package/dist/ionic/{p-00aed720.system.js → p-315dd3f8.system.js} +1 -1
- package/dist/ionic/{p-08c5b9f4.system.entry.js → p-3b1a8994.system.entry.js} +1 -1
- package/dist/ionic/p-3cbcb899.entry.js +4 -0
- package/dist/ionic/p-419b8565.entry.js +4 -0
- package/dist/ionic/p-420da334.system.entry.js +4 -0
- package/dist/ionic/p-48393630.system.js +4 -0
- package/dist/ionic/{p-ca9b6832.system.js → p-4cf29e23.system.js} +1 -1
- package/dist/ionic/p-4e312f80.system.entry.js +4 -0
- package/dist/ionic/p-50b11c2b.system.entry.js +4 -0
- package/dist/ionic/p-568fec78.entry.js +4 -0
- package/dist/ionic/p-5c8c9748.system.entry.js +4 -0
- package/dist/ionic/p-5f6605c4.entry.js +4 -0
- package/dist/ionic/{p-3730f493.entry.js → p-62f05fd2.entry.js} +1 -1
- package/dist/ionic/p-674e6f0c.js +4 -0
- package/dist/ionic/p-6ba07931.system.entry.js +4 -0
- package/dist/ionic/p-6ca0e4b2.system.entry.js +4 -0
- package/dist/ionic/p-6cb04881.system.entry.js +4 -0
- package/dist/ionic/p-6edbc09b.system.js +1 -1
- package/dist/ionic/p-716fbba9.js +4 -0
- package/dist/ionic/p-7779d376.entry.js +4 -0
- package/dist/ionic/{p-3b104ae6.entry.js → p-78f204ee.entry.js} +1 -1
- package/dist/ionic/p-7dc0ee11.system.entry.js +4 -0
- package/dist/ionic/p-7e9e16bf.system.entry.js +4 -0
- package/dist/ionic/p-82f58c25.system.entry.js +4 -0
- package/dist/ionic/{p-f474437d.system.entry.js → p-86e73df8.system.entry.js} +1 -1
- package/dist/ionic/p-88ad9cb6.entry.js +4 -0
- package/dist/ionic/p-8a1faf2c.system.js +4 -0
- package/dist/ionic/p-8b79baf0.entry.js +4 -0
- package/dist/ionic/p-974cbc3a.entry.js +4 -0
- package/dist/ionic/{p-f39999bb.system.js → p-9eb5455c.system.js} +1 -1
- package/dist/ionic/{p-784863dd.entry.js → p-a27a6256.entry.js} +1 -1
- package/dist/ionic/p-b0dd4f33.entry.js +4 -0
- package/dist/ionic/p-b49fe110.entry.js +4 -0
- package/dist/ionic/{p-2a393411.entry.js → p-b61cf76c.entry.js} +1 -1
- package/dist/ionic/{p-09babc88.entry.js → p-b7dad585.entry.js} +1 -1
- package/dist/ionic/p-b8c3f071.system.js +4 -0
- package/dist/ionic/p-be321bb6.system.entry.js +4 -0
- package/dist/ionic/{p-2f1ba678.system.entry.js → p-be337735.system.entry.js} +1 -1
- package/dist/ionic/p-c4d08d6d.system.entry.js +4 -0
- package/dist/ionic/{p-c7fca267.entry.js → p-c8251e8c.entry.js} +1 -1
- package/dist/ionic/{p-c68b68b1.entry.js → p-cc3aa152.entry.js} +1 -1
- package/dist/ionic/p-cd675d89.system.entry.js +4 -0
- package/dist/ionic/p-ce24ddd7.system.entry.js +4 -0
- package/dist/ionic/p-d6dcbd7c.js +4 -0
- package/dist/ionic/p-de0f1af2.system.entry.js +4 -0
- package/dist/ionic/p-e89abe38.system.entry.js +4 -0
- package/dist/ionic/p-ea88031d.entry.js +4 -0
- package/dist/ionic/p-ebaeeee8.entry.js +4 -0
- package/dist/ionic/{p-e64ce6ad.system.entry.js → p-ec3fa33b.system.entry.js} +1 -1
- package/dist/ionic/p-f0dcf99b.entry.js +4 -0
- package/dist/ionic/p-f180d2b6.entry.js +4 -0
- package/dist/ionic/{p-4a1ac160.system.entry.js → p-f767d6b4.system.entry.js} +1 -1
- package/dist/ionic/{p-63a73b69.system.entry.js → p-f7f6af24.system.entry.js} +1 -1
- package/dist/types/components/datetime/datetime-interface.d.ts +1 -0
- package/dist/types/components/datetime/datetime.d.ts +2 -2
- package/dist/types/components/datetime/utils/data.d.ts +3 -3
- package/dist/types/components/datetime/utils/format.d.ts +3 -3
- package/dist/types/components/datetime/utils/helpers.d.ts +15 -1
- package/dist/types/components/toast/animations/ios.enter.d.ts +2 -1
- package/dist/types/components/toast/animations/ios.leave.d.ts +2 -2
- package/dist/types/components/toast/animations/md.enter.d.ts +2 -1
- package/dist/types/components/toast/animations/utils.d.ts +18 -0
- package/dist/types/components/toast/toast-interface.d.ts +11 -0
- package/dist/types/components/toast/toast.d.ts +21 -1
- package/dist/types/components.d.ts +16 -8
- package/dist/types/index.d.ts +1 -0
- package/hydrate/index.js +338 -124
- package/package.json +5 -6
- package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +0 -26
- package/dist/collection/components/badge/test/a11y/badge.e2e.js +0 -22
- package/dist/collection/components/button/test/a11y/button.e2e.js +0 -61
- package/dist/collection/components/buttons/test/a11y/buttons.e2e.js +0 -74
- package/dist/collection/components/card/test/a11y/card.e2e.js +0 -31
- package/dist/collection/components/chip/chip.ios.css +0 -190
- package/dist/collection/components/chip/test/a11y/chip.e2e.js +0 -58
- package/dist/collection/components/datetime/test/a11y/datetime.e2e.js +0 -28
- package/dist/collection/components/datetime-button/test/a11y/datetime-button.e2e.js +0 -38
- package/dist/collection/components/item-divider/test/a11y/item-divider.e2e.js +0 -44
- package/dist/collection/components/item-sliding/test/a11y/item-sliding.e2e.js +0 -34
- package/dist/collection/components/label/test/a11y/label.e2e.js +0 -66
- package/dist/collection/components/list-header/test/a11y/list-header.e2e.js +0 -24
- package/dist/collection/components/note/test/a11y/note.e2e.js +0 -52
- package/dist/collection/components/reorder-group/test/a11y/reorder-group.e2e.js +0 -33
- package/dist/collection/components/searchbar/test/a11y/searchbar.e2e.js +0 -37
- package/dist/collection/components/title/test/a11y/title.e2e.js +0 -61
- package/dist/collection/css/test/a11y/typography.e2e.js +0 -32
- package/dist/esm-es5/data-009dbf15.js +0 -4
- package/dist/esm-es5/ios.transition-72ffa6ed.js +0 -4
- package/dist/ionic/p-0610d658.entry.js +0 -4
- package/dist/ionic/p-06c29a8b.entry.js +0 -4
- package/dist/ionic/p-0c535e5a.system.entry.js +0 -4
- package/dist/ionic/p-160d0dfd.system.entry.js +0 -4
- package/dist/ionic/p-1c1c18b3.system.entry.js +0 -4
- package/dist/ionic/p-234a7edb.js +0 -4
- package/dist/ionic/p-2b8cd28f.entry.js +0 -4
- package/dist/ionic/p-2e93e3db.entry.js +0 -4
- package/dist/ionic/p-3e1b4045.system.entry.js +0 -4
- package/dist/ionic/p-4342501d.entry.js +0 -4
- package/dist/ionic/p-442f2497.system.js +0 -4
- package/dist/ionic/p-44ef7224.system.js +0 -4
- package/dist/ionic/p-450fe187.system.entry.js +0 -4
- package/dist/ionic/p-47c15b22.system.entry.js +0 -4
- package/dist/ionic/p-4d0eb845.system.entry.js +0 -4
- package/dist/ionic/p-4e4bedbd.entry.js +0 -4
- package/dist/ionic/p-50d2e748.js +0 -4
- package/dist/ionic/p-5a5ff46b.system.entry.js +0 -4
- package/dist/ionic/p-5c790762.system.js +0 -4
- package/dist/ionic/p-622d7b0e.system.entry.js +0 -4
- package/dist/ionic/p-6f940aec.system.entry.js +0 -4
- package/dist/ionic/p-7302a3e1.entry.js +0 -4
- package/dist/ionic/p-74824d64.entry.js +0 -4
- package/dist/ionic/p-7cfd253c.js +0 -4
- package/dist/ionic/p-857591f7.system.entry.js +0 -4
- package/dist/ionic/p-86859d57.system.entry.js +0 -4
- package/dist/ionic/p-8d5c7b4e.system.entry.js +0 -4
- package/dist/ionic/p-8e06ca5e.entry.js +0 -4
- package/dist/ionic/p-90d892fd.entry.js +0 -4
- package/dist/ionic/p-9493d5e8.system.entry.js +0 -4
- package/dist/ionic/p-969e9fce.system.entry.js +0 -4
- package/dist/ionic/p-972817e1.js +0 -4
- package/dist/ionic/p-9ad5893a.entry.js +0 -4
- package/dist/ionic/p-af14deab.system.entry.js +0 -4
- package/dist/ionic/p-b2215bd4.entry.js +0 -4
- package/dist/ionic/p-b8846173.entry.js +0 -4
- package/dist/ionic/p-bb8365af.system.entry.js +0 -4
- package/dist/ionic/p-be22efa8.entry.js +0 -4
- package/dist/ionic/p-c3d501f5.system.entry.js +0 -4
- package/dist/ionic/p-c872a0a0.entry.js +0 -4
- package/dist/ionic/p-daf85ebe.entry.js +0 -4
- package/dist/ionic/p-db3f69d6.entry.js +0 -4
- package/dist/ionic/p-df16bb3f.system.entry.js +0 -4
- package/dist/ionic/p-e8fa3573.system.entry.js +0 -4
- package/dist/ionic/p-edbec144.entry.js +0 -4
- package/dist/ionic/p-f5ebccec.entry.js +0 -4
- package/dist/ionic/p-f8eaac8b.system.entry.js +0 -4
- package/dist/ionic/p-fa1a57ae.system.entry.js +0 -4
- /package/dist/esm-es5/{haptic-6447af60.js → haptic-1243b917.js} +0 -0
- /package/dist/esm-es5/{overlays-8fc6656c.js → overlays-e064e499.js} +0 -0
- /package/dist/ionic/{p-f9015336.js → p-3faf56ab.js} +0 -0
- /package/dist/ionic/{p-7a3caa4e.system.js → p-40bd36f3.system.js} +0 -0
- /package/dist/ionic/{p-14d7b7e2.system.js → p-b4b4bb29.system.js} +0 -0
- /package/dist/ionic/{p-bb6f38ed.js → p-b923f3d7.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function l(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?i(e.value):r(e.value).then(a,l)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return s([e,t])}}function s(l){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,l[0]&&(i=0)),i)try{if(n=1,r&&(o=l[0]&2?r["return"]:l[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;if(r=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;r=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(l[0]===6&&i.label<o[1]){i.label=o[1];o=l;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(l);break}if(o[2])i.ops.pop();i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e];r=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-91546be9.system.js","./p-815c2fba.system.js","./p-
|
|
4
|
+
*/System.register(["./p-91546be9.system.js","./p-815c2fba.system.js","./p-b4b4bb29.system.js","./p-93616477.system.js","./p-44bc8b45.system.js","./p-ccdcb022.system.js","./p-0e94957a.system.js"],(function(e){"use strict";var t,i,n,r,o,a,l,s,c,u,p,d,f;return{setters:[function(e){t=e.r;i=e.d;n=e.h;r=e.H;o=e.f},function(e){a=e.r;l=e.g},function(e){s=e.a;c=e.b;u=e.h},function(e){p=e.a;d=e.b},function(e){f=e.c},function(){},function(){}],execute:function(){var h=":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}";var m=":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}";var v=e("ion_picker_column_internal",function(){function e(e){var n=this;t(this,e);this.ionChange=i(this,"ionChange",7);this.isScrolling=false;this.isColumnVisible=false;this.canExitInputMode=true;this.centerPickerItemInView=function(e,t,i){if(t===void 0){t=true}if(i===void 0){i=true}var r=n,o=r.el,a=r.isColumnVisible;if(a){var l=e.offsetTop-3*e.clientHeight+e.clientHeight/2;if(o.scrollTop!==l){n.canExitInputMode=i;o.scroll({top:l,left:0,behavior:t?"smooth":undefined})}}};this.setPickerItemActiveState=function(e,t){if(t){e.classList.add(b);e.part.add(y)}else{e.classList.remove(b);e.part.remove(y)}};this.inputModeChange=function(e){if(!n.numericInput){return}var t=e.detail,i=t.useInputMode,r=t.inputModeColumn;var o=r===undefined||r===n.el;if(!i||!o){n.setInputModeActive(false);return}n.setInputModeActive(true)};this.setInputModeActive=function(e){if(n.isScrolling){n.scrollEndCallback=function(){n.isActive=e};return}n.isActive=e};this.initializeScrollListener=function(){var e=p("ios");var t=n.el;var i;var r=n.activeItem;var o=function(){a((function(){if(i){clearTimeout(i);i=undefined}if(!n.isScrolling){e&&s();n.isScrolling=true}var o=t.getBoundingClientRect();var a=o.x+o.width/2;var l=o.y+o.height/2;var p=t.shadowRoot.elementFromPoint(a,l);if(r!==null){n.setPickerItemActiveState(r,false)}if(p===null||p.disabled){return}if(p!==r){e&&c();if(n.canExitInputMode){n.exitInputMode()}}r=p;n.setPickerItemActiveState(p,true);i=setTimeout((function(){n.isScrolling=false;e&&u();var t=n.scrollEndCallback;if(t){t();n.scrollEndCallback=undefined}n.canExitInputMode=true;var i=p.getAttribute("data-index");if(i===null){return}var r=parseInt(i,10);var o=n.items[r];if(o.value!==n.value){n.setValue(o.value)}}),250)}))};a((function(){t.addEventListener("scroll",o);n.destroyScrollListener=function(){t.removeEventListener("scroll",o)}}))};this.exitInputMode=function(){var e=n.parentEl;if(e==null)return;e.exitInputMode();n.el.classList.remove("picker-column-active")};this.isActive=false;this.items=[];this.value=undefined;this.color="primary";this.numericInput=false}e.prototype.valueChange=function(){if(this.isColumnVisible){this.scrollActiveItemIntoView()}};e.prototype.componentWillLoad=function(){var e=this;var t=function(t){var i=t[0];if(i.isIntersecting){var n=e,r=n.activeItem,o=n.el;e.isColumnVisible=true;var a=l(o).querySelector(".".concat(b));if(a){e.setPickerItemActiveState(a,false)}e.scrollActiveItemIntoView();if(r){e.setPickerItemActiveState(r,true)}e.initializeScrollListener()}else{e.isColumnVisible=false;if(e.destroyScrollListener){e.destroyScrollListener();e.destroyScrollListener=undefined}}};new IntersectionObserver(t,{threshold:.001}).observe(this.el);var i=this.parentEl=this.el.closest("ion-picker-internal");if(i!==null){i.addEventListener("ionInputModeChange",(function(t){return e.inputModeChange(t)}))}};e.prototype.componentDidRender=function(){var e;var t=this,i=t.activeItem,n=t.items,r=t.isColumnVisible,o=t.value;if(r){if(i){this.scrollActiveItemIntoView()}else if(((e=n[0])===null||e===void 0?void 0:e.value)!==o){this.setValue(n[0].value)}}};e.prototype.scrollActiveItemIntoView=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.activeItem;if(e){this.centerPickerItemInView(e,false,false)}return[2]}))}))};e.prototype.setValue=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){t=this.items;this.value=e;i=t.find((function(t){return t.value===e&&t.disabled!==true}));if(i){this.ionChange.emit(i)}return[2]}))}))};Object.defineProperty(e.prototype,"activeItem",{get:function(){return l(this.el).querySelector('.picker-item[data-value="'.concat(this.value,'"]:not([disabled])'))},enumerable:false,configurable:true});e.prototype.render=function(){var e;var t=this;var i=this,o=i.items,a=i.color,l=i.isActive,s=i.numericInput;var c=d(this);return n(r,{exportparts:"".concat(g,", ").concat(y),tabindex:0,class:f(a,(e={},e[c]=true,e["picker-column-active"]=l,e["picker-column-numeric-input"]=s,e))},n("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),n("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),n("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),o.map((function(e,i){return n("button",{tabindex:"-1",class:{"picker-item":true,"picker-item-disabled":e.disabled||false},"data-value":e.value,"data-index":i,onClick:function(e){t.centerPickerItemInView(e.target,true)},disabled:e.disabled,part:g},e.text)})),n("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),n("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "),n("div",{class:"picker-item picker-item-empty","aria-hidden":"true"}," "))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChange"]}},enumerable:false,configurable:true});return e}());var b="picker-item-active";var g="wheel-item";var y="active";v.style={ios:h,md:m}}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { Color, StyleEventDetail } from '../../interface';
|
|
3
|
-
import type { DatetimePresentation, DatetimeChangeEventDetail, DatetimeParts, TitleSelectedDatesFormatter, DatetimeHighlight, DatetimeHighlightCallback } from './datetime-interface';
|
|
3
|
+
import type { DatetimePresentation, DatetimeChangeEventDetail, DatetimeParts, TitleSelectedDatesFormatter, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle } from './datetime-interface';
|
|
4
4
|
/**
|
|
5
5
|
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
|
6
6
|
*
|
|
@@ -259,7 +259,7 @@ export declare class Datetime implements ComponentInterface {
|
|
|
259
259
|
* The hour cycle of the `ion-datetime`. If no value is set, this is
|
|
260
260
|
* specified by the current locale.
|
|
261
261
|
*/
|
|
262
|
-
hourCycle?:
|
|
262
|
+
hourCycle?: DatetimeHourCycle;
|
|
263
263
|
/**
|
|
264
264
|
* If `cover`, the `ion-datetime` will expand to cover the full width of its container.
|
|
265
265
|
* If `fixed`, the `ion-datetime` will have a fixed width.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Mode } from '../../../interface';
|
|
2
2
|
import type { PickerColumnItem } from '../../picker-column-internal/picker-column-internal-interfaces';
|
|
3
|
-
import type { DatetimeParts } from '../datetime-interface';
|
|
3
|
+
import type { DatetimeParts, DatetimeHourCycle } from '../datetime-interface';
|
|
4
4
|
/**
|
|
5
5
|
* Returns the current date as
|
|
6
6
|
* an ISO string in the user's
|
|
@@ -35,7 +35,7 @@ export declare const getDaysOfMonth: (month: number, year: number, firstDayOfWee
|
|
|
35
35
|
* max/min bound datetime parts, calculate the acceptable
|
|
36
36
|
* hour and minute values according to the bounds and locale.
|
|
37
37
|
*/
|
|
38
|
-
export declare const generateTime: (refParts: DatetimeParts, hourCycle?:
|
|
38
|
+
export declare const generateTime: (locale: string, refParts: DatetimeParts, hourCycle?: DatetimeHourCycle, minParts?: DatetimeParts, maxParts?: DatetimeParts, hourValues?: number[], minuteValues?: number[]) => {
|
|
39
39
|
hours: number[];
|
|
40
40
|
minutes: number[];
|
|
41
41
|
am: boolean;
|
|
@@ -70,7 +70,7 @@ interface CombinedDateColumnData {
|
|
|
70
70
|
* Example: "Thu, Jun 2"
|
|
71
71
|
*/
|
|
72
72
|
export declare const getCombinedDateColumnData: (locale: string, todayParts: DatetimeParts, minParts: DatetimeParts, maxParts: DatetimeParts, dayValues?: number[], monthValues?: number[]) => CombinedDateColumnData;
|
|
73
|
-
export declare const getTimeColumnsData: (locale: string, refParts: DatetimeParts, hourCycle?:
|
|
73
|
+
export declare const getTimeColumnsData: (locale: string, refParts: DatetimeParts, hourCycle?: DatetimeHourCycle, minParts?: DatetimeParts, maxParts?: DatetimeParts, allowedHourValues?: number[], allowedMinuteValues?: number[]) => {
|
|
74
74
|
[key: string]: PickerColumnItem[];
|
|
75
75
|
};
|
|
76
76
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DatetimeParts } from '../datetime-interface';
|
|
2
|
-
export declare const getLocalizedTime: (locale: string, refParts: DatetimeParts,
|
|
1
|
+
import type { DatetimeParts, DatetimeHourCycle } from '../datetime-interface';
|
|
2
|
+
export declare const getLocalizedTime: (locale: string, refParts: DatetimeParts, hourCycle: DatetimeHourCycle) => string;
|
|
3
3
|
/**
|
|
4
4
|
* Adds padding to a time value so
|
|
5
5
|
* that it is always 2 digits.
|
|
@@ -11,7 +11,7 @@ export declare const addTimePadding: (value: number) => string;
|
|
|
11
11
|
* 12 hour times it ensures that
|
|
12
12
|
* hour 0 is formatted as '12'.
|
|
13
13
|
*/
|
|
14
|
-
export declare const getFormattedHour: (hour: number,
|
|
14
|
+
export declare const getFormattedHour: (hour: number, hourCycle: DatetimeHourCycle) => string;
|
|
15
15
|
/**
|
|
16
16
|
* Generates an aria-label to be read by screen readers
|
|
17
17
|
* given a local, a date, and whether or not that date is
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DatetimeHourCycle } from '../datetime-interface';
|
|
1
2
|
/**
|
|
2
3
|
* Determines if given year is a
|
|
3
4
|
* leap year. Returns `true` if year
|
|
@@ -5,7 +6,20 @@
|
|
|
5
6
|
* otherwise.
|
|
6
7
|
*/
|
|
7
8
|
export declare const isLeapYear: (year: number) => boolean;
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Determines the hour cycle for a user.
|
|
11
|
+
* If the hour cycle is explicitly defined, just use that.
|
|
12
|
+
* Otherwise, we try to derive it from either the specified
|
|
13
|
+
* locale extension tags or from Intl.DateTimeFormat directly.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getHourCycle: (locale: string, hourCycle?: DatetimeHourCycle) => DatetimeHourCycle;
|
|
16
|
+
/**
|
|
17
|
+
* Determine if the hour cycle uses a 24-hour format.
|
|
18
|
+
* Returns true for h23 and h24. Returns false otherwise.
|
|
19
|
+
* If you don't know the hourCycle, use getHourCycle above
|
|
20
|
+
* and pass the result into this function.
|
|
21
|
+
*/
|
|
22
|
+
export declare const is24Hour: (hourCycle: DatetimeHourCycle) => boolean;
|
|
9
23
|
/**
|
|
10
24
|
* Given a date object, returns the number
|
|
11
25
|
* of days in that month.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Animation } from '../../../interface';
|
|
2
|
+
import type { ToastPresentOptions } from '../toast-interface';
|
|
2
3
|
/**
|
|
3
4
|
* iOS Toast Enter Animation
|
|
4
5
|
*/
|
|
5
|
-
export declare const iosEnterAnimation: (baseEl: HTMLElement,
|
|
6
|
+
export declare const iosEnterAnimation: (baseEl: HTMLElement, opts: ToastPresentOptions) => Animation;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Animation } from '../../../interface';
|
|
1
|
+
import type { Animation, ToastDismissOptions } from '../../../interface';
|
|
2
2
|
/**
|
|
3
3
|
* iOS Toast Leave Animation
|
|
4
4
|
*/
|
|
5
|
-
export declare const iosLeaveAnimation: (baseEl: HTMLElement,
|
|
5
|
+
export declare const iosLeaveAnimation: (baseEl: HTMLElement, opts: ToastDismissOptions) => Animation;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Animation } from '../../../interface';
|
|
2
|
+
import type { ToastPresentOptions } from '../toast-interface';
|
|
2
3
|
/**
|
|
3
4
|
* MD Toast Enter Animation
|
|
4
5
|
*/
|
|
5
|
-
export declare const mdEnterAnimation: (baseEl: HTMLElement,
|
|
6
|
+
export declare const mdEnterAnimation: (baseEl: HTMLElement, opts: ToastPresentOptions) => Animation;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Mode } from "../../../interface";
|
|
2
|
+
import type { ToastAnimationPosition, ToastPosition } from '../toast-interface';
|
|
3
|
+
/**
|
|
4
|
+
* Calculate the CSS top and bottom position of the toast, to be used
|
|
5
|
+
* as starting points for the animation keyframes.
|
|
6
|
+
*
|
|
7
|
+
* Note that MD animates bottom-positioned toasts using style.bottom,
|
|
8
|
+
* which calculates from the bottom edge of the screen, while iOS uses
|
|
9
|
+
* translateY, which calculates from the top edge of the screen. This
|
|
10
|
+
* is why the bottom calculates differ slightly between modes.
|
|
11
|
+
*
|
|
12
|
+
* @param position The value of the toast's position prop.
|
|
13
|
+
* @param positionAnchor The element the toast should be anchored to,
|
|
14
|
+
* if applicable.
|
|
15
|
+
* @param mode The toast component's mode (md, ios, etc).
|
|
16
|
+
* @param toast A reference to the toast element itself.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getAnimationPosition(position: ToastPosition, positionAnchor: HTMLElement | undefined, mode: Mode, toast: HTMLElement): ToastAnimationPosition;
|
|
@@ -7,6 +7,7 @@ export interface ToastOptions {
|
|
|
7
7
|
duration?: number;
|
|
8
8
|
buttons?: (ToastButton | string)[];
|
|
9
9
|
position?: 'top' | 'bottom' | 'middle';
|
|
10
|
+
positionAnchor?: HTMLElement | string;
|
|
10
11
|
translucent?: boolean;
|
|
11
12
|
animated?: boolean;
|
|
12
13
|
icon?: string;
|
|
@@ -37,3 +38,13 @@ export interface ToastButton {
|
|
|
37
38
|
handler?: () => boolean | void | Promise<boolean | void>;
|
|
38
39
|
}
|
|
39
40
|
export type ToastPosition = 'top' | 'bottom' | 'middle';
|
|
41
|
+
interface ToastPositionAlias {
|
|
42
|
+
position: ToastPosition;
|
|
43
|
+
}
|
|
44
|
+
export interface ToastAnimationPosition {
|
|
45
|
+
top: string;
|
|
46
|
+
bottom: string;
|
|
47
|
+
}
|
|
48
|
+
export type ToastPresentOptions = ToastPositionAlias & ToastAnimationPosition;
|
|
49
|
+
export type ToastDismissOptions = ToastPositionAlias & ToastAnimationPosition;
|
|
50
|
+
export {};
|
|
@@ -19,6 +19,12 @@ export declare class Toast implements ComponentInterface, OverlayInterface {
|
|
|
19
19
|
private readonly triggerController;
|
|
20
20
|
private customHTMLEnabled;
|
|
21
21
|
private durationTimeout?;
|
|
22
|
+
/**
|
|
23
|
+
* Holds the position of the toast calculated in the present
|
|
24
|
+
* animation, to be passed along to the dismiss animation so
|
|
25
|
+
* we don't have to calculate the position twice.
|
|
26
|
+
*/
|
|
27
|
+
private lastPresentedPosition?;
|
|
22
28
|
presented: boolean;
|
|
23
29
|
/**
|
|
24
30
|
* When `true`, content inside of .toast-content
|
|
@@ -84,9 +90,17 @@ export declare class Toast implements ComponentInterface, OverlayInterface {
|
|
|
84
90
|
*/
|
|
85
91
|
keyboardClose: boolean;
|
|
86
92
|
/**
|
|
87
|
-
* The position of the toast on the screen.
|
|
93
|
+
* The starting position of the toast on the screen. Can be tweaked further
|
|
94
|
+
* using the `positionAnchor` property.
|
|
88
95
|
*/
|
|
89
96
|
position: ToastPosition;
|
|
97
|
+
/**
|
|
98
|
+
* The element to anchor the toast's position to. Can be set as a direct reference
|
|
99
|
+
* or the ID of the element. With `position="bottom"`, the toast will sit above the
|
|
100
|
+
* chosen element. With `position="top"`, the toast will sit below the chosen element.
|
|
101
|
+
* With `position="middle"`, the value of `positionAnchor` is ignored.
|
|
102
|
+
*/
|
|
103
|
+
positionAnchor?: HTMLElement | string;
|
|
90
104
|
/**
|
|
91
105
|
* An array of buttons for the toast.
|
|
92
106
|
*/
|
|
@@ -190,6 +204,12 @@ export declare class Toast implements ComponentInterface, OverlayInterface {
|
|
|
190
204
|
*/
|
|
191
205
|
onWillDismiss<T = any>(): Promise<OverlayEventDetail<T>>;
|
|
192
206
|
private getButtons;
|
|
207
|
+
/**
|
|
208
|
+
* Returns the element specified by the positionAnchor prop,
|
|
209
|
+
* or undefined if prop's value is an ID string and the element
|
|
210
|
+
* is not found in the DOM.
|
|
211
|
+
*/
|
|
212
|
+
private getAnchorElement;
|
|
193
213
|
private buttonClick;
|
|
194
214
|
private callButtonHandler;
|
|
195
215
|
private dispatchCancelHandler;
|
|
@@ -15,7 +15,7 @@ import { RouteID, RouterDirection, RouterEventDetail, RouteWrite } from "./compo
|
|
|
15
15
|
import { BreadcrumbCollapsedClickEventDetail } from "./components/breadcrumb/breadcrumb-interface";
|
|
16
16
|
import { CheckboxChangeEventDetail } from "./components/checkbox/checkbox-interface";
|
|
17
17
|
import { ScrollBaseDetail, ScrollDetail } from "./components/content/content-interface";
|
|
18
|
-
import { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
18
|
+
import { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
19
19
|
import { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
20
20
|
import { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
21
21
|
import { CounterFormatter } from "./components/item/item-interface";
|
|
@@ -39,7 +39,7 @@ import { SelectChangeEventDetail, SelectCompareFn, SelectInterface } from "./com
|
|
|
39
39
|
import { SelectPopoverOption } from "./components/select-popover/select-popover-interface";
|
|
40
40
|
import { TabBarChangedEventDetail, TabButtonClickEventDetail, TabButtonLayout } from "./components/tab-bar/tab-bar-interface";
|
|
41
41
|
import { TextareaChangeEventDetail, TextareaInputEventDetail } from "./components/textarea/textarea-interface";
|
|
42
|
-
import { ToastButton, ToastLayout, ToastPosition } from "./components/toast/toast-interface";
|
|
42
|
+
import { ToastButton, ToastDismissOptions, ToastLayout, ToastPosition, ToastPresentOptions } from "./components/toast/toast-interface";
|
|
43
43
|
import { ToggleChangeEventDetail } from "./components/toggle/toggle-interface";
|
|
44
44
|
export { AccordionGroupChangeEventDetail } from "./components/accordion-group/accordion-group-interface";
|
|
45
45
|
export { AnimationBuilder, AutocompleteTypes, Color, ComponentProps, ComponentRef, FrameworkDelegate, StyleEventDetail, TextFieldTypes } from "./interface";
|
|
@@ -51,7 +51,7 @@ export { RouteID, RouterDirection, RouterEventDetail, RouteWrite } from "./compo
|
|
|
51
51
|
export { BreadcrumbCollapsedClickEventDetail } from "./components/breadcrumb/breadcrumb-interface";
|
|
52
52
|
export { CheckboxChangeEventDetail } from "./components/checkbox/checkbox-interface";
|
|
53
53
|
export { ScrollBaseDetail, ScrollDetail } from "./components/content/content-interface";
|
|
54
|
-
export { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
54
|
+
export { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimePresentation, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
55
55
|
export { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
56
56
|
export { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
57
57
|
export { CounterFormatter } from "./components/item/item-interface";
|
|
@@ -75,7 +75,7 @@ export { SelectChangeEventDetail, SelectCompareFn, SelectInterface } from "./com
|
|
|
75
75
|
export { SelectPopoverOption } from "./components/select-popover/select-popover-interface";
|
|
76
76
|
export { TabBarChangedEventDetail, TabButtonClickEventDetail, TabButtonLayout } from "./components/tab-bar/tab-bar-interface";
|
|
77
77
|
export { TextareaChangeEventDetail, TextareaInputEventDetail } from "./components/textarea/textarea-interface";
|
|
78
|
-
export { ToastButton, ToastLayout, ToastPosition } from "./components/toast/toast-interface";
|
|
78
|
+
export { ToastButton, ToastDismissOptions, ToastLayout, ToastPosition, ToastPresentOptions } from "./components/toast/toast-interface";
|
|
79
79
|
export { ToggleChangeEventDetail } from "./components/toggle/toggle-interface";
|
|
80
80
|
export namespace Components {
|
|
81
81
|
interface IonAccordion {
|
|
@@ -865,7 +865,7 @@ export namespace Components {
|
|
|
865
865
|
/**
|
|
866
866
|
* The hour cycle of the `ion-datetime`. If no value is set, this is specified by the current locale.
|
|
867
867
|
*/
|
|
868
|
-
"hourCycle"?:
|
|
868
|
+
"hourCycle"?: DatetimeHourCycle;
|
|
869
869
|
/**
|
|
870
870
|
* Values used to create the list of selectable hours. By default the hour values range from `0` to `23` for 24-hour, or `1` to `12` for 12-hour. However, to control exactly which hours to display, the `hourValues` input can take a number, an array of numbers, or a string of comma separated numbers.
|
|
871
871
|
*/
|
|
@@ -3157,9 +3157,13 @@ export namespace Components {
|
|
|
3157
3157
|
"onWillDismiss": <T = any>() => Promise<OverlayEventDetail<T>>;
|
|
3158
3158
|
"overlayIndex": number;
|
|
3159
3159
|
/**
|
|
3160
|
-
* The position of the toast on the screen.
|
|
3160
|
+
* The starting position of the toast on the screen. Can be tweaked further using the `positionAnchor` property.
|
|
3161
3161
|
*/
|
|
3162
3162
|
"position": ToastPosition;
|
|
3163
|
+
/**
|
|
3164
|
+
* The element to anchor the toast's position to. Can be set as a direct reference or the ID of the element. With `position="bottom"`, the toast will sit above the chosen element. With `position="top"`, the toast will sit below the chosen element. With `position="middle"`, the value of `positionAnchor` is ignored.
|
|
3165
|
+
*/
|
|
3166
|
+
"positionAnchor"?: HTMLElement | string;
|
|
3163
3167
|
/**
|
|
3164
3168
|
* Present the toast overlay after it has been created.
|
|
3165
3169
|
*/
|
|
@@ -4868,7 +4872,7 @@ declare namespace LocalJSX {
|
|
|
4868
4872
|
/**
|
|
4869
4873
|
* The hour cycle of the `ion-datetime`. If no value is set, this is specified by the current locale.
|
|
4870
4874
|
*/
|
|
4871
|
-
"hourCycle"?:
|
|
4875
|
+
"hourCycle"?: DatetimeHourCycle;
|
|
4872
4876
|
/**
|
|
4873
4877
|
* Values used to create the list of selectable hours. By default the hour values range from `0` to `23` for 24-hour, or `1` to `12` for 12-hour. However, to control exactly which hours to display, the `hourValues` input can take a number, an array of numbers, or a string of comma separated numbers.
|
|
4874
4878
|
*/
|
|
@@ -7152,9 +7156,13 @@ declare namespace LocalJSX {
|
|
|
7152
7156
|
*/
|
|
7153
7157
|
"onWillPresent"?: (event: IonToastCustomEvent<void>) => void;
|
|
7154
7158
|
/**
|
|
7155
|
-
* The position of the toast on the screen.
|
|
7159
|
+
* The starting position of the toast on the screen. Can be tweaked further using the `positionAnchor` property.
|
|
7156
7160
|
*/
|
|
7157
7161
|
"position"?: ToastPosition;
|
|
7162
|
+
/**
|
|
7163
|
+
* The element to anchor the toast's position to. Can be set as a direct reference or the ID of the element. With `position="bottom"`, the toast will sit above the chosen element. With `position="top"`, the toast will sit below the chosen element. With `position="middle"`, the value of `positionAnchor` is ignored.
|
|
7164
|
+
*/
|
|
7165
|
+
"positionAnchor"?: HTMLElement | string;
|
|
7158
7166
|
/**
|
|
7159
7167
|
* If `true`, the toast will be translucent. Only applies when the mode is `"ios"` and the device supports [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
|
|
7160
7168
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { componentOnReady } from './utils/helpers';
|
|
|
10
10
|
export { isPlatform, Platforms, PlatformConfig, getPlatforms } from './utils/platform';
|
|
11
11
|
export { IonicSafeString } from './utils/sanitization';
|
|
12
12
|
export { IonicConfig, getMode, setupConfig } from './utils/config';
|
|
13
|
+
export { openURL } from './utils/theme';
|
|
13
14
|
export { LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, } from './components/nav/constants';
|
|
14
15
|
export { menuController } from './utils/menu-controller';
|
|
15
16
|
export { alertController, actionSheetController, modalController, loadingController, pickerController, popoverController, toastController, } from './utils/overlays';
|