@ionic/core 7.7.1 → 7.7.2-dev.11707425083.192d8103
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 +4 -4
- package/components/alert.js +2 -2
- package/components/backdrop.js +1 -13
- package/components/button-active.js +1 -1
- package/components/button.js +2 -2
- package/components/checkbox.js +2 -2
- package/components/data.js +1 -1
- package/components/gesture-controller.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-badge.js +2 -2
- package/components/ion-content.js +4 -5
- package/components/ion-datetime-button.js +5 -5
- package/components/ion-datetime.js +41 -65
- package/components/ion-fab-button.js +4 -4
- package/components/ion-fab-list.js +3 -3
- package/components/ion-fab.js +2 -2
- package/components/ion-footer.js +2 -2
- package/components/ion-grid.js +2 -2
- package/components/ion-header.js +2 -2
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +2 -2
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input.js +4 -8
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +4 -4
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +3 -3
- package/components/ion-menu-button.js +3 -3
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +23 -17
- package/components/ion-modal.js +4 -4
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +8 -4
- package/components/ion-picker-column-option.d.ts +11 -0
- package/components/ion-picker-column-option.js +9 -0
- package/components/ion-picker-column.js +2 -2
- package/components/ion-picker-legacy-column.d.ts +11 -0
- package/components/ion-picker-legacy-column.js +9 -0
- package/components/{ion-picker-internal.d.ts → ion-picker-legacy.d.ts} +4 -4
- package/components/ion-picker-legacy.js +311 -0
- package/components/ion-picker.js +1 -311
- package/components/ion-progress-bar.js +6 -3
- package/components/ion-range.js +2 -2
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +3 -3
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +3 -3
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +6 -6
- package/components/ion-segment-button.js +4 -4
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +28 -17
- package/components/ion-tab-bar.js +4 -4
- package/components/ion-tab-button.js +4 -4
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +7 -70
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +3 -3
- package/components/ion-toast.js +12 -6
- package/components/ion-toggle.js +2 -2
- package/components/ion-toolbar.js +2 -2
- package/components/item.js +2 -2
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/list.js +2 -2
- package/components/note.js +2 -2
- package/components/overlays.js +11 -4
- package/components/picker-column-option.js +124 -0
- package/components/picker-column.js +352 -324
- package/components/picker-column2.js +381 -0
- package/components/{picker-internal.js → picker.js} +33 -26
- package/components/popover.js +3 -3
- package/components/radio-group.js +1 -1
- package/components/radio.js +2 -2
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +2 -2
- package/components/spinner.js +1 -1
- package/css/core.css +98 -35
- package/css/core.css.map +1 -1
- package/css/display.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/themes/dark.always.css +122 -0
- package/css/themes/dark.always.css.map +1 -0
- package/css/themes/dark.class.css +122 -0
- package/css/themes/dark.class.css.map +1 -0
- package/css/themes/dark.css +3 -0
- package/css/themes/dark.css.map +1 -0
- package/css/themes/dark.system.css +124 -0
- package/css/themes/dark.system.css.map +1 -0
- package/css/typography.css +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{button-active-b8c3f603.js → button-active-600ed3e2.js} +2 -2
- package/dist/cjs/{data-a5109f09.js → data-e2bf21de.js} +1 -1
- package/dist/cjs/{gesture-controller-c40c045a.js → gesture-controller-9436f482.js} +1 -0
- package/dist/cjs/{index-d1b59ffa.js → index-ee07ed59.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -8
- package/dist/cjs/ion-alert.cjs.entry.js +6 -6
- package/dist/cjs/ion-app_8.cjs.entry.js +15 -16
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-backdrop.cjs.entry.js +1 -13
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -6
- package/dist/cjs/ion-datetime_3.cjs.entry.js +50 -70
- package/dist/cjs/ion-fab_3.cjs.entry.js +9 -9
- package/dist/cjs/ion-img.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-input.cjs.entry.js +4 -6
- package/dist/cjs/ion-item-option_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-item_8.cjs.entry.js +15 -15
- package/dist/cjs/ion-loading.cjs.entry.js +5 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +31 -26
- package/dist/cjs/ion-modal.cjs.entry.js +7 -7
- package/dist/cjs/ion-nav_2.cjs.entry.js +8 -5
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +106 -0
- package/dist/cjs/{ion-picker-column-internal.cjs.entry.js → ion-picker-column.cjs.entry.js} +105 -89
- package/dist/cjs/{ion-picker-internal.cjs.entry.js → ion-picker.cjs.entry.js} +30 -23
- package/dist/cjs/ion-popover.cjs.entry.js +5 -4
- package/dist/cjs/ion-progress-bar.cjs.entry.js +6 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-reorder_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +6 -6
- package/dist/cjs/ion-segment_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -6
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +26 -16
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +8 -8
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +7 -67
- package/dist/cjs/ion-toast.cjs.entry.js +14 -8
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{overlays-330df245.js → overlays-8f32c4ca.js} +11 -4
- package/dist/cjs/{swipe-back-8411f044.js → swipe-back-f93021d8.js} +2 -2
- package/dist/collection/collection-manifest.json +7 -6
- package/dist/collection/components/action-sheet/action-sheet.ios.css +12 -5
- package/dist/collection/components/action-sheet/action-sheet.js +2 -2
- package/dist/collection/components/action-sheet/action-sheet.md.css +9 -2
- package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +23 -14
- package/dist/collection/components/action-sheet/test/basic/action-sheet-rendering.e2e.js +19 -0
- package/dist/collection/components/action-sheet/test/basic/action-sheet.spec.js +22 -0
- package/dist/collection/components/alert/alert.ios.css +27 -74
- package/dist/collection/components/alert/alert.md.css +14 -110
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +22 -9
- package/dist/collection/components/back-button/back-button.ios.css +1 -1
- package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +21 -0
- package/dist/collection/components/backdrop/backdrop.js +1 -13
- package/dist/collection/components/badge/badge.ios.css +1 -1
- package/dist/collection/components/badge/badge.md.css +1 -1
- package/dist/collection/components/badge/test/a11y/badge.e2e.js +18 -0
- package/dist/collection/components/button/button.ios.css +11 -11
- package/dist/collection/components/button/button.md.css +9 -9
- package/dist/collection/components/button/test/a11y/button.e2e.js +48 -0
- package/dist/collection/components/button/test/wrap/button.e2e.js +12 -24
- package/dist/collection/components/checkbox/checkbox.ios.css +8 -26
- package/dist/collection/components/checkbox/checkbox.md.css +5 -24
- package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +11 -2
- package/dist/collection/components/checkbox/test/basic/checkbox.e2e.js +10 -0
- package/dist/collection/components/content/content.css +0 -4
- package/dist/collection/components/content/content.js +3 -4
- package/dist/collection/components/datetime/datetime.ios.css +99 -67
- package/dist/collection/components/datetime/datetime.js +25 -37
- package/dist/collection/components/datetime/datetime.md.css +101 -65
- package/dist/collection/components/datetime/test/a11y/datetime.e2e.js +1 -1
- package/dist/collection/components/datetime/test/a11y/datetime.spec.js +6 -9
- package/dist/collection/components/datetime/test/basic/datetime.e2e.js +10 -0
- package/dist/collection/components/datetime/test/datetime.e2e.js +2 -2
- package/dist/collection/components/datetime/test/disabled/datetime.spec.js +4 -4
- package/dist/collection/components/datetime/test/locale/datetime.e2e.js +2 -2
- package/dist/collection/components/datetime/test/minmax/datetime.e2e.js +6 -6
- package/dist/collection/components/datetime/test/month-year-picker/datetime.e2e.js +1 -1
- package/dist/collection/components/datetime/test/prefer-wheel/datetime.e2e.js +43 -41
- package/dist/collection/components/datetime/test/presentation/datetime.e2e.js +1 -1
- package/dist/collection/components/datetime/test/readonly/datetime.e2e.js +4 -4
- package/dist/collection/components/datetime/test/values/datetime.e2e.js +15 -12
- package/dist/collection/components/datetime/utils/data.js +1 -1
- package/dist/collection/components/datetime-button/datetime-button.ios.css +107 -0
- package/dist/collection/components/datetime-button/datetime-button.js +5 -5
- package/dist/collection/components/datetime-button/{datetime-button.css → datetime-button.md.css} +9 -6
- package/dist/collection/components/datetime-button/test/basic/datetime-button.e2e.js +12 -0
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab-button/fab-button.ios.css +13 -13
- package/dist/collection/components/fab-button/fab-button.js +2 -2
- package/dist/collection/components/fab-button/fab-button.md.css +4 -4
- package/dist/collection/components/fab-button/test/a11y/fab-button.e2e.js +50 -0
- package/dist/collection/components/fab-list/fab-list.css +4 -42
- package/dist/collection/components/fab-list/fab-list.js +2 -2
- package/dist/collection/components/footer/footer.js +2 -2
- package/dist/collection/components/grid/grid.js +2 -2
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/img/img.js +1 -1
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
- package/dist/collection/components/input/input.ios.css +5 -29
- package/dist/collection/components/input/input.js +2 -41
- package/dist/collection/components/input/input.md.css +9 -76
- package/dist/collection/components/input/test/a11y/input.e2e.js +41 -3
- package/dist/collection/components/item/item.ios.css +3 -3
- package/dist/collection/components/item/item.md.css +6 -25
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.ios.css +2 -2
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-option/item-option.md.css +1 -1
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/item-sliding/test/a11y/item-sliding.e2e.js +28 -0
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/label.md.css +1 -1
- package/dist/collection/components/label/test/a11y/label.e2e.js +20 -0
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/list.md.css +2 -26
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/loading/loading.md.css +1 -1
- package/dist/collection/components/loading/test/a11y/loading.e2e.js +21 -5
- package/dist/collection/components/menu/menu.ios.css +72 -53
- package/dist/collection/components/menu/menu.js +21 -15
- package/dist/collection/components/menu/menu.md.css +72 -53
- package/dist/collection/components/menu-button/menu-button.ios.css +1 -1
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-button/test/a11y/menu-button.e2e.js +14 -0
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/gestures/swipe-to-close.js +1 -1
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/nav/nav.js +23 -3
- package/dist/collection/components/nav/test/nav-controller.spec.js +36 -36
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker/picker.ios.css +97 -234
- package/dist/collection/components/picker/picker.js +488 -738
- package/dist/collection/components/picker/picker.md.css +98 -226
- package/dist/collection/components/{picker-internal/test/a11y/picker-internal.e2e.js → picker/test/a11y/picker.e2e.js} +2 -2
- package/dist/collection/components/picker/test/basic/picker.e2e.js +99 -13
- package/dist/collection/components/picker/test/custom/picker.e2e.js +85 -0
- package/dist/collection/components/{picker-internal/test/keyboard-entry/picker-internal.e2e.js → picker/test/keyboard-entry/picker.e2e.js} +79 -42
- package/dist/collection/components/{picker-column-internal/picker-column-internal.md.css → picker-column/picker-column.css} +96 -83
- package/dist/collection/components/picker-column/picker-column.js +499 -335
- package/dist/collection/components/{picker-column-internal/test/basic/picker-column-internal.e2e.js → picker-column/test/basic/picker-column.e2e.js} +8 -8
- package/dist/collection/components/picker-column/test/disabled/picker-column.e2e.js +91 -0
- package/dist/collection/components/picker-column/test/slots/picker-column.e2e.js +39 -0
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +87 -0
- package/dist/collection/components/picker-column-option/picker-column-option.js +173 -0
- package/dist/collection/components/{picker-column-internal/picker-column-internal.ios.css → picker-column-option/picker-column-option.md.css} +6 -53
- package/dist/collection/components/picker-column-option/test/a11y/picker-column-option.e2e.js +18 -0
- package/dist/collection/components/picker-column-option/test/basic/picker-column-option.e2e.js +37 -0
- package/dist/collection/components/picker-column-option/test/picker-column-option.spec.js +29 -0
- package/dist/collection/components/{picker-internal/picker-internal.md.css → picker-legacy/picker.ios.css} +157 -115
- package/dist/collection/components/picker-legacy/picker.js +811 -0
- package/dist/collection/components/{picker-internal/picker-internal.ios.css → picker-legacy/picker.md.css} +142 -117
- package/dist/collection/components/picker-legacy/test/basic/picker.e2e.js +25 -0
- package/dist/collection/components/{picker → picker-legacy}/test/is-open/picker.e2e.js +4 -4
- package/dist/collection/components/{picker → picker-legacy}/test/picker-id.spec.js +5 -5
- package/dist/collection/components/{picker → picker-legacy}/test/trigger/picker.e2e.js +1 -1
- package/dist/collection/components/{picker-column → picker-legacy-column}/picker-column.ios.css +2 -26
- package/dist/collection/components/picker-legacy-column/picker-column.js +419 -0
- package/dist/collection/components/{picker-column → picker-legacy-column}/picker-column.md.css +3 -27
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/picker-column-aria.spec.js +3 -3
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/picker-column-dynamic.spec.js +2 -2
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/picker-column.spec.js +2 -2
- package/dist/collection/components/{picker-column → picker-legacy-column}/test/standalone/picker-column.e2e.js +3 -3
- package/dist/collection/components/popover/popover.ios.css +2 -26
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.ios.css +17 -11
- package/dist/collection/components/progress-bar/progress-bar.js +4 -1
- package/dist/collection/components/progress-bar/progress-bar.md.css +8 -10
- package/dist/collection/components/progress-bar/test/a11y/progress-bar.e2e.js +24 -0
- package/dist/collection/components/radio/radio.ios.css +7 -44
- package/dist/collection/components/radio/radio.md.css +7 -44
- package/dist/collection/components/radio/test/a11y/radio.e2e.js +114 -81
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.ios.css +10 -79
- package/dist/collection/components/range/range.md.css +17 -133
- package/dist/collection/components/range/test/a11y/range.e2e.js +18 -8
- package/dist/collection/components/refresher/refresher.ios.css +3 -26
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher/refresher.md.css +5 -28
- package/dist/collection/components/refresher/test/a11y/refresher.e2e.js +26 -0
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.css +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-link/test/a11y/router-link.e2e.js +23 -0
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.ios.css +8 -56
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/searchbar/searchbar.md.css +6 -78
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment/test/a11y/segment.e2e.js +23 -0
- package/dist/collection/components/segment-button/segment-button.js +3 -3
- package/dist/collection/components/segment-button/segment-button.md.css +2 -2
- package/dist/collection/components/select/select.ios.css +6 -24
- package/dist/collection/components/select/select.md.css +10 -71
- package/dist/collection/components/select/test/a11y/select.e2e.js +68 -4
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/select-popover/select-popover.md.css +4 -4
- package/dist/collection/components/select-popover/test/a11y/select-popover.e2e.js +32 -0
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.ios.css +2 -54
- package/dist/collection/components/split-pane/split-pane.js +48 -14
- package/dist/collection/components/split-pane/split-pane.md.css +2 -54
- package/dist/collection/components/split-pane/test/wrapped-menu/split-pane.e2e.js +41 -0
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.ios.css +1 -1
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.md.css +1 -1
- package/dist/collection/components/tab-button/tab-button.ios.css +16 -94
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tab-button/tab-button.md.css +10 -93
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/test/a11y/textarea.e2e.js +41 -3
- package/dist/collection/components/textarea/textarea.ios.css +9 -98
- package/dist/collection/components/textarea/textarea.js +5 -84
- package/dist/collection/components/textarea/textarea.md.css +13 -156
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.ios.css +2 -21
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/test/a11y/toast.e2e.js +56 -24
- package/dist/collection/components/toast/toast.ios.css +6 -53
- package/dist/collection/components/toast/toast.js +9 -3
- package/dist/collection/components/toast/toast.md.css +7 -54
- package/dist/collection/components/toggle/test/a11y/toggle.e2e.js +8 -2
- package/dist/collection/components/toggle/toggle.ios.css +11 -29
- package/dist/collection/components/toggle/toggle.md.css +5 -23
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/css/test/a11y/typography.e2e.js +18 -0
- package/dist/collection/themes/test/colors/theme.e2e.js +114 -0
- package/dist/collection/utils/gesture/button-active.js +1 -1
- package/dist/collection/utils/gesture/gesture-controller.js +1 -1
- package/dist/collection/utils/overlays.js +11 -4
- package/dist/collection/utils/test/overlays/overlays-scroll-blocking.spec.js +65 -0
- package/dist/collection/utils/test/playwright/generator.js +1 -0
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +1 -1
- package/dist/docs.json +547 -165
- package/dist/esm/{button-active-4bee452c.js → button-active-35dc239f.js} +2 -2
- package/dist/esm/{data-0f3ab200.js → data-691286f1.js} +1 -1
- package/dist/esm/{gesture-controller-1bf57181.js → gesture-controller-314a54f6.js} +1 -1
- package/dist/esm/{index-2cf77112.js → index-39782642.js} +2 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/ion-action-sheet.entry.js +8 -8
- package/dist/esm/ion-alert.entry.js +6 -6
- package/dist/esm/ion-app_8.entry.js +15 -16
- package/dist/esm/ion-avatar_3.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-backdrop.entry.js +1 -13
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +3 -3
- package/dist/esm/ion-datetime-button.entry.js +6 -6
- package/dist/esm/ion-datetime_3.entry.js +49 -69
- package/dist/esm/ion-fab_3.entry.js +9 -9
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
- package/dist/esm/ion-input.entry.js +4 -6
- package/dist/esm/ion-item-option_3.entry.js +7 -7
- package/dist/esm/ion-item_8.entry.js +15 -15
- package/dist/esm/ion-loading.entry.js +5 -4
- package/dist/esm/ion-menu_3.entry.js +31 -26
- package/dist/esm/ion-modal.entry.js +7 -7
- package/dist/esm/ion-nav_2.entry.js +8 -5
- package/dist/esm/ion-picker-column-option.entry.js +102 -0
- package/dist/esm/{ion-picker-column-internal.entry.js → ion-picker-column.entry.js} +105 -89
- package/dist/esm/{ion-picker-internal.entry.js → ion-picker.entry.js} +30 -23
- package/dist/esm/ion-popover.entry.js +5 -4
- package/dist/esm/ion-progress-bar.entry.js +6 -3
- package/dist/esm/ion-radio_2.entry.js +3 -3
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +7 -7
- package/dist/esm/ion-reorder_2.entry.js +3 -3
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +6 -6
- package/dist/esm/ion-segment_2.entry.js +7 -7
- package/dist/esm/ion-select_3.entry.js +7 -6
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +26 -16
- package/dist/esm/ion-tab-bar_2.entry.js +8 -8
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +8 -68
- package/dist/esm/ion-toast.entry.js +15 -9
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{overlays-33ae3ea0.js → overlays-2d8629c6.js} +11 -4
- package/dist/esm/{swipe-back-c06602f2.js → swipe-back-7f7620ca.js} +2 -2
- package/dist/esm-es5/button-active-35dc239f.js +4 -0
- package/dist/esm-es5/{gesture-controller-1bf57181.js → gesture-controller-314a54f6.js} +1 -1
- package/dist/esm-es5/{index-2cf77112.js → index-39782642.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-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +4 -0
- package/dist/esm-es5/ion-picker-column.entry.js +4 -0
- package/dist/esm-es5/ion-picker.entry.js +4 -0
- 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.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/overlays-2d8629c6.js +4 -0
- package/dist/esm-es5/{swipe-back-c06602f2.js → swipe-back-7f7620ca.js} +1 -1
- package/dist/html.html-data.json +152 -13
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-04cca62a.system.entry.js +4 -0
- package/dist/ionic/p-0543054b.entry.js +4 -0
- package/dist/ionic/p-0729b5cd.entry.js +4 -0
- package/dist/ionic/p-08bb849b.entry.js +4 -0
- package/dist/ionic/p-09fffdb0.system.entry.js +4 -0
- package/dist/ionic/p-0b955124.system.js +1 -1
- package/dist/ionic/p-0c840add.entry.js +4 -0
- package/dist/ionic/p-0caf81c6.system.entry.js +4 -0
- package/dist/ionic/{p-cdc277a6.js → p-0d25b742.js} +1 -1
- package/dist/ionic/p-1029611c.entry.js +4 -0
- package/dist/ionic/p-11b295f4.entry.js +4 -0
- package/dist/ionic/{p-bc2c03d7.system.entry.js → p-12b75934.system.entry.js} +1 -1
- package/dist/ionic/p-13264eba.system.entry.js +4 -0
- package/dist/ionic/{p-6f38d0c5.system.entry.js → p-156299c1.system.entry.js} +1 -1
- package/dist/ionic/p-15639026.entry.js +4 -0
- package/dist/ionic/p-156e6059.system.entry.js +4 -0
- package/dist/ionic/p-178690c0.system.entry.js +4 -0
- package/dist/ionic/p-1831387a.system.entry.js +4 -0
- package/dist/ionic/p-19385313.entry.js +4 -0
- package/dist/ionic/{p-c7c8429a.system.js → p-20d469d0.system.js} +1 -1
- package/dist/ionic/p-24058a38.system.entry.js +4 -0
- package/dist/ionic/p-24ff2729.system.entry.js +4 -0
- package/dist/ionic/{p-7c32fb95.system.entry.js → p-2569497d.system.entry.js} +1 -1
- package/dist/ionic/p-276804d2.entry.js +4 -0
- package/dist/ionic/p-2a515f11.system.entry.js +4 -0
- package/dist/ionic/p-2c8e5c80.entry.js +4 -0
- package/dist/ionic/p-315f773b.system.entry.js +4 -0
- package/dist/ionic/p-31d9a349.entry.js +4 -0
- package/dist/ionic/{p-0e29919c.system.entry.js → p-364fd2ae.system.entry.js} +1 -1
- package/dist/ionic/p-3c2c3769.system.entry.js +4 -0
- package/dist/ionic/{p-31b2326e.system.js → p-3e1e14d9.system.js} +1 -1
- package/dist/ionic/p-3f155d29.entry.js +4 -0
- package/dist/ionic/p-3fa8e0f9.entry.js +4 -0
- package/dist/ionic/p-40314c02.entry.js +4 -0
- package/dist/ionic/{p-78edc0cd.system.entry.js → p-43c2aeae.system.entry.js} +2 -2
- package/dist/ionic/{p-ac20160b.system.entry.js → p-445754d1.system.entry.js} +1 -1
- package/dist/ionic/{p-ce2eabd5.entry.js → p-4853de94.entry.js} +1 -1
- package/dist/ionic/p-49457fe6.entry.js +4 -0
- package/dist/ionic/p-499f2482.entry.js +4 -0
- package/dist/ionic/p-4fb92810.system.entry.js +4 -0
- package/dist/ionic/{p-aa7ae6aa.entry.js → p-55a4d7cf.entry.js} +1 -1
- package/dist/ionic/{p-1f6cdf2c.system.entry.js → p-5898aad5.system.entry.js} +1 -1
- package/dist/ionic/{p-1c531ca2.entry.js → p-590ecff0.entry.js} +1 -1
- package/dist/ionic/p-595c7065.entry.js +4 -0
- package/dist/ionic/p-595f9dfe.system.entry.js +4 -0
- package/dist/ionic/p-5e175db3.system.entry.js +4 -0
- package/dist/ionic/{p-fe92da17.entry.js → p-5ee49d72.entry.js} +1 -1
- package/dist/ionic/p-5ef79cfe.system.entry.js +4 -0
- package/dist/ionic/p-5f739516.system.js +4 -0
- package/dist/ionic/{p-400574bf.entry.js → p-6028d77a.entry.js} +1 -1
- package/dist/ionic/p-61c078b4.system.entry.js +4 -0
- package/dist/ionic/p-6c48dd91.system.js +4 -0
- package/dist/ionic/p-6ea89932.js +4 -0
- package/dist/ionic/{p-d95c8e90.entry.js → p-78aade1a.entry.js} +1 -1
- package/dist/ionic/{p-92c2178e.system.entry.js → p-78dfbc32.system.entry.js} +2 -2
- package/dist/ionic/p-7a89f3f3.system.entry.js +4 -0
- package/dist/ionic/p-7dfcdac4.system.entry.js +4 -0
- package/dist/ionic/p-7dfdf838.system.entry.js +4 -0
- package/dist/ionic/p-7efa91b5.entry.js +4 -0
- package/dist/ionic/{p-97eca294.entry.js → p-7f19f4cd.entry.js} +1 -1
- package/dist/ionic/p-854484fa.entry.js +4 -0
- package/dist/ionic/p-892757c2.system.entry.js +4 -0
- package/dist/ionic/p-8a0113a9.entry.js +4 -0
- package/dist/ionic/{p-df281664.system.entry.js → p-8af445b5.system.entry.js} +2 -2
- package/dist/ionic/p-8bd7a47e.entry.js +4 -0
- package/dist/ionic/p-8e58d0a5.system.entry.js +4 -0
- package/dist/ionic/{p-f5d2dc9b.js → p-8ededb41.js} +1 -1
- package/dist/ionic/p-90fcbf72.js +4 -0
- package/dist/ionic/p-912ee727.entry.js +4 -0
- package/dist/ionic/p-938ccce5.entry.js +4 -0
- package/dist/ionic/p-951d75bb.entry.js +4 -0
- package/dist/ionic/{p-bb3615f7.js → p-9b97df10.js} +1 -1
- package/dist/ionic/{p-20a6513f.system.entry.js → p-a074634d.system.entry.js} +2 -2
- package/dist/ionic/{p-fd9a9db3.system.js → p-a0da38e6.system.js} +1 -1
- package/dist/ionic/p-ab08eda4.system.entry.js +4 -0
- package/dist/ionic/{p-eda7a1db.system.entry.js → p-ac955b58.system.entry.js} +1 -1
- package/dist/ionic/p-b17f058b.system.js +4 -0
- package/dist/ionic/{p-dbb4c012.entry.js → p-b1e1d6dd.entry.js} +1 -1
- package/dist/ionic/p-b27577e5.system.entry.js +4 -0
- package/dist/ionic/p-bfcaea5f.entry.js +4 -0
- package/dist/ionic/p-c4045831.entry.js +4 -0
- package/dist/ionic/p-c4e9201d.entry.js +4 -0
- package/dist/ionic/{p-a051c371.entry.js → p-c9de921c.entry.js} +1 -1
- package/dist/ionic/p-c9f6626c.system.entry.js +4 -0
- package/dist/ionic/p-cd5cb2da.system.entry.js +4 -0
- package/dist/ionic/p-d8834a0d.entry.js +4 -0
- package/dist/ionic/p-db504106.entry.js +4 -0
- package/dist/ionic/{p-0eef8b34.system.entry.js → p-dd79d499.system.entry.js} +1 -1
- package/dist/ionic/p-e1054dac.system.entry.js +4 -0
- package/dist/ionic/{p-d8607ede.entry.js → p-e2f91d98.entry.js} +1 -1
- package/dist/ionic/p-e82bc15e.entry.js +4 -0
- package/dist/ionic/p-e9c2c532.entry.js +4 -0
- package/dist/ionic/p-ef065e0d.system.entry.js +4 -0
- package/dist/ionic/p-f7d618b7.entry.js +4 -0
- package/dist/ionic/p-fa203b3a.system.entry.js +4 -0
- package/dist/ionic/{p-9a6ab80a.system.entry.js → p-fa667cfb.system.entry.js} +1 -1
- package/dist/ionic/{p-5a0c301f.entry.js → p-fd14f2b4.entry.js} +1 -1
- package/dist/ionic/p-fe990e42.system.entry.js +4 -0
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +8 -0
- package/dist/types/components/backdrop/backdrop.d.ts +0 -3
- package/dist/types/components/datetime/datetime.d.ts +0 -1
- package/dist/types/components/datetime/utils/data.d.ts +11 -7
- package/dist/types/components/input/input.d.ts +0 -6
- package/dist/types/components/menu/menu.d.ts +12 -2
- package/dist/types/components/nav/nav.d.ts +4 -1
- package/dist/types/components/picker/picker-interfaces.d.ts +8 -0
- package/dist/types/components/picker/picker.d.ts +75 -129
- package/dist/types/components/picker-column/picker-column-interfaces.d.ts +4 -0
- package/dist/types/components/picker-column/picker-column.d.ts +99 -39
- package/dist/types/components/picker-column-option/picker-column-option.d.ts +66 -0
- package/dist/types/components/picker-legacy/picker.d.ts +158 -0
- package/dist/types/components/picker-legacy-column/picker-column.d.ts +46 -0
- package/dist/types/components/split-pane/split-pane.d.ts +14 -2
- package/dist/types/components/textarea/textarea.d.ts +0 -17
- package/dist/types/components/toast/toast-interface.d.ts +0 -4
- package/dist/types/components.d.ts +159 -142
- package/dist/types/interface.d.ts +1 -1
- package/dist/types/utils/config.d.ts +2 -2
- package/dist/types/utils/gesture/gesture-controller.d.ts +1 -0
- package/dist/types/utils/overlays.d.ts +5 -2
- package/hydrate/index.js +1746 -1683
- package/package.json +1 -1
- package/components/ion-picker-column-internal.d.ts +0 -11
- package/components/ion-picker-column-internal.js +0 -9
- package/components/ion-picker-internal.js +0 -9
- package/components/picker-column-internal.js +0 -392
- package/dist/collection/components/picker-column-internal/picker-column-internal.js +0 -566
- package/dist/collection/components/picker-column-internal/test/disabled/picker-column-internal.e2e.js +0 -162
- package/dist/collection/components/picker-internal/picker-internal.js +0 -560
- package/dist/collection/components/picker-internal/test/basic/picker-internal.e2e.js +0 -118
- package/dist/collection/components/textarea/test/legacy/a11y/textarea.e2e.js +0 -31
- package/dist/collection/components/textarea/test/legacy/autogrow/textarea.e2e.js +0 -58
- package/dist/collection/components/textarea/test/legacy/basic/textarea.e2e.js +0 -43
- package/dist/collection/components/textarea/test/legacy/clear-on-edit/textarea.e2e.js +0 -25
- package/dist/esm-es5/button-active-4bee452c.js +0 -4
- package/dist/esm-es5/ion-picker-column-internal.entry.js +0 -4
- package/dist/esm-es5/ion-picker-internal.entry.js +0 -4
- package/dist/esm-es5/overlays-33ae3ea0.js +0 -4
- package/dist/ionic/p-016976a7.system.entry.js +0 -4
- package/dist/ionic/p-078fd095.system.entry.js +0 -4
- package/dist/ionic/p-0ae25399.system.entry.js +0 -4
- package/dist/ionic/p-108f730a.entry.js +0 -4
- package/dist/ionic/p-1f583f73.entry.js +0 -4
- package/dist/ionic/p-20f7a91e.system.entry.js +0 -4
- package/dist/ionic/p-2da0a76c.entry.js +0 -4
- package/dist/ionic/p-30c9e049.system.entry.js +0 -4
- package/dist/ionic/p-333f06ed.entry.js +0 -4
- package/dist/ionic/p-389ff4d2.system.entry.js +0 -4
- package/dist/ionic/p-396c1a55.entry.js +0 -4
- package/dist/ionic/p-3a54c070.system.entry.js +0 -4
- package/dist/ionic/p-3a98f8db.entry.js +0 -4
- package/dist/ionic/p-3cb2ab30.entry.js +0 -4
- package/dist/ionic/p-3cdbaa49.entry.js +0 -4
- package/dist/ionic/p-48af4316.system.entry.js +0 -4
- package/dist/ionic/p-4c256bc2.system.entry.js +0 -4
- package/dist/ionic/p-4dfc27eb.system.entry.js +0 -4
- package/dist/ionic/p-51f08a9f.entry.js +0 -4
- package/dist/ionic/p-5b6aa59a.entry.js +0 -4
- package/dist/ionic/p-5e60dbc8.entry.js +0 -4
- package/dist/ionic/p-5eea8b4c.system.js +0 -4
- package/dist/ionic/p-61c0f8bf.system.entry.js +0 -4
- package/dist/ionic/p-680f96e8.system.entry.js +0 -4
- package/dist/ionic/p-6a34980d.entry.js +0 -4
- package/dist/ionic/p-6b02edd6.js +0 -4
- package/dist/ionic/p-70026e8f.system.entry.js +0 -4
- package/dist/ionic/p-776b144b.system.js +0 -4
- package/dist/ionic/p-7dc7514a.entry.js +0 -4
- package/dist/ionic/p-84513dfb.entry.js +0 -4
- package/dist/ionic/p-84879f61.system.entry.js +0 -4
- package/dist/ionic/p-8569d759.system.entry.js +0 -4
- package/dist/ionic/p-8ebd9951.entry.js +0 -4
- package/dist/ionic/p-9beb5039.system.js +0 -4
- package/dist/ionic/p-9f5b40c0.system.entry.js +0 -4
- package/dist/ionic/p-9f6397ce.entry.js +0 -4
- package/dist/ionic/p-a19f5ae1.entry.js +0 -4
- package/dist/ionic/p-a1bfaa5c.system.entry.js +0 -4
- package/dist/ionic/p-aaa4ffb3.system.entry.js +0 -4
- package/dist/ionic/p-ac979ebf.system.entry.js +0 -4
- package/dist/ionic/p-b37e4ee5.system.entry.js +0 -4
- package/dist/ionic/p-b498de69.entry.js +0 -4
- package/dist/ionic/p-bd259c65.system.entry.js +0 -4
- package/dist/ionic/p-c3790581.entry.js +0 -4
- package/dist/ionic/p-c851b204.system.entry.js +0 -4
- package/dist/ionic/p-cd055d60.system.entry.js +0 -4
- package/dist/ionic/p-d7260b87.entry.js +0 -4
- package/dist/ionic/p-d74ca358.entry.js +0 -4
- package/dist/ionic/p-dce9bc53.entry.js +0 -4
- package/dist/ionic/p-dd60faa5.system.entry.js +0 -4
- package/dist/ionic/p-df468a8f.entry.js +0 -4
- package/dist/ionic/p-e0569db4.entry.js +0 -4
- package/dist/ionic/p-e68980ff.system.entry.js +0 -4
- package/dist/ionic/p-e6aaff14.system.entry.js +0 -4
- package/dist/ionic/p-ea8fbf09.entry.js +0 -4
- package/dist/ionic/p-efe9180b.entry.js +0 -4
- package/dist/ionic/p-f1ad3b3d.entry.js +0 -4
- package/dist/ionic/p-f1cc690e.entry.js +0 -4
- package/dist/ionic/p-f46775e4.entry.js +0 -4
- package/dist/ionic/p-f7b43141.system.entry.js +0 -4
- package/dist/ionic/p-f88dd429.entry.js +0 -4
- package/dist/ionic/p-f89ae259.js +0 -4
- package/dist/ionic/p-f97b9cdd.system.entry.js +0 -4
- package/dist/ionic/p-f9d0e6f4.system.entry.js +0 -4
- package/dist/ionic/p-fd3f475f.entry.js +0 -4
- package/dist/types/components/picker-column-internal/picker-column-internal-interfaces.d.ts +0 -5
- package/dist/types/components/picker-column-internal/picker-column-internal.d.ts +0 -102
- package/dist/types/components/picker-internal/picker-internal-interfaces.d.ts +0 -8
- package/dist/types/components/picker-internal/picker-internal.d.ts +0 -102
- /package/dist/collection/components/{picker-internal/picker-internal-interfaces.js → picker/picker-interfaces.js} +0 -0
- /package/dist/collection/components/{picker-column-internal/picker-column-internal-interfaces.js → picker-column/picker-column-interfaces.js} +0 -0
- /package/dist/collection/components/{picker → picker-legacy}/animations/ios.enter.js +0 -0
- /package/dist/collection/components/{picker → picker-legacy}/animations/ios.leave.js +0 -0
- /package/dist/collection/components/{picker → picker-legacy}/picker-interface.js +0 -0
- /package/dist/collection/components/{picker-column → picker-legacy-column}/test/test.utils.js +0 -0
- /package/dist/esm-es5/{data-0f3ab200.js → data-691286f1.js} +0 -0
- /package/dist/ionic/{p-f7dce541.js → p-5289aade.js} +0 -0
- /package/dist/ionic/{p-7330c044.system.js → p-66e6860f.system.js} +0 -0
- /package/dist/types/components/{picker → picker-legacy}/animations/ios.enter.d.ts +0 -0
- /package/dist/types/components/{picker → picker-legacy}/animations/ios.leave.d.ts +0 -0
- /package/dist/types/components/{picker → picker-legacy}/picker-interface.d.ts +0 -0
- /package/dist/types/components/{picker-column → picker-legacy-column}/test/test.utils.d.ts +0 -0
|
@@ -2,192 +2,497 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Host, h } from "@stencil/core";
|
|
5
|
-
import {
|
|
6
|
-
import { createLockController } from "../../utils/lock-controller";
|
|
7
|
-
import { createDelegateController, createTriggerController, BACKDROP, dismiss, eventMethod, isCancel, prepareOverlay, present, safeCall, setOverlayId, } from "../../utils/overlays";
|
|
8
|
-
import { getClassMap } from "../../utils/theme";
|
|
9
|
-
import { getIonMode } from "../../global/ionic-global";
|
|
10
|
-
import { iosEnterAnimation } from "./animations/ios.enter";
|
|
11
|
-
import { iosLeaveAnimation } from "./animations/ios.leave";
|
|
12
|
-
// TODO(FW-2832): types
|
|
5
|
+
import { getElementRoot } from "../../utils/helpers";
|
|
13
6
|
/**
|
|
14
7
|
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
|
15
8
|
*/
|
|
16
9
|
export class Picker {
|
|
17
10
|
constructor() {
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
this.useInputMode = false;
|
|
12
|
+
this.isInHighlightBounds = (ev) => {
|
|
13
|
+
const { highlightEl } = this;
|
|
14
|
+
if (!highlightEl) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
const bbox = highlightEl.getBoundingClientRect();
|
|
18
|
+
/**
|
|
19
|
+
* Check to see if the user clicked
|
|
20
|
+
* outside the bounds of the highlight.
|
|
21
|
+
*/
|
|
22
|
+
const outsideX = ev.clientX < bbox.left || ev.clientX > bbox.right;
|
|
23
|
+
const outsideY = ev.clientY < bbox.top || ev.clientY > bbox.bottom;
|
|
24
|
+
if (outsideX || outsideY) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
return true;
|
|
23
28
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
/**
|
|
30
|
+
* If we are no longer focused
|
|
31
|
+
* on a picker column, then we should
|
|
32
|
+
* exit input mode. An exception is made
|
|
33
|
+
* for the input in the picker since having
|
|
34
|
+
* that focused means we are still in input mode.
|
|
35
|
+
*/
|
|
36
|
+
this.onFocusOut = (ev) => {
|
|
37
|
+
// TODO(FW-2832): type
|
|
38
|
+
const { relatedTarget } = ev;
|
|
39
|
+
if (!relatedTarget || (relatedTarget.tagName !== 'ION-PICKER-COLUMN' && relatedTarget !== this.inputEl)) {
|
|
40
|
+
this.exitInputMode();
|
|
29
41
|
}
|
|
30
42
|
};
|
|
31
|
-
this.presented = false;
|
|
32
|
-
this.overlayIndex = undefined;
|
|
33
|
-
this.delegate = undefined;
|
|
34
|
-
this.hasController = false;
|
|
35
|
-
this.keyboardClose = true;
|
|
36
|
-
this.enterAnimation = undefined;
|
|
37
|
-
this.leaveAnimation = undefined;
|
|
38
|
-
this.buttons = [];
|
|
39
|
-
this.columns = [];
|
|
40
|
-
this.cssClass = undefined;
|
|
41
|
-
this.duration = 0;
|
|
42
|
-
this.showBackdrop = true;
|
|
43
|
-
this.backdropDismiss = true;
|
|
44
|
-
this.animated = true;
|
|
45
|
-
this.htmlAttributes = undefined;
|
|
46
|
-
this.isOpen = false;
|
|
47
|
-
this.trigger = undefined;
|
|
48
|
-
}
|
|
49
|
-
onIsOpenChange(newValue, oldValue) {
|
|
50
|
-
if (newValue === true && oldValue === false) {
|
|
51
|
-
this.present();
|
|
52
|
-
}
|
|
53
|
-
else if (newValue === false && oldValue === true) {
|
|
54
|
-
this.dismiss();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
triggerChanged() {
|
|
58
|
-
const { trigger, el, triggerController } = this;
|
|
59
|
-
if (trigger) {
|
|
60
|
-
triggerController.addClickListener(el, trigger);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
connectedCallback() {
|
|
64
|
-
prepareOverlay(this.el);
|
|
65
|
-
this.triggerChanged();
|
|
66
|
-
}
|
|
67
|
-
disconnectedCallback() {
|
|
68
|
-
this.triggerController.removeClickListener();
|
|
69
|
-
}
|
|
70
|
-
componentWillLoad() {
|
|
71
|
-
setOverlayId(this.el);
|
|
72
|
-
}
|
|
73
|
-
componentDidLoad() {
|
|
74
43
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
44
|
+
* When picker columns receive focus
|
|
45
|
+
* the parent picker needs to determine
|
|
46
|
+
* whether to enter/exit input mode.
|
|
77
47
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
48
|
+
this.onFocusIn = (ev) => {
|
|
49
|
+
// TODO(FW-2832): type
|
|
50
|
+
const { target } = ev;
|
|
51
|
+
/**
|
|
52
|
+
* Due to browser differences in how/when focus
|
|
53
|
+
* is dispatched on certain elements, we need to
|
|
54
|
+
* make sure that this function only ever runs when
|
|
55
|
+
* focusing a picker column.
|
|
56
|
+
*/
|
|
57
|
+
if (target.tagName !== 'ION-PICKER-COLUMN') {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* If we have actionOnClick
|
|
62
|
+
* then this means the user focused
|
|
63
|
+
* a picker column via mouse or
|
|
64
|
+
* touch (i.e. a PointerEvent). As a result,
|
|
65
|
+
* we should not enter/exit input mode
|
|
66
|
+
* until the click event has fired, which happens
|
|
67
|
+
* after the `focusin` event.
|
|
68
|
+
*
|
|
69
|
+
* Otherwise, the user likely focused
|
|
70
|
+
* the column using their keyboard and
|
|
71
|
+
* we should enter/exit input mode automatically.
|
|
72
|
+
*/
|
|
73
|
+
if (!this.actionOnClick) {
|
|
74
|
+
const columnEl = target;
|
|
75
|
+
const allowInput = columnEl.numericInput;
|
|
76
|
+
if (allowInput) {
|
|
77
|
+
this.enterInputMode(columnEl, false);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.exitInputMode();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
81
84
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* As a result, the watcher callback may not be fired.
|
|
86
|
-
* We work around this by manually calling the watcher
|
|
87
|
-
* callback when the component has loaded and the watcher
|
|
88
|
-
* is configured.
|
|
85
|
+
* On click we need to run an actionOnClick
|
|
86
|
+
* function that has been set in onPointerDown
|
|
87
|
+
* so that we enter/exit input mode correctly.
|
|
89
88
|
*/
|
|
90
|
-
this.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
89
|
+
this.onClick = () => {
|
|
90
|
+
const { actionOnClick } = this;
|
|
91
|
+
if (actionOnClick) {
|
|
92
|
+
actionOnClick();
|
|
93
|
+
this.actionOnClick = undefined;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Clicking a column also focuses the column on
|
|
98
|
+
* certain browsers, so we use onPointerDown
|
|
99
|
+
* to tell the onFocusIn function that users
|
|
100
|
+
* are trying to click the column rather than
|
|
101
|
+
* focus the column using the keyboard. When the
|
|
102
|
+
* user completes the click, the onClick function
|
|
103
|
+
* runs and runs the actionOnClick callback.
|
|
104
|
+
*/
|
|
105
|
+
this.onPointerDown = (ev) => {
|
|
106
|
+
const { useInputMode, inputModeColumn, el } = this;
|
|
107
|
+
if (this.isInHighlightBounds(ev)) {
|
|
108
|
+
/**
|
|
109
|
+
* If we were already in
|
|
110
|
+
* input mode, then we should determine
|
|
111
|
+
* if we tapped a particular column and
|
|
112
|
+
* should switch to input mode for
|
|
113
|
+
* that specific column.
|
|
114
|
+
*/
|
|
115
|
+
if (useInputMode) {
|
|
116
|
+
/**
|
|
117
|
+
* If we tapped a picker column
|
|
118
|
+
* then we should either switch to input
|
|
119
|
+
* mode for that column or all columns.
|
|
120
|
+
* Otherwise we should exit input mode
|
|
121
|
+
* since we just tapped the highlight and
|
|
122
|
+
* not a column.
|
|
123
|
+
*/
|
|
124
|
+
if (ev.target.tagName === 'ION-PICKER-COLUMN') {
|
|
125
|
+
/**
|
|
126
|
+
* If user taps 2 different columns
|
|
127
|
+
* then we should just switch to input mode
|
|
128
|
+
* for the new column rather than switching to
|
|
129
|
+
* input mode for all columns.
|
|
130
|
+
*/
|
|
131
|
+
if (inputModeColumn && inputModeColumn === ev.target) {
|
|
132
|
+
this.actionOnClick = () => {
|
|
133
|
+
this.enterInputMode();
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
this.actionOnClick = () => {
|
|
138
|
+
this.enterInputMode(ev.target);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.actionOnClick = () => {
|
|
144
|
+
this.exitInputMode();
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* If we were not already in
|
|
149
|
+
* input mode, then we should
|
|
150
|
+
* enter input mode for all columns.
|
|
151
|
+
*/
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
/**
|
|
155
|
+
* If there is only 1 numeric input column
|
|
156
|
+
* then we should skip multi column input.
|
|
157
|
+
*/
|
|
158
|
+
const columns = el.querySelectorAll('ion-picker-column.picker-column-numeric-input');
|
|
159
|
+
const columnEl = columns.length === 1 ? ev.target : undefined;
|
|
160
|
+
this.actionOnClick = () => {
|
|
161
|
+
this.enterInputMode(columnEl);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
this.actionOnClick = () => {
|
|
167
|
+
this.exitInputMode();
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Enters input mode to allow
|
|
172
|
+
* for text entry of numeric values.
|
|
173
|
+
* If on mobile, we focus a hidden input
|
|
174
|
+
* field so that the on screen keyboard
|
|
175
|
+
* is brought up. When tabbing using a
|
|
176
|
+
* keyboard, picker columns receive an outline
|
|
177
|
+
* to indicate they are focused. As a result,
|
|
178
|
+
* we should not focus the hidden input as it
|
|
179
|
+
* would cause the outline to go away, preventing
|
|
180
|
+
* users from having any visual indication of which
|
|
181
|
+
* column is focused.
|
|
182
|
+
*/
|
|
183
|
+
this.enterInputMode = (columnEl, focusInput = true) => {
|
|
184
|
+
const { inputEl, el } = this;
|
|
185
|
+
if (!inputEl) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Only active input mode if there is at
|
|
190
|
+
* least one column that accepts numeric input.
|
|
191
|
+
*/
|
|
192
|
+
const hasInputColumn = el.querySelector('ion-picker-column.picker-column-numeric-input');
|
|
193
|
+
if (!hasInputColumn) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* If columnEl is undefined then
|
|
198
|
+
* it is assumed that all numeric pickers
|
|
199
|
+
* are eligible for text entry.
|
|
200
|
+
* (i.e. hour and minute columns)
|
|
201
|
+
*/
|
|
202
|
+
this.useInputMode = true;
|
|
203
|
+
this.inputModeColumn = columnEl;
|
|
204
|
+
/**
|
|
205
|
+
* Users with a keyboard and mouse can
|
|
206
|
+
* activate input mode where the input is
|
|
207
|
+
* focused as well as when it is not focused,
|
|
208
|
+
* so we need to make sure we clean up any
|
|
209
|
+
* old listeners.
|
|
210
|
+
*/
|
|
211
|
+
if (focusInput) {
|
|
212
|
+
if (this.destroyKeypressListener) {
|
|
213
|
+
this.destroyKeypressListener();
|
|
214
|
+
this.destroyKeypressListener = undefined;
|
|
215
|
+
}
|
|
216
|
+
inputEl.focus();
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
// TODO FW-5900 Use keydown instead
|
|
220
|
+
el.addEventListener('keypress', this.onKeyPress);
|
|
221
|
+
this.destroyKeypressListener = () => {
|
|
222
|
+
el.removeEventListener('keypress', this.onKeyPress);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
this.emitInputModeChange();
|
|
226
|
+
};
|
|
227
|
+
this.onKeyPress = (ev) => {
|
|
228
|
+
const { inputEl } = this;
|
|
229
|
+
if (!inputEl) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
const parsedValue = parseInt(ev.key, 10);
|
|
233
|
+
/**
|
|
234
|
+
* Only numbers should be allowed
|
|
235
|
+
*/
|
|
236
|
+
if (!Number.isNaN(parsedValue)) {
|
|
237
|
+
inputEl.value += ev.key;
|
|
238
|
+
this.onInputChange();
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
this.selectSingleColumn = () => {
|
|
242
|
+
const { inputEl, inputModeColumn, singleColumnSearchTimeout } = this;
|
|
243
|
+
if (!inputEl || !inputModeColumn) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
const options = Array.from(inputModeColumn.querySelectorAll('ion-picker-column-option')).filter((el) => el.disabled !== true);
|
|
247
|
+
/**
|
|
248
|
+
* If users pause for a bit, the search
|
|
249
|
+
* value should be reset similar to how a
|
|
250
|
+
* <select> behaves. So typing "34", waiting,
|
|
251
|
+
* then typing "5" should select "05".
|
|
252
|
+
*/
|
|
253
|
+
if (singleColumnSearchTimeout) {
|
|
254
|
+
clearTimeout(singleColumnSearchTimeout);
|
|
255
|
+
}
|
|
256
|
+
this.singleColumnSearchTimeout = setTimeout(() => {
|
|
257
|
+
inputEl.value = '';
|
|
258
|
+
this.singleColumnSearchTimeout = undefined;
|
|
259
|
+
}, 1000);
|
|
260
|
+
/**
|
|
261
|
+
* For values that are longer than 2 digits long
|
|
262
|
+
* we should shift the value over 1 character
|
|
263
|
+
* to the left. So typing "456" would result in "56".
|
|
264
|
+
* TODO: If we want to support more than just
|
|
265
|
+
* time entry, we should update this value to be
|
|
266
|
+
* the max length of all of the picker items.
|
|
267
|
+
*/
|
|
268
|
+
if (inputEl.value.length >= 3) {
|
|
269
|
+
const startIndex = inputEl.value.length - 2;
|
|
270
|
+
const newString = inputEl.value.substring(startIndex);
|
|
271
|
+
inputEl.value = newString;
|
|
272
|
+
this.selectSingleColumn();
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Checking the value of the input gets priority
|
|
277
|
+
* first. For example, if the value of the input
|
|
278
|
+
* is "1" and we entered "2", then the complete value
|
|
279
|
+
* is "12" and we should select hour 12.
|
|
280
|
+
*
|
|
281
|
+
* Regex removes any leading zeros from values like "02",
|
|
282
|
+
* but it keeps a single zero if there are only zeros in the string.
|
|
283
|
+
* 0+(?=[1-9]) --> Match 1 or more zeros that are followed by 1-9
|
|
284
|
+
* 0+(?=0$) --> Match 1 or more zeros that must be followed by one 0 and end.
|
|
285
|
+
*/
|
|
286
|
+
const findItemFromCompleteValue = options.find(({ textContent }) => {
|
|
287
|
+
/**
|
|
288
|
+
* Keyboard entry is currently only used inside of Datetime
|
|
289
|
+
* where we guarantee textContent is set.
|
|
290
|
+
* If we end up exposing this feature publicly we should revisit this assumption.
|
|
291
|
+
*/
|
|
292
|
+
const parsedText = textContent.replace(/^0+(?=[1-9])|0+(?=0$)/, '');
|
|
293
|
+
return parsedText === inputEl.value;
|
|
294
|
+
});
|
|
295
|
+
if (findItemFromCompleteValue) {
|
|
296
|
+
inputModeColumn.setValue(findItemFromCompleteValue.value);
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* If we typed "56" to get minute 56, then typed "7",
|
|
301
|
+
* we should select "07" as "567" is not a valid minute.
|
|
302
|
+
*/
|
|
303
|
+
if (inputEl.value.length === 2) {
|
|
304
|
+
const changedCharacter = inputEl.value.substring(inputEl.value.length - 1);
|
|
305
|
+
inputEl.value = changedCharacter;
|
|
306
|
+
this.selectSingleColumn();
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Searches a list of column items for a particular
|
|
311
|
+
* value. This is currently used for numeric values.
|
|
312
|
+
* The zeroBehavior can be set to account for leading
|
|
313
|
+
* or trailing zeros when looking at the item text.
|
|
314
|
+
*/
|
|
315
|
+
this.searchColumn = (colEl, value, zeroBehavior = 'start') => {
|
|
316
|
+
const behavior = zeroBehavior === 'start' ? /^0+/ : /0$/;
|
|
317
|
+
const option = Array.from(colEl.querySelectorAll('ion-picker-column-option')).find((el) => {
|
|
318
|
+
return el.disabled !== true && el.textContent.replace(behavior, '') === value;
|
|
319
|
+
});
|
|
320
|
+
if (option) {
|
|
321
|
+
colEl.setValue(option.value);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
this.selectMultiColumn = () => {
|
|
325
|
+
const { inputEl, el } = this;
|
|
326
|
+
if (!inputEl) {
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
const numericPickers = Array.from(el.querySelectorAll('ion-picker-column')).filter((col) => col.numericInput);
|
|
330
|
+
const firstColumn = numericPickers[0];
|
|
331
|
+
const lastColumn = numericPickers[1];
|
|
332
|
+
let value = inputEl.value;
|
|
333
|
+
let minuteValue;
|
|
334
|
+
switch (value.length) {
|
|
335
|
+
case 1:
|
|
336
|
+
this.searchColumn(firstColumn, value);
|
|
337
|
+
break;
|
|
338
|
+
case 2:
|
|
339
|
+
/**
|
|
340
|
+
* If the first character is `0` or `1` it is
|
|
341
|
+
* possible that users are trying to type `09`
|
|
342
|
+
* or `11` into the hour field, so we should look
|
|
343
|
+
* at that first.
|
|
344
|
+
*/
|
|
345
|
+
const firstCharacter = inputEl.value.substring(0, 1);
|
|
346
|
+
value = firstCharacter === '0' || firstCharacter === '1' ? inputEl.value : firstCharacter;
|
|
347
|
+
this.searchColumn(firstColumn, value);
|
|
348
|
+
/**
|
|
349
|
+
* If only checked the first value,
|
|
350
|
+
* we can check the second value
|
|
351
|
+
* for a match in the minutes column
|
|
352
|
+
*/
|
|
353
|
+
if (value.length === 1) {
|
|
354
|
+
minuteValue = inputEl.value.substring(inputEl.value.length - 1);
|
|
355
|
+
this.searchColumn(lastColumn, minuteValue, 'end');
|
|
356
|
+
}
|
|
357
|
+
break;
|
|
358
|
+
case 3:
|
|
359
|
+
/**
|
|
360
|
+
* If the first character is `0` or `1` it is
|
|
361
|
+
* possible that users are trying to type `09`
|
|
362
|
+
* or `11` into the hour field, so we should look
|
|
363
|
+
* at that first.
|
|
364
|
+
*/
|
|
365
|
+
const firstCharacterAgain = inputEl.value.substring(0, 1);
|
|
366
|
+
value =
|
|
367
|
+
firstCharacterAgain === '0' || firstCharacterAgain === '1'
|
|
368
|
+
? inputEl.value.substring(0, 2)
|
|
369
|
+
: firstCharacterAgain;
|
|
370
|
+
this.searchColumn(firstColumn, value);
|
|
371
|
+
/**
|
|
372
|
+
* If only checked the first value,
|
|
373
|
+
* we can check the second value
|
|
374
|
+
* for a match in the minutes column
|
|
375
|
+
*/
|
|
376
|
+
minuteValue = value.length === 1 ? inputEl.value.substring(1) : inputEl.value.substring(2);
|
|
377
|
+
this.searchColumn(lastColumn, minuteValue, 'end');
|
|
378
|
+
break;
|
|
379
|
+
case 4:
|
|
380
|
+
/**
|
|
381
|
+
* If the first character is `0` or `1` it is
|
|
382
|
+
* possible that users are trying to type `09`
|
|
383
|
+
* or `11` into the hour field, so we should look
|
|
384
|
+
* at that first.
|
|
385
|
+
*/
|
|
386
|
+
const firstCharacterAgainAgain = inputEl.value.substring(0, 1);
|
|
387
|
+
value =
|
|
388
|
+
firstCharacterAgainAgain === '0' || firstCharacterAgainAgain === '1'
|
|
389
|
+
? inputEl.value.substring(0, 2)
|
|
390
|
+
: firstCharacterAgainAgain;
|
|
391
|
+
this.searchColumn(firstColumn, value);
|
|
392
|
+
/**
|
|
393
|
+
* If only checked the first value,
|
|
394
|
+
* we can check the second value
|
|
395
|
+
* for a match in the minutes column
|
|
396
|
+
*/
|
|
397
|
+
const minuteValueAgain = value.length === 1
|
|
398
|
+
? inputEl.value.substring(1, inputEl.value.length)
|
|
399
|
+
: inputEl.value.substring(2, inputEl.value.length);
|
|
400
|
+
this.searchColumn(lastColumn, minuteValueAgain, 'end');
|
|
401
|
+
break;
|
|
402
|
+
default:
|
|
403
|
+
const startIndex = inputEl.value.length - 4;
|
|
404
|
+
const newString = inputEl.value.substring(startIndex);
|
|
405
|
+
inputEl.value = newString;
|
|
406
|
+
this.selectMultiColumn();
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Searches the value of the active column
|
|
412
|
+
* to determine which value users are trying
|
|
413
|
+
* to select
|
|
414
|
+
*/
|
|
415
|
+
this.onInputChange = () => {
|
|
416
|
+
const { useInputMode, inputEl, inputModeColumn } = this;
|
|
417
|
+
if (!useInputMode || !inputEl) {
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
if (inputModeColumn) {
|
|
421
|
+
this.selectSingleColumn();
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
this.selectMultiColumn();
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
/**
|
|
428
|
+
* Emit ionInputModeChange. Picker columns
|
|
429
|
+
* listen for this event to determine whether
|
|
430
|
+
* or not their column is "active" for text input.
|
|
431
|
+
*/
|
|
432
|
+
this.emitInputModeChange = () => {
|
|
433
|
+
const { useInputMode, inputModeColumn } = this;
|
|
434
|
+
this.ionInputModeChange.emit({
|
|
435
|
+
useInputMode,
|
|
436
|
+
inputModeColumn,
|
|
437
|
+
});
|
|
438
|
+
};
|
|
124
439
|
}
|
|
125
440
|
/**
|
|
126
|
-
*
|
|
441
|
+
* When the picker is interacted with
|
|
442
|
+
* we need to prevent touchstart so other
|
|
443
|
+
* gestures do not fire. For example,
|
|
444
|
+
* scrolling on the wheel picker
|
|
445
|
+
* in ion-datetime should not cause
|
|
446
|
+
* a card modal to swipe to close.
|
|
127
447
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
448
|
+
preventTouchStartPropagation(ev) {
|
|
449
|
+
ev.stopPropagation();
|
|
130
450
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
onWillDismiss() {
|
|
135
|
-
return eventMethod(this.el, 'ionPickerWillDismiss');
|
|
451
|
+
componentWillLoad() {
|
|
452
|
+
getElementRoot(this.el).addEventListener('focusin', this.onFocusIn);
|
|
453
|
+
getElementRoot(this.el).addEventListener('focusout', this.onFocusOut);
|
|
136
454
|
}
|
|
137
455
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
456
|
+
* @internal
|
|
457
|
+
* Exits text entry mode for the picker
|
|
458
|
+
* This method blurs the hidden input
|
|
459
|
+
* and cause the keyboard to dismiss.
|
|
141
460
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const role = button.role;
|
|
147
|
-
if (isCancel(role)) {
|
|
148
|
-
return this.dismiss(undefined, role);
|
|
461
|
+
async exitInputMode() {
|
|
462
|
+
const { inputEl, useInputMode } = this;
|
|
463
|
+
if (!useInputMode || !inputEl) {
|
|
464
|
+
return;
|
|
149
465
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
if (button) {
|
|
158
|
-
// a handler has been provided, execute it
|
|
159
|
-
// pass the handler the values from the inputs
|
|
160
|
-
const rtn = await safeCall(button.handler, this.getSelected());
|
|
161
|
-
if (rtn === false) {
|
|
162
|
-
// if the return value of the handler is false then do not dismiss
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
466
|
+
this.useInputMode = false;
|
|
467
|
+
this.inputModeColumn = undefined;
|
|
468
|
+
inputEl.blur();
|
|
469
|
+
inputEl.value = '';
|
|
470
|
+
if (this.destroyKeypressListener) {
|
|
471
|
+
this.destroyKeypressListener();
|
|
472
|
+
this.destroyKeypressListener = undefined;
|
|
165
473
|
}
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
getSelected() {
|
|
169
|
-
const selected = {};
|
|
170
|
-
this.columns.forEach((col, index) => {
|
|
171
|
-
const selectedColumn = col.selectedIndex !== undefined ? col.options[col.selectedIndex] : undefined;
|
|
172
|
-
selected[col.name] = {
|
|
173
|
-
text: selectedColumn ? selectedColumn.text : undefined,
|
|
174
|
-
value: selectedColumn ? selectedColumn.value : undefined,
|
|
175
|
-
columnIndex: index,
|
|
176
|
-
};
|
|
177
|
-
});
|
|
178
|
-
return selected;
|
|
474
|
+
this.emitInputModeChange();
|
|
179
475
|
}
|
|
180
476
|
render() {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
477
|
+
return (h(Host, { key: '69a87b004f01d3c85818c24550d71ab8b1217574', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, h("input", { key: '42f208ad6693b223150d175855a4e3a940fcbf8a', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
|
|
478
|
+
var _a;
|
|
479
|
+
/**
|
|
480
|
+
* The "Enter" key represents
|
|
481
|
+
* the user submitting their time
|
|
482
|
+
* selection, so we should blur the
|
|
483
|
+
* input (and therefore close the keyboard)
|
|
484
|
+
*
|
|
485
|
+
* Updating the picker's state to no longer
|
|
486
|
+
* be in input mode is handled in the onBlur
|
|
487
|
+
* callback below.
|
|
488
|
+
*/
|
|
489
|
+
if (ev.key === 'Enter') {
|
|
490
|
+
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.blur();
|
|
491
|
+
}
|
|
492
|
+
}, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), h("div", { key: 'c3a20925dae51059cdbce7c3aa78789591de36e9', class: "picker-before" }), h("div", { key: '0a949c776a3c5d83feb7eca32ec85f6e26aab1b8', class: "picker-after" }), h("div", { key: '80e96a86a89bc223faf65badf66a56c971c846aa', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), h("slot", { key: '5110775b45ddf3ad8cce397b910063fdea173409' })));
|
|
188
493
|
}
|
|
189
494
|
static get is() { return "ion-picker"; }
|
|
190
|
-
static get encapsulation() { return "
|
|
495
|
+
static get encapsulation() { return "shadow"; }
|
|
191
496
|
static get originalStyleUrls() {
|
|
192
497
|
return {
|
|
193
498
|
"ios": ["picker.ios.scss"],
|
|
@@ -200,465 +505,28 @@ export class Picker {
|
|
|
200
505
|
"md": ["picker.md.css"]
|
|
201
506
|
};
|
|
202
507
|
}
|
|
203
|
-
static get properties() {
|
|
204
|
-
return {
|
|
205
|
-
"overlayIndex": {
|
|
206
|
-
"type": "number",
|
|
207
|
-
"mutable": false,
|
|
208
|
-
"complexType": {
|
|
209
|
-
"original": "number",
|
|
210
|
-
"resolved": "number",
|
|
211
|
-
"references": {}
|
|
212
|
-
},
|
|
213
|
-
"required": true,
|
|
214
|
-
"optional": false,
|
|
215
|
-
"docs": {
|
|
216
|
-
"tags": [{
|
|
217
|
-
"name": "internal",
|
|
218
|
-
"text": undefined
|
|
219
|
-
}],
|
|
220
|
-
"text": ""
|
|
221
|
-
},
|
|
222
|
-
"attribute": "overlay-index",
|
|
223
|
-
"reflect": false
|
|
224
|
-
},
|
|
225
|
-
"delegate": {
|
|
226
|
-
"type": "unknown",
|
|
227
|
-
"mutable": false,
|
|
228
|
-
"complexType": {
|
|
229
|
-
"original": "FrameworkDelegate",
|
|
230
|
-
"resolved": "FrameworkDelegate | undefined",
|
|
231
|
-
"references": {
|
|
232
|
-
"FrameworkDelegate": {
|
|
233
|
-
"location": "import",
|
|
234
|
-
"path": "../../interface",
|
|
235
|
-
"id": "src/interface.d.ts::FrameworkDelegate"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"required": false,
|
|
240
|
-
"optional": true,
|
|
241
|
-
"docs": {
|
|
242
|
-
"tags": [{
|
|
243
|
-
"name": "internal",
|
|
244
|
-
"text": undefined
|
|
245
|
-
}],
|
|
246
|
-
"text": ""
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
"hasController": {
|
|
250
|
-
"type": "boolean",
|
|
251
|
-
"mutable": false,
|
|
252
|
-
"complexType": {
|
|
253
|
-
"original": "boolean",
|
|
254
|
-
"resolved": "boolean",
|
|
255
|
-
"references": {}
|
|
256
|
-
},
|
|
257
|
-
"required": false,
|
|
258
|
-
"optional": false,
|
|
259
|
-
"docs": {
|
|
260
|
-
"tags": [{
|
|
261
|
-
"name": "internal",
|
|
262
|
-
"text": undefined
|
|
263
|
-
}],
|
|
264
|
-
"text": ""
|
|
265
|
-
},
|
|
266
|
-
"attribute": "has-controller",
|
|
267
|
-
"reflect": false,
|
|
268
|
-
"defaultValue": "false"
|
|
269
|
-
},
|
|
270
|
-
"keyboardClose": {
|
|
271
|
-
"type": "boolean",
|
|
272
|
-
"mutable": false,
|
|
273
|
-
"complexType": {
|
|
274
|
-
"original": "boolean",
|
|
275
|
-
"resolved": "boolean",
|
|
276
|
-
"references": {}
|
|
277
|
-
},
|
|
278
|
-
"required": false,
|
|
279
|
-
"optional": false,
|
|
280
|
-
"docs": {
|
|
281
|
-
"tags": [],
|
|
282
|
-
"text": "If `true`, the keyboard will be automatically dismissed when the overlay is presented."
|
|
283
|
-
},
|
|
284
|
-
"attribute": "keyboard-close",
|
|
285
|
-
"reflect": false,
|
|
286
|
-
"defaultValue": "true"
|
|
287
|
-
},
|
|
288
|
-
"enterAnimation": {
|
|
289
|
-
"type": "unknown",
|
|
290
|
-
"mutable": false,
|
|
291
|
-
"complexType": {
|
|
292
|
-
"original": "AnimationBuilder",
|
|
293
|
-
"resolved": "((baseEl: any, opts?: any) => Animation) | undefined",
|
|
294
|
-
"references": {
|
|
295
|
-
"AnimationBuilder": {
|
|
296
|
-
"location": "import",
|
|
297
|
-
"path": "../../interface",
|
|
298
|
-
"id": "src/interface.d.ts::AnimationBuilder"
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
"required": false,
|
|
303
|
-
"optional": true,
|
|
304
|
-
"docs": {
|
|
305
|
-
"tags": [],
|
|
306
|
-
"text": "Animation to use when the picker is presented."
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"leaveAnimation": {
|
|
310
|
-
"type": "unknown",
|
|
311
|
-
"mutable": false,
|
|
312
|
-
"complexType": {
|
|
313
|
-
"original": "AnimationBuilder",
|
|
314
|
-
"resolved": "((baseEl: any, opts?: any) => Animation) | undefined",
|
|
315
|
-
"references": {
|
|
316
|
-
"AnimationBuilder": {
|
|
317
|
-
"location": "import",
|
|
318
|
-
"path": "../../interface",
|
|
319
|
-
"id": "src/interface.d.ts::AnimationBuilder"
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
"required": false,
|
|
324
|
-
"optional": true,
|
|
325
|
-
"docs": {
|
|
326
|
-
"tags": [],
|
|
327
|
-
"text": "Animation to use when the picker is dismissed."
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
"buttons": {
|
|
331
|
-
"type": "unknown",
|
|
332
|
-
"mutable": false,
|
|
333
|
-
"complexType": {
|
|
334
|
-
"original": "PickerButton[]",
|
|
335
|
-
"resolved": "PickerButton[]",
|
|
336
|
-
"references": {
|
|
337
|
-
"PickerButton": {
|
|
338
|
-
"location": "import",
|
|
339
|
-
"path": "./picker-interface",
|
|
340
|
-
"id": "src/components/picker/picker-interface.ts::PickerButton"
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
"required": false,
|
|
345
|
-
"optional": false,
|
|
346
|
-
"docs": {
|
|
347
|
-
"tags": [],
|
|
348
|
-
"text": "Array of buttons to be displayed at the top of the picker."
|
|
349
|
-
},
|
|
350
|
-
"defaultValue": "[]"
|
|
351
|
-
},
|
|
352
|
-
"columns": {
|
|
353
|
-
"type": "unknown",
|
|
354
|
-
"mutable": false,
|
|
355
|
-
"complexType": {
|
|
356
|
-
"original": "PickerColumn[]",
|
|
357
|
-
"resolved": "PickerColumn[]",
|
|
358
|
-
"references": {
|
|
359
|
-
"PickerColumn": {
|
|
360
|
-
"location": "import",
|
|
361
|
-
"path": "./picker-interface",
|
|
362
|
-
"id": "src/components/picker/picker-interface.ts::PickerColumn"
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"required": false,
|
|
367
|
-
"optional": false,
|
|
368
|
-
"docs": {
|
|
369
|
-
"tags": [],
|
|
370
|
-
"text": "Array of columns to be displayed in the picker."
|
|
371
|
-
},
|
|
372
|
-
"defaultValue": "[]"
|
|
373
|
-
},
|
|
374
|
-
"cssClass": {
|
|
375
|
-
"type": "string",
|
|
376
|
-
"mutable": false,
|
|
377
|
-
"complexType": {
|
|
378
|
-
"original": "string | string[]",
|
|
379
|
-
"resolved": "string | string[] | undefined",
|
|
380
|
-
"references": {}
|
|
381
|
-
},
|
|
382
|
-
"required": false,
|
|
383
|
-
"optional": true,
|
|
384
|
-
"docs": {
|
|
385
|
-
"tags": [],
|
|
386
|
-
"text": "Additional classes to apply for custom CSS. If multiple classes are\nprovided they should be separated by spaces."
|
|
387
|
-
},
|
|
388
|
-
"attribute": "css-class",
|
|
389
|
-
"reflect": false
|
|
390
|
-
},
|
|
391
|
-
"duration": {
|
|
392
|
-
"type": "number",
|
|
393
|
-
"mutable": false,
|
|
394
|
-
"complexType": {
|
|
395
|
-
"original": "number",
|
|
396
|
-
"resolved": "number",
|
|
397
|
-
"references": {}
|
|
398
|
-
},
|
|
399
|
-
"required": false,
|
|
400
|
-
"optional": false,
|
|
401
|
-
"docs": {
|
|
402
|
-
"tags": [],
|
|
403
|
-
"text": "Number of milliseconds to wait before dismissing the picker."
|
|
404
|
-
},
|
|
405
|
-
"attribute": "duration",
|
|
406
|
-
"reflect": false,
|
|
407
|
-
"defaultValue": "0"
|
|
408
|
-
},
|
|
409
|
-
"showBackdrop": {
|
|
410
|
-
"type": "boolean",
|
|
411
|
-
"mutable": false,
|
|
412
|
-
"complexType": {
|
|
413
|
-
"original": "boolean",
|
|
414
|
-
"resolved": "boolean",
|
|
415
|
-
"references": {}
|
|
416
|
-
},
|
|
417
|
-
"required": false,
|
|
418
|
-
"optional": false,
|
|
419
|
-
"docs": {
|
|
420
|
-
"tags": [],
|
|
421
|
-
"text": "If `true`, a backdrop will be displayed behind the picker."
|
|
422
|
-
},
|
|
423
|
-
"attribute": "show-backdrop",
|
|
424
|
-
"reflect": false,
|
|
425
|
-
"defaultValue": "true"
|
|
426
|
-
},
|
|
427
|
-
"backdropDismiss": {
|
|
428
|
-
"type": "boolean",
|
|
429
|
-
"mutable": false,
|
|
430
|
-
"complexType": {
|
|
431
|
-
"original": "boolean",
|
|
432
|
-
"resolved": "boolean",
|
|
433
|
-
"references": {}
|
|
434
|
-
},
|
|
435
|
-
"required": false,
|
|
436
|
-
"optional": false,
|
|
437
|
-
"docs": {
|
|
438
|
-
"tags": [],
|
|
439
|
-
"text": "If `true`, the picker will be dismissed when the backdrop is clicked."
|
|
440
|
-
},
|
|
441
|
-
"attribute": "backdrop-dismiss",
|
|
442
|
-
"reflect": false,
|
|
443
|
-
"defaultValue": "true"
|
|
444
|
-
},
|
|
445
|
-
"animated": {
|
|
446
|
-
"type": "boolean",
|
|
447
|
-
"mutable": false,
|
|
448
|
-
"complexType": {
|
|
449
|
-
"original": "boolean",
|
|
450
|
-
"resolved": "boolean",
|
|
451
|
-
"references": {}
|
|
452
|
-
},
|
|
453
|
-
"required": false,
|
|
454
|
-
"optional": false,
|
|
455
|
-
"docs": {
|
|
456
|
-
"tags": [],
|
|
457
|
-
"text": "If `true`, the picker will animate."
|
|
458
|
-
},
|
|
459
|
-
"attribute": "animated",
|
|
460
|
-
"reflect": false,
|
|
461
|
-
"defaultValue": "true"
|
|
462
|
-
},
|
|
463
|
-
"htmlAttributes": {
|
|
464
|
-
"type": "unknown",
|
|
465
|
-
"mutable": false,
|
|
466
|
-
"complexType": {
|
|
467
|
-
"original": "{ [key: string]: any }",
|
|
468
|
-
"resolved": "undefined | { [key: string]: any; }",
|
|
469
|
-
"references": {}
|
|
470
|
-
},
|
|
471
|
-
"required": false,
|
|
472
|
-
"optional": true,
|
|
473
|
-
"docs": {
|
|
474
|
-
"tags": [],
|
|
475
|
-
"text": "Additional attributes to pass to the picker."
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
"isOpen": {
|
|
479
|
-
"type": "boolean",
|
|
480
|
-
"mutable": false,
|
|
481
|
-
"complexType": {
|
|
482
|
-
"original": "boolean",
|
|
483
|
-
"resolved": "boolean",
|
|
484
|
-
"references": {}
|
|
485
|
-
},
|
|
486
|
-
"required": false,
|
|
487
|
-
"optional": false,
|
|
488
|
-
"docs": {
|
|
489
|
-
"tags": [],
|
|
490
|
-
"text": "If `true`, the picker will open. If `false`, the picker will close.\nUse this if you need finer grained control over presentation, otherwise\njust use the pickerController or the `trigger` property.\nNote: `isOpen` will not automatically be set back to `false` when\nthe picker dismisses. You will need to do that in your code."
|
|
491
|
-
},
|
|
492
|
-
"attribute": "is-open",
|
|
493
|
-
"reflect": false,
|
|
494
|
-
"defaultValue": "false"
|
|
495
|
-
},
|
|
496
|
-
"trigger": {
|
|
497
|
-
"type": "string",
|
|
498
|
-
"mutable": false,
|
|
499
|
-
"complexType": {
|
|
500
|
-
"original": "string | undefined",
|
|
501
|
-
"resolved": "string | undefined",
|
|
502
|
-
"references": {}
|
|
503
|
-
},
|
|
504
|
-
"required": false,
|
|
505
|
-
"optional": false,
|
|
506
|
-
"docs": {
|
|
507
|
-
"tags": [],
|
|
508
|
-
"text": "An ID corresponding to the trigger element that\ncauses the picker to open when clicked."
|
|
509
|
-
},
|
|
510
|
-
"attribute": "trigger",
|
|
511
|
-
"reflect": false
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
static get states() {
|
|
516
|
-
return {
|
|
517
|
-
"presented": {}
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
508
|
static get events() {
|
|
521
509
|
return [{
|
|
522
|
-
"method": "
|
|
523
|
-
"name": "
|
|
524
|
-
"bubbles": true,
|
|
525
|
-
"cancelable": true,
|
|
526
|
-
"composed": true,
|
|
527
|
-
"docs": {
|
|
528
|
-
"tags": [],
|
|
529
|
-
"text": "Emitted after the picker has presented."
|
|
530
|
-
},
|
|
531
|
-
"complexType": {
|
|
532
|
-
"original": "void",
|
|
533
|
-
"resolved": "void",
|
|
534
|
-
"references": {}
|
|
535
|
-
}
|
|
536
|
-
}, {
|
|
537
|
-
"method": "willPresent",
|
|
538
|
-
"name": "ionPickerWillPresent",
|
|
539
|
-
"bubbles": true,
|
|
540
|
-
"cancelable": true,
|
|
541
|
-
"composed": true,
|
|
542
|
-
"docs": {
|
|
543
|
-
"tags": [],
|
|
544
|
-
"text": "Emitted before the picker has presented."
|
|
545
|
-
},
|
|
546
|
-
"complexType": {
|
|
547
|
-
"original": "void",
|
|
548
|
-
"resolved": "void",
|
|
549
|
-
"references": {}
|
|
550
|
-
}
|
|
551
|
-
}, {
|
|
552
|
-
"method": "willDismiss",
|
|
553
|
-
"name": "ionPickerWillDismiss",
|
|
554
|
-
"bubbles": true,
|
|
555
|
-
"cancelable": true,
|
|
556
|
-
"composed": true,
|
|
557
|
-
"docs": {
|
|
558
|
-
"tags": [],
|
|
559
|
-
"text": "Emitted before the picker has dismissed."
|
|
560
|
-
},
|
|
561
|
-
"complexType": {
|
|
562
|
-
"original": "OverlayEventDetail",
|
|
563
|
-
"resolved": "OverlayEventDetail<any>",
|
|
564
|
-
"references": {
|
|
565
|
-
"OverlayEventDetail": {
|
|
566
|
-
"location": "import",
|
|
567
|
-
"path": "../../utils/overlays-interface",
|
|
568
|
-
"id": "src/utils/overlays-interface.ts::OverlayEventDetail"
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}, {
|
|
573
|
-
"method": "didDismiss",
|
|
574
|
-
"name": "ionPickerDidDismiss",
|
|
575
|
-
"bubbles": true,
|
|
576
|
-
"cancelable": true,
|
|
577
|
-
"composed": true,
|
|
578
|
-
"docs": {
|
|
579
|
-
"tags": [],
|
|
580
|
-
"text": "Emitted after the picker has dismissed."
|
|
581
|
-
},
|
|
582
|
-
"complexType": {
|
|
583
|
-
"original": "OverlayEventDetail",
|
|
584
|
-
"resolved": "OverlayEventDetail<any>",
|
|
585
|
-
"references": {
|
|
586
|
-
"OverlayEventDetail": {
|
|
587
|
-
"location": "import",
|
|
588
|
-
"path": "../../utils/overlays-interface",
|
|
589
|
-
"id": "src/utils/overlays-interface.ts::OverlayEventDetail"
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}, {
|
|
594
|
-
"method": "didPresentShorthand",
|
|
595
|
-
"name": "didPresent",
|
|
596
|
-
"bubbles": true,
|
|
597
|
-
"cancelable": true,
|
|
598
|
-
"composed": true,
|
|
599
|
-
"docs": {
|
|
600
|
-
"tags": [],
|
|
601
|
-
"text": "Emitted after the picker has presented.\nShorthand for ionPickerWillDismiss."
|
|
602
|
-
},
|
|
603
|
-
"complexType": {
|
|
604
|
-
"original": "void",
|
|
605
|
-
"resolved": "void",
|
|
606
|
-
"references": {}
|
|
607
|
-
}
|
|
608
|
-
}, {
|
|
609
|
-
"method": "willPresentShorthand",
|
|
610
|
-
"name": "willPresent",
|
|
611
|
-
"bubbles": true,
|
|
612
|
-
"cancelable": true,
|
|
613
|
-
"composed": true,
|
|
614
|
-
"docs": {
|
|
615
|
-
"tags": [],
|
|
616
|
-
"text": "Emitted before the picker has presented.\nShorthand for ionPickerWillPresent."
|
|
617
|
-
},
|
|
618
|
-
"complexType": {
|
|
619
|
-
"original": "void",
|
|
620
|
-
"resolved": "void",
|
|
621
|
-
"references": {}
|
|
622
|
-
}
|
|
623
|
-
}, {
|
|
624
|
-
"method": "willDismissShorthand",
|
|
625
|
-
"name": "willDismiss",
|
|
510
|
+
"method": "ionInputModeChange",
|
|
511
|
+
"name": "ionInputModeChange",
|
|
626
512
|
"bubbles": true,
|
|
627
513
|
"cancelable": true,
|
|
628
514
|
"composed": true,
|
|
629
515
|
"docs": {
|
|
630
|
-
"tags": [
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
"
|
|
635
|
-
"resolved": "OverlayEventDetail<any>",
|
|
636
|
-
"references": {
|
|
637
|
-
"OverlayEventDetail": {
|
|
638
|
-
"location": "import",
|
|
639
|
-
"path": "../../utils/overlays-interface",
|
|
640
|
-
"id": "src/utils/overlays-interface.ts::OverlayEventDetail"
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}, {
|
|
645
|
-
"method": "didDismissShorthand",
|
|
646
|
-
"name": "didDismiss",
|
|
647
|
-
"bubbles": true,
|
|
648
|
-
"cancelable": true,
|
|
649
|
-
"composed": true,
|
|
650
|
-
"docs": {
|
|
651
|
-
"tags": [],
|
|
652
|
-
"text": "Emitted after the picker has dismissed.\nShorthand for ionPickerDidDismiss."
|
|
516
|
+
"tags": [{
|
|
517
|
+
"name": "internal",
|
|
518
|
+
"text": undefined
|
|
519
|
+
}],
|
|
520
|
+
"text": ""
|
|
653
521
|
},
|
|
654
522
|
"complexType": {
|
|
655
|
-
"original": "
|
|
656
|
-
"resolved": "
|
|
523
|
+
"original": "PickerChangeEventDetail",
|
|
524
|
+
"resolved": "PickerChangeEventDetail",
|
|
657
525
|
"references": {
|
|
658
|
-
"
|
|
526
|
+
"PickerChangeEventDetail": {
|
|
659
527
|
"location": "import",
|
|
660
|
-
"path": "
|
|
661
|
-
"id": "src/
|
|
528
|
+
"path": "./picker-interfaces",
|
|
529
|
+
"id": "src/components/picker/picker-interfaces.ts::PickerChangeEventDetail"
|
|
662
530
|
}
|
|
663
531
|
}
|
|
664
532
|
}
|
|
@@ -666,7 +534,7 @@ export class Picker {
|
|
|
666
534
|
}
|
|
667
535
|
static get methods() {
|
|
668
536
|
return {
|
|
669
|
-
"
|
|
537
|
+
"exitInputMode": {
|
|
670
538
|
"complexType": {
|
|
671
539
|
"signature": "() => Promise<void>",
|
|
672
540
|
"parameters": [],
|
|
@@ -679,141 +547,23 @@ export class Picker {
|
|
|
679
547
|
"return": "Promise<void>"
|
|
680
548
|
},
|
|
681
549
|
"docs": {
|
|
682
|
-
"text": "
|
|
683
|
-
"tags": []
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
"dismiss": {
|
|
687
|
-
"complexType": {
|
|
688
|
-
"signature": "(data?: any, role?: string) => Promise<boolean>",
|
|
689
|
-
"parameters": [{
|
|
690
|
-
"name": "data",
|
|
691
|
-
"type": "any",
|
|
692
|
-
"docs": "Any data to emit in the dismiss events."
|
|
693
|
-
}, {
|
|
694
|
-
"name": "role",
|
|
695
|
-
"type": "string | undefined",
|
|
696
|
-
"docs": "The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`."
|
|
697
|
-
}],
|
|
698
|
-
"references": {
|
|
699
|
-
"Promise": {
|
|
700
|
-
"location": "global",
|
|
701
|
-
"id": "global::Promise"
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
"return": "Promise<boolean>"
|
|
705
|
-
},
|
|
706
|
-
"docs": {
|
|
707
|
-
"text": "Dismiss the picker overlay after it has been presented.",
|
|
708
|
-
"tags": [{
|
|
709
|
-
"name": "param",
|
|
710
|
-
"text": "data Any data to emit in the dismiss events."
|
|
711
|
-
}, {
|
|
712
|
-
"name": "param",
|
|
713
|
-
"text": "role The role of the element that is dismissing the picker.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the picker.\nSome examples include: ``\"cancel\"`, `\"destructive\"`, \"selected\"`, and `\"backdrop\"`."
|
|
714
|
-
}]
|
|
715
|
-
}
|
|
716
|
-
},
|
|
717
|
-
"onDidDismiss": {
|
|
718
|
-
"complexType": {
|
|
719
|
-
"signature": "<T = any>() => Promise<OverlayEventDetail<T>>",
|
|
720
|
-
"parameters": [],
|
|
721
|
-
"references": {
|
|
722
|
-
"Promise": {
|
|
723
|
-
"location": "global",
|
|
724
|
-
"id": "global::Promise"
|
|
725
|
-
},
|
|
726
|
-
"OverlayEventDetail": {
|
|
727
|
-
"location": "import",
|
|
728
|
-
"path": "../../utils/overlays-interface",
|
|
729
|
-
"id": "src/utils/overlays-interface.ts::OverlayEventDetail"
|
|
730
|
-
},
|
|
731
|
-
"T": {
|
|
732
|
-
"location": "global",
|
|
733
|
-
"id": "global::T"
|
|
734
|
-
}
|
|
735
|
-
},
|
|
736
|
-
"return": "Promise<OverlayEventDetail<T>>"
|
|
737
|
-
},
|
|
738
|
-
"docs": {
|
|
739
|
-
"text": "Returns a promise that resolves when the picker did dismiss.",
|
|
740
|
-
"tags": []
|
|
741
|
-
}
|
|
742
|
-
},
|
|
743
|
-
"onWillDismiss": {
|
|
744
|
-
"complexType": {
|
|
745
|
-
"signature": "<T = any>() => Promise<OverlayEventDetail<T>>",
|
|
746
|
-
"parameters": [],
|
|
747
|
-
"references": {
|
|
748
|
-
"Promise": {
|
|
749
|
-
"location": "global",
|
|
750
|
-
"id": "global::Promise"
|
|
751
|
-
},
|
|
752
|
-
"OverlayEventDetail": {
|
|
753
|
-
"location": "import",
|
|
754
|
-
"path": "../../utils/overlays-interface",
|
|
755
|
-
"id": "src/utils/overlays-interface.ts::OverlayEventDetail"
|
|
756
|
-
},
|
|
757
|
-
"T": {
|
|
758
|
-
"location": "global",
|
|
759
|
-
"id": "global::T"
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
"return": "Promise<OverlayEventDetail<T>>"
|
|
763
|
-
},
|
|
764
|
-
"docs": {
|
|
765
|
-
"text": "Returns a promise that resolves when the picker will dismiss.",
|
|
766
|
-
"tags": []
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
"getColumn": {
|
|
770
|
-
"complexType": {
|
|
771
|
-
"signature": "(name: string) => Promise<PickerColumn | undefined>",
|
|
772
|
-
"parameters": [{
|
|
773
|
-
"name": "name",
|
|
774
|
-
"type": "string",
|
|
775
|
-
"docs": "The name of the column."
|
|
776
|
-
}],
|
|
777
|
-
"references": {
|
|
778
|
-
"Promise": {
|
|
779
|
-
"location": "global",
|
|
780
|
-
"id": "global::Promise"
|
|
781
|
-
},
|
|
782
|
-
"PickerColumn": {
|
|
783
|
-
"location": "import",
|
|
784
|
-
"path": "./picker-interface",
|
|
785
|
-
"id": "src/components/picker/picker-interface.ts::PickerColumn"
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
"return": "Promise<PickerColumn | undefined>"
|
|
789
|
-
},
|
|
790
|
-
"docs": {
|
|
791
|
-
"text": "Get the column that matches the specified name.",
|
|
550
|
+
"text": "",
|
|
792
551
|
"tags": [{
|
|
793
|
-
"name": "
|
|
794
|
-
"text": "
|
|
552
|
+
"name": "internal",
|
|
553
|
+
"text": "Exits text entry mode for the picker\nThis method blurs the hidden input\nand cause the keyboard to dismiss."
|
|
795
554
|
}]
|
|
796
555
|
}
|
|
797
556
|
}
|
|
798
557
|
};
|
|
799
558
|
}
|
|
800
559
|
static get elementRef() { return "el"; }
|
|
801
|
-
static get
|
|
560
|
+
static get listeners() {
|
|
802
561
|
return [{
|
|
803
|
-
"
|
|
804
|
-
"
|
|
805
|
-
|
|
806
|
-
"
|
|
807
|
-
"
|
|
562
|
+
"name": "touchstart",
|
|
563
|
+
"method": "preventTouchStartPropagation",
|
|
564
|
+
"target": undefined,
|
|
565
|
+
"capture": false,
|
|
566
|
+
"passive": true
|
|
808
567
|
}];
|
|
809
568
|
}
|
|
810
569
|
}
|
|
811
|
-
const buttonWrapperClass = (button) => {
|
|
812
|
-
return {
|
|
813
|
-
[`picker-toolbar-${button.role}`]: button.role !== undefined,
|
|
814
|
-
'picker-toolbar-button': true,
|
|
815
|
-
};
|
|
816
|
-
};
|
|
817
|
-
const buttonClass = (button) => {
|
|
818
|
-
return Object.assign({ 'picker-button': true, 'ion-activatable': true }, getClassMap(button.cssClass));
|
|
819
|
-
};
|