@ionic/core 8.4.4-dev.11741648084.118e26ac → 8.4.4-dev.11741733932.1686c035
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/alert.js +4 -30
- package/components/checkbox.js +6 -40
- package/components/helpers.js +1 -7
- package/components/index6.js +3 -11
- package/components/index9.js +1 -1
- package/components/ion-input.js +2 -2
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +6 -28
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +3 -3
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +6 -50
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +4 -4
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +6 -41
- package/components/ionic-global.js +1 -2
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/modal.js +35 -267
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +2 -39
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{app-globals-4283fe37.js → app-globals-21afee77.js} +1 -1
- package/dist/cjs/{data-26456291.js → data-21dc0f81.js} +1 -1
- package/dist/cjs/{framework-delegate-c4f2ba04.js → framework-delegate-05579976.js} +1 -1
- package/dist/cjs/{hardware-back-button-f2cbbdce.js → hardware-back-button-9e8a2c4f.js} +1 -1
- package/dist/cjs/{helpers-b14a0f09.js → helpers-4be3f90d.js} +0 -7
- package/dist/cjs/{index-0d2610b6.js → index-1ae3f40a.js} +4 -4
- package/dist/cjs/{index-6ad4725f.js → index-4e14a46e.js} +5 -5
- package/dist/cjs/{index-275c982e.js → index-5915f9b3.js} +3 -11
- package/dist/cjs/{index-786364c7.js → index-ad7a712e.js} +1 -1
- package/dist/cjs/{index-608fc5fd.js → index-c441c903.js} +2 -2
- package/dist/cjs/index.cjs.js +10 -10
- package/dist/cjs/{input-shims-a2cf9d15.js → input-shims-e748a364.js} +3 -5
- package/dist/cjs/{input.utils-18725f61.js → input.utils-74e4ec28.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +6 -6
- package/dist/cjs/ion-alert.cjs.entry.js +10 -36
- package/dist/cjs/ion-app_8.cjs.entry.js +17 -17
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +8 -39
- package/dist/cjs/ion-chip.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +11 -11
- package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +7 -7
- package/dist/cjs/ion-item-option_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-item_8.cjs.entry.js +13 -13
- package/dist/cjs/ion-loading.cjs.entry.js +8 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +13 -13
- package/dist/cjs/ion-modal.cjs.entry.js +43 -274
- package/dist/cjs/ion-nav_2.cjs.entry.js +8 -8
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -4
- package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +9 -9
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +6 -41
- package/dist/cjs/ion-range.cjs.entry.js +9 -30
- package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +4 -4
- package/dist/cjs/ion-searchbar.cjs.entry.js +6 -6
- 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 +6 -6
- package/dist/cjs/ion-select-modal.cjs.entry.js +7 -7
- package/dist/cjs/ion-select_3.cjs.entry.js +15 -56
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +3 -3
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-tab_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-text.cjs.entry.js +3 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +9 -9
- package/dist/cjs/ion-toast.cjs.entry.js +8 -8
- package/dist/cjs/ion-toggle.cjs.entry.js +8 -40
- package/dist/cjs/{ionic-global-96da1b2e.js → ionic-global-d9a8bb5b.js} +1 -2
- package/dist/cjs/ionic.cjs.js +3 -3
- package/dist/cjs/{ios.transition-e188169d.js → ios.transition-afdec89f.js} +4 -4
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-b66da2a1.js → md.transition-9f0d3db5.js} +4 -4
- package/dist/cjs/{notch-controller-bd07748b.js → notch-controller-a0c464d1.js} +1 -1
- package/dist/cjs/{overlays-b0b07774.js → overlays-76b29cd4.js} +5 -5
- package/dist/cjs/{status-tap-3b633cba.js → status-tap-fb807fad.js} +3 -4
- package/dist/cjs/{swipe-back-b70cd52e.js → swipe-back-47a52b83.js} +1 -1
- package/dist/collection/components/alert/alert.js +4 -34
- package/dist/collection/components/checkbox/checkbox.ios.css +15 -52
- package/dist/collection/components/checkbox/checkbox.js +4 -90
- package/dist/collection/components/checkbox/checkbox.md.css +15 -52
- package/dist/collection/components/input/input.ios.css +2 -3
- package/dist/collection/components/input/input.md.css +2 -7
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/animations/ios.enter.js +4 -50
- package/dist/collection/components/modal/animations/ios.leave.js +2 -24
- package/dist/collection/components/modal/animations/md.enter.js +5 -52
- package/dist/collection/components/modal/animations/md.leave.js +3 -26
- package/dist/collection/components/modal/animations/sheet.js +2 -11
- package/dist/collection/components/modal/gestures/sheet.js +10 -87
- package/dist/collection/components/modal/modal.ios.css +0 -16
- package/dist/collection/components/modal/modal.js +7 -32
- package/dist/collection/components/modal/modal.md.css +0 -6
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -72
- package/dist/collection/components/range/range.js +6 -25
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.ios.css +0 -59
- package/dist/collection/components/select/select.js +4 -100
- package/dist/collection/components/select/select.md.css +0 -61
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.ios.css +2 -3
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/textarea/textarea.md.css +2 -7
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.ios.css +15 -52
- package/dist/collection/components/toggle/toggle.js +4 -91
- package/dist/collection/components/toggle/toggle.md.css +15 -52
- package/dist/collection/components/toolbar/toolbar.js +2 -6
- package/dist/collection/utils/floating-point/index.js +0 -5
- package/dist/collection/utils/helpers.js +0 -6
- package/dist/collection/utils/logging/index.js +3 -10
- package/dist/collection/utils/platform.js +1 -2
- package/dist/collection/utils/test/platform.utils.js +1 -1
- package/dist/docs.json +2 -383
- package/dist/esm/{app-globals-c10a1137.js → app-globals-5dbb61a5.js} +1 -1
- package/dist/esm/{data-bf516e75.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{framework-delegate-42bc40b1.js → framework-delegate-f683816e.js} +1 -1
- package/dist/esm/{hardware-back-button-44195e92.js → hardware-back-button-06ef3c3e.js} +1 -1
- package/dist/esm/{helpers-13b816c6.js → helpers-9b49d7d2.js} +1 -7
- package/dist/esm/{index-ec2140bf.js → index-33f7e3ff.js} +2 -2
- package/dist/esm/{index-28c8fd64.js → index-5a0f5fd0.js} +1 -1
- package/dist/esm/{index-879a2080.js → index-7ec5519a.js} +5 -5
- package/dist/esm/{index-b4ac4019.js → index-8785a9c6.js} +4 -4
- package/dist/esm/{index-ce8d38d0.js → index-9b0d46f4.js} +3 -11
- package/dist/esm/index.js +10 -10
- package/dist/esm/{input-shims-4c3d7279.js → input-shims-0e65111b.js} +3 -5
- package/dist/esm/{input.utils-b4805900.js → input.utils-1ad8dafc.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +3 -3
- package/dist/esm/ion-action-sheet.entry.js +6 -6
- package/dist/esm/ion-alert.entry.js +10 -36
- package/dist/esm/ion-app_8.entry.js +17 -17
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +2 -2
- package/dist/esm/ion-backdrop.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +3 -3
- package/dist/esm/ion-card_5.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +8 -39
- package/dist/esm/ion-chip.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +4 -4
- package/dist/esm/ion-datetime_3.entry.js +11 -11
- package/dist/esm/ion-fab_3.entry.js +2 -2
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +4 -4
- package/dist/esm/ion-input-password-toggle.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +7 -7
- package/dist/esm/ion-item-option_3.entry.js +8 -8
- package/dist/esm/ion-item_8.entry.js +13 -13
- package/dist/esm/ion-loading.entry.js +8 -8
- package/dist/esm/ion-menu_3.entry.js +13 -13
- package/dist/esm/ion-modal.entry.js +43 -274
- package/dist/esm/ion-nav_2.entry.js +8 -8
- package/dist/esm/ion-picker-column-option.entry.js +4 -4
- package/dist/esm/ion-picker-column.entry.js +2 -2
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +9 -9
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +6 -41
- package/dist/esm/ion-range.entry.js +9 -30
- package/dist/esm/ion-refresher_2.entry.js +6 -6
- package/dist/esm/ion-reorder_2.entry.js +6 -6
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +4 -4
- package/dist/esm/ion-searchbar.entry.js +6 -6
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +6 -6
- package/dist/esm/ion-select-modal.entry.js +7 -7
- package/dist/esm/ion-select_3.entry.js +15 -56
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +3 -3
- package/dist/esm/ion-tab-bar_2.entry.js +6 -6
- package/dist/esm/ion-tab_2.entry.js +5 -5
- package/dist/esm/ion-text.entry.js +3 -3
- package/dist/esm/ion-textarea.entry.js +9 -9
- package/dist/esm/ion-toast.entry.js +8 -8
- package/dist/esm/ion-toggle.entry.js +8 -40
- package/dist/esm/{ionic-global-bf78a847.js → ionic-global-c81d82ab.js} +1 -2
- package/dist/esm/ionic.js +3 -3
- package/dist/esm/{ios.transition-ffee637f.js → ios.transition-085853ff.js} +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{md.transition-3a4f9709.js → md.transition-33826623.js} +4 -4
- package/dist/esm/{notch-controller-bb8f3a48.js → notch-controller-3dc61260.js} +1 -1
- package/dist/esm/{overlays-36f5880e.js → overlays-e3d0d356.js} +5 -5
- package/dist/esm/{status-tap-2ce7841e.js → status-tap-163e8128.js} +3 -4
- package/dist/esm/{swipe-back-a258b011.js → swipe-back-23ee7ab1.js} +1 -1
- package/dist/esm-es5/app-globals-5dbb61a5.js +4 -0
- package/dist/esm-es5/{data-bf516e75.js → data-ae11fd43.js} +1 -1
- package/dist/esm-es5/{framework-delegate-42bc40b1.js → framework-delegate-f683816e.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-44195e92.js → hardware-back-button-06ef3c3e.js} +1 -1
- package/dist/esm-es5/{helpers-13b816c6.js → helpers-9b49d7d2.js} +1 -1
- package/dist/esm-es5/{index-ec2140bf.js → index-33f7e3ff.js} +1 -1
- package/dist/esm-es5/{index-28c8fd64.js → index-5a0f5fd0.js} +1 -1
- package/dist/esm-es5/{index-879a2080.js → index-7ec5519a.js} +1 -1
- package/dist/esm-es5/{index-b4ac4019.js → index-8785a9c6.js} +1 -1
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-0e65111b.js +4 -0
- package/dist/esm-es5/{input.utils-b4805900.js → input.utils-1ad8dafc.js} +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +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-bf78a847.js → ionic-global-c81d82ab.js} +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-ffee637f.js → ios.transition-085853ff.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-33826623.js +4 -0
- package/dist/esm-es5/{notch-controller-bb8f3a48.js → notch-controller-3dc61260.js} +1 -1
- package/dist/esm-es5/{overlays-36f5880e.js → overlays-e3d0d356.js} +1 -1
- package/dist/esm-es5/status-tap-163e8128.js +4 -0
- package/dist/esm-es5/{swipe-back-a258b011.js → swipe-back-23ee7ab1.js} +1 -1
- package/dist/html.html-data.json +0 -48
- 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-c30c10af.js → p-02e1ebd9.js} +1 -1
- package/dist/ionic/{p-62d2e17d.entry.js → p-02e23f26.entry.js} +1 -1
- package/dist/ionic/{p-dbe534f5.entry.js → p-0397811d.entry.js} +1 -1
- package/dist/ionic/p-0574e87e.js +4 -0
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-075a94bd.js +4 -0
- package/dist/ionic/p-0a59f4fa.entry.js +4 -0
- package/dist/ionic/{p-9104d662.system.entry.js → p-0c9b6d3a.system.entry.js} +1 -1
- package/dist/ionic/p-0e43be1b.entry.js +4 -0
- package/dist/ionic/{p-4a98a017.system.entry.js → p-0eb2553a.system.entry.js} +1 -1
- package/dist/ionic/p-0ee3b5a2.system.js +4 -0
- package/dist/ionic/p-135e5731.js +4 -0
- package/dist/ionic/{p-4e0643a3.js → p-13dc21b0.js} +1 -1
- package/dist/ionic/{p-f4cddcd0.entry.js → p-14143257.entry.js} +1 -1
- package/dist/ionic/p-14be4015.entry.js +4 -0
- package/dist/ionic/p-162c8d0c.system.entry.js +4 -0
- package/dist/ionic/{p-7af3d1e8.system.entry.js → p-16799667.system.entry.js} +1 -1
- package/dist/ionic/p-16bfb979.system.entry.js +4 -0
- package/dist/ionic/{p-f6d066b4.system.js → p-1a790eef.system.js} +2 -2
- package/dist/ionic/{p-506f2664.system.entry.js → p-1bbe8665.system.entry.js} +2 -2
- package/dist/ionic/{p-fb048d4d.system.entry.js → p-1bc65aec.system.entry.js} +1 -1
- package/dist/ionic/p-1f405274.js +4 -0
- package/dist/ionic/{p-a17a1fb9.entry.js → p-203633d1.entry.js} +1 -1
- package/dist/ionic/{p-ec92cc52.system.entry.js → p-2507278c.system.entry.js} +1 -1
- package/dist/ionic/{p-98aefaa1.system.entry.js → p-2515cb4d.system.entry.js} +1 -1
- package/dist/ionic/p-25fa1d30.system.entry.js +4 -0
- package/dist/ionic/{p-8fa80de0.entry.js → p-26194519.entry.js} +1 -1
- package/dist/ionic/p-265939f0.entry.js +4 -0
- package/dist/ionic/{p-fa5a45cd.system.entry.js → p-2abae1cc.system.entry.js} +1 -1
- package/dist/ionic/{p-3559bd4f.js → p-2bc73fb5.js} +1 -1
- package/dist/ionic/p-2c9eb774.system.js +4 -0
- package/dist/ionic/{p-f5f52b6d.system.entry.js → p-2ef3c7ee.system.entry.js} +1 -1
- package/dist/ionic/p-322c5fb4.system.js +4 -0
- package/dist/ionic/{p-82afe775.entry.js → p-32e99b0a.entry.js} +1 -1
- package/dist/ionic/{p-c66604e4.entry.js → p-33a8a71b.entry.js} +1 -1
- package/dist/ionic/{p-3a4d77b9.system.js → p-340e3f24.system.js} +1 -1
- package/dist/ionic/{p-9994c82e.system.entry.js → p-3572f86a.system.entry.js} +1 -1
- package/dist/ionic/{p-8911101b.system.js → p-3c8e5c23.system.js} +1 -1
- package/dist/ionic/{p-986a98d9.system.entry.js → p-3df889b3.system.entry.js} +1 -1
- package/dist/ionic/{p-97542341.system.entry.js → p-3eaf1444.system.entry.js} +1 -1
- package/dist/ionic/{p-85d6d07c.entry.js → p-41780810.entry.js} +1 -1
- package/dist/ionic/{p-5cc9314d.system.entry.js → p-424eb140.system.entry.js} +1 -1
- package/dist/ionic/{p-761c42da.js → p-42808996.js} +1 -1
- package/dist/ionic/p-4346c79d.system.entry.js +4 -0
- package/dist/ionic/{p-f5a536e1.system.js → p-4452a8ac.system.js} +1 -1
- package/dist/ionic/{p-5bc47f96.entry.js → p-45de8d2a.entry.js} +1 -1
- package/dist/ionic/p-48a8d9b4.system.entry.js +4 -0
- package/dist/ionic/p-49a0e74c.entry.js +4 -0
- package/dist/ionic/{p-1f62c30b.entry.js → p-4ad78edc.entry.js} +1 -1
- package/dist/ionic/{p-c43872df.entry.js → p-4c252070.entry.js} +1 -1
- package/dist/ionic/{p-52b61cba.system.js → p-5126cf1e.system.js} +1 -1
- package/dist/ionic/p-51dec25d.js +4 -0
- package/dist/ionic/{p-7d1cbf97.system.entry.js → p-561ddcd4.system.entry.js} +2 -2
- package/dist/ionic/{p-6321783a.system.entry.js → p-56da53ad.system.entry.js} +1 -1
- package/dist/ionic/{p-bbfa740f.entry.js → p-57379000.entry.js} +1 -1
- package/dist/ionic/{p-de0b8503.entry.js → p-57ceead7.entry.js} +1 -1
- package/dist/ionic/{p-020df11a.entry.js → p-5b932840.entry.js} +1 -1
- package/dist/ionic/p-5cde8ef3.entry.js +4 -0
- package/dist/ionic/{p-9c7efe25.system.entry.js → p-5fce0c0b.system.entry.js} +1 -1
- package/dist/ionic/p-6190d0d6.entry.js +4 -0
- package/dist/ionic/p-61d044b4.entry.js +4 -0
- package/dist/ionic/{p-ebceb0ac.entry.js → p-62af944c.entry.js} +1 -1
- package/dist/ionic/p-68dc53a5.js +4 -0
- package/dist/ionic/{p-0434c94c.entry.js → p-6b1bd0c1.entry.js} +1 -1
- package/dist/ionic/{p-8eee812a.entry.js → p-6d32975a.entry.js} +1 -1
- package/dist/ionic/{p-7ef62ef9.system.entry.js → p-70ccc275.system.entry.js} +2 -2
- package/dist/ionic/{p-f2a72b24.entry.js → p-73dc4950.entry.js} +1 -1
- package/dist/ionic/{p-cad0b874.system.entry.js → p-7458862e.system.entry.js} +1 -1
- package/dist/ionic/{p-3b872754.entry.js → p-76446a85.entry.js} +1 -1
- package/dist/ionic/{p-1cf593cf.system.entry.js → p-77e7b7b6.system.entry.js} +1 -1
- package/dist/ionic/{p-89e678fa.js → p-7a1766d6.js} +1 -1
- package/dist/ionic/{p-99b4160f.system.entry.js → p-7b96e5c1.system.entry.js} +1 -1
- package/dist/ionic/{p-6f6dd24f.entry.js → p-7b98cebe.entry.js} +1 -1
- package/dist/ionic/p-803f0bc2.entry.js +4 -0
- package/dist/ionic/p-82b931e2.entry.js +4 -0
- package/dist/ionic/{p-b1dbfc12.entry.js → p-83e68c71.entry.js} +1 -1
- package/dist/ionic/p-84b1b9a0.entry.js +4 -0
- package/dist/ionic/{p-e0a2abde.system.entry.js → p-84d08aae.system.entry.js} +1 -1
- package/dist/ionic/{p-80d837dd.system.js → p-881d9e52.system.js} +1 -1
- package/dist/ionic/p-8a836849.entry.js +4 -0
- package/dist/ionic/{p-84fb742d.system.entry.js → p-91f17b25.system.entry.js} +2 -2
- package/dist/ionic/{p-9aaaff17.system.entry.js → p-92365bc1.system.entry.js} +1 -1
- package/dist/ionic/{p-8f89c8e3.entry.js → p-955c3eb8.entry.js} +1 -1
- package/dist/ionic/{p-43bfbfd7.entry.js → p-95775830.entry.js} +1 -1
- package/dist/ionic/{p-f6e7870b.system.js → p-95da3ae2.system.js} +1 -1
- package/dist/ionic/{p-5f7a9125.system.entry.js → p-9a1f985d.system.entry.js} +2 -2
- package/dist/ionic/{p-34182275.entry.js → p-9b3bb24e.entry.js} +1 -1
- package/dist/ionic/{p-ee70a913.system.entry.js → p-9be5f3ee.system.entry.js} +2 -2
- package/dist/ionic/{p-187396b1.system.js → p-9eee4de1.system.js} +1 -1
- package/dist/ionic/{p-eb4ac14d.system.js → p-9f3008d4.system.js} +1 -1
- package/dist/ionic/{p-86a9a4ca.system.js → p-a2b6dd57.system.js} +1 -1
- package/dist/ionic/{p-166a794f.system.entry.js → p-a3c78186.system.entry.js} +1 -1
- package/dist/ionic/{p-47026941.system.entry.js → p-a4575db1.system.entry.js} +1 -1
- package/dist/ionic/{p-d86d7845.system.js → p-a69b9fc5.system.js} +1 -1
- package/dist/ionic/{p-c55254f0.system.entry.js → p-a9e24ae2.system.entry.js} +1 -1
- package/dist/ionic/{p-74e328cf.system.js → p-aa63b365.system.js} +1 -1
- package/dist/ionic/{p-221fbdf5.entry.js → p-af09741c.entry.js} +1 -1
- package/dist/ionic/{p-dde5afee.entry.js → p-afecb188.entry.js} +1 -1
- package/dist/ionic/p-b0d8bbee.entry.js +4 -0
- package/dist/ionic/{p-8aa290af.system.js → p-b3680e2f.system.js} +1 -1
- package/dist/ionic/p-b7433d7d.js +4 -0
- package/dist/ionic/{p-4200e056.system.entry.js → p-b91acf8d.system.entry.js} +1 -1
- package/dist/ionic/{p-6eb35904.js → p-bb11d9fb.js} +1 -1
- package/dist/ionic/{p-00d5ab83.entry.js → p-bb2a6761.entry.js} +1 -1
- package/dist/ionic/{p-9d4a8059.entry.js → p-bdad26e3.entry.js} +1 -1
- package/dist/ionic/{p-6579f457.system.js → p-c1b51537.system.js} +1 -1
- package/dist/ionic/{p-e56b4e0f.system.entry.js → p-c29f8157.system.entry.js} +1 -1
- package/dist/ionic/{p-bd1c99cb.entry.js → p-c32644d7.entry.js} +1 -1
- package/dist/ionic/{p-a4b108a7.entry.js → p-c8d645b3.entry.js} +1 -1
- package/dist/ionic/p-cc700b6b.entry.js +4 -0
- package/dist/ionic/p-d06601eb.system.entry.js +4 -0
- package/dist/ionic/{p-aae5907a.system.entry.js → p-d192fdf7.system.entry.js} +1 -1
- package/dist/ionic/p-d3b26da4.system.entry.js +4 -0
- package/dist/ionic/{p-b566749e.js → p-d4ca0475.js} +1 -1
- package/dist/ionic/{p-03940ae5.js → p-d60342e3.js} +1 -1
- package/dist/ionic/{p-e25cd3c7.js → p-d743e981.js} +1 -1
- package/dist/ionic/{p-09e4bf0d.entry.js → p-da074ff7.entry.js} +1 -1
- package/dist/ionic/{p-05f90810.system.entry.js → p-da8ef548.system.entry.js} +1 -1
- package/dist/ionic/{p-de4fef3c.system.entry.js → p-dc146a2a.system.entry.js} +1 -1
- package/dist/ionic/{p-25580c85.system.entry.js → p-dd0c9350.system.entry.js} +1 -1
- package/dist/ionic/{p-0eab6979.entry.js → p-df862603.entry.js} +1 -1
- package/dist/ionic/{p-2840743b.entry.js → p-e1bbacb7.entry.js} +1 -1
- package/dist/ionic/p-e265ae18.system.entry.js +4 -0
- package/dist/ionic/{p-6703c724.system.entry.js → p-e2e19375.system.entry.js} +1 -1
- package/dist/ionic/p-e308de5b.system.js +4 -0
- package/dist/ionic/{p-72210f2a.system.entry.js → p-e456ee59.system.entry.js} +1 -1
- package/dist/ionic/{p-d8c1ac0d.system.js → p-e8232807.system.js} +1 -1
- package/dist/ionic/{p-441c2c8c.entry.js → p-e8f34871.entry.js} +1 -1
- package/dist/ionic/p-e97a3f44.entry.js +4 -0
- package/dist/ionic/{p-6f3d8334.js → p-ecceeb90.js} +1 -1
- package/dist/ionic/{p-a4e7eaf6.system.entry.js → p-ed75fcfb.system.entry.js} +1 -1
- package/dist/ionic/{p-c52ca485.system.entry.js → p-f301a694.system.entry.js} +1 -1
- package/dist/ionic/{p-478dfa8c.system.entry.js → p-f3102647.system.entry.js} +1 -1
- package/dist/ionic/{p-5a1017f3.entry.js → p-f42743d1.entry.js} +1 -1
- package/dist/ionic/{p-845f8d16.js → p-f5035354.js} +1 -1
- package/dist/ionic/{p-2c1d4963.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/{p-5f10138c.system.entry.js → p-f78af648.system.entry.js} +1 -1
- package/dist/ionic/{p-c3de6cd1.system.entry.js → p-f89cf011.system.entry.js} +1 -1
- package/dist/ionic/{p-16dd9c9b.entry.js → p-fca17935.entry.js} +1 -1
- package/dist/ionic/{p-826c4d67.system.entry.js → p-fca6ef5f.system.entry.js} +1 -1
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/ionic/{p-66425a02.system.entry.js → p-ffc48bc5.system.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -25
- package/dist/types/components/modal/animations/sheet.d.ts +0 -1
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +0 -1
- package/dist/types/components/modal/modal.d.ts +0 -14
- package/dist/types/components/radio-group/radio-group.d.ts +0 -15
- package/dist/types/components/range/range.d.ts +2 -3
- package/dist/types/components/select/select.d.ts +0 -29
- package/dist/types/components/toggle/toggle.d.ts +0 -25
- package/dist/types/components/toolbar/toolbar.d.ts +0 -4
- package/dist/types/components.d.ts +0 -96
- package/dist/types/utils/config.d.ts +0 -9
- package/dist/types/utils/helpers.d.ts +0 -4
- package/dist/types/utils/logging/index.d.ts +1 -13
- package/dist/types/utils/native/capacitor.d.ts +1 -7
- package/dist/types/utils/test/platform.utils.d.ts +1 -1
- package/hydrate/index.js +153 -608
- package/hydrate/index.mjs +153 -608
- package/package.json +6 -6
- package/dist/collection/components/radio-group/radio-group.ios.css +0 -205
- package/dist/collection/components/radio-group/radio-group.md.css +0 -205
- package/dist/esm-es5/app-globals-c10a1137.js +0 -4
- package/dist/esm-es5/index-ce8d38d0.js +0 -4
- package/dist/esm-es5/input-shims-4c3d7279.js +0 -4
- package/dist/esm-es5/md.transition-3a4f9709.js +0 -4
- package/dist/esm-es5/status-tap-2ce7841e.js +0 -4
- package/dist/ionic/p-0412232d.js +0 -4
- package/dist/ionic/p-0ab8caf8.system.entry.js +0 -4
- package/dist/ionic/p-0f138cf3.entry.js +0 -4
- package/dist/ionic/p-21780245.entry.js +0 -4
- package/dist/ionic/p-21ee4f71.system.entry.js +0 -4
- package/dist/ionic/p-29cccf08.entry.js +0 -4
- package/dist/ionic/p-2f429536.entry.js +0 -4
- package/dist/ionic/p-38df41a6.system.js +0 -4
- package/dist/ionic/p-3e6be709.entry.js +0 -4
- package/dist/ionic/p-41d7ca3c.entry.js +0 -4
- package/dist/ionic/p-48e9eedb.entry.js +0 -4
- package/dist/ionic/p-4e8946f7.js +0 -4
- package/dist/ionic/p-51d4cdba.system.js +0 -4
- package/dist/ionic/p-541b5191.entry.js +0 -4
- package/dist/ionic/p-5c364a5b.entry.js +0 -4
- package/dist/ionic/p-60f7c85d.entry.js +0 -4
- package/dist/ionic/p-62151078.system.entry.js +0 -4
- package/dist/ionic/p-623b4fa6.system.entry.js +0 -4
- package/dist/ionic/p-717520d6.system.entry.js +0 -4
- package/dist/ionic/p-7e70835f.js +0 -4
- package/dist/ionic/p-8973b827.system.js +0 -4
- package/dist/ionic/p-8a3509b8.js +0 -4
- package/dist/ionic/p-95a11fc4.entry.js +0 -4
- package/dist/ionic/p-9a950d3c.entry.js +0 -4
- package/dist/ionic/p-a3e60403.js +0 -4
- package/dist/ionic/p-afba4c00.system.entry.js +0 -4
- package/dist/ionic/p-b1c4a9db.js +0 -4
- package/dist/ionic/p-be8ecfc1.js +0 -4
- package/dist/ionic/p-c1ad8eb0.system.js +0 -4
- package/dist/ionic/p-c4f9367a.entry.js +0 -4
- package/dist/ionic/p-d9162cf7.system.entry.js +0 -4
- package/dist/ionic/p-e3bd1070.entry.js +0 -4
- package/dist/ionic/p-e824ffe7.entry.js +0 -4
- package/dist/ionic/p-f4f255cb.system.js +0 -4
- package/dist/ionic/p-fe00ac05.system.entry.js +0 -4
- package/dist/ionic/p-fe7be7b4.js +0 -4
|
@@ -17,15 +17,10 @@ import { getIonMode } from "../../global/ionic-global";
|
|
|
17
17
|
* @part track - The background track of the toggle.
|
|
18
18
|
* @part handle - The toggle handle, or knob, used to change the checked state.
|
|
19
19
|
* @part label - The label text describing the toggle.
|
|
20
|
-
* @part supporting-text - Supporting text displayed beneath the toggle label.
|
|
21
|
-
* @part helper-text - Supporting text displayed beneath the toggle label when the toggle is valid.
|
|
22
|
-
* @part error-text - Supporting text displayed beneath the toggle label when the toggle is invalid and touched.
|
|
23
20
|
*/
|
|
24
21
|
export class Toggle {
|
|
25
22
|
constructor() {
|
|
26
23
|
this.inputId = `ion-tg-${toggleIds++}`;
|
|
27
|
-
this.helperTextId = `${this.inputId}-helper-text`;
|
|
28
|
-
this.errorTextId = `${this.inputId}-error-text`;
|
|
29
24
|
this.lastDrag = 0;
|
|
30
25
|
this.inheritedAttributes = {};
|
|
31
26
|
this.didLoad = false;
|
|
@@ -71,14 +66,11 @@ export class Toggle {
|
|
|
71
66
|
this.name = this.inputId;
|
|
72
67
|
this.checked = false;
|
|
73
68
|
this.disabled = false;
|
|
74
|
-
this.errorText = undefined;
|
|
75
|
-
this.helperText = undefined;
|
|
76
69
|
this.value = 'on';
|
|
77
70
|
this.enableOnOffLabels = config.get('toggleOnOffLabels');
|
|
78
71
|
this.labelPlacement = 'start';
|
|
79
72
|
this.justify = undefined;
|
|
80
73
|
this.alignment = undefined;
|
|
81
|
-
this.required = false;
|
|
82
74
|
}
|
|
83
75
|
disabledChanged() {
|
|
84
76
|
if (this.gesture) {
|
|
@@ -89,7 +81,6 @@ export class Toggle {
|
|
|
89
81
|
const { checked, value } = this;
|
|
90
82
|
const isNowChecked = !checked;
|
|
91
83
|
this.checked = isNowChecked;
|
|
92
|
-
this.setFocus();
|
|
93
84
|
this.ionChange.emit({
|
|
94
85
|
checked: isNowChecked,
|
|
95
86
|
value,
|
|
@@ -160,39 +151,13 @@ export class Toggle {
|
|
|
160
151
|
get hasLabel() {
|
|
161
152
|
return this.el.textContent !== '';
|
|
162
153
|
}
|
|
163
|
-
getHintTextID() {
|
|
164
|
-
const { el, helperText, errorText, helperTextId, errorTextId } = this;
|
|
165
|
-
if (el.classList.contains('ion-touched') && el.classList.contains('ion-invalid') && errorText) {
|
|
166
|
-
return errorTextId;
|
|
167
|
-
}
|
|
168
|
-
if (helperText) {
|
|
169
|
-
return helperTextId;
|
|
170
|
-
}
|
|
171
|
-
return undefined;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Responsible for rendering helper text and error text.
|
|
175
|
-
* This element should only be rendered if hint text is set.
|
|
176
|
-
*/
|
|
177
|
-
renderHintText() {
|
|
178
|
-
const { helperText, errorText, helperTextId, errorTextId } = this;
|
|
179
|
-
/**
|
|
180
|
-
* undefined and empty string values should
|
|
181
|
-
* be treated as not having helper/error text.
|
|
182
|
-
*/
|
|
183
|
-
const hasHintText = !!helperText || !!errorText;
|
|
184
|
-
if (!hasHintText) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
return (h("div", { class: "toggle-bottom" }, h("div", { id: helperTextId, class: "helper-text", part: "supporting-text helper-text" }, helperText), h("div", { id: errorTextId, class: "error-text", part: "supporting-text error-text" }, errorText)));
|
|
188
|
-
}
|
|
189
154
|
render() {
|
|
190
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment
|
|
155
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
191
156
|
const mode = getIonMode(this);
|
|
192
157
|
const value = this.getValue();
|
|
193
158
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
194
159
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
195
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'f52195ec3bc14c024647cb41319c32a4cd330e19', onClick: this.onClick, class: createColorClasses(color, {
|
|
196
161
|
[mode]: true,
|
|
197
162
|
'in-item': hostContext('ion-item', el),
|
|
198
163
|
'toggle-activated': activated,
|
|
@@ -202,10 +167,10 @@ export class Toggle {
|
|
|
202
167
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
203
168
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
204
169
|
[`toggle-${rtl}`]: true,
|
|
205
|
-
}) }, h("label", { key: '
|
|
170
|
+
}) }, h("label", { key: 'f8b3a215ad85b2cee611ad63449b584e1640f27f', class: "toggle-wrapper" }, h("input", Object.assign({ key: 'f387b1ea840737a9737917e516834c887be99c09', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: '936af880db59fe377cd2de9101eb28a1c4fb8914', class: {
|
|
206
171
|
'label-text-wrapper': true,
|
|
207
172
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
208
|
-
}, part: "label" }, h("slot", { key: '
|
|
173
|
+
}, part: "label" }, h("slot", { key: '80a6672e2e792c15011a9496dcd75363cdba31c6' })), h("div", { key: '2b2b318b38ab27b194c0dab4cecd77d9d780f2ca', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
209
174
|
}
|
|
210
175
|
static get is() { return "ion-toggle"; }
|
|
211
176
|
static get encapsulation() { return "shadow"; }
|
|
@@ -300,40 +265,6 @@ export class Toggle {
|
|
|
300
265
|
"reflect": false,
|
|
301
266
|
"defaultValue": "false"
|
|
302
267
|
},
|
|
303
|
-
"errorText": {
|
|
304
|
-
"type": "string",
|
|
305
|
-
"mutable": false,
|
|
306
|
-
"complexType": {
|
|
307
|
-
"original": "string",
|
|
308
|
-
"resolved": "string | undefined",
|
|
309
|
-
"references": {}
|
|
310
|
-
},
|
|
311
|
-
"required": false,
|
|
312
|
-
"optional": true,
|
|
313
|
-
"docs": {
|
|
314
|
-
"tags": [],
|
|
315
|
-
"text": "Text that is placed under the toggle label and displayed when an error is detected."
|
|
316
|
-
},
|
|
317
|
-
"attribute": "error-text",
|
|
318
|
-
"reflect": false
|
|
319
|
-
},
|
|
320
|
-
"helperText": {
|
|
321
|
-
"type": "string",
|
|
322
|
-
"mutable": false,
|
|
323
|
-
"complexType": {
|
|
324
|
-
"original": "string",
|
|
325
|
-
"resolved": "string | undefined",
|
|
326
|
-
"references": {}
|
|
327
|
-
},
|
|
328
|
-
"required": false,
|
|
329
|
-
"optional": true,
|
|
330
|
-
"docs": {
|
|
331
|
-
"tags": [],
|
|
332
|
-
"text": "Text that is placed under the toggle label and displayed when no error is detected."
|
|
333
|
-
},
|
|
334
|
-
"attribute": "helper-text",
|
|
335
|
-
"reflect": false
|
|
336
|
-
},
|
|
337
268
|
"value": {
|
|
338
269
|
"type": "string",
|
|
339
270
|
"mutable": false,
|
|
@@ -421,24 +352,6 @@ export class Toggle {
|
|
|
421
352
|
},
|
|
422
353
|
"attribute": "alignment",
|
|
423
354
|
"reflect": false
|
|
424
|
-
},
|
|
425
|
-
"required": {
|
|
426
|
-
"type": "boolean",
|
|
427
|
-
"mutable": false,
|
|
428
|
-
"complexType": {
|
|
429
|
-
"original": "boolean",
|
|
430
|
-
"resolved": "boolean",
|
|
431
|
-
"references": {}
|
|
432
|
-
},
|
|
433
|
-
"required": false,
|
|
434
|
-
"optional": false,
|
|
435
|
-
"docs": {
|
|
436
|
-
"tags": [],
|
|
437
|
-
"text": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid."
|
|
438
|
-
},
|
|
439
|
-
"attribute": "required",
|
|
440
|
-
"reflect": false,
|
|
441
|
-
"defaultValue": "false"
|
|
442
355
|
}
|
|
443
356
|
};
|
|
444
357
|
}
|
|
@@ -171,39 +171,32 @@ input {
|
|
|
171
171
|
align-items: center;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
.toggle-
|
|
175
|
-
padding-top: 4px;
|
|
176
|
-
display: flex;
|
|
174
|
+
:host(.toggle-justify-space-between) .toggle-wrapper {
|
|
177
175
|
justify-content: space-between;
|
|
178
|
-
font-size: 0.75rem;
|
|
179
|
-
white-space: normal;
|
|
180
176
|
}
|
|
181
177
|
|
|
182
|
-
:host(.toggle-
|
|
183
|
-
|
|
178
|
+
:host(.toggle-justify-start) .toggle-wrapper {
|
|
179
|
+
justify-content: start;
|
|
184
180
|
}
|
|
185
181
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
* present on the checkbox. Otherwise the helper text should
|
|
189
|
-
* be shown.
|
|
190
|
-
*/
|
|
191
|
-
.toggle-bottom .error-text {
|
|
192
|
-
display: none;
|
|
193
|
-
color: var(--ion-color-danger, #c5000f);
|
|
182
|
+
:host(.toggle-justify-end) .toggle-wrapper {
|
|
183
|
+
justify-content: end;
|
|
194
184
|
}
|
|
195
185
|
|
|
196
|
-
.toggle-
|
|
197
|
-
|
|
198
|
-
color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
|
|
186
|
+
:host(.toggle-alignment-start) .toggle-wrapper {
|
|
187
|
+
align-items: start;
|
|
199
188
|
}
|
|
200
189
|
|
|
201
|
-
:host(.
|
|
202
|
-
|
|
190
|
+
:host(.toggle-alignment-center) .toggle-wrapper {
|
|
191
|
+
align-items: center;
|
|
203
192
|
}
|
|
204
193
|
|
|
205
|
-
:host(.
|
|
206
|
-
|
|
194
|
+
:host(.toggle-justify-space-between),
|
|
195
|
+
:host(.toggle-justify-start),
|
|
196
|
+
:host(.toggle-justify-end),
|
|
197
|
+
:host(.toggle-alignment-start),
|
|
198
|
+
:host(.toggle-alignment-center) {
|
|
199
|
+
display: block;
|
|
207
200
|
}
|
|
208
201
|
|
|
209
202
|
/**
|
|
@@ -232,7 +225,6 @@ input {
|
|
|
232
225
|
*/
|
|
233
226
|
:host(.toggle-label-placement-end) .toggle-wrapper {
|
|
234
227
|
flex-direction: row-reverse;
|
|
235
|
-
justify-content: start;
|
|
236
228
|
}
|
|
237
229
|
|
|
238
230
|
/**
|
|
@@ -275,7 +267,6 @@ input {
|
|
|
275
267
|
*/
|
|
276
268
|
:host(.toggle-label-placement-stacked) .toggle-wrapper {
|
|
277
269
|
flex-direction: column;
|
|
278
|
-
text-align: center;
|
|
279
270
|
}
|
|
280
271
|
|
|
281
272
|
:host(.toggle-label-placement-stacked) .label-text-wrapper {
|
|
@@ -321,34 +312,6 @@ input {
|
|
|
321
312
|
}
|
|
322
313
|
}
|
|
323
314
|
|
|
324
|
-
:host(.toggle-justify-space-between) .toggle-wrapper {
|
|
325
|
-
justify-content: space-between;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
:host(.toggle-justify-start) .toggle-wrapper {
|
|
329
|
-
justify-content: start;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
:host(.toggle-justify-end) .toggle-wrapper {
|
|
333
|
-
justify-content: end;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
:host(.toggle-alignment-start) .toggle-wrapper {
|
|
337
|
-
align-items: start;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
:host(.toggle-alignment-center) .toggle-wrapper {
|
|
341
|
-
align-items: center;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
:host(.toggle-justify-space-between),
|
|
345
|
-
:host(.toggle-justify-start),
|
|
346
|
-
:host(.toggle-justify-end),
|
|
347
|
-
:host(.toggle-alignment-start),
|
|
348
|
-
:host(.toggle-alignment-center) {
|
|
349
|
-
display: block;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
315
|
.toggle-icon-wrapper {
|
|
353
316
|
display: flex;
|
|
354
317
|
position: relative;
|
|
@@ -12,10 +12,6 @@ import { getIonMode } from "../../global/ionic-global";
|
|
|
12
12
|
* @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
|
|
13
13
|
* @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
|
|
14
14
|
* @slot end - Content is placed to the right of the toolbar text in LTR, and to the left in RTL.
|
|
15
|
-
*
|
|
16
|
-
* @part background - The background of the toolbar, covering the entire area behind the toolbar content.
|
|
17
|
-
* @part container - The container that wraps all toolbar content, including the default slot and named slot content.
|
|
18
|
-
* @part content - The container for the default slot, wrapping content provided without a named slot.
|
|
19
15
|
*/
|
|
20
16
|
export class Toolbar {
|
|
21
17
|
constructor() {
|
|
@@ -66,10 +62,10 @@ export class Toolbar {
|
|
|
66
62
|
this.childrenStyles.forEach((value) => {
|
|
67
63
|
Object.assign(childStyles, value);
|
|
68
64
|
});
|
|
69
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: '462538a5ecd01baf3cde116c9f029aeda26c81be', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
|
|
70
66
|
[mode]: true,
|
|
71
67
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
72
|
-
})) }, h("div", { key: '
|
|
68
|
+
})) }, h("div", { key: 'c0b4415d3b2472de643a9be7cb3b13b3b628621b', class: "toolbar-background" }), h("div", { key: '0ccb8a2dbeaa28d8f9bed87629c0c097446690c2', class: "toolbar-container" }, h("slot", { key: '3e726dac359e923df21d80301651f16063a3de20', name: "start" }), h("slot", { key: 'cd799330b56a7f8833bc61bb2807aafb21846f71', name: "secondary" }), h("div", { key: '395282e6ac8c53576922dcdb5f08c25d34638c86', class: "toolbar-content" }, h("slot", { key: 'a437c60e4ba5aae65e55169ae82a6f379868ec1d' })), h("slot", { key: '711af9b9d321a7b31ede924c9bdcad767aa9a1ca', name: "primary" }), h("slot", { key: 'ecc02edeaf80a837890bcb08d5096df1e22a0b9a', name: "end" }))));
|
|
73
69
|
}
|
|
74
70
|
static get is() { return "ion-toolbar"; }
|
|
75
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { isSafeNumber } from "../helpers";
|
|
5
4
|
export function getDecimalPlaces(n) {
|
|
6
|
-
if (!isSafeNumber(n))
|
|
7
|
-
return 0;
|
|
8
5
|
if (n % 1 === 0)
|
|
9
6
|
return 0;
|
|
10
7
|
return n.toString().split('.')[1].length;
|
|
@@ -42,8 +39,6 @@ export function getDecimalPlaces(n) {
|
|
|
42
39
|
* be used as a reference for the desired specificity.
|
|
43
40
|
*/
|
|
44
41
|
export function roundToMaxDecimalPlaces(n, ...references) {
|
|
45
|
-
if (!isSafeNumber(n))
|
|
46
|
-
return 0;
|
|
47
42
|
const maxPlaces = Math.max(...references.map((r) => getDecimalPlaces(r)));
|
|
48
43
|
return Number(n.toFixed(maxPlaces));
|
|
49
44
|
}
|
|
@@ -374,9 +374,3 @@ export const getNextSiblingOfType = (element) => {
|
|
|
374
374
|
}
|
|
375
375
|
return null;
|
|
376
376
|
};
|
|
377
|
-
/**
|
|
378
|
-
* Checks input for usable number. Not NaN and not Infinite.
|
|
379
|
-
*/
|
|
380
|
-
export const isSafeNumber = (input) => {
|
|
381
|
-
return typeof input === 'number' && !isNaN(input) && isFinite(input);
|
|
382
|
-
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { config } from "../../global/config";
|
|
5
4
|
/**
|
|
6
5
|
* Logs a warning to the console with an Ionic prefix
|
|
7
6
|
* to indicate the library that is warning the developer.
|
|
@@ -9,12 +8,9 @@ import { config } from "../../global/config";
|
|
|
9
8
|
* @param message - The string message to be logged to the console.
|
|
10
9
|
*/
|
|
11
10
|
export const printIonWarning = (message, ...params) => {
|
|
12
|
-
|
|
13
|
-
if (["WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
14
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
15
|
-
}
|
|
11
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
16
12
|
};
|
|
17
|
-
|
|
13
|
+
/*
|
|
18
14
|
* Logs an error to the console with an Ionic prefix
|
|
19
15
|
* to indicate the library that is warning the developer.
|
|
20
16
|
*
|
|
@@ -22,10 +18,7 @@ export const printIonWarning = (message, ...params) => {
|
|
|
22
18
|
* @param params - Additional arguments to supply to the console.error.
|
|
23
19
|
*/
|
|
24
20
|
export const printIonError = (message, ...params) => {
|
|
25
|
-
|
|
26
|
-
if (["ERROR" /* LogLevel.ERROR */, "WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
27
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
28
|
-
}
|
|
21
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
29
22
|
};
|
|
30
23
|
/**
|
|
31
24
|
* Prints an error informing developers that an implementation requires an element to be used
|
|
@@ -67,8 +67,7 @@ const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
|
|
67
67
|
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
68
68
|
const isCapacitorNative = (win) => {
|
|
69
69
|
const capacitor = win['Capacitor'];
|
|
70
|
-
|
|
71
|
-
return !!((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative) || ((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNativePlatform) && !!capacitor.isNativePlatform()));
|
|
70
|
+
return !!(capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative);
|
|
72
71
|
};
|
|
73
72
|
const isElectron = (win) => testUserAgent(win, /electron/i);
|
|
74
73
|
const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
|