voyager-ionic-core 8.0.0-beta.2 → 8.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/animation.js +9 -250
- package/components/button.js +18 -5
- package/components/haptic.js +6 -54
- package/components/helpers.js +1 -50
- package/components/index7.js +3 -1
- package/components/index9.js +5 -34
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +7 -6
- 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 +3 -3
- 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.d.ts +11 -0
- package/components/ion-input-password-toggle.js +132 -0
- package/components/ion-input.js +27 -8
- 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 +3 -3
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-modal.js +3 -3
- 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 +11 -24
- package/components/ion-refresher-content.js +2 -2
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +2 -2
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +7 -7
- 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 +10 -10
- 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 +4 -5
- 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 +4 -4
- 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/picker-column-option.js +2 -2
- package/components/picker-column.js +8 -4
- package/components/picker-column2.js +2 -2
- package/components/picker.js +2 -2
- package/components/popover.js +2 -2
- 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/palettes/dark.always.css.map +1 -0
- package/css/{themes → palettes}/dark.class.css +4 -4
- package/css/palettes/dark.class.css.map +1 -0
- package/css/palettes/dark.system.css.map +1 -0
- package/css/palettes/high-contrast-dark.always.css.map +1 -0
- package/css/{themes → palettes}/high-contrast-dark.class.css +10 -10
- package/css/palettes/high-contrast-dark.class.css.map +1 -0
- package/css/palettes/high-contrast-dark.system.css.map +1 -0
- package/css/palettes/high-contrast.always.css.map +1 -0
- package/css/{themes → palettes}/high-contrast.class.css +31 -31
- package/css/palettes/high-contrast.class.css.map +1 -0
- package/css/palettes/high-contrast.system.css.map +1 -0
- package/dist/cjs/{animation-3e7bb91e.js → animation-b4fdf128.js} +9 -250
- package/dist/cjs/{app-globals-e132c781.js → app-globals-63aebf89.js} +1 -1
- package/dist/cjs/{button-active-60ecf64d.js → button-active-bd13859e.js} +2 -2
- package/dist/cjs/{framework-delegate-0499d444.js → framework-delegate-55f5683a.js} +1 -1
- package/dist/cjs/{haptic-b882e0bb.js → haptic-f6b37aa3.js} +6 -54
- package/dist/cjs/{hardware-back-button-1c67a5a2.js → hardware-back-button-ad9299b4.js} +2 -2
- package/dist/cjs/{helpers-668b3d95.js → helpers-afaa9001.js} +0 -51
- package/dist/cjs/{index-f52c6d38.js → index-073c7cdc.js} +4 -0
- package/dist/cjs/{index-c49cb371.js → index-5b6a7459.js} +1 -1
- package/dist/cjs/{index-ba7ba0af.js → index-5cf05f94.js} +4 -4
- package/dist/cjs/{index-275cc12e.js → index-9509ecad.js} +5 -34
- package/dist/cjs/{index-2d21d526.js → index-af6d0fbb.js} +16 -4
- package/dist/cjs/{index-e4b6c97e.js → index-ff66cc7c.js} +4 -4
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{input-shims-b419f083.js → input-shims-20d639e6.js} +2 -2
- package/dist/cjs/{input.utils-32c0a14a.js → input.utils-611cde0b.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-action-sheet.cjs.entry.js +9 -9
- package/dist/cjs/ion-alert.cjs.entry.js +9 -9
- package/dist/cjs/ion-app_8.cjs.entry.js +22 -22
- package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-back-button.cjs.entry.js +4 -4
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-button_2.cjs.entry.js +19 -7
- package/dist/cjs/ion-card_5.cjs.entry.js +3 -3
- package/dist/cjs/ion-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +20 -19
- package/dist/cjs/ion-fab_3.cjs.entry.js +10 -10
- package/dist/cjs/ion-img.cjs.entry.js +4 -4
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +93 -0
- package/dist/cjs/ion-input.cjs.entry.js +30 -12
- package/dist/cjs/ion-item-option_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-item_8.cjs.entry.js +16 -16
- package/dist/cjs/ion-loading.cjs.entry.js +9 -9
- package/dist/cjs/ion-menu_3.cjs.entry.js +15 -15
- package/dist/cjs/ion-modal.cjs.entry.js +12 -12
- package/dist/cjs/ion-nav_2.cjs.entry.js +8 -8
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +5 -5
- package/dist/cjs/ion-picker-column.cjs.entry.js +12 -8
- package/dist/cjs/ion-picker.cjs.entry.js +4 -4
- package/dist/cjs/ion-popover.cjs.entry.js +10 -10
- package/dist/cjs/ion-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/ion-radio_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-range.cjs.entry.js +14 -27
- package/dist/cjs/ion-refresher_2.cjs.entry.js +9 -9
- package/dist/cjs/ion-reorder_2.cjs.entry.js +8 -8
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -3
- package/dist/cjs/ion-route_4.cjs.entry.js +5 -5
- package/dist/cjs/ion-searchbar.cjs.entry.js +10 -10
- package/dist/cjs/ion-segment_2.cjs.entry.js +8 -8
- package/dist/cjs/ion-select_3.cjs.entry.js +18 -18
- package/dist/cjs/ion-spinner.cjs.entry.js +3 -3
- package/dist/cjs/ion-split-pane.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-tab_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-text.cjs.entry.js +4 -4
- package/dist/cjs/ion-textarea.cjs.entry.js +9 -10
- package/dist/cjs/ion-toast.cjs.entry.js +9 -9
- package/dist/cjs/ion-toggle.cjs.entry.js +8 -8
- package/dist/cjs/{ionic-global-5762eca9.js → ionic-global-1adf9bc4.js} +1 -1
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-3e119901.js → ios.transition-06673f18.js} +4 -4
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-c1392f92.js → md.transition-4d7bb4b1.js} +4 -4
- package/dist/cjs/{notch-controller-08a24f39.js → notch-controller-d69150f5.js} +1 -1
- package/dist/cjs/{overlays-44b8d0e0.js → overlays-6487955a.js} +4 -4
- package/dist/cjs/{status-tap-32430b3e.js → status-tap-0be20572.js} +3 -3
- package/dist/cjs/{swipe-back-b8484483.js → swipe-back-f38a434a.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +1 -1
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +5 -1
- package/dist/collection/components/alert/test/basic/alert.e2e.js +1 -1
- package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +1 -1
- package/dist/collection/components/badge/test/a11y/badge.e2e.js +1 -1
- package/dist/collection/components/button/button.ios.css +32 -10
- package/dist/collection/components/button/button.js +19 -2
- package/dist/collection/components/button/button.md.css +28 -13
- package/dist/collection/components/button/test/a11y/button.e2e.js +2 -2
- package/dist/collection/components/button/test/round/button.e2e.js +39 -4
- package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +1 -1
- package/dist/collection/components/datetime/datetime.js +7 -6
- package/dist/collection/components/datetime-button/datetime-button.js +1 -1
- 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-button/test/a11y/fab-button.e2e.js +1 -1
- 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.ios.css +5 -2
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/header/test/basic/header.e2e.js +77 -0
- 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 +11 -2
- package/dist/collection/components/input/input.js +27 -30
- package/dist/collection/components/input/input.md.css +11 -2
- package/dist/collection/components/input/test/a11y/input.e2e.js +1 -1
- package/dist/collection/components/input/test/slot/input.e2e.js +8 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.css +0 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +183 -0
- package/dist/collection/components/input-password-toggle/test/a11y/input-password-toggle.e2e.js +21 -0
- package/dist/collection/components/input-password-toggle/test/basic/input-password-toggle.e2e.js +38 -0
- package/dist/collection/components/input-password-toggle/test/input-password-toggle.spec.js +76 -0
- package/dist/collection/components/item/test/buttons/item.e2e.js +20 -4
- 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/item-sliding/test/a11y/item-sliding.e2e.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/label/test/a11y/label.e2e.js +1 -1
- 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/loading/test/a11y/loading.e2e.js +1 -1
- 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-button/test/a11y/menu-button.e2e.js +1 -1
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +3 -3
- 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.js +8 -4
- 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 +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-bar/test/a11y/progress-bar.e2e.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio/test/a11y/radio.e2e.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +11 -24
- package/dist/collection/components/range/test/a11y/range.e2e.js +1 -1
- package/dist/collection/components/range/test/label/range.spec.js +24 -0
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher/test/a11y/refresher.e2e.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-link/test/a11y/router-link.e2e.js +1 -1
- 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 +10 -9
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment/test/a11y/segment.e2e.js +1 -1
- package/dist/collection/components/segment-button/segment-button.js +3 -3
- package/dist/collection/components/select/select.ios.css +2 -2
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/select/select.md.css +2 -2
- package/dist/collection/components/select/test/a11y/select.e2e.js +1 -1
- package/dist/collection/components/select/test/select.spec.js +22 -0
- package/dist/collection/components/select/test/slot/select.e2e.js +8 -0
- 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/test/a11y/select-popover.e2e.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/test/a11y/textarea.e2e.js +1 -1
- package/dist/collection/components/textarea/test/slot/textarea.e2e.js +8 -0
- package/dist/collection/components/textarea/textarea.ios.css +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -26
- package/dist/collection/components/textarea/textarea.md.css +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/test/a11y/toast.e2e.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/test/a11y/toggle.e2e.js +1 -1
- package/dist/collection/components/toggle/toggle.js +4 -4
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/css/test/a11y/typography.e2e.js +1 -1
- package/dist/collection/themes/test/colors/theme.e2e.js +2 -2
- package/dist/collection/utils/animation/animation-utils.js +0 -102
- package/dist/collection/utils/animation/animation.js +10 -141
- package/dist/collection/utils/animation/test/animation.spec.js +0 -89
- package/dist/collection/utils/animation/test/animationbuilder/animation.e2e.js +0 -4
- package/dist/collection/utils/animation/test/basic/animation.e2e.js +0 -4
- package/dist/collection/utils/animation/test/display/animation.e2e.js +0 -4
- package/dist/collection/utils/animation/test/hooks/animation.e2e.js +0 -4
- package/dist/collection/utils/animation/test/multiple/animation.e2e.js +0 -7
- package/dist/collection/utils/helpers.js +0 -46
- package/dist/collection/utils/native/haptic.js +6 -54
- package/dist/collection/utils/tap-click/index.js +5 -34
- package/dist/collection/utils/test/playwright/generator.js +17 -17
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +6 -6
- package/dist/docs.json +211 -36
- package/dist/esm/{animation-9a23ed8d.js → animation-eab5a4ca.js} +9 -250
- package/dist/esm/{app-globals-80842d68.js → app-globals-b8e5e7fa.js} +1 -1
- package/dist/esm/{button-active-c6e18fac.js → button-active-a411da52.js} +2 -2
- package/dist/esm/{framework-delegate-3fd96df8.js → framework-delegate-63d1a679.js} +1 -1
- package/dist/esm/{haptic-554688a5.js → haptic-ac164e4c.js} +6 -54
- package/dist/esm/{hardware-back-button-fb295e3a.js → hardware-back-button-329c81fd.js} +2 -2
- package/dist/esm/{helpers-f51cf76f.js → helpers-da915de8.js} +1 -50
- package/dist/esm/{index-9d7e5d3e.js → index-10916999.js} +4 -4
- package/dist/esm/{index-86688780.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-5d6a0317.js → index-6e4709ff.js} +16 -4
- package/dist/esm/{index-1262064c.js → index-79b30591.js} +5 -34
- package/dist/esm/{index-f7dc70ba.js → index-e2cf2ceb.js} +3 -1
- package/dist/esm/{index-6da05eef.js → index-f1f5de26.js} +4 -4
- package/dist/esm/index.js +11 -11
- package/dist/esm/{input-shims-2a4ad5a1.js → input-shims-4530285e.js} +2 -2
- package/dist/esm/{input.utils-d2dee48e.js → input.utils-09c71bc7.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +4 -4
- package/dist/esm/ion-action-sheet.entry.js +9 -9
- package/dist/esm/ion-alert.entry.js +9 -9
- package/dist/esm/ion-app_8.entry.js +22 -22
- package/dist/esm/ion-avatar_3.entry.js +3 -3
- package/dist/esm/ion-back-button.entry.js +4 -4
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +4 -4
- package/dist/esm/ion-button_2.entry.js +19 -7
- package/dist/esm/ion-card_5.entry.js +3 -3
- package/dist/esm/ion-checkbox.entry.js +3 -3
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +5 -5
- package/dist/esm/ion-datetime-button.entry.js +4 -4
- package/dist/esm/ion-datetime_3.entry.js +20 -19
- package/dist/esm/ion-fab_3.entry.js +10 -10
- package/dist/esm/ion-img.entry.js +4 -4
- package/dist/esm/ion-infinite-scroll_2.entry.js +7 -7
- package/dist/esm/ion-input-password-toggle.entry.js +89 -0
- package/dist/esm/ion-input.entry.js +30 -12
- package/dist/esm/ion-item-option_3.entry.js +8 -8
- package/dist/esm/ion-item_8.entry.js +16 -16
- package/dist/esm/ion-loading.entry.js +9 -9
- package/dist/esm/ion-menu_3.entry.js +15 -15
- package/dist/esm/ion-modal.entry.js +12 -12
- package/dist/esm/ion-nav_2.entry.js +8 -8
- package/dist/esm/ion-picker-column-option.entry.js +5 -5
- package/dist/esm/ion-picker-column.entry.js +12 -8
- package/dist/esm/ion-picker.entry.js +4 -4
- package/dist/esm/ion-popover.entry.js +10 -10
- package/dist/esm/ion-progress-bar.entry.js +4 -4
- package/dist/esm/ion-radio_2.entry.js +7 -7
- package/dist/esm/ion-range.entry.js +14 -27
- package/dist/esm/ion-refresher_2.entry.js +9 -9
- package/dist/esm/ion-reorder_2.entry.js +8 -8
- package/dist/esm/ion-ripple-effect.entry.js +3 -3
- package/dist/esm/ion-route_4.entry.js +5 -5
- package/dist/esm/ion-searchbar.entry.js +10 -10
- package/dist/esm/ion-segment_2.entry.js +8 -8
- package/dist/esm/ion-select_3.entry.js +18 -18
- package/dist/esm/ion-spinner.entry.js +3 -3
- package/dist/esm/ion-split-pane.entry.js +4 -4
- package/dist/esm/ion-tab-bar_2.entry.js +7 -7
- package/dist/esm/ion-tab_2.entry.js +6 -6
- package/dist/esm/ion-text.entry.js +4 -4
- package/dist/esm/ion-textarea.entry.js +9 -10
- package/dist/esm/ion-toast.entry.js +9 -9
- package/dist/esm/ion-toggle.entry.js +8 -8
- package/dist/esm/{ionic-global-a589c12c.js → ionic-global-c4e0c089.js} +1 -1
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-fbde96b0.js → ios.transition-8e181a7e.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-76e0020b.js → md.transition-f1c3c737.js} +4 -4
- package/dist/esm/{notch-controller-00572cf8.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm/{overlays-b1ac1c63.js → overlays-9472c98b.js} +4 -4
- package/dist/esm/{status-tap-84b41f36.js → status-tap-39da9160.js} +3 -3
- package/dist/esm/{swipe-back-4f2e5d47.js → swipe-back-b613d7db.js} +1 -1
- package/dist/esm-es5/animation-eab5a4ca.js +4 -0
- package/dist/esm-es5/app-globals-b8e5e7fa.js +4 -0
- package/dist/esm-es5/{button-active-c6e18fac.js → button-active-a411da52.js} +1 -1
- package/dist/esm-es5/framework-delegate-63d1a679.js +4 -0
- package/dist/esm-es5/haptic-ac164e4c.js +4 -0
- package/dist/esm-es5/{hardware-back-button-fb295e3a.js → hardware-back-button-329c81fd.js} +1 -1
- package/dist/esm-es5/helpers-da915de8.js +4 -0
- package/dist/esm-es5/index-10916999.js +4 -0
- package/dist/esm-es5/{index-86688780.js → index-5cc724f3.js} +1 -1
- package/dist/esm-es5/index-6e4709ff.js +5 -0
- package/dist/esm-es5/index-79b30591.js +4 -0
- package/dist/esm-es5/{index-f7dc70ba.js → index-e2cf2ceb.js} +1 -1
- package/dist/esm-es5/{index-6da05eef.js → index-f1f5de26.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-4530285e.js +4 -0
- package/dist/esm-es5/{input.utils-d2dee48e.js → input.utils-09c71bc7.js} +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +4 -0
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/{ionic-global-a589c12c.js → ionic-global-c4e0c089.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-fbde96b0.js → ios.transition-8e181a7e.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-f1c3c737.js +4 -0
- package/dist/esm-es5/{notch-controller-00572cf8.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm-es5/{overlays-b1ac1c63.js → overlays-9472c98b.js} +1 -1
- package/dist/esm-es5/{status-tap-84b41f36.js → status-tap-39da9160.js} +1 -1
- package/dist/esm-es5/{swipe-back-4f2e5d47.js → swipe-back-b613d7db.js} +1 -1
- package/dist/html.html-data.json +87 -19
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-f15b0bbc.system.entry.js → p-04070329.system.entry.js} +1 -1
- package/dist/ionic/p-049fa018.system.entry.js +4 -0
- package/dist/ionic/{p-4ba6d7d1.js → p-06e58c4e.js} +1 -1
- package/dist/ionic/{p-f8dfae89.system.entry.js → p-07ae133d.system.entry.js} +1 -1
- package/dist/ionic/p-0aa4682e.entry.js +4 -0
- package/dist/ionic/{p-2028668d.system.entry.js → p-0bbb6edf.system.entry.js} +1 -1
- package/dist/ionic/{p-8dfe436d.system.js → p-0c06e09b.system.js} +1 -1
- package/dist/ionic/p-0de546bb.entry.js +4 -0
- package/dist/ionic/{p-6d75fbe8.system.entry.js → p-0ebb1fe7.system.entry.js} +1 -1
- package/dist/ionic/p-0f2d99a6.entry.js +4 -0
- package/dist/ionic/p-100bedc4.system.entry.js +4 -0
- package/dist/ionic/{p-91567c90.system.entry.js → p-105f7d62.system.entry.js} +1 -1
- package/dist/ionic/{p-ff740d68.system.entry.js → p-1672c4fd.system.entry.js} +2 -2
- package/dist/ionic/{p-d85eebc3.entry.js → p-17978fce.entry.js} +1 -1
- package/dist/ionic/{p-0eb381c3.system.js → p-184fbc9e.system.js} +1 -1
- package/dist/ionic/{p-3944820a.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/{p-7200f2da.entry.js → p-1b235142.entry.js} +1 -1
- package/dist/ionic/{p-21e88629.entry.js → p-1cff9cad.entry.js} +1 -1
- package/dist/ionic/p-1e955a45.system.js +4 -0
- package/dist/ionic/{p-234dc736.entry.js → p-1f9cdee2.entry.js} +1 -1
- package/dist/ionic/p-23b89985.entry.js +4 -0
- package/dist/ionic/{p-53c592ec.system.js → p-25575222.system.js} +1 -1
- package/dist/ionic/{p-ea5173f9.system.js → p-266fc56e.system.js} +1 -1
- package/dist/ionic/p-2e12bda2.entry.js +4 -0
- package/dist/ionic/{p-a5c33d6b.system.entry.js → p-2f6cedaf.system.entry.js} +1 -1
- package/dist/ionic/{p-78b3da77.js → p-3040730e.js} +1 -1
- package/dist/ionic/{p-75addf49.entry.js → p-3391d9a3.entry.js} +1 -1
- package/dist/ionic/{p-4da2ae44.js → p-34b11c24.js} +1 -1
- package/dist/ionic/{p-f6db2e96.system.entry.js → p-352f7037.system.entry.js} +2 -2
- package/dist/ionic/{p-5054b3db.entry.js → p-35b9e842.entry.js} +1 -1
- package/dist/ionic/p-3ad285e3.system.js +4 -0
- package/dist/ionic/{p-95648db9.entry.js → p-3c70b01b.entry.js} +1 -1
- package/dist/ionic/{p-46a4e4e8.js → p-3cc276f4.js} +1 -1
- package/dist/ionic/{p-566818dd.system.entry.js → p-3d6e882f.system.entry.js} +1 -1
- package/dist/ionic/{p-2e2635b4.system.entry.js → p-3e3b34f7.system.entry.js} +1 -1
- package/dist/ionic/{p-0da58e53.entry.js → p-3f70bfba.entry.js} +1 -1
- package/dist/ionic/{p-a43fbe0a.system.entry.js → p-43505ff8.system.entry.js} +1 -1
- package/dist/ionic/{p-f012e8f2.system.entry.js → p-4429fc97.system.entry.js} +1 -1
- package/dist/ionic/{p-2c560619.system.entry.js → p-4511ba0e.system.entry.js} +1 -1
- package/dist/ionic/p-46111310.js +4 -0
- package/dist/ionic/p-46f407f0.system.js +4 -0
- package/dist/ionic/p-49b6fee0.system.entry.js +4 -0
- package/dist/ionic/{p-eb546888.entry.js → p-4a615fea.entry.js} +1 -1
- package/dist/ionic/{p-f3e8c505.system.js → p-4dd82d9d.system.js} +1 -1
- package/dist/ionic/{p-696db6f4.system.js → p-5033128d.system.js} +2 -2
- package/dist/ionic/{p-0afaf65b.system.entry.js → p-510578f3.system.entry.js} +1 -1
- package/dist/ionic/{p-7162350a.system.entry.js → p-51b68ec9.system.entry.js} +1 -1
- package/dist/ionic/{p-42d9f81e.entry.js → p-51ff648c.entry.js} +1 -1
- package/dist/ionic/p-546433d2.js +4 -0
- package/dist/ionic/{p-3a572692.js → p-54f76ced.js} +1 -1
- package/dist/ionic/{p-66e50777.entry.js → p-56c3b69c.entry.js} +1 -1
- package/dist/ionic/p-58ea73f7.system.entry.js +4 -0
- package/dist/ionic/p-596e0cf8.system.entry.js +4 -0
- package/dist/ionic/p-5ae49f12.entry.js +4 -0
- package/dist/ionic/{p-ba9120fe.system.entry.js → p-5b1273f4.system.entry.js} +2 -2
- package/dist/ionic/p-5d3f6707.entry.js +4 -0
- package/dist/ionic/{p-e5e492d8.entry.js → p-5da04d11.entry.js} +1 -1
- package/dist/ionic/p-5e7c32e8.system.entry.js +4 -0
- package/dist/ionic/p-65d26d94.system.entry.js +4 -0
- package/dist/ionic/{p-cada6331.entry.js → p-6744e460.entry.js} +1 -1
- package/dist/ionic/{p-d09c9468.system.entry.js → p-68a1e274.system.entry.js} +1 -1
- package/dist/ionic/{p-031c5621.js → p-6994c97a.js} +1 -1
- package/dist/ionic/p-69bc14fd.entry.js +4 -0
- package/dist/ionic/p-6a7eac5a.js +4 -0
- package/dist/ionic/p-6f4db5ce.system.entry.js +4 -0
- package/dist/ionic/{p-30dfa360.system.js → p-71215c1d.system.js} +1 -1
- package/dist/ionic/{p-063c093d.system.entry.js → p-71688099.system.entry.js} +1 -1
- package/dist/ionic/{p-d9dfdbb5.system.entry.js → p-716ab5f8.system.entry.js} +1 -1
- package/dist/ionic/p-72812e99.js +4 -0
- package/dist/ionic/p-74a9cafe.system.js +5 -0
- package/dist/ionic/{p-b996756b.entry.js → p-75280815.entry.js} +1 -1
- package/dist/ionic/{p-eee87ebb.js → p-75cddcc9.js} +1 -1
- package/dist/ionic/{p-5f9abba8.system.entry.js → p-76907c2f.system.entry.js} +1 -1
- package/dist/ionic/p-7d9eefb3.system.js +4 -0
- package/dist/ionic/p-7df2c495.entry.js +4 -0
- package/dist/ionic/p-7fc505bf.entry.js +4 -0
- package/dist/ionic/p-83321ee8.entry.js +4 -0
- package/dist/ionic/p-8635f5e6.system.js +4 -0
- package/dist/ionic/{p-da5bbd4f.entry.js → p-88cff52d.entry.js} +1 -1
- package/dist/ionic/{p-19243ae6.entry.js → p-896111fa.entry.js} +1 -1
- package/dist/ionic/p-89b61afc.js +4 -0
- package/dist/ionic/{p-824d44c5.system.entry.js → p-8bd567ba.system.entry.js} +1 -1
- package/dist/ionic/{p-1acaf641.entry.js → p-8e9ac22d.entry.js} +1 -1
- package/dist/ionic/p-9146695e.system.js +4 -0
- package/dist/ionic/{p-314ae72a.js → p-96cc4814.js} +1 -1
- package/dist/ionic/{p-65374504.entry.js → p-99daf8b7.entry.js} +1 -1
- package/dist/ionic/p-9ad82dba.js +5 -0
- package/dist/ionic/{p-af9256a0.system.js → p-9d7fc908.system.js} +1 -1
- package/dist/ionic/{p-ce36d285.system.js → p-9ea607bd.system.js} +1 -1
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/{p-f15f8140.system.entry.js → p-a1b4e619.system.entry.js} +1 -1
- package/dist/ionic/{p-45a2b1ee.system.entry.js → p-a1f9f629.system.entry.js} +1 -1
- package/dist/ionic/{p-7c7e495d.system.js → p-a7ba2dcc.system.js} +1 -1
- package/dist/ionic/p-a88fdfac.entry.js +4 -0
- package/dist/ionic/{p-01171ead.system.js → p-a8f02173.system.js} +1 -1
- package/dist/ionic/p-a93873de.system.js +4 -0
- package/dist/ionic/{p-c834c535.system.entry.js → p-aa110ca0.system.entry.js} +1 -1
- package/dist/ionic/{p-50d19fc7.system.entry.js → p-aa4f2703.system.entry.js} +1 -1
- package/dist/ionic/{p-9c970454.entry.js → p-ab85debb.entry.js} +1 -1
- package/dist/ionic/{p-a37d4fe9.system.entry.js → p-ac4e2a74.system.entry.js} +1 -1
- package/dist/ionic/p-ac9f44a8.system.entry.js +4 -0
- package/dist/ionic/p-b51e4004.js +4 -0
- package/dist/ionic/{p-c8f7f923.entry.js → p-b689b8d4.entry.js} +1 -1
- package/dist/ionic/p-b7af48c0.js +4 -0
- package/dist/ionic/p-bb835b4d.system.entry.js +4 -0
- package/dist/ionic/{p-d3c1c23f.entry.js → p-c04d5a75.entry.js} +1 -1
- package/dist/ionic/{p-acd64713.system.entry.js → p-c198e1e1.system.entry.js} +1 -1
- package/dist/ionic/{p-c4390f10.system.entry.js → p-c1d1d004.system.entry.js} +1 -1
- package/dist/ionic/{p-239906f1.js → p-c222f76a.js} +1 -1
- package/dist/ionic/{p-03f3ebd2.entry.js → p-c41af68a.entry.js} +1 -1
- package/dist/ionic/p-c7e16491.js +4 -0
- package/dist/ionic/p-c80d05c9.js +4 -0
- package/dist/ionic/{p-0b175848.entry.js → p-c8510ca2.entry.js} +1 -1
- package/dist/ionic/{p-2070f8d8.entry.js → p-c8f2b769.entry.js} +1 -1
- package/dist/ionic/{p-8c0b08db.entry.js → p-c99ccdc9.entry.js} +1 -1
- package/dist/ionic/{p-15e2ff5f.system.entry.js → p-c9c39c98.system.entry.js} +1 -1
- package/dist/ionic/{p-070cf7c3.entry.js → p-cae889f9.entry.js} +1 -1
- package/dist/ionic/{p-9e3177a5.system.js → p-d2544865.system.js} +1 -1
- package/dist/ionic/{p-219c17cf.system.entry.js → p-d5f48185.system.entry.js} +1 -1
- package/dist/ionic/{p-4997d7dc.system.js → p-d79542bd.system.js} +1 -1
- package/dist/ionic/p-d8067ea4.system.entry.js +4 -0
- package/dist/ionic/p-d8f66669.entry.js +4 -0
- package/dist/ionic/{p-48fef2f1.entry.js → p-d98c0112.entry.js} +1 -1
- package/dist/ionic/p-da2b833b.js +4 -0
- package/dist/ionic/p-dc1372e0.entry.js +4 -0
- package/dist/ionic/{p-4d6ec139.entry.js → p-df48edd6.entry.js} +1 -1
- package/dist/ionic/{p-de4c700f.entry.js → p-df6fa126.entry.js} +1 -1
- package/dist/ionic/{p-66596659.entry.js → p-e8a0e731.entry.js} +1 -1
- package/dist/ionic/{p-513abaf6.system.entry.js → p-ea2c16b5.system.entry.js} +2 -2
- package/dist/ionic/p-ea4be6ac.system.js +4 -0
- package/dist/ionic/{p-b0850af6.system.entry.js → p-eb3da535.system.entry.js} +1 -1
- package/dist/ionic/{p-07a0190a.system.entry.js → p-ec2d3928.system.entry.js} +1 -1
- package/dist/ionic/p-f0392d49.entry.js +4 -0
- package/dist/ionic/{p-144ae947.js → p-f4cb521c.js} +1 -1
- package/dist/ionic/{p-a7f788ec.entry.js → p-f818b01a.entry.js} +1 -1
- package/dist/ionic/p-f94cbfe9.js +4 -0
- package/dist/ionic/{p-739f8b95.system.entry.js → p-fab4ecad.system.entry.js} +1 -1
- package/dist/ionic/p-fb02eeec.system.entry.js +4 -0
- package/dist/ionic/{p-237b1791.system.entry.js → p-fb97326f.system.entry.js} +1 -1
- package/dist/ionic/{p-e222fdd1.entry.js → p-fbd30ec7.entry.js} +1 -1
- package/dist/ionic/{p-de39f314.entry.js → p-fda4872f.entry.js} +1 -1
- package/dist/ionic/{p-25648922.system.entry.js → p-ff2323ba.system.entry.js} +1 -1
- package/dist/types/components/button/button.d.ts +5 -0
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +7 -6
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +37 -0
- package/dist/types/components/modal/animations/sheet.d.ts +4 -4
- package/dist/types/components/refresher/refresher.utils.d.ts +2 -2
- package/dist/types/components/searchbar/searchbar.d.ts +0 -14
- package/dist/types/components/textarea/textarea.d.ts +1 -6
- package/dist/types/components/toggle/toggle.d.ts +1 -1
- package/dist/types/components.d.ts +49 -5
- package/dist/types/utils/animation/animation-utils.d.ts +0 -12
- package/dist/types/utils/focus-trap.d.ts +2 -2
- package/dist/types/utils/helpers.d.ts +0 -18
- package/dist/types/utils/overlays.d.ts +2 -2
- package/dist/types/utils/test/playwright/generator.d.ts +3 -3
- package/hydrate/index.js +335 -535
- package/package.json +7 -2
- package/css/themes/dark.always.css.map +0 -1
- package/css/themes/dark.class.css.map +0 -1
- package/css/themes/dark.system.css.map +0 -1
- package/css/themes/high-contrast-dark.always.css.map +0 -1
- package/css/themes/high-contrast-dark.class.css.map +0 -1
- package/css/themes/high-contrast-dark.system.css.map +0 -1
- package/css/themes/high-contrast.always.css.map +0 -1
- package/css/themes/high-contrast.class.css.map +0 -1
- package/css/themes/high-contrast.system.css.map +0 -1
- package/dist/collection/utils/test/aria.spec.js +0 -80
- package/dist/esm-es5/animation-9a23ed8d.js +0 -4
- package/dist/esm-es5/app-globals-80842d68.js +0 -4
- package/dist/esm-es5/framework-delegate-3fd96df8.js +0 -4
- package/dist/esm-es5/haptic-554688a5.js +0 -4
- package/dist/esm-es5/helpers-f51cf76f.js +0 -4
- package/dist/esm-es5/index-1262064c.js +0 -4
- package/dist/esm-es5/index-5d6a0317.js +0 -5
- package/dist/esm-es5/index-9d7e5d3e.js +0 -4
- package/dist/esm-es5/input-shims-2a4ad5a1.js +0 -4
- package/dist/esm-es5/md.transition-76e0020b.js +0 -4
- package/dist/ionic/p-04f9ce05.system.js +0 -4
- package/dist/ionic/p-06e951a9.entry.js +0 -4
- package/dist/ionic/p-1d1394da.system.entry.js +0 -4
- package/dist/ionic/p-1e5c0c49.js +0 -4
- package/dist/ionic/p-29ecf879.entry.js +0 -4
- package/dist/ionic/p-2f53f47a.entry.js +0 -4
- package/dist/ionic/p-33e39575.system.js +0 -4
- package/dist/ionic/p-355736ea.js +0 -4
- package/dist/ionic/p-373e757d.entry.js +0 -4
- package/dist/ionic/p-39483fc9.js +0 -4
- package/dist/ionic/p-39860681.entry.js +0 -4
- package/dist/ionic/p-42f189f4.js +0 -4
- package/dist/ionic/p-493bce1f.entry.js +0 -4
- package/dist/ionic/p-49a205d0.system.js +0 -4
- package/dist/ionic/p-4d7230bd.system.entry.js +0 -4
- package/dist/ionic/p-517b76cb.entry.js +0 -4
- package/dist/ionic/p-51b1a6be.js +0 -4
- package/dist/ionic/p-59e86adb.js +0 -4
- package/dist/ionic/p-6042920d.system.entry.js +0 -4
- package/dist/ionic/p-667290b0.system.js +0 -4
- package/dist/ionic/p-67dbcd3b.system.js +0 -4
- package/dist/ionic/p-69df28fd.entry.js +0 -4
- package/dist/ionic/p-6d0e7669.system.entry.js +0 -4
- package/dist/ionic/p-6d1f5de9.system.entry.js +0 -4
- package/dist/ionic/p-7d4f6f18.js +0 -4
- package/dist/ionic/p-831269de.js +0 -4
- package/dist/ionic/p-a03c993e.entry.js +0 -4
- package/dist/ionic/p-b0d35de4.system.js +0 -4
- package/dist/ionic/p-bb78b64e.entry.js +0 -4
- package/dist/ionic/p-bbc4f653.entry.js +0 -4
- package/dist/ionic/p-c34d1515.js +0 -4
- package/dist/ionic/p-c629d22b.system.js +0 -5
- package/dist/ionic/p-c8675b7b.system.entry.js +0 -4
- package/dist/ionic/p-c962e9ea.entry.js +0 -4
- package/dist/ionic/p-c995da88.system.js +0 -4
- package/dist/ionic/p-cc19ecba.system.entry.js +0 -4
- package/dist/ionic/p-d10bbab7.entry.js +0 -4
- package/dist/ionic/p-d268f7e2.system.entry.js +0 -4
- package/dist/ionic/p-d4be0d81.system.entry.js +0 -4
- package/dist/ionic/p-d5ef3a0a.entry.js +0 -4
- package/dist/ionic/p-dad515dc.js +0 -4
- package/dist/ionic/p-dfb6de03.system.js +0 -4
- package/dist/ionic/p-e01ebeba.system.js +0 -4
- package/dist/ionic/p-e9412fe7.system.entry.js +0 -4
- package/dist/ionic/p-f5cb9689.js +0 -4
- package/dist/ionic/p-f8502e85.js +0 -5
- package/dist/ionic/p-fcec3b7a.system.entry.js +0 -4
- package/css/{themes → palettes}/dark.always.css +0 -0
- package/css/{themes → palettes}/dark.css +0 -0
- package/css/{themes → palettes}/dark.css.map +0 -0
- package/css/{themes → palettes}/dark.system.css +0 -0
- package/css/{themes → palettes}/high-contrast-dark.always.css +1 -1
- package/css/{themes → palettes}/high-contrast-dark.css +0 -0
- package/css/{themes → palettes}/high-contrast-dark.css.map +0 -0
- package/css/{themes → palettes}/high-contrast-dark.system.css +1 -1
- package/css/{themes → palettes}/high-contrast.always.css +25 -25
- package/css/{themes → palettes}/high-contrast.css +0 -0
- package/css/{themes → palettes}/high-contrast.css.map +0 -0
- package/css/{themes → palettes}/high-contrast.system.css +25 -25
|
@@ -2,36 +2,6 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
let animationPrefix;
|
|
5
|
-
/**
|
|
6
|
-
* Web Animations requires hyphenated CSS properties
|
|
7
|
-
* to be written in camelCase when animating
|
|
8
|
-
*/
|
|
9
|
-
export const processKeyframes = (keyframes) => {
|
|
10
|
-
keyframes.forEach((keyframe) => {
|
|
11
|
-
for (const key in keyframe) {
|
|
12
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
13
|
-
if (keyframe.hasOwnProperty(key)) {
|
|
14
|
-
const value = keyframe[key];
|
|
15
|
-
if (key === 'easing') {
|
|
16
|
-
const newKey = 'animation-timing-function';
|
|
17
|
-
keyframe[newKey] = value;
|
|
18
|
-
delete keyframe[key];
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
const newKey = convertCamelCaseToHypen(key);
|
|
22
|
-
if (newKey !== key) {
|
|
23
|
-
keyframe[newKey] = value;
|
|
24
|
-
delete keyframe[key];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return keyframes;
|
|
31
|
-
};
|
|
32
|
-
const convertCamelCaseToHypen = (str) => {
|
|
33
|
-
return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
34
|
-
};
|
|
35
5
|
export const getAnimationPrefix = (el) => {
|
|
36
6
|
if (animationPrefix === undefined) {
|
|
37
7
|
const supportsUnprefixed = el.style.animationName !== undefined;
|
|
@@ -44,78 +14,6 @@ export const setStyleProperty = (element, propertyName, value) => {
|
|
|
44
14
|
const prefix = propertyName.startsWith('animation') ? getAnimationPrefix(element) : '';
|
|
45
15
|
element.style.setProperty(prefix + propertyName, value);
|
|
46
16
|
};
|
|
47
|
-
export const removeStyleProperty = (element, propertyName) => {
|
|
48
|
-
const prefix = propertyName.startsWith('animation') ? getAnimationPrefix(element) : '';
|
|
49
|
-
element.style.removeProperty(prefix + propertyName);
|
|
50
|
-
};
|
|
51
|
-
export const animationEnd = (el, callback) => {
|
|
52
|
-
let unRegTrans;
|
|
53
|
-
const opts = { passive: true };
|
|
54
|
-
const unregister = () => {
|
|
55
|
-
if (unRegTrans) {
|
|
56
|
-
unRegTrans();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
const onTransitionEnd = (ev) => {
|
|
60
|
-
if (el === ev.target) {
|
|
61
|
-
unregister();
|
|
62
|
-
callback(ev);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
if (el) {
|
|
66
|
-
el.addEventListener('webkitAnimationEnd', onTransitionEnd, opts);
|
|
67
|
-
el.addEventListener('animationend', onTransitionEnd, opts);
|
|
68
|
-
unRegTrans = () => {
|
|
69
|
-
el.removeEventListener('webkitAnimationEnd', onTransitionEnd, opts);
|
|
70
|
-
el.removeEventListener('animationend', onTransitionEnd, opts);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
return unregister;
|
|
74
|
-
};
|
|
75
|
-
// TODO(FW-2832): type
|
|
76
|
-
export const generateKeyframeRules = (keyframes = []) => {
|
|
77
|
-
return keyframes
|
|
78
|
-
.map((keyframe) => {
|
|
79
|
-
const offset = keyframe.offset;
|
|
80
|
-
const frameString = [];
|
|
81
|
-
for (const property in keyframe) {
|
|
82
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
83
|
-
if (keyframe.hasOwnProperty(property) && property !== 'offset') {
|
|
84
|
-
frameString.push(`${property}: ${keyframe[property]};`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return `${offset * 100}% { ${frameString.join(' ')} }`;
|
|
88
|
-
})
|
|
89
|
-
.join(' ');
|
|
90
|
-
};
|
|
91
|
-
const keyframeIds = [];
|
|
92
|
-
export const generateKeyframeName = (keyframeRules) => {
|
|
93
|
-
let index = keyframeIds.indexOf(keyframeRules);
|
|
94
|
-
if (index < 0) {
|
|
95
|
-
index = keyframeIds.push(keyframeRules) - 1;
|
|
96
|
-
}
|
|
97
|
-
return `ion-animation-${index}`;
|
|
98
|
-
};
|
|
99
|
-
export const getStyleContainer = (element) => {
|
|
100
|
-
// getRootNode is not always available in SSR environments.
|
|
101
|
-
// TODO(FW-2832): types
|
|
102
|
-
const rootNode = element.getRootNode !== undefined ? element.getRootNode() : element;
|
|
103
|
-
return rootNode.head || rootNode;
|
|
104
|
-
};
|
|
105
|
-
export const createKeyframeStylesheet = (keyframeName, keyframeRules, element) => {
|
|
106
|
-
var _a;
|
|
107
|
-
const styleContainer = getStyleContainer(element);
|
|
108
|
-
const keyframePrefix = getAnimationPrefix(element);
|
|
109
|
-
const existingStylesheet = styleContainer.querySelector('#' + keyframeName);
|
|
110
|
-
if (existingStylesheet) {
|
|
111
|
-
return existingStylesheet;
|
|
112
|
-
}
|
|
113
|
-
const stylesheet = ((_a = element.ownerDocument) !== null && _a !== void 0 ? _a : document).createElement('style');
|
|
114
|
-
stylesheet.id = keyframeName;
|
|
115
|
-
stylesheet.textContent = `@${keyframePrefix}keyframes ${keyframeName} { ${keyframeRules} } @${keyframePrefix}keyframes ${keyframeName}-alt { ${keyframeRules} }`;
|
|
116
|
-
styleContainer.appendChild(stylesheet);
|
|
117
|
-
return stylesheet;
|
|
118
|
-
};
|
|
119
17
|
export const addClassToArray = (classes = [], className) => {
|
|
120
18
|
if (className !== undefined) {
|
|
121
19
|
const classNameToAppend = Array.isArray(className) ? className : [className];
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { win } from "../browser";
|
|
5
|
-
import {
|
|
6
|
-
import { addClassToArray, animationEnd, createKeyframeStylesheet, generateKeyframeName, generateKeyframeRules, processKeyframes, removeStyleProperty, setStyleProperty, } from "./animation-utils";
|
|
5
|
+
import { addClassToArray, setStyleProperty } from "./animation-utils";
|
|
7
6
|
export const createAnimation = (animationId) => {
|
|
8
7
|
let _delay;
|
|
9
8
|
let _duration;
|
|
@@ -30,7 +29,6 @@ export const createAnimation = (animationId) => {
|
|
|
30
29
|
let willComplete = true;
|
|
31
30
|
let finished = false;
|
|
32
31
|
let shouldCalculateNumAnimations = true;
|
|
33
|
-
let keyframeName;
|
|
34
32
|
let ani;
|
|
35
33
|
let paused = false;
|
|
36
34
|
const id = animationId;
|
|
@@ -47,10 +45,16 @@ export const createAnimation = (animationId) => {
|
|
|
47
45
|
const webAnimations = [];
|
|
48
46
|
const supportsAnimationEffect = typeof AnimationEffect === 'function' ||
|
|
49
47
|
(win !== undefined && typeof win.AnimationEffect === 'function');
|
|
48
|
+
/**
|
|
49
|
+
* This is a feature detection for Web Animations.
|
|
50
|
+
*
|
|
51
|
+
* Certain environments such as emulated browser environments for testing,
|
|
52
|
+
* do not support Web Animations. As a result, we need to check for support
|
|
53
|
+
* and provide a fallback to test certain functionality related to Web Animations.
|
|
54
|
+
*/
|
|
50
55
|
const supportsWebAnimations = typeof Element === 'function' &&
|
|
51
56
|
typeof Element.prototype.animate === 'function' &&
|
|
52
57
|
supportsAnimationEffect;
|
|
53
|
-
const ANIMATION_END_FALLBACK_PADDING_MS = 100;
|
|
54
58
|
const getWebAnimations = () => {
|
|
55
59
|
return webAnimations;
|
|
56
60
|
};
|
|
@@ -138,21 +142,6 @@ export const createAnimation = (animationId) => {
|
|
|
138
142
|
});
|
|
139
143
|
webAnimations.length = 0;
|
|
140
144
|
}
|
|
141
|
-
else {
|
|
142
|
-
const elementsArray = elements.slice();
|
|
143
|
-
raf(() => {
|
|
144
|
-
elementsArray.forEach((element) => {
|
|
145
|
-
removeStyleProperty(element, 'animation-name');
|
|
146
|
-
removeStyleProperty(element, 'animation-duration');
|
|
147
|
-
removeStyleProperty(element, 'animation-timing-function');
|
|
148
|
-
removeStyleProperty(element, 'animation-iteration-count');
|
|
149
|
-
removeStyleProperty(element, 'animation-delay');
|
|
150
|
-
removeStyleProperty(element, 'animation-play-state');
|
|
151
|
-
removeStyleProperty(element, 'animation-fill-mode');
|
|
152
|
-
removeStyleProperty(element, 'animation-direction');
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
145
|
};
|
|
157
146
|
/**
|
|
158
147
|
* Removes the animation's stylesheets
|
|
@@ -410,9 +399,6 @@ export const createAnimation = (animationId) => {
|
|
|
410
399
|
}
|
|
411
400
|
});
|
|
412
401
|
}
|
|
413
|
-
else {
|
|
414
|
-
initializeCSSAnimation();
|
|
415
|
-
}
|
|
416
402
|
};
|
|
417
403
|
/**
|
|
418
404
|
* Run all "before" animation hooks.
|
|
@@ -498,32 +484,6 @@ export const createAnimation = (animationId) => {
|
|
|
498
484
|
}
|
|
499
485
|
}
|
|
500
486
|
};
|
|
501
|
-
const initializeCSSAnimation = (toggleAnimationName = true) => {
|
|
502
|
-
cleanUpStyleSheets();
|
|
503
|
-
const processedKeyframes = processKeyframes(_keyframes);
|
|
504
|
-
elements.forEach((element) => {
|
|
505
|
-
if (processedKeyframes.length > 0) {
|
|
506
|
-
const keyframeRules = generateKeyframeRules(processedKeyframes);
|
|
507
|
-
keyframeName = animationId !== undefined ? animationId : generateKeyframeName(keyframeRules);
|
|
508
|
-
const stylesheet = createKeyframeStylesheet(keyframeName, keyframeRules, element);
|
|
509
|
-
stylesheets.push(stylesheet);
|
|
510
|
-
setStyleProperty(element, 'animation-duration', `${getDuration()}ms`);
|
|
511
|
-
setStyleProperty(element, 'animation-timing-function', getEasing());
|
|
512
|
-
setStyleProperty(element, 'animation-delay', `${getDelay()}ms`);
|
|
513
|
-
setStyleProperty(element, 'animation-fill-mode', getFill());
|
|
514
|
-
setStyleProperty(element, 'animation-direction', getDirection());
|
|
515
|
-
const iterationsCount = getIterations() === Infinity ? 'infinite' : getIterations().toString();
|
|
516
|
-
setStyleProperty(element, 'animation-iteration-count', iterationsCount);
|
|
517
|
-
setStyleProperty(element, 'animation-play-state', 'paused');
|
|
518
|
-
if (toggleAnimationName) {
|
|
519
|
-
setStyleProperty(element, 'animation-name', `${stylesheet.id}-alt`);
|
|
520
|
-
}
|
|
521
|
-
raf(() => {
|
|
522
|
-
setStyleProperty(element, 'animation-name', stylesheet.id || null);
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
};
|
|
527
487
|
const initializeWebAnimation = () => {
|
|
528
488
|
elements.forEach((element) => {
|
|
529
489
|
const animation = element.animate(_keyframes, {
|
|
@@ -544,15 +504,12 @@ export const createAnimation = (animationId) => {
|
|
|
544
504
|
};
|
|
545
505
|
}
|
|
546
506
|
};
|
|
547
|
-
const initializeAnimation = (
|
|
507
|
+
const initializeAnimation = () => {
|
|
548
508
|
beforeAnimation();
|
|
549
509
|
if (_keyframes.length > 0) {
|
|
550
510
|
if (supportsWebAnimations) {
|
|
551
511
|
initializeWebAnimation();
|
|
552
512
|
}
|
|
553
|
-
else {
|
|
554
|
-
initializeCSSAnimation(toggleAnimationName);
|
|
555
|
-
}
|
|
556
513
|
}
|
|
557
514
|
initialized = true;
|
|
558
515
|
};
|
|
@@ -565,15 +522,6 @@ export const createAnimation = (animationId) => {
|
|
|
565
522
|
animation.pause();
|
|
566
523
|
});
|
|
567
524
|
}
|
|
568
|
-
else {
|
|
569
|
-
const animationDuration = `-${getDuration() * step}ms`;
|
|
570
|
-
elements.forEach((element) => {
|
|
571
|
-
if (_keyframes.length > 0) {
|
|
572
|
-
setStyleProperty(element, 'animation-delay', animationDuration);
|
|
573
|
-
setStyleProperty(element, 'animation-play-state', 'paused');
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
525
|
};
|
|
578
526
|
const updateWebAnimation = (step) => {
|
|
579
527
|
webAnimations.forEach((animation) => {
|
|
@@ -590,26 +538,6 @@ export const createAnimation = (animationId) => {
|
|
|
590
538
|
setAnimationStep(step);
|
|
591
539
|
}
|
|
592
540
|
};
|
|
593
|
-
const updateCSSAnimation = (toggleAnimationName = true, step) => {
|
|
594
|
-
raf(() => {
|
|
595
|
-
elements.forEach((element) => {
|
|
596
|
-
setStyleProperty(element, 'animation-name', keyframeName || null);
|
|
597
|
-
setStyleProperty(element, 'animation-duration', `${getDuration()}ms`);
|
|
598
|
-
setStyleProperty(element, 'animation-timing-function', getEasing());
|
|
599
|
-
setStyleProperty(element, 'animation-delay', step !== undefined ? `-${step * getDuration()}ms` : `${getDelay()}ms`);
|
|
600
|
-
setStyleProperty(element, 'animation-fill-mode', getFill() || null);
|
|
601
|
-
setStyleProperty(element, 'animation-direction', getDirection() || null);
|
|
602
|
-
const iterationsCount = getIterations() === Infinity ? 'infinite' : getIterations().toString();
|
|
603
|
-
setStyleProperty(element, 'animation-iteration-count', iterationsCount);
|
|
604
|
-
if (toggleAnimationName) {
|
|
605
|
-
setStyleProperty(element, 'animation-name', `${keyframeName}-alt`);
|
|
606
|
-
}
|
|
607
|
-
raf(() => {
|
|
608
|
-
setStyleProperty(element, 'animation-name', keyframeName || null);
|
|
609
|
-
});
|
|
610
|
-
});
|
|
611
|
-
});
|
|
612
|
-
};
|
|
613
541
|
const update = (deep = false, toggleAnimationName = true, step) => {
|
|
614
542
|
if (deep) {
|
|
615
543
|
childAnimations.forEach((animation) => {
|
|
@@ -619,9 +547,6 @@ export const createAnimation = (animationId) => {
|
|
|
619
547
|
if (supportsWebAnimations) {
|
|
620
548
|
updateWebAnimation(step);
|
|
621
549
|
}
|
|
622
|
-
else {
|
|
623
|
-
updateCSSAnimation(toggleAnimationName, step);
|
|
624
|
-
}
|
|
625
550
|
return ani;
|
|
626
551
|
};
|
|
627
552
|
const progressStart = (forceLinearEasing = false, step) => {
|
|
@@ -704,10 +629,6 @@ export const createAnimation = (animationId) => {
|
|
|
704
629
|
pauseAnimation();
|
|
705
630
|
return ani;
|
|
706
631
|
};
|
|
707
|
-
const onAnimationEndFallback = () => {
|
|
708
|
-
cssAnimationsTimerFallback = undefined;
|
|
709
|
-
animationFinish();
|
|
710
|
-
};
|
|
711
632
|
const clearCSSAnimationsTimeout = () => {
|
|
712
633
|
if (cssAnimationsTimerFallback) {
|
|
713
634
|
clearTimeout(cssAnimationsTimerFallback);
|
|
@@ -715,56 +636,7 @@ export const createAnimation = (animationId) => {
|
|
|
715
636
|
};
|
|
716
637
|
const playCSSAnimations = () => {
|
|
717
638
|
clearCSSAnimationsTimeout();
|
|
718
|
-
|
|
719
|
-
elements.forEach((element) => {
|
|
720
|
-
if (_keyframes.length > 0) {
|
|
721
|
-
setStyleProperty(element, 'animation-play-state', 'running');
|
|
722
|
-
}
|
|
723
|
-
});
|
|
724
|
-
});
|
|
725
|
-
if (_keyframes.length === 0 || elements.length === 0) {
|
|
726
|
-
animationFinish();
|
|
727
|
-
}
|
|
728
|
-
else {
|
|
729
|
-
/**
|
|
730
|
-
* This is a catchall in the event that a CSS Animation did not finish.
|
|
731
|
-
* The Web Animations API has mechanisms in place for preventing this.
|
|
732
|
-
* CSS Animations will not fire an `animationend` event
|
|
733
|
-
* for elements with `display: none`. The Web Animations API
|
|
734
|
-
* accounts for this, but using raw CSS Animations requires
|
|
735
|
-
* this workaround.
|
|
736
|
-
*/
|
|
737
|
-
const animationDelay = getDelay() || 0;
|
|
738
|
-
const animationDuration = getDuration() || 0;
|
|
739
|
-
const animationIterations = getIterations() || 1;
|
|
740
|
-
// No need to set a timeout when animation has infinite iterations
|
|
741
|
-
if (isFinite(animationIterations)) {
|
|
742
|
-
cssAnimationsTimerFallback = setTimeout(onAnimationEndFallback, animationDelay + animationDuration * animationIterations + ANIMATION_END_FALLBACK_PADDING_MS);
|
|
743
|
-
}
|
|
744
|
-
animationEnd(elements[0], () => {
|
|
745
|
-
clearCSSAnimationsTimeout();
|
|
746
|
-
/**
|
|
747
|
-
* Ensure that clean up
|
|
748
|
-
* is always done a frame
|
|
749
|
-
* before the onFinish handlers
|
|
750
|
-
* are fired. Otherwise, there
|
|
751
|
-
* may be flickering if a new
|
|
752
|
-
* animation is started on the same
|
|
753
|
-
* element too quickly
|
|
754
|
-
*/
|
|
755
|
-
raf(() => {
|
|
756
|
-
clearCSSAnimationPlayState();
|
|
757
|
-
raf(animationFinish);
|
|
758
|
-
});
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
const clearCSSAnimationPlayState = () => {
|
|
763
|
-
elements.forEach((element) => {
|
|
764
|
-
removeStyleProperty(element, 'animation-duration');
|
|
765
|
-
removeStyleProperty(element, 'animation-delay');
|
|
766
|
-
removeStyleProperty(element, 'animation-play-state');
|
|
767
|
-
});
|
|
639
|
+
animationFinish();
|
|
768
640
|
};
|
|
769
641
|
const playWebAnimations = () => {
|
|
770
642
|
webAnimations.forEach((animation) => {
|
|
@@ -779,9 +651,6 @@ export const createAnimation = (animationId) => {
|
|
|
779
651
|
setAnimationStep(0);
|
|
780
652
|
updateWebAnimation();
|
|
781
653
|
}
|
|
782
|
-
else {
|
|
783
|
-
updateCSSAnimation();
|
|
784
|
-
}
|
|
785
654
|
};
|
|
786
655
|
const play = (opts) => {
|
|
787
656
|
return new Promise((resolve) => {
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { createAnimation } from "../animation";
|
|
5
|
-
import { processKeyframes } from "../animation-utils";
|
|
6
5
|
import { getTimeGivenProgression } from "../cubic-bezier";
|
|
7
6
|
describe('Animation Class', () => {
|
|
8
7
|
describe('progressEnd callbacks', () => {
|
|
@@ -48,84 +47,6 @@ describe('Animation Class', () => {
|
|
|
48
47
|
animation.play();
|
|
49
48
|
expect(animation.isRunning()).toEqual(false);
|
|
50
49
|
});
|
|
51
|
-
it('should be running', () => {
|
|
52
|
-
const el = document.createElement('div');
|
|
53
|
-
animation.addElement(el);
|
|
54
|
-
animation.keyframes([
|
|
55
|
-
{ transform: 'scale(1)', opacity: 1, offset: 0 },
|
|
56
|
-
{ transform: 'scale(0)', opacity: 0, offset: 1 },
|
|
57
|
-
]);
|
|
58
|
-
animation.duration(250);
|
|
59
|
-
animation.play();
|
|
60
|
-
expect(animation.isRunning()).toEqual(true);
|
|
61
|
-
});
|
|
62
|
-
it('should not be running after finishing the animation', async () => {
|
|
63
|
-
const el = document.createElement('div');
|
|
64
|
-
animation.addElement(el);
|
|
65
|
-
animation.keyframes([
|
|
66
|
-
{ transform: 'scale(1)', opacity: 1, offset: 0 },
|
|
67
|
-
{ transform: 'scale(0)', opacity: 0, offset: 1 },
|
|
68
|
-
]);
|
|
69
|
-
animation.duration(250);
|
|
70
|
-
await animation.play();
|
|
71
|
-
expect(animation.isRunning()).toEqual(false);
|
|
72
|
-
});
|
|
73
|
-
it('should not be running after calling pause', () => {
|
|
74
|
-
const el = document.createElement('div');
|
|
75
|
-
animation.addElement(el);
|
|
76
|
-
animation.keyframes([
|
|
77
|
-
{ transform: 'scale(1)', opacity: 1, offset: 0 },
|
|
78
|
-
{ transform: 'scale(0)', opacity: 0, offset: 1 },
|
|
79
|
-
]);
|
|
80
|
-
animation.duration(250);
|
|
81
|
-
animation.play();
|
|
82
|
-
expect(animation.isRunning()).toEqual(true);
|
|
83
|
-
animation.pause();
|
|
84
|
-
expect(animation.isRunning()).toEqual(false);
|
|
85
|
-
});
|
|
86
|
-
it('should not be running when doing progress steps', () => {
|
|
87
|
-
const el = document.createElement('div');
|
|
88
|
-
animation.addElement(el);
|
|
89
|
-
animation.keyframes([
|
|
90
|
-
{ transform: 'scale(1)', opacity: 1, offset: 0 },
|
|
91
|
-
{ transform: 'scale(0)', opacity: 0, offset: 1 },
|
|
92
|
-
]);
|
|
93
|
-
animation.duration(250);
|
|
94
|
-
animation.play();
|
|
95
|
-
animation.progressStart();
|
|
96
|
-
expect(animation.isRunning()).toEqual(false);
|
|
97
|
-
});
|
|
98
|
-
it('should be running after calling progressEnd', () => {
|
|
99
|
-
const el = document.createElement('div');
|
|
100
|
-
animation.addElement(el);
|
|
101
|
-
animation.keyframes([
|
|
102
|
-
{ transform: 'scale(1)', opacity: 1, offset: 0 },
|
|
103
|
-
{ transform: 'scale(0)', opacity: 0, offset: 1 },
|
|
104
|
-
]);
|
|
105
|
-
animation.duration(250);
|
|
106
|
-
animation.play();
|
|
107
|
-
animation.progressStart();
|
|
108
|
-
animation.progressEnd(1, 0);
|
|
109
|
-
expect(animation.isRunning()).toEqual(true);
|
|
110
|
-
});
|
|
111
|
-
it('should not be running after playing to beginning', async () => {
|
|
112
|
-
const el = document.createElement('div');
|
|
113
|
-
animation.addElement(el);
|
|
114
|
-
animation.keyframes([
|
|
115
|
-
{ transform: 'scale(1)', opacity: 1, offset: 0 },
|
|
116
|
-
{ transform: 'scale(0)', opacity: 0, offset: 1 },
|
|
117
|
-
]);
|
|
118
|
-
animation.duration(250);
|
|
119
|
-
await animation.play();
|
|
120
|
-
animation.progressStart();
|
|
121
|
-
animation.progressEnd(0, 0);
|
|
122
|
-
await new Promise((resolve) => {
|
|
123
|
-
animation.onFinish(() => {
|
|
124
|
-
expect(animation.isRunning()).toEqual(false);
|
|
125
|
-
resolve();
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
50
|
});
|
|
130
51
|
describe('addElement()', () => {
|
|
131
52
|
let animation;
|
|
@@ -183,16 +104,6 @@ describe('Animation Class', () => {
|
|
|
183
104
|
]);
|
|
184
105
|
expect(animation.getKeyframes().length).toEqual(3);
|
|
185
106
|
});
|
|
186
|
-
it('should convert properties for CSS Animations', () => {
|
|
187
|
-
const processedKeyframes = processKeyframes([
|
|
188
|
-
{ borderRadius: '0px', easing: 'ease-in', offset: 0 },
|
|
189
|
-
{ borderRadius: '4px', easing: 'ease-out', offset: 1 },
|
|
190
|
-
]);
|
|
191
|
-
expect(processedKeyframes).toEqual([
|
|
192
|
-
{ 'border-radius': '0px', 'animation-timing-function': 'ease-in', offset: 0 },
|
|
193
|
-
{ 'border-radius': '4px', 'animation-timing-function': 'ease-out', offset: 1 },
|
|
194
|
-
]);
|
|
195
|
-
});
|
|
196
107
|
it('should set the from keyframe properly', () => {
|
|
197
108
|
animation.from('opacity', 0).from('background', 'red').from('color', 'purple');
|
|
198
109
|
const keyframes = animation.getKeyframes();
|
|
@@ -12,10 +12,6 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
|
|
|
12
12
|
await page.goto('/src/utils/animation/test/animationbuilder', config);
|
|
13
13
|
await testNavigation(page);
|
|
14
14
|
});
|
|
15
|
-
test('ios-transition css', async ({ page }) => {
|
|
16
|
-
await page.goto('/src/utils/animation/test/animationbuilder?ionic:_forceCSSAnimations=true', config);
|
|
17
|
-
await testNavigation(page);
|
|
18
|
-
});
|
|
19
15
|
});
|
|
20
16
|
});
|
|
21
17
|
const testNavigation = async (page) => {
|
|
@@ -8,10 +8,6 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
|
8
8
|
await page.goto('/src/utils/animation/test/basic', config);
|
|
9
9
|
await testPage(page);
|
|
10
10
|
});
|
|
11
|
-
test(`should resolve using css animations`, async ({ page }) => {
|
|
12
|
-
await page.goto('/src/utils/animation/test/basic?ionic:_forceCSSAnimations=true', config);
|
|
13
|
-
await testPage(page);
|
|
14
|
-
});
|
|
15
11
|
});
|
|
16
12
|
});
|
|
17
13
|
const testPage = async (page) => {
|
|
@@ -9,10 +9,6 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
|
9
9
|
await page.goto('/src/utils/animation/test/display', config);
|
|
10
10
|
await testDisplay(page);
|
|
11
11
|
});
|
|
12
|
-
test(`should resolve using css animations`, async ({ page }) => {
|
|
13
|
-
await page.goto('/src/utils/animation/test/display?ionic:_forceCSSAnimations=true', config);
|
|
14
|
-
await testDisplay(page);
|
|
15
|
-
});
|
|
16
12
|
});
|
|
17
13
|
});
|
|
18
14
|
const testDisplay = async (page) => {
|
|
@@ -9,10 +9,6 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
|
9
9
|
await page.goto('/src/utils/animation/test/hooks', config);
|
|
10
10
|
await testHooks(page);
|
|
11
11
|
});
|
|
12
|
-
test(`should fire hooks using css animations`, async ({ page }) => {
|
|
13
|
-
await page.goto('/src/utils/animation/test/hooks?ionic:_forceCSSAnimations=true', config);
|
|
14
|
-
await testHooks(page);
|
|
15
|
-
});
|
|
16
12
|
});
|
|
17
13
|
});
|
|
18
14
|
const testHooks = async (page) => {
|
|
@@ -9,13 +9,6 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
|
9
9
|
await page.goto('/src/utils/animation/test/multiple', config);
|
|
10
10
|
await testMultiple(page);
|
|
11
11
|
});
|
|
12
|
-
/**
|
|
13
|
-
* CSS animations will occasionally resolve out of order, so we skip for now
|
|
14
|
-
*/
|
|
15
|
-
test.skip(`should resolve grouped animations using css animations`, async ({ page }) => {
|
|
16
|
-
await page.goto('/src/utils/animation/test/multiple?ionic:_forceCSSAnimations=true', config);
|
|
17
|
-
await testMultiple(page);
|
|
18
|
-
});
|
|
19
12
|
});
|
|
20
13
|
});
|
|
21
14
|
const testMultiple = async (page) => {
|
|
@@ -247,52 +247,6 @@ export const focusVisibleElement = (el) => {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
/**
|
|
251
|
-
* This method is used for Ionic's input components that use Shadow DOM. In
|
|
252
|
-
* order to properly label the inputs to work with screen readers, we need
|
|
253
|
-
* to get the text content of the label outside of the shadow root and pass
|
|
254
|
-
* it to the input inside of the shadow root.
|
|
255
|
-
*
|
|
256
|
-
* Referencing label elements by id from outside of the component is
|
|
257
|
-
* impossible due to the shadow boundary, read more here:
|
|
258
|
-
* https://developer.salesforce.com/blogs/2020/01/accessibility-for-web-components.html
|
|
259
|
-
*
|
|
260
|
-
* @param componentEl The shadow element that needs the aria label
|
|
261
|
-
* @param inputId The unique identifier for the input
|
|
262
|
-
*/
|
|
263
|
-
export const getAriaLabel = (componentEl, inputId) => {
|
|
264
|
-
let labelText;
|
|
265
|
-
// If the user provides their own label via the aria-labelledby attr
|
|
266
|
-
// we should use that instead of looking for an ion-label
|
|
267
|
-
const labelledBy = componentEl.getAttribute('aria-labelledby');
|
|
268
|
-
// Grab the id off of the component in case they are using
|
|
269
|
-
// a custom label using the label element
|
|
270
|
-
const componentId = componentEl.id;
|
|
271
|
-
let labelId = labelledBy !== null && labelledBy.trim() !== '' ? labelledBy : inputId + '-lbl';
|
|
272
|
-
let label = labelledBy !== null && labelledBy.trim() !== '' ? document.getElementById(labelledBy) : null;
|
|
273
|
-
if (label) {
|
|
274
|
-
if (labelledBy === null) {
|
|
275
|
-
label.id = labelId;
|
|
276
|
-
}
|
|
277
|
-
labelText = label.textContent;
|
|
278
|
-
label.setAttribute('aria-hidden', 'true');
|
|
279
|
-
// if there is no label, check to see if the user has provided
|
|
280
|
-
// one by setting an id on the component and using the label element
|
|
281
|
-
}
|
|
282
|
-
else if (componentId.trim() !== '') {
|
|
283
|
-
label = document.querySelector(`label[for="${componentId}"]`);
|
|
284
|
-
if (label) {
|
|
285
|
-
if (label.id !== '') {
|
|
286
|
-
labelId = label.id;
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
label.id = labelId = `${componentId}-lbl`;
|
|
290
|
-
}
|
|
291
|
-
labelText = label.textContent;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
return { label, labelId, labelText };
|
|
295
|
-
};
|
|
296
250
|
/**
|
|
297
251
|
* This method is used to add a hidden input to a host element that contains
|
|
298
252
|
* a Shadow DOM. It does not add the input inside of the Shadow root which
|