@ionic/core 8.0.1-dev.11713911458.1ad5f4cf → 8.0.1-dev.11714496052.149681e5
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/index2.js +119 -1
- package/components/input-shims.js +5 -5
- package/components/ion-content.js +6 -4
- package/components/ion-datetime-button.js +2 -2
- package/components/ion-datetime.js +15 -13
- package/components/ion-fab-button.js +2 -2
- package/components/ion-fab-list.js +2 -2
- 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-password-toggle.js +3 -3
- package/components/ion-input.js +8 -12
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +10 -8
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +3 -3
- 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 +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- 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 +2 -2
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/ion-toolbar.js +2 -2
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/list.js +1 -1
- package/components/overlays.js +3 -2
- package/components/picker-column-option.js +2 -2
- package/components/picker-column.js +156 -4
- package/components/picker-column2.js +2 -2
- package/components/picker.js +2 -2
- package/components/popover.js +6 -4
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/palettes/dark.always.css +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/dist/cjs/{index-6d6ac424.js → index-be7cf657.js} +124 -6
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{input-shims-9e59ef62.js → input-shims-20d639e6.js} +5 -5
- package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ion-alert.cjs.entry.js +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +16 -15
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +20 -18
- package/dist/cjs/ion-fab_3.cjs.entry.js +6 -6
- 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-password-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ion-input.cjs.entry.js +7 -12
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +12 -12
- package/dist/cjs/ion-loading.cjs.entry.js +3 -3
- package/dist/cjs/ion-menu_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-modal.cjs.entry.js +10 -9
- package/dist/cjs/ion-nav_2.cjs.entry.js +4 -3
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column.cjs.entry.js +154 -4
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +6 -5
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- package/dist/cjs/ion-segment_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-select_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +3 -3
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-d4f0ca4e.js → ios.transition-b0e0575b.js} +3 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-857328f3.js → md.transition-b22b61b7.js} +3 -1
- package/dist/cjs/{overlays-10c452b2.js → overlays-574e681c.js} +3 -1
- package/dist/collection/components/content/content.js +23 -4
- package/dist/collection/components/content/test/content.spec.js +27 -0
- package/dist/collection/components/datetime/datetime.js +15 -13
- package/dist/collection/components/datetime/test/overlay-roles/datetime.e2e.js +34 -0
- package/dist/collection/components/datetime-button/datetime-button.js +2 -2
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab-button/fab-button.js +2 -2
- 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.js +24 -12
- package/dist/collection/components/input/test/input.spec.js +13 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +3 -3
- 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.js +2 -2
- 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/label/label.js +2 -2
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/gestures/sheet.js +3 -2
- package/dist/collection/components/modal/modal.js +25 -6
- package/dist/collection/components/modal/test/basic/modal.spec.js +19 -0
- package/dist/collection/components/nav/nav.js +1 -1
- 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.js +2 -2
- package/dist/collection/components/picker-column/picker-column.css +19 -0
- package/dist/collection/components/picker-column/picker-column.js +158 -3
- package/dist/collection/components/picker-column/test/picker-column.spec.js +83 -0
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +23 -4
- package/dist/collection/components/popover/test/basic/popover.spec.js +19 -0
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- 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.js +2 -2
- 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.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +3 -3
- package/dist/collection/components/select/select.js +2 -2
- 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/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/utils/focus-controller/index.js +112 -0
- package/dist/collection/utils/focus-controller/test/generic/focus-controller.e2e.js +52 -0
- package/dist/collection/utils/focus-controller/test/ionic/focus-controller.e2e.js +52 -0
- package/dist/collection/utils/input-shims/hacks/scroll-assist.js +5 -5
- package/dist/collection/utils/overlays.js +2 -1
- package/dist/collection/utils/transition/index.js +11 -1
- package/dist/docs.json +96 -1
- package/dist/esm/{index-f0d7371a.js → index-c9a90692.js} +121 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/{input-shims-0314bbe5.js → input-shims-4530285e.js} +5 -5
- package/dist/esm/ion-action-sheet.entry.js +1 -1
- package/dist/esm/ion-alert.entry.js +1 -1
- package/dist/esm/ion-app_8.entry.js +16 -15
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +3 -3
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +20 -18
- package/dist/esm/ion-fab_3.entry.js +6 -6
- 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-password-toggle.entry.js +3 -3
- package/dist/esm/ion-input.entry.js +7 -12
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +12 -12
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu_3.entry.js +7 -7
- package/dist/esm/ion-modal.entry.js +10 -9
- package/dist/esm/ion-nav_2.entry.js +4 -3
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-picker-column.entry.js +154 -4
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +6 -5
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +4 -4
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment_2.entry.js +5 -5
- package/dist/esm/ion-select_3.entry.js +5 -5
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-71bfa932.js → ios.transition-0321a527.js} +3 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-86aef3c0.js → md.transition-57a06277.js} +3 -1
- package/dist/esm/{overlays-6fb4a2f2.js → overlays-1eac28e2.js} +3 -2
- package/dist/esm-es5/index-c9a90692.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-4530285e.js +4 -0
- 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-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_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/ios.transition-0321a527.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-57a06277.js +4 -0
- package/dist/esm-es5/{overlays-6fb4a2f2.js → overlays-1eac28e2.js} +1 -1
- package/dist/html.html-data.json +24 -0
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-07584ab4.system.js → p-0cd59e4e.system.js} +1 -1
- package/dist/ionic/{p-50205ef9.system.entry.js → p-0d88f9c2.system.entry.js} +1 -1
- package/dist/ionic/{p-1fe1f512.entry.js → p-1a8d2fe3.entry.js} +1 -1
- package/dist/ionic/{p-3008ca4e.system.entry.js → p-1aff89d0.system.entry.js} +1 -1
- package/dist/ionic/p-1fbe9447.system.js +4 -0
- package/dist/ionic/{p-4a01cec0.entry.js → p-2185597f.entry.js} +1 -1
- package/dist/ionic/{p-7f33a6e2.system.entry.js → p-22d183b4.system.entry.js} +2 -2
- package/dist/ionic/{p-5f15ee76.entry.js → p-255b6f01.entry.js} +1 -1
- package/dist/ionic/p-282cc565.js +4 -0
- package/dist/ionic/{p-4f6ebc2b.entry.js → p-2870db48.entry.js} +1 -1
- package/dist/ionic/{p-cbd87df6.entry.js → p-2b45e94f.entry.js} +1 -1
- package/dist/ionic/{p-cf8101a6.system.entry.js → p-2c1cc9bf.system.entry.js} +1 -1
- package/dist/ionic/p-2e56ebdc.entry.js +4 -0
- package/dist/ionic/p-30a1fb3a.js +4 -0
- package/dist/ionic/{p-e62d4a6c.entry.js → p-30a40a57.entry.js} +1 -1
- package/dist/ionic/{p-98af538a.system.entry.js → p-320f9186.system.entry.js} +2 -2
- package/dist/ionic/p-3328cd28.entry.js +4 -0
- package/dist/ionic/{p-6ef17d86.system.entry.js → p-3339b5ca.system.entry.js} +1 -1
- package/dist/ionic/p-39a3eca2.entry.js +4 -0
- package/dist/ionic/{p-703f62c1.entry.js → p-3af6a819.entry.js} +1 -1
- package/dist/ionic/p-3ebbbd37.js +4 -0
- package/dist/ionic/{p-8a5152e5.entry.js → p-3f7e6661.entry.js} +1 -1
- package/dist/ionic/{p-814efd87.system.entry.js → p-4195e4d0.system.entry.js} +1 -1
- package/dist/ionic/{p-dbc3e90c.entry.js → p-454c2bfe.entry.js} +1 -1
- package/dist/ionic/{p-2690b1de.js → p-46111310.js} +1 -1
- package/dist/ionic/p-46f407f0.system.js +4 -0
- package/dist/ionic/{p-4809ddae.system.entry.js → p-47915d5c.system.entry.js} +1 -1
- package/dist/ionic/{p-5ad55625.entry.js → p-49a47e7c.entry.js} +1 -1
- package/dist/ionic/p-4b078620.entry.js +4 -0
- package/dist/ionic/{p-332aa81e.entry.js → p-4c24ae09.entry.js} +1 -1
- package/dist/ionic/{p-904df2ee.system.entry.js → p-4c3d0457.system.entry.js} +1 -1
- package/dist/ionic/{p-530207f9.entry.js → p-4f1d1637.entry.js} +1 -1
- package/dist/ionic/{p-341b3f37.entry.js → p-4fc2a1ce.entry.js} +1 -1
- package/dist/ionic/{p-53d69c70.system.entry.js → p-5015ef54.system.entry.js} +1 -1
- package/dist/ionic/{p-e8a713b5.entry.js → p-5087e4df.entry.js} +1 -1
- package/dist/ionic/{p-5895b91d.entry.js → p-5408ee96.entry.js} +1 -1
- package/dist/ionic/p-55b9eb6b.system.entry.js +4 -0
- package/dist/ionic/{p-987e38ef.system.entry.js → p-56c470c2.system.entry.js} +1 -1
- package/dist/ionic/{p-5c26fed5.system.entry.js → p-5983ad03.system.entry.js} +1 -1
- package/dist/ionic/p-5a82c7b9.system.entry.js +4 -0
- package/dist/ionic/p-5e074809.system.entry.js +4 -0
- package/dist/ionic/{p-e81c3ca2.system.entry.js → p-676e0f71.system.entry.js} +1 -1
- package/dist/ionic/{p-eac224fa.entry.js → p-70605125.entry.js} +1 -1
- package/dist/ionic/{p-9fd3ca09.system.entry.js → p-70e00e9f.system.entry.js} +1 -1
- package/dist/ionic/{p-1472c130.entry.js → p-71044f08.entry.js} +1 -1
- package/dist/ionic/p-72b181e2.system.entry.js +4 -0
- package/dist/ionic/{p-fa0bf39d.system.entry.js → p-75a6989a.system.entry.js} +1 -1
- package/dist/ionic/p-7a152fab.entry.js +4 -0
- package/dist/ionic/{p-68afa357.system.entry.js → p-7e5972a0.system.entry.js} +2 -2
- package/dist/ionic/p-80270af4.system.entry.js +4 -0
- package/dist/ionic/p-8134b3c4.entry.js +4 -0
- package/dist/ionic/{p-4f77a080.system.entry.js → p-89f2d585.system.entry.js} +1 -1
- package/dist/ionic/{p-6cf780b6.system.entry.js → p-8ffff03f.system.entry.js} +1 -1
- package/dist/ionic/{p-bc3d649d.entry.js → p-9277e3d2.entry.js} +1 -1
- package/dist/ionic/p-944dd52a.system.js +4 -0
- package/dist/ionic/{p-ca5bb110.system.entry.js → p-94d20e10.system.entry.js} +1 -1
- package/dist/ionic/{p-48f60474.entry.js → p-962f482c.entry.js} +1 -1
- package/dist/ionic/p-9832568f.entry.js +4 -0
- package/dist/ionic/{p-f956e38a.entry.js → p-9876ce3b.entry.js} +1 -1
- package/dist/ionic/{p-151e8afd.entry.js → p-9a06b83d.entry.js} +1 -1
- package/dist/ionic/{p-f8f8c5a8.system.entry.js → p-9dbd1f93.system.entry.js} +1 -1
- package/dist/ionic/{p-c54b167f.system.entry.js → p-9e829e8f.system.entry.js} +1 -1
- package/dist/ionic/p-a0351a92.system.js +4 -0
- package/dist/ionic/{p-c927dbe2.system.entry.js → p-a0dd50e4.system.entry.js} +1 -1
- package/dist/ionic/{p-2b86020c.system.entry.js → p-a4ce5696.system.entry.js} +1 -1
- package/dist/ionic/{p-1ba197b6.entry.js → p-a51785b7.entry.js} +1 -1
- package/dist/ionic/{p-e292247e.system.entry.js → p-a6f505f5.system.entry.js} +1 -1
- package/dist/ionic/p-aa2c2a8b.system.entry.js +4 -0
- package/dist/ionic/{p-d061515d.system.entry.js → p-ac058b0e.system.entry.js} +1 -1
- package/dist/ionic/p-ae9ebfd1.entry.js +4 -0
- package/dist/ionic/{p-91b568e2.system.entry.js → p-b0fc315c.system.entry.js} +1 -1
- package/dist/ionic/p-b79b8d53.js +4 -0
- package/dist/ionic/{p-e93cd31c.entry.js → p-b80dfa1b.entry.js} +1 -1
- package/dist/ionic/{p-df0d39c7.system.entry.js → p-b8d966bb.system.entry.js} +2 -2
- package/dist/ionic/{p-90f8498c.entry.js → p-ba8fd3f7.entry.js} +1 -1
- package/dist/ionic/{p-3d977e09.system.entry.js → p-bd62a431.system.entry.js} +2 -2
- package/dist/ionic/{p-70f6b982.entry.js → p-bebb01a5.entry.js} +1 -1
- package/dist/ionic/p-c27aef92.system.js +4 -0
- package/dist/ionic/p-c34a80bd.entry.js +4 -0
- package/dist/ionic/{p-ca6decbd.entry.js → p-cfd91e4b.entry.js} +1 -1
- package/dist/ionic/p-d38c209e.system.entry.js +4 -0
- package/dist/ionic/{p-aa79cc0e.system.entry.js → p-d3a32834.system.entry.js} +2 -2
- package/dist/ionic/{p-275dd0ba.system.entry.js → p-d5559e4d.system.entry.js} +1 -1
- package/dist/ionic/p-d76c8ebd.entry.js +4 -0
- package/dist/ionic/{p-55bc2a11.system.entry.js → p-d833beb7.system.entry.js} +1 -1
- package/dist/ionic/p-d8d6ebc0.system.js +1 -1
- package/dist/ionic/{p-7c93f00b.system.entry.js → p-da29453c.system.entry.js} +1 -1
- package/dist/ionic/{p-e099a6f3.entry.js → p-dffd0e36.entry.js} +1 -1
- package/dist/ionic/{p-1c42ad90.entry.js → p-eb1428cc.entry.js} +1 -1
- package/dist/ionic/{p-e1ad8e76.entry.js → p-f49da44a.entry.js} +1 -1
- package/dist/ionic/p-f5006fa9.system.entry.js +4 -0
- package/dist/ionic/p-fe9a80b7.entry.js +4 -0
- package/dist/types/components/content/content.d.ts +8 -0
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components/modal/modal-interface.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +18 -0
- package/dist/types/components/picker-column/picker-column.d.ts +35 -0
- package/dist/types/components/popover/popover-interface.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +18 -0
- package/dist/types/components.d.ts +32 -0
- package/dist/types/utils/config.d.ts +9 -0
- package/dist/types/utils/focus-controller/index.d.ts +13 -0
- package/dist/types/utils/overlays.d.ts +1 -0
- package/hydrate/index.js +426 -154
- package/package.json +1 -1
- package/dist/esm-es5/index-f0d7371a.js +0 -4
- package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
- package/dist/esm-es5/ios.transition-71bfa932.js +0 -4
- package/dist/esm-es5/md.transition-86aef3c0.js +0 -4
- package/dist/ionic/p-0e713efe.js +0 -4
- package/dist/ionic/p-2613c305.system.js +0 -4
- package/dist/ionic/p-34f26d8b.entry.js +0 -4
- package/dist/ionic/p-38010e7c.system.entry.js +0 -4
- package/dist/ionic/p-4d2b2d23.system.entry.js +0 -4
- package/dist/ionic/p-4de53118.js +0 -4
- package/dist/ionic/p-510cb8e6.system.js +0 -4
- package/dist/ionic/p-582db405.system.entry.js +0 -4
- package/dist/ionic/p-5f28cb75.js +0 -4
- package/dist/ionic/p-7372cf23.system.entry.js +0 -4
- package/dist/ionic/p-84ead641.entry.js +0 -4
- package/dist/ionic/p-91dabef7.system.js +0 -4
- package/dist/ionic/p-9fa5ff32.system.js +0 -4
- package/dist/ionic/p-a28ea4d8.system.entry.js +0 -4
- package/dist/ionic/p-a39a73e3.entry.js +0 -4
- package/dist/ionic/p-a90201f2.js +0 -4
- package/dist/ionic/p-ac045dad.entry.js +0 -4
- package/dist/ionic/p-ba35f07f.entry.js +0 -4
- package/dist/ionic/p-c2762c6a.system.entry.js +0 -4
- package/dist/ionic/p-cc258008.entry.js +0 -4
- package/dist/ionic/p-ce5bf737.system.entry.js +0 -4
- package/dist/ionic/p-cf45a5c7.system.entry.js +0 -4
- package/dist/ionic/p-d277ba16.entry.js +0 -4
- package/dist/ionic/p-dfb78785.system.js +0 -4
- package/dist/ionic/p-e5f99a0d.entry.js +0 -4
- package/dist/ionic/p-e781c893.entry.js +0 -4
- package/dist/ionic/p-ec178f19.entry.js +0 -4
- package/dist/ionic/p-f6fec6a0.entry.js +0 -4
package/components/index2.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
+
import { c as config } from './ionic-global.js';
|
|
4
5
|
import { writeTask, Build } from '@stencil/core/internal/client';
|
|
6
|
+
import { p as printIonWarning } from './index6.js';
|
|
5
7
|
import { r as raf } from './helpers.js';
|
|
6
8
|
|
|
7
9
|
const LIFECYCLE_WILL_ENTER = 'ionViewWillEnter';
|
|
@@ -10,8 +12,117 @@ const LIFECYCLE_WILL_LEAVE = 'ionViewWillLeave';
|
|
|
10
12
|
const LIFECYCLE_DID_LEAVE = 'ionViewDidLeave';
|
|
11
13
|
const LIFECYCLE_WILL_UNLOAD = 'ionViewWillUnload';
|
|
12
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Moves focus to a specified element. Note that we do not remove the tabindex
|
|
17
|
+
* because that can result in an unintentional blur. Non-focusables can't be
|
|
18
|
+
* focused, so the body will get focused again.
|
|
19
|
+
*/
|
|
20
|
+
const moveFocus = (el) => {
|
|
21
|
+
el.tabIndex = -1;
|
|
22
|
+
el.focus();
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Elements that are hidden using `display: none` should not be focused even if
|
|
26
|
+
* they are present in the DOM.
|
|
27
|
+
*/
|
|
28
|
+
const isVisible = (el) => {
|
|
29
|
+
return el.offsetParent !== null;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The focus controller allows us to manage focus within a view so assistive
|
|
33
|
+
* technologies can inform users of changes to the navigation state. Traditional
|
|
34
|
+
* native apps have a way of informing assistive technology about a navigation
|
|
35
|
+
* state change. Mobile browsers have this too, but only when doing a full page
|
|
36
|
+
* load. In a single page app we do not do that, so we need to build this
|
|
37
|
+
* integration ourselves.
|
|
38
|
+
*/
|
|
39
|
+
const createFocusController = () => {
|
|
40
|
+
const saveViewFocus = (referenceEl) => {
|
|
41
|
+
const focusManagerEnabled = config.get('focusManagerPriority', false);
|
|
42
|
+
/**
|
|
43
|
+
* When going back to a previously visited page focus should typically be moved
|
|
44
|
+
* back to the element that was last focused when the user was on this view.
|
|
45
|
+
*/
|
|
46
|
+
if (focusManagerEnabled) {
|
|
47
|
+
const activeEl = document.activeElement;
|
|
48
|
+
if (activeEl !== null && (referenceEl === null || referenceEl === void 0 ? void 0 : referenceEl.contains(activeEl))) {
|
|
49
|
+
activeEl.setAttribute(LAST_FOCUS, 'true');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const setViewFocus = (referenceEl) => {
|
|
54
|
+
const focusManagerPriorities = config.get('focusManagerPriority', false);
|
|
55
|
+
/**
|
|
56
|
+
* If the focused element is a descendant of the referenceEl then it's possible
|
|
57
|
+
* that the app developer manually moved focus, so we do not want to override that.
|
|
58
|
+
* This can happen with inputs the are focused when a view transitions in.
|
|
59
|
+
*/
|
|
60
|
+
if (Array.isArray(focusManagerPriorities) && !referenceEl.contains(document.activeElement)) {
|
|
61
|
+
/**
|
|
62
|
+
* When going back to a previously visited view focus should always be moved back
|
|
63
|
+
* to the element that the user was last focused on when they were on this view.
|
|
64
|
+
*/
|
|
65
|
+
const lastFocus = referenceEl.querySelector(`[${LAST_FOCUS}]`);
|
|
66
|
+
if (lastFocus && isVisible(lastFocus)) {
|
|
67
|
+
moveFocus(lastFocus);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
for (const priority of focusManagerPriorities) {
|
|
71
|
+
/**
|
|
72
|
+
* For each recognized case (excluding the default case) make sure to return
|
|
73
|
+
* so that the fallback focus behavior does not run.
|
|
74
|
+
*
|
|
75
|
+
* We intentionally query for specific roles/semantic elements so that the
|
|
76
|
+
* transition manager can work with both Ionic and non-Ionic UI components.
|
|
77
|
+
*
|
|
78
|
+
* If new selectors are added, be sure to remove the outline ring by adding
|
|
79
|
+
* new selectors to rule in core.scss.
|
|
80
|
+
*/
|
|
81
|
+
switch (priority) {
|
|
82
|
+
case 'content':
|
|
83
|
+
const content = referenceEl.querySelector('main, [role="main"]');
|
|
84
|
+
if (content && isVisible(content)) {
|
|
85
|
+
moveFocus(content);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
case 'heading':
|
|
90
|
+
const headingOne = referenceEl.querySelector('h1, [role="heading"][aria-level="1"]');
|
|
91
|
+
if (headingOne && isVisible(headingOne)) {
|
|
92
|
+
moveFocus(headingOne);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case 'banner':
|
|
97
|
+
const header = referenceEl.querySelector('header, [role="banner"]');
|
|
98
|
+
if (header && isVisible(header)) {
|
|
99
|
+
moveFocus(header);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
default:
|
|
104
|
+
printIonWarning(`Unrecognized focus manager priority value ${priority}`);
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* If there is nothing to focus then focus the page so focus at least moves to
|
|
110
|
+
* the correct view. The browser will then determine where within the page to
|
|
111
|
+
* move focus to.
|
|
112
|
+
*/
|
|
113
|
+
moveFocus(referenceEl);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
return {
|
|
117
|
+
saveViewFocus,
|
|
118
|
+
setViewFocus,
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
const LAST_FOCUS = 'ion-last-focus';
|
|
122
|
+
|
|
13
123
|
const iosTransitionAnimation = () => import('./ios.transition.js');
|
|
14
124
|
const mdTransitionAnimation = () => import('./md.transition.js');
|
|
125
|
+
const focusController = createFocusController();
|
|
15
126
|
// TODO(FW-2832): types
|
|
16
127
|
const transition = (opts) => {
|
|
17
128
|
return new Promise((resolve, reject) => {
|
|
@@ -33,6 +144,7 @@ const transition = (opts) => {
|
|
|
33
144
|
const beforeTransition = (opts) => {
|
|
34
145
|
const enteringEl = opts.enteringEl;
|
|
35
146
|
const leavingEl = opts.leavingEl;
|
|
147
|
+
focusController.saveViewFocus(leavingEl);
|
|
36
148
|
setZIndex(enteringEl, leavingEl, opts.direction);
|
|
37
149
|
if (opts.showGoBack) {
|
|
38
150
|
enteringEl.classList.add('can-go-back');
|
|
@@ -67,6 +179,7 @@ const afterTransition = (opts) => {
|
|
|
67
179
|
leavingEl.classList.remove('ion-page-invisible');
|
|
68
180
|
leavingEl.style.removeProperty('pointer-events');
|
|
69
181
|
}
|
|
182
|
+
focusController.setViewFocus(enteringEl);
|
|
70
183
|
};
|
|
71
184
|
const getAnimationBuilder = async (opts) => {
|
|
72
185
|
if (!opts.leavingEl || !opts.animated || opts.duration === 0) {
|
|
@@ -99,7 +212,12 @@ const animation = async (animationBuilder, opts) => {
|
|
|
99
212
|
const noAnimation = async (opts) => {
|
|
100
213
|
const enteringEl = opts.enteringEl;
|
|
101
214
|
const leavingEl = opts.leavingEl;
|
|
102
|
-
|
|
215
|
+
const focusManagerEnabled = config.get('focusManagerPriority', false);
|
|
216
|
+
/**
|
|
217
|
+
* If the focus manager is enabled then we need to wait for Ionic components to be
|
|
218
|
+
* rendered otherwise the component to focus may not be focused because it is hidden.
|
|
219
|
+
*/
|
|
220
|
+
await waitForReady(opts, focusManagerEnabled);
|
|
103
221
|
fireWillEvents(enteringEl, leavingEl);
|
|
104
222
|
fireDidEvents(enteringEl, leavingEl);
|
|
105
223
|
return {
|
|
@@ -336,7 +336,7 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
336
336
|
const focusOut = () => {
|
|
337
337
|
hasKeyboardBeenPresentedForTextField = false;
|
|
338
338
|
win === null || win === void 0 ? void 0 : win.removeEventListener('ionKeyboardDidShow', keyboardShow);
|
|
339
|
-
componentEl.removeEventListener('focusout', focusOut);
|
|
339
|
+
componentEl.removeEventListener('focusout', focusOut, true);
|
|
340
340
|
};
|
|
341
341
|
/**
|
|
342
342
|
* When the input is about to receive
|
|
@@ -356,13 +356,13 @@ const enableScrollAssist = (componentEl, inputEl, contentEl, footerEl, keyboardH
|
|
|
356
356
|
}
|
|
357
357
|
jsSetFocus(componentEl, inputEl, contentEl, footerEl, keyboardHeight, addScrollPadding, disableClonedInput, platformHeight);
|
|
358
358
|
win === null || win === void 0 ? void 0 : win.addEventListener('ionKeyboardDidShow', keyboardShow);
|
|
359
|
-
componentEl.addEventListener('focusout', focusOut);
|
|
359
|
+
componentEl.addEventListener('focusout', focusOut, true);
|
|
360
360
|
};
|
|
361
|
-
componentEl.addEventListener('focusin', focusIn);
|
|
361
|
+
componentEl.addEventListener('focusin', focusIn, true);
|
|
362
362
|
return () => {
|
|
363
|
-
componentEl.removeEventListener('focusin', focusIn);
|
|
363
|
+
componentEl.removeEventListener('focusin', focusIn, true);
|
|
364
364
|
win === null || win === void 0 ? void 0 : win.removeEventListener('ionKeyboardDidShow', keyboardShow);
|
|
365
|
-
componentEl.removeEventListener('focusout', focusOut);
|
|
365
|
+
componentEl.removeEventListener('focusout', focusOut, true);
|
|
366
366
|
};
|
|
367
367
|
};
|
|
368
368
|
/**
|
|
@@ -50,6 +50,7 @@ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLEleme
|
|
|
50
50
|
};
|
|
51
51
|
this.color = undefined;
|
|
52
52
|
this.fullscreen = false;
|
|
53
|
+
this.fixedSlotPlacement = 'after';
|
|
53
54
|
this.forceOverscroll = undefined;
|
|
54
55
|
this.scrollX = false;
|
|
55
56
|
this.scrollY = true;
|
|
@@ -331,13 +332,13 @@ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLEleme
|
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
334
|
render() {
|
|
334
|
-
const { isMainContent, scrollX, scrollY, el } = this;
|
|
335
|
+
const { fixedSlotPlacement, isMainContent, scrollX, scrollY, el } = this;
|
|
335
336
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
336
337
|
const mode = getIonMode(this);
|
|
337
338
|
const forceOverscroll = this.shouldForceOverscroll();
|
|
338
339
|
const transitionShadow = mode === 'ios';
|
|
339
340
|
this.resize();
|
|
340
|
-
return (h(Host, { key: '
|
|
341
|
+
return (h(Host, { key: 'f599a7da14969df38c20a6f650179d2a319fb58b', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
|
|
341
342
|
[mode]: true,
|
|
342
343
|
'content-sizing': hostContext('ion-popover', this.el),
|
|
343
344
|
overscroll: forceOverscroll,
|
|
@@ -345,18 +346,19 @@ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLEleme
|
|
|
345
346
|
}), style: {
|
|
346
347
|
'--offset-top': `${this.cTop}px`,
|
|
347
348
|
'--offset-bottom': `${this.cBottom}px`,
|
|
348
|
-
} }, h("div", { key: '
|
|
349
|
+
} }, h("div", { key: '7c545c3c95ea05abd036d0462936ac153d2a8fc6', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), fixedSlotPlacement === 'before' ? h("slot", { name: "fixed" }) : null, h("div", { key: 'a67ab7438466c99f74b7ba59964802c3ba86ac5b', class: {
|
|
349
350
|
'inner-scroll': true,
|
|
350
351
|
'scroll-x': scrollX,
|
|
351
352
|
'scroll-y': scrollY,
|
|
352
353
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
353
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '
|
|
354
|
+
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '6d10fcac2e40b4dd6c20d91a8957ac07251d2fa7' })), transitionShadow ? (h("div", { class: "transition-effect" }, h("div", { class: "transition-cover" }), h("div", { class: "transition-shadow" }))) : null, fixedSlotPlacement === 'after' ? h("slot", { name: "fixed" }) : null));
|
|
354
355
|
}
|
|
355
356
|
get el() { return this; }
|
|
356
357
|
static get style() { return IonContentStyle0; }
|
|
357
358
|
}, [1, "ion-content", {
|
|
358
359
|
"color": [513],
|
|
359
360
|
"fullscreen": [4],
|
|
361
|
+
"fixedSlotPlacement": [1, "fixed-slot-placement"],
|
|
360
362
|
"forceOverscroll": [1028, "force-overscroll"],
|
|
361
363
|
"scrollX": [4, "scroll-x"],
|
|
362
364
|
"scrollY": [4, "scroll-y"],
|
|
@@ -337,11 +337,11 @@ const DatetimeButton = /*@__PURE__*/ proxyCustomElement(class DatetimeButton ext
|
|
|
337
337
|
render() {
|
|
338
338
|
const { color, dateText, timeText, selectedButton, datetimeActive, disabled } = this;
|
|
339
339
|
const mode = getIonMode(this);
|
|
340
|
-
return (h(Host, { key: '
|
|
340
|
+
return (h(Host, { key: '0be955404133adbb31ae16a6599014bb29765f19', class: createColorClasses(color, {
|
|
341
341
|
[mode]: true,
|
|
342
342
|
[`${selectedButton}-active`]: datetimeActive,
|
|
343
343
|
['datetime-button-disabled']: disabled,
|
|
344
|
-
}) }, dateText && (h("button", { key: '
|
|
344
|
+
}) }, dateText && (h("button", { key: '812dcb50b17768cc13a5cfa0bcce8b113cee0f09', class: "ion-activatable", id: "date-button", "aria-expanded": datetimeActive ? 'true' : 'false', onClick: this.handleDateClick, disabled: disabled, part: "native", ref: (el) => (this.dateTargetEl = el) }, h("slot", { key: '46930c740a32a78502df9e651f9bd5914d6a9fea', name: "date-target" }, dateText), mode === 'md' && h("ion-ripple-effect", { key: '0602999cc8435dc37aa22da7f5531bc8cb71e1b4' }))), timeText && (h("button", { key: 'ecdd21da5181ecbdce03209f9f6673b7dcbc1f78', class: "ion-activatable", id: "time-button", "aria-expanded": datetimeActive ? 'true' : 'false', onClick: this.handleTimeClick, disabled: disabled, part: "native", ref: (el) => (this.timeTargetEl = el) }, h("slot", { key: 'b5b093b5166d12d11e27360788edaac916d44390', name: "time-target" }, timeText), mode === 'md' && h("ion-ripple-effect", { key: '70bb3a04f4748d13233eeb257503968dbd1161a9' })))));
|
|
345
345
|
}
|
|
346
346
|
get el() { return this; }
|
|
347
347
|
static get style() { return {
|
|
@@ -289,10 +289,10 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
289
289
|
const { activeParts } = this;
|
|
290
290
|
return Array.isArray(activeParts) ? activeParts[0] : activeParts;
|
|
291
291
|
};
|
|
292
|
-
this.closeParentOverlay = () => {
|
|
292
|
+
this.closeParentOverlay = (role) => {
|
|
293
293
|
const popoverOrModal = this.el.closest('ion-modal, ion-popover');
|
|
294
294
|
if (popoverOrModal) {
|
|
295
|
-
popoverOrModal.dismiss();
|
|
295
|
+
popoverOrModal.dismiss(undefined, role);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
this.setWorkingParts = (parts) => {
|
|
@@ -962,7 +962,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
if (closeOverlay) {
|
|
965
|
-
this.closeParentOverlay();
|
|
965
|
+
this.closeParentOverlay(CONFIRM_ROLE);
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
/**
|
|
@@ -982,7 +982,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
982
982
|
async cancel(closeOverlay = false) {
|
|
983
983
|
this.ionCancel.emit();
|
|
984
984
|
if (closeOverlay) {
|
|
985
|
-
this.closeParentOverlay();
|
|
985
|
+
this.closeParentOverlay(CANCEL_ROLE);
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
get isCalendarPicker() {
|
|
@@ -1294,7 +1294,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1294
1294
|
const todayString = workingParts.day !== null
|
|
1295
1295
|
? `${workingParts.year}-${workingParts.month}-${workingParts.day}`
|
|
1296
1296
|
: `${defaultParts.year}-${defaultParts.month}-${defaultParts.day}`;
|
|
1297
|
-
return (h("ion-picker-column", { class: "date-column", color: this.color, disabled: disabled, value: todayString, onIonChange: (ev) => {
|
|
1297
|
+
return (h("ion-picker-column", { "aria-label": "Select a date", class: "date-column", color: this.color, disabled: disabled, value: todayString, onIonChange: (ev) => {
|
|
1298
1298
|
const { value } = ev.detail;
|
|
1299
1299
|
const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`);
|
|
1300
1300
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), findPart));
|
|
@@ -1369,7 +1369,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1369
1369
|
const { disabled, workingParts } = this;
|
|
1370
1370
|
const activePart = this.getActivePartsWithFallback();
|
|
1371
1371
|
const pickerColumnValue = (_a = (workingParts.day !== null ? workingParts.day : this.defaultParts.day)) !== null && _a !== void 0 ? _a : undefined;
|
|
1372
|
-
return (h("ion-picker-column", { class: "day-column", color: this.color, disabled: disabled, value: pickerColumnValue, onIonChange: (ev) => {
|
|
1372
|
+
return (h("ion-picker-column", { "aria-label": "Select a day", class: "day-column", color: this.color, disabled: disabled, value: pickerColumnValue, onIonChange: (ev) => {
|
|
1373
1373
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { day: ev.detail.value }));
|
|
1374
1374
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { day: ev.detail.value }));
|
|
1375
1375
|
ev.stopPropagation();
|
|
@@ -1381,7 +1381,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1381
1381
|
}
|
|
1382
1382
|
const { disabled, workingParts } = this;
|
|
1383
1383
|
const activePart = this.getActivePartsWithFallback();
|
|
1384
|
-
return (h("ion-picker-column", { class: "month-column", color: this.color, disabled: disabled, value: workingParts.month, onIonChange: (ev) => {
|
|
1384
|
+
return (h("ion-picker-column", { "aria-label": "Select a month", class: "month-column", color: this.color, disabled: disabled, value: workingParts.month, onIonChange: (ev) => {
|
|
1385
1385
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { month: ev.detail.value }));
|
|
1386
1386
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { month: ev.detail.value }));
|
|
1387
1387
|
ev.stopPropagation();
|
|
@@ -1393,7 +1393,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1393
1393
|
}
|
|
1394
1394
|
const { disabled, workingParts } = this;
|
|
1395
1395
|
const activePart = this.getActivePartsWithFallback();
|
|
1396
|
-
return (h("ion-picker-column", { class: "year-column", color: this.color, disabled: disabled, value: workingParts.year, onIonChange: (ev) => {
|
|
1396
|
+
return (h("ion-picker-column", { "aria-label": "Select a year", class: "year-column", color: this.color, disabled: disabled, value: workingParts.year, onIonChange: (ev) => {
|
|
1397
1397
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { year: ev.detail.value }));
|
|
1398
1398
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { year: ev.detail.value }));
|
|
1399
1399
|
ev.stopPropagation();
|
|
@@ -1426,7 +1426,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1426
1426
|
if (hoursData.length === 0)
|
|
1427
1427
|
return [];
|
|
1428
1428
|
const activePart = this.getActivePartsWithFallback();
|
|
1429
|
-
return (h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
|
|
1429
|
+
return (h("ion-picker-column", { "aria-label": "Select an hour", color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
|
|
1430
1430
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
|
|
1431
1431
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { hour: ev.detail.value }));
|
|
1432
1432
|
ev.stopPropagation();
|
|
@@ -1437,7 +1437,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1437
1437
|
if (minutesData.length === 0)
|
|
1438
1438
|
return [];
|
|
1439
1439
|
const activePart = this.getActivePartsWithFallback();
|
|
1440
|
-
return (h("ion-picker-column", { color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
|
|
1440
|
+
return (h("ion-picker-column", { "aria-label": "Select a minute", color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
|
|
1441
1441
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
|
|
1442
1442
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { minute: ev.detail.value }));
|
|
1443
1443
|
ev.stopPropagation();
|
|
@@ -1450,7 +1450,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1450
1450
|
}
|
|
1451
1451
|
const activePart = this.getActivePartsWithFallback();
|
|
1452
1452
|
const isDayPeriodRTL = isLocaleDayPeriodRTL(this.locale);
|
|
1453
|
-
return (h("ion-picker-column", { style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
|
|
1453
|
+
return (h("ion-picker-column", { "aria-label": "Select a day period", style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
|
|
1454
1454
|
const hour = calculateHourFromAMPM(workingParts, ev.detail.value);
|
|
1455
1455
|
this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
|
|
1456
1456
|
this.setActiveParts(Object.assign(Object.assign({}, activePart), { ampm: ev.detail.value, hour }));
|
|
@@ -1760,7 +1760,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1760
1760
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1761
1761
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1762
1762
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
1763
|
-
return (h(Host, { key: '
|
|
1763
|
+
return (h(Host, { key: '4e247382419e963381c8dcde52ba5aaaae0e6cee', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
|
|
1764
1764
|
[mode]: true,
|
|
1765
1765
|
['datetime-readonly']: readonly,
|
|
1766
1766
|
['datetime-disabled']: disabled,
|
|
@@ -1770,7 +1770,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1770
1770
|
[`datetime-size-${size}`]: true,
|
|
1771
1771
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1772
1772
|
[`datetime-grid`]: isGridStyle,
|
|
1773
|
-
})) }, h("div", { key: '
|
|
1773
|
+
})) }, h("div", { key: '27bc39dd318bab9dc4078eedc4fc1b4842f145e6', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
1774
1774
|
}
|
|
1775
1775
|
get el() { return this; }
|
|
1776
1776
|
static get watchers() { return {
|
|
@@ -1843,6 +1843,8 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1843
1843
|
"value": ["valueChanged"]
|
|
1844
1844
|
}]);
|
|
1845
1845
|
let datetimeIds = 0;
|
|
1846
|
+
const CANCEL_ROLE = 'datetime-cancel';
|
|
1847
|
+
const CONFIRM_ROLE = 'datetime-confirm';
|
|
1846
1848
|
const WHEEL_ITEM_PART = 'wheel-item';
|
|
1847
1849
|
const WHEEL_ITEM_ACTIVE_PART = `active`;
|
|
1848
1850
|
function defineCustomElement$1() {
|
|
@@ -71,7 +71,7 @@ const FabButton = /*@__PURE__*/ proxyCustomElement(class FabButton extends HTMLE
|
|
|
71
71
|
rel: this.rel,
|
|
72
72
|
target: this.target,
|
|
73
73
|
};
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: 'eb347f7d6749c40637540d84778eb8d1b667a947', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
75
75
|
[mode]: true,
|
|
76
76
|
'fab-button-in-list': inList,
|
|
77
77
|
'fab-button-translucent-in-list': inList && translucent,
|
|
@@ -82,7 +82,7 @@ const FabButton = /*@__PURE__*/ proxyCustomElement(class FabButton extends HTMLE
|
|
|
82
82
|
'ion-activatable': true,
|
|
83
83
|
'ion-focusable': true,
|
|
84
84
|
[`fab-button-${size}`]: size !== undefined,
|
|
85
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
85
|
+
}) }, h(TagType, Object.assign({ key: '83e853c8815f41543c848eb2e05ec2bb1716110a' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => openURL(href, ev, this.routerDirection, this.routerAnimation) }, inheritedAttributes), h("ion-icon", { key: '798deede94de658e4345acf7c2aafe2ab2567b0b', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: '99252fde6de1aca73fc240a6da7e29acac9acb18', class: "button-inner" }, h("slot", { key: 'dc73e9b41bf1f0e385e5784f975dfb81e37c8dfb' })), mode === 'md' && h("ion-ripple-effect", { key: '8413e162f44a0350f54dff06cff7aad101de3549' }))));
|
|
86
86
|
}
|
|
87
87
|
get el() { return this; }
|
|
88
88
|
static get style() { return {
|
|
@@ -25,11 +25,11 @@ const FabList = /*@__PURE__*/ proxyCustomElement(class FabList extends HTMLEleme
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const mode = getIonMode(this);
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'fa1d195b9950654ba0e984bf61d981c977d05275', class: {
|
|
29
29
|
[mode]: true,
|
|
30
30
|
'fab-list-active': this.activated,
|
|
31
31
|
[`fab-list-side-${this.side}`]: true,
|
|
32
|
-
} }, h("slot", { key: '
|
|
32
|
+
} }, h("slot", { key: '2ec738c66c05112e1e2521155d6adfc36d2fd1db' })));
|
|
33
33
|
}
|
|
34
34
|
get el() { return this; }
|
|
35
35
|
static get watchers() { return {
|
package/components/ion-fab.js
CHANGED
|
@@ -54,12 +54,12 @@ const Fab = /*@__PURE__*/ proxyCustomElement(class Fab extends HTMLElement {
|
|
|
54
54
|
render() {
|
|
55
55
|
const { horizontal, vertical, edge } = this;
|
|
56
56
|
const mode = getIonMode(this);
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: 'cb44cf6486b0a6439b99da87c065b0b52e2514f4', class: {
|
|
58
58
|
[mode]: true,
|
|
59
59
|
[`fab-horizontal-${horizontal}`]: horizontal !== undefined,
|
|
60
60
|
[`fab-vertical-${vertical}`]: vertical !== undefined,
|
|
61
61
|
'fab-edge': edge,
|
|
62
|
-
} }, h("slot", { key: '
|
|
62
|
+
} }, h("slot", { key: '1ed484c7ecb10cd81fbca9a4f5c4049bf82f9f8a' })));
|
|
63
63
|
}
|
|
64
64
|
get el() { return this; }
|
|
65
65
|
static get watchers() { return {
|
package/components/ion-footer.js
CHANGED
|
@@ -115,7 +115,7 @@ const Footer = /*@__PURE__*/ proxyCustomElement(class Footer extends HTMLElement
|
|
|
115
115
|
const mode = getIonMode(this);
|
|
116
116
|
const tabs = this.el.closest('ion-tabs');
|
|
117
117
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: '5da19dc38ba73e1ddfd1bef3ebd485105d77c751', role: "contentinfo", class: {
|
|
119
119
|
[mode]: true,
|
|
120
120
|
// Used internally for styling
|
|
121
121
|
[`footer-${mode}`]: true,
|
|
@@ -123,7 +123,7 @@ const Footer = /*@__PURE__*/ proxyCustomElement(class Footer extends HTMLElement
|
|
|
123
123
|
[`footer-translucent-${mode}`]: translucent,
|
|
124
124
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
125
125
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
126
|
-
} }, mode === 'ios' && translucent && h("div", { key: '
|
|
126
|
+
} }, mode === 'ios' && translucent && h("div", { key: 'fafad08090a33d8c4e8a5b63d61929dcb89aab47', class: "footer-background" }), h("slot", { key: 'e0a443d346afa55e4317c0bc1263fdbe3c619559' })));
|
|
127
127
|
}
|
|
128
128
|
get el() { return this; }
|
|
129
129
|
static get style() { return {
|
package/components/ion-grid.js
CHANGED
|
@@ -16,10 +16,10 @@ const Grid = /*@__PURE__*/ proxyCustomElement(class Grid extends HTMLElement {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const mode = getIonMode(this);
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '930ce78b02f8360fbca08a35d364d2c09128c6c8', class: {
|
|
20
20
|
[mode]: true,
|
|
21
21
|
'grid-fixed': this.fixed,
|
|
22
|
-
} }, h("slot", { key: '
|
|
22
|
+
} }, h("slot", { key: 'c47bf7ef2197f5ebc42d3e2c55044276fb0db393' })));
|
|
23
23
|
}
|
|
24
24
|
static get style() { return IonGridStyle0; }
|
|
25
25
|
}, [1, "ion-grid", {
|
package/components/ion-header.js
CHANGED
|
@@ -321,14 +321,14 @@ const Header = /*@__PURE__*/ proxyCustomElement(class Header extends HTMLElement
|
|
|
321
321
|
const collapse = this.collapse || 'none';
|
|
322
322
|
// banner role must be at top level, so remove role if inside a menu
|
|
323
323
|
const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
|
|
324
|
-
return (h(Host, Object.assign({ key: '
|
|
324
|
+
return (h(Host, Object.assign({ key: 'c687314ef290793a9d633ad20cfc5eeb47621e31', role: roleType, class: {
|
|
325
325
|
[mode]: true,
|
|
326
326
|
// Used internally for styling
|
|
327
327
|
[`header-${mode}`]: true,
|
|
328
328
|
[`header-translucent`]: this.translucent,
|
|
329
329
|
[`header-collapse-${collapse}`]: true,
|
|
330
330
|
[`header-translucent-${mode}`]: this.translucent,
|
|
331
|
-
} }, inheritedAttributes), mode === 'ios' && translucent && h("div", { key: '
|
|
331
|
+
} }, inheritedAttributes), mode === 'ios' && translucent && h("div", { key: 'b429996046082405a91e7c23f95516db0b736f12', class: "header-background" }), h("slot", { key: 'e17a8965f8d3a33c1bfcb056c153d8242e5229fa' })));
|
|
332
332
|
}
|
|
333
333
|
get el() { return this; }
|
|
334
334
|
static get style() { return {
|
package/components/ion-img.js
CHANGED
|
@@ -78,7 +78,7 @@ const Img = /*@__PURE__*/ proxyCustomElement(class Img extends HTMLElement {
|
|
|
78
78
|
render() {
|
|
79
79
|
const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;
|
|
80
80
|
const { draggable } = inheritedAttributes;
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '14d24d65ec8e5522192ca58035264971b1ab883b', class: getIonMode(this) }, h("img", { key: '345ba155a5fdce5e66c397a599b7333d37d9cb1d', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
|
|
82
82
|
}
|
|
83
83
|
get el() { return this; }
|
|
84
84
|
static get watchers() { return {
|
|
@@ -35,11 +35,11 @@ const InfiniteScrollContent = /*@__PURE__*/ proxyCustomElement(class InfiniteScr
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const mode = getIonMode(this);
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '060278bf9cb0321e182352f9613be4ebbb028259', class: {
|
|
39
39
|
[mode]: true,
|
|
40
40
|
// Used internally for styling
|
|
41
41
|
[`infinite-scroll-content-${mode}`]: true,
|
|
42
|
-
} }, h("div", { key: '
|
|
42
|
+
} }, h("div", { key: '07d3cada920145f979ad315bd187fb878e0c3da3', class: "infinite-loading" }, this.loadingSpinner && (h("div", { key: '6254f175d7543d09f3dd47cd0589a2809182cd8c', class: "infinite-loading-spinner" }, h("ion-spinner", { key: 'a6a816d1c65b60b786333b209b63492aa716a283', name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
|
|
43
43
|
}
|
|
44
44
|
static get style() { return {
|
|
45
45
|
ios: IonInfiniteScrollContentIosStyle0,
|
|
@@ -174,7 +174,7 @@ const InfiniteScroll = /*@__PURE__*/ proxyCustomElement(class InfiniteScroll ext
|
|
|
174
174
|
render() {
|
|
175
175
|
const mode = getIonMode(this);
|
|
176
176
|
const disabled = this.disabled;
|
|
177
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: '1444429a86950c449953cbf578436cc8cabf40ec', class: {
|
|
178
178
|
[mode]: true,
|
|
179
179
|
'infinite-scroll-loading': this.isLoading,
|
|
180
180
|
'infinite-scroll-enabled': !disabled,
|
|
@@ -70,16 +70,16 @@ const InputPasswordToggle = /*@__PURE__*/ proxyCustomElement(class InputPassword
|
|
|
70
70
|
const showPasswordIcon = (_a = this.showIcon) !== null && _a !== void 0 ? _a : eye;
|
|
71
71
|
const hidePasswordIcon = (_b = this.hideIcon) !== null && _b !== void 0 ? _b : eyeOff;
|
|
72
72
|
const isPasswordVisible = type === 'text';
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: 'ed1c29726ce0c91548f0e2ada61e3f8b5c813d2d', class: createColorClasses(color, {
|
|
74
74
|
[mode]: true,
|
|
75
|
-
}) }, h("ion-button", { key: '
|
|
75
|
+
}) }, h("ion-button", { key: '9698eccdaedb86cf12d20acc53660371b3af3c55', mode: mode, color: color, fill: "clear", shape: "round", "aria-checked": isPasswordVisible ? 'true' : 'false', "aria-label": "show password", role: "switch", type: "button", onPointerDown: (ev) => {
|
|
76
76
|
/**
|
|
77
77
|
* This prevents mobile browsers from
|
|
78
78
|
* blurring the input when the password toggle
|
|
79
79
|
* button is activated.
|
|
80
80
|
*/
|
|
81
81
|
ev.preventDefault();
|
|
82
|
-
}, onClick: this.togglePasswordVisibility }, h("ion-icon", { key: '
|
|
82
|
+
}, onClick: this.togglePasswordVisibility }, h("ion-icon", { key: '1f2119c30b56c800d9af44e6499445a0ebb466cf', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? hidePasswordIcon : showPasswordIcon }))));
|
|
83
83
|
}
|
|
84
84
|
get el() { return this; }
|
|
85
85
|
static get watchers() { return {
|
package/components/ion-input.js
CHANGED
|
@@ -87,6 +87,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
87
87
|
this.autocorrect = 'off';
|
|
88
88
|
this.autofocus = false;
|
|
89
89
|
this.clearInput = false;
|
|
90
|
+
this.clearInputIcon = undefined;
|
|
90
91
|
this.clearOnEdit = undefined;
|
|
91
92
|
this.counter = false;
|
|
92
93
|
this.counterFormatter = undefined;
|
|
@@ -377,11 +378,13 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
377
378
|
return this.renderLabel();
|
|
378
379
|
}
|
|
379
380
|
render() {
|
|
380
|
-
const { disabled, fill, readonly, shape, inputId, labelPlacement, el, hasFocus } = this;
|
|
381
|
+
const { disabled, fill, readonly, shape, inputId, labelPlacement, el, hasFocus, clearInputIcon } = this;
|
|
381
382
|
const mode = getIonMode(this);
|
|
382
383
|
const value = this.getValue();
|
|
383
384
|
const inItem = hostContext('ion-item', this.el);
|
|
384
385
|
const shouldRenderHighlight = mode === 'md' && fill !== 'outline' && !inItem;
|
|
386
|
+
const defaultClearIcon = mode === 'ios' ? closeCircle : closeSharp;
|
|
387
|
+
const clearIconData = clearInputIcon !== null && clearInputIcon !== void 0 ? clearInputIcon : defaultClearIcon;
|
|
385
388
|
const hasValue = this.hasValue();
|
|
386
389
|
const hasStartEndSlots = el.querySelector('[slot="start"], [slot="end"]') !== null;
|
|
387
390
|
/**
|
|
@@ -402,7 +405,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
402
405
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
403
406
|
*/
|
|
404
407
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
405
|
-
return (h(Host, { key: '
|
|
408
|
+
return (h(Host, { key: '72705dc05d44da17c617402c2d236a7b58b314f4', class: createColorClasses(this.color, {
|
|
406
409
|
[mode]: true,
|
|
407
410
|
'has-value': hasValue,
|
|
408
411
|
'has-focus': hasFocus,
|
|
@@ -413,22 +416,14 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
413
416
|
'in-item': inItem,
|
|
414
417
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
415
418
|
'input-disabled': disabled,
|
|
416
|
-
}) }, h("label", { key: '
|
|
419
|
+
}) }, h("label", { key: 'f8c3f6da165b1299f0a6ceb5f4801e4d11eef832', class: "input-wrapper", htmlFor: inputId }, this.renderLabelContainer(), h("div", { key: 'a9232033f23a51ec542bf23e7691966eefdf30c1', class: "native-wrapper" }, h("slot", { key: 'c38d8d6a4bbb64d5416a2f5948055610278c4527', name: "start" }), h("input", Object.assign({ key: 'bb00038edf66e9617439b5b12600f38a9ba06dc6', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.clearInput && !readonly && !disabled && (h("button", { key: '8aa7bdac43a74bc16c7163b5af8dff6d5b37ce0a', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
417
420
|
/**
|
|
418
421
|
* This prevents mobile browsers from
|
|
419
422
|
* blurring the input when the clear
|
|
420
423
|
* button is activated.
|
|
421
424
|
*/
|
|
422
425
|
ev.preventDefault();
|
|
423
|
-
},
|
|
424
|
-
/**
|
|
425
|
-
* Prevent the focusin event from bubbling otherwise it will cause the focusin
|
|
426
|
-
* event listener in scroll assist to fire. When this fires, focus will be moved
|
|
427
|
-
* back to the input even if the clear button was never tapped. This poses issues
|
|
428
|
-
* for screen readers as it means users would be unable to swipe past the clear button.
|
|
429
|
-
*/
|
|
430
|
-
ev.stopPropagation();
|
|
431
|
-
}, onClick: this.clearTextInput }, h("ion-icon", { key: '8284ba60924a42fd6d352d23441524f8a027e0ce', "aria-hidden": "true", icon: mode === 'ios' ? closeCircle : closeSharp }))), h("slot", { key: '8f3c04ecc32cb04a06ebb916b79071414b2a5263', name: "end" })), shouldRenderHighlight && h("div", { key: '7e97782b292fd140b3fe7f13de05dfafb4b0fa28', class: "input-highlight" })), this.renderBottomContent()));
|
|
426
|
+
}, onClick: this.clearTextInput }, h("ion-icon", { key: '200261c73f9610ef80609605ef2bc7b0affaf857', "aria-hidden": "true", icon: clearIconData }))), h("slot", { key: '5f4511c2f332c906d1d24dfce77e8758e3869d1f', name: "end" })), shouldRenderHighlight && h("div", { key: '092a55c60b3ca1aaa4cc0ddd782b3ffc7cbc03fa', class: "input-highlight" })), this.renderBottomContent()));
|
|
432
427
|
}
|
|
433
428
|
get el() { return this; }
|
|
434
429
|
static get watchers() { return {
|
|
@@ -447,6 +442,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
447
442
|
"autocorrect": [1],
|
|
448
443
|
"autofocus": [4],
|
|
449
444
|
"clearInput": [4, "clear-input"],
|
|
445
|
+
"clearInputIcon": [1, "clear-input-icon"],
|
|
450
446
|
"clearOnEdit": [4, "clear-on-edit"],
|
|
451
447
|
"counter": [4],
|
|
452
448
|
"counterFormatter": [16],
|
|
@@ -21,11 +21,11 @@ const ItemDivider = /*@__PURE__*/ proxyCustomElement(class ItemDivider extends H
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
const mode = getIonMode(this);
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '60fda1dab7dbc0038ec7ff68a661896430f7d5c5', class: createColorClasses(this.color, {
|
|
25
25
|
[mode]: true,
|
|
26
26
|
'item-divider-sticky': this.sticky,
|
|
27
27
|
item: true,
|
|
28
|
-
}) }, h("slot", { key: '
|
|
28
|
+
}) }, h("slot", { key: '6ce072dfc2adfa699a2c34ffe25ed221c74d9eea', name: "start" }), h("div", { key: '9a441be204ee2f0b567432722407c75e3cbbe942', class: "item-divider-inner" }, h("div", { key: 'fd6f2969b345dba51400a290473e594d2d019dc5', class: "item-divider-wrapper" }, h("slot", { key: 'ebf5601b21c4cf199c01bf142865b8da0c1ba4a6' })), h("slot", { key: '249af8f30113f2c986976d518126661f65531121', name: "end" }))));
|
|
29
29
|
}
|
|
30
30
|
get el() { return this; }
|
|
31
31
|
static get style() { return {
|