@ionic/core 7.6.2-dev.11705694334.11b34c62 → 7.6.2-dev.11706202387.1dfcd9b8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/action-sheet.js +4 -4
- package/components/alert.js +2 -2
- package/components/animation.js +1 -16
- package/components/button-active.js +1 -1
- package/components/button.js +2 -2
- package/components/checkbox.js +2 -2
- package/components/ion-back-button.js +1 -1
- package/components/ion-badge.js +2 -2
- package/components/ion-content.js +2 -3
- package/components/ion-datetime-button.js +4 -4
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +2 -2
- package/components/ion-input.js +2 -2
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-sliding.js +7 -128
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu.js +21 -15
- package/components/ion-modal.js +1 -1
- package/components/ion-nav.js +7 -3
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +2 -5
- package/components/ion-range.js +2 -2
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-split-pane.js +26 -15
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +1 -1
- package/components/ion-textarea.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +2 -2
- package/components/item.js +2 -2
- package/components/label.js +1 -1
- package/components/picker-column2.js +1 -1
- package/components/radio.js +2 -2
- package/components/select-popover.js +1 -1
- package/css/core.css +101 -34
- package/css/core.css.map +1 -1
- package/css/global.bundle.css +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/themes/dark.always.css +122 -0
- package/css/themes/dark.always.css.map +1 -0
- package/css/themes/dark.class.css +122 -0
- package/css/themes/dark.class.css.map +1 -0
- package/css/themes/dark.css +3 -0
- package/css/themes/dark.css.map +1 -0
- package/css/themes/dark.system.css +124 -0
- package/css/themes/dark.system.css.map +1 -0
- package/css/typography.css +1 -1
- package/dist/cjs/{animation-8a4f9df4.js → animation-9b401d39.js} +0 -16
- package/dist/cjs/{button-active-466dfc8a.js → button-active-5bf1cac0.js} +1 -1
- package/dist/cjs/{index-d8b5d5f9.js → index-17ab7794.js} +2 -2
- package/dist/cjs/{index-8023641e.js → index-3b012034.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/ion-action-sheet.cjs.entry.js +6 -6
- package/dist/cjs/ion-alert.cjs.entry.js +4 -4
- package/dist/cjs/ion-app_8.cjs.entry.js +3 -4
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +10 -130
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +24 -19
- package/dist/cjs/ion-modal.cjs.entry.js +3 -3
- package/dist/cjs/ion-nav_2.cjs.entry.js +6 -3
- package/dist/cjs/ion-popover.cjs.entry.js +2 -2
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -5
- package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-route_4.cjs.entry.js +1 -1
- package/dist/cjs/ion-searchbar.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-split-pane.cjs.entry.js +24 -14
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +3 -3
- package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-34cad0cb.js → ios.transition-b5353f3e.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-5bcc289d.js → md.transition-67157dd9.js} +2 -2
- package/dist/collection/components/action-sheet/action-sheet.ios.css +5 -12
- package/dist/collection/components/action-sheet/action-sheet.js +2 -2
- package/dist/collection/components/action-sheet/action-sheet.md.css +2 -9
- package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +23 -14
- package/dist/collection/components/action-sheet/test/basic/action-sheet-rendering.e2e.js +0 -19
- package/dist/collection/components/action-sheet/test/basic/action-sheet.spec.js +0 -22
- package/dist/collection/components/alert/alert.ios.css +27 -28
- package/dist/collection/components/alert/alert.md.css +6 -6
- package/dist/collection/components/alert/test/a11y/alert.e2e.js +22 -9
- package/dist/collection/components/back-button/back-button.ios.css +1 -1
- package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +21 -0
- package/dist/collection/components/badge/badge.ios.css +1 -1
- package/dist/collection/components/badge/badge.md.css +1 -1
- package/dist/collection/components/badge/test/a11y/badge.e2e.js +18 -0
- package/dist/collection/components/button/button.ios.css +10 -10
- package/dist/collection/components/button/button.md.css +8 -8
- package/dist/collection/components/button/test/a11y/button.e2e.js +48 -0
- package/dist/collection/components/checkbox/checkbox.ios.css +5 -5
- package/dist/collection/components/checkbox/checkbox.md.css +3 -2
- package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +11 -2
- package/dist/collection/components/checkbox/test/basic/checkbox.e2e.js +0 -10
- package/dist/collection/components/content/content.js +2 -3
- package/dist/collection/components/datetime/datetime.ios.css +2 -3
- package/dist/collection/components/datetime-button/{datetime-button.md.css → datetime-button.css} +6 -9
- package/dist/collection/components/datetime-button/datetime-button.js +4 -4
- package/dist/collection/components/datetime-button/test/basic/datetime-button.e2e.js +0 -12
- package/dist/collection/components/fab-button/fab-button.ios.css +13 -13
- package/dist/collection/components/fab-button/fab-button.md.css +4 -4
- package/dist/collection/components/fab-button/test/a11y/fab-button.e2e.js +50 -0
- package/dist/collection/components/input/input.ios.css +3 -3
- package/dist/collection/components/input/input.md.css +3 -3
- package/dist/collection/components/input/test/a11y/input.e2e.js +41 -3
- package/dist/collection/components/item/item.ios.css +3 -3
- package/dist/collection/components/item/item.md.css +4 -4
- package/dist/collection/components/item-option/item-option.ios.css +2 -2
- package/dist/collection/components/item-option/item-option.md.css +1 -1
- package/dist/collection/components/item-sliding/item-sliding.css +4 -8
- package/dist/collection/components/item-sliding/item-sliding.js +6 -89
- package/dist/collection/components/item-sliding/test/a11y/item-sliding.e2e.js +28 -0
- package/dist/collection/components/item-sliding/test/basic/item-sliding.e2e.js +25 -62
- package/dist/collection/components/label/label.md.css +1 -1
- package/dist/collection/components/label/test/a11y/label.e2e.js +20 -0
- package/dist/collection/components/loading/loading.md.css +1 -1
- package/dist/collection/components/loading/test/a11y/loading.e2e.js +21 -5
- package/dist/collection/components/menu/menu.ios.css +64 -3
- package/dist/collection/components/menu/menu.js +19 -13
- package/dist/collection/components/menu/menu.md.css +64 -3
- package/dist/collection/components/menu-button/menu-button.ios.css +1 -1
- package/dist/collection/components/menu-button/test/a11y/menu-button.e2e.js +14 -0
- package/dist/collection/components/modal/gestures/swipe-to-close.js +1 -1
- package/dist/collection/components/nav/nav.js +22 -2
- package/dist/collection/components/nav/test/nav-controller.spec.js +36 -36
- package/dist/collection/components/picker-legacy/picker.ios.css +1 -1
- package/dist/collection/components/picker-legacy/picker.md.css +1 -1
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +1 -1
- package/dist/collection/components/progress-bar/progress-bar.ios.css +11 -17
- package/dist/collection/components/progress-bar/progress-bar.js +0 -3
- package/dist/collection/components/progress-bar/progress-bar.md.css +10 -8
- package/dist/collection/components/progress-bar/test/a11y/progress-bar.e2e.js +24 -0
- package/dist/collection/components/radio/radio.ios.css +2 -2
- package/dist/collection/components/radio/radio.md.css +2 -2
- package/dist/collection/components/radio/test/a11y/radio.e2e.js +101 -68
- package/dist/collection/components/range/range.ios.css +1 -1
- package/dist/collection/components/range/range.md.css +3 -3
- package/dist/collection/components/range/test/a11y/range.e2e.js +18 -8
- package/dist/collection/components/refresher/refresher.md.css +2 -2
- package/dist/collection/components/refresher/test/a11y/refresher.e2e.js +25 -0
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/router-link/router-link.css +1 -1
- package/dist/collection/components/router-link/test/a11y/router-link.e2e.js +23 -0
- package/dist/collection/components/searchbar/searchbar.ios.css +4 -4
- package/dist/collection/components/segment/test/a11y/segment.e2e.js +23 -0
- package/dist/collection/components/segment-button/segment-button.md.css +2 -2
- package/dist/collection/components/select/select.ios.css +3 -3
- package/dist/collection/components/select/select.md.css +3 -3
- package/dist/collection/components/select/test/a11y/select.e2e.js +68 -4
- package/dist/collection/components/select-popover/select-popover.md.css +4 -4
- package/dist/collection/components/select-popover/test/a11y/select-popover.e2e.js +32 -0
- package/dist/collection/components/split-pane/split-pane.ios.css +1 -53
- package/dist/collection/components/split-pane/split-pane.js +46 -12
- package/dist/collection/components/split-pane/split-pane.md.css +1 -53
- package/dist/collection/components/split-pane/test/wrapped-menu/split-pane.e2e.js +41 -0
- package/dist/collection/components/tab-bar/tab-bar.ios.css +1 -1
- package/dist/collection/components/tab-bar/tab-bar.md.css +1 -1
- package/dist/collection/components/tab-button/tab-button.ios.css +1 -6
- package/dist/collection/components/textarea/test/a11y/textarea.e2e.js +41 -3
- package/dist/collection/components/textarea/textarea.ios.css +3 -3
- package/dist/collection/components/textarea/textarea.md.css +3 -3
- package/dist/collection/components/toast/test/a11y/toast.e2e.js +56 -24
- package/dist/collection/components/toast/toast.ios.css +1 -1
- package/dist/collection/components/toast/toast.md.css +2 -2
- package/dist/collection/components/toggle/test/a11y/toggle.e2e.js +8 -2
- package/dist/collection/components/toggle/toggle.ios.css +8 -8
- package/dist/collection/components/toggle/toggle.md.css +2 -2
- package/dist/collection/css/test/a11y/typography.e2e.js +18 -0
- package/dist/collection/themes/test/colors/theme.e2e.js +114 -0
- package/dist/collection/utils/animation/animation.js +0 -15
- package/dist/collection/utils/gesture/button-active.js +1 -1
- package/dist/collection/utils/test/playwright/generator.js +1 -0
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +1 -1
- package/dist/docs.json +29 -34
- package/dist/esm/{animation-ccab0993.js → animation-dde8cc0d.js} +1 -16
- package/dist/esm/{button-active-2758ff14.js → button-active-48379dd2.js} +1 -1
- package/dist/esm/{index-b7e9478d.js → index-1193f005.js} +1 -1
- package/dist/esm/{index-9dbb78a4.js → index-4743453d.js} +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/ion-action-sheet.entry.js +6 -6
- package/dist/esm/ion-alert.entry.js +4 -4
- package/dist/esm/ion-app_8.entry.js +3 -4
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +4 -4
- package/dist/esm/ion-datetime_3.entry.js +5 -5
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +10 -130
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +24 -19
- package/dist/esm/ion-modal.entry.js +3 -3
- package/dist/esm/ion-nav_2.entry.js +6 -3
- package/dist/esm/ion-popover.entry.js +2 -2
- package/dist/esm/ion-progress-bar.entry.js +2 -5
- package/dist/esm/ion-radio_2.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +3 -3
- package/dist/esm/ion-route_4.entry.js +1 -1
- package/dist/esm/ion-searchbar.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +3 -3
- package/dist/esm/ion-split-pane.entry.js +24 -14
- package/dist/esm/ion-tab-bar_2.entry.js +3 -3
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +2 -2
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-01176d76.js → ios.transition-3376ccb2.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-558655c7.js → md.transition-f992779f.js} +2 -2
- package/dist/esm-es5/animation-dde8cc0d.js +4 -0
- package/dist/esm-es5/button-active-48379dd2.js +4 -0
- package/dist/esm-es5/{index-b7e9478d.js → index-1193f005.js} +1 -1
- package/dist/esm-es5/{index-9dbb78a4.js → index-4743453d.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.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-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-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-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-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-01176d76.js → ios.transition-3376ccb2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-f992779f.js +4 -0
- package/dist/html.html-data.json +0 -12
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-7b4649d7.js → p-04377cfa.js} +1 -1
- package/dist/ionic/p-04d84d5d.entry.js +4 -0
- package/dist/ionic/p-068950da.entry.js +4 -0
- package/dist/ionic/p-0832dedf.entry.js +4 -0
- package/dist/ionic/{p-e755af39.system.js → p-0aa78a8d.system.js} +1 -1
- package/dist/ionic/p-11c55ac8.system.js +4 -0
- package/dist/ionic/p-124b6e41.system.entry.js +4 -0
- package/dist/ionic/p-19d9ceb8.system.js +1 -1
- package/dist/ionic/{p-c8f7e8c8.system.js → p-1ab2642a.system.js} +1 -1
- package/dist/ionic/p-1b60cc53.js +4 -0
- package/dist/ionic/{p-a1bd098f.system.entry.js → p-1c453add.system.entry.js} +1 -1
- package/dist/ionic/{p-11bf2ad0.system.entry.js → p-1d5b03e3.system.entry.js} +1 -1
- package/dist/ionic/p-24c3f2cd.system.entry.js +4 -0
- package/dist/ionic/{p-b68d435f.entry.js → p-2716d76c.entry.js} +1 -1
- package/dist/ionic/p-2724403e.entry.js +4 -0
- package/dist/ionic/p-283bc1a1.system.entry.js +4 -0
- package/dist/ionic/p-29d03b3a.js +4 -0
- package/dist/ionic/{p-abd5d0d5.system.entry.js → p-354682e8.system.entry.js} +1 -1
- package/dist/ionic/{p-19c379da.system.entry.js → p-3796194b.system.entry.js} +1 -1
- package/dist/ionic/{p-cf53213c.entry.js → p-385bb983.entry.js} +1 -1
- package/dist/ionic/p-38f2c6bb.system.js +4 -0
- package/dist/ionic/p-3af5faf8.system.entry.js +4 -0
- package/dist/ionic/{p-c75dc92f.js → p-44a56556.js} +1 -1
- package/dist/ionic/{p-7c7bc0cc.entry.js → p-4abb1251.entry.js} +1 -1
- package/dist/ionic/p-4eae8c91.entry.js +4 -0
- package/dist/ionic/{p-2316de85.system.entry.js → p-530bb2af.system.entry.js} +1 -1
- package/dist/ionic/p-56944895.entry.js +4 -0
- package/dist/ionic/{p-0e908476.system.entry.js → p-590447a5.system.entry.js} +1 -1
- package/dist/ionic/{p-f0eafd38.entry.js → p-5aec2208.entry.js} +1 -1
- package/dist/ionic/{p-26ff1180.entry.js → p-5cbfce20.entry.js} +1 -1
- package/dist/ionic/{p-3b043115.entry.js → p-5f1b0512.entry.js} +1 -1
- package/dist/ionic/{p-0dfa4ab4.system.entry.js → p-662a9a47.system.entry.js} +1 -1
- package/dist/ionic/p-713af1fe.entry.js +4 -0
- package/dist/ionic/{p-69ce8bba.system.entry.js → p-7dade589.system.entry.js} +1 -1
- package/dist/ionic/p-8a25bf30.system.entry.js +4 -0
- package/dist/ionic/{p-67e52d31.entry.js → p-8b160fba.entry.js} +1 -1
- package/dist/ionic/{p-799da666.entry.js → p-8e961825.entry.js} +1 -1
- package/dist/ionic/{p-20a4ee02.entry.js → p-92bfb607.entry.js} +1 -1
- package/dist/ionic/p-97aaf697.system.entry.js +4 -0
- package/dist/ionic/p-98f35d98.js +4 -0
- package/dist/ionic/p-9a68d8ef.system.js +4 -0
- package/dist/ionic/p-9a8bc8f3.system.entry.js +4 -0
- package/dist/ionic/{p-bb3fd397.entry.js → p-9c48f42f.entry.js} +1 -1
- package/dist/ionic/{p-614e63a9.system.entry.js → p-9f94e34a.system.entry.js} +1 -1
- package/dist/ionic/{p-7de7a5fd.system.js → p-a074be82.system.js} +1 -1
- package/dist/ionic/{p-7dcf795f.entry.js → p-a29db3a0.entry.js} +1 -1
- package/dist/ionic/{p-56b1a872.system.entry.js → p-a41eaff2.system.entry.js} +1 -1
- package/dist/ionic/{p-9093afb1.system.js → p-a49931aa.system.js} +1 -1
- package/dist/ionic/p-a6e5f54e.system.entry.js +4 -0
- package/dist/ionic/{p-6855f26a.entry.js → p-aa975ff8.entry.js} +1 -1
- package/dist/ionic/p-b231b7cf.system.entry.js +4 -0
- package/dist/ionic/p-b59fe3bd.system.entry.js +4 -0
- package/dist/ionic/p-b7e03ff0.system.entry.js +4 -0
- package/dist/ionic/{p-ba5d9e27.entry.js → p-bc01c384.entry.js} +1 -1
- package/dist/ionic/p-bec6ae40.entry.js +4 -0
- package/dist/ionic/{p-5dc16594.entry.js → p-c001b24f.entry.js} +1 -1
- package/dist/ionic/p-c16fbc5f.system.entry.js +4 -0
- package/dist/ionic/{p-0cc80201.entry.js → p-c6e9ef77.entry.js} +1 -1
- package/dist/ionic/p-cb3ef9c1.system.entry.js +4 -0
- package/dist/ionic/p-cb6a1fa0.system.entry.js +4 -0
- package/dist/ionic/p-cc1c26cc.entry.js +4 -0
- package/dist/ionic/{p-db05ecb6.system.entry.js → p-cc700688.system.entry.js} +1 -1
- package/dist/ionic/p-cd3e1a06.entry.js +4 -0
- package/dist/ionic/p-cd574dfa.js +4 -0
- package/dist/ionic/{p-da666998.system.entry.js → p-d01449a3.system.entry.js} +1 -1
- package/dist/ionic/{p-84b567a6.entry.js → p-d08e0136.entry.js} +1 -1
- package/dist/ionic/p-d1ad57d5.system.entry.js +4 -0
- package/dist/ionic/p-d2634efe.system.entry.js +4 -0
- package/dist/ionic/{p-41208f54.system.entry.js → p-d88ed181.system.entry.js} +1 -1
- package/dist/ionic/{p-10339dcc.entry.js → p-df6f50ef.entry.js} +1 -1
- package/dist/ionic/{p-d1ab26de.entry.js → p-e403ff07.entry.js} +1 -1
- package/dist/ionic/{p-ae4b7df8.entry.js → p-e9431a58.entry.js} +1 -1
- package/dist/ionic/{p-019e0d80.system.entry.js → p-ec0a9b2c.system.entry.js} +1 -1
- package/dist/ionic/{p-42925096.system.entry.js → p-f0dbd73e.system.entry.js} +1 -1
- package/dist/ionic/{p-806a9810.entry.js → p-f38c1f8d.entry.js} +1 -1
- package/dist/ionic/p-fc17f198.entry.js +4 -0
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +0 -8
- package/dist/types/components/item-sliding/item-sliding.d.ts +0 -19
- package/dist/types/components/menu/menu.d.ts +11 -1
- package/dist/types/components/nav/nav.d.ts +4 -1
- package/dist/types/components/split-pane/split-pane.d.ts +14 -2
- package/dist/types/components.d.ts +5 -8
- package/dist/types/utils/animation/animation-interface.d.ts +0 -6
- package/dist/types/utils/animation/animation.d.ts +0 -2
- package/hydrate/index.js +115 -235
- package/package.json +1 -1
- package/dist/collection/components/datetime-button/datetime-button.ios.css +0 -107
- package/dist/collection/components/item-sliding/animations/item-sliding-options.js +0 -59
- package/dist/esm-es5/animation-ccab0993.js +0 -4
- package/dist/esm-es5/button-active-2758ff14.js +0 -4
- package/dist/esm-es5/md.transition-558655c7.js +0 -4
- package/dist/ionic/p-02dc8c5b.entry.js +0 -4
- package/dist/ionic/p-1a22895e.system.entry.js +0 -4
- package/dist/ionic/p-1c69a4ca.system.entry.js +0 -4
- package/dist/ionic/p-289f354c.entry.js +0 -4
- package/dist/ionic/p-2a3b87cd.entry.js +0 -4
- package/dist/ionic/p-2e01f1c5.system.entry.js +0 -4
- package/dist/ionic/p-38531958.system.entry.js +0 -4
- package/dist/ionic/p-3b434dee.system.entry.js +0 -4
- package/dist/ionic/p-44791cff.entry.js +0 -4
- package/dist/ionic/p-4981ea0a.system.entry.js +0 -4
- package/dist/ionic/p-5074a526.entry.js +0 -4
- package/dist/ionic/p-57785713.system.entry.js +0 -4
- package/dist/ionic/p-57e9de81.system.js +0 -4
- package/dist/ionic/p-6fb2b5e3.js +0 -4
- package/dist/ionic/p-80ad9792.system.js +0 -4
- package/dist/ionic/p-922c234e.js +0 -4
- package/dist/ionic/p-950c05ad.entry.js +0 -4
- package/dist/ionic/p-97a9d526.system.entry.js +0 -4
- package/dist/ionic/p-99d448ba.system.entry.js +0 -4
- package/dist/ionic/p-9c5e3a2c.system.entry.js +0 -4
- package/dist/ionic/p-a619ecad.entry.js +0 -4
- package/dist/ionic/p-b20717fc.system.entry.js +0 -4
- package/dist/ionic/p-b61d7624.entry.js +0 -4
- package/dist/ionic/p-b660ba8a.system.js +0 -4
- package/dist/ionic/p-ba2b1ef5.entry.js +0 -4
- package/dist/ionic/p-cd729946.js +0 -4
- package/dist/ionic/p-d2a73201.system.entry.js +0 -4
- package/dist/ionic/p-d3525765.js +0 -4
- package/dist/ionic/p-dc43a79e.entry.js +0 -4
- package/dist/ionic/p-ee71caaa.system.entry.js +0 -4
- package/dist/ionic/p-f25b4396.system.entry.js +0 -4
- package/dist/ionic/p-f65f4d3e.system.entry.js +0 -4
- package/dist/ionic/p-fd98debb.entry.js +0 -4
- package/dist/ionic/p-fe458994.system.entry.js +0 -4
- package/dist/types/components/item-sliding/animations/item-sliding-options.d.ts +0 -10
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
+
import AxeBuilder from "@axe-core/playwright";
|
|
4
5
|
import { expect } from "@playwright/test";
|
|
5
6
|
import { configs, test } from "../../../utils/test/playwright/index";
|
|
6
7
|
configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ title, screenshot, config }) => {
|
|
@@ -30,3 +31,20 @@ configs({ directions: ['ltr'], modes: ['ios'] }).forEach(({ title, screenshot, c
|
|
|
30
31
|
});
|
|
31
32
|
});
|
|
32
33
|
});
|
|
34
|
+
configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ config, title }) => {
|
|
35
|
+
test.describe(title('typography: a11y'), () => {
|
|
36
|
+
test('should not have accessibility violations for anchor tags', async ({ page }) => {
|
|
37
|
+
/**
|
|
38
|
+
* All page content should be contained by landmarks (main, nav, etc.)
|
|
39
|
+
* By containing the badge in a main element, we can avoid this violation.
|
|
40
|
+
*/
|
|
41
|
+
await page.setContent(`
|
|
42
|
+
<main>
|
|
43
|
+
<a href="#">Link</a>
|
|
44
|
+
</main>
|
|
45
|
+
`, config);
|
|
46
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
47
|
+
expect(results.violations).toEqual([]);
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import AxeBuilder from "@axe-core/playwright";
|
|
5
|
+
import { expect } from "@playwright/test";
|
|
6
|
+
import { configs, test } from "../../../utils/test/playwright/index";
|
|
7
|
+
const styleTestHelpers = `
|
|
8
|
+
<style>
|
|
9
|
+
main {
|
|
10
|
+
background: var(--ion-color-contrast);
|
|
11
|
+
}
|
|
12
|
+
.ion-background {
|
|
13
|
+
background: var(--ion-color-base);
|
|
14
|
+
}
|
|
15
|
+
.ion-background-shade {
|
|
16
|
+
background: var(--ion-color-shade);
|
|
17
|
+
}
|
|
18
|
+
.ion-background-tint {
|
|
19
|
+
background: var(--ion-color-tint);
|
|
20
|
+
}
|
|
21
|
+
.ion-background-opacity-08 {
|
|
22
|
+
background: rgba(var(--ion-color-base-rgb), 0.08);
|
|
23
|
+
}
|
|
24
|
+
.ion-background-opacity-12 {
|
|
25
|
+
background: rgba(var(--ion-color-base-rgb), 0.12);
|
|
26
|
+
}
|
|
27
|
+
.ion-background-opacity-16 {
|
|
28
|
+
background: rgba(var(--ion-color-base-rgb), 0.16);
|
|
29
|
+
}
|
|
30
|
+
.ion-color {
|
|
31
|
+
color: var(--ion-color-base);
|
|
32
|
+
}
|
|
33
|
+
.ion-color-contrast {
|
|
34
|
+
color: var(--ion-color-contrast);
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
`;
|
|
38
|
+
/**
|
|
39
|
+
* All colors should be tested in the following scenarios:
|
|
40
|
+
* 1) The base color as the text color against the contrast color as the background color
|
|
41
|
+
* 2) The contrast color as the text color against the base color as the background color
|
|
42
|
+
* 3) The contrast color as the text color against the shade color as the background color
|
|
43
|
+
* 4) The contrast color as the text color against the tint color as the background color
|
|
44
|
+
* 5) The base color as the text color against the base color at 0.08 opacity as the background color
|
|
45
|
+
* 6) The base color as the text color against the base color at 0.12 opacity as the background color
|
|
46
|
+
* 7) The base color as the text color against the base color at 0.16 opacity as the background color
|
|
47
|
+
*/
|
|
48
|
+
configs({ modes: ['md'], directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ config, title }) => {
|
|
49
|
+
const colors = ['primary', 'secondary', 'tertiary', 'success', 'warning', 'danger', 'light', 'medium', 'dark'];
|
|
50
|
+
test.describe(title('theme'), () => {
|
|
51
|
+
test.beforeEach(({ skip }) => {
|
|
52
|
+
skip.browser('firefox', 'Color contrast ratio is consistent across browsers');
|
|
53
|
+
skip.browser('webkit', 'Color contrast ratio is consistent across browsers');
|
|
54
|
+
});
|
|
55
|
+
for (const color of colors) {
|
|
56
|
+
test(`color "${color}" should pass AA guidelines`, async ({ page }) => {
|
|
57
|
+
await page.setContent(`${styleTestHelpers}
|
|
58
|
+
<main class="ion-color-${color}">
|
|
59
|
+
<p class="ion-color">Hello World</p>
|
|
60
|
+
</main>`, config);
|
|
61
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
62
|
+
expect(results.violations).toEqual([]);
|
|
63
|
+
});
|
|
64
|
+
test(`contrast color on "${color}" background should pass AA guidelines`, async ({ page }) => {
|
|
65
|
+
await page.setContent(`${styleTestHelpers}
|
|
66
|
+
<main class="ion-color-${color}">
|
|
67
|
+
<p class="ion-color-contrast ion-background">Hello World</p>
|
|
68
|
+
</main>`, config);
|
|
69
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
70
|
+
expect(results.violations).toEqual([]);
|
|
71
|
+
});
|
|
72
|
+
test(`contrast color on "${color}" background shade should pass AA guidelines`, async ({ page }) => {
|
|
73
|
+
await page.setContent(`${styleTestHelpers}
|
|
74
|
+
<main class="ion-color-${color}">
|
|
75
|
+
<p class="ion-color-contrast ion-background-shade">Hello World</p>
|
|
76
|
+
</main>`, config);
|
|
77
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
78
|
+
expect(results.violations).toEqual([]);
|
|
79
|
+
});
|
|
80
|
+
test(`contrast color on "${color}" background tint should pass AA guidelines`, async ({ page }) => {
|
|
81
|
+
await page.setContent(`${styleTestHelpers}
|
|
82
|
+
<main class="ion-color-${color}">
|
|
83
|
+
<p class="ion-color-contrast ion-background-tint">Hello World</p>
|
|
84
|
+
</main>`, config);
|
|
85
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
86
|
+
expect(results.violations).toEqual([]);
|
|
87
|
+
});
|
|
88
|
+
test(`color "${color}" on 0.08 opacity background should pass AA guidelines`, async ({ page }) => {
|
|
89
|
+
await page.setContent(`${styleTestHelpers}
|
|
90
|
+
<main class="ion-color-${color}">
|
|
91
|
+
<p class="ion-color ion-background-opacity-08">Hello World</p>
|
|
92
|
+
</main>`, config);
|
|
93
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
94
|
+
expect(results.violations).toEqual([]);
|
|
95
|
+
});
|
|
96
|
+
test(`color "${color}" on 0.12 opacity background should pass AA guidelines`, async ({ page }) => {
|
|
97
|
+
await page.setContent(`${styleTestHelpers}
|
|
98
|
+
<main class="ion-color-${color}">
|
|
99
|
+
<p class="ion-color ion-background-opacity-12">Hello World</p>
|
|
100
|
+
</main>`, config);
|
|
101
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
102
|
+
expect(results.violations).toEqual([]);
|
|
103
|
+
});
|
|
104
|
+
test(`color "${color}" on 0.16 opacity background should pass AA guidelines`, async ({ page }) => {
|
|
105
|
+
await page.setContent(`${styleTestHelpers}
|
|
106
|
+
<main class="ion-color-${color}">
|
|
107
|
+
<p class="ion-color ion-background-opacity-16">Hello World</p>
|
|
108
|
+
</main>`, config);
|
|
109
|
+
const results = await new AxeBuilder({ page }).analyze();
|
|
110
|
+
expect(results.violations).toEqual([]);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
import { win } from "../browser";
|
|
5
5
|
import { raf } from "../helpers";
|
|
6
6
|
import { addClassToArray, animationEnd, createKeyframeStylesheet, generateKeyframeName, generateKeyframeRules, processKeyframes, removeStyleProperty, setStyleProperty, } from "./animation-utils";
|
|
7
|
-
export const supportsAnimationEffect = typeof AnimationEffect === 'function' ||
|
|
8
|
-
(win !== undefined && typeof win.AnimationEffect === 'function');
|
|
9
|
-
export const supportsWebAnimations = typeof Element === 'function' &&
|
|
10
|
-
typeof Element.prototype.animate === 'function' &&
|
|
11
|
-
supportsAnimationEffect;
|
|
12
7
|
export const createAnimation = (animationId) => {
|
|
13
8
|
let _delay;
|
|
14
9
|
let _duration;
|
|
@@ -20,7 +15,6 @@ export const createAnimation = (animationId) => {
|
|
|
20
15
|
let beforeAddClasses = [];
|
|
21
16
|
let beforeRemoveClasses = [];
|
|
22
17
|
let initialized = false;
|
|
23
|
-
let _commitStyles = false;
|
|
24
18
|
let parentAnimation;
|
|
25
19
|
let beforeStylesValue = {};
|
|
26
20
|
let afterAddClasses = [];
|
|
@@ -329,11 +323,6 @@ export const createAnimation = (animationId) => {
|
|
|
329
323
|
update(true);
|
|
330
324
|
return ani;
|
|
331
325
|
};
|
|
332
|
-
const commitStyles = (shouldCommitStyles = true) => {
|
|
333
|
-
_commitStyles = shouldCommitStyles;
|
|
334
|
-
update(true);
|
|
335
|
-
return ani;
|
|
336
|
-
};
|
|
337
326
|
const duration = (animationDuration) => {
|
|
338
327
|
/**
|
|
339
328
|
* CSS Animation Durations of 0ms work fine on Chrome
|
|
@@ -574,9 +563,6 @@ export const createAnimation = (animationId) => {
|
|
|
574
563
|
// When creating the animation the delay is guaranteed to be set to a number.
|
|
575
564
|
animation.currentTime = animation.effect.getComputedTiming().delay + getDuration() * step;
|
|
576
565
|
animation.pause();
|
|
577
|
-
if (_commitStyles) {
|
|
578
|
-
animation.commitStyles();
|
|
579
|
-
}
|
|
580
566
|
});
|
|
581
567
|
}
|
|
582
568
|
else {
|
|
@@ -914,7 +900,6 @@ export const createAnimation = (animationId) => {
|
|
|
914
900
|
addAnimation,
|
|
915
901
|
addElement,
|
|
916
902
|
update,
|
|
917
|
-
commitStyles,
|
|
918
903
|
fill,
|
|
919
904
|
direction,
|
|
920
905
|
iterations,
|
|
@@ -12,7 +12,7 @@ export const createButtonActiveGesture = (el, isButton) => {
|
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
const target = document.elementFromPoint(x, y);
|
|
15
|
-
if (!target || !isButton(target)
|
|
15
|
+
if (!target || !isButton(target)) {
|
|
16
16
|
clearActiveButton();
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
@@ -39,7 +39,7 @@ export const setContent = async (page, html, testInfo, options) => {
|
|
|
39
39
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
|
40
40
|
<link href="${baseUrl}/css/ionic.bundle.css" rel="stylesheet" />
|
|
41
41
|
<link href="${baseUrl}/scripts/testing/styles.css" rel="stylesheet" />
|
|
42
|
-
${theme !== 'light' ? `<link href="${baseUrl}/
|
|
42
|
+
${theme !== 'light' ? `<link href="${baseUrl}/css/themes/${theme}.always.css" rel="stylesheet" />` : ''}
|
|
43
43
|
<script src="${baseUrl}/scripts/testing/scripts.js"></script>
|
|
44
44
|
<script type="module" src="${baseUrl}/dist/ionic/ionic.esm.js"></script>
|
|
45
45
|
<script>
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-01-
|
|
2
|
+
"timestamp": "2024-01-25T17:08:19",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.8.2",
|
|
@@ -1129,11 +1129,6 @@
|
|
|
1129
1129
|
"annotation": "prop",
|
|
1130
1130
|
"docs": "Color of the action sheet button when pressed"
|
|
1131
1131
|
},
|
|
1132
|
-
{
|
|
1133
|
-
"name": "--button-color-disabled",
|
|
1134
|
-
"annotation": "prop",
|
|
1135
|
-
"docs": "Color of the selected action sheet button when disabled"
|
|
1136
|
-
},
|
|
1137
1132
|
{
|
|
1138
1133
|
"name": "--button-color-focused",
|
|
1139
1134
|
"annotation": "prop",
|
|
@@ -12670,33 +12665,6 @@
|
|
|
12670
12665
|
"docsTags": [],
|
|
12671
12666
|
"usage": {},
|
|
12672
12667
|
"props": [
|
|
12673
|
-
{
|
|
12674
|
-
"name": "animationType",
|
|
12675
|
-
"type": "\"legacy\" | \"modern\"",
|
|
12676
|
-
"complexType": {
|
|
12677
|
-
"original": "'modern' | 'legacy'",
|
|
12678
|
-
"resolved": "\"legacy\" | \"modern\"",
|
|
12679
|
-
"references": {}
|
|
12680
|
-
},
|
|
12681
|
-
"mutable": false,
|
|
12682
|
-
"attr": "animation-type",
|
|
12683
|
-
"reflectToAttr": false,
|
|
12684
|
-
"docs": "Specifies the animation behavior for sliding item options.\nYou can choose between two available options: \"modern\" and \"legacy\".\n\n- \"legacy\": The item will be swiped to reveal the option buttons beneath it.\n- \"modern\": As the item is swiped, all item options will smoothly and gradually reveal themselves.\n\nThe \"modern\" animation type requires the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).\nCheck [Browser Support](https://caniuse.com/web-animation) for more information.",
|
|
12685
|
-
"docsTags": [],
|
|
12686
|
-
"default": "'legacy'",
|
|
12687
|
-
"values": [
|
|
12688
|
-
{
|
|
12689
|
-
"value": "legacy",
|
|
12690
|
-
"type": "string"
|
|
12691
|
-
},
|
|
12692
|
-
{
|
|
12693
|
-
"value": "modern",
|
|
12694
|
-
"type": "string"
|
|
12695
|
-
}
|
|
12696
|
-
],
|
|
12697
|
-
"optional": false,
|
|
12698
|
-
"required": false
|
|
12699
|
-
},
|
|
12700
12668
|
{
|
|
12701
12669
|
"name": "disabled",
|
|
12702
12670
|
"type": "boolean",
|
|
@@ -16170,6 +16138,28 @@
|
|
|
16170
16138
|
}
|
|
16171
16139
|
]
|
|
16172
16140
|
},
|
|
16141
|
+
{
|
|
16142
|
+
"name": "getLength",
|
|
16143
|
+
"returns": {
|
|
16144
|
+
"type": "Promise<number>",
|
|
16145
|
+
"docs": ""
|
|
16146
|
+
},
|
|
16147
|
+
"complexType": {
|
|
16148
|
+
"signature": "() => Promise<number>",
|
|
16149
|
+
"parameters": [],
|
|
16150
|
+
"references": {
|
|
16151
|
+
"Promise": {
|
|
16152
|
+
"location": "global",
|
|
16153
|
+
"id": "global::Promise"
|
|
16154
|
+
}
|
|
16155
|
+
},
|
|
16156
|
+
"return": "Promise<number>"
|
|
16157
|
+
},
|
|
16158
|
+
"signature": "getLength() => Promise<number>",
|
|
16159
|
+
"parameters": [],
|
|
16160
|
+
"docs": "Returns the number of views in the stack.",
|
|
16161
|
+
"docsTags": []
|
|
16162
|
+
},
|
|
16173
16163
|
{
|
|
16174
16164
|
"name": "getPrevious",
|
|
16175
16165
|
"returns": {
|
|
@@ -19760,6 +19750,11 @@
|
|
|
19760
19750
|
"annotation": "prop",
|
|
19761
19751
|
"docs": "Background of the progress track, or the buffer bar if `buffer` is set"
|
|
19762
19752
|
},
|
|
19753
|
+
{
|
|
19754
|
+
"name": "--buffer-background",
|
|
19755
|
+
"annotation": "prop",
|
|
19756
|
+
"docs": "DEPRECATED, use `--background` instead"
|
|
19757
|
+
},
|
|
19763
19758
|
{
|
|
19764
19759
|
"name": "--progress-background",
|
|
19765
19760
|
"annotation": "prop",
|
|
@@ -29585,7 +29580,7 @@
|
|
|
29585
29580
|
"path": "src/interface.d.ts"
|
|
29586
29581
|
},
|
|
29587
29582
|
"src/components/action-sheet/action-sheet-interface.ts::ActionSheetButton": {
|
|
29588
|
-
"declaration": "export interface ActionSheetButton<T = any> {\n text?: string;\n role?: 'cancel' | 'destructive' | 'selected' | string;\n icon?: string;\n cssClass?: string | string[];\n id?: string;\n htmlAttributes?: { [key: string]: any };\n handler?: () => boolean | void | Promise<boolean | void>;\n data?: T;\n
|
|
29583
|
+
"declaration": "export interface ActionSheetButton<T = any> {\n text?: string;\n role?: 'cancel' | 'destructive' | 'selected' | string;\n icon?: string;\n cssClass?: string | string[];\n id?: string;\n htmlAttributes?: { [key: string]: any };\n handler?: () => boolean | void | Promise<boolean | void>;\n data?: T;\n}",
|
|
29589
29584
|
"docstring": "",
|
|
29590
29585
|
"path": "src/components/action-sheet/action-sheet-interface.ts"
|
|
29591
29586
|
},
|
|
@@ -127,11 +127,6 @@ const addClassToArray = (classes = [], className) => {
|
|
|
127
127
|
return classes;
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
const supportsAnimationEffect = typeof AnimationEffect === 'function' ||
|
|
131
|
-
(win !== undefined && typeof win.AnimationEffect === 'function');
|
|
132
|
-
const supportsWebAnimations = typeof Element === 'function' &&
|
|
133
|
-
typeof Element.prototype.animate === 'function' &&
|
|
134
|
-
supportsAnimationEffect;
|
|
135
130
|
const createAnimation = (animationId) => {
|
|
136
131
|
let _delay;
|
|
137
132
|
let _duration;
|
|
@@ -143,7 +138,6 @@ const createAnimation = (animationId) => {
|
|
|
143
138
|
let beforeAddClasses = [];
|
|
144
139
|
let beforeRemoveClasses = [];
|
|
145
140
|
let initialized = false;
|
|
146
|
-
let _commitStyles = false;
|
|
147
141
|
let parentAnimation;
|
|
148
142
|
let beforeStylesValue = {};
|
|
149
143
|
let afterAddClasses = [];
|
|
@@ -452,11 +446,6 @@ const createAnimation = (animationId) => {
|
|
|
452
446
|
update(true);
|
|
453
447
|
return ani;
|
|
454
448
|
};
|
|
455
|
-
const commitStyles = (shouldCommitStyles = true) => {
|
|
456
|
-
_commitStyles = shouldCommitStyles;
|
|
457
|
-
update(true);
|
|
458
|
-
return ani;
|
|
459
|
-
};
|
|
460
449
|
const duration = (animationDuration) => {
|
|
461
450
|
/**
|
|
462
451
|
* CSS Animation Durations of 0ms work fine on Chrome
|
|
@@ -697,9 +686,6 @@ const createAnimation = (animationId) => {
|
|
|
697
686
|
// When creating the animation the delay is guaranteed to be set to a number.
|
|
698
687
|
animation.currentTime = animation.effect.getComputedTiming().delay + getDuration() * step;
|
|
699
688
|
animation.pause();
|
|
700
|
-
if (_commitStyles) {
|
|
701
|
-
animation.commitStyles();
|
|
702
|
-
}
|
|
703
689
|
});
|
|
704
690
|
}
|
|
705
691
|
else {
|
|
@@ -1037,7 +1023,6 @@ const createAnimation = (animationId) => {
|
|
|
1037
1023
|
addAnimation,
|
|
1038
1024
|
addElement,
|
|
1039
1025
|
update,
|
|
1040
|
-
commitStyles,
|
|
1041
1026
|
fill,
|
|
1042
1027
|
direction,
|
|
1043
1028
|
iterations,
|
|
@@ -1072,4 +1057,4 @@ const createAnimation = (animationId) => {
|
|
|
1072
1057
|
});
|
|
1073
1058
|
};
|
|
1074
1059
|
|
|
1075
|
-
export { createAnimation as c
|
|
1060
|
+
export { createAnimation as c };
|
|
@@ -6,7 +6,7 @@ import { MENU_BACK_BUTTON_PRIORITY } from './hardware-back-button-b2bc76db.js';
|
|
|
6
6
|
import { p as printIonWarning } from './index-9b0d46f4.js';
|
|
7
7
|
import { c as componentOnReady } from './helpers-ae653409.js';
|
|
8
8
|
import { b as getIonMode } from './ionic-global-1f99b929.js';
|
|
9
|
-
import { c as createAnimation } from './animation-
|
|
9
|
+
import { c as createAnimation } from './animation-dde8cc0d.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* baseAnimation
|
|
@@ -10,8 +10,8 @@ const LIFECYCLE_WILL_LEAVE = 'ionViewWillLeave';
|
|
|
10
10
|
const LIFECYCLE_DID_LEAVE = 'ionViewDidLeave';
|
|
11
11
|
const LIFECYCLE_WILL_UNLOAD = 'ionViewWillUnload';
|
|
12
12
|
|
|
13
|
-
const iosTransitionAnimation = () => import('./ios.transition-
|
|
14
|
-
const mdTransitionAnimation = () => import('./md.transition-
|
|
13
|
+
const iosTransitionAnimation = () => import('./ios.transition-3376ccb2.js');
|
|
14
|
+
const mdTransitionAnimation = () => import('./md.transition-f992779f.js');
|
|
15
15
|
// TODO(FW-2832): types
|
|
16
16
|
const transition = (opts) => {
|
|
17
17
|
return new Promise((resolve, reject) => {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
export { c as createAnimation } from './animation-
|
|
5
|
-
export { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD, g as getIonPageElement } from './index-
|
|
6
|
-
export { iosTransitionAnimation } from './ios.transition-
|
|
7
|
-
export { mdTransitionAnimation } from './md.transition-
|
|
4
|
+
export { c as createAnimation } from './animation-dde8cc0d.js';
|
|
5
|
+
export { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD, g as getIonPageElement } from './index-4743453d.js';
|
|
6
|
+
export { iosTransitionAnimation } from './ios.transition-3376ccb2.js';
|
|
7
|
+
export { mdTransitionAnimation } from './md.transition-f992779f.js';
|
|
8
8
|
export { g as getTimeGivenProgression } from './cubic-bezier-fe2083dc.js';
|
|
9
9
|
export { createGesture } from './index-39782642.js';
|
|
10
10
|
export { g as getPlatforms, i as initialize, a as isPlatform } from './ionic-global-1f99b929.js';
|
|
11
11
|
export { c as componentOnReady } from './helpers-ae653409.js';
|
|
12
12
|
export { I as IonicSafeString, g as getMode, s as setupConfig } from './config-49c88215.js';
|
|
13
13
|
export { o as openURL } from './theme-01f3f29c.js';
|
|
14
|
-
export { m as menuController } from './index-
|
|
14
|
+
export { m as menuController } from './index-1193f005.js';
|
|
15
15
|
export { b as actionSheetController, a as alertController, l as loadingController, m as modalController, p as pickerController, c as popoverController, t as toastController } from './overlays-94dac1cb.js';
|
|
16
16
|
import './index-a5d50daf.js';
|
|
17
17
|
import './index-b7d870cf.js';
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, d as createEvent, e as readTask, h, H as Host, f as getElement } from './index-b7d870cf.js';
|
|
5
|
-
import { c as createButtonActiveGesture } from './button-active-
|
|
5
|
+
import { c as createButtonActiveGesture } from './button-active-48379dd2.js';
|
|
6
6
|
import { r as raf } from './helpers-ae653409.js';
|
|
7
7
|
import { c as createLockController } from './lock-controller-316928be.js';
|
|
8
8
|
import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, f as present, g as dismiss, h as eventMethod, s as safeCall, j as prepareOverlay, k as setOverlayId } from './overlays-94dac1cb.js';
|
|
9
9
|
import { g as getClassMap } from './theme-01f3f29c.js';
|
|
10
10
|
import { b as getIonMode } from './ionic-global-1f99b929.js';
|
|
11
|
-
import { c as createAnimation } from './animation-
|
|
11
|
+
import { c as createAnimation } from './animation-dde8cc0d.js';
|
|
12
12
|
import './haptic-554688a5.js';
|
|
13
13
|
import './capacitor-59395cbd.js';
|
|
14
14
|
import './index-a5d50daf.js';
|
|
@@ -102,9 +102,9 @@ const mdLeaveAnimation = (baseEl) => {
|
|
|
102
102
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
const actionSheetIosCss = ".sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button
|
|
105
|
+
const actionSheetIosCss = ".sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:max(13px, 0.8125rem);font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:max(13px, 0.8125rem);font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:14px;padding-bottom:14px;min-height:56px;font-size:max(20px, 1.25rem);contain:content}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:max(28px, 1.75rem);pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #c5000f)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #c5000f)}}";
|
|
106
106
|
|
|
107
|
-
const actionSheetMdCss = ".sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button
|
|
107
|
+
const actionSheetMdCss = ".sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:\"\";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:1rem;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:0.875rem}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;position:relative;min-height:52px;font-size:1rem;text-align:start;contain:content;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:1.5rem}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}";
|
|
108
108
|
|
|
109
109
|
const ActionSheet = class {
|
|
110
110
|
constructor(hostRef) {
|
|
@@ -292,7 +292,7 @@ const ActionSheet = class {
|
|
|
292
292
|
}, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { tappable: this.backdropDismiss }), h("div", { tabindex: "0" }), h("div", { class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { class: "action-sheet-container" }, h("div", { class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (h("div", { id: headerID, class: {
|
|
293
293
|
'action-sheet-title': true,
|
|
294
294
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
295
|
-
} }, header, this.subHeader && h("div", { class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b)
|
|
295
|
+
} }, header, this.subHeader && h("div", { class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b) }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && h("ion-ripple-effect", null))))), cancelButton && (h("div", { class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({}, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && h("ion-ripple-effect", null)))))), h("div", { tabindex: "0" })));
|
|
296
296
|
}
|
|
297
297
|
get el() { return getElement(this); }
|
|
298
298
|
static get watchers() { return {
|
|
@@ -301,7 +301,7 @@ const ActionSheet = class {
|
|
|
301
301
|
}; }
|
|
302
302
|
};
|
|
303
303
|
const buttonClass = (button) => {
|
|
304
|
-
return Object.assign({ 'action-sheet-button': true, 'ion-activatable':
|
|
304
|
+
return Object.assign({ 'action-sheet-button': true, 'ion-activatable': true, 'ion-focusable': true, [`action-sheet-${button.role}`]: button.role !== undefined }, getClassMap(button.cssClass));
|
|
305
305
|
};
|
|
306
306
|
ActionSheet.style = {
|
|
307
307
|
ios: actionSheetIosCss,
|