voyager-ionic-core 8.0.0-beta.3 → 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 -4
- package/components/index7.js +3 -1
- package/components/index9.js +5 -34
- 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 +3 -3
- 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-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 +3 -3
- 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 -3
- 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-column2.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/dist/cjs/{animation-58ecfe20.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-df3a2b04.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-71097d9c.js → helpers-afaa9001.js} +0 -4
- package/dist/cjs/{index-f52c6d38.js → index-073c7cdc.js} +4 -0
- package/dist/cjs/{index-7479ea5a.js → index-5b6a7459.js} +1 -1
- package/dist/cjs/{index-289297dc.js → index-5cf05f94.js} +4 -4
- package/dist/cjs/{index-a91a3e24.js → index-9509ecad.js} +5 -34
- package/dist/cjs/{index-2d21d526.js → index-af6d0fbb.js} +16 -4
- package/dist/cjs/{index-14ae0c27.js → index-ff66cc7c.js} +4 -4
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{input-shims-77b14f24.js → input-shims-20d639e6.js} +2 -2
- package/dist/cjs/{input.utils-ca74d73a.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 +17 -17
- 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 +3 -3
- package/dist/cjs/ion-datetime-button.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime_3.cjs.entry.js +13 -13
- package/dist/cjs/ion-fab_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-img.cjs.entry.js +3 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- 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 +7 -7
- 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 +12 -12
- 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 +7 -8
- 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-8e0ca8ed.js → ios.transition-06673f18.js} +4 -4
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-5d0f134b.js → md.transition-4d7bb4b1.js} +4 -4
- package/dist/cjs/{notch-controller-0042ad49.js → notch-controller-d69150f5.js} +1 -1
- package/dist/cjs/{overlays-30b83581.js → overlays-6487955a.js} +4 -4
- package/dist/cjs/{status-tap-dc3b8fda.js → status-tap-0be20572.js} +3 -3
- package/dist/cjs/{swipe-back-49825f1f.js → swipe-back-f38a434a.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- 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/round/button.e2e.js +39 -4
- package/dist/collection/components/input/input.ios.css +9 -0
- package/dist/collection/components/input/input.js +27 -30
- package/dist/collection/components/input/input.md.css +9 -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-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/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-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/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 +10 -9
- 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 -26
- 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/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/native/haptic.js +6 -54
- package/dist/collection/utils/tap-click/index.js +5 -34
- package/dist/docs.json +210 -35
- package/dist/esm/{animation-6a3c0abb.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-3dede018.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-eab4f597.js → helpers-da915de8.js} +1 -4
- package/dist/esm/{index-95a691d4.js → index-10916999.js} +4 -4
- package/dist/esm/{index-044b5a86.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-5d6a0317.js → index-6e4709ff.js} +16 -4
- package/dist/esm/{index-fa221975.js → index-79b30591.js} +5 -34
- package/dist/esm/{index-f7dc70ba.js → index-e2cf2ceb.js} +3 -1
- package/dist/esm/{index-136e99c8.js → index-f1f5de26.js} +4 -4
- package/dist/esm/index.js +11 -11
- package/dist/esm/{input-shims-196afa11.js → input-shims-4530285e.js} +2 -2
- package/dist/esm/{input.utils-426cc674.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 +17 -17
- 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 +3 -3
- package/dist/esm/ion-datetime-button.entry.js +3 -3
- package/dist/esm/ion-datetime_3.entry.js +13 -13
- package/dist/esm/ion-fab_3.entry.js +4 -4
- package/dist/esm/ion-img.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/ion-picker.entry.js +2 -2
- 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 +7 -7
- 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 +12 -12
- 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 +7 -8
- 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-d1c8eea2.js → ios.transition-8e181a7e.js} +4 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-0d2de76d.js → md.transition-f1c3c737.js} +4 -4
- package/dist/esm/{notch-controller-cff691e5.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm/{overlays-d41f74ac.js → overlays-9472c98b.js} +4 -4
- package/dist/esm/{status-tap-45595148.js → status-tap-39da9160.js} +3 -3
- package/dist/esm/{swipe-back-5aa5feeb.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-eab4f597.js → helpers-da915de8.js} +1 -1
- package/dist/esm-es5/index-10916999.js +4 -0
- package/dist/esm-es5/{index-044b5a86.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-136e99c8.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-426cc674.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-d1c8eea2.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-cff691e5.js → notch-controller-55b09e11.js} +1 -1
- package/dist/esm-es5/{overlays-d41f74ac.js → overlays-9472c98b.js} +1 -1
- package/dist/esm-es5/{status-tap-45595148.js → status-tap-39da9160.js} +1 -1
- package/dist/esm-es5/{swipe-back-5aa5feeb.js → swipe-back-b613d7db.js} +1 -1
- package/dist/html.html-data.json +86 -18
- 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-92b05b70.system.entry.js → p-04070329.system.entry.js} +1 -1
- package/dist/ionic/p-049fa018.system.entry.js +4 -0
- package/dist/ionic/{p-325c61a4.js → p-06e58c4e.js} +1 -1
- package/dist/ionic/{p-7adde43c.system.entry.js → p-07ae133d.system.entry.js} +1 -1
- package/dist/ionic/p-0aa4682e.entry.js +4 -0
- package/dist/ionic/{p-d286cfbe.system.entry.js → p-0bbb6edf.system.entry.js} +1 -1
- package/dist/ionic/{p-4a3055ef.system.js → p-0c06e09b.system.js} +1 -1
- package/dist/ionic/{p-d8090ce4.entry.js → p-0de546bb.entry.js} +1 -1
- package/dist/ionic/{p-2852c537.system.entry.js → p-0ebb1fe7.system.entry.js} +1 -1
- package/dist/ionic/p-0f2d99a6.entry.js +4 -0
- package/dist/ionic/{p-1685d81c.system.entry.js → p-100bedc4.system.entry.js} +1 -1
- package/dist/ionic/{p-91567c90.system.entry.js → p-105f7d62.system.entry.js} +1 -1
- package/dist/ionic/{p-185db19b.system.entry.js → p-1672c4fd.system.entry.js} +1 -1
- package/dist/ionic/{p-fb870c48.entry.js → p-17978fce.entry.js} +1 -1
- package/dist/ionic/p-184fbc9e.system.js +4 -0
- package/dist/ionic/{p-2cc2c631.system.js → p-19ea7bff.system.js} +1 -1
- package/dist/ionic/{p-29ef3b9b.entry.js → p-1b235142.entry.js} +1 -1
- package/dist/ionic/{p-fe35b5c0.entry.js → p-1cff9cad.entry.js} +1 -1
- package/dist/ionic/p-1e955a45.system.js +4 -0
- package/dist/ionic/p-1f9cdee2.entry.js +4 -0
- package/dist/ionic/p-23b89985.entry.js +4 -0
- package/dist/ionic/{p-07759435.system.js → p-25575222.system.js} +1 -1
- package/dist/ionic/{p-6d9f8fac.system.js → p-266fc56e.system.js} +1 -1
- package/dist/ionic/{p-3ae4a2a2.entry.js → p-2e12bda2.entry.js} +1 -1
- package/dist/ionic/{p-23838a94.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-ebc5b98f.entry.js → p-3391d9a3.entry.js} +1 -1
- package/dist/ionic/{p-a600a3e3.js → p-34b11c24.js} +1 -1
- package/dist/ionic/{p-4d325220.system.entry.js → p-352f7037.system.entry.js} +1 -1
- package/dist/ionic/{p-2130b526.entry.js → p-35b9e842.entry.js} +1 -1
- package/dist/ionic/{p-668607c2.system.js → p-3ad285e3.system.js} +1 -1
- package/dist/ionic/{p-dd9168f3.entry.js → p-3c70b01b.entry.js} +1 -1
- package/dist/ionic/{p-c6f9f3eb.js → p-3cc276f4.js} +1 -1
- package/dist/ionic/{p-d0496c22.system.entry.js → p-3d6e882f.system.entry.js} +1 -1
- package/dist/ionic/{p-d8ffe61c.system.entry.js → p-3e3b34f7.system.entry.js} +1 -1
- package/dist/ionic/{p-f1d1524c.entry.js → p-3f70bfba.entry.js} +1 -1
- package/dist/ionic/{p-9e6a5e3d.system.entry.js → p-43505ff8.system.entry.js} +1 -1
- package/dist/ionic/{p-a88b41d1.system.entry.js → p-4429fc97.system.entry.js} +2 -2
- package/dist/ionic/{p-70c278c4.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-7d29dff0.system.entry.js → p-49b6fee0.system.entry.js} +1 -1
- package/dist/ionic/{p-6a448415.entry.js → p-4a615fea.entry.js} +1 -1
- package/dist/ionic/{p-f85a4df5.system.js → p-4dd82d9d.system.js} +1 -1
- package/dist/ionic/{p-6a62da36.system.js → p-5033128d.system.js} +2 -2
- package/dist/ionic/{p-17ee2784.system.entry.js → p-510578f3.system.entry.js} +1 -1
- package/dist/ionic/{p-40976b1c.system.entry.js → p-51b68ec9.system.entry.js} +1 -1
- package/dist/ionic/{p-610f0e12.entry.js → p-51ff648c.entry.js} +1 -1
- package/dist/ionic/p-546433d2.js +4 -0
- package/dist/ionic/{p-976c7c54.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-ba0290d1.entry.js → p-5ae49f12.entry.js} +1 -1
- package/dist/ionic/{p-ec34194e.system.entry.js → p-5b1273f4.system.entry.js} +2 -2
- package/dist/ionic/p-5d3f6707.entry.js +4 -0
- package/dist/ionic/{p-bb5eba12.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-5e39b9d8.entry.js → p-6744e460.entry.js} +1 -1
- package/dist/ionic/{p-42fecf9c.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-5a277399.system.entry.js → p-71688099.system.entry.js} +1 -1
- package/dist/ionic/{p-282bd5f9.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-2bb65deb.entry.js → p-75280815.entry.js} +1 -1
- package/dist/ionic/{p-98c86cdd.js → p-75cddcc9.js} +1 -1
- package/dist/ionic/{p-85f43165.system.entry.js → p-76907c2f.system.entry.js} +1 -1
- package/dist/ionic/p-7d9eefb3.system.js +4 -0
- package/dist/ionic/{p-3cd3214e.entry.js → p-7df2c495.entry.js} +1 -1
- package/dist/ionic/p-7fc505bf.entry.js +4 -0
- package/dist/ionic/{p-8a881b39.entry.js → p-83321ee8.entry.js} +1 -1
- 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-ed3463be.entry.js → p-896111fa.entry.js} +1 -1
- package/dist/ionic/p-89b61afc.js +4 -0
- package/dist/ionic/{p-db7fcadb.system.entry.js → p-8bd567ba.system.entry.js} +2 -2
- package/dist/ionic/{p-02a803dc.entry.js → p-8e9ac22d.entry.js} +1 -1
- package/dist/ionic/p-9146695e.system.js +4 -0
- package/dist/ionic/{p-a3dae2ce.js → p-96cc4814.js} +1 -1
- package/dist/ionic/{p-7680d0ec.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-e0d52ee3.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/p-a15ddedb.system.js +4 -0
- package/dist/ionic/{p-a6b8342e.system.entry.js → p-a1b4e619.system.entry.js} +1 -1
- package/dist/ionic/{p-d372938e.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-54c31b4f.entry.js → p-a88fdfac.entry.js} +1 -1
- package/dist/ionic/{p-853bd866.system.js → p-a8f02173.system.js} +1 -1
- package/dist/ionic/p-a93873de.system.js +4 -0
- package/dist/ionic/{p-9b5d033a.system.entry.js → p-aa110ca0.system.entry.js} +1 -1
- package/dist/ionic/{p-103ec049.system.entry.js → p-aa4f2703.system.entry.js} +1 -1
- package/dist/ionic/{p-a94092b9.entry.js → p-ab85debb.entry.js} +1 -1
- package/dist/ionic/{p-1bb1ef31.system.entry.js → p-ac4e2a74.system.entry.js} +1 -1
- package/dist/ionic/p-ac9f44a8.system.entry.js +4 -0
- package/dist/ionic/{p-364044f0.js → p-b51e4004.js} +1 -1
- package/dist/ionic/{p-d5ab02f5.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-7002bc75.entry.js → p-c04d5a75.entry.js} +1 -1
- package/dist/ionic/{p-cbf0a046.system.entry.js → p-c198e1e1.system.entry.js} +1 -1
- package/dist/ionic/{p-bb608006.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-c8383c20.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-23efc001.entry.js → p-c8510ca2.entry.js} +1 -1
- package/dist/ionic/{p-a4c287f9.entry.js → p-c8f2b769.entry.js} +1 -1
- package/dist/ionic/{p-b1d9b078.entry.js → p-c99ccdc9.entry.js} +1 -1
- package/dist/ionic/{p-af2e3481.system.entry.js → p-c9c39c98.system.entry.js} +1 -1
- package/dist/ionic/{p-8ed900e4.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-d79542bd.system.js +4 -0
- package/dist/ionic/p-d8067ea4.system.entry.js +4 -0
- package/dist/ionic/p-d8f66669.entry.js +4 -0
- package/dist/ionic/{p-b141e253.entry.js → p-d98c0112.entry.js} +1 -1
- package/dist/ionic/p-da2b833b.js +4 -0
- package/dist/ionic/{p-4d361c89.entry.js → p-dc1372e0.entry.js} +1 -1
- package/dist/ionic/{p-1807190c.entry.js → p-df48edd6.entry.js} +1 -1
- package/dist/ionic/{p-a0e8f913.entry.js → p-df6fa126.entry.js} +1 -1
- package/dist/ionic/{p-fa8ee4c3.entry.js → p-e8a0e731.entry.js} +1 -1
- package/dist/ionic/{p-8dd3d9c3.system.entry.js → p-ea2c16b5.system.entry.js} +2 -2
- package/dist/ionic/p-ea4be6ac.system.js +4 -0
- package/dist/ionic/{p-43c751c6.system.entry.js → p-eb3da535.system.entry.js} +1 -1
- package/dist/ionic/{p-2f6bc4a9.system.entry.js → p-ec2d3928.system.entry.js} +1 -1
- package/dist/ionic/p-f0392d49.entry.js +4 -0
- package/dist/ionic/{p-978f4710.js → p-f4cb521c.js} +1 -1
- package/dist/ionic/{p-00a6f38d.entry.js → p-f818b01a.entry.js} +1 -1
- package/dist/ionic/p-f94cbfe9.js +4 -0
- package/dist/ionic/{p-c41e0b5f.system.entry.js → p-fab4ecad.system.entry.js} +1 -1
- package/dist/ionic/{p-6a888b39.system.entry.js → p-fb02eeec.system.entry.js} +1 -1
- package/dist/ionic/{p-5ac63b19.system.entry.js → p-fb97326f.system.entry.js} +1 -1
- package/dist/ionic/{p-1a8bbd2e.entry.js → p-fbd30ec7.entry.js} +1 -1
- package/dist/ionic/{p-d4d17d47.entry.js → p-fda4872f.entry.js} +1 -1
- package/dist/ionic/{p-294c47cd.system.entry.js → p-ff2323ba.system.entry.js} +1 -1
- package/dist/types/components/button/button.d.ts +5 -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.d.ts +47 -3
- 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/overlays.d.ts +2 -2
- package/hydrate/index.js +282 -428
- package/package.json +1 -1
- package/dist/esm-es5/animation-6a3c0abb.js +0 -4
- package/dist/esm-es5/app-globals-80842d68.js +0 -4
- package/dist/esm-es5/framework-delegate-3dede018.js +0 -4
- package/dist/esm-es5/haptic-554688a5.js +0 -4
- package/dist/esm-es5/index-5d6a0317.js +0 -5
- package/dist/esm-es5/index-95a691d4.js +0 -4
- package/dist/esm-es5/index-fa221975.js +0 -4
- package/dist/esm-es5/input-shims-196afa11.js +0 -4
- package/dist/esm-es5/md.transition-0d2de76d.js +0 -4
- package/dist/ionic/p-0051ceb9.entry.js +0 -4
- package/dist/ionic/p-08a8971e.system.js +0 -4
- package/dist/ionic/p-0e4c9e45.system.js +0 -4
- package/dist/ionic/p-17043350.system.js +0 -4
- package/dist/ionic/p-1c801dd4.entry.js +0 -4
- package/dist/ionic/p-22b5c888.system.entry.js +0 -4
- package/dist/ionic/p-23cff6c1.system.js +0 -4
- package/dist/ionic/p-244f56fd.js +0 -4
- package/dist/ionic/p-27c668a0.entry.js +0 -4
- package/dist/ionic/p-2f53c3eb.js +0 -4
- package/dist/ionic/p-34c50a42.system.entry.js +0 -4
- package/dist/ionic/p-3785c067.entry.js +0 -4
- package/dist/ionic/p-3e6e53fe.system.entry.js +0 -4
- package/dist/ionic/p-42f189f4.js +0 -4
- package/dist/ionic/p-5b2951c1.system.entry.js +0 -4
- package/dist/ionic/p-5b52897c.js +0 -4
- package/dist/ionic/p-7d4d9c40.system.entry.js +0 -4
- package/dist/ionic/p-7e7d534c.js +0 -4
- package/dist/ionic/p-831269de.js +0 -4
- package/dist/ionic/p-86c17a09.entry.js +0 -4
- package/dist/ionic/p-ac6db4c2.js +0 -4
- package/dist/ionic/p-b0aaa59a.system.entry.js +0 -4
- package/dist/ionic/p-c385e49d.entry.js +0 -4
- package/dist/ionic/p-c3f5d0e7.js +0 -4
- package/dist/ionic/p-c629d22b.system.js +0 -5
- package/dist/ionic/p-c995da88.system.js +0 -4
- package/dist/ionic/p-d704f798.system.js +0 -4
- package/dist/ionic/p-d80b7e31.system.js +0 -4
- package/dist/ionic/p-dad515dc.js +0 -4
- package/dist/ionic/p-dfb6de03.system.js +0 -4
- package/dist/ionic/p-e3611c25.entry.js +0 -4
- package/dist/ionic/p-e4ca94bd.js +0 -4
- package/dist/ionic/p-e7b0b64d.system.js +0 -4
- package/dist/ionic/p-ec613387.entry.js +0 -4
- package/dist/ionic/p-f7a1318d.system.entry.js +0 -4
- package/dist/ionic/p-f7af3144.system.entry.js +0 -4
- package/dist/ionic/p-f8502e85.js +0 -5
- package/dist/ionic/p-fe1fd531.system.js +0 -4
package/components/ion-toggle.js
CHANGED
|
@@ -6,7 +6,7 @@ import { i as inheritAriaAttributes, e as renderHiddenInput } from './helpers.js
|
|
|
6
6
|
import { d as hapticSelection } from './haptic.js';
|
|
7
7
|
import { i as isRTL } from './dir.js';
|
|
8
8
|
import { c as createColorClasses, h as hostContext } from './theme.js';
|
|
9
|
-
import {
|
|
9
|
+
import { w as checkmarkOutline, x as removeOutline, y as ellipseOutline } from './index7.js';
|
|
10
10
|
import { c as config, b as getIonMode } from './ionic-global.js';
|
|
11
11
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
12
12
|
|
|
@@ -161,7 +161,7 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
161
161
|
const value = this.getValue();
|
|
162
162
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
163
163
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
164
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: '9ea705862e0a6c8c3250d19d6487ba5a312557f4', onClick: this.onClick, class: createColorClasses(color, {
|
|
165
165
|
[mode]: true,
|
|
166
166
|
'in-item': hostContext('ion-item', el),
|
|
167
167
|
'toggle-activated': activated,
|
|
@@ -171,10 +171,10 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
171
171
|
[`toggle-alignment-${alignment}`]: true,
|
|
172
172
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
173
173
|
[`toggle-${rtl}`]: true,
|
|
174
|
-
}) }, h("label", { key: '
|
|
174
|
+
}) }, h("label", { key: '6347141bd48c42c10f358bdf95ee5c3e9719f7e7', class: "toggle-wrapper" }, h("input", Object.assign({ key: 'a81935c322ccdec55723986bc69556833e057b7b', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: '0ab294895807335c63c9a31685d861a9f75f0129', class: {
|
|
175
175
|
'label-text-wrapper': true,
|
|
176
176
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
177
|
-
}, part: "label" }, h("slot", { key: '
|
|
177
|
+
}, part: "label" }, h("slot", { key: '918de14911b5c1453ac1b817a92614d80fe81082' })), h("div", { key: 'f7f8b23c1de4eacdf912034286d51d88dde09699', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
178
178
|
}
|
|
179
179
|
get el() { return this; }
|
|
180
180
|
static get watchers() { return {
|
|
@@ -63,10 +63,10 @@ const Toolbar = /*@__PURE__*/ proxyCustomElement(class Toolbar extends HTMLEleme
|
|
|
63
63
|
this.childrenStyles.forEach((value) => {
|
|
64
64
|
Object.assign(childStyles, value);
|
|
65
65
|
});
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'f11da98ce3398f95930cd6f5b95783a5b658e206', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
|
|
67
67
|
[mode]: true,
|
|
68
68
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
69
|
-
})) }, h("div", { key: '
|
|
69
|
+
})) }, h("div", { key: '2e473c8bebf448f411ec1a579f0c81eb05310c56', class: "toolbar-background" }), h("div", { key: 'cf2d7c69bc028410338942aaea37527c570ccec5', class: "toolbar-container" }, h("slot", { key: '445cbd5299188eef4761c605b4a8d20a61079590', name: "start" }), h("slot", { key: '77675b5c0c0afffe5251ba271f5db23f87339859', name: "secondary" }), h("div", { key: '7d5967c4ad6c0fca7573aa48da707c8b0dfcd052', class: "toolbar-content" }, h("slot", { key: 'ad5530d63df9ca101760fb9f71e3641c66e95b6c' })), h("slot", { key: '35837ac1b7a4a59f000149d480900bc19015b258', name: "primary" }), h("slot", { key: '504904cf46e2190dd0a3aa5b7855b5fc54f73726', name: "end" }))));
|
|
70
70
|
}
|
|
71
71
|
get el() { return this; }
|
|
72
72
|
static get style() { return {
|
package/components/label.js
CHANGED
|
@@ -63,13 +63,13 @@ const Label = /*@__PURE__*/ proxyCustomElement(class Label extends HTMLElement {
|
|
|
63
63
|
render() {
|
|
64
64
|
const position = this.position;
|
|
65
65
|
const mode = getIonMode(this);
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '6820fe45a0aa73dca665a43f588f952e94c194c7', class: createColorClasses(this.color, {
|
|
67
67
|
[mode]: true,
|
|
68
68
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
69
69
|
[`label-${position}`]: position !== undefined,
|
|
70
70
|
[`label-no-animate`]: this.noAnimate,
|
|
71
71
|
'label-rtl': document.dir === 'rtl',
|
|
72
|
-
}) }, h("slot", { key: '
|
|
72
|
+
}) }, h("slot", { key: '79815d03fbfc141573f69eb037592837ca3428ce' })));
|
|
73
73
|
}
|
|
74
74
|
get el() { return this; }
|
|
75
75
|
static get watchers() { return {
|
|
@@ -22,10 +22,10 @@ const ListHeader = /*@__PURE__*/ proxyCustomElement(class ListHeader extends HTM
|
|
|
22
22
|
render() {
|
|
23
23
|
const { lines } = this;
|
|
24
24
|
const mode = getIonMode(this);
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '8788351ca44861f264661da2412d6ce7906126bd', class: createColorClasses(this.color, {
|
|
26
26
|
[mode]: true,
|
|
27
27
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
28
|
-
}) }, h("div", { key: '
|
|
28
|
+
}) }, h("div", { key: '8801cb2fdddb2dab0c649aef1ffbac8f0ba9fbe0', class: "list-header-inner" }, h("slot", { key: '7fc87318333b7ee0c3eee91abc64a9275ad43a26' }))));
|
|
29
29
|
}
|
|
30
30
|
static get style() { return {
|
|
31
31
|
ios: IonListHeaderIosStyle0,
|
package/components/list.js
CHANGED
|
@@ -33,7 +33,7 @@ const List = /*@__PURE__*/ proxyCustomElement(class List extends HTMLElement {
|
|
|
33
33
|
render() {
|
|
34
34
|
const mode = getIonMode(this);
|
|
35
35
|
const { lines, inset } = this;
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '9a0eab31e53ae22dbfa7aa58d779d3976797ea08', role: "list", class: {
|
|
37
37
|
[mode]: true,
|
|
38
38
|
// Used internally for styling
|
|
39
39
|
[`list-${mode}`]: true,
|
|
@@ -86,10 +86,10 @@ const PickerColumnOption = /*@__PURE__*/ proxyCustomElement(class PickerColumnOp
|
|
|
86
86
|
render() {
|
|
87
87
|
const { color, disabled, ariaLabel } = this;
|
|
88
88
|
const mode = getIonMode(this);
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '9333d9ac8e9990fc840f31e00391177d9cd563b3', class: createColorClasses(color, {
|
|
90
90
|
[mode]: true,
|
|
91
91
|
['option-disabled']: disabled,
|
|
92
|
-
}) }, h("button", { key: '
|
|
92
|
+
}) }, h("button", { key: '6ca92bc584587230135982106eab542589fc4c9d', tabindex: "-1", "aria-label": ariaLabel, disabled: disabled, onClick: () => this.onClick() }, h("slot", { key: 'd9a68906017f77143a0691b9bbc59ae2142da6aa' }))));
|
|
93
93
|
}
|
|
94
94
|
get el() { return this; }
|
|
95
95
|
static get watchers() { return {
|
|
@@ -343,9 +343,9 @@ const PickerColumnCmp = /*@__PURE__*/ proxyCustomElement(class PickerColumnCmp e
|
|
|
343
343
|
render() {
|
|
344
344
|
const col = this.col;
|
|
345
345
|
const mode = getIonMode(this);
|
|
346
|
-
return (h(Host, { key: '
|
|
346
|
+
return (h(Host, { key: '90b9d07917c0643cf8a622f090abefcd2846ac96', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
347
347
|
'max-width': this.col.columnWidth,
|
|
348
|
-
} }, col.prefix && (h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '
|
|
348
|
+
} }, col.prefix && (h("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), h("div", { key: '4adca834de9295a18bdb355ebbfa49813f0f93f8', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (h("div", { class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
349
349
|
}
|
|
350
350
|
get el() { return this; }
|
|
351
351
|
static get watchers() { return {
|
package/components/popover.js
CHANGED
|
@@ -1292,9 +1292,9 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1292
1292
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
1293
1293
|
const desktop = isPlatform('desktop');
|
|
1294
1294
|
const enableArrow = arrow && !parentPopover;
|
|
1295
|
-
return (h(Host, Object.assign({ key: '
|
|
1295
|
+
return (h(Host, Object.assign({ key: '8e3ff2681dbd4d2a659633ba2d5419abb2646858', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1296
1296
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1297
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '
|
|
1297
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: '9bdb7b263b7ecaee62fd091dbc55ea3b8cf02b45', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { class: "popover-arrow", part: "arrow" }), h("div", { key: '03bf042a104e8d019bd815ce0cc63a1b503cd644', class: "popover-content", part: "content" }, h("slot", { key: 'dd9e35e0af13da7b98d094cc1d5b1161afaf267b' })))));
|
|
1298
1298
|
}
|
|
1299
1299
|
get el() { return this; }
|
|
1300
1300
|
static get watchers() { return {
|
|
@@ -158,7 +158,7 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class RadioGroup extends HTM
|
|
|
158
158
|
const { label, labelId, el, name, value } = this;
|
|
159
159
|
const mode = getIonMode(this);
|
|
160
160
|
renderHiddenInput(true, el, name, value, false);
|
|
161
|
-
return h(Host, { key: '
|
|
161
|
+
return h(Host, { key: '3d43aa6696c5293b49fc44cf91e3e41c4f4d12df', role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode });
|
|
162
162
|
}
|
|
163
163
|
get el() { return this; }
|
|
164
164
|
static get watchers() { return {
|
package/components/radio.js
CHANGED
|
@@ -146,7 +146,7 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
146
146
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
147
147
|
const mode = getIonMode(this);
|
|
148
148
|
const inItem = hostContext('ion-item', el);
|
|
149
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: '46bb0202f75b6cc81df10de71fbe971dc4dcaa68', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses(color, {
|
|
150
150
|
[mode]: true,
|
|
151
151
|
'in-item': inItem,
|
|
152
152
|
'radio-checked': checked,
|
|
@@ -157,10 +157,10 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
157
157
|
// Focus and active styling should not apply when the radio is in an item
|
|
158
158
|
'ion-activatable': !inItem,
|
|
159
159
|
'ion-focusable': !inItem,
|
|
160
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '
|
|
160
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '55061e8cc857752d963c9e4a65f46727f5c2cd9d', class: "radio-wrapper" }, h("div", { key: '589fd41fccd0e6d007e7bc502067f3f2447e4b80', class: {
|
|
161
161
|
'label-text-wrapper': true,
|
|
162
162
|
'label-text-wrapper-hidden': !hasLabel,
|
|
163
|
-
}, part: "label" }, h("slot", { key: '
|
|
163
|
+
}, part: "label" }, h("slot", { key: '0076f1f3b64c1a0cf2bc511424956a63d6cf2db9' })), h("div", { key: '1505a84e6dc8715f8fcb19ce94fab79e624a0622', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
164
164
|
}
|
|
165
165
|
get el() { return this; }
|
|
166
166
|
static get watchers() { return {
|
|
@@ -66,7 +66,7 @@ const RippleEffect = /*@__PURE__*/ proxyCustomElement(class RippleEffect extends
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
const mode = getIonMode(this);
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: 'ca0ab0deaa7902cbc95e62d4b0c5baeac4387b41', role: "presentation", class: {
|
|
70
70
|
[mode]: true,
|
|
71
71
|
unbounded: this.unbounded,
|
|
72
72
|
} }));
|
|
@@ -117,7 +117,7 @@ const SelectPopover = /*@__PURE__*/ proxyCustomElement(class SelectPopover exten
|
|
|
117
117
|
render() {
|
|
118
118
|
const { header, message, options, subHeader } = this;
|
|
119
119
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
120
|
-
return (h(Host, { key: '
|
|
120
|
+
return (h(Host, { key: '81e4df60ad6dab49bdde30f4c3e460ba425f0c89', class: getIonMode(this) }, h("ion-list", { key: '940f13aab8c6cebbeb7d4b6d4d64b3c67d4c953d' }, header !== undefined && h("ion-list-header", null, header), hasSubHeaderOrMessage && (h("ion-item", null, h("ion-label", { class: "ion-text-wrap" }, subHeader !== undefined && h("h3", null, subHeader), message !== undefined && h("p", null, message)))), this.renderOptions(options))));
|
|
121
121
|
}
|
|
122
122
|
get el() { return this; }
|
|
123
123
|
static get style() { return {
|
package/components/spinner.js
CHANGED
|
@@ -185,7 +185,7 @@ const Spinner = /*@__PURE__*/ proxyCustomElement(class Spinner extends HTMLEleme
|
|
|
185
185
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
return (h(Host, { key: '
|
|
188
|
+
return (h(Host, { key: '68452be6b1ad1699bb8167dfaf235328cb7f5358', class: createColorClasses(self.color, {
|
|
189
189
|
[mode]: true,
|
|
190
190
|
[`spinner-${spinnerName}`]: true,
|
|
191
191
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -4,39 +4,8 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
const index = require('./index-c8d52405.js');
|
|
7
|
-
const helpers = require('./helpers-71097d9c.js');
|
|
8
7
|
|
|
9
8
|
let animationPrefix;
|
|
10
|
-
/**
|
|
11
|
-
* Web Animations requires hyphenated CSS properties
|
|
12
|
-
* to be written in camelCase when animating
|
|
13
|
-
*/
|
|
14
|
-
const processKeyframes = (keyframes) => {
|
|
15
|
-
keyframes.forEach((keyframe) => {
|
|
16
|
-
for (const key in keyframe) {
|
|
17
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
18
|
-
if (keyframe.hasOwnProperty(key)) {
|
|
19
|
-
const value = keyframe[key];
|
|
20
|
-
if (key === 'easing') {
|
|
21
|
-
const newKey = 'animation-timing-function';
|
|
22
|
-
keyframe[newKey] = value;
|
|
23
|
-
delete keyframe[key];
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
const newKey = convertCamelCaseToHypen(key);
|
|
27
|
-
if (newKey !== key) {
|
|
28
|
-
keyframe[newKey] = value;
|
|
29
|
-
delete keyframe[key];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
return keyframes;
|
|
36
|
-
};
|
|
37
|
-
const convertCamelCaseToHypen = (str) => {
|
|
38
|
-
return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
39
|
-
};
|
|
40
9
|
const getAnimationPrefix = (el) => {
|
|
41
10
|
if (animationPrefix === undefined) {
|
|
42
11
|
const supportsUnprefixed = el.style.animationName !== undefined;
|
|
@@ -49,78 +18,6 @@ const setStyleProperty = (element, propertyName, value) => {
|
|
|
49
18
|
const prefix = propertyName.startsWith('animation') ? getAnimationPrefix(element) : '';
|
|
50
19
|
element.style.setProperty(prefix + propertyName, value);
|
|
51
20
|
};
|
|
52
|
-
const removeStyleProperty = (element, propertyName) => {
|
|
53
|
-
const prefix = propertyName.startsWith('animation') ? getAnimationPrefix(element) : '';
|
|
54
|
-
element.style.removeProperty(prefix + propertyName);
|
|
55
|
-
};
|
|
56
|
-
const animationEnd = (el, callback) => {
|
|
57
|
-
let unRegTrans;
|
|
58
|
-
const opts = { passive: true };
|
|
59
|
-
const unregister = () => {
|
|
60
|
-
if (unRegTrans) {
|
|
61
|
-
unRegTrans();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const onTransitionEnd = (ev) => {
|
|
65
|
-
if (el === ev.target) {
|
|
66
|
-
unregister();
|
|
67
|
-
callback(ev);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
if (el) {
|
|
71
|
-
el.addEventListener('webkitAnimationEnd', onTransitionEnd, opts);
|
|
72
|
-
el.addEventListener('animationend', onTransitionEnd, opts);
|
|
73
|
-
unRegTrans = () => {
|
|
74
|
-
el.removeEventListener('webkitAnimationEnd', onTransitionEnd, opts);
|
|
75
|
-
el.removeEventListener('animationend', onTransitionEnd, opts);
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
return unregister;
|
|
79
|
-
};
|
|
80
|
-
// TODO(FW-2832): type
|
|
81
|
-
const generateKeyframeRules = (keyframes = []) => {
|
|
82
|
-
return keyframes
|
|
83
|
-
.map((keyframe) => {
|
|
84
|
-
const offset = keyframe.offset;
|
|
85
|
-
const frameString = [];
|
|
86
|
-
for (const property in keyframe) {
|
|
87
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
88
|
-
if (keyframe.hasOwnProperty(property) && property !== 'offset') {
|
|
89
|
-
frameString.push(`${property}: ${keyframe[property]};`);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return `${offset * 100}% { ${frameString.join(' ')} }`;
|
|
93
|
-
})
|
|
94
|
-
.join(' ');
|
|
95
|
-
};
|
|
96
|
-
const keyframeIds = [];
|
|
97
|
-
const generateKeyframeName = (keyframeRules) => {
|
|
98
|
-
let index = keyframeIds.indexOf(keyframeRules);
|
|
99
|
-
if (index < 0) {
|
|
100
|
-
index = keyframeIds.push(keyframeRules) - 1;
|
|
101
|
-
}
|
|
102
|
-
return `ion-animation-${index}`;
|
|
103
|
-
};
|
|
104
|
-
const getStyleContainer = (element) => {
|
|
105
|
-
// getRootNode is not always available in SSR environments.
|
|
106
|
-
// TODO(FW-2832): types
|
|
107
|
-
const rootNode = element.getRootNode !== undefined ? element.getRootNode() : element;
|
|
108
|
-
return rootNode.head || rootNode;
|
|
109
|
-
};
|
|
110
|
-
const createKeyframeStylesheet = (keyframeName, keyframeRules, element) => {
|
|
111
|
-
var _a;
|
|
112
|
-
const styleContainer = getStyleContainer(element);
|
|
113
|
-
const keyframePrefix = getAnimationPrefix(element);
|
|
114
|
-
const existingStylesheet = styleContainer.querySelector('#' + keyframeName);
|
|
115
|
-
if (existingStylesheet) {
|
|
116
|
-
return existingStylesheet;
|
|
117
|
-
}
|
|
118
|
-
const stylesheet = ((_a = element.ownerDocument) !== null && _a !== void 0 ? _a : document).createElement('style');
|
|
119
|
-
stylesheet.id = keyframeName;
|
|
120
|
-
stylesheet.textContent = `@${keyframePrefix}keyframes ${keyframeName} { ${keyframeRules} } @${keyframePrefix}keyframes ${keyframeName}-alt { ${keyframeRules} }`;
|
|
121
|
-
styleContainer.appendChild(stylesheet);
|
|
122
|
-
return stylesheet;
|
|
123
|
-
};
|
|
124
21
|
const addClassToArray = (classes = [], className) => {
|
|
125
22
|
if (className !== undefined) {
|
|
126
23
|
const classNameToAppend = Array.isArray(className) ? className : [className];
|
|
@@ -148,14 +45,12 @@ const createAnimation = (animationId) => {
|
|
|
148
45
|
let numAnimationsRunning = 0;
|
|
149
46
|
let shouldForceLinearEasing = false;
|
|
150
47
|
let shouldForceSyncPlayback = false;
|
|
151
|
-
let cssAnimationsTimerFallback;
|
|
152
48
|
let forceDirectionValue;
|
|
153
49
|
let forceDurationValue;
|
|
154
50
|
let forceDelayValue;
|
|
155
51
|
let willComplete = true;
|
|
156
52
|
let finished = false;
|
|
157
53
|
let shouldCalculateNumAnimations = true;
|
|
158
|
-
let keyframeName;
|
|
159
54
|
let ani;
|
|
160
55
|
let paused = false;
|
|
161
56
|
const id = animationId;
|
|
@@ -172,10 +67,16 @@ const createAnimation = (animationId) => {
|
|
|
172
67
|
const webAnimations = [];
|
|
173
68
|
const supportsAnimationEffect = typeof AnimationEffect === 'function' ||
|
|
174
69
|
(index.win !== undefined && typeof index.win.AnimationEffect === 'function');
|
|
70
|
+
/**
|
|
71
|
+
* This is a feature detection for Web Animations.
|
|
72
|
+
*
|
|
73
|
+
* Certain environments such as emulated browser environments for testing,
|
|
74
|
+
* do not support Web Animations. As a result, we need to check for support
|
|
75
|
+
* and provide a fallback to test certain functionality related to Web Animations.
|
|
76
|
+
*/
|
|
175
77
|
const supportsWebAnimations = typeof Element === 'function' &&
|
|
176
78
|
typeof Element.prototype.animate === 'function' &&
|
|
177
79
|
supportsAnimationEffect;
|
|
178
|
-
const ANIMATION_END_FALLBACK_PADDING_MS = 100;
|
|
179
80
|
const getWebAnimations = () => {
|
|
180
81
|
return webAnimations;
|
|
181
82
|
};
|
|
@@ -263,21 +164,6 @@ const createAnimation = (animationId) => {
|
|
|
263
164
|
});
|
|
264
165
|
webAnimations.length = 0;
|
|
265
166
|
}
|
|
266
|
-
else {
|
|
267
|
-
const elementsArray = elements.slice();
|
|
268
|
-
helpers.raf(() => {
|
|
269
|
-
elementsArray.forEach((element) => {
|
|
270
|
-
removeStyleProperty(element, 'animation-name');
|
|
271
|
-
removeStyleProperty(element, 'animation-duration');
|
|
272
|
-
removeStyleProperty(element, 'animation-timing-function');
|
|
273
|
-
removeStyleProperty(element, 'animation-iteration-count');
|
|
274
|
-
removeStyleProperty(element, 'animation-delay');
|
|
275
|
-
removeStyleProperty(element, 'animation-play-state');
|
|
276
|
-
removeStyleProperty(element, 'animation-fill-mode');
|
|
277
|
-
removeStyleProperty(element, 'animation-direction');
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
167
|
};
|
|
282
168
|
/**
|
|
283
169
|
* Removes the animation's stylesheets
|
|
@@ -535,9 +421,6 @@ const createAnimation = (animationId) => {
|
|
|
535
421
|
}
|
|
536
422
|
});
|
|
537
423
|
}
|
|
538
|
-
else {
|
|
539
|
-
initializeCSSAnimation();
|
|
540
|
-
}
|
|
541
424
|
};
|
|
542
425
|
/**
|
|
543
426
|
* Run all "before" animation hooks.
|
|
@@ -567,7 +450,6 @@ const createAnimation = (animationId) => {
|
|
|
567
450
|
* Run all "after" animation hooks.
|
|
568
451
|
*/
|
|
569
452
|
const afterAnimation = () => {
|
|
570
|
-
clearCSSAnimationsTimeout();
|
|
571
453
|
// Runs all after read callbacks
|
|
572
454
|
_afterAddReadFunctions.forEach((callback) => callback());
|
|
573
455
|
// Runs all after write callbacks
|
|
@@ -623,32 +505,6 @@ const createAnimation = (animationId) => {
|
|
|
623
505
|
}
|
|
624
506
|
}
|
|
625
507
|
};
|
|
626
|
-
const initializeCSSAnimation = (toggleAnimationName = true) => {
|
|
627
|
-
cleanUpStyleSheets();
|
|
628
|
-
const processedKeyframes = processKeyframes(_keyframes);
|
|
629
|
-
elements.forEach((element) => {
|
|
630
|
-
if (processedKeyframes.length > 0) {
|
|
631
|
-
const keyframeRules = generateKeyframeRules(processedKeyframes);
|
|
632
|
-
keyframeName = animationId !== undefined ? animationId : generateKeyframeName(keyframeRules);
|
|
633
|
-
const stylesheet = createKeyframeStylesheet(keyframeName, keyframeRules, element);
|
|
634
|
-
stylesheets.push(stylesheet);
|
|
635
|
-
setStyleProperty(element, 'animation-duration', `${getDuration()}ms`);
|
|
636
|
-
setStyleProperty(element, 'animation-timing-function', getEasing());
|
|
637
|
-
setStyleProperty(element, 'animation-delay', `${getDelay()}ms`);
|
|
638
|
-
setStyleProperty(element, 'animation-fill-mode', getFill());
|
|
639
|
-
setStyleProperty(element, 'animation-direction', getDirection());
|
|
640
|
-
const iterationsCount = getIterations() === Infinity ? 'infinite' : getIterations().toString();
|
|
641
|
-
setStyleProperty(element, 'animation-iteration-count', iterationsCount);
|
|
642
|
-
setStyleProperty(element, 'animation-play-state', 'paused');
|
|
643
|
-
if (toggleAnimationName) {
|
|
644
|
-
setStyleProperty(element, 'animation-name', `${stylesheet.id}-alt`);
|
|
645
|
-
}
|
|
646
|
-
helpers.raf(() => {
|
|
647
|
-
setStyleProperty(element, 'animation-name', stylesheet.id || null);
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
};
|
|
652
508
|
const initializeWebAnimation = () => {
|
|
653
509
|
elements.forEach((element) => {
|
|
654
510
|
const animation = element.animate(_keyframes, {
|
|
@@ -669,15 +525,12 @@ const createAnimation = (animationId) => {
|
|
|
669
525
|
};
|
|
670
526
|
}
|
|
671
527
|
};
|
|
672
|
-
const initializeAnimation = (
|
|
528
|
+
const initializeAnimation = () => {
|
|
673
529
|
beforeAnimation();
|
|
674
530
|
if (_keyframes.length > 0) {
|
|
675
531
|
if (supportsWebAnimations) {
|
|
676
532
|
initializeWebAnimation();
|
|
677
533
|
}
|
|
678
|
-
else {
|
|
679
|
-
initializeCSSAnimation(toggleAnimationName);
|
|
680
|
-
}
|
|
681
534
|
}
|
|
682
535
|
initialized = true;
|
|
683
536
|
};
|
|
@@ -690,15 +543,6 @@ const createAnimation = (animationId) => {
|
|
|
690
543
|
animation.pause();
|
|
691
544
|
});
|
|
692
545
|
}
|
|
693
|
-
else {
|
|
694
|
-
const animationDuration = `-${getDuration() * step}ms`;
|
|
695
|
-
elements.forEach((element) => {
|
|
696
|
-
if (_keyframes.length > 0) {
|
|
697
|
-
setStyleProperty(element, 'animation-delay', animationDuration);
|
|
698
|
-
setStyleProperty(element, 'animation-play-state', 'paused');
|
|
699
|
-
}
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
546
|
};
|
|
703
547
|
const updateWebAnimation = (step) => {
|
|
704
548
|
webAnimations.forEach((animation) => {
|
|
@@ -715,26 +559,6 @@ const createAnimation = (animationId) => {
|
|
|
715
559
|
setAnimationStep(step);
|
|
716
560
|
}
|
|
717
561
|
};
|
|
718
|
-
const updateCSSAnimation = (toggleAnimationName = true, step) => {
|
|
719
|
-
helpers.raf(() => {
|
|
720
|
-
elements.forEach((element) => {
|
|
721
|
-
setStyleProperty(element, 'animation-name', keyframeName || null);
|
|
722
|
-
setStyleProperty(element, 'animation-duration', `${getDuration()}ms`);
|
|
723
|
-
setStyleProperty(element, 'animation-timing-function', getEasing());
|
|
724
|
-
setStyleProperty(element, 'animation-delay', step !== undefined ? `-${step * getDuration()}ms` : `${getDelay()}ms`);
|
|
725
|
-
setStyleProperty(element, 'animation-fill-mode', getFill() || null);
|
|
726
|
-
setStyleProperty(element, 'animation-direction', getDirection() || null);
|
|
727
|
-
const iterationsCount = getIterations() === Infinity ? 'infinite' : getIterations().toString();
|
|
728
|
-
setStyleProperty(element, 'animation-iteration-count', iterationsCount);
|
|
729
|
-
if (toggleAnimationName) {
|
|
730
|
-
setStyleProperty(element, 'animation-name', `${keyframeName}-alt`);
|
|
731
|
-
}
|
|
732
|
-
helpers.raf(() => {
|
|
733
|
-
setStyleProperty(element, 'animation-name', keyframeName || null);
|
|
734
|
-
});
|
|
735
|
-
});
|
|
736
|
-
});
|
|
737
|
-
};
|
|
738
562
|
const update = (deep = false, toggleAnimationName = true, step) => {
|
|
739
563
|
if (deep) {
|
|
740
564
|
childAnimations.forEach((animation) => {
|
|
@@ -744,9 +568,6 @@ const createAnimation = (animationId) => {
|
|
|
744
568
|
if (supportsWebAnimations) {
|
|
745
569
|
updateWebAnimation(step);
|
|
746
570
|
}
|
|
747
|
-
else {
|
|
748
|
-
updateCSSAnimation(toggleAnimationName, step);
|
|
749
|
-
}
|
|
750
571
|
return ani;
|
|
751
572
|
};
|
|
752
573
|
const progressStart = (forceLinearEasing = false, step) => {
|
|
@@ -829,67 +650,8 @@ const createAnimation = (animationId) => {
|
|
|
829
650
|
pauseAnimation();
|
|
830
651
|
return ani;
|
|
831
652
|
};
|
|
832
|
-
const onAnimationEndFallback = () => {
|
|
833
|
-
cssAnimationsTimerFallback = undefined;
|
|
834
|
-
animationFinish();
|
|
835
|
-
};
|
|
836
|
-
const clearCSSAnimationsTimeout = () => {
|
|
837
|
-
if (cssAnimationsTimerFallback) {
|
|
838
|
-
clearTimeout(cssAnimationsTimerFallback);
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
653
|
const playCSSAnimations = () => {
|
|
842
|
-
|
|
843
|
-
helpers.raf(() => {
|
|
844
|
-
elements.forEach((element) => {
|
|
845
|
-
if (_keyframes.length > 0) {
|
|
846
|
-
setStyleProperty(element, 'animation-play-state', 'running');
|
|
847
|
-
}
|
|
848
|
-
});
|
|
849
|
-
});
|
|
850
|
-
if (_keyframes.length === 0 || elements.length === 0) {
|
|
851
|
-
animationFinish();
|
|
852
|
-
}
|
|
853
|
-
else {
|
|
854
|
-
/**
|
|
855
|
-
* This is a catchall in the event that a CSS Animation did not finish.
|
|
856
|
-
* The Web Animations API has mechanisms in place for preventing this.
|
|
857
|
-
* CSS Animations will not fire an `animationend` event
|
|
858
|
-
* for elements with `display: none`. The Web Animations API
|
|
859
|
-
* accounts for this, but using raw CSS Animations requires
|
|
860
|
-
* this workaround.
|
|
861
|
-
*/
|
|
862
|
-
const animationDelay = getDelay() || 0;
|
|
863
|
-
const animationDuration = getDuration() || 0;
|
|
864
|
-
const animationIterations = getIterations() || 1;
|
|
865
|
-
// No need to set a timeout when animation has infinite iterations
|
|
866
|
-
if (isFinite(animationIterations)) {
|
|
867
|
-
cssAnimationsTimerFallback = setTimeout(onAnimationEndFallback, animationDelay + animationDuration * animationIterations + ANIMATION_END_FALLBACK_PADDING_MS);
|
|
868
|
-
}
|
|
869
|
-
animationEnd(elements[0], () => {
|
|
870
|
-
clearCSSAnimationsTimeout();
|
|
871
|
-
/**
|
|
872
|
-
* Ensure that clean up
|
|
873
|
-
* is always done a frame
|
|
874
|
-
* before the onFinish handlers
|
|
875
|
-
* are fired. Otherwise, there
|
|
876
|
-
* may be flickering if a new
|
|
877
|
-
* animation is started on the same
|
|
878
|
-
* element too quickly
|
|
879
|
-
*/
|
|
880
|
-
helpers.raf(() => {
|
|
881
|
-
clearCSSAnimationPlayState();
|
|
882
|
-
helpers.raf(animationFinish);
|
|
883
|
-
});
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
};
|
|
887
|
-
const clearCSSAnimationPlayState = () => {
|
|
888
|
-
elements.forEach((element) => {
|
|
889
|
-
removeStyleProperty(element, 'animation-duration');
|
|
890
|
-
removeStyleProperty(element, 'animation-delay');
|
|
891
|
-
removeStyleProperty(element, 'animation-play-state');
|
|
892
|
-
});
|
|
654
|
+
animationFinish();
|
|
893
655
|
};
|
|
894
656
|
const playWebAnimations = () => {
|
|
895
657
|
webAnimations.forEach((animation) => {
|
|
@@ -904,9 +666,6 @@ const createAnimation = (animationId) => {
|
|
|
904
666
|
setAnimationStep(0);
|
|
905
667
|
updateWebAnimation();
|
|
906
668
|
}
|
|
907
|
-
else {
|
|
908
|
-
updateCSSAnimation();
|
|
909
|
-
}
|
|
910
669
|
};
|
|
911
670
|
const play = (opts) => {
|
|
912
671
|
return new Promise((resolve) => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const haptic = require('./haptic-
|
|
6
|
+
const index$1 = require('./index-af6d0fbb.js');
|
|
7
|
+
const haptic = require('./haptic-f6b37aa3.js');
|
|
8
8
|
const index = require('./index-ee07ed59.js');
|
|
9
9
|
|
|
10
10
|
const createButtonActiveGesture = (el, isButton) => {
|