@ionic/core 8.5.5-dev.11744729748.174bf7e0 → 8.5.5-dev.11745934912.1dcd33ea
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 +13 -8
- package/components/alert.js +16 -12
- package/components/animation.js +2 -3
- package/components/backdrop.js +10 -6
- package/components/button.js +44 -14
- package/components/buttons.js +11 -7
- package/components/capacitor.js +1 -1
- package/components/caret-down.js +6 -0
- package/components/caret-left.js +6 -0
- package/components/caret-right.js +6 -0
- package/components/checkbox.js +30 -12
- package/components/config.js +1 -3
- package/{dist/esm/index-cfd9c1f2.js → components/config2.js} +1 -43
- package/components/content.js +14 -12
- package/components/data.js +8 -8
- package/components/focus-visible.js +23 -1
- package/components/framework-delegate.js +3 -1
- package/components/header.js +24 -15
- package/components/helpers.js +43 -4
- package/components/index.js +1 -2
- package/components/index2.js +2 -1
- package/components/index4.js +288 -104
- package/components/index5.js +27 -302
- package/components/index6.js +124 -3
- package/components/index7.js +163 -27
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +2 -3
- package/components/ion-accordion-group.js +26 -7
- package/components/ion-accordion.js +36 -18
- package/components/ion-app.js +14 -77
- package/components/ion-avatar.js +58 -5
- package/components/ion-back-button.js +29 -20
- package/components/ion-badge.js +76 -9
- package/components/ion-breadcrumb.js +45 -11
- package/components/ion-breadcrumbs.js +9 -5
- package/components/ion-card-content.js +11 -7
- package/components/ion-card-header.js +9 -5
- package/components/ion-card-subtitle.js +9 -5
- package/components/ion-card-title.js +9 -5
- package/components/ion-card.js +17 -9
- package/components/ion-chip.js +49 -8
- package/components/ion-col.js +5 -5
- package/components/ion-datetime-button.js +13 -10
- package/components/ion-datetime.js +113 -35
- package/components/ion-divider.d.ts +11 -0
- package/components/ion-divider.js +59 -0
- package/components/ion-fab-button.js +33 -10
- package/components/ion-fab-list.js +5 -5
- package/components/ion-fab.js +6 -6
- package/components/ion-footer.js +18 -12
- package/components/ion-grid.js +5 -5
- package/components/ion-img.js +5 -2
- package/components/ion-infinite-scroll-content.js +13 -9
- package/components/ion-infinite-scroll.js +5 -5
- package/components/ion-input-password-toggle.js +55 -16
- package/components/ion-input.js +118 -20
- package/components/ion-item-divider.js +9 -5
- package/components/ion-item-group.js +9 -5
- package/components/ion-item-option.js +32 -9
- package/components/ion-item-options.js +11 -7
- package/components/ion-item-sliding.js +6 -7
- package/components/ion-loading.js +13 -9
- package/components/ion-menu-button.js +29 -12
- package/components/ion-menu-toggle.js +6 -6
- package/components/ion-menu.js +15 -12
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +10 -8
- package/components/ion-note.js +9 -5
- package/components/ion-picker-legacy.js +8 -9
- package/components/ion-progress-bar.js +28 -8
- package/components/ion-range.js +15 -12
- package/components/ion-refresher-content.js +28 -10
- package/components/ion-refresher.js +12 -9
- package/components/ion-reorder-group.js +5 -5
- package/components/ion-reorder.js +31 -5
- package/components/ion-router-link.js +6 -6
- package/components/ion-router-outlet.js +4 -4
- package/components/ion-router.js +8 -9
- package/components/ion-row.js +5 -2
- package/components/ion-searchbar.js +141 -19
- package/components/ion-segment-button.js +14 -11
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +6 -2
- package/components/ion-segment.js +11 -7
- package/components/ion-select-option.js +5 -2
- package/components/ion-select.js +122 -36
- package/components/ion-skeleton-text.js +6 -6
- package/components/ion-split-pane.js +14 -11
- package/components/ion-tab-bar.js +31 -8
- package/components/ion-tab-button.js +28 -8
- package/components/ion-tab.js +4 -5
- package/components/ion-tabs.js +3 -4
- package/components/ion-text.js +5 -5
- package/components/ion-textarea.js +48 -11
- package/components/ion-thumbnail.js +5 -2
- package/components/ion-toast.js +39 -18
- package/components/ion-toggle.js +88 -21
- package/components/ionic-global.js +385 -15
- package/components/ios.transition.js +1 -0
- package/components/item.js +41 -11
- package/components/keyboard-controller.js +4 -2
- package/components/label.js +9 -5
- package/components/list-header.js +11 -7
- package/components/list.js +29 -6
- package/components/list2.js +6 -0
- package/components/menu-toggle-util.js +1 -1
- package/components/modal.js +54 -24
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +7 -8
- package/components/picker-column-option.js +9 -5
- package/components/picker-column.js +7 -8
- package/components/picker-column2.js +4 -4
- package/components/picker.js +8 -4
- package/components/popover.js +12 -9
- package/components/radio-group.js +11 -5
- package/components/radio.js +12 -8
- package/components/ripple-effect.js +18 -8
- package/components/select-modal.js +3 -3
- package/components/select-popover.js +9 -2
- package/components/spinner.js +36 -10
- package/components/status-tap.js +1 -1
- package/components/title.js +11 -7
- package/components/toolbar.js +11 -7
- package/components/x.js +6 -0
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic/bundle.ionic.css +1 -0
- package/css/ionic/bundle.ionic.css.map +1 -0
- package/css/ionic/core.ionic.css +1 -0
- package/css/ionic/core.ionic.css.map +1 -0
- package/css/ionic/global.bundle.ionic.css +1 -0
- package/css/ionic/global.bundle.ionic.css.map +1 -0
- package/css/ionic/ionic-swiper.ionic.css +1 -0
- package/css/ionic/ionic-swiper.ionic.css.map +1 -0
- package/css/ionic/link.ionic.css +1 -0
- package/css/ionic/link.ionic.css.map +1 -0
- package/css/ionic/structure.ionic.css +1 -0
- package/css/ionic/structure.ionic.css.map +1 -0
- package/css/ionic/typography.ionic.css +1 -0
- package/css/ionic/typography.ionic.css.map +1 -0
- package/css/ionic/utils.bundle.ionic.css +1 -0
- package/css/ionic/utils.bundle.ionic.css.map +1 -0
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/dist/cjs/{animation-ab2d3449.js → animation-43d312d2.js} +3 -4
- package/dist/cjs/{app-globals-ddceb1f4.js → app-globals-c81ddb64.js} +1 -1
- package/dist/cjs/{button-active-43e2b419.js → button-active-952e2758.js} +1 -1
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-8dec41f0.js} +3 -3
- package/dist/cjs/caret-down-3c215cff.js +8 -0
- package/dist/cjs/caret-left-2bb66970.js +8 -0
- package/dist/cjs/caret-right-88e03970.js +8 -0
- package/dist/cjs/{config-f6225ae7.js → config-4f60b98a.js} +1 -3
- package/dist/cjs/{index-cc858e97.js → config-aff4ff52.js} +0 -45
- package/dist/cjs/{data-94e8d392.js → data-d8023923.js} +8 -8
- package/dist/{esm/focus-visible-dd40d69f.js → cjs/focus-visible-fe3acfb5.js} +27 -1
- package/dist/cjs/{framework-delegate-862d9d00.js → framework-delegate-b28d080d.js} +4 -2
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-7c4b9668.js} +1 -1
- package/dist/cjs/{helpers-8a48fdea.js → helpers-a6b43470.js} +43 -4
- package/dist/cjs/{index-dbe01e08.js → index-77517743.js} +10 -8
- package/dist/cjs/{index-1eff7149.js → index-c05dceac.js} +12 -11
- package/dist/cjs/{index-31b07b9c.js → index-d3a1be32.js} +3 -3
- package/dist/cjs/{index-a96d31ae.js → index-ea1f3a96.js} +14 -15
- package/dist/cjs/index.cjs.js +13 -20
- package/dist/cjs/{input-shims-415be7ee.js → input-shims-fb4548bd.js} +19 -17
- package/dist/cjs/{input.utils-a7957fd6.js → input.utils-fd15bda5.js} +4 -5
- package/dist/cjs/ion-accordion_2.cjs.entry.js +63 -25
- package/dist/cjs/ion-action-sheet.cjs.entry.js +22 -18
- package/dist/cjs/ion-alert.cjs.entry.js +27 -24
- package/dist/cjs/ion-app_8.cjs.entry.js +114 -153
- package/dist/cjs/ion-avatar_3.cjs.entry.js +127 -12
- package/dist/cjs/ion-back-button.cjs.entry.js +33 -23
- package/dist/cjs/ion-backdrop.cjs.entry.js +11 -7
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +54 -16
- package/dist/cjs/ion-button_2.cjs.entry.js +47 -15
- package/dist/cjs/ion-card_5.cjs.entry.js +53 -29
- package/dist/cjs/ion-checkbox.cjs.entry.js +31 -14
- package/dist/cjs/ion-chip.cjs.entry.js +46 -8
- package/dist/cjs/ion-col_3.cjs.entry.js +14 -11
- package/dist/cjs/ion-datetime-button.cjs.entry.js +17 -12
- package/dist/cjs/ion-datetime_3.cjs.entry.js +191 -115
- package/dist/cjs/ion-divider.cjs.entry.js +43 -0
- package/dist/cjs/ion-fab_3.cjs.entry.js +43 -20
- package/dist/cjs/ion-img.cjs.entry.js +8 -4
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +22 -17
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +55 -16
- package/dist/cjs/ion-input.cjs.entry.js +119 -23
- package/dist/cjs/ion-item-option_3.cjs.entry.js +47 -21
- package/dist/cjs/ion-item_8.cjs.entry.js +116 -44
- package/dist/cjs/ion-loading.cjs.entry.js +21 -18
- package/dist/cjs/ion-menu_3.cjs.entry.js +60 -40
- package/dist/cjs/ion-modal.cjs.entry.js +99 -70
- package/dist/cjs/ion-nav_2.cjs.entry.js +24 -21
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +12 -7
- package/dist/cjs/ion-picker-column.cjs.entry.js +13 -13
- package/dist/cjs/ion-picker.cjs.entry.js +11 -6
- package/dist/cjs/ion-popover.cjs.entry.js +21 -18
- package/dist/cjs/ion-progress-bar.cjs.entry.js +29 -9
- package/dist/cjs/ion-radio_2.cjs.entry.js +25 -14
- package/dist/cjs/ion-range.cjs.entry.js +21 -16
- package/dist/cjs/ion-refresher_2.cjs.entry.js +48 -26
- package/dist/cjs/ion-reorder_2.cjs.entry.js +38 -13
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +18 -8
- package/dist/cjs/ion-route_4.cjs.entry.js +17 -16
- package/dist/cjs/ion-searchbar.cjs.entry.js +140 -19
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +6 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +27 -18
- package/dist/cjs/ion-select-modal.cjs.entry.js +9 -10
- package/dist/cjs/ion-select_3.cjs.entry.js +137 -43
- package/dist/cjs/ion-spinner.cjs.entry.js +35 -10
- package/dist/cjs/ion-split-pane.cjs.entry.js +15 -11
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +61 -21
- package/dist/cjs/ion-tab_2.cjs.entry.js +10 -9
- package/dist/cjs/ion-text.cjs.entry.js +6 -6
- package/dist/cjs/ion-textarea.cjs.entry.js +52 -16
- package/dist/cjs/ion-toast.cjs.entry.js +63 -44
- package/dist/cjs/ion-toggle.cjs.entry.js +92 -25
- package/dist/cjs/ionic-global-02fb2aac.js +531 -0
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-a131cd4d.js → ios.transition-e054fb0b.js} +7 -5
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-77f82514.js} +5 -3
- package/dist/cjs/{keyboard-0272231f.js → keyboard-801ef916.js} +1 -1
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-04202fab.js} +11 -9
- package/dist/cjs/list-2930c629.js +8 -0
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-e018ebe5.js → md.transition-eba29791.js} +6 -5
- package/dist/cjs/{notch-controller-09b7f358.js → notch-controller-352d63c8.js} +4 -4
- package/dist/cjs/{overlays-4c291a05.js → overlays-fc17eab1.js} +21 -22
- package/dist/cjs/{status-tap-f1acefac.js → status-tap-99fac5b1.js} +5 -3
- package/dist/cjs/{swipe-back-4918e56b.js → swipe-back-8aea3922.js} +3 -2
- package/dist/cjs/x-81a8f51c.js +8 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.ionic.css +197 -0
- package/dist/collection/components/accordion/accordion.ios.css +73 -58
- package/dist/collection/components/accordion/accordion.js +37 -21
- package/dist/collection/components/accordion/accordion.md.css +67 -59
- package/dist/collection/components/accordion-group/accordion-group.ionic.css +95 -0
- package/dist/collection/components/accordion-group/accordion-group.ios.css +16 -4
- package/dist/collection/components/accordion-group/accordion-group.js +44 -9
- package/dist/collection/components/accordion-group/accordion-group.md.css +22 -4
- package/dist/collection/components/action-sheet/action-sheet.ios.css +18 -6
- package/dist/collection/components/action-sheet/action-sheet.js +14 -10
- package/dist/collection/components/action-sheet/action-sheet.md.css +17 -5
- package/dist/collection/components/alert/alert.ios.css +19 -1
- package/dist/collection/components/alert/alert.js +16 -14
- package/dist/collection/components/alert/alert.md.css +19 -1
- package/dist/collection/components/app/app.js +22 -80
- package/dist/collection/components/avatar/avatar.ionic.css +360 -0
- package/dist/collection/components/avatar/avatar.ios.css +7 -33
- package/dist/collection/components/avatar/avatar.js +113 -4
- package/dist/collection/components/avatar/avatar.md.css +51 -0
- package/dist/collection/components/back-button/back-button.ios.css +60 -48
- package/dist/collection/components/back-button/back-button.js +27 -19
- package/dist/collection/components/back-button/back-button.md.css +60 -48
- package/dist/collection/components/backdrop/backdrop.ionic.css +111 -0
- package/dist/collection/components/backdrop/backdrop.ios.css +56 -19
- package/dist/collection/components/backdrop/backdrop.js +12 -6
- package/dist/collection/components/backdrop/backdrop.md.css +56 -19
- package/dist/collection/components/badge/badge.ionic.css +348 -0
- package/dist/collection/components/badge/badge.ios.css +139 -12
- package/dist/collection/components/badge/badge.js +139 -9
- package/dist/collection/components/badge/badge.md.css +123 -12
- package/dist/collection/components/breadcrumb/breadcrumb.ios.css +20 -8
- package/dist/collection/components/breadcrumb/breadcrumb.js +43 -11
- package/dist/collection/components/breadcrumb/breadcrumb.md.css +20 -8
- package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +6 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +11 -9
- package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +6 -0
- package/dist/collection/components/button/button.ionic.css +603 -0
- package/dist/collection/components/button/button.ios.css +139 -46
- package/dist/collection/components/button/button.js +49 -19
- package/dist/collection/components/button/button.md.css +130 -50
- package/dist/collection/components/buttons/buttons.ionic.css +100 -0
- package/dist/collection/components/buttons/buttons.ios.css +59 -7
- package/dist/collection/components/buttons/buttons.js +14 -8
- package/dist/collection/components/buttons/buttons.md.css +55 -3
- package/dist/collection/components/card/card.ionic.css +137 -0
- package/dist/collection/components/card/card.ios.css +65 -14
- package/dist/collection/components/card/card.js +34 -10
- package/dist/collection/components/card/card.md.css +65 -14
- package/dist/collection/components/card-content/card-content.ionic.css +90 -0
- package/dist/collection/components/card-content/card-content.ios.css +16 -1
- package/dist/collection/components/card-content/card-content.js +11 -8
- package/dist/collection/components/card-content/card-content.md.css +16 -1
- package/dist/collection/components/card-header/card-header.ionic.css +87 -0
- package/dist/collection/components/card-header/card-header.ios.css +27 -15
- package/dist/collection/components/card-header/card-header.js +12 -9
- package/dist/collection/components/card-header/card-header.md.css +27 -15
- package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +146 -0
- package/dist/collection/components/card-subtitle/card-subtitle.ios.css +12 -0
- package/dist/collection/components/card-subtitle/card-subtitle.js +11 -8
- package/dist/collection/components/card-subtitle/card-subtitle.md.css +12 -0
- package/dist/collection/components/card-title/card-title.ios.css +73 -0
- package/dist/collection/components/card-title/card-title.js +11 -8
- package/dist/collection/components/card-title/card-title.md.css +73 -0
- package/dist/collection/components/checkbox/checkbox.ionic.css +527 -0
- package/dist/collection/components/checkbox/checkbox.ios.css +161 -101
- package/dist/collection/components/checkbox/checkbox.js +64 -14
- package/dist/collection/components/checkbox/checkbox.md.css +162 -102
- package/dist/collection/components/chip/chip.ionic.css +230 -0
- package/dist/collection/components/chip/chip.ios.css +67 -14
- package/dist/collection/components/chip/chip.js +98 -8
- package/dist/collection/components/chip/chip.md.css +67 -14
- package/dist/collection/components/col/col.css +12 -0
- package/dist/collection/components/col/col.js +9 -5
- package/dist/collection/components/content/content.css +8 -2
- package/dist/collection/components/content/content.js +16 -11
- package/dist/collection/components/datetime/datetime.ionic.css +673 -0
- package/dist/collection/components/datetime/datetime.ios.css +237 -86
- package/dist/collection/components/datetime/datetime.js +107 -29
- package/dist/collection/components/datetime/datetime.md.css +237 -86
- package/dist/collection/components/datetime/utils/comparison.js +1 -1
- package/dist/collection/components/datetime/utils/data.js +5 -5
- package/dist/collection/components/datetime/utils/parse.js +1 -1
- package/dist/collection/components/datetime/utils/state.js +1 -1
- package/dist/collection/components/datetime/utils/validate.js +4 -4
- package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
- package/dist/collection/components/datetime-button/datetime-button.js +15 -12
- package/dist/collection/components/datetime-button/datetime-button.md.css +6 -0
- package/dist/collection/components/divider/divider.ionic.css +150 -0
- package/dist/collection/components/divider/divider.ios.css +87 -0
- package/dist/collection/components/divider/divider.js +76 -0
- package/dist/collection/components/divider/divider.md.css +87 -0
- package/dist/collection/components/fab/fab.css +25 -1
- package/dist/collection/components/fab/fab.js +9 -5
- package/dist/collection/components/fab-button/fab-button.ios.css +18 -6
- package/dist/collection/components/fab-button/fab-button.js +36 -15
- package/dist/collection/components/fab-button/fab-button.md.css +20 -8
- package/dist/collection/components/fab-list/fab-list.css +12 -0
- package/dist/collection/components/fab-list/fab-list.js +9 -5
- package/dist/collection/components/footer/footer.ios.css +14 -2
- package/dist/collection/components/footer/footer.js +20 -15
- package/dist/collection/components/footer/footer.md.css +12 -0
- package/dist/collection/components/grid/grid.css +12 -0
- package/dist/collection/components/grid/grid.js +9 -5
- package/dist/collection/components/header/header.ionic.css +86 -0
- package/dist/collection/components/header/header.ios.css +25 -10
- package/dist/collection/components/header/header.js +42 -17
- package/dist/collection/components/header/header.md.css +23 -8
- package/dist/collection/components/img/img.js +8 -2
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +8 -4
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +12 -0
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +16 -10
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +12 -0
- package/dist/collection/components/input/input.ionic.css +855 -0
- package/dist/collection/components/input/input.ios.css +223 -140
- package/dist/collection/components/input/input.js +144 -30
- package/dist/collection/components/input/input.md.css +193 -212
- package/dist/collection/components/input/input.utils.js +1 -1
- package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +80 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +50 -14
- package/dist/collection/components/input-password-toggle/input-password-toggle.native.css +61 -0
- package/dist/collection/components/item/item.ionic.css +502 -0
- package/dist/collection/components/item/item.ios.css +109 -69
- package/dist/collection/components/item/item.js +44 -16
- package/dist/collection/components/item/item.md.css +120 -68
- package/dist/collection/components/item-divider/item-divider.ios.css +18 -0
- package/dist/collection/components/item-divider/item-divider.js +11 -8
- package/dist/collection/components/item-divider/item-divider.md.css +18 -0
- package/dist/collection/components/item-group/item-group.ios.css +12 -0
- package/dist/collection/components/item-group/item-group.js +13 -7
- package/dist/collection/components/item-group/item-group.md.css +12 -0
- package/dist/collection/components/item-option/item-option.ionic.css +280 -0
- package/dist/collection/components/item-option/item-option.ios.css +136 -29
- package/dist/collection/components/item-option/item-option.js +64 -9
- package/dist/collection/components/item-option/item-option.md.css +136 -29
- package/dist/collection/components/item-options/item-options.ionic.css +223 -0
- package/dist/collection/components/item-options/item-options.ios.css +77 -34
- package/dist/collection/components/item-options/item-options.js +13 -7
- package/dist/collection/components/item-options/item-options.md.css +77 -34
- package/dist/collection/components/item-sliding/item-sliding.css +6 -0
- package/dist/collection/components/item-sliding/item-sliding.js +9 -6
- package/dist/collection/components/label/label.ios.css +18 -0
- package/dist/collection/components/label/label.js +11 -8
- package/dist/collection/components/label/label.md.css +18 -0
- package/dist/collection/components/list/list.ionic.css +214 -0
- package/dist/collection/components/list/list.ios.css +54 -14
- package/dist/collection/components/list/list.js +47 -9
- package/dist/collection/components/list/list.md.css +56 -16
- package/dist/collection/components/list-header/list-header.ionic.css +192 -0
- package/dist/collection/components/list-header/list-header.ios.css +82 -38
- package/dist/collection/components/list-header/list-header.js +11 -8
- package/dist/collection/components/list-header/list-header.md.css +82 -38
- package/dist/collection/components/loading/loading.ios.css +13 -1
- package/dist/collection/components/loading/loading.js +13 -10
- package/dist/collection/components/loading/loading.md.css +13 -1
- package/dist/collection/components/menu/menu.ios.css +15 -3
- package/dist/collection/components/menu/menu.js +14 -10
- package/dist/collection/components/menu/menu.md.css +15 -3
- package/dist/collection/components/menu-button/menu-button.ionic.css +238 -0
- package/dist/collection/components/menu-button/menu-button.ios.css +48 -14
- package/dist/collection/components/menu-button/menu-button.js +26 -10
- package/dist/collection/components/menu-button/menu-button.md.css +49 -15
- package/dist/collection/components/menu-toggle/menu-toggle.js +8 -5
- package/dist/collection/components/modal/animations/sheet.js +8 -2
- package/dist/collection/components/modal/gestures/sheet.js +10 -6
- package/dist/collection/components/modal/modal.ionic.css +243 -0
- package/dist/collection/components/modal/modal.ios.css +174 -70
- package/dist/collection/components/modal/modal.js +50 -14
- package/dist/collection/components/modal/modal.md.css +174 -70
- package/dist/collection/components/nav/nav.css +7 -1
- package/dist/collection/components/nav/nav.js +13 -7
- package/dist/collection/components/nav-link/nav-link.js +5 -1
- package/dist/collection/components/note/note.ios.css +12 -0
- package/dist/collection/components/note/note.js +11 -8
- package/dist/collection/components/note/note.md.css +12 -0
- package/dist/collection/components/picker/picker.ios.css +15 -3
- package/dist/collection/components/picker/picker.js +8 -5
- package/dist/collection/components/picker/picker.md.css +15 -3
- package/dist/collection/components/picker-column/picker-column.css +9 -2
- package/dist/collection/components/picker-column/picker-column.js +8 -7
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +6 -0
- package/dist/collection/components/picker-column-option/picker-column-option.js +13 -7
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -0
- package/dist/collection/components/picker-legacy/picker.ios.css +13 -1
- package/dist/collection/components/picker-legacy/picker.js +8 -7
- package/dist/collection/components/picker-legacy/picker.md.css +13 -1
- package/dist/collection/components/picker-legacy-column/picker-column.ios.css +12 -0
- package/dist/collection/components/picker-legacy-column/picker-column.js +4 -4
- package/dist/collection/components/picker-legacy-column/picker-column.md.css +12 -0
- package/dist/collection/components/popover/popover.ios.css +13 -1
- package/dist/collection/components/popover/popover.js +16 -13
- package/dist/collection/components/popover/popover.md.css +13 -1
- package/dist/collection/components/progress-bar/progress-bar.ionic.css +289 -0
- package/dist/collection/components/progress-bar/progress-bar.ios.css +43 -12
- package/dist/collection/components/progress-bar/progress-bar.js +42 -7
- package/dist/collection/components/progress-bar/progress-bar.md.css +43 -12
- package/dist/collection/components/radio/radio.ionic.css +424 -0
- package/dist/collection/components/radio/radio.ios.css +134 -91
- package/dist/collection/components/radio/radio.js +12 -9
- package/dist/collection/components/radio/radio.md.css +134 -91
- package/dist/collection/components/radio-group/radio-group.ionic.css +127 -0
- package/dist/collection/components/radio-group/radio-group.ios.css +42 -18
- package/dist/collection/components/radio-group/radio-group.js +13 -5
- package/dist/collection/components/radio-group/radio-group.md.css +42 -18
- package/dist/collection/components/range/range.ionic.css +555 -0
- package/dist/collection/components/range/range.ios.css +128 -85
- package/dist/collection/components/range/range.js +14 -11
- package/dist/collection/components/range/range.md.css +128 -85
- package/dist/collection/components/refresher/refresher.ios.css +14 -1
- package/dist/collection/components/refresher/refresher.js +12 -10
- package/dist/collection/components/refresher/refresher.md.css +15 -2
- package/dist/collection/components/refresher-content/refresher-content.js +28 -7
- package/dist/collection/components/reorder/reorder.ios.css +6 -0
- package/dist/collection/components/reorder/reorder.js +33 -6
- package/dist/collection/components/reorder/reorder.md.css +6 -0
- package/dist/collection/components/reorder-group/reorder-group.css +6 -0
- package/dist/collection/components/reorder-group/reorder-group.js +8 -4
- package/dist/collection/components/ripple-effect/{ripple-effect.css → ripple-effect.common.css} +7 -1
- package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +217 -0
- package/dist/collection/components/ripple-effect/ripple-effect.js +14 -6
- package/dist/collection/components/route/route.js +4 -0
- package/dist/collection/components/router/router.js +11 -8
- package/dist/collection/components/router/utils/dom.js +1 -2
- package/dist/collection/components/router-link/router-link.css +8 -2
- package/dist/collection/components/router-link/router-link.js +9 -5
- package/dist/collection/components/router-outlet/router-outlet.css +7 -1
- package/dist/collection/components/router-outlet/router-outlet.js +6 -4
- package/dist/collection/components/row/row.css +12 -0
- package/dist/collection/components/row/row.js +9 -2
- package/dist/collection/components/searchbar/searchbar.ionic.css +628 -0
- package/dist/collection/components/searchbar/searchbar.ios.css +56 -18
- package/dist/collection/components/searchbar/searchbar.js +179 -29
- package/dist/collection/components/searchbar/searchbar.md.css +56 -18
- package/dist/collection/components/segment/segment.ionic.css +117 -0
- package/dist/collection/components/segment/segment.ios.css +45 -2
- package/dist/collection/components/segment/segment.js +11 -8
- package/dist/collection/components/segment/segment.md.css +45 -2
- package/dist/collection/components/segment-button/segment-button.ionic.css +355 -0
- package/dist/collection/components/segment-button/segment-button.ios.css +146 -105
- package/dist/collection/components/segment-button/segment-button.js +14 -12
- package/dist/collection/components/segment-button/segment-button.md.css +148 -107
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.ios.css +6 -0
- package/dist/collection/components/segment-view/segment-view.js +6 -4
- package/dist/collection/components/segment-view/segment-view.md.css +6 -0
- package/dist/collection/components/select/select.ionic.css +763 -0
- package/dist/collection/components/select/select.ios.css +315 -176
- package/dist/collection/components/select/select.js +159 -58
- package/dist/collection/components/select/select.md.css +331 -178
- package/dist/collection/components/select-modal/select-modal.ionic.css +121 -0
- package/dist/collection/components/select-modal/select-modal.ios.css +18 -0
- package/dist/collection/components/select-modal/select-modal.js +3 -3
- package/dist/collection/components/select-modal/select-modal.md.css +7 -3
- package/dist/collection/components/select-option/select-option.js +9 -2
- package/dist/collection/components/select-popover/select-popover.ios.css +18 -0
- package/dist/collection/components/select-popover/select-popover.js +12 -4
- package/dist/collection/components/select-popover/select-popover.md.css +18 -0
- package/dist/collection/components/skeleton-text/skeleton-text.css +6 -0
- package/dist/collection/components/skeleton-text/skeleton-text.js +9 -5
- package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +75 -10
- package/dist/collection/components/spinner/spinner.js +46 -6
- package/dist/collection/components/spinner/spinner.native.css +198 -0
- package/dist/collection/components/split-pane/split-pane.ios.css +20 -2
- package/dist/collection/components/split-pane/split-pane.js +16 -11
- package/dist/collection/components/split-pane/split-pane.md.css +20 -2
- package/dist/collection/components/tab/tab.js +8 -5
- package/dist/collection/components/tab-bar/tab-bar.ionic.css +188 -0
- package/dist/collection/components/tab-bar/tab-bar.ios.css +71 -43
- package/dist/collection/components/tab-bar/tab-bar.js +65 -10
- package/dist/collection/components/tab-bar/tab-bar.md.css +71 -43
- package/dist/collection/components/tab-button/tab-button.ionic.css +338 -0
- package/dist/collection/components/tab-button/tab-button.ios.css +171 -95
- package/dist/collection/components/tab-button/tab-button.js +43 -8
- package/dist/collection/components/tab-button/tab-button.md.css +137 -93
- package/dist/collection/components/tabs/tabs.css +7 -1
- package/dist/collection/components/tabs/tabs.js +5 -3
- package/dist/collection/components/text/text.css +6 -0
- package/dist/collection/components/text/text.js +7 -6
- package/dist/collection/components/textarea/textarea.ionic.css +830 -0
- package/dist/collection/components/textarea/textarea.ios.css +275 -139
- package/dist/collection/components/textarea/textarea.js +69 -16
- package/dist/collection/components/textarea/textarea.md.css +288 -140
- package/dist/collection/components/thumbnail/thumbnail.css +6 -0
- package/dist/collection/components/thumbnail/thumbnail.js +9 -2
- package/dist/collection/components/title/title.ionic.css +145 -0
- package/dist/collection/components/title/title.ios.css +32 -4
- package/dist/collection/components/title/title.js +13 -7
- package/dist/collection/components/title/title.md.css +32 -4
- package/dist/collection/components/toast/animations/utils.js +2 -2
- package/dist/collection/components/toast/toast.ionic.css +396 -0
- package/dist/collection/components/toast/toast.ios.css +84 -45
- package/dist/collection/components/toast/toast.js +71 -17
- package/dist/collection/components/toast/toast.md.css +84 -45
- package/dist/collection/components/toggle/toggle.ionic.css +509 -0
- package/dist/collection/components/toggle/toggle.ios.css +252 -148
- package/dist/collection/components/toggle/toggle.js +84 -20
- package/dist/collection/components/toggle/toggle.md.css +249 -148
- package/dist/collection/components/toolbar/toolbar.ionic.css +233 -0
- package/dist/collection/components/toolbar/toolbar.ios.css +90 -47
- package/dist/collection/components/toolbar/toolbar.js +13 -10
- package/dist/collection/components/toolbar/toolbar.md.css +90 -47
- package/dist/collection/global/ionic-global.js +228 -13
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/animation/animation.js +1 -2
- package/dist/collection/utils/focus-visible.js +22 -0
- package/dist/collection/utils/framework-delegate.js +3 -1
- package/dist/collection/utils/hardware-back-button.js +1 -2
- package/dist/collection/utils/helpers.js +43 -4
- package/dist/collection/utils/keyboard/keyboard-controller.js +3 -1
- package/dist/collection/utils/logging/index.js +4 -10
- package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
- package/dist/collection/utils/menu-controller/animations/push.js +2 -1
- package/dist/collection/utils/menu-controller/animations/reveal.js +2 -1
- package/dist/collection/utils/overlays.js +6 -5
- package/dist/collection/utils/sanitization/index.js +1 -2
- package/dist/collection/utils/test/playwright/generator.js +48 -23
- package/dist/collection/utils/test/playwright/page/utils/goto.js +14 -5
- package/dist/collection/utils/test/playwright/page/utils/set-content.js +16 -2
- package/dist/collection/utils/transition/ios.transition.js +1 -0
- package/dist/docs.json +7623 -331
- package/dist/esm/{animation-8b25e105.js → animation-75691d96.js} +2 -3
- package/dist/esm/{app-globals-dbdbb3df.js → app-globals-73e46285.js} +1 -1
- package/dist/esm/{button-active-90f1dbc4.js → button-active-e61fbdcf.js} +2 -2
- package/dist/esm/{capacitor-59395cbd.js → capacitor-41c43387.js} +1 -1
- package/dist/esm/caret-down-3eaad1cc.js +6 -0
- package/dist/esm/caret-left-33424bb0.js +6 -0
- package/dist/esm/caret-right-68d856ad.js +6 -0
- package/dist/esm/{config-9898ed97.js → config-49c88215.js} +1 -3
- package/dist/esm/config-84eb9670.js +79 -0
- package/dist/esm/{data-0d7ea6eb.js → data-19735819.js} +8 -8
- package/dist/{cjs/focus-visible-7a0ce04f.js → esm/focus-visible-6827442c.js} +23 -3
- package/dist/esm/{framework-delegate-56b467ad.js → framework-delegate-648f8ef4.js} +4 -2
- package/dist/esm/{haptic-ac164e4c.js → haptic-b2fbf33c.js} +1 -1
- package/dist/esm/{helpers-d94bc8ad.js → helpers-a034be46.js} +43 -4
- package/dist/esm/{index-9a17db3d.js → index-46e613a7.js} +2 -2
- package/dist/esm/{index-527b9e34.js → index-4c3c5d46.js} +1 -1
- package/dist/esm/{index-18f31305.js → index-65ba6107.js} +10 -11
- package/{components/index9.js → dist/esm/index-664eaf98.js} +5 -2
- package/dist/esm/{index-68c0d151.js → index-8706b805.js} +6 -5
- package/dist/esm/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
- package/dist/esm/index.js +13 -14
- package/dist/esm/{input-shims-279903e2.js → input-shims-16500377.js} +8 -6
- package/dist/esm/{input.utils-40504d6d.js → input.utils-8ddd6756.js} +3 -4
- package/dist/esm/ion-accordion_2.entry.js +63 -25
- package/dist/esm/ion-action-sheet.entry.js +23 -19
- package/dist/esm/ion-alert.entry.js +26 -23
- package/dist/esm/ion-app_8.entry.js +102 -141
- package/dist/esm/ion-avatar_3.entry.js +129 -14
- package/dist/esm/ion-back-button.entry.js +32 -22
- package/dist/esm/ion-backdrop.entry.js +12 -8
- package/dist/esm/ion-breadcrumb_2.entry.js +56 -18
- package/dist/esm/ion-button_2.entry.js +48 -16
- package/dist/esm/ion-card_5.entry.js +54 -30
- package/dist/esm/ion-checkbox.entry.js +32 -15
- package/dist/esm/ion-chip.entry.js +47 -9
- package/dist/esm/ion-col_3.entry.js +15 -12
- package/dist/esm/ion-datetime-button.entry.js +18 -13
- package/dist/esm/ion-datetime_3.entry.js +132 -56
- package/dist/esm/ion-divider.entry.js +39 -0
- package/dist/esm/ion-fab_3.entry.js +45 -22
- package/dist/esm/ion-img.entry.js +9 -5
- package/dist/esm/ion-infinite-scroll_2.entry.js +21 -16
- package/dist/esm/ion-input-password-toggle.entry.js +56 -17
- package/dist/esm/ion-input.entry.js +121 -25
- package/dist/esm/ion-item-option_3.entry.js +48 -22
- package/dist/esm/ion-item_8.entry.js +117 -45
- package/dist/esm/ion-loading.entry.js +20 -17
- package/dist/esm/ion-menu_3.entry.js +51 -31
- package/dist/esm/ion-modal.entry.js +63 -34
- package/dist/esm/ion-nav_2.entry.js +16 -13
- package/dist/esm/ion-picker-column-option.entry.js +13 -8
- package/dist/esm/ion-picker-column.entry.js +13 -13
- package/dist/esm/ion-picker.entry.js +12 -7
- package/dist/esm/ion-popover.entry.js +20 -17
- package/dist/esm/ion-progress-bar.entry.js +29 -9
- package/dist/esm/ion-radio_2.entry.js +26 -15
- package/dist/esm/ion-range.entry.js +19 -14
- package/dist/esm/ion-refresher_2.entry.js +45 -23
- package/dist/esm/ion-reorder_2.entry.js +40 -15
- package/dist/esm/ion-ripple-effect.entry.js +19 -9
- package/dist/esm/ion-route_4.entry.js +18 -17
- package/dist/esm/ion-searchbar.entry.js +141 -20
- package/dist/esm/ion-segment-content.entry.js +2 -2
- package/dist/esm/ion-segment-view.entry.js +7 -3
- package/dist/esm/ion-segment_2.entry.js +28 -19
- package/dist/esm/ion-select-modal.entry.js +10 -11
- package/dist/esm/ion-select_3.entry.js +138 -44
- package/dist/esm/ion-spinner.entry.js +34 -9
- package/dist/esm/ion-split-pane.entry.js +16 -12
- package/dist/esm/ion-tab-bar_2.entry.js +61 -21
- package/dist/esm/ion-tab_2.entry.js +11 -10
- package/dist/esm/ion-text.entry.js +7 -7
- package/dist/esm/ion-textarea.entry.js +53 -17
- package/dist/esm/ion-toast.entry.js +44 -25
- package/dist/esm/ion-toggle.entry.js +93 -26
- package/dist/esm/ionic-global-c1aec1e9.js +517 -0
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-4047cb68.js → ios.transition-9ff146da.js} +8 -6
- package/dist/esm/{keyboard-73175e24.js → keyboard-0fef95c0.js} +1 -1
- package/dist/esm/{keyboard-52278bd7.js → keyboard-9b786586.js} +5 -3
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-6f3a63af.js} +5 -3
- package/dist/esm/list-6524700c.js +6 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{md.transition-30ce8d1b.js → md.transition-2f3188d8.js} +7 -6
- package/dist/esm/{notch-controller-1a1f7183.js → notch-controller-d4f6433f.js} +2 -2
- package/dist/esm/{overlays-d99dcb0a.js → overlays-bb311c8e.js} +9 -10
- package/dist/esm/{status-tap-42a8af65.js → status-tap-562eee39.js} +6 -4
- package/dist/esm/{swipe-back-0184f6b3.js → swipe-back-983c0694.js} +3 -2
- package/dist/esm/x-a64bcd9f.js +6 -0
- package/dist/esm-es5/animation-75691d96.js +4 -0
- package/dist/esm-es5/app-globals-73e46285.js +4 -0
- package/dist/esm-es5/{button-active-90f1dbc4.js → button-active-e61fbdcf.js} +1 -1
- package/dist/esm-es5/capacitor-41c43387.js +4 -0
- package/dist/esm-es5/caret-down-3eaad1cc.js +4 -0
- package/dist/esm-es5/caret-left-33424bb0.js +4 -0
- package/dist/esm-es5/caret-right-68d856ad.js +4 -0
- package/dist/esm-es5/config-49c88215.js +4 -0
- package/dist/esm-es5/config-84eb9670.js +4 -0
- package/dist/esm-es5/data-19735819.js +4 -0
- package/dist/esm-es5/focus-visible-6827442c.js +4 -0
- package/dist/esm-es5/framework-delegate-648f8ef4.js +4 -0
- package/dist/esm-es5/{haptic-ac164e4c.js → haptic-b2fbf33c.js} +1 -1
- package/dist/esm-es5/helpers-a034be46.js +4 -0
- package/dist/esm-es5/index-46e613a7.js +4 -0
- package/dist/esm-es5/{index-527b9e34.js → index-4c3c5d46.js} +1 -1
- package/dist/esm-es5/index-65ba6107.js +4 -0
- package/dist/esm-es5/index-664eaf98.js +4 -0
- package/dist/esm-es5/index-8706b805.js +4 -0
- package/dist/esm-es5/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-16500377.js +4 -0
- package/dist/esm-es5/input.utils-8ddd6756.js +4 -0
- 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-divider.entry.js +4 -0
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.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-c1aec1e9.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-9ff146da.js +4 -0
- package/dist/esm-es5/{keyboard-73175e24.js → keyboard-0fef95c0.js} +1 -1
- package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-9b786586.js} +1 -1
- package/dist/esm-es5/keyboard-controller-6f3a63af.js +4 -0
- package/dist/esm-es5/list-6524700c.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-2f3188d8.js +4 -0
- package/dist/esm-es5/notch-controller-d4f6433f.js +4 -0
- package/dist/esm-es5/overlays-bb311c8e.js +4 -0
- package/dist/esm-es5/status-tap-562eee39.js +4 -0
- package/dist/esm-es5/swipe-back-983c0694.js +4 -0
- package/dist/esm-es5/x-a64bcd9f.js +4 -0
- package/dist/html.html-data.json +2503 -213
- 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-000a60c5.system.entry.js +4 -0
- package/dist/ionic/p-01d80901.system.js +4 -0
- package/dist/ionic/p-05ffb16b.system.js +4 -0
- package/dist/ionic/p-06ec4706.js +4 -0
- package/dist/ionic/p-09072d3b.entry.js +4 -0
- package/dist/ionic/p-0b941072.js +4 -0
- package/dist/ionic/p-0d297574.system.entry.js +4 -0
- package/dist/ionic/{p-1e955a45.system.js → p-115d74cd.system.js} +1 -1
- package/dist/ionic/p-1276cda4.system.js +4 -0
- package/dist/ionic/p-148e00f2.js +4 -0
- package/dist/ionic/p-180f0c6f.system.entry.js +4 -0
- package/dist/ionic/p-183b2910.js +4 -0
- package/dist/ionic/p-19544c40.entry.js +4 -0
- package/dist/ionic/p-1d49225d.entry.js +4 -0
- package/dist/ionic/p-1d512070.system.entry.js +4 -0
- package/dist/ionic/p-1fd5c378.system.js +4 -0
- package/dist/ionic/p-2004fb92.system.entry.js +4 -0
- package/dist/ionic/p-22e704a0.entry.js +4 -0
- package/dist/ionic/p-22f0ff9d.system.entry.js +4 -0
- package/dist/ionic/p-23ea84b6.entry.js +4 -0
- package/dist/ionic/p-243adf8c.js +4 -0
- package/dist/ionic/p-246e6dc5.entry.js +4 -0
- package/dist/ionic/p-25679df9.system.entry.js +4 -0
- package/dist/ionic/p-259dcfa3.entry.js +4 -0
- package/dist/ionic/p-25fb485f.system.entry.js +4 -0
- package/dist/ionic/p-26d7c6fd.system.entry.js +4 -0
- package/dist/ionic/p-27f94ab0.system.entry.js +4 -0
- package/dist/ionic/p-2a51dad2.js +4 -0
- package/dist/ionic/p-2b2d1437.entry.js +4 -0
- package/dist/ionic/p-2bf44172.js +4 -0
- package/dist/ionic/p-2d8cc8b4.entry.js +4 -0
- package/dist/ionic/p-3163265a.entry.js +4 -0
- package/dist/ionic/{p-8d2d39d0.js → p-322a2f0e.js} +1 -1
- package/dist/ionic/p-350e4850.system.entry.js +4 -0
- package/dist/ionic/p-3533c471.system.entry.js +4 -0
- package/dist/ionic/p-361d3f82.system.js +4 -0
- package/dist/ionic/p-3824cffd.entry.js +4 -0
- package/dist/ionic/p-3832a6ae.system.js +4 -0
- package/dist/ionic/p-3835325e.entry.js +4 -0
- package/dist/ionic/p-38c0cca7.js +4 -0
- package/dist/ionic/p-39b0a811.entry.js +4 -0
- package/dist/ionic/p-3acf0ca0.system.entry.js +4 -0
- package/dist/ionic/p-3b4574b3.entry.js +4 -0
- package/dist/ionic/p-3b7deae5.entry.js +4 -0
- package/dist/ionic/p-3b98dd61.system.entry.js +4 -0
- package/dist/ionic/p-3c31f667.system.js +4 -0
- package/dist/ionic/p-3c8c8686.system.entry.js +4 -0
- package/dist/ionic/{p-1d307396.system.js → p-3f001e0c.system.js} +2 -2
- package/dist/ionic/p-3fc870da.system.js +4 -0
- package/dist/ionic/p-41d5544e.js +4 -0
- package/dist/ionic/p-429dd2b5.system.js +4 -0
- package/dist/ionic/p-436bfcc9.system.entry.js +4 -0
- package/dist/ionic/p-43d6a02c.system.entry.js +4 -0
- package/dist/ionic/p-4459a66e.system.js +4 -0
- package/dist/ionic/p-44b1fefc.entry.js +4 -0
- package/dist/ionic/p-452fc75e.entry.js +4 -0
- package/dist/ionic/p-45388333.js +4 -0
- package/dist/ionic/p-46f1771d.entry.js +4 -0
- package/dist/ionic/p-49664bbc.system.entry.js +4 -0
- package/dist/ionic/p-4a767053.entry.js +4 -0
- package/dist/ionic/{p-a4866e3e.system.js → p-53378de8.system.js} +1 -1
- package/dist/ionic/p-548cd1e5.system.entry.js +4 -0
- package/dist/ionic/{p-66a5d6a8.js → p-578d5013.js} +1 -1
- package/dist/ionic/p-583f0c5f.js +4 -0
- package/dist/ionic/{p-da2b833b.js → p-58f16ef6.js} +1 -1
- package/dist/ionic/p-5b57d327.system.js +4 -0
- package/dist/ionic/p-5b5bb0a5.system.js +4 -0
- package/dist/ionic/p-5dde2c4f.system.entry.js +4 -0
- package/dist/ionic/p-607c9c33.js +4 -0
- package/dist/ionic/p-69bbeaf6.js +4 -0
- package/dist/ionic/p-6a0dd6bc.js +4 -0
- package/dist/ionic/{p-612096e6.system.entry.js → p-6e0e68de.system.entry.js} +1 -1
- package/dist/ionic/p-6fcdcb51.system.js +4 -0
- package/dist/ionic/p-701c7638.js +4 -0
- package/dist/ionic/p-7028eadd.system.entry.js +4 -0
- package/dist/ionic/p-7071d7ca.js +4 -0
- package/dist/ionic/p-714aaf3c.entry.js +4 -0
- package/dist/ionic/{p-b06ac4a5.system.js → p-76b92f54.system.js} +1 -1
- package/dist/ionic/{p-8985cdb6.system.js → p-7b10b4c2.system.js} +1 -1
- package/dist/ionic/p-7b33697a.js +4 -0
- package/dist/ionic/p-7b382a8b.js +4 -0
- package/dist/ionic/p-7c6f71eb.entry.js +4 -0
- package/dist/ionic/p-7cf8fbdc.system.entry.js +4 -0
- package/dist/ionic/p-7ff70f62.entry.js +4 -0
- package/dist/ionic/p-808e57e0.system.js +4 -0
- package/dist/ionic/p-8131e086.system.entry.js +4 -0
- package/dist/ionic/p-8255bd7b.system.entry.js +4 -0
- package/dist/ionic/{p-84096b45.system.js → p-82a63266.system.js} +1 -1
- package/dist/ionic/p-8402b59e.system.entry.js +4 -0
- package/dist/ionic/p-840f1c59.entry.js +4 -0
- package/dist/ionic/p-84ac0a34.system.entry.js +4 -0
- package/dist/ionic/{p-a93873de.system.js → p-84f02275.system.js} +1 -1
- package/dist/ionic/p-85c7c591.system.entry.js +4 -0
- package/dist/ionic/p-8898b2c4.system.entry.js +4 -0
- package/dist/ionic/p-88aa79f6.entry.js +4 -0
- package/dist/ionic/p-8b06c868.system.entry.js +4 -0
- package/dist/ionic/p-8c6c972b.js +4 -0
- package/dist/ionic/p-8f2efbe5.entry.js +4 -0
- package/dist/ionic/p-93f7ddd5.entry.js +4 -0
- package/dist/ionic/{p-f6e7d104.system.js → p-96898f8d.system.js} +1 -1
- package/dist/ionic/p-9757a3c0.system.js +4 -0
- package/dist/ionic/p-97a351b5.entry.js +4 -0
- package/dist/ionic/{p-cad82569.entry.js → p-97c5e467.entry.js} +1 -1
- package/dist/ionic/p-98ea9230.system.js +4 -0
- package/dist/ionic/p-9a0ab352.js +4 -0
- package/dist/ionic/p-9d513c26.entry.js +4 -0
- package/dist/ionic/p-a12c4c78.js +4 -0
- package/dist/ionic/{p-707408c5.system.entry.js → p-a16830e0.system.entry.js} +1 -1
- package/dist/ionic/p-a1d0ee0b.system.entry.js +4 -0
- package/dist/ionic/p-a2f85605.entry.js +4 -0
- package/dist/ionic/p-a47bffd6.system.entry.js +4 -0
- package/dist/ionic/p-a569fc14.system.entry.js +4 -0
- package/dist/ionic/p-a6a71315.entry.js +4 -0
- package/dist/ionic/p-a9af4103.js +4 -0
- package/dist/ionic/p-ab0aa514.system.js +4 -0
- package/dist/ionic/p-aba2d55f.system.entry.js +4 -0
- package/dist/ionic/p-acee3852.entry.js +4 -0
- package/dist/ionic/p-af7c3b18.system.js +4 -0
- package/dist/ionic/p-b1618321.entry.js +4 -0
- package/dist/ionic/p-b406502d.entry.js +4 -0
- package/dist/ionic/p-b57d8fcb.system.entry.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-b5bca0ad.js} +1 -1
- package/dist/ionic/p-b5e3859a.entry.js +4 -0
- package/dist/ionic/p-b719e9a7.js +4 -0
- package/dist/ionic/p-b79a47ba.entry.js +4 -0
- package/dist/ionic/p-b9ddbdf3.js +4 -0
- package/dist/ionic/p-ba992f31.system.entry.js +4 -0
- package/dist/ionic/p-bb183633.js +4 -0
- package/dist/ionic/p-c0b7f342.entry.js +4 -0
- package/dist/ionic/p-c18ffa8b.entry.js +4 -0
- package/dist/ionic/p-c1e7dbd4.system.entry.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-c2069a04.js} +1 -1
- package/dist/ionic/p-c248c88d.system.js +4 -0
- package/dist/ionic/p-c37bd983.entry.js +4 -0
- package/dist/ionic/p-c47e7149.system.entry.js +4 -0
- package/dist/ionic/p-c4ef6f8b.js +4 -0
- package/dist/ionic/p-c6cb5873.entry.js +4 -0
- package/dist/ionic/p-c847b24b.system.entry.js +4 -0
- package/dist/ionic/p-c9481069.entry.js +4 -0
- package/dist/ionic/p-ccb71d99.entry.js +4 -0
- package/dist/ionic/p-ccbf31df.entry.js +4 -0
- package/dist/ionic/p-cf466c60.entry.js +4 -0
- package/dist/ionic/p-d2314315.system.entry.js +4 -0
- package/dist/ionic/{p-f11a9436.system.js → p-d2536fe8.system.js} +1 -1
- package/dist/ionic/{p-3a30f31b.system.entry.js → p-d5a528dd.system.entry.js} +1 -1
- package/dist/ionic/p-d94f6cf2.system.entry.js +4 -0
- package/dist/ionic/p-da3f8286.system.entry.js +4 -0
- package/dist/ionic/p-da7bd63e.system.entry.js +4 -0
- package/dist/ionic/p-db5e6e19.system.js +4 -0
- package/dist/ionic/p-db8ffacb.system.js +4 -0
- package/dist/ionic/p-dc29c440.js +4 -0
- package/dist/ionic/p-de28526a.system.js +4 -0
- package/dist/ionic/p-dfb63dc2.system.entry.js +4 -0
- package/dist/ionic/p-e09bb245.system.entry.js +4 -0
- package/dist/ionic/p-e0ca79b3.entry.js +4 -0
- package/dist/ionic/p-e2772e25.system.entry.js +4 -0
- package/dist/ionic/p-e3b70846.system.js +4 -0
- package/dist/ionic/p-e45a947d.system.js +4 -0
- package/dist/ionic/p-e58a67f5.entry.js +4 -0
- package/dist/ionic/p-e637969f.entry.js +4 -0
- package/dist/ionic/p-e6ae836b.system.js +4 -0
- package/dist/ionic/p-e92a4b0d.system.entry.js +4 -0
- package/dist/ionic/{p-1966a13c.system.js → p-efad6882.system.js} +1 -1
- package/dist/ionic/p-f10dba92.entry.js +4 -0
- package/dist/ionic/p-f233f1e0.system.js +4 -0
- package/dist/ionic/p-f3d28b8f.js +4 -0
- package/dist/ionic/p-f3deab52.system.entry.js +4 -0
- package/dist/ionic/p-f6a03670.entry.js +4 -0
- package/dist/ionic/{p-b6d324f0.js → p-faf202df.js} +1 -1
- package/dist/ionic/p-fb3ce1f1.entry.js +4 -0
- package/dist/ionic/p-fbc7052d.system.entry.js +4 -0
- package/dist/ionic/p-fccabaf9.entry.js +4 -0
- package/dist/ionic/p-fec23a6f.entry.js +4 -0
- package/dist/ionic/p-ffea25fc.system.entry.js +4 -0
- package/dist/types/components/accordion/accordion.d.ts +5 -3
- package/dist/types/components/accordion-group/accordion-group.d.ts +12 -1
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +3 -7
- package/dist/types/components/action-sheet/action-sheet.d.ts +3 -2
- package/dist/types/components/alert/alert-interface.d.ts +3 -7
- package/dist/types/components/alert/alert.d.ts +3 -2
- package/dist/types/components/app/app.d.ts +6 -2
- package/dist/types/components/avatar/avatar.d.ts +32 -0
- package/dist/types/components/back-button/back-button.d.ts +2 -1
- package/dist/types/components/backdrop/backdrop.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +37 -1
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +4 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +15 -4
- package/dist/types/components/buttons/buttons.d.ts +5 -1
- package/dist/types/components/card/card.d.ts +8 -1
- package/dist/types/components/card-content/card-content.d.ts +2 -1
- package/dist/types/components/card-header/card-header.d.ts +3 -2
- package/dist/types/components/card-subtitle/card-subtitle.d.ts +2 -1
- package/dist/types/components/card-title/card-title.d.ts +2 -1
- package/dist/types/components/checkbox/checkbox.d.ts +14 -4
- package/dist/types/components/chip/chip.d.ts +26 -1
- package/dist/types/components/col/col.d.ts +4 -0
- package/dist/types/components/content/content.d.ts +3 -0
- package/dist/types/components/datetime/datetime.d.ts +26 -1
- package/dist/types/components/datetime/utils/data.d.ts +5 -5
- package/dist/types/components/datetime-button/datetime-button.d.ts +2 -1
- package/dist/types/components/divider/divider.d.ts +20 -0
- package/dist/types/components/fab/fab.d.ts +4 -0
- package/dist/types/components/fab-button/fab-button.d.ts +5 -3
- package/dist/types/components/fab-list/fab-list.d.ts +4 -0
- package/dist/types/components/footer/footer.d.ts +4 -3
- package/dist/types/components/grid/grid.d.ts +4 -0
- package/dist/types/components/header/header.d.ts +9 -3
- package/dist/types/components/img/img.d.ts +3 -0
- package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +4 -0
- package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +4 -0
- package/dist/types/components/input/input.d.ts +31 -5
- package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +2 -0
- package/dist/types/components/item/item.d.ts +11 -4
- package/dist/types/components/item-divider/item-divider.d.ts +2 -1
- package/dist/types/components/item-group/item-group.d.ts +4 -0
- package/dist/types/components/item-option/item-option.d.ts +18 -1
- package/dist/types/components/item-options/item-options.d.ts +4 -0
- package/dist/types/components/item-sliding/item-sliding.d.ts +4 -0
- package/dist/types/components/label/label.d.ts +2 -1
- package/dist/types/components/list/list.d.ts +15 -1
- package/dist/types/components/list-header/list-header.d.ts +2 -1
- package/dist/types/components/loading/loading-interface.d.ts +2 -7
- package/dist/types/components/loading/loading.d.ts +3 -2
- package/dist/types/components/menu/menu.d.ts +3 -0
- package/dist/types/components/menu-button/menu-button.d.ts +3 -1
- package/dist/types/components/menu-toggle/menu-toggle.d.ts +3 -0
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +4 -7
- package/dist/types/components/modal/modal.d.ts +11 -1
- package/dist/types/components/nav/nav-interface.d.ts +9 -1
- package/dist/types/components/nav/nav.d.ts +5 -1
- package/dist/types/components/nav-link/nav-link.d.ts +4 -0
- package/dist/types/components/note/note.d.ts +2 -1
- package/dist/types/components/picker/picker.d.ts +2 -1
- package/dist/types/components/picker-column/picker-column.d.ts +2 -1
- package/dist/types/components/picker-column-option/picker-column-option.d.ts +4 -0
- package/dist/types/components/picker-legacy/picker.d.ts +2 -1
- package/dist/types/components/popover/popover-interface.d.ts +3 -6
- package/dist/types/components/popover/popover.d.ts +6 -5
- package/dist/types/components/progress-bar/progress-bar.d.ts +10 -1
- package/dist/types/components/radio/radio.d.ts +2 -1
- package/dist/types/components/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/range/range.d.ts +2 -1
- package/dist/types/components/refresher/refresher.d.ts +2 -1
- package/dist/types/components/refresher-content/refresher-content.d.ts +4 -0
- package/dist/types/components/reorder/reorder.d.ts +9 -0
- package/dist/types/components/reorder-group/reorder-group.d.ts +4 -0
- package/dist/types/components/ripple-effect/ripple-effect.d.ts +4 -0
- package/dist/types/components/route/route.d.ts +4 -0
- package/dist/types/components/router/router.d.ts +4 -0
- package/dist/types/components/router-link/router-link.d.ts +4 -0
- package/dist/types/components/router-outlet/router-outlet.d.ts +4 -1
- package/dist/types/components/row/row.d.ts +4 -0
- package/dist/types/components/searchbar/searchbar.d.ts +51 -9
- package/dist/types/components/segment/segment.d.ts +2 -1
- package/dist/types/components/segment-button/segment-button.d.ts +2 -1
- package/dist/types/components/select/select.d.ts +41 -13
- package/dist/types/components/select-option/select-option.d.ts +4 -0
- package/dist/types/components/select-popover/select-popover.d.ts +3 -0
- package/dist/types/components/skeleton-text/skeleton-text.d.ts +4 -0
- package/dist/types/components/spinner/spinner.d.ts +15 -0
- package/dist/types/components/split-pane/split-pane.d.ts +4 -0
- package/dist/types/components/tab/tab.d.ts +4 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +22 -2
- package/dist/types/components/tab-button/tab-button.d.ts +11 -1
- package/dist/types/components/tabs/tabs.d.ts +3 -0
- package/dist/types/components/text/text.d.ts +2 -1
- package/dist/types/components/textarea/textarea.d.ts +17 -4
- package/dist/types/components/thumbnail/thumbnail.d.ts +4 -0
- package/dist/types/components/title/title.d.ts +4 -0
- package/dist/types/components/toast/animations/utils.d.ts +2 -2
- package/dist/types/components/toast/toast-interface.d.ts +3 -7
- package/dist/types/components/toast/toast.d.ts +19 -2
- package/dist/types/components/toggle/toggle.d.ts +17 -1
- package/dist/types/components/toolbar/toolbar.d.ts +4 -3
- package/dist/types/components.d.ts +1488 -186
- package/dist/types/global/ionic-global.d.ts +27 -2
- package/dist/types/interface.d.ts +3 -0
- package/dist/types/utils/config.d.ts +106 -2
- package/dist/types/utils/focus-visible.d.ts +13 -0
- package/dist/types/utils/helpers.d.ts +11 -0
- package/dist/types/utils/logging/index.d.ts +1 -1
- package/dist/types/utils/overlays-interface.d.ts +31 -1
- package/dist/types/utils/test/playwright/generator.d.ts +31 -2
- package/hydrate/index.js +2639 -937
- package/hydrate/index.mjs +2639 -937
- package/package.json +9 -4
- package/components/hardware-back-button.js +0 -115
- package/components/index8.js +0 -128
- package/dist/cjs/hardware-back-button-3d2b1004.js +0 -121
- package/dist/cjs/index-c8d52405.js +0 -10
- package/dist/cjs/ionic-global-6dea5a96.js +0 -152
- package/dist/esm/hardware-back-button-a7eb8233.js +0 -115
- package/dist/esm/index-a5d50daf.js +0 -7
- package/dist/esm/index-be190feb.js +0 -168
- package/dist/esm/ionic-global-b26f573e.js +0 -147
- package/dist/esm-es5/animation-8b25e105.js +0 -4
- package/dist/esm-es5/app-globals-dbdbb3df.js +0 -4
- package/dist/esm-es5/capacitor-59395cbd.js +0 -4
- package/dist/esm-es5/config-9898ed97.js +0 -4
- package/dist/esm-es5/data-0d7ea6eb.js +0 -4
- package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
- package/dist/esm-es5/framework-delegate-56b467ad.js +0 -4
- package/dist/esm-es5/hardware-back-button-a7eb8233.js +0 -4
- package/dist/esm-es5/helpers-d94bc8ad.js +0 -4
- package/dist/esm-es5/index-18f31305.js +0 -4
- package/dist/esm-es5/index-68c0d151.js +0 -4
- package/dist/esm-es5/index-9a17db3d.js +0 -4
- package/dist/esm-es5/index-a5d50daf.js +0 -4
- package/dist/esm-es5/index-be190feb.js +0 -4
- package/dist/esm-es5/index-cfd9c1f2.js +0 -5
- package/dist/esm-es5/input-shims-279903e2.js +0 -4
- package/dist/esm-es5/input.utils-40504d6d.js +0 -4
- package/dist/esm-es5/ionic-global-b26f573e.js +0 -4
- package/dist/esm-es5/ios.transition-4047cb68.js +0 -4
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
- package/dist/esm-es5/md.transition-30ce8d1b.js +0 -4
- package/dist/esm-es5/notch-controller-1a1f7183.js +0 -4
- package/dist/esm-es5/overlays-d99dcb0a.js +0 -4
- package/dist/esm-es5/status-tap-42a8af65.js +0 -4
- package/dist/esm-es5/swipe-back-0184f6b3.js +0 -4
- package/dist/ionic/p-00023f5a.system.js +0 -4
- package/dist/ionic/p-019e30a3.system.entry.js +0 -4
- package/dist/ionic/p-03480b95.system.entry.js +0 -4
- package/dist/ionic/p-08cef0b1.entry.js +0 -4
- package/dist/ionic/p-0f5e6225.js +0 -4
- package/dist/ionic/p-105b2e8b.entry.js +0 -4
- package/dist/ionic/p-10a1bddc.js +0 -4
- package/dist/ionic/p-117d0013.system.entry.js +0 -4
- package/dist/ionic/p-12193821.system.js +0 -4
- package/dist/ionic/p-12830298.system.entry.js +0 -4
- package/dist/ionic/p-12914457.entry.js +0 -4
- package/dist/ionic/p-14154301.system.entry.js +0 -4
- package/dist/ionic/p-14bdb5aa.entry.js +0 -4
- package/dist/ionic/p-1706b406.system.entry.js +0 -4
- package/dist/ionic/p-171ca87d.system.js +0 -4
- package/dist/ionic/p-17e21141.js +0 -4
- package/dist/ionic/p-19494658.system.entry.js +0 -4
- package/dist/ionic/p-1974d5b2.system.js +0 -4
- package/dist/ionic/p-1a81ac09.system.js +0 -4
- package/dist/ionic/p-1b9c59ab.js +0 -4
- package/dist/ionic/p-1cb02e44.entry.js +0 -4
- package/dist/ionic/p-1dfc11b3.system.js +0 -4
- package/dist/ionic/p-1e4371bd.js +0 -4
- package/dist/ionic/p-21891ead.js +0 -4
- package/dist/ionic/p-2233344a.system.js +0 -4
- package/dist/ionic/p-228e2522.entry.js +0 -4
- package/dist/ionic/p-2469240b.entry.js +0 -4
- package/dist/ionic/p-24a6c8a3.system.entry.js +0 -4
- package/dist/ionic/p-257fb777.entry.js +0 -4
- package/dist/ionic/p-25b10f81.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2bb55ebc.js +0 -4
- package/dist/ionic/p-2bff0e69.system.entry.js +0 -4
- package/dist/ionic/p-31dc303d.entry.js +0 -4
- package/dist/ionic/p-33503ae0.system.entry.js +0 -4
- package/dist/ionic/p-3535d6b5.entry.js +0 -4
- package/dist/ionic/p-35cdfd77.system.entry.js +0 -4
- package/dist/ionic/p-393ffcc2.entry.js +0 -4
- package/dist/ionic/p-39fa7dd1.system.entry.js +0 -4
- package/dist/ionic/p-42f08b26.system.entry.js +0 -4
- package/dist/ionic/p-481e0885.entry.js +0 -4
- package/dist/ionic/p-4a5be299.system.entry.js +0 -4
- package/dist/ionic/p-4c667fce.js +0 -4
- package/dist/ionic/p-4cf4172e.entry.js +0 -4
- package/dist/ionic/p-4da92dac.entry.js +0 -4
- package/dist/ionic/p-4ec0e961.system.entry.js +0 -4
- package/dist/ionic/p-4ed5db19.system.js +0 -4
- package/dist/ionic/p-4f86aa6d.entry.js +0 -4
- package/dist/ionic/p-50cb2e8b.system.entry.js +0 -4
- package/dist/ionic/p-57957c0f.entry.js +0 -4
- package/dist/ionic/p-57e55ecb.system.js +0 -4
- package/dist/ionic/p-5b67b447.js +0 -4
- package/dist/ionic/p-5c9feddc.system.entry.js +0 -4
- package/dist/ionic/p-5edf78c5.system.entry.js +0 -4
- package/dist/ionic/p-6201c4ba.entry.js +0 -4
- package/dist/ionic/p-625248d0.system.js +0 -4
- package/dist/ionic/p-663413be.system.js +0 -4
- package/dist/ionic/p-6636a436.js +0 -4
- package/dist/ionic/p-66df5468.system.entry.js +0 -4
- package/dist/ionic/p-67077d48.entry.js +0 -4
- package/dist/ionic/p-6835ebdd.system.entry.js +0 -4
- package/dist/ionic/p-6a03fc0f.entry.js +0 -4
- package/dist/ionic/p-6b8530f5.system.entry.js +0 -4
- package/dist/ionic/p-6c474e87.entry.js +0 -4
- package/dist/ionic/p-6dd86ff5.system.entry.js +0 -4
- package/dist/ionic/p-6ec0c94a.entry.js +0 -4
- package/dist/ionic/p-6f832afe.system.entry.js +0 -4
- package/dist/ionic/p-70044cb8.entry.js +0 -4
- package/dist/ionic/p-712c0131.entry.js +0 -4
- package/dist/ionic/p-721f43f9.entry.js +0 -4
- package/dist/ionic/p-72b3050b.system.entry.js +0 -4
- package/dist/ionic/p-7445a2e5.system.js +0 -4
- package/dist/ionic/p-7611ede3.system.entry.js +0 -4
- package/dist/ionic/p-781e2dbb.system.js +0 -4
- package/dist/ionic/p-792919fd.system.js +0 -4
- package/dist/ionic/p-7b30edcc.js +0 -4
- package/dist/ionic/p-7b8c12c3.entry.js +0 -4
- package/dist/ionic/p-7c5c7ae1.system.entry.js +0 -4
- package/dist/ionic/p-7e3e6ed2.entry.js +0 -4
- package/dist/ionic/p-7ffedf77.system.entry.js +0 -4
- package/dist/ionic/p-809483ac.js +0 -4
- package/dist/ionic/p-81904a80.entry.js +0 -4
- package/dist/ionic/p-8450f761.entry.js +0 -4
- package/dist/ionic/p-8460d95a.entry.js +0 -4
- package/dist/ionic/p-85b01465.js +0 -4
- package/dist/ionic/p-865fe95c.entry.js +0 -4
- package/dist/ionic/p-8674af94.entry.js +0 -4
- package/dist/ionic/p-890a4ee2.entry.js +0 -4
- package/dist/ionic/p-891553d8.entry.js +0 -4
- package/dist/ionic/p-8ab2f7a4.system.entry.js +0 -4
- package/dist/ionic/p-8b050e84.system.js +0 -4
- package/dist/ionic/p-8dacf4e2.entry.js +0 -4
- package/dist/ionic/p-94551927.js +0 -4
- package/dist/ionic/p-95001a19.js +0 -4
- package/dist/ionic/p-958fd7e9.system.entry.js +0 -4
- package/dist/ionic/p-98fd942b.system.entry.js +0 -4
- package/dist/ionic/p-a0fd2fe5.system.entry.js +0 -4
- package/dist/ionic/p-a5dbe0ff.system.entry.js +0 -4
- package/dist/ionic/p-a78d1c24.entry.js +0 -4
- package/dist/ionic/p-a835aca8.entry.js +0 -4
- package/dist/ionic/p-a83e3290.system.js +0 -4
- package/dist/ionic/p-ab7337e1.entry.js +0 -4
- package/dist/ionic/p-abe101da.system.js +0 -4
- package/dist/ionic/p-aded71ec.js +0 -4
- package/dist/ionic/p-ae039072.entry.js +0 -4
- package/dist/ionic/p-aebfab05.system.entry.js +0 -4
- package/dist/ionic/p-b22ab9f4.js +0 -4
- package/dist/ionic/p-b2e7eda0.system.entry.js +0 -4
- package/dist/ionic/p-b445ff65.entry.js +0 -4
- package/dist/ionic/p-b4d17da0.system.entry.js +0 -4
- package/dist/ionic/p-b5432d15.entry.js +0 -4
- package/dist/ionic/p-b7b1d91a.js +0 -4
- package/dist/ionic/p-b8050298.system.entry.js +0 -4
- package/dist/ionic/p-b9c793d4.entry.js +0 -4
- package/dist/ionic/p-bce753bd.system.entry.js +0 -4
- package/dist/ionic/p-bf184319.system.entry.js +0 -4
- package/dist/ionic/p-c16443a8.system.js +0 -4
- package/dist/ionic/p-c1b7d311.system.entry.js +0 -4
- package/dist/ionic/p-c2160d8c.entry.js +0 -4
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-c5b77054.entry.js +0 -4
- package/dist/ionic/p-c5bfa3e9.entry.js +0 -4
- package/dist/ionic/p-c61cc894.js +0 -4
- package/dist/ionic/p-cec902a0.system.entry.js +0 -4
- package/dist/ionic/p-d16fab3f.entry.js +0 -4
- package/dist/ionic/p-d382f09c.system.js +0 -4
- package/dist/ionic/p-d47265c8.js +0 -4
- package/dist/ionic/p-d91f942c.system.entry.js +0 -4
- package/dist/ionic/p-d984c1ab.system.entry.js +0 -4
- package/dist/ionic/p-da6247e5.entry.js +0 -4
- package/dist/ionic/p-dabe3bd4.js +0 -4
- package/dist/ionic/p-df069a0d.entry.js +0 -4
- package/dist/ionic/p-e727e32d.system.entry.js +0 -4
- package/dist/ionic/p-e8245753.entry.js +0 -4
- package/dist/ionic/p-e887b6a9.system.js +0 -4
- package/dist/ionic/p-ed005d9c.js +0 -4
- package/dist/ionic/p-edd2e3c7.entry.js +0 -4
- package/dist/ionic/p-f08a92cc.js +0 -4
- package/dist/ionic/p-f0c9f8e3.system.entry.js +0 -4
- package/dist/ionic/p-f0ef39ab.entry.js +0 -4
- package/dist/ionic/p-f22490a7.system.entry.js +0 -4
- package/dist/ionic/p-f6bb9be7.system.entry.js +0 -4
- package/dist/ionic/p-f725bf9e.system.js +0 -4
- package/dist/ionic/p-f9a87db2.system.entry.js +0 -4
- package/dist/ionic/p-fa3f4b96.system.js +0 -4
- package/dist/ionic/p-fe063952.system.entry.js +0 -4
- /package/dist/collection/components/{input-password-toggle/input-password-toggle.css → refresher-content/refresher-content.css} +0 -0
package/components/ion-toast.js
CHANGED
|
@@ -5,12 +5,11 @@ import { Build, proxyCustomElement, HTMLElement, createEvent, h, Host } from '@s
|
|
|
5
5
|
import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config.js';
|
|
6
6
|
import { g as getElementRoot, r as raf } from './helpers.js';
|
|
7
7
|
import { c as createLockController } from './lock-controller.js';
|
|
8
|
-
import {
|
|
8
|
+
import { w as win, p as printIonWarning, b as getIonMode, c as getIonTheme } from './ionic-global.js';
|
|
9
9
|
import { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays.js';
|
|
10
10
|
import { c as createColorClasses, g as getClassMap } from './theme.js';
|
|
11
|
-
import {
|
|
11
|
+
import { c as config } from './config2.js';
|
|
12
12
|
import { c as createAnimation } from './animation.js';
|
|
13
|
-
import { w as win } from './index6.js';
|
|
14
13
|
import { createGesture } from './index3.js';
|
|
15
14
|
import { d as defineCustomElement$3 } from './icon.js';
|
|
16
15
|
import { d as defineCustomElement$2 } from './ripple-effect.js';
|
|
@@ -29,7 +28,7 @@ import { d as defineCustomElement$2 } from './ripple-effect.js';
|
|
|
29
28
|
* @param position The value of the toast's position prop.
|
|
30
29
|
* @param positionAnchor The element the toast should be anchored to,
|
|
31
30
|
* if applicable.
|
|
32
|
-
* @param mode The toast component's
|
|
31
|
+
* @param mode The toast component's platform (md or ios).
|
|
33
32
|
* @param toast A reference to the toast element itself.
|
|
34
33
|
*/
|
|
35
34
|
function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
@@ -87,7 +86,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
87
86
|
*/
|
|
88
87
|
function warnIfAnchorIsHidden(positionAnchor, toast) {
|
|
89
88
|
if (positionAnchor.offsetParent === null) {
|
|
90
|
-
printIonWarning('
|
|
89
|
+
printIonWarning('The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.', toast);
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
/**
|
|
@@ -451,10 +450,13 @@ const createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {
|
|
|
451
450
|
return gesture;
|
|
452
451
|
};
|
|
453
452
|
|
|
454
|
-
const
|
|
453
|
+
const toastIonicCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);contain:strict;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--box-shadow:var(--ion-elevation-4, 0px 3px 12px 0px rgba(0, 0, 0, 0.12), 0px 15px 48px 0px rgba(0, 0, 0, 0.18));--max-width:343px;--start:var(--ion-space-200, 8px);--end:var(--ion-space-200, 8px);font-size:var(--ion-font-size-350, 0.875rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;z-index:1001}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}:host(.md) .toast-wrapper{opacity:0.01}:host(.ios) .toast-wrapper.toast-middle{opacity:0.01}.toast-container{-webkit-padding-start:var(--ion-space-400, 16px);padding-inline-start:var(--ion-space-400, 16px);-webkit-padding-end:var(--ion-space-400, 16px);padding-inline-end:var(--ion-space-400, 16px);padding-top:var(--ion-space-300, 12px);padding-bottom:var(--ion-space-300, 12px)}:host(.toast-shape-soft){--border-radius:var(--ion-border-radius-200, 8px)}:host(.toast-shape-round){--border-radius:var(--ion-border-radius-400, 16px)}:host(.toast-shape-rectangular){--border-radius:var(--ion-border-radius-0, 0px)}.toast-header{font-size:var(--ion-font-size-450, 1.125rem);font-weight:var(--ion-font-weight-medium, 500);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-700, 28px);text-decoration:none;text-transform:none}.toast-layout-baseline .toast-button-group-start{-webkit-margin-end:var(--ion-space-400, 16px);margin-inline-end:var(--ion-space-400, 16px)}.toast-layout-stacked .toast-button-group-start{margin-bottom:var(--ion-space-400, 16px)}.toast-layout-baseline .toast-button-group-end{-webkit-margin-start:var(--ion-space-400, 16px);margin-inline-start:var(--ion-space-400, 16px)}.toast-layout-stacked .toast-button-group-end{margin-top:var(--ion-space-400, 16px)}.toast-button-group{gap:var(--ion-space-400, 16px)}.toast-button{font-size:var(--ion-font-size-350, 0.875rem);font-weight:var(--ion-font-weight-regular, 400);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:relative;background-color:transparent;text-decoration:underline;overflow:hidden}.toast-icon{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--ion-space-200, 8px);margin-inline-end:var(--ion-space-200, 8px)}.toast-icon,.toast-button-icon{font-size:var(--ion-scale-600, 24px)}:host(.toast-hue-bold){--background:var(--ion-bg-neutral-boldest-default, #242424);--background-activated:var(--ion-bg-neutral-boldest-press, #111111);--color:var(--ion-text-inverse, #ffffff);--button-color:var(--ion-text-inverse, #ffffff)}:host(.toast-hue-bold.ion-color) .toast-wrapper{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.toast-hue-bold.ion-color) .toast-button{color:var(--ion-color-contrast)}:host(.toast-hue-subtle){--background:var(--ion-bg-neutral-subtlest-default, #ffffff);--background-activated:var(--ion-bg-neutral-subtlest-press, #efefef);--color:var(--ion-text-default, #242424);--button-color:var(--ion-text-link-default, #105cef)}:host(.toast-hue-subtle) .toast-button-cancel{color:var(--ion-icon-subtlest, #626262)}:host(.toast-hue-subtle.ion-color) .toast-wrapper{background:var(--ion-color-subtle-base);color:var(--ion-color-subtle-contrast)}";
|
|
454
|
+
const IonToastIonicStyle0 = toastIonicCss;
|
|
455
|
+
|
|
456
|
+
const toastIosCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);contain:strict;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{font-family:var(--ion-font-family, inherit);z-index:1001}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-icon,.toast-button-icon{font-size:1.4em}:host{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}";
|
|
455
457
|
const IonToastIosStyle0 = toastIosCss;
|
|
456
458
|
|
|
457
|
-
const toastMdCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);
|
|
459
|
+
const toastMdCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);contain:strict;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{font-family:var(--ion-font-family, inherit);z-index:1001}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-icon,.toast-button-icon{font-size:1.4em}:host{--background:var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6))}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}";
|
|
458
460
|
const IonToastMdStyle0 = toastMdCss;
|
|
459
461
|
|
|
460
462
|
const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
@@ -527,11 +529,13 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
527
529
|
this.cssClass = undefined;
|
|
528
530
|
this.duration = config.getNumber('toastDuration', 0);
|
|
529
531
|
this.header = undefined;
|
|
532
|
+
this.hue = 'subtle';
|
|
530
533
|
this.layout = 'baseline';
|
|
531
534
|
this.message = undefined;
|
|
532
535
|
this.keyboardClose = false;
|
|
533
536
|
this.position = 'bottom';
|
|
534
537
|
this.positionAnchor = undefined;
|
|
538
|
+
this.shape = undefined;
|
|
535
539
|
this.buttons = undefined;
|
|
536
540
|
this.translucent = false;
|
|
537
541
|
this.animated = true;
|
|
@@ -618,11 +622,12 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
618
622
|
* Present the toast overlay after it has been created.
|
|
619
623
|
*/
|
|
620
624
|
async present() {
|
|
625
|
+
const mode = getIonMode(this);
|
|
621
626
|
const unlock = await this.lockController.lock();
|
|
622
627
|
await this.delegateController.attachViewToDom();
|
|
623
628
|
const { el, position } = this;
|
|
624
629
|
const anchor = this.getAnchorElement();
|
|
625
|
-
const animationPosition = getAnimationPosition(position, anchor,
|
|
630
|
+
const animationPosition = getAnimationPosition(position, anchor, mode, el);
|
|
626
631
|
/**
|
|
627
632
|
* Cache the calculated position of the toast, so we can re-use it
|
|
628
633
|
* in the dismiss animation.
|
|
@@ -716,6 +721,17 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
716
721
|
: [];
|
|
717
722
|
return buttons;
|
|
718
723
|
}
|
|
724
|
+
getShape() {
|
|
725
|
+
const { shape } = this;
|
|
726
|
+
// TODO(ROU-11300): Remove theme check when shapes are defined for all themes.
|
|
727
|
+
if (getIonTheme(this) !== 'ionic') {
|
|
728
|
+
return undefined;
|
|
729
|
+
}
|
|
730
|
+
if (shape === undefined) {
|
|
731
|
+
return 'round';
|
|
732
|
+
}
|
|
733
|
+
return shape;
|
|
734
|
+
}
|
|
719
735
|
/**
|
|
720
736
|
* Returns the element specified by the positionAnchor prop,
|
|
721
737
|
* or undefined if prop's value is an ID string and the element
|
|
@@ -731,7 +747,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
731
747
|
return;
|
|
732
748
|
}
|
|
733
749
|
if (position === 'middle' && positionAnchor !== undefined) {
|
|
734
|
-
printIonWarning('
|
|
750
|
+
printIonWarning('The positionAnchor property is ignored when using position="middle".', this.el);
|
|
735
751
|
return undefined;
|
|
736
752
|
}
|
|
737
753
|
if (typeof positionAnchor === 'string') {
|
|
@@ -743,7 +759,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
743
759
|
*/
|
|
744
760
|
const foundEl = document.getElementById(positionAnchor);
|
|
745
761
|
if (foundEl === null) {
|
|
746
|
-
printIonWarning(`
|
|
762
|
+
printIonWarning(`An anchor element with an ID of "${positionAnchor}" was not found in the DOM.`, el);
|
|
747
763
|
return undefined;
|
|
748
764
|
}
|
|
749
765
|
return foundEl;
|
|
@@ -751,7 +767,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
751
767
|
if (positionAnchor instanceof HTMLElement) {
|
|
752
768
|
return positionAnchor;
|
|
753
769
|
}
|
|
754
|
-
printIonWarning('
|
|
770
|
+
printIonWarning('Invalid positionAnchor value:', positionAnchor, el);
|
|
755
771
|
return undefined;
|
|
756
772
|
}
|
|
757
773
|
async buttonClick(button) {
|
|
@@ -777,7 +793,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
777
793
|
}
|
|
778
794
|
}
|
|
779
795
|
catch (e) {
|
|
780
|
-
|
|
796
|
+
console.error(e);
|
|
781
797
|
}
|
|
782
798
|
}
|
|
783
799
|
return true;
|
|
@@ -786,12 +802,12 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
786
802
|
if (buttons.length === 0) {
|
|
787
803
|
return;
|
|
788
804
|
}
|
|
789
|
-
const
|
|
805
|
+
const theme = getIonTheme(this);
|
|
790
806
|
const buttonGroupsClasses = {
|
|
791
807
|
'toast-button-group': true,
|
|
792
808
|
[`toast-button-group-${side}`]: true,
|
|
793
809
|
};
|
|
794
|
-
return (h("div", { class: buttonGroupsClasses }, buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", class: buttonClass(b), tabIndex: 0, onClick: () => this.buttonClick(b), part: buttonPart(b) }), h("div", { class: "toast-button-inner" }, b.icon && (h("ion-icon", { "aria-hidden": "true", icon: b.icon, slot: b.text === undefined ? 'icon-only' : undefined, class: "toast-button-icon" })), b.text),
|
|
810
|
+
return (h("div", { class: buttonGroupsClasses }, buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", class: buttonClass(b), tabIndex: 0, onClick: () => this.buttonClick(b), part: buttonPart(b) }), h("div", { class: "toast-button-inner" }, b.icon && (h("ion-icon", { "aria-hidden": "true", icon: b.icon, slot: b.text === undefined ? 'icon-only' : undefined, class: "toast-button-icon" })), b.text), theme === 'md' && (h("ion-ripple-effect", { type: b.icon !== undefined && b.text === undefined ? 'unbounded' : 'bounded' })))))));
|
|
795
811
|
}
|
|
796
812
|
/**
|
|
797
813
|
* Render the `message` property.
|
|
@@ -814,11 +830,13 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
814
830
|
return (h("div", { key: key, class: "toast-header", "aria-hidden": ariaHidden, part: "header" }, this.header));
|
|
815
831
|
}
|
|
816
832
|
render() {
|
|
817
|
-
const { layout, el, revealContentToScreenReader, header, message } = this;
|
|
833
|
+
const { layout, el, revealContentToScreenReader, header, hue, message } = this;
|
|
818
834
|
const allButtons = this.getButtons();
|
|
819
835
|
const startButtons = allButtons.filter((b) => b.side === 'start');
|
|
820
836
|
const endButtons = allButtons.filter((b) => b.side !== 'start');
|
|
837
|
+
const theme = getIonTheme(this);
|
|
821
838
|
const mode = getIonMode(this);
|
|
839
|
+
const shape = this.getShape();
|
|
822
840
|
const wrapperClass = {
|
|
823
841
|
'toast-wrapper': true,
|
|
824
842
|
[`toast-${this.position}`]: true,
|
|
@@ -829,11 +847,11 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
829
847
|
* used with one type of button.
|
|
830
848
|
*/
|
|
831
849
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
832
|
-
printIonWarning('
|
|
850
|
+
printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
833
851
|
}
|
|
834
|
-
return (h(Host, Object.assign({ key: '
|
|
852
|
+
return (h(Host, Object.assign({ key: 'b9313024f7ccc23bf9dbd81fec858e76c0f0002e', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
835
853
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
836
|
-
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '
|
|
854
|
+
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true, [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined, [`toast-hue-${hue}`]: hue !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '99390f209983ab846b7b358ac1359a524885b57b', class: wrapperClass }, h("div", { key: '29ff3bc150473d67ac3120449e6abb631ad57366', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: 'd550e11c28a7ba2025662a40dd3a0d7d9fbdb708', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '83233159baad4ec5db29fbb2beabf4fc2d4d6232', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
837
855
|
}
|
|
838
856
|
get el() { return this; }
|
|
839
857
|
static get watchers() { return {
|
|
@@ -842,6 +860,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
842
860
|
"trigger": ["triggerChanged"]
|
|
843
861
|
}; }
|
|
844
862
|
static get style() { return {
|
|
863
|
+
ionic: IonToastIonicStyle0,
|
|
845
864
|
ios: IonToastIosStyle0,
|
|
846
865
|
md: IonToastMdStyle0
|
|
847
866
|
}; }
|
|
@@ -855,11 +874,13 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
855
874
|
"cssClass": [1, "css-class"],
|
|
856
875
|
"duration": [2],
|
|
857
876
|
"header": [1],
|
|
877
|
+
"hue": [1],
|
|
858
878
|
"layout": [1],
|
|
859
879
|
"message": [1],
|
|
860
880
|
"keyboardClose": [4, "keyboard-close"],
|
|
861
881
|
"position": [1],
|
|
862
882
|
"positionAnchor": [1, "position-anchor"],
|
|
883
|
+
"shape": [1],
|
|
863
884
|
"buttons": [16],
|
|
864
885
|
"translucent": [4],
|
|
865
886
|
"animated": [4],
|
package/components/ion-toggle.js
CHANGED
|
@@ -6,15 +6,22 @@ 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 { w as
|
|
10
|
-
import { c as config } from './
|
|
11
|
-
import {
|
|
9
|
+
import { w as removeOutline, x as checkmarkOutline, y as ellipseOutline } from './index5.js';
|
|
10
|
+
import { c as config } from './config2.js';
|
|
11
|
+
import { c as getIonTheme } from './ionic-global.js';
|
|
12
12
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const checkSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0yMjkuNjYsNzcuNjZsLTEyOCwxMjhhOCw4LDAsMCwxLTExLjMyLDBsLTU2LTU2YTgsOCwwLDAsMSwxMS4zMi0xMS4zMkw5NiwxODguNjksMjE4LjM0LDY2LjM0YTgsOCwwLDAsMSwxMS4zMiwxMS4zMloiLz48L3N2Zz4=';
|
|
15
|
+
|
|
16
|
+
const minusSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0yMjQsMTI4YTgsOCwwLDAsMS04LDhINDBhOCw4LDAsMCwxLDAtMTZIMjE2QTgsOCwwLDAsMSwyMjQsMTI4WiIvPjwvc3ZnPg==';
|
|
17
|
+
|
|
18
|
+
const toggleIonicCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.toggle-disabled){pointer-events:none}input{display:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.toggle-bottom{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;white-space:normal}.toggle-bottom .error-text{display:none}.toggle-bottom .helper-text{display:block}:host(.ion-touched.ion-invalid) .toggle-bottom .error-text{display:block}:host(.ion-touched.ion-invalid) .toggle-bottom .helper-text{display:none}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between),:host(.toggle-justify-start),:host(.toggle-justify-end),:host(.toggle-alignment-start),:host(.toggle-alignment-center){display:block}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:var(--ion-primitives-neutral-800, #626262);--track-background-checked:var(--ion-color-primary, var(--ion-bg-primary-base-default, #105cef));--border-radius:var(--ion-border-radius-full, 999px);--focus-ring-color:var(--ion-border-focus-default, #b5c0f7);--focus-ring-width:var(--ion-border-size-050, 2px);--handle-background:var(--ion-primitives-base-white, #ffffff);--handle-background-checked:var(--ion-primitives-base-white, #ffffff);--handle-border-radius:var(--ion-border-radius-full, 999px);--handle-height:var(--ion-scale-500, 20px);--handle-max-height:var(--ion-scale-500, 20px);--handle-width:var(--ion-scale-500, 20px);--handle-spacing:var(--ion-space-050, 2px);--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms,\n right 110ms ease-in-out 80ms;font-size:var(--ion-font-size-350, 0.875rem);font-weight:var(--ion-font-weight-regular, 400);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none;width:100%;z-index:2}.toggle-wrapper{-ms-flex-align:center;align-items:center;min-height:var(--ion-scale-1200, 48px)}.native-wrapper .toggle-icon{width:var(--ion-scale-1100, 44px);height:var(--ion-scale-600, 24px);overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}.toggle-bottom{font-size:var(--ion-font-size-350, 0.875rem);font-weight:var(--ion-font-weight-regular, 400);letter-spacing:var(--ion-font-letter-spacing-0, 0%);line-height:var(--ion-font-line-height-600, 24px);text-decoration:none;text-transform:none}.toggle-bottom .error-text{color:var(--ion-semantics-danger-800, #bf2222)}.toggle-bottom .helper-text{color:var(--ion-primitives-neutral-800, #626262)}:host(.ion-focused) .toggle-icon{outline:var(--focus-ring-width) var(--ion-border-style-solid, solid) var(--focus-ring-color);outline-offset:var(--focus-ring-width)}:host(.ion-activated) .toggle-icon::after{right:0;left:0;top:0;bottom:0;position:absolute;background-color:var(--ion-state-press, rgba(36, 36, 36, 0.08));content:\"\"}:host(.toggle-disabled) .toggle-icon::after{right:0;left:0;top:0;bottom:0;position:absolute;background-color:var(--ion-state-disabled, rgba(255, 255, 255, 0.6));content:\"\";pointer-events:none}.toggle-inner{will-change:background-color, transform;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--ion-primitives-neutral-1200, #242424)}.toggle-inner .toggle-switch-icon{width:var(--ion-scale-400, 16px);height:var(--ion-scale-400, 16px)}:host .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--ion-space-400, 16px);margin-inline-end:var(--ion-space-400, 16px);color:var(--ion-primitives-neutral-1200, #242424)}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:var(--ion-space-400, 16px);margin-inline-start:var(--ion-space-400, 16px);-webkit-margin-end:0;margin-inline-end:0}";
|
|
19
|
+
const IonToggleIonicStyle0 = toggleIonicCss;
|
|
20
|
+
|
|
21
|
+
const toggleIosCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.toggle-disabled){pointer-events:none}input{display:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.toggle-bottom{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;white-space:normal}.toggle-bottom .error-text{display:none}.toggle-bottom .helper-text{display:block}:host(.ion-touched.ion-invalid) .toggle-bottom .error-text{display:block}:host(.ion-touched.ion-invalid) .toggle-bottom .helper-text{display:none}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between),:host(.toggle-justify-start),:host(.toggle-justify-end),:host(.toggle-alignment-start),:host(.toggle-alignment-center){display:block}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{z-index:2}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.toggle-bottom{padding-top:4px;font-size:0.75rem}:host(.toggle-label-placement-stacked) .toggle-bottom{font-size:1rem}.toggle-bottom .error-text{color:var(--ion-color-danger, #c5000f)}.toggle-bottom .helper-text{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d))}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column;text-align:center}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--track-background-checked:var(--ion-color-primary, #0054e9);--border-radius:15.5px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 4px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.06);--handle-height:calc(31px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(31px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms}.native-wrapper .toggle-icon{width:51px;height:31px;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:background-color 300ms;transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity 300ms, color 300ms;transition:opacity 300ms, color 300ms}.toggle-switch-icon{position:absolute;color:var(--ion-color-dark, #222428)}:host(.toggle-ltr) .toggle-switch-icon{right:6px}:host(.toggle-rtl) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{position:absolute;width:15px;height:15px}.toggle-switch-icon-checked-default{-webkit-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}:host(.toggle-ltr) .toggle-switch-icon-checked{right:initial;left:4px;}:host(.toggle-rtl) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-ltr.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0);transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host(.toggle-rtl.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0);transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}";
|
|
15
22
|
const IonToggleIosStyle0 = toggleIosCss;
|
|
16
23
|
|
|
17
|
-
const toggleMdCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;
|
|
24
|
+
const toggleMdCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.toggle-disabled){pointer-events:none}input{display:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.toggle-bottom{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;white-space:normal}.toggle-bottom .error-text{display:none}.toggle-bottom .helper-text{display:block}:host(.ion-touched.ion-invalid) .toggle-bottom .error-text{display:block}:host(.ion-touched.ion-invalid) .toggle-bottom .helper-text{display:none}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between),:host(.toggle-justify-start),:host(.toggle-justify-end),:host(.toggle-alignment-start),:host(.toggle-alignment-center){display:block}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{z-index:2}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.toggle-bottom{padding-top:4px;font-size:0.75rem}:host(.toggle-label-placement-stacked) .toggle-bottom{font-size:1rem}.toggle-bottom .error-text{color:var(--ion-color-danger, #c5000f)}.toggle-bottom .helper-text{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d))}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column;text-align:center}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);--track-background-checked:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.5);--border-radius:14px;--handle-background:#ffffff;--handle-background-checked:var(--ion-color-primary, #0054e9);--handle-border-radius:50%;--handle-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--handle-width:20px;--handle-height:20px;--handle-max-height:calc(100% + 6px);--handle-spacing:0;--handle-transition:transform 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1)}.native-wrapper .toggle-icon{width:36px;height:14px}:host(.ion-color.toggle-checked) .toggle-icon{background:rgba(var(--ion-color-base-rgb), 0.5)}:host(.ion-color.toggle-checked) .toggle-inner{background:var(--ion-color-base)}:host(.toggle-checked) .toggle-inner{color:var(--ion-color-contrast, #fff)}.toggle-icon{-webkit-transition:background-color 160ms;transition:background-color 160ms}.toggle-inner{will-change:background-color, transform;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#000}.toggle-inner .toggle-switch-icon{-webkit-padding-start:1px;padding-inline-start:1px;-webkit-padding-end:1px;padding-inline-end:1px;padding-top:1px;padding-bottom:1px;width:100%;height:100%}:host(.toggle-disabled){opacity:0.38}";
|
|
18
25
|
const IonToggleMdStyle0 = toggleMdCss;
|
|
19
26
|
|
|
20
27
|
const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement {
|
|
@@ -26,6 +33,7 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
26
33
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
27
34
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
28
35
|
this.inputId = `ion-tg-${toggleIds++}`;
|
|
36
|
+
this.inputLabelId = `${this.inputId}-lbl`;
|
|
29
37
|
this.helperTextId = `${this.inputId}-helper-text`;
|
|
30
38
|
this.errorTextId = `${this.inputId}-error-text`;
|
|
31
39
|
this.lastDrag = 0;
|
|
@@ -47,6 +55,14 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
47
55
|
this.disabledChanged();
|
|
48
56
|
}
|
|
49
57
|
};
|
|
58
|
+
this.onKeyDown = (ev) => {
|
|
59
|
+
if (ev.key === ' ') {
|
|
60
|
+
ev.preventDefault();
|
|
61
|
+
if (!this.disabled) {
|
|
62
|
+
this.toggleChecked();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
50
66
|
this.onClick = (ev) => {
|
|
51
67
|
if (this.disabled) {
|
|
52
68
|
return;
|
|
@@ -62,11 +78,8 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
62
78
|
this.onBlur = () => {
|
|
63
79
|
this.ionBlur.emit();
|
|
64
80
|
};
|
|
65
|
-
this.getSwitchLabelIcon = (
|
|
66
|
-
|
|
67
|
-
return checked ? checkmarkOutline : removeOutline;
|
|
68
|
-
}
|
|
69
|
-
return checked ? removeOutline : ellipseOutline;
|
|
81
|
+
this.getSwitchLabelIcon = (checked) => {
|
|
82
|
+
return checked ? this.toggleCheckedIcon : this.toggleUncheckedIcon;
|
|
70
83
|
};
|
|
71
84
|
this.activated = false;
|
|
72
85
|
this.color = undefined;
|
|
@@ -146,18 +159,68 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
146
159
|
this.focusEl.focus();
|
|
147
160
|
}
|
|
148
161
|
}
|
|
149
|
-
|
|
150
|
-
|
|
162
|
+
get toggleDefaultCheckedIcon() {
|
|
163
|
+
// Determine the theme and map to default icons
|
|
164
|
+
const theme = getIonTheme(this);
|
|
165
|
+
const defaultIcons = {
|
|
166
|
+
ios: removeOutline,
|
|
167
|
+
ionic: checkSvg,
|
|
168
|
+
md: checkmarkOutline,
|
|
169
|
+
};
|
|
170
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
171
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
172
|
+
// Return the default icon
|
|
173
|
+
return defaultIcon;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Get the icon to use for the checked icon.
|
|
177
|
+
* Otherwise, use the icon set in the config.
|
|
178
|
+
* If no icon is set in the config, use the default icon.
|
|
179
|
+
*/
|
|
180
|
+
get toggleCheckedIcon() {
|
|
181
|
+
return config.get('toggleCheckedIcon', this.toggleDefaultCheckedIcon);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Get the icon to use for the unchecked icon.
|
|
185
|
+
* Otherwise, use the icon set in the config.
|
|
186
|
+
* If no icon is set in the config, use the default icon.
|
|
187
|
+
*/
|
|
188
|
+
get toggleUncheckedIcon() {
|
|
189
|
+
// Determine the theme and map to default icons
|
|
190
|
+
const theme = getIonTheme(this);
|
|
191
|
+
const defaultIcons = {
|
|
192
|
+
ios: ellipseOutline,
|
|
193
|
+
ionic: minusSvg,
|
|
194
|
+
md: removeOutline,
|
|
195
|
+
};
|
|
196
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
197
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
198
|
+
// Return the configured toggle unchecked icon or the default icon
|
|
199
|
+
return config.get('toggleUncheckedIcon', defaultIcon);
|
|
200
|
+
}
|
|
201
|
+
renderOnOffSwitchLabels(checked) {
|
|
202
|
+
const icon = this.getSwitchLabelIcon(checked);
|
|
151
203
|
return (h("ion-icon", { class: {
|
|
152
204
|
'toggle-switch-icon': true,
|
|
153
205
|
'toggle-switch-icon-checked': checked,
|
|
206
|
+
/**
|
|
207
|
+
* The default checked icon is being modified with
|
|
208
|
+
* styling that causes it to rotate by 90 degrees
|
|
209
|
+
* when the theme is `ios`.
|
|
210
|
+
*
|
|
211
|
+
* To prevent any rotation on a custom icon that is
|
|
212
|
+
* set through the config, we need to apply a class
|
|
213
|
+
* that handles the styling only when the default
|
|
214
|
+
* checked icon is being used.
|
|
215
|
+
*/
|
|
216
|
+
'toggle-switch-icon-checked-default': checked && icon === this.toggleDefaultCheckedIcon,
|
|
154
217
|
}, icon: icon, "aria-hidden": "true" }));
|
|
155
218
|
}
|
|
156
219
|
renderToggleControl() {
|
|
157
|
-
const
|
|
220
|
+
const theme = getIonTheme(this);
|
|
158
221
|
const { enableOnOffLabels, checked } = this;
|
|
159
222
|
return (h("div", { class: "toggle-icon", part: "track", ref: (el) => (this.toggleTrack = el) }, enableOnOffLabels &&
|
|
160
|
-
|
|
223
|
+
theme === 'ios' && [this.renderOnOffSwitchLabels(true), this.renderOnOffSwitchLabels(false)], h("div", { class: "toggle-icon-wrapper" }, h("div", { class: "toggle-inner", part: "handle" }, enableOnOffLabels && (theme === 'md' || theme === 'ionic') && this.renderOnOffSwitchLabels(checked)))));
|
|
161
224
|
}
|
|
162
225
|
get hasLabel() {
|
|
163
226
|
return this.el.textContent !== '';
|
|
@@ -189,13 +252,14 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
189
252
|
return (h("div", { class: "toggle-bottom" }, h("div", { id: helperTextId, class: "helper-text", part: "supporting-text helper-text" }, helperText), h("div", { id: errorTextId, class: "error-text", part: "supporting-text error-text" }, errorText)));
|
|
190
253
|
}
|
|
191
254
|
render() {
|
|
192
|
-
const { activated,
|
|
193
|
-
const
|
|
255
|
+
const { activated, alignment, checked, color, disabled, el, errorTextId, hasLabel, inheritedAttributes, inputId, inputLabelId, justify, labelPlacement, name, required, } = this;
|
|
256
|
+
const theme = getIonTheme(this);
|
|
194
257
|
const value = this.getValue();
|
|
195
258
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
259
|
+
const isIonicTheme = theme === 'ionic';
|
|
196
260
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
197
|
-
return (h(Host, { key: '
|
|
198
|
-
[
|
|
261
|
+
return (h(Host, { key: '55a870d76365bac9cd421a27573d63106d8c10ec', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.getHintTextID(), "aria-invalid": this.getHintTextID() === errorTextId, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, class: createColorClasses(color, {
|
|
262
|
+
[theme]: true,
|
|
199
263
|
'in-item': hostContext('ion-item', el),
|
|
200
264
|
'toggle-activated': activated,
|
|
201
265
|
'toggle-checked': checked,
|
|
@@ -204,16 +268,19 @@ const Toggle = /*@__PURE__*/ proxyCustomElement(class Toggle extends HTMLElement
|
|
|
204
268
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
205
269
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
206
270
|
[`toggle-${rtl}`]: true,
|
|
207
|
-
|
|
271
|
+
'ion-activatable': isIonicTheme,
|
|
272
|
+
'ion-focusable': isIonicTheme,
|
|
273
|
+
}) }, h("label", { key: '96d39695250ad797c8ac03f366c624291782a1f6', class: "toggle-wrapper", htmlFor: inputId }, h("input", Object.assign({ key: 'f973b79eb5a92a28c569b971b4492a9c3948e440', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl), required: required }, inheritedAttributes)), h("div", { key: 'cfa35dc1a438177fb88502957cd4803fd35b8c22', class: {
|
|
208
274
|
'label-text-wrapper': true,
|
|
209
|
-
'label-text-wrapper-hidden': !
|
|
210
|
-
}, part: "label" }, h("slot", { key: '
|
|
275
|
+
'label-text-wrapper-hidden': !hasLabel,
|
|
276
|
+
}, part: "label", id: inputLabelId }, h("slot", { key: '999189224a2e0a3244acef80a52d30eb47f56c1f' }), this.renderHintText()), h("div", { key: 'a36640ac6d02a90a206fba961d10078f1fe081e1', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
211
277
|
}
|
|
212
278
|
get el() { return this; }
|
|
213
279
|
static get watchers() { return {
|
|
214
280
|
"disabled": ["disabledChanged"]
|
|
215
281
|
}; }
|
|
216
282
|
static get style() { return {
|
|
283
|
+
ionic: IonToggleIonicStyle0,
|
|
217
284
|
ios: IonToggleIosStyle0,
|
|
218
285
|
md: IonToggleMdStyle0
|
|
219
286
|
}; }
|