@ionic/core 8.4.0 → 8.4.1-dev.11730807985.1b046f37
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 +15 -10
- package/components/animation.js +1 -1
- package/components/backdrop.js +10 -6
- package/components/button.js +41 -11
- 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 +29 -12
- package/components/config2.js +79 -0
- package/components/content.js +14 -12
- package/components/data.js +4 -4
- package/components/focus-visible.js +8 -1
- package/components/framework-delegate.js +3 -1
- package/components/header.js +24 -15
- package/components/helpers.js +4 -1
- package/components/index2.js +2 -2
- package/components/index4.js +8 -9
- package/components/index5.js +27 -3
- package/components/index6.js +114 -20
- package/components/index7.js +163 -27
- package/components/input-shims.js +2 -2
- package/components/input.utils.js +1 -2
- package/components/ion-accordion-group.js +25 -6
- package/components/ion-accordion.js +36 -17
- package/components/ion-app.js +9 -77
- package/components/ion-avatar.js +52 -3
- package/components/ion-back-button.js +29 -19
- package/components/ion-badge.js +44 -8
- 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 +45 -8
- package/components/ion-col.js +5 -5
- package/components/ion-datetime-button.js +9 -6
- package/components/ion-datetime.js +96 -20
- 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 -8
- package/components/ion-infinite-scroll.js +5 -5
- package/components/ion-input-password-toggle.js +53 -14
- 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 +28 -8
- package/components/ion-item-options.js +9 -5
- package/components/ion-item-sliding.js +5 -5
- package/components/ion-loading.js +13 -8
- package/components/ion-menu-button.js +28 -10
- package/components/ion-menu-toggle.js +5 -5
- package/components/ion-menu.js +12 -8
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +8 -6
- package/components/ion-note.js +9 -5
- package/components/ion-picker-legacy.js +7 -8
- package/components/ion-progress-bar.js +11 -6
- package/components/ion-range.js +11 -8
- package/components/ion-refresher-content.js +28 -9
- package/components/ion-refresher.js +11 -7
- 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 -3
- package/components/ion-row.js +5 -2
- package/components/ion-searchbar.js +93 -16
- package/components/ion-segment-button.js +11 -7
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +11 -7
- package/components/ion-select-option.js +5 -2
- package/components/ion-select.js +79 -30
- package/components/ion-skeleton-text.js +6 -5
- package/components/ion-split-pane.js +12 -8
- package/components/ion-tab-bar.js +31 -8
- package/components/ion-tab-button.js +12 -7
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +2 -2
- package/components/ion-text.js +5 -5
- package/components/ion-textarea.js +38 -11
- package/components/ion-thumbnail.js +5 -2
- package/components/ion-toast.js +30 -12
- package/components/ion-toggle.js +77 -18
- package/components/ionic-global.js +374 -84
- 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 +9 -5
- package/components/list.js +29 -6
- package/components/list2.js +6 -0
- package/components/modal.js +51 -21
- package/components/notch-controller.js +1 -1
- package/components/overlays.js +4 -5
- 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 +11 -8
- package/components/radio-group.js +5 -3
- package/components/radio.js +12 -8
- package/components/ripple-effect.js +18 -8
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +9 -2
- package/components/spinner.js +36 -9
- 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.map +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.map +1 -1
- package/dist/cjs/{animation-b4fdf128.js → animation-58015a44.js} +2 -2
- package/dist/cjs/{app-globals-21afee77.js → app-globals-d64148d3.js} +1 -1
- package/dist/cjs/{button-active-3f2f60b4.js → button-active-ec1fd1d8.js} +1 -1
- package/dist/cjs/{capacitor-c04564bf.js → capacitor-454dd071.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-aff4ff52.js +84 -0
- package/dist/cjs/{data-21dc0f81.js → data-b726dbee.js} +6 -6
- package/dist/cjs/{focus-visible-7a0ce04f.js → focus-visible-9aa87fa3.js} +8 -0
- package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-32f1a0e4.js} +4 -2
- package/dist/cjs/{haptic-f6b37aa3.js → haptic-7c25be74.js} +1 -1
- package/dist/cjs/{helpers-afaa9001.js → helpers-4e2936d2.js} +4 -1
- package/dist/cjs/{index-8e789962.js → index-03fbee1d.js} +14 -15
- package/dist/cjs/{index-9509ecad.js → index-0e0c6196.js} +9 -7
- package/dist/cjs/{index-5b6a7459.js → index-604c36ae.js} +3 -3
- package/dist/cjs/{index-f05acd21.js → index-8f975cf4.js} +12 -12
- package/dist/cjs/index.cjs.js +10 -12
- package/dist/cjs/{input-shims-9e59ef62.js → input-shims-4b4d2251.js} +18 -17
- package/dist/cjs/{input.utils-611cde0b.js → input.utils-fb1debe4.js} +4 -5
- package/dist/cjs/ion-accordion_2.cjs.entry.js +61 -24
- package/dist/cjs/ion-action-sheet.cjs.entry.js +21 -18
- package/dist/cjs/ion-alert.cjs.entry.js +25 -23
- package/dist/cjs/ion-app_8.cjs.entry.js +108 -152
- package/dist/cjs/ion-avatar_3.cjs.entry.js +93 -9
- package/dist/cjs/ion-back-button.cjs.entry.js +31 -21
- package/dist/cjs/ion-backdrop.cjs.entry.js +11 -6
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +53 -15
- package/dist/cjs/ion-button_2.cjs.entry.js +46 -15
- package/dist/cjs/ion-card_5.cjs.entry.js +52 -28
- package/dist/cjs/ion-checkbox.cjs.entry.js +29 -13
- package/dist/cjs/ion-chip.cjs.entry.js +43 -7
- package/dist/cjs/ion-col_3.cjs.entry.js +14 -10
- package/dist/cjs/ion-datetime-button.cjs.entry.js +16 -12
- package/dist/cjs/ion-datetime_3.cjs.entry.js +189 -115
- package/dist/cjs/ion-fab_3.cjs.entry.js +42 -19
- package/dist/cjs/ion-img.cjs.entry.js +7 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +21 -17
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +55 -16
- package/dist/cjs/ion-input.cjs.entry.js +118 -23
- package/dist/cjs/ion-item-option_3.cjs.entry.js +40 -17
- package/dist/cjs/ion-item_8.cjs.entry.js +113 -41
- package/dist/cjs/ion-loading.cjs.entry.js +20 -18
- package/dist/cjs/ion-menu_3.cjs.entry.js +48 -29
- package/dist/cjs/ion-modal.cjs.entry.js +95 -67
- package/dist/cjs/ion-nav_2.cjs.entry.js +15 -13
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +11 -6
- package/dist/cjs/ion-picker-column.cjs.entry.js +12 -12
- package/dist/cjs/ion-picker.cjs.entry.js +10 -5
- package/dist/cjs/ion-popover.cjs.entry.js +20 -18
- package/dist/cjs/ion-progress-bar.cjs.entry.js +13 -8
- package/dist/cjs/ion-radio_2.cjs.entry.js +18 -11
- package/dist/cjs/ion-range.cjs.entry.js +18 -14
- package/dist/cjs/ion-refresher_2.cjs.entry.js +44 -23
- package/dist/cjs/ion-reorder_2.cjs.entry.js +37 -13
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +18 -7
- package/dist/cjs/ion-route_4.cjs.entry.js +8 -7
- package/dist/cjs/ion-searchbar.cjs.entry.js +94 -17
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +23 -14
- package/dist/cjs/ion-select-modal.cjs.entry.js +6 -8
- package/dist/cjs/ion-select_3.cjs.entry.js +94 -38
- package/dist/cjs/ion-spinner.cjs.entry.js +35 -9
- package/dist/cjs/ion-split-pane.cjs.entry.js +13 -8
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +45 -20
- package/dist/cjs/ion-tab_2.cjs.entry.js +7 -6
- package/dist/cjs/ion-text.cjs.entry.js +6 -5
- package/dist/cjs/ion-textarea.cjs.entry.js +41 -16
- package/dist/cjs/ion-toast.cjs.entry.js +59 -43
- package/dist/cjs/ion-toggle.cjs.entry.js +80 -22
- package/dist/cjs/ionic-global-14af9c21.js +535 -0
- package/dist/cjs/ionic.cjs.js +4 -3
- package/dist/cjs/{ios.transition-cf40433b.js → ios.transition-2bb0f7d5.js} +6 -6
- package/dist/cjs/{keyboard-af1bb365.js → keyboard-0a5d46dd.js} +5 -3
- package/dist/cjs/{keyboard-0272231f.js → keyboard-53c12a15.js} +1 -1
- package/dist/cjs/{keyboard-controller-c05e747a.js → keyboard-controller-102bad3e.js} +11 -9
- package/dist/cjs/list-2930c629.js +8 -0
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{md.transition-ededf99f.js → md.transition-cf600117.js} +5 -6
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-ea70e230.js} +4 -4
- package/dist/cjs/{overlays-ba0f6986.js → overlays-a698a408.js} +19 -20
- package/dist/cjs/{status-tap-37681226.js → status-tap-aa97d209.js} +4 -3
- package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-27975274.js} +2 -1
- package/dist/cjs/x-81a8f51c.js +8 -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 +43 -8
- 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 +15 -12
- package/dist/collection/components/alert/alert.md.css +19 -1
- package/dist/collection/components/app/app.js +12 -78
- package/dist/collection/components/avatar/avatar.ionic.css +269 -0
- package/dist/collection/components/avatar/avatar.ios.css +12 -0
- package/dist/collection/components/avatar/avatar.js +92 -4
- package/dist/collection/components/avatar/avatar.md.css +12 -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 +151 -0
- package/dist/collection/components/backdrop/backdrop.ios.css +13 -1
- package/dist/collection/components/backdrop/backdrop.js +12 -6
- package/dist/collection/components/backdrop/backdrop.md.css +13 -1
- package/dist/collection/components/badge/badge.ionic.css +249 -0
- package/dist/collection/components/badge/badge.ios.css +106 -3
- package/dist/collection/components/badge/badge.js +75 -8
- package/dist/collection/components/badge/badge.md.css +106 -3
- 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 +589 -0
- package/dist/collection/components/button/button.ios.css +129 -36
- package/dist/collection/components/button/button.js +46 -16
- package/dist/collection/components/button/button.md.css +120 -40
- 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 +402 -0
- package/dist/collection/components/checkbox/checkbox.ios.css +20 -2
- package/dist/collection/components/checkbox/checkbox.js +63 -14
- package/dist/collection/components/checkbox/checkbox.md.css +21 -3
- package/dist/collection/components/chip/chip.ionic.css +160 -0
- package/dist/collection/components/chip/chip.ios.css +20 -1
- package/dist/collection/components/chip/chip.js +77 -8
- package/dist/collection/components/chip/chip.md.css +20 -1
- 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 +668 -0
- package/dist/collection/components/datetime/datetime.ios.css +232 -73
- package/dist/collection/components/datetime/datetime.js +95 -19
- package/dist/collection/components/datetime/datetime.md.css +232 -73
- package/dist/collection/components/datetime/utils/data.js +3 -3
- package/dist/collection/components/datetime-button/datetime-button.ios.css +6 -0
- package/dist/collection/components/datetime-button/datetime-button.js +11 -8
- package/dist/collection/components/datetime-button/datetime-button.md.css +6 -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 +1096 -0
- package/dist/collection/components/input/input.ios.css +21 -2
- package/dist/collection/components/input/input.js +144 -30
- package/dist/collection/components/input/input.md.css +43 -4
- package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +61 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +141 -0
- package/dist/collection/components/input-password-toggle/input-password-toggle.js +48 -12
- package/dist/collection/components/item/item.ionic.css +501 -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 +332 -0
- package/dist/collection/components/item-option/item-option.ios.css +14 -2
- package/dist/collection/components/item-option/item-option.js +43 -8
- package/dist/collection/components/item-option/item-option.md.css +14 -2
- package/dist/collection/components/item-options/item-options.ionic.css +258 -0
- package/dist/collection/components/item-options/item-options.ios.css +18 -0
- package/dist/collection/components/item-options/item-options.js +13 -7
- package/dist/collection/components/item-options/item-options.md.css +18 -0
- package/dist/collection/components/item-sliding/item-sliding.css +6 -0
- package/dist/collection/components/item-sliding/item-sliding.js +8 -4
- 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 +193 -0
- package/dist/collection/components/list/list.ios.css +18 -0
- package/dist/collection/components/list/list.js +47 -9
- package/dist/collection/components/list/list.md.css +20 -2
- package/dist/collection/components/list-header/list-header.ionic.css +236 -0
- package/dist/collection/components/list-header/list-header.ios.css +18 -0
- package/dist/collection/components/list-header/list-header.js +11 -8
- package/dist/collection/components/list-header/list-header.md.css +18 -0
- 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 +12 -7
- 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 +239 -0
- package/dist/collection/components/modal/modal.ios.css +106 -63
- package/dist/collection/components/modal/modal.js +47 -11
- package/dist/collection/components/modal/modal.md.css +106 -63
- package/dist/collection/components/nav/nav.css +7 -1
- package/dist/collection/components/nav/nav.js +11 -5
- 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 +7 -6
- 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 +15 -12
- package/dist/collection/components/popover/popover.md.css +13 -1
- package/dist/collection/components/progress-bar/progress-bar.ios.css +8 -2
- package/dist/collection/components/progress-bar/progress-bar.js +10 -7
- package/dist/collection/components/progress-bar/progress-bar.md.css +8 -2
- package/dist/collection/components/radio/radio.ionic.css +418 -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.js +9 -3
- package/dist/collection/components/range/range.ios.css +12 -0
- package/dist/collection/components/range/range.js +12 -9
- package/dist/collection/components/range/range.md.css +12 -0
- package/dist/collection/components/refresher/refresher.ios.css +14 -1
- package/dist/collection/components/refresher/refresher.js +11 -8
- 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 +154 -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 +4 -0
- 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 +5 -2
- 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 +345 -0
- package/dist/collection/components/searchbar/searchbar.ios.css +56 -18
- package/dist/collection/components/searchbar/searchbar.js +97 -25
- 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 +350 -0
- package/dist/collection/components/segment-button/segment-button.ios.css +146 -105
- package/dist/collection/components/segment-button/segment-button.js +11 -8
- 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 +2 -2
- package/dist/collection/components/segment-view/segment-view.md.css +6 -0
- package/dist/collection/components/select/select.ios.css +22 -3
- package/dist/collection/components/select/select.js +81 -33
- package/dist/collection/components/select/select.md.css +38 -5
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- 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.common.css +199 -0
- package/dist/collection/components/spinner/{spinner.css → spinner.ionic.css} +63 -0
- package/dist/collection/components/spinner/spinner.js +46 -6
- package/dist/collection/components/split-pane/split-pane.ios.css +20 -2
- package/dist/collection/components/split-pane/split-pane.js +14 -8
- package/dist/collection/components/split-pane/split-pane.md.css +20 -2
- package/dist/collection/components/tab/tab.js +6 -2
- 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 +271 -0
- package/dist/collection/components/tab-button/tab-button.ios.css +103 -88
- package/dist/collection/components/tab-button/tab-button.js +11 -8
- package/dist/collection/components/tab-button/tab-button.md.css +103 -88
- package/dist/collection/components/tabs/tabs.css +7 -1
- package/dist/collection/components/tabs/tabs.js +4 -1
- 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 +804 -0
- package/dist/collection/components/textarea/textarea.ios.css +201 -96
- package/dist/collection/components/textarea/textarea.js +59 -16
- package/dist/collection/components/textarea/textarea.md.css +214 -97
- 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 +1 -1
- package/dist/collection/components/toast/toast.ionic.css +358 -0
- package/dist/collection/components/toast/toast.ios.css +74 -35
- package/dist/collection/components/toast/toast.js +45 -11
- package/dist/collection/components/toast/toast.md.css +74 -35
- package/dist/collection/components/toggle/toggle.ionic.css +419 -0
- package/dist/collection/components/toggle/toggle.ios.css +166 -120
- package/dist/collection/components/toggle/toggle.js +73 -18
- package/dist/collection/components/toggle/toggle.md.css +163 -120
- 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 +229 -13
- package/dist/collection/utils/focus-visible.js +7 -0
- package/dist/collection/utils/framework-delegate.js +3 -1
- package/dist/collection/utils/helpers.js +3 -1
- package/dist/collection/utils/keyboard/keyboard-controller.js +3 -1
- 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 +2 -1
- 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 +7030 -321
- package/dist/esm/{animation-eab5a4ca.js → animation-f1a88600.js} +1 -1
- package/dist/esm/{app-globals-5dbb61a5.js → app-globals-eceadabb.js} +1 -1
- package/dist/esm/{button-active-f6503382.js → button-active-321f0dba.js} +2 -2
- package/dist/esm/{capacitor-59395cbd.js → capacitor-6b0341c8.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-84eb9670.js +79 -0
- package/dist/esm/{data-ae11fd43.js → data-a753c96a.js} +4 -4
- package/dist/esm/{focus-visible-dd40d69f.js → focus-visible-501aff19.js} +8 -1
- package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-3e4a8c9f.js} +4 -2
- package/dist/esm/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
- package/dist/esm/{helpers-da915de8.js → helpers-f08d15bd.js} +4 -1
- package/dist/esm/{index-24b48b06.js → index-31109e63.js} +10 -11
- package/dist/esm/{index-3ad7f18b.js → index-59f81cb8.js} +6 -6
- package/{components/index9.js → dist/esm/index-62b4a18b.js} +4 -2
- package/dist/esm/{index-28849c61.js → index-723c0e5d.js} +1 -1
- package/dist/esm/{index-5cc724f3.js → index-7bd160c2.js} +2 -2
- package/dist/esm/{index-e2cf2ceb.js → index-d997525d.js} +1 -1
- package/dist/esm/index.js +11 -13
- package/dist/esm/{input-shims-0314bbe5.js → input-shims-6be83e59.js} +7 -6
- package/dist/esm/{input.utils-09c71bc7.js → input.utils-67459bae.js} +2 -3
- package/dist/esm/ion-accordion_2.entry.js +61 -24
- package/dist/esm/ion-action-sheet.entry.js +22 -19
- package/dist/esm/ion-alert.entry.js +23 -21
- package/dist/esm/ion-app_8.entry.js +96 -140
- package/dist/esm/ion-avatar_3.entry.js +94 -10
- package/dist/esm/ion-back-button.entry.js +31 -21
- package/dist/esm/ion-backdrop.entry.js +12 -7
- package/dist/esm/ion-breadcrumb_2.entry.js +55 -17
- package/dist/esm/ion-button_2.entry.js +44 -13
- package/dist/esm/ion-card_5.entry.js +53 -29
- package/dist/esm/ion-checkbox.entry.js +30 -14
- package/dist/esm/ion-chip.entry.js +44 -8
- package/dist/esm/ion-col_3.entry.js +15 -11
- package/dist/esm/ion-datetime-button.entry.js +13 -9
- package/dist/esm/ion-datetime_3.entry.js +114 -40
- package/dist/esm/ion-fab_3.entry.js +44 -21
- package/dist/esm/ion-img.entry.js +8 -4
- package/dist/esm/ion-infinite-scroll_2.entry.js +19 -15
- package/dist/esm/ion-input-password-toggle.entry.js +54 -15
- package/dist/esm/ion-input.entry.js +120 -25
- package/dist/esm/ion-item-option_3.entry.js +41 -18
- package/dist/esm/ion-item_8.entry.js +114 -42
- package/dist/esm/ion-loading.entry.js +18 -16
- package/dist/esm/ion-menu_3.entry.js +48 -29
- package/dist/esm/ion-modal.entry.js +59 -31
- package/dist/esm/ion-nav_2.entry.js +14 -12
- package/dist/esm/ion-picker-column-option.entry.js +12 -7
- package/dist/esm/ion-picker-column.entry.js +12 -12
- package/dist/esm/ion-picker.entry.js +11 -6
- package/dist/esm/ion-popover.entry.js +18 -16
- package/dist/esm/ion-progress-bar.entry.js +13 -8
- package/dist/esm/ion-radio_2.entry.js +19 -12
- package/dist/esm/ion-range.entry.js +14 -10
- package/dist/esm/ion-refresher_2.entry.js +42 -21
- package/dist/esm/ion-reorder_2.entry.js +39 -15
- package/dist/esm/ion-ripple-effect.entry.js +19 -8
- package/dist/esm/ion-route_4.entry.js +9 -8
- package/dist/esm/ion-searchbar.entry.js +95 -18
- package/dist/esm/ion-segment-content.entry.js +2 -2
- package/dist/esm/ion-segment-view.entry.js +3 -3
- package/dist/esm/ion-segment_2.entry.js +24 -15
- package/dist/esm/ion-select-modal.entry.js +7 -9
- package/dist/esm/ion-select_3.entry.js +96 -40
- package/dist/esm/ion-spinner.entry.js +34 -8
- package/dist/esm/ion-split-pane.entry.js +14 -9
- package/dist/esm/ion-tab-bar_2.entry.js +45 -20
- package/dist/esm/ion-tab_2.entry.js +8 -7
- package/dist/esm/ion-text.entry.js +7 -6
- package/dist/esm/ion-textarea.entry.js +42 -17
- package/dist/esm/ion-toast.entry.js +34 -18
- package/dist/esm/ion-toggle.entry.js +81 -23
- package/dist/esm/ionic-global-3c97a4aa.js +521 -0
- package/dist/esm/ionic.js +6 -5
- package/dist/esm/{ios.transition-4ee1a3af.js → ios.transition-06b78ea0.js} +7 -7
- package/dist/esm/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +5 -3
- package/dist/esm/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
- package/dist/esm/{keyboard-controller-ec5c2bfa.js → keyboard-controller-aff395fd.js} +5 -3
- package/dist/esm/list-6524700c.js +6 -0
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{md.transition-5106a0d2.js → md.transition-e5712bda.js} +6 -7
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-c0bd22ff.js} +2 -2
- package/dist/esm/{overlays-ae10d43d.js → overlays-ce6f6b23.js} +6 -7
- package/dist/esm/{status-tap-f472b09f.js → status-tap-edf9f395.js} +5 -4
- package/dist/esm/{swipe-back-e5394307.js → swipe-back-17c42610.js} +2 -1
- package/dist/esm/x-a64bcd9f.js +6 -0
- package/dist/esm-es5/animation-f1a88600.js +4 -0
- package/dist/esm-es5/app-globals-eceadabb.js +4 -0
- package/dist/esm-es5/{button-active-f6503382.js → button-active-321f0dba.js} +1 -1
- package/dist/esm-es5/capacitor-6b0341c8.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-84eb9670.js +4 -0
- package/dist/esm-es5/data-a753c96a.js +4 -0
- package/dist/esm-es5/focus-visible-501aff19.js +4 -0
- package/dist/esm-es5/framework-delegate-3e4a8c9f.js +4 -0
- package/dist/esm-es5/{haptic-ac164e4c.js → haptic-dd6c0ea9.js} +1 -1
- package/dist/esm-es5/helpers-f08d15bd.js +4 -0
- package/dist/esm-es5/index-31109e63.js +4 -0
- package/dist/esm-es5/index-59f81cb8.js +4 -0
- package/dist/esm-es5/{index-79b30591.js → index-62b4a18b.js} +1 -1
- package/dist/esm-es5/{index-28849c61.js → index-723c0e5d.js} +1 -1
- package/dist/esm-es5/index-7bd160c2.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-6be83e59.js +4 -0
- package/dist/esm-es5/input.utils-67459bae.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-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-3c97a4aa.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-06b78ea0.js +4 -0
- package/dist/esm-es5/{keyboard-52278bd7.js → keyboard-5b1b354d.js} +1 -1
- package/dist/esm-es5/{keyboard-73175e24.js → keyboard-9bbd546a.js} +1 -1
- package/dist/esm-es5/keyboard-controller-aff395fd.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-e5712bda.js +4 -0
- package/dist/esm-es5/notch-controller-c0bd22ff.js +4 -0
- package/dist/esm-es5/overlays-ce6f6b23.js +4 -0
- package/dist/esm-es5/status-tap-edf9f395.js +4 -0
- package/dist/esm-es5/swipe-back-17c42610.js +4 -0
- package/dist/esm-es5/x-a64bcd9f.js +4 -0
- package/dist/html.html-data.json +2306 -204
- 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-01d80901.system.js +4 -0
- package/dist/ionic/p-02db6423.entry.js +4 -0
- package/dist/ionic/p-038a6294.js +4 -0
- package/dist/ionic/p-043483dc.entry.js +4 -0
- package/dist/ionic/p-055ae36e.system.entry.js +4 -0
- package/dist/ionic/p-06ca2619.system.entry.js +4 -0
- package/dist/ionic/p-06ec4706.js +4 -0
- package/dist/ionic/p-08b2ba53.system.entry.js +4 -0
- package/dist/ionic/p-08f4a45d.system.entry.js +4 -0
- package/dist/ionic/p-096e5f6d.system.entry.js +4 -0
- package/dist/ionic/p-09c6b5e4.js +4 -0
- package/dist/ionic/p-0a0ce78f.system.entry.js +4 -0
- package/dist/ionic/{p-25180df3.system.js → p-0fa218e9.system.js} +1 -1
- package/dist/ionic/{p-424eb140.system.entry.js → p-10961893.system.entry.js} +1 -1
- package/dist/ionic/p-112120d7.system.js +4 -0
- package/dist/ionic/{p-c7e16491.js → p-11266916.js} +1 -1
- package/dist/ionic/{p-1e955a45.system.js → p-115d74cd.system.js} +1 -1
- package/dist/ionic/{p-34b11c24.js → p-12d6df53.js} +1 -1
- package/dist/ionic/p-156d17cd.js +4 -0
- package/dist/ionic/p-161ecf50.system.entry.js +4 -0
- package/dist/ionic/{p-b06ac4a5.system.js → p-18f86177.system.js} +1 -1
- package/dist/ionic/p-1a64d63d.system.entry.js +4 -0
- package/dist/ionic/p-1da82a87.system.entry.js +4 -0
- package/dist/ionic/p-1e4fd112.entry.js +4 -0
- package/dist/ionic/p-1efa63f2.js +4 -0
- package/dist/ionic/p-1fba8e90.system.entry.js +4 -0
- package/dist/ionic/p-211b0fba.system.entry.js +4 -0
- package/dist/ionic/p-23b31425.entry.js +4 -0
- package/dist/ionic/p-243adf8c.js +4 -0
- package/dist/ionic/p-24f15ce4.system.entry.js +4 -0
- package/dist/ionic/p-2978f27e.entry.js +4 -0
- package/dist/ionic/p-2ef115ec.system.entry.js +4 -0
- package/dist/ionic/p-31fa1052.system.entry.js +4 -0
- package/dist/ionic/p-33dc4514.js +4 -0
- package/dist/ionic/p-346c67b0.js +4 -0
- package/dist/ionic/p-35362c9f.entry.js +4 -0
- package/dist/ionic/p-3608e72b.entry.js +4 -0
- package/dist/ionic/p-3b520400.system.entry.js +4 -0
- package/dist/ionic/p-3c4c73f9.system.entry.js +4 -0
- package/dist/ionic/p-3ce95a91.entry.js +4 -0
- package/dist/ionic/p-3d61263b.system.entry.js +4 -0
- package/dist/ionic/{p-9ea607bd.system.js → p-3e91ea3a.system.js} +2 -2
- package/dist/ionic/p-3f1e20d1.system.entry.js +4 -0
- package/dist/ionic/p-3fc0ba02.system.entry.js +4 -0
- package/dist/ionic/p-4130574e.entry.js +4 -0
- package/dist/ionic/{p-3c8e5c23.system.js → p-41c19986.system.js} +1 -1
- package/dist/ionic/p-41f06734.entry.js +4 -0
- package/dist/ionic/p-4219582c.system.js +4 -0
- package/dist/ionic/p-429dd2b5.system.js +4 -0
- package/dist/ionic/p-430d860e.entry.js +4 -0
- package/dist/ionic/p-43df37ca.entry.js +4 -0
- package/dist/ionic/p-4459a66e.system.js +4 -0
- package/dist/ionic/{p-f687573e.system.js → p-44ad86d7.system.js} +1 -1
- package/dist/ionic/p-458a2899.entry.js +4 -0
- package/dist/ionic/{p-8985cdb6.system.js → p-4626fb32.system.js} +1 -1
- package/dist/ionic/p-46787abb.system.js +4 -0
- package/dist/ionic/p-4683bb1b.entry.js +4 -0
- package/dist/ionic/p-47fd935c.system.js +4 -0
- package/dist/ionic/p-4a89c1ec.system.js +4 -0
- package/dist/ionic/p-4ac4f52a.system.entry.js +4 -0
- package/dist/ionic/p-4b4e4592.system.entry.js +4 -0
- package/dist/ionic/{p-89b61afc.js → p-4c275462.js} +1 -1
- package/dist/ionic/p-4c9e1b2c.js +4 -0
- package/dist/ionic/p-4edc0fda.system.entry.js +4 -0
- package/dist/ionic/p-4f127a09.system.entry.js +4 -0
- package/dist/ionic/p-51371e21.system.js +4 -0
- package/dist/ionic/p-530c591a.entry.js +4 -0
- package/dist/ionic/p-5474c7c4.entry.js +4 -0
- package/dist/ionic/p-55546d77.system.entry.js +4 -0
- package/dist/ionic/p-556778bd.system.js +4 -0
- package/dist/ionic/p-56be80f7.entry.js +4 -0
- package/dist/ionic/p-578a8bdf.entry.js +4 -0
- package/dist/ionic/p-57de8d54.system.entry.js +4 -0
- package/dist/ionic/{p-f9a53abb.system.js → p-58aa8a36.system.js} +1 -1
- package/dist/ionic/p-58c64779.system.entry.js +4 -0
- package/dist/ionic/{p-da2b833b.js → p-58f16ef6.js} +1 -1
- package/dist/ionic/p-5a6b3c0d.entry.js +4 -0
- package/dist/ionic/p-5a6d245d.system.entry.js +4 -0
- package/dist/ionic/p-5b57d327.system.js +4 -0
- package/dist/ionic/p-5ce35a03.js +4 -0
- package/dist/ionic/p-5e9730c2.entry.js +4 -0
- package/dist/ionic/p-607c9c33.js +4 -0
- package/dist/ionic/{p-9146695e.system.js → p-62887754.system.js} +1 -1
- package/dist/ionic/p-63fde7fe.entry.js +4 -0
- package/dist/ionic/p-67b6e18d.entry.js +4 -0
- package/dist/ionic/p-699c1e19.entry.js +4 -0
- package/dist/ionic/p-6a0dd6bc.js +4 -0
- package/dist/ionic/p-6bc2795b.entry.js +4 -0
- package/dist/ionic/p-6bd1c0ee.system.entry.js +4 -0
- package/dist/ionic/p-6caa76ec.js +4 -0
- package/dist/ionic/p-6f941957.entry.js +4 -0
- package/dist/ionic/p-7071d7ca.js +4 -0
- package/dist/ionic/p-72cbf799.system.entry.js +4 -0
- package/dist/ionic/p-74a20601.system.entry.js +4 -0
- package/dist/ionic/p-74d76684.js +4 -0
- package/dist/ionic/p-7557a7de.system.entry.js +4 -0
- package/dist/ionic/p-7607d8ba.system.entry.js +4 -0
- package/dist/ionic/p-78ed8923.js +4 -0
- package/dist/ionic/p-7a858bae.system.js +4 -0
- package/dist/ionic/p-81e632cb.entry.js +4 -0
- package/dist/ionic/p-82cb4235.js +4 -0
- package/dist/ionic/{p-d836d43e.js → p-83948e48.js} +1 -1
- package/dist/ionic/p-8463212e.js +4 -0
- package/dist/ionic/p-84667060.entry.js +4 -0
- package/dist/ionic/p-857ba8d4.entry.js +4 -0
- package/dist/ionic/p-86d98446.system.entry.js +4 -0
- package/dist/ionic/{p-58d5df0c.system.entry.js → p-86e9a917.system.entry.js} +1 -1
- package/dist/ionic/p-87049797.js +4 -0
- package/dist/ionic/p-88290bd9.system.entry.js +4 -0
- package/dist/ionic/p-8956f9a8.system.entry.js +4 -0
- package/dist/ionic/p-8b0f0a87.entry.js +4 -0
- package/dist/ionic/p-8db246c2.system.js +4 -0
- package/dist/ionic/p-8dbfae64.entry.js +4 -0
- package/dist/ionic/p-903c544a.js +4 -0
- package/dist/ionic/p-916bc9ed.system.entry.js +4 -0
- package/dist/ionic/p-92646426.js +4 -0
- package/dist/ionic/{p-27281edd.js → p-93e47936.js} +1 -1
- package/dist/ionic/{p-a93873de.system.js → p-94816e7a.system.js} +1 -1
- package/dist/ionic/p-986855d6.js +4 -0
- package/dist/ionic/p-9abb7d9b.entry.js +4 -0
- package/dist/ionic/p-9ac1a506.system.js +4 -0
- package/dist/ionic/p-a1cdc742.js +4 -0
- package/dist/ionic/p-a2814291.system.js +4 -0
- package/dist/ionic/p-a42eccfb.entry.js +4 -0
- package/dist/ionic/{p-d743e981.js → p-a510e9c0.js} +1 -1
- package/dist/ionic/p-a5a9206f.entry.js +4 -0
- package/dist/ionic/p-a616b6e4.entry.js +4 -0
- package/dist/ionic/p-a9af4103.js +4 -0
- package/dist/ionic/{p-d60342e3.js → p-aaccbb95.js} +1 -1
- package/dist/ionic/{p-73dc4950.entry.js → p-ab21d58c.entry.js} +1 -1
- package/dist/ionic/p-ac1c2b6a.js +4 -0
- package/dist/ionic/p-ae55c4c7.system.entry.js +4 -0
- package/dist/ionic/p-b18c52cd.entry.js +4 -0
- package/dist/ionic/p-b2df786a.system.entry.js +4 -0
- package/dist/ionic/p-b517144d.system.entry.js +4 -0
- package/dist/ionic/p-b5dc9a32.system.entry.js +4 -0
- package/dist/ionic/p-b79f3ded.entry.js +4 -0
- package/dist/ionic/p-bbcec459.system.js +4 -0
- package/dist/ionic/p-be87ec25.entry.js +4 -0
- package/dist/ionic/p-c248c88d.system.js +4 -0
- package/dist/ionic/p-c373eebd.system.js +4 -0
- package/dist/ionic/p-ccce3322.system.entry.js +4 -0
- package/dist/ionic/p-ce2e8a94.system.entry.js +4 -0
- package/dist/ionic/p-ce46d44a.entry.js +4 -0
- package/dist/ionic/p-cea92c46.system.js +4 -0
- package/dist/ionic/p-d7894208.entry.js +4 -0
- package/dist/ionic/p-da96f15f.entry.js +4 -0
- package/dist/ionic/{p-19ea7bff.system.js → p-dbd39afd.system.js} +1 -1
- package/dist/ionic/p-ddbf4ca9.entry.js +4 -0
- package/dist/ionic/p-df09db21.entry.js +4 -0
- package/dist/ionic/p-e3b70846.system.js +4 -0
- package/dist/ionic/p-e9eb25ba.system.entry.js +4 -0
- package/dist/ionic/p-ea0b8c64.system.entry.js +4 -0
- package/dist/ionic/p-ea3ca474.system.js +4 -0
- package/dist/ionic/p-ebe94d15.entry.js +4 -0
- package/dist/ionic/p-eda736d7.entry.js +4 -0
- package/dist/ionic/p-eecb1b04.entry.js +4 -0
- package/dist/ionic/p-eee899d5.system.entry.js +4 -0
- package/dist/ionic/p-f09c06e8.entry.js +4 -0
- package/dist/ionic/p-f116fb3f.system.js +4 -0
- package/dist/ionic/{p-372ae7f4.system.js → p-f193945e.system.js} +1 -1
- package/dist/ionic/p-f1e11e93.entry.js +4 -0
- package/dist/ionic/p-f28ac1ad.entry.js +4 -0
- package/dist/ionic/p-f44934a7.system.entry.js +4 -0
- package/dist/ionic/p-f44c9c6e.system.entry.js +4 -0
- package/dist/ionic/p-f61375b7.system.entry.js +4 -0
- package/dist/ionic/p-f8123284.entry.js +4 -0
- package/dist/ionic/p-f83d18c1.entry.js +4 -0
- package/dist/ionic/{p-5da94421.system.js → p-f8c63ac0.system.js} +2 -2
- package/dist/ionic/p-fc8359aa.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 +4 -2
- package/dist/types/components/avatar/avatar.d.ts +28 -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 +23 -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 +19 -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 +3 -3
- package/dist/types/components/datetime-button/datetime-button.d.ts +2 -1
- 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 +11 -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 +2 -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 +30 -8
- 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 +20 -5
- 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 +2 -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 +16 -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 +12 -2
- package/dist/types/components/toggle/toggle.d.ts +15 -1
- package/dist/types/components/toolbar/toolbar.d.ts +4 -3
- package/dist/types/components.d.ts +1363 -179
- 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 +1 -0
- 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 +2273 -856
- package/hydrate/index.mjs +2273 -856
- 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-9e8a2c4f.js +0 -122
- package/dist/cjs/index-5915f9b3.js +0 -38
- package/dist/cjs/index-c8d52405.js +0 -10
- package/dist/cjs/ionic-global-d9a8bb5b.js +0 -237
- package/dist/esm/hardware-back-button-06ef3c3e.js +0 -116
- package/dist/esm/index-79b30591.js +0 -167
- package/dist/esm/index-9b0d46f4.js +0 -34
- package/dist/esm/index-a5d50daf.js +0 -7
- package/dist/esm/ionic-global-c81d82ab.js +0 -231
- package/dist/esm-es5/animation-eab5a4ca.js +0 -4
- package/dist/esm-es5/app-globals-5dbb61a5.js +0 -4
- package/dist/esm-es5/capacitor-59395cbd.js +0 -4
- package/dist/esm-es5/data-ae11fd43.js +0 -4
- package/dist/esm-es5/focus-visible-dd40d69f.js +0 -4
- package/dist/esm-es5/framework-delegate-63d1a679.js +0 -4
- package/dist/esm-es5/hardware-back-button-06ef3c3e.js +0 -4
- package/dist/esm-es5/helpers-da915de8.js +0 -4
- package/dist/esm-es5/index-24b48b06.js +0 -4
- package/dist/esm-es5/index-3ad7f18b.js +0 -4
- package/dist/esm-es5/index-5cc724f3.js +0 -4
- package/dist/esm-es5/index-9b0d46f4.js +0 -4
- package/dist/esm-es5/index-a5d50daf.js +0 -4
- package/dist/esm-es5/input-shims-0314bbe5.js +0 -4
- package/dist/esm-es5/input.utils-09c71bc7.js +0 -4
- package/dist/esm-es5/ionic-global-c81d82ab.js +0 -4
- package/dist/esm-es5/ios.transition-4ee1a3af.js +0 -4
- package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +0 -4
- package/dist/esm-es5/md.transition-5106a0d2.js +0 -4
- package/dist/esm-es5/notch-controller-55b09e11.js +0 -4
- package/dist/esm-es5/overlays-ae10d43d.js +0 -4
- package/dist/esm-es5/status-tap-f472b09f.js +0 -4
- package/dist/esm-es5/swipe-back-e5394307.js +0 -4
- package/dist/ionic/p-01186920.system.entry.js +0 -4
- package/dist/ionic/p-0161caf9.system.entry.js +0 -4
- package/dist/ionic/p-0303d0f8.js +0 -4
- package/dist/ionic/p-0437ace4.system.entry.js +0 -4
- package/dist/ionic/p-04fc24ee.system.js +0 -4
- package/dist/ionic/p-0574e87e.js +0 -4
- package/dist/ionic/p-06e58c4e.js +0 -4
- package/dist/ionic/p-06fee233.js +0 -4
- package/dist/ionic/p-081a4ce4.entry.js +0 -4
- package/dist/ionic/p-09cf2394.entry.js +0 -4
- package/dist/ionic/p-0c06e09b.system.js +0 -4
- package/dist/ionic/p-14be4015.entry.js +0 -4
- package/dist/ionic/p-15e76dd1.entry.js +0 -4
- package/dist/ionic/p-16188af7.entry.js +0 -4
- package/dist/ionic/p-16799667.system.entry.js +0 -4
- package/dist/ionic/p-16bfb979.system.entry.js +0 -4
- package/dist/ionic/p-17474161.system.js +0 -4
- package/dist/ionic/p-19ec4f42.entry.js +0 -4
- package/dist/ionic/p-1b7605a7.system.entry.js +0 -4
- package/dist/ionic/p-1c1b8e1f.entry.js +0 -4
- package/dist/ionic/p-1dfc11b3.system.js +0 -4
- package/dist/ionic/p-1e010627.system.entry.js +0 -4
- package/dist/ionic/p-1e41f2aa.system.entry.js +0 -4
- package/dist/ionic/p-1e4371bd.js +0 -4
- package/dist/ionic/p-1e67b266.system.entry.js +0 -4
- package/dist/ionic/p-1ebd1e27.system.entry.js +0 -4
- package/dist/ionic/p-2172893e.system.entry.js +0 -4
- package/dist/ionic/p-21e5e7e4.js +0 -4
- package/dist/ionic/p-2507278c.system.entry.js +0 -4
- package/dist/ionic/p-2690b1de.js +0 -4
- package/dist/ionic/p-2799c6d3.system.entry.js +0 -4
- package/dist/ionic/p-2abae1cc.system.entry.js +0 -4
- package/dist/ionic/p-2b7827c7.js +0 -4
- package/dist/ionic/p-2b838f86.system.entry.js +0 -4
- package/dist/ionic/p-2e46590d.system.entry.js +0 -4
- package/dist/ionic/p-2fc0dafe.entry.js +0 -4
- package/dist/ionic/p-322c5fb4.system.js +0 -4
- package/dist/ionic/p-33a8a71b.entry.js +0 -4
- package/dist/ionic/p-37cb43bd.system.entry.js +0 -4
- package/dist/ionic/p-3ad285e3.system.js +0 -4
- package/dist/ionic/p-3cc276f4.js +0 -4
- package/dist/ionic/p-4439fc2a.entry.js +0 -4
- package/dist/ionic/p-45693d7e.entry.js +0 -4
- package/dist/ionic/p-49a0e74c.entry.js +0 -4
- package/dist/ionic/p-4a274c89.entry.js +0 -4
- package/dist/ionic/p-4c2d5b80.system.js +0 -4
- package/dist/ionic/p-4ec778aa.entry.js +0 -4
- package/dist/ionic/p-52d7a191.entry.js +0 -4
- package/dist/ionic/p-5393e8bb.system.entry.js +0 -4
- package/dist/ionic/p-567de071.system.entry.js +0 -4
- package/dist/ionic/p-5823babc.system.entry.js +0 -4
- package/dist/ionic/p-5972efea.system.entry.js +0 -4
- package/dist/ionic/p-5ab1b709.entry.js +0 -4
- package/dist/ionic/p-5b5c1505.system.entry.js +0 -4
- package/dist/ionic/p-5b932840.entry.js +0 -4
- package/dist/ionic/p-5bd39e5e.system.entry.js +0 -4
- package/dist/ionic/p-5c831f49.js +0 -4
- package/dist/ionic/p-5fce0c0b.system.entry.js +0 -4
- package/dist/ionic/p-62af944c.entry.js +0 -4
- package/dist/ionic/p-63b0abde.system.entry.js +0 -4
- package/dist/ionic/p-66640ff7.system.entry.js +0 -4
- package/dist/ionic/p-6734db42.system.entry.js +0 -4
- package/dist/ionic/p-69066a53.js +0 -4
- package/dist/ionic/p-69666e8a.system.entry.js +0 -4
- package/dist/ionic/p-6d32975a.entry.js +0 -4
- package/dist/ionic/p-72812e99.js +0 -4
- package/dist/ionic/p-72bc8a1c.js +0 -4
- package/dist/ionic/p-7458862e.system.entry.js +0 -4
- package/dist/ionic/p-792919fd.system.js +0 -4
- package/dist/ionic/p-797eeea8.system.entry.js +0 -4
- package/dist/ionic/p-7b30edcc.js +0 -4
- package/dist/ionic/p-7b9a2b23.entry.js +0 -4
- package/dist/ionic/p-7ed1657c.system.entry.js +0 -4
- package/dist/ionic/p-857ca696.system.entry.js +0 -4
- package/dist/ionic/p-8635f5e6.system.js +0 -4
- package/dist/ionic/p-88e63c7d.js +0 -4
- package/dist/ionic/p-8f05ba3b.system.js +0 -4
- package/dist/ionic/p-908d6080.entry.js +0 -4
- package/dist/ionic/p-937a7e21.entry.js +0 -4
- package/dist/ionic/p-95775830.entry.js +0 -4
- package/dist/ionic/p-96cc4814.js +0 -4
- package/dist/ionic/p-98231c01.system.entry.js +0 -4
- package/dist/ionic/p-985a7e17.system.entry.js +0 -4
- package/dist/ionic/p-98ff6b32.entry.js +0 -4
- package/dist/ionic/p-9910f786.entry.js +0 -4
- package/dist/ionic/p-9df2c6fb.entry.js +0 -4
- package/dist/ionic/p-9ee1e8a6.entry.js +0 -4
- package/dist/ionic/p-9f3008d4.system.js +0 -4
- package/dist/ionic/p-9fa07aec.entry.js +0 -4
- package/dist/ionic/p-a1051806.entry.js +0 -4
- package/dist/ionic/p-a15ddedb.system.js +0 -4
- package/dist/ionic/p-a1b9a163.entry.js +0 -4
- package/dist/ionic/p-a34b4d94.entry.js +0 -4
- package/dist/ionic/p-a4565eb5.system.js +0 -4
- package/dist/ionic/p-a49378bb.system.entry.js +0 -4
- package/dist/ionic/p-a61cba41.entry.js +0 -4
- package/dist/ionic/p-a69b9fc5.system.js +0 -4
- package/dist/ionic/p-abe101da.system.js +0 -4
- package/dist/ionic/p-adbc4bdf.entry.js +0 -4
- package/dist/ionic/p-afecb188.entry.js +0 -4
- package/dist/ionic/p-b335ffed.system.entry.js +0 -4
- package/dist/ionic/p-b51e4004.js +0 -4
- package/dist/ionic/p-b82d4cab.js +0 -4
- package/dist/ionic/p-b9d7015f.entry.js +0 -4
- package/dist/ionic/p-bb0db172.entry.js +0 -4
- package/dist/ionic/p-bc36ad98.system.entry.js +0 -4
- package/dist/ionic/p-bdad26e3.entry.js +0 -4
- package/dist/ionic/p-c29f8157.system.entry.js +0 -4
- package/dist/ionic/p-c2b74d92.system.entry.js +0 -4
- package/dist/ionic/p-c41ac815.entry.js +0 -4
- package/dist/ionic/p-c468af8a.system.js +0 -4
- package/dist/ionic/p-c61cc894.js +0 -4
- package/dist/ionic/p-c9f3a539.entry.js +0 -4
- package/dist/ionic/p-ca065903.system.entry.js +0 -4
- package/dist/ionic/p-cac0e0b3.system.entry.js +0 -4
- package/dist/ionic/p-d18ab582.system.entry.js +0 -4
- package/dist/ionic/p-d47265c8.js +0 -4
- package/dist/ionic/p-d6841eac.js +0 -4
- package/dist/ionic/p-d7aa6b00.entry.js +0 -4
- package/dist/ionic/p-d7e982e7.system.entry.js +0 -4
- package/dist/ionic/p-da074ff7.entry.js +0 -4
- package/dist/ionic/p-db0c8e7d.entry.js +0 -4
- package/dist/ionic/p-de930745.entry.js +0 -4
- package/dist/ionic/p-dfb78785.system.js +0 -4
- package/dist/ionic/p-e2252ad6.entry.js +0 -4
- package/dist/ionic/p-e4ee80be.system.entry.js +0 -4
- package/dist/ionic/p-e563a35c.entry.js +0 -4
- package/dist/ionic/p-e7ed4a7f.system.js +0 -4
- package/dist/ionic/p-e9a173ed.entry.js +0 -4
- package/dist/ionic/p-eba29931.entry.js +0 -4
- package/dist/ionic/p-ebf042e0.system.entry.js +0 -4
- package/dist/ionic/p-ecceeb90.js +0 -4
- package/dist/ionic/p-ed75fcfb.system.entry.js +0 -4
- package/dist/ionic/p-ee7ba749.entry.js +0 -4
- package/dist/ionic/p-efaffe74.entry.js +0 -4
- package/dist/ionic/p-f10b70a1.entry.js +0 -4
- package/dist/ionic/p-f1acf541.system.entry.js +0 -4
- package/dist/ionic/p-f3102647.system.entry.js +0 -4
- package/dist/ionic/p-fca6ef5f.system.entry.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
- /package/dist/collection/components/{input-password-toggle/input-password-toggle.css → refresher-content/refresher-content.css} +0 -0
|
@@ -5,19 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index$
|
|
9
|
-
const config = require('./config-4f60b98a.js');
|
|
10
|
-
const helpers = require('./helpers-
|
|
8
|
+
const index$1 = require('./index-73f75efb.js');
|
|
9
|
+
const config$1 = require('./config-4f60b98a.js');
|
|
10
|
+
const helpers = require('./helpers-4e2936d2.js');
|
|
11
11
|
const lockController = require('./lock-controller-6585a42a.js');
|
|
12
|
-
const
|
|
13
|
-
const overlays = require('./overlays-
|
|
12
|
+
const ionicGlobal = require('./ionic-global-14af9c21.js');
|
|
13
|
+
const overlays = require('./overlays-a698a408.js');
|
|
14
14
|
const theme = require('./theme-d1c573d2.js');
|
|
15
|
-
const
|
|
16
|
-
const animation = require('./animation-
|
|
17
|
-
const index = require('./index-
|
|
18
|
-
|
|
19
|
-
require('./hardware-back-button-9e8a2c4f.js');
|
|
20
|
-
require('./framework-delegate-55f5683a.js');
|
|
15
|
+
const config = require('./config-aff4ff52.js');
|
|
16
|
+
const animation = require('./animation-58015a44.js');
|
|
17
|
+
const index = require('./index-ee07ed59.js');
|
|
18
|
+
require('./framework-delegate-32f1a0e4.js');
|
|
21
19
|
require('./gesture-controller-9436f482.js');
|
|
22
20
|
|
|
23
21
|
/**
|
|
@@ -34,7 +32,7 @@ require('./gesture-controller-9436f482.js');
|
|
|
34
32
|
* @param position The value of the toast's position prop.
|
|
35
33
|
* @param positionAnchor The element the toast should be anchored to,
|
|
36
34
|
* if applicable.
|
|
37
|
-
* @param mode The toast component's
|
|
35
|
+
* @param mode The toast component's platform (md or ios).
|
|
38
36
|
* @param toast A reference to the toast element itself.
|
|
39
37
|
*/
|
|
40
38
|
function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
@@ -55,7 +53,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
55
53
|
* bottom anchor edge is targeted. For position="bottom", the top
|
|
56
54
|
* anchor edge is targeted.
|
|
57
55
|
*/
|
|
58
|
-
if (positionAnchor &&
|
|
56
|
+
if (positionAnchor && ionicGlobal.win) {
|
|
59
57
|
warnIfAnchorIsHidden(positionAnchor, toast);
|
|
60
58
|
const box = positionAnchor.getBoundingClientRect();
|
|
61
59
|
if (position === 'top') {
|
|
@@ -67,7 +65,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
67
65
|
* to the top edge of the anchor. We want to calculate from the
|
|
68
66
|
* bottom edge of the screen instead.
|
|
69
67
|
*/
|
|
70
|
-
offset -=
|
|
68
|
+
offset -= ionicGlobal.win.innerHeight - box.top;
|
|
71
69
|
}
|
|
72
70
|
/**
|
|
73
71
|
* We don't include safe area here because that should already be
|
|
@@ -92,7 +90,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
92
90
|
*/
|
|
93
91
|
function warnIfAnchorIsHidden(positionAnchor, toast) {
|
|
94
92
|
if (positionAnchor.offsetParent === null) {
|
|
95
|
-
|
|
93
|
+
ionicGlobal.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);
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
/**
|
|
@@ -438,7 +436,7 @@ const createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {
|
|
|
438
436
|
}, { oneTimeCallback: true })
|
|
439
437
|
.progressEnd(playTo, step, duration);
|
|
440
438
|
};
|
|
441
|
-
const gesture = index
|
|
439
|
+
const gesture = index.createGesture({
|
|
442
440
|
el: wrapperEl,
|
|
443
441
|
gestureName: 'toast-swipe-to-dismiss',
|
|
444
442
|
gesturePriority: overlays.OVERLAY_GESTURE_PRIORITY,
|
|
@@ -454,27 +452,30 @@ const createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {
|
|
|
454
452
|
return gesture;
|
|
455
453
|
};
|
|
456
454
|
|
|
457
|
-
const
|
|
455
|
+
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)}.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;pointer-events:auto;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-icon{-webkit-margin-start:16px;margin-inline-start:16px}.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-icon,.toast-button-icon{font-size:1.4em}.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{--background:var(--ion-primitives-neutral-1200, #242424);--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));--button-color:var(--ion-primitives-base-white, #ffffff);--color:var(--ion-primitives-base-white, #ffffff);--max-width:343px;--start:8px;--end: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;opacity:0.01;z-index:10}.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)}";
|
|
456
|
+
const IonToastIonicStyle0 = toastIonicCss;
|
|
457
|
+
|
|
458
|
+
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)}.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;pointer-events:auto;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-icon{-webkit-margin-start:16px;margin-inline-start:16px}.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-icon,.toast-button-icon{font-size:1.4em}.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}: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}}";
|
|
458
459
|
const IonToastIosStyle0 = toastIosCss;
|
|
459
460
|
|
|
460
|
-
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);
|
|
461
|
+
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)}.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;pointer-events:auto;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-icon{-webkit-margin-start:16px;margin-inline-start:16px}.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-icon,.toast-button-icon{font-size:1.4em}.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}: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)}}";
|
|
461
462
|
const IonToastMdStyle0 = toastMdCss;
|
|
462
463
|
|
|
463
464
|
const Toast = class {
|
|
464
465
|
constructor(hostRef) {
|
|
465
|
-
index$
|
|
466
|
-
this.didPresent = index$
|
|
467
|
-
this.willPresent = index$
|
|
468
|
-
this.willDismiss = index$
|
|
469
|
-
this.didDismiss = index$
|
|
470
|
-
this.didPresentShorthand = index$
|
|
471
|
-
this.willPresentShorthand = index$
|
|
472
|
-
this.willDismissShorthand = index$
|
|
473
|
-
this.didDismissShorthand = index$
|
|
466
|
+
index$1.registerInstance(this, hostRef);
|
|
467
|
+
this.didPresent = index$1.createEvent(this, "ionToastDidPresent", 7);
|
|
468
|
+
this.willPresent = index$1.createEvent(this, "ionToastWillPresent", 7);
|
|
469
|
+
this.willDismiss = index$1.createEvent(this, "ionToastWillDismiss", 7);
|
|
470
|
+
this.didDismiss = index$1.createEvent(this, "ionToastDidDismiss", 7);
|
|
471
|
+
this.didPresentShorthand = index$1.createEvent(this, "didPresent", 7);
|
|
472
|
+
this.willPresentShorthand = index$1.createEvent(this, "willPresent", 7);
|
|
473
|
+
this.willDismissShorthand = index$1.createEvent(this, "willDismiss", 7);
|
|
474
|
+
this.didDismissShorthand = index$1.createEvent(this, "didDismiss", 7);
|
|
474
475
|
this.delegateController = overlays.createDelegateController(this);
|
|
475
476
|
this.lockController = lockController.createLockController();
|
|
476
477
|
this.triggerController = overlays.createTriggerController();
|
|
477
|
-
this.customHTMLEnabled =
|
|
478
|
+
this.customHTMLEnabled = config.config.get('innerHTMLTemplatesEnabled', config$1.ENABLE_HTML_CONTENT_DEFAULT);
|
|
478
479
|
this.presented = false;
|
|
479
480
|
this.dispatchCancelHandler = (ev) => {
|
|
480
481
|
const role = ev.detail.role;
|
|
@@ -526,13 +527,14 @@ const Toast = class {
|
|
|
526
527
|
this.enterAnimation = undefined;
|
|
527
528
|
this.leaveAnimation = undefined;
|
|
528
529
|
this.cssClass = undefined;
|
|
529
|
-
this.duration =
|
|
530
|
+
this.duration = config.config.getNumber('toastDuration', 0);
|
|
530
531
|
this.header = undefined;
|
|
531
532
|
this.layout = 'baseline';
|
|
532
533
|
this.message = undefined;
|
|
533
534
|
this.keyboardClose = false;
|
|
534
535
|
this.position = 'bottom';
|
|
535
536
|
this.positionAnchor = undefined;
|
|
537
|
+
this.shape = undefined;
|
|
536
538
|
this.buttons = undefined;
|
|
537
539
|
this.translucent = false;
|
|
538
540
|
this.animated = true;
|
|
@@ -619,11 +621,12 @@ const Toast = class {
|
|
|
619
621
|
* Present the toast overlay after it has been created.
|
|
620
622
|
*/
|
|
621
623
|
async present() {
|
|
624
|
+
const mode = ionicGlobal.getIonMode(this);
|
|
622
625
|
const unlock = await this.lockController.lock();
|
|
623
626
|
await this.delegateController.attachViewToDom();
|
|
624
627
|
const { el, position } = this;
|
|
625
628
|
const anchor = this.getAnchorElement();
|
|
626
|
-
const animationPosition = getAnimationPosition(position, anchor,
|
|
629
|
+
const animationPosition = getAnimationPosition(position, anchor, mode, el);
|
|
627
630
|
/**
|
|
628
631
|
* Cache the calculated position of the toast, so we can re-use it
|
|
629
632
|
* in the dismiss animation.
|
|
@@ -717,6 +720,17 @@ const Toast = class {
|
|
|
717
720
|
: [];
|
|
718
721
|
return buttons;
|
|
719
722
|
}
|
|
723
|
+
getShape() {
|
|
724
|
+
const { shape } = this;
|
|
725
|
+
// TODO(ROU-11300): Remove theme check when shapes are defined for all themes.
|
|
726
|
+
if (ionicGlobal.getIonTheme(this) !== 'ionic') {
|
|
727
|
+
return undefined;
|
|
728
|
+
}
|
|
729
|
+
if (shape === undefined) {
|
|
730
|
+
return 'round';
|
|
731
|
+
}
|
|
732
|
+
return shape;
|
|
733
|
+
}
|
|
720
734
|
/**
|
|
721
735
|
* Returns the element specified by the positionAnchor prop,
|
|
722
736
|
* or undefined if prop's value is an ID string and the element
|
|
@@ -732,7 +746,7 @@ const Toast = class {
|
|
|
732
746
|
return;
|
|
733
747
|
}
|
|
734
748
|
if (position === 'middle' && positionAnchor !== undefined) {
|
|
735
|
-
|
|
749
|
+
ionicGlobal.printIonWarning('The positionAnchor property is ignored when using position="middle".', this.el);
|
|
736
750
|
return undefined;
|
|
737
751
|
}
|
|
738
752
|
if (typeof positionAnchor === 'string') {
|
|
@@ -744,7 +758,7 @@ const Toast = class {
|
|
|
744
758
|
*/
|
|
745
759
|
const foundEl = document.getElementById(positionAnchor);
|
|
746
760
|
if (foundEl === null) {
|
|
747
|
-
|
|
761
|
+
ionicGlobal.printIonWarning(`An anchor element with an ID of "${positionAnchor}" was not found in the DOM.`, el);
|
|
748
762
|
return undefined;
|
|
749
763
|
}
|
|
750
764
|
return foundEl;
|
|
@@ -752,7 +766,7 @@ const Toast = class {
|
|
|
752
766
|
if (positionAnchor instanceof HTMLElement) {
|
|
753
767
|
return positionAnchor;
|
|
754
768
|
}
|
|
755
|
-
|
|
769
|
+
ionicGlobal.printIonWarning('Invalid positionAnchor value:', positionAnchor, el);
|
|
756
770
|
return undefined;
|
|
757
771
|
}
|
|
758
772
|
async buttonClick(button) {
|
|
@@ -787,12 +801,12 @@ const Toast = class {
|
|
|
787
801
|
if (buttons.length === 0) {
|
|
788
802
|
return;
|
|
789
803
|
}
|
|
790
|
-
const
|
|
804
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
791
805
|
const buttonGroupsClasses = {
|
|
792
806
|
'toast-button-group': true,
|
|
793
807
|
[`toast-button-group-${side}`]: true,
|
|
794
808
|
};
|
|
795
|
-
return (index$
|
|
809
|
+
return (index$1.h("div", { class: buttonGroupsClasses }, buttons.map((b) => (index$1.h("button", Object.assign({}, b.htmlAttributes, { type: "button", class: buttonClass(b), tabIndex: 0, onClick: () => this.buttonClick(b), part: buttonPart(b) }), index$1.h("div", { class: "toast-button-inner" }, b.icon && (index$1.h("ion-icon", { "aria-hidden": "true", icon: b.icon, slot: b.text === undefined ? 'icon-only' : undefined, class: "toast-button-icon" })), b.text), theme === 'md' && (index$1.h("ion-ripple-effect", { type: b.icon !== undefined && b.text === undefined ? 'unbounded' : 'bounded' })))))));
|
|
796
810
|
}
|
|
797
811
|
/**
|
|
798
812
|
* Render the `message` property.
|
|
@@ -802,9 +816,9 @@ const Toast = class {
|
|
|
802
816
|
renderToastMessage(key, ariaHidden = null) {
|
|
803
817
|
const { customHTMLEnabled, message } = this;
|
|
804
818
|
if (customHTMLEnabled) {
|
|
805
|
-
return (index$
|
|
819
|
+
return (index$1.h("div", { key: key, "aria-hidden": ariaHidden, class: "toast-message", part: "message", innerHTML: config$1.sanitizeDOMString(message) }));
|
|
806
820
|
}
|
|
807
|
-
return (index$
|
|
821
|
+
return (index$1.h("div", { key: key, "aria-hidden": ariaHidden, class: "toast-message", part: "message" }, message));
|
|
808
822
|
}
|
|
809
823
|
/**
|
|
810
824
|
* Render the `header` property.
|
|
@@ -812,14 +826,15 @@ const Toast = class {
|
|
|
812
826
|
* @param ariaHidden - If "true" then content will be hidden from screen readers.
|
|
813
827
|
*/
|
|
814
828
|
renderHeader(key, ariaHidden = null) {
|
|
815
|
-
return (index$
|
|
829
|
+
return (index$1.h("div", { key: key, class: "toast-header", "aria-hidden": ariaHidden, part: "header" }, this.header));
|
|
816
830
|
}
|
|
817
831
|
render() {
|
|
818
832
|
const { layout, el, revealContentToScreenReader, header, message } = this;
|
|
819
833
|
const allButtons = this.getButtons();
|
|
820
834
|
const startButtons = allButtons.filter((b) => b.side === 'start');
|
|
821
835
|
const endButtons = allButtons.filter((b) => b.side !== 'start');
|
|
822
|
-
const
|
|
836
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
837
|
+
const shape = this.getShape();
|
|
823
838
|
const wrapperClass = {
|
|
824
839
|
'toast-wrapper': true,
|
|
825
840
|
[`toast-${this.position}`]: true,
|
|
@@ -830,13 +845,13 @@ const Toast = class {
|
|
|
830
845
|
* used with one type of button.
|
|
831
846
|
*/
|
|
832
847
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
833
|
-
|
|
848
|
+
ionicGlobal.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);
|
|
834
849
|
}
|
|
835
|
-
return (index$
|
|
850
|
+
return (index$1.h(index$1.Host, Object.assign({ key: '9343bba6f886357be407cf03d2f14ac231146d84', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
836
851
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
837
|
-
}, class: theme.createColorClasses(this.color, Object.assign(Object.assign({ [
|
|
852
|
+
}, class: theme.createColorClasses(this.color, Object.assign(Object.assign({ [theme$1]: true }, theme.getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), index$1.h("div", { key: '522e155ad8ff913ba9ca6f89ac585b291be96e69', class: wrapperClass }, index$1.h("div", { key: 'd258e09ae29c709a52970e3b88bfae5ede9c4179', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (index$1.h("ion-icon", { key: '1c63c33876055887071ffb0767aae85369202b25', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), index$1.h("div", { key: '48bc44016364ab01782576f7352e56e396308d5d', 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')))));
|
|
838
853
|
}
|
|
839
|
-
get el() { return index$
|
|
854
|
+
get el() { return index$1.getElement(this); }
|
|
840
855
|
static get watchers() { return {
|
|
841
856
|
"swipeGesture": ["swipeGestureChanged"],
|
|
842
857
|
"isOpen": ["onIsOpenChange"],
|
|
@@ -856,6 +871,7 @@ const buttonPart = (button) => {
|
|
|
856
871
|
return overlays.isCancel(button.role) ? 'button cancel' : 'button';
|
|
857
872
|
};
|
|
858
873
|
Toast.style = {
|
|
874
|
+
ionic: IonToastIonicStyle0,
|
|
859
875
|
ios: IonToastIosStyle0,
|
|
860
876
|
md: IonToastMdStyle0
|
|
861
877
|
};
|
|
@@ -6,19 +6,26 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index = require('./index-73f75efb.js');
|
|
9
|
-
const helpers = require('./helpers-
|
|
10
|
-
const haptic = require('./haptic-
|
|
9
|
+
const helpers = require('./helpers-4e2936d2.js');
|
|
10
|
+
const haptic = require('./haptic-7c25be74.js');
|
|
11
11
|
const dir = require('./dir-94c21456.js');
|
|
12
12
|
const theme = require('./theme-d1c573d2.js');
|
|
13
13
|
const index$1 = require('./index-073c7cdc.js');
|
|
14
|
-
const
|
|
15
|
-
require('./
|
|
16
|
-
require('./
|
|
14
|
+
const config = require('./config-aff4ff52.js');
|
|
15
|
+
const ionicGlobal = require('./ionic-global-14af9c21.js');
|
|
16
|
+
require('./capacitor-454dd071.js');
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const checkSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0yMjkuNjYsNzcuNjZsLTEyOCwxMjhhOCw4LDAsMCwxLTExLjMyLDBsLTU2LTU2YTgsOCwwLDAsMSwxMS4zMi0xMS4zMkw5NiwxODguNjksMjE4LjM0LDY2LjM0YTgsOCwwLDAsMSwxMS4zMiwxMS4zMloiLz48L3N2Zz4=';
|
|
19
|
+
|
|
20
|
+
const minusSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0yMjQsMTI4YTgsOCwwLDAsMS04LDhINDBhOCw4LDAsMCwxLDAtMTZIMjE2QTgsOCwwLDAsMSwyMjQsMTI4WiIvPjwvc3ZnPg==';
|
|
21
|
+
|
|
22
|
+
const toggleIonicCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;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(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-appearance:none;-moz-appearance: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}: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}: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}.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, #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)}: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}";
|
|
23
|
+
const IonToggleIonicStyle0 = toggleIonicCss;
|
|
24
|
+
|
|
25
|
+
const toggleIosCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;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(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-appearance:none;-moz-appearance: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}: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}: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}.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(.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}.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}: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}";
|
|
19
26
|
const IonToggleIosStyle0 = toggleIosCss;
|
|
20
27
|
|
|
21
|
-
const toggleMdCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none
|
|
28
|
+
const toggleMdCss = ":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;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(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-appearance:none;-moz-appearance: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}: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}: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}.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(.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}.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}: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}";
|
|
22
29
|
const IonToggleMdStyle0 = toggleMdCss;
|
|
23
30
|
|
|
24
31
|
const Toggle = class {
|
|
@@ -62,11 +69,8 @@ const Toggle = class {
|
|
|
62
69
|
this.onBlur = () => {
|
|
63
70
|
this.ionBlur.emit();
|
|
64
71
|
};
|
|
65
|
-
this.getSwitchLabelIcon = (
|
|
66
|
-
|
|
67
|
-
return checked ? index$1.checkmarkOutline : index$1.removeOutline;
|
|
68
|
-
}
|
|
69
|
-
return checked ? index$1.removeOutline : index$1.ellipseOutline;
|
|
72
|
+
this.getSwitchLabelIcon = (checked) => {
|
|
73
|
+
return checked ? this.toggleCheckedIcon : this.toggleUncheckedIcon;
|
|
70
74
|
};
|
|
71
75
|
this.activated = false;
|
|
72
76
|
this.color = undefined;
|
|
@@ -74,7 +78,7 @@ const Toggle = class {
|
|
|
74
78
|
this.checked = false;
|
|
75
79
|
this.disabled = false;
|
|
76
80
|
this.value = 'on';
|
|
77
|
-
this.enableOnOffLabels =
|
|
81
|
+
this.enableOnOffLabels = config.config.get('toggleOnOffLabels');
|
|
78
82
|
this.labelPlacement = 'start';
|
|
79
83
|
this.justify = undefined;
|
|
80
84
|
this.alignment = undefined;
|
|
@@ -142,30 +146,81 @@ const Toggle = class {
|
|
|
142
146
|
this.focusEl.focus();
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
get toggleDefaultCheckedIcon() {
|
|
150
|
+
// Determine the theme and map to default icons
|
|
151
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
152
|
+
const defaultIcons = {
|
|
153
|
+
ios: index$1.removeOutline,
|
|
154
|
+
ionic: checkSvg,
|
|
155
|
+
md: index$1.checkmarkOutline,
|
|
156
|
+
};
|
|
157
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
158
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
159
|
+
// Return the default icon
|
|
160
|
+
return defaultIcon;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Get the icon to use for the checked icon.
|
|
164
|
+
* Otherwise, use the icon set in the config.
|
|
165
|
+
* If no icon is set in the config, use the default icon.
|
|
166
|
+
*/
|
|
167
|
+
get toggleCheckedIcon() {
|
|
168
|
+
return config.config.get('toggleCheckedIcon', this.toggleDefaultCheckedIcon);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get the icon to use for the unchecked icon.
|
|
172
|
+
* Otherwise, use the icon set in the config.
|
|
173
|
+
* If no icon is set in the config, use the default icon.
|
|
174
|
+
*/
|
|
175
|
+
get toggleUncheckedIcon() {
|
|
176
|
+
// Determine the theme and map to default icons
|
|
177
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
178
|
+
const defaultIcons = {
|
|
179
|
+
ios: index$1.ellipseOutline,
|
|
180
|
+
ionic: minusSvg,
|
|
181
|
+
md: index$1.removeOutline,
|
|
182
|
+
};
|
|
183
|
+
// Get the default icon based on the theme, falling back to 'md' icon if necessary
|
|
184
|
+
const defaultIcon = defaultIcons[theme] || defaultIcons.md;
|
|
185
|
+
// Return the configured toggle unchecked icon or the default icon
|
|
186
|
+
return config.config.get('toggleUncheckedIcon', defaultIcon);
|
|
187
|
+
}
|
|
188
|
+
renderOnOffSwitchLabels(checked) {
|
|
189
|
+
const icon = this.getSwitchLabelIcon(checked);
|
|
147
190
|
return (index.h("ion-icon", { class: {
|
|
148
191
|
'toggle-switch-icon': true,
|
|
149
192
|
'toggle-switch-icon-checked': checked,
|
|
193
|
+
/**
|
|
194
|
+
* The default checked icon is being modified with
|
|
195
|
+
* styling that causes it to rotate by 90 degrees
|
|
196
|
+
* when the theme is `ios`.
|
|
197
|
+
*
|
|
198
|
+
* To prevent any rotation on a custom icon that is
|
|
199
|
+
* set through the config, we need to apply a class
|
|
200
|
+
* that handles the styling only when the default
|
|
201
|
+
* checked icon is being used.
|
|
202
|
+
*/
|
|
203
|
+
'toggle-switch-icon-checked-default': checked && icon === this.toggleDefaultCheckedIcon,
|
|
150
204
|
}, icon: icon, "aria-hidden": "true" }));
|
|
151
205
|
}
|
|
152
206
|
renderToggleControl() {
|
|
153
|
-
const
|
|
207
|
+
const theme = ionicGlobal.getIonTheme(this);
|
|
154
208
|
const { enableOnOffLabels, checked } = this;
|
|
155
209
|
return (index.h("div", { class: "toggle-icon", part: "track", ref: (el) => (this.toggleTrack = el) }, enableOnOffLabels &&
|
|
156
|
-
|
|
210
|
+
theme === 'ios' && [this.renderOnOffSwitchLabels(true), this.renderOnOffSwitchLabels(false)], index.h("div", { class: "toggle-icon-wrapper" }, index.h("div", { class: "toggle-inner", part: "handle" }, enableOnOffLabels && (theme === 'md' || theme === 'ionic') && this.renderOnOffSwitchLabels(checked)))));
|
|
157
211
|
}
|
|
158
212
|
get hasLabel() {
|
|
159
213
|
return this.el.textContent !== '';
|
|
160
214
|
}
|
|
161
215
|
render() {
|
|
162
216
|
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
163
|
-
const
|
|
217
|
+
const theme$1 = ionicGlobal.getIonTheme(this);
|
|
164
218
|
const value = this.getValue();
|
|
165
219
|
const rtl = dir.isRTL(el) ? 'rtl' : 'ltr';
|
|
220
|
+
const isIonicTheme = theme$1 === 'ionic';
|
|
166
221
|
helpers.renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
167
|
-
return (index.h(index.Host, { key: '
|
|
168
|
-
[
|
|
222
|
+
return (index.h(index.Host, { key: 'fb45e051527a0a0914d18659bc1aeab5e9a4c50e', onClick: this.onClick, class: theme.createColorClasses(color, {
|
|
223
|
+
[theme$1]: true,
|
|
169
224
|
'in-item': theme.hostContext('ion-item', el),
|
|
170
225
|
'toggle-activated': activated,
|
|
171
226
|
'toggle-checked': checked,
|
|
@@ -174,10 +229,12 @@ const Toggle = class {
|
|
|
174
229
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
175
230
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
176
231
|
[`toggle-${rtl}`]: true,
|
|
177
|
-
|
|
232
|
+
'ion-activatable': isIonicTheme,
|
|
233
|
+
'ion-focusable': isIonicTheme,
|
|
234
|
+
}) }, index.h("label", { key: 'f353323a0ed20368339ef0fed50d63f3b859f1ac', class: "toggle-wrapper" }, index.h("input", Object.assign({ key: 'dbb471178fe04993330a5f811bb88d3a0fbbcbf4', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), index.h("div", { key: 'b40a037e148ad25490d22c8b55120713e85253c9', class: {
|
|
178
235
|
'label-text-wrapper': true,
|
|
179
236
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
180
|
-
}, part: "label" }, index.h("slot", { key: '
|
|
237
|
+
}, part: "label" }, index.h("slot", { key: '1eb06a2005f862ee50fe6f11e7e750eb9daeba7b' })), index.h("div", { key: 'd2acbaff908b41301b37fbb1f99385a1c571cdf8', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
181
238
|
}
|
|
182
239
|
get el() { return index.getElement(this); }
|
|
183
240
|
static get watchers() { return {
|
|
@@ -194,6 +251,7 @@ const shouldToggle = (rtl, checked, deltaX, margin) => {
|
|
|
194
251
|
};
|
|
195
252
|
let toggleIds = 0;
|
|
196
253
|
Toggle.style = {
|
|
254
|
+
ionic: IonToggleIonicStyle0,
|
|
197
255
|
ios: IonToggleIosStyle0,
|
|
198
256
|
md: IonToggleMdStyle0
|
|
199
257
|
};
|