@ionic/core 7.7.2-dev.11707932366.16baf005 → 7.7.2-dev.11708036667.1fa730de
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/checkbox.js +8 -80
- package/components/helpers.js +1 -1
- package/components/index2.js +107 -1
- package/components/index9.js +1 -1
- package/components/ion-chip.js +2 -2
- package/components/ion-col.js +2 -2
- package/components/ion-content.js +4 -4
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +2 -2
- package/components/ion-fab-list.js +2 -2
- package/components/ion-fab.js +2 -2
- package/components/ion-footer.js +3 -3
- package/components/ion-grid.js +2 -2
- package/components/ion-header.js +3 -3
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +2 -2
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input.js +4 -4
- 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 +2 -2
- package/components/ion-item-sliding.js +2 -2
- 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 +3 -3
- package/components/ion-modal.js +4 -4
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +2 -2
- package/components/ion-range.js +34 -88
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +2 -2
- 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 +2 -2
- package/components/ion-router.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +5 -5
- package/components/ion-segment-button.js +3 -3
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +3 -3
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +3 -3
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/ion-toolbar.js +2 -2
- package/components/label.js +1 -1
- package/components/list-header.js +2 -2
- package/components/list.js +1 -1
- package/components/note.js +2 -2
- package/components/picker-column-option.js +2 -2
- package/components/picker-column.js +3 -3
- package/components/picker-column2.js +3 -3
- package/components/picker.js +2 -2
- package/components/popover.js +3 -3
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/refresher.utils.js +1 -1
- package/components/ripple-effect.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/swipe-back.js +1 -1
- package/css/core.css +10 -0
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{animation-fdab9de5.js → animation-52066ac7.js} +1 -1
- package/dist/cjs/{framework-delegate-a3e6d060.js → framework-delegate-0aa2f151.js} +1 -1
- package/dist/cjs/{helpers-2e1028fa.js → helpers-3b96a6b0.js} +0 -1
- package/dist/cjs/{index-84351d21.js → index-199dfe7c.js} +110 -4
- package/dist/cjs/{index-8c679cbf.js → index-8a307f4a.js} +2 -2
- package/dist/cjs/{index-10da82ce.js → index-a31d3404.js} +1 -1
- package/dist/cjs/{index-53d162b2.js → index-e8a56f40.js} +1 -1
- package/dist/cjs/index.cjs.js +9 -9
- package/dist/cjs/{input-shims-6f804705.js → input-shims-49caf259.js} +2 -2
- package/dist/cjs/{input.utils-d693d18a.js → input.utils-ca76d6e6.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
- package/dist/cjs/ion-alert.cjs.entry.js +4 -4
- package/dist/cjs/ion-app_8.cjs.entry.js +20 -20
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +7 -75
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +9 -9
- package/dist/cjs/ion-fab_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-img.cjs.entry.js +2 -2
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-input.cjs.entry.js +6 -6
- package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-item_8.cjs.entry.js +12 -12
- package/dist/cjs/ion-loading.cjs.entry.js +6 -6
- package/dist/cjs/ion-menu_3.cjs.entry.js +11 -11
- package/dist/cjs/ion-modal.cjs.entry.js +9 -9
- package/dist/cjs/ion-nav_2.cjs.entry.js +7 -6
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +4 -4
- package/dist/cjs/ion-picker.cjs.entry.js +3 -3
- package/dist/cjs/ion-popover.cjs.entry.js +7 -7
- package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-range.cjs.entry.js +34 -87
- package/dist/cjs/ion-refresher_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +5 -5
- package/dist/cjs/ion-segment_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-select_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-tab_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +5 -5
- package/dist/cjs/ion-toast.cjs.entry.js +6 -6
- package/dist/cjs/ion-toggle.cjs.entry.js +4 -4
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-8e40c54e.js → ios.transition-523565cb.js} +5 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-597a2479.js → md.transition-7e3cde49.js} +5 -3
- package/dist/cjs/{notch-controller-db0127c4.js → notch-controller-0b7bc5d8.js} +1 -1
- package/dist/cjs/{overlays-8f32c4ca.js → overlays-5a110990.js} +2 -2
- package/dist/cjs/{status-tap-b0bfea34.js → status-tap-8e84a16d.js} +2 -2
- package/dist/cjs/{swipe-back-f93021d8.js → swipe-back-766b4f1c.js} +1 -1
- package/dist/collection/components/checkbox/checkbox.ios.css +5 -65
- package/dist/collection/components/checkbox/checkbox.js +5 -118
- package/dist/collection/components/checkbox/checkbox.md.css +5 -64
- package/dist/collection/components/chip/chip.js +2 -2
- package/dist/collection/components/col/col.js +2 -2
- package/dist/collection/components/content/content.js +3 -3
- package/dist/collection/components/datetime/datetime.js +1 -1
- package/dist/collection/components/datetime-button/datetime-button.js +1 -1
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab-button/fab-button.js +2 -2
- package/dist/collection/components/fab-list/fab-list.js +2 -2
- package/dist/collection/components/footer/footer.js +2 -2
- package/dist/collection/components/grid/grid.js +2 -2
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/img/img.js +1 -1
- package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
- package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
- package/dist/collection/components/input/input.js +3 -3
- 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 +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker/picker.js +2 -2
- package/dist/collection/components/picker-column/picker-column.js +3 -3
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.ios.css +0 -9
- package/dist/collection/components/range/range.js +30 -123
- package/dist/collection/components/range/range.md.css +3 -17
- package/dist/collection/components/range/test/a11y/range.e2e.js +2 -2
- package/dist/collection/components/range/test/range-events.e2e.js +1 -1
- package/dist/collection/components/range/test/range.spec.js +0 -12
- 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 +3 -3
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/utils/transition/index.js +107 -1
- package/dist/docs.json +6 -54
- package/dist/esm/{animation-60dbdd13.js → animation-2b6dd235.js} +1 -1
- package/dist/esm/{framework-delegate-fed7fe7c.js → framework-delegate-e8bffeeb.js} +1 -1
- package/dist/esm/{helpers-c0b9ca37.js → helpers-6f6a912f.js} +1 -1
- package/dist/esm/{index-48209844.js → index-02ec07ff.js} +2 -2
- package/dist/esm/{index-d64f34ea.js → index-1496c7cd.js} +1 -1
- package/dist/esm/{index-4b98143d.js → index-361e1f35.js} +110 -4
- package/dist/esm/{index-eb12ef92.js → index-c14233e6.js} +1 -1
- package/dist/esm/index.js +9 -9
- package/dist/esm/{input-shims-b90ca55f.js → input-shims-dd1a9a98.js} +2 -2
- package/dist/esm/{input.utils-6e9b0046.js → input.utils-5fee9f22.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +4 -4
- package/dist/esm/ion-alert.entry.js +4 -4
- package/dist/esm/ion-app_8.entry.js +20 -20
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-card_5.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +7 -75
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +5 -5
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +9 -9
- package/dist/esm/ion-fab_3.entry.js +7 -7
- package/dist/esm/ion-img.entry.js +2 -2
- package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
- package/dist/esm/ion-input.entry.js +6 -6
- package/dist/esm/ion-item-option_3.entry.js +6 -6
- package/dist/esm/ion-item_8.entry.js +12 -12
- package/dist/esm/ion-loading.entry.js +6 -6
- package/dist/esm/ion-menu_3.entry.js +11 -11
- package/dist/esm/ion-modal.entry.js +9 -9
- package/dist/esm/ion-nav_2.entry.js +7 -6
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +4 -4
- package/dist/esm/ion-picker.entry.js +3 -3
- package/dist/esm/ion-popover.entry.js +7 -7
- package/dist/esm/ion-progress-bar.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +5 -5
- package/dist/esm/ion-range.entry.js +35 -88
- package/dist/esm/ion-refresher_2.entry.js +5 -5
- package/dist/esm/ion-reorder_2.entry.js +4 -4
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +5 -5
- package/dist/esm/ion-segment_2.entry.js +6 -6
- package/dist/esm/ion-select_3.entry.js +8 -8
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +5 -5
- package/dist/esm/ion-tab_2.entry.js +5 -5
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +5 -5
- package/dist/esm/ion-toast.entry.js +6 -6
- package/dist/esm/ion-toggle.entry.js +4 -4
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-7ff7381d.js → ios.transition-8853da89.js} +5 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-28a9a26b.js → md.transition-e0cb5ce0.js} +5 -3
- package/dist/esm/{notch-controller-15d281a4.js → notch-controller-164523aa.js} +1 -1
- package/dist/esm/{overlays-2d8629c6.js → overlays-0552e35b.js} +2 -2
- package/dist/esm/{status-tap-2b335fb7.js → status-tap-11f4b446.js} +2 -2
- package/dist/esm/{swipe-back-7f7620ca.js → swipe-back-8f9b1f85.js} +1 -1
- package/dist/esm-es5/{animation-60dbdd13.js → animation-2b6dd235.js} +1 -1
- package/dist/esm-es5/{framework-delegate-fed7fe7c.js → framework-delegate-e8bffeeb.js} +1 -1
- package/dist/esm-es5/{helpers-c0b9ca37.js → helpers-6f6a912f.js} +1 -1
- package/dist/esm-es5/{index-48209844.js → index-02ec07ff.js} +1 -1
- package/dist/esm-es5/{index-d64f34ea.js → index-1496c7cd.js} +1 -1
- package/dist/esm-es5/index-361e1f35.js +4 -0
- package/dist/esm-es5/{index-eb12ef92.js → index-c14233e6.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{input-shims-b90ca55f.js → input-shims-dd1a9a98.js} +1 -1
- package/dist/esm-es5/{input.utils-6e9b0046.js → input.utils-5fee9f22.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-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.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/ios.transition-8853da89.js +4 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-e0cb5ce0.js +4 -0
- package/dist/esm-es5/{notch-controller-15d281a4.js → notch-controller-164523aa.js} +1 -1
- package/dist/esm-es5/{overlays-2d8629c6.js → overlays-0552e35b.js} +1 -1
- package/dist/esm-es5/{status-tap-2b335fb7.js → status-tap-11f4b446.js} +1 -1
- package/dist/esm-es5/swipe-back-8f9b1f85.js +4 -0
- package/dist/html.html-data.json +0 -8
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-90fcbf72.js → p-012136be.js} +1 -1
- package/dist/ionic/{p-94be3ad7.js → p-023a5686.js} +1 -1
- package/dist/ionic/{p-6f5c2ebd.system.entry.js → p-04625eab.system.entry.js} +1 -1
- package/dist/ionic/{p-229d211f.entry.js → p-060ab03e.entry.js} +1 -1
- package/dist/ionic/{p-7e230af6.entry.js → p-06d1a11d.entry.js} +1 -1
- package/dist/ionic/{p-b46bdb73.system.entry.js → p-07d854da.system.entry.js} +1 -1
- package/dist/ionic/p-0b955124.system.js +1 -1
- package/dist/ionic/{p-c994c528.system.entry.js → p-0be9430d.system.entry.js} +1 -1
- package/dist/ionic/{p-6e8d0527.system.entry.js → p-0ccc3e49.system.entry.js} +1 -1
- package/dist/ionic/{p-02bf61be.entry.js → p-11cce714.entry.js} +1 -1
- package/dist/ionic/p-12c0fd06.system.entry.js +4 -0
- package/dist/ionic/{p-c80c7e90.system.js → p-17907fef.system.js} +1 -1
- package/dist/ionic/{p-ab782835.system.entry.js → p-19280211.system.entry.js} +1 -1
- package/dist/ionic/{p-814aa0b4.system.entry.js → p-1aa383c4.system.entry.js} +1 -1
- package/dist/ionic/{p-3db5b566.system.entry.js → p-1e68eb2d.system.entry.js} +2 -2
- package/dist/ionic/{p-2203ea50.system.entry.js → p-20a899d6.system.entry.js} +1 -1
- package/dist/ionic/p-217cfd24.entry.js +4 -0
- package/dist/ionic/{p-b8e465da.system.entry.js → p-285f83fb.system.entry.js} +1 -1
- package/dist/ionic/{p-dd79d499.system.entry.js → p-2a99d6a2.system.entry.js} +1 -1
- package/dist/ionic/p-316b88f6.system.entry.js +4 -0
- package/dist/ionic/{p-61ba2137.system.js → p-31aad1b8.system.js} +1 -1
- package/dist/ionic/{p-5642acf7.system.entry.js → p-32173330.system.entry.js} +1 -1
- package/dist/ionic/p-328ca978.system.js +4 -0
- package/dist/ionic/{p-aeb2bfc4.entry.js → p-32d31724.entry.js} +1 -1
- package/dist/ionic/{p-a6a15217.system.entry.js → p-381d53fe.system.entry.js} +1 -1
- package/dist/ionic/{p-3348d9b6.entry.js → p-3bce3d27.entry.js} +1 -1
- package/dist/ionic/{p-49cbf8ca.entry.js → p-3f06f873.entry.js} +1 -1
- package/dist/ionic/{p-fd8ced99.system.js → p-41fe384b.system.js} +1 -1
- package/dist/ionic/{p-e3c13a24.system.entry.js → p-4340cc94.system.entry.js} +1 -1
- package/dist/ionic/p-435cdd08.js +4 -0
- package/dist/ionic/{p-c8f93816.system.entry.js → p-437a54c3.system.entry.js} +1 -1
- package/dist/ionic/p-46cc595c.js +4 -0
- package/dist/ionic/{p-8aecc954.system.entry.js → p-487a1d0e.system.entry.js} +1 -1
- package/dist/ionic/{p-b8c685a7.system.js → p-492a99b4.system.js} +1 -1
- package/dist/ionic/p-4b4253b1.js +4 -0
- package/dist/ionic/{p-6ac84217.entry.js → p-4bd628c4.entry.js} +1 -1
- package/dist/ionic/p-4d957d64.system.js +4 -0
- package/dist/ionic/{p-2fbf97f4.system.entry.js → p-4eb51750.system.entry.js} +1 -1
- package/dist/ionic/{p-fd36799d.system.js → p-54325470.system.js} +1 -1
- package/dist/ionic/{p-ec4e0057.entry.js → p-56bb3ae7.entry.js} +1 -1
- package/dist/ionic/{p-c2938ad7.system.entry.js → p-582ff69e.system.entry.js} +1 -1
- package/dist/ionic/p-58cc3084.js +4 -0
- package/dist/ionic/{p-1d1ef635.entry.js → p-5998886f.entry.js} +1 -1
- package/dist/ionic/{p-6028d77a.entry.js → p-5ab08b08.entry.js} +1 -1
- package/dist/ionic/{p-f7d618b7.entry.js → p-5c439e4b.entry.js} +1 -1
- package/dist/ionic/{p-31c495c2.js → p-5d908b54.js} +1 -1
- package/dist/ionic/{p-9ff0b9d7.entry.js → p-5dde8d3f.entry.js} +1 -1
- package/dist/ionic/p-5fb5218b.js +4 -0
- package/dist/ionic/{p-37c33319.system.js → p-5fc74894.system.js} +1 -1
- package/dist/ionic/{p-6871553b.system.js → p-6754e438.system.js} +1 -1
- package/dist/ionic/{p-814129a1.system.entry.js → p-676d3d91.system.entry.js} +1 -1
- package/dist/ionic/{p-9c69a78d.system.entry.js → p-68197628.system.entry.js} +2 -2
- package/dist/ionic/p-683a7d40.entry.js +4 -0
- package/dist/ionic/{p-faea6b57.entry.js → p-68795208.entry.js} +1 -1
- package/dist/ionic/{p-46e78ed6.entry.js → p-6dbfb274.entry.js} +1 -1
- package/dist/ionic/p-70420d55.entry.js +4 -0
- package/dist/ionic/p-705e30ec.system.js +4 -0
- package/dist/ionic/{p-1dc24d13.system.entry.js → p-732bbcac.system.entry.js} +1 -1
- package/dist/ionic/{p-590ecff0.entry.js → p-7550b7cd.entry.js} +1 -1
- package/dist/ionic/{p-743030ee.entry.js → p-75def519.entry.js} +1 -1
- package/dist/ionic/{p-1c6bc252.system.entry.js → p-78f825e5.system.entry.js} +1 -1
- package/dist/ionic/{p-b5839dc2.js → p-7ab579e4.js} +1 -1
- package/dist/ionic/{p-2581c0b4.system.entry.js → p-7c5dc3c2.system.entry.js} +1 -1
- package/dist/ionic/{p-2aa9dbb1.entry.js → p-7f378a2a.entry.js} +1 -1
- package/dist/ionic/{p-ba7347c4.entry.js → p-85752011.entry.js} +1 -1
- package/dist/ionic/{p-73fef0c6.entry.js → p-8705efd9.entry.js} +1 -1
- package/dist/ionic/{p-ce1cf1e0.system.entry.js → p-874981aa.system.entry.js} +1 -1
- package/dist/ionic/{p-44ba1907.system.entry.js → p-878d5d3c.system.entry.js} +2 -2
- package/dist/ionic/p-8ae4d69b.entry.js +4 -0
- package/dist/ionic/{p-a3f572a7.js → p-8b213742.js} +1 -1
- package/dist/ionic/{p-158e5d3f.entry.js → p-8f68a594.entry.js} +1 -1
- package/dist/ionic/p-903305e2.entry.js +4 -0
- package/dist/ionic/{p-ef065e0d.system.entry.js → p-9451f3b1.system.entry.js} +2 -2
- package/dist/ionic/{p-f3c1bbcb.entry.js → p-945d28b0.entry.js} +1 -1
- package/dist/ionic/{p-364fd2ae.system.entry.js → p-95641c85.system.entry.js} +2 -2
- package/dist/ionic/{p-ffee8d11.system.entry.js → p-9705cb8a.system.entry.js} +1 -1
- package/dist/ionic/{p-50b79c48.entry.js → p-982d43c5.entry.js} +1 -1
- package/dist/ionic/{p-b8c4df21.entry.js → p-98d67336.entry.js} +1 -1
- package/dist/ionic/{p-41cd4e22.system.entry.js → p-990b12ed.system.entry.js} +1 -1
- package/dist/ionic/{p-aca86637.system.entry.js → p-990c4ffc.system.entry.js} +1 -1
- package/dist/ionic/{p-156299c1.system.entry.js → p-993e5fa8.system.entry.js} +1 -1
- package/dist/ionic/{p-9393a49f.js → p-9b502efc.js} +1 -1
- package/dist/ionic/{p-68211d11.entry.js → p-9d043a12.entry.js} +1 -1
- package/dist/ionic/{p-2b17eb06.entry.js → p-a1b7245f.entry.js} +1 -1
- package/dist/ionic/p-a1daeb4e.js +4 -0
- package/dist/ionic/{p-e1386ddc.system.entry.js → p-a5d14e60.system.entry.js} +1 -1
- package/dist/ionic/{p-115d351a.entry.js → p-a5dbbe9f.entry.js} +1 -1
- package/dist/ionic/{p-58e3ae88.system.entry.js → p-a9401d22.system.entry.js} +1 -1
- package/dist/ionic/{p-7f90cee1.entry.js → p-ad2a4aea.entry.js} +1 -1
- package/dist/ionic/{p-b253ad7f.js → p-ae965bbd.js} +1 -1
- package/dist/ionic/{p-a69ca607.system.entry.js → p-b0309b53.system.entry.js} +1 -1
- package/dist/ionic/{p-9d10df75.system.entry.js → p-b10f1da7.system.entry.js} +1 -1
- package/dist/ionic/{p-336ef060.entry.js → p-b6f61c31.entry.js} +1 -1
- package/dist/ionic/{p-9954f160.entry.js → p-baa8ce33.entry.js} +1 -1
- package/dist/ionic/{p-ab722722.system.entry.js → p-bb164152.system.entry.js} +1 -1
- package/dist/ionic/{p-416b7011.system.entry.js → p-bb3a4e1c.system.entry.js} +1 -1
- package/dist/ionic/{p-48346946.system.entry.js → p-bc5b1ee8.system.entry.js} +1 -1
- package/dist/ionic/{p-78aade1a.entry.js → p-beae3f98.entry.js} +1 -1
- package/dist/ionic/{p-8ddc00f7.js → p-c7361cf7.js} +1 -1
- package/dist/ionic/{p-6e7f5166.entry.js → p-c7691a0d.entry.js} +1 -1
- package/dist/ionic/{p-e88ae7f0.system.entry.js → p-ca169c31.system.entry.js} +1 -1
- package/dist/ionic/p-cd55d66b.system.js +4 -0
- package/dist/ionic/{p-e4162cae.entry.js → p-cdfd75f6.entry.js} +1 -1
- package/dist/ionic/{p-0bc978ee.entry.js → p-d59bebec.entry.js} +1 -1
- package/dist/ionic/{p-a53d820e.system.entry.js → p-d675b413.system.entry.js} +1 -1
- package/dist/ionic/{p-a0da38e6.system.js → p-d86520e8.system.js} +1 -1
- package/dist/ionic/{p-e2bb92ed.system.js → p-db501e46.system.js} +1 -1
- package/dist/ionic/p-dc0438ee.system.entry.js +4 -0
- package/dist/ionic/{p-23771339.entry.js → p-dd3026cb.entry.js} +1 -1
- package/dist/ionic/{p-dd2392f1.entry.js → p-df0033ae.entry.js} +1 -1
- package/dist/ionic/{p-6c48dd91.system.js → p-e2719d33.system.js} +1 -1
- package/dist/ionic/{p-b853d98f.system.entry.js → p-e30ca961.system.entry.js} +1 -1
- package/dist/ionic/{p-f83192d4.entry.js → p-e3184698.entry.js} +1 -1
- package/dist/ionic/p-ec1b948f.entry.js +4 -0
- package/dist/ionic/{p-0a90cc4d.system.entry.js → p-eddae453.system.entry.js} +1 -1
- package/dist/ionic/{p-77cf63b4.entry.js → p-f461bf4d.entry.js} +1 -1
- package/dist/ionic/{p-3c6f02cf.system.js → p-f4945d0c.system.js} +1 -1
- package/dist/ionic/p-f7dc1a03.entry.js +4 -0
- package/dist/ionic/{p-c2289cd1.js → p-f9680e94.js} +1 -1
- package/dist/ionic/{p-9a71fceb.system.entry.js → p-faa8c9fc.system.entry.js} +1 -1
- package/dist/ionic/{p-6b1b24df.entry.js → p-fb3ff439.entry.js} +1 -1
- package/dist/ionic/{p-62a3c609.system.js → p-fb62e0e9.system.js} +1 -1
- package/dist/ionic/{p-e45248be.entry.js → p-fc3aeb8f.entry.js} +1 -1
- package/dist/ionic/p-fd53465c.system.entry.js +4 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -24
- package/dist/types/components/range/range.d.ts +1 -21
- package/dist/types/components.d.ts +0 -18
- package/dist/types/utils/config.d.ts +6 -0
- package/hydrate/index.js +532 -606
- package/package.json +1 -1
- package/components/form-controller.js +0 -64
- package/dist/cjs/form-controller-7b90d7b7.js +0 -66
- package/dist/collection/components/checkbox/test/legacy/basic/checkbox.e2e.js +0 -68
- package/dist/collection/components/checkbox/test/legacy/indeterminate/checkbox.e2e.js +0 -14
- package/dist/collection/components/range/test/legacy/a11y/range.e2e.js +0 -49
- package/dist/collection/components/range/test/legacy/active-bar-start/range.e2e.js +0 -14
- package/dist/collection/components/range/test/legacy/basic/range.e2e.js +0 -75
- package/dist/collection/components/range/test/legacy/range-events.e2e.js +0 -90
- package/dist/collection/components/range/test/legacy/scroll-target/range.e2e.js +0 -32
- package/dist/esm/form-controller-014aa89f.js +0 -64
- package/dist/esm-es5/form-controller-014aa89f.js +0 -4
- package/dist/esm-es5/index-4b98143d.js +0 -4
- package/dist/esm-es5/ios.transition-7ff7381d.js +0 -4
- package/dist/esm-es5/md.transition-28a9a26b.js +0 -4
- package/dist/esm-es5/swipe-back-7f7620ca.js +0 -4
- package/dist/ionic/p-0d25b742.js +0 -4
- package/dist/ionic/p-19385313.entry.js +0 -4
- package/dist/ionic/p-1b8684c2.system.entry.js +0 -4
- package/dist/ionic/p-25b08bc4.system.js +0 -4
- package/dist/ionic/p-2f6b3478.system.entry.js +0 -4
- package/dist/ionic/p-30d77a91.system.js +0 -4
- package/dist/ionic/p-3eb2da31.js +0 -4
- package/dist/ionic/p-4f777b5e.js +0 -4
- package/dist/ionic/p-54908979.entry.js +0 -4
- package/dist/ionic/p-7d6c9121.entry.js +0 -4
- package/dist/ionic/p-8f1ce253.js +0 -4
- package/dist/ionic/p-90149377.system.entry.js +0 -4
- package/dist/ionic/p-95861049.entry.js +0 -4
- package/dist/ionic/p-95c44e02.system.js +0 -4
- package/dist/ionic/p-b0ba9ea5.entry.js +0 -4
- package/dist/ionic/p-b17f058b.system.js +0 -4
- package/dist/ionic/p-b4d8fe47.js +0 -4
- package/dist/ionic/p-c5c3710c.js +0 -4
- package/dist/ionic/p-c6fef62b.system.js +0 -4
- package/dist/ionic/p-c858f685.js +0 -4
- package/dist/ionic/p-d2670dd3.entry.js +0 -4
- package/dist/ionic/p-d9310104.entry.js +0 -4
- package/dist/ionic/p-fe990e42.system.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -13766,251 +13766,10 @@ class CardTitle {
|
|
|
13766
13766
|
}; }
|
|
13767
13767
|
}
|
|
13768
13768
|
|
|
13769
|
-
|
|
13770
|
-
* Creates a controller that tracks whether a form control is using the legacy or modern syntax. This should be removed when the legacy form control syntax is removed.
|
|
13771
|
-
*
|
|
13772
|
-
* @internal
|
|
13773
|
-
* @prop el: The Ionic form component to reference
|
|
13774
|
-
*/
|
|
13775
|
-
const createLegacyFormController = (el) => {
|
|
13776
|
-
const controlEl = el;
|
|
13777
|
-
let legacyControl;
|
|
13778
|
-
const hasLegacyControl = () => {
|
|
13779
|
-
if (legacyControl === undefined) {
|
|
13780
|
-
/**
|
|
13781
|
-
* Detect if developers are using the legacy form control syntax
|
|
13782
|
-
* so a deprecation warning is logged. This warning can be disabled
|
|
13783
|
-
* by either using the new `label` property or setting `aria-label`
|
|
13784
|
-
* on the control.
|
|
13785
|
-
* Alternatively, components that use a slot for the label
|
|
13786
|
-
* can check to see if the component has slotted text
|
|
13787
|
-
* in the light DOM.
|
|
13788
|
-
*/
|
|
13789
|
-
const hasLabelProp = controlEl.label !== undefined || hasLabelSlot(controlEl);
|
|
13790
|
-
const hasAriaLabelAttribute = controlEl.hasAttribute('aria-label') ||
|
|
13791
|
-
// Shadow DOM form controls cannot use aria-labelledby
|
|
13792
|
-
(controlEl.hasAttribute('aria-labelledby') && controlEl.shadowRoot === null);
|
|
13793
|
-
const legacyItemLabel = findItemLabel(controlEl);
|
|
13794
|
-
/**
|
|
13795
|
-
* Developers can manually opt-out of the modern form markup
|
|
13796
|
-
* by setting `legacy="true"` on components.
|
|
13797
|
-
*/
|
|
13798
|
-
legacyControl =
|
|
13799
|
-
controlEl.legacy === true || (!hasLabelProp && !hasAriaLabelAttribute && legacyItemLabel !== null);
|
|
13800
|
-
}
|
|
13801
|
-
return legacyControl;
|
|
13802
|
-
};
|
|
13803
|
-
return { hasLegacyControl };
|
|
13804
|
-
};
|
|
13805
|
-
const hasLabelSlot = (controlEl) => {
|
|
13806
|
-
/**
|
|
13807
|
-
* Components that have a named label slot
|
|
13808
|
-
* also have other slots, so we need to query for
|
|
13809
|
-
* anything that is explicitly passed to slot="label"
|
|
13810
|
-
*/
|
|
13811
|
-
if (NAMED_LABEL_SLOT_COMPONENTS.includes(controlEl.tagName) && controlEl.querySelector('[slot="label"]') !== null) {
|
|
13812
|
-
return true;
|
|
13813
|
-
}
|
|
13814
|
-
/**
|
|
13815
|
-
* Components that have an unnamed slot for the label
|
|
13816
|
-
* have no other slots, so we can check the textContent
|
|
13817
|
-
* of the element.
|
|
13818
|
-
*/
|
|
13819
|
-
if (UNNAMED_LABEL_SLOT_COMPONENTS.includes(controlEl.tagName) && controlEl.textContent !== '') {
|
|
13820
|
-
return true;
|
|
13821
|
-
}
|
|
13822
|
-
return false;
|
|
13823
|
-
};
|
|
13824
|
-
const NAMED_LABEL_SLOT_COMPONENTS = ['ION-INPUT', 'ION-TEXTAREA', 'ION-SELECT', 'ION-RANGE'];
|
|
13825
|
-
const UNNAMED_LABEL_SLOT_COMPONENTS = ['ION-TOGGLE', 'ION-CHECKBOX', 'ION-RADIO'];
|
|
13826
|
-
|
|
13827
|
-
/**
|
|
13828
|
-
* A utility to calculate the size of an outline notch
|
|
13829
|
-
* width relative to the content passed. This is used in
|
|
13830
|
-
* components such as `ion-select` with `fill="outline"`
|
|
13831
|
-
* where we need to pass slotted HTML content. This is not
|
|
13832
|
-
* needed when rendering plaintext content because we can
|
|
13833
|
-
* render the plaintext again hidden with `opacity: 0` inside
|
|
13834
|
-
* of the notch. As a result we can rely on the intrinsic size
|
|
13835
|
-
* of the element to correctly compute the notch width. We
|
|
13836
|
-
* cannot do this with slotted content because we cannot project
|
|
13837
|
-
* it into 2 places at once.
|
|
13838
|
-
*
|
|
13839
|
-
* @internal
|
|
13840
|
-
* @param el: The host element
|
|
13841
|
-
* @param getNotchSpacerEl: A function that returns a reference to the notch spacer element inside of the component template.
|
|
13842
|
-
* @param getLabelSlot: A function that returns a reference to the slotted content.
|
|
13843
|
-
*/
|
|
13844
|
-
const createNotchController = (el, getNotchSpacerEl, getLabelSlot) => {
|
|
13845
|
-
let notchVisibilityIO;
|
|
13846
|
-
const needsExplicitNotchWidth = () => {
|
|
13847
|
-
const notchSpacerEl = getNotchSpacerEl();
|
|
13848
|
-
if (
|
|
13849
|
-
/**
|
|
13850
|
-
* If the notch is not being used
|
|
13851
|
-
* then we do not need to set the notch width.
|
|
13852
|
-
*/
|
|
13853
|
-
notchSpacerEl === undefined ||
|
|
13854
|
-
/**
|
|
13855
|
-
* If either the label property is being
|
|
13856
|
-
* used or the label slot is not defined,
|
|
13857
|
-
* then we do not need to estimate the notch width.
|
|
13858
|
-
*/
|
|
13859
|
-
el.label !== undefined ||
|
|
13860
|
-
getLabelSlot() === null) {
|
|
13861
|
-
return false;
|
|
13862
|
-
}
|
|
13863
|
-
return true;
|
|
13864
|
-
};
|
|
13865
|
-
const calculateNotchWidth = () => {
|
|
13866
|
-
if (needsExplicitNotchWidth()) {
|
|
13867
|
-
/**
|
|
13868
|
-
* Run this the frame after
|
|
13869
|
-
* the browser has re-painted the host element.
|
|
13870
|
-
* Otherwise, the label element may have a width
|
|
13871
|
-
* of 0 and the IntersectionObserver will be used.
|
|
13872
|
-
*/
|
|
13873
|
-
raf(() => {
|
|
13874
|
-
setNotchWidth();
|
|
13875
|
-
});
|
|
13876
|
-
}
|
|
13877
|
-
};
|
|
13878
|
-
/**
|
|
13879
|
-
* When using a label prop we can render
|
|
13880
|
-
* the label value inside of the notch and
|
|
13881
|
-
* let the browser calculate the size of the notch.
|
|
13882
|
-
* However, we cannot render the label slot in multiple
|
|
13883
|
-
* places so we need to manually calculate the notch dimension
|
|
13884
|
-
* based on the size of the slotted content.
|
|
13885
|
-
*
|
|
13886
|
-
* This function should only be used to set the notch width
|
|
13887
|
-
* on slotted label content. The notch width for label prop
|
|
13888
|
-
* content is automatically calculated based on the
|
|
13889
|
-
* intrinsic size of the label text.
|
|
13890
|
-
*/
|
|
13891
|
-
const setNotchWidth = () => {
|
|
13892
|
-
const notchSpacerEl = getNotchSpacerEl();
|
|
13893
|
-
if (notchSpacerEl === undefined) {
|
|
13894
|
-
return;
|
|
13895
|
-
}
|
|
13896
|
-
if (!needsExplicitNotchWidth()) {
|
|
13897
|
-
notchSpacerEl.style.removeProperty('width');
|
|
13898
|
-
return;
|
|
13899
|
-
}
|
|
13900
|
-
const width = getLabelSlot().scrollWidth;
|
|
13901
|
-
if (
|
|
13902
|
-
/**
|
|
13903
|
-
* If the computed width of the label is 0
|
|
13904
|
-
* and notchSpacerEl's offsetParent is null
|
|
13905
|
-
* then that means the element is hidden.
|
|
13906
|
-
* As a result, we need to wait for the element
|
|
13907
|
-
* to become visible before setting the notch width.
|
|
13908
|
-
*
|
|
13909
|
-
* We do not check el.offsetParent because
|
|
13910
|
-
* that can be null if the host element has
|
|
13911
|
-
* position: fixed applied to it.
|
|
13912
|
-
* notchSpacerEl does not have position: fixed.
|
|
13913
|
-
*/
|
|
13914
|
-
width === 0 &&
|
|
13915
|
-
notchSpacerEl.offsetParent === null &&
|
|
13916
|
-
win$1 !== undefined &&
|
|
13917
|
-
'IntersectionObserver' in win$1) {
|
|
13918
|
-
/**
|
|
13919
|
-
* If there is an IO already attached
|
|
13920
|
-
* then that will update the notch
|
|
13921
|
-
* once the element becomes visible.
|
|
13922
|
-
* As a result, there is no need to create
|
|
13923
|
-
* another one.
|
|
13924
|
-
*/
|
|
13925
|
-
if (notchVisibilityIO !== undefined) {
|
|
13926
|
-
return;
|
|
13927
|
-
}
|
|
13928
|
-
const io = (notchVisibilityIO = new IntersectionObserver((ev) => {
|
|
13929
|
-
/**
|
|
13930
|
-
* If the element is visible then we
|
|
13931
|
-
* can try setting the notch width again.
|
|
13932
|
-
*/
|
|
13933
|
-
if (ev[0].intersectionRatio === 1) {
|
|
13934
|
-
setNotchWidth();
|
|
13935
|
-
io.disconnect();
|
|
13936
|
-
notchVisibilityIO = undefined;
|
|
13937
|
-
}
|
|
13938
|
-
},
|
|
13939
|
-
/**
|
|
13940
|
-
* Set the root to be the host element
|
|
13941
|
-
* This causes the IO callback
|
|
13942
|
-
* to be fired in WebKit as soon as the element
|
|
13943
|
-
* is visible. If we used the default root value
|
|
13944
|
-
* then WebKit would only fire the IO callback
|
|
13945
|
-
* after any animations (such as a modal transition)
|
|
13946
|
-
* finished, and there would potentially be a flicker.
|
|
13947
|
-
*/
|
|
13948
|
-
{ threshold: 0.01, root: el }));
|
|
13949
|
-
io.observe(notchSpacerEl);
|
|
13950
|
-
return;
|
|
13951
|
-
}
|
|
13952
|
-
/**
|
|
13953
|
-
* If the element is visible then we can set the notch width.
|
|
13954
|
-
* The notch is only visible when the label is scaled,
|
|
13955
|
-
* which is why we multiply the width by 0.75 as this is
|
|
13956
|
-
* the same amount the label element is scaled by in the host CSS.
|
|
13957
|
-
* (See $form-control-label-stacked-scale in ionic.globals.scss).
|
|
13958
|
-
*/
|
|
13959
|
-
notchSpacerEl.style.setProperty('width', `${width * 0.75}px`);
|
|
13960
|
-
};
|
|
13961
|
-
const destroy = () => {
|
|
13962
|
-
if (notchVisibilityIO) {
|
|
13963
|
-
notchVisibilityIO.disconnect();
|
|
13964
|
-
notchVisibilityIO = undefined;
|
|
13965
|
-
}
|
|
13966
|
-
};
|
|
13967
|
-
return {
|
|
13968
|
-
calculateNotchWidth,
|
|
13969
|
-
destroy,
|
|
13970
|
-
};
|
|
13971
|
-
};
|
|
13972
|
-
|
|
13973
|
-
/**
|
|
13974
|
-
* Uses the compareWith param to compare two values to determine if they are equal.
|
|
13975
|
-
*
|
|
13976
|
-
* @param currentValue The current value of the control.
|
|
13977
|
-
* @param compareValue The value to compare against.
|
|
13978
|
-
* @param compareWith The function or property name to use to compare values.
|
|
13979
|
-
*/
|
|
13980
|
-
const compareOptions = (currentValue, compareValue, compareWith) => {
|
|
13981
|
-
if (typeof compareWith === 'function') {
|
|
13982
|
-
return compareWith(currentValue, compareValue);
|
|
13983
|
-
}
|
|
13984
|
-
else if (typeof compareWith === 'string') {
|
|
13985
|
-
return currentValue[compareWith] === compareValue[compareWith];
|
|
13986
|
-
}
|
|
13987
|
-
else {
|
|
13988
|
-
return Array.isArray(compareValue) ? compareValue.includes(currentValue) : currentValue === compareValue;
|
|
13989
|
-
}
|
|
13990
|
-
};
|
|
13991
|
-
/**
|
|
13992
|
-
* Compares a value against the current value(s) to determine if it is selected.
|
|
13993
|
-
*
|
|
13994
|
-
* @param currentValue The current value of the control.
|
|
13995
|
-
* @param compareValue The value to compare against.
|
|
13996
|
-
* @param compareWith The function or property name to use to compare values.
|
|
13997
|
-
*/
|
|
13998
|
-
const isOptionSelected = (currentValue, compareValue, compareWith) => {
|
|
13999
|
-
if (currentValue === undefined) {
|
|
14000
|
-
return false;
|
|
14001
|
-
}
|
|
14002
|
-
if (Array.isArray(currentValue)) {
|
|
14003
|
-
return currentValue.some((val) => compareOptions(val, compareValue, compareWith));
|
|
14004
|
-
}
|
|
14005
|
-
else {
|
|
14006
|
-
return compareOptions(currentValue, compareValue, compareWith);
|
|
14007
|
-
}
|
|
14008
|
-
};
|
|
14009
|
-
|
|
14010
|
-
const checkboxIosCss = "/*!@:host*/.sc-ion-checkbox-ios-h{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.in-item)*/.in-item.sc-ion-checkbox-ios-h{width:100%;height:100%}/*!@:host([slot=start]:not(.legacy-checkbox)),\n:host([slot=end]:not(.legacy-checkbox))*/[slot=start].sc-ion-checkbox-ios-h:not(.legacy-checkbox),[slot=end].sc-ion-checkbox-ios-h:not(.legacy-checkbox){width:auto}/*!@:host(.legacy-checkbox)*/.legacy-checkbox.sc-ion-checkbox-ios-h{width:var(--size);height:var(--size)}/*!@:host(.ion-color)*/.ion-color.sc-ion-checkbox-ios-h{--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}/*!@:host(.legacy-checkbox) label*/.legacy-checkbox.sc-ion-checkbox-ios-h label.sc-ion-checkbox-ios{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}/*!@:host(.legacy-checkbox) label*/.legacy-checkbox.sc-ion-checkbox-ios-h label.sc-ion-checkbox-ios{inset-inline-start:0}/*!@:host(.legacy-checkbox) label::-moz-focus-inner*/.legacy-checkbox.sc-ion-checkbox-ios-h label.sc-ion-checkbox-ios::-moz-focus-inner{border:0}/*!@.checkbox-wrapper*/.checkbox-wrapper.sc-ion-checkbox-ios{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}/*!@.label-text-wrapper*/.label-text-wrapper.sc-ion-checkbox-ios{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper*/.in-item.sc-ion-checkbox-ios-h:not(.legacy-checkbox) .label-text-wrapper.sc-ion-checkbox-ios{margin-top:10px;margin-bottom:10px}/*!@:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.checkbox-label-placement-stacked) .native-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .native-wrapper.sc-ion-checkbox-ios{margin-bottom:10px}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-checkbox-ios{display:none}/*!@input*/input.sc-ion-checkbox-ios{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-checkbox-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.checkbox-icon*/.checkbox-icon.sc-ion-checkbox-ios{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:host(.legacy-checkbox) .checkbox-icon*/.legacy-checkbox.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios{display:block;width:100%;height:100%}/*!@:host(:not(.legacy-checkbox)) .checkbox-icon*/.sc-ion-checkbox-ios-h:not(.legacy-checkbox) .checkbox-icon.sc-ion-checkbox-ios{width:var(--size);height:var(--size)}/*!@.checkbox-icon path*/.checkbox-icon.sc-ion-checkbox-ios path.sc-ion-checkbox-ios{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}/*!@:host(.checkbox-justify-space-between) .checkbox-wrapper*/.checkbox-justify-space-between.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-pack:justify;justify-content:space-between}/*!@:host(.checkbox-justify-start) .checkbox-wrapper*/.checkbox-justify-start.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-pack:start;justify-content:start}/*!@:host(.checkbox-justify-end) .checkbox-wrapper*/.checkbox-justify-end.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-pack:end;justify-content:end}/*!@:host(.checkbox-alignment-start) .checkbox-wrapper*/.checkbox-alignment-start.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-align:start;align-items:start}/*!@:host(.checkbox-alignment-center) .checkbox-wrapper*/.checkbox-alignment-center.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-align:center;align-items:center}/*!@:host(.checkbox-label-placement-start) .checkbox-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-direction:row;flex-direction:row}/*!@:host(.checkbox-label-placement-start) .label-text-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-end) .checkbox-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.checkbox-label-placement-end) .label-text-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.checkbox-label-placement-stacked) .checkbox-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-direction:column;flex-direction:column}/*!@:host(.checkbox-label-placement-stacked) .label-text-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-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(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:left top;transform-origin:left top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:center top;transform-origin:center top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}/*!@:host(.checkbox-checked) .checkbox-icon,\n:host(.checkbox-indeterminate) .checkbox-icon*/.checkbox-checked.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios,.checkbox-indeterminate.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}/*!@:host(.checkbox-checked) .checkbox-icon path,\n:host(.checkbox-indeterminate) .checkbox-icon path*/.checkbox-checked.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios path.sc-ion-checkbox-ios,.checkbox-indeterminate.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios path.sc-ion-checkbox-ios{opacity:1}/*!@:host(.checkbox-disabled)*/.checkbox-disabled.sc-ion-checkbox-ios-h{pointer-events:none}/*!@:host*/.sc-ion-checkbox-ios-h{--border-radius:50%;--border-width:0.125rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.375rem, 55.836px);--checkmark-width:1.5px}/*!@:host(.checkbox-disabled)*/.checkbox-disabled.sc-ion-checkbox-ios-h{opacity:0.3}/*!@:host(.in-item.legacy-checkbox)*/.in-item.legacy-checkbox.sc-ion-checkbox-ios-h{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}/*!@:host(.in-item.legacy-checkbox[slot=start])*/.in-item.legacy-checkbox[slot=start].sc-ion-checkbox-ios-h{-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:8px;margin-bottom:8px}";
|
|
13769
|
+
const checkboxIosCss = "/*!@:host*/.sc-ion-checkbox-ios-h{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.in-item)*/.in-item.sc-ion-checkbox-ios-h{width:100%;height:100%}/*!@:host([slot=start]),\n:host([slot=end])*/[slot=start].sc-ion-checkbox-ios-h,[slot=end].sc-ion-checkbox-ios-h{width:auto}/*!@:host(.ion-color)*/.ion-color.sc-ion-checkbox-ios-h{--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}/*!@.checkbox-wrapper*/.checkbox-wrapper.sc-ion-checkbox-ios{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}/*!@.label-text-wrapper*/.label-text-wrapper.sc-ion-checkbox-ios{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@:host(.in-item) .label-text-wrapper*/.in-item.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{margin-top:10px;margin-bottom:10px}/*!@:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.checkbox-label-placement-stacked) .native-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .native-wrapper.sc-ion-checkbox-ios{margin-bottom:10px}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-checkbox-ios{display:none}/*!@input*/input.sc-ion-checkbox-ios{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-checkbox-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.checkbox-icon*/.checkbox-icon.sc-ion-checkbox-ios{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.checkbox-icon path*/.checkbox-icon.sc-ion-checkbox-ios path.sc-ion-checkbox-ios{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}/*!@:host(.checkbox-justify-space-between) .checkbox-wrapper*/.checkbox-justify-space-between.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-pack:justify;justify-content:space-between}/*!@:host(.checkbox-justify-start) .checkbox-wrapper*/.checkbox-justify-start.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-pack:start;justify-content:start}/*!@:host(.checkbox-justify-end) .checkbox-wrapper*/.checkbox-justify-end.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-pack:end;justify-content:end}/*!@:host(.checkbox-alignment-start) .checkbox-wrapper*/.checkbox-alignment-start.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-align:start;align-items:start}/*!@:host(.checkbox-alignment-center) .checkbox-wrapper*/.checkbox-alignment-center.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-align:center;align-items:center}/*!@:host(.checkbox-label-placement-start) .checkbox-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-direction:row;flex-direction:row}/*!@:host(.checkbox-label-placement-start) .label-text-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-end) .checkbox-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.checkbox-label-placement-end) .label-text-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.checkbox-label-placement-stacked) .checkbox-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .checkbox-wrapper.sc-ion-checkbox-ios{-ms-flex-direction:column;flex-direction:column}/*!@:host(.checkbox-label-placement-stacked) .label-text-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-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(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:left top;transform-origin:left top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-ios-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:center top;transform-origin:center top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .sc-ion-checkbox-ios-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-ios-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-ios{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}/*!@:host(.checkbox-checked) .checkbox-icon,\n:host(.checkbox-indeterminate) .checkbox-icon*/.checkbox-checked.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios,.checkbox-indeterminate.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}/*!@:host(.checkbox-checked) .checkbox-icon path,\n:host(.checkbox-indeterminate) .checkbox-icon path*/.checkbox-checked.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios path.sc-ion-checkbox-ios,.checkbox-indeterminate.sc-ion-checkbox-ios-h .checkbox-icon.sc-ion-checkbox-ios path.sc-ion-checkbox-ios{opacity:1}/*!@:host(.checkbox-disabled)*/.checkbox-disabled.sc-ion-checkbox-ios-h{pointer-events:none}/*!@:host*/.sc-ion-checkbox-ios-h{--border-radius:50%;--border-width:0.125rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.375rem, 55.836px);--checkmark-width:1.5px}/*!@:host(.checkbox-disabled)*/.checkbox-disabled.sc-ion-checkbox-ios-h{opacity:0.3}";
|
|
14011
13770
|
var IonCheckboxIosStyle0 = checkboxIosCss;
|
|
14012
13771
|
|
|
14013
|
-
const checkboxMdCss = "/*!@:host*/.sc-ion-checkbox-md-h{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.in-item)*/.in-item.sc-ion-checkbox-md-h{width:100%;height:100%}/*!@:host([slot=start]:not(.legacy-checkbox)),\n:host([slot=end]:not(.legacy-checkbox))*/[slot=start].sc-ion-checkbox-md-h:not(.legacy-checkbox),[slot=end].sc-ion-checkbox-md-h:not(.legacy-checkbox){width:auto}/*!@:host(.legacy-checkbox)*/.legacy-checkbox.sc-ion-checkbox-md-h{width:var(--size);height:var(--size)}/*!@:host(.ion-color)*/.ion-color.sc-ion-checkbox-md-h{--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}/*!@:host(.legacy-checkbox) label*/.legacy-checkbox.sc-ion-checkbox-md-h label.sc-ion-checkbox-md{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}/*!@:host(.legacy-checkbox) label*/.legacy-checkbox.sc-ion-checkbox-md-h label.sc-ion-checkbox-md{inset-inline-start:0}/*!@:host(.legacy-checkbox) label::-moz-focus-inner*/.legacy-checkbox.sc-ion-checkbox-md-h label.sc-ion-checkbox-md::-moz-focus-inner{border:0}/*!@.checkbox-wrapper*/.checkbox-wrapper.sc-ion-checkbox-md{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}/*!@.label-text-wrapper*/.label-text-wrapper.sc-ion-checkbox-md{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper*/.in-item.sc-ion-checkbox-md-h:not(.legacy-checkbox) .label-text-wrapper.sc-ion-checkbox-md{margin-top:10px;margin-bottom:10px}/*!@:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.checkbox-label-placement-stacked) .native-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .native-wrapper.sc-ion-checkbox-md{margin-bottom:10px}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-checkbox-md{display:none}/*!@input*/input.sc-ion-checkbox-md{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-checkbox-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.checkbox-icon*/.checkbox-icon.sc-ion-checkbox-md{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}/*!@:host(.legacy-checkbox) .checkbox-icon*/.legacy-checkbox.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md{display:block;width:100%;height:100%}/*!@:host(:not(.legacy-checkbox)) .checkbox-icon*/.sc-ion-checkbox-md-h:not(.legacy-checkbox) .checkbox-icon.sc-ion-checkbox-md{width:var(--size);height:var(--size)}/*!@.checkbox-icon path*/.checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}/*!@:host(.checkbox-justify-space-between) .checkbox-wrapper*/.checkbox-justify-space-between.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-pack:justify;justify-content:space-between}/*!@:host(.checkbox-justify-start) .checkbox-wrapper*/.checkbox-justify-start.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-pack:start;justify-content:start}/*!@:host(.checkbox-justify-end) .checkbox-wrapper*/.checkbox-justify-end.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-pack:end;justify-content:end}/*!@:host(.checkbox-alignment-start) .checkbox-wrapper*/.checkbox-alignment-start.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-align:start;align-items:start}/*!@:host(.checkbox-alignment-center) .checkbox-wrapper*/.checkbox-alignment-center.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-align:center;align-items:center}/*!@:host(.checkbox-label-placement-start) .checkbox-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-direction:row;flex-direction:row}/*!@:host(.checkbox-label-placement-start) .label-text-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-end) .checkbox-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.checkbox-label-placement-end) .label-text-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.checkbox-label-placement-stacked) .checkbox-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-direction:column;flex-direction:column}/*!@:host(.checkbox-label-placement-stacked) .label-text-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-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(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:left top;transform-origin:left top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:center top;transform-origin:center top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}/*!@:host(.checkbox-checked) .checkbox-icon,\n:host(.checkbox-indeterminate) .checkbox-icon*/.checkbox-checked.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md,.checkbox-indeterminate.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}/*!@:host(.checkbox-checked) .checkbox-icon path,\n:host(.checkbox-indeterminate) .checkbox-icon path*/.checkbox-checked.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md,.checkbox-indeterminate.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{opacity:1}/*!@:host(.checkbox-disabled)*/.checkbox-disabled.sc-ion-checkbox-md-h{pointer-events:none}/*!@:host*/.sc-ion-checkbox-md-h{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}/*!@.checkbox-icon path*/.checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{stroke-dasharray:30;stroke-dashoffset:30}/*!@:host(.checkbox-checked) .checkbox-icon path,\n:host(.checkbox-indeterminate) .checkbox-icon path*/.checkbox-checked.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md,.checkbox-indeterminate.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}/*!@:host(.legacy-checkbox.checkbox-disabled),\n:host(.checkbox-disabled) .label-text-wrapper*/.legacy-checkbox.checkbox-disabled.sc-ion-checkbox-md-h,.checkbox-disabled.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{opacity:0.38}/*!@:host(.checkbox-disabled) .native-wrapper*/.checkbox-disabled.sc-ion-checkbox-md-h .native-wrapper.sc-ion-checkbox-md{opacity:0.63}/*!@:host(.in-item.legacy-checkbox)*/.in-item.legacy-checkbox.sc-ion-checkbox-md-h{margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}/*!@:host(.in-item.legacy-checkbox[slot=start])*/.in-item.legacy-checkbox[slot=start].sc-ion-checkbox-md-h{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:18px;margin-bottom:18px}";
|
|
13772
|
+
const checkboxMdCss = "/*!@:host*/.sc-ion-checkbox-md-h{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.in-item)*/.in-item.sc-ion-checkbox-md-h{width:100%;height:100%}/*!@:host([slot=start]),\n:host([slot=end])*/[slot=start].sc-ion-checkbox-md-h,[slot=end].sc-ion-checkbox-md-h{width:auto}/*!@:host(.ion-color)*/.ion-color.sc-ion-checkbox-md-h{--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}/*!@.checkbox-wrapper*/.checkbox-wrapper.sc-ion-checkbox-md{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}/*!@.label-text-wrapper*/.label-text-wrapper.sc-ion-checkbox-md{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@:host(.in-item) .label-text-wrapper*/.in-item.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{margin-top:10px;margin-bottom:10px}/*!@:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.checkbox-label-placement-stacked) .native-wrapper*/.in-item.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .native-wrapper.sc-ion-checkbox-md{margin-bottom:10px}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-checkbox-md{display:none}/*!@input*/input.sc-ion-checkbox-md{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-checkbox-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}/*!@.checkbox-icon*/.checkbox-icon.sc-ion-checkbox-md{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.checkbox-icon path*/.checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}/*!@:host(.checkbox-justify-space-between) .checkbox-wrapper*/.checkbox-justify-space-between.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-pack:justify;justify-content:space-between}/*!@:host(.checkbox-justify-start) .checkbox-wrapper*/.checkbox-justify-start.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-pack:start;justify-content:start}/*!@:host(.checkbox-justify-end) .checkbox-wrapper*/.checkbox-justify-end.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-pack:end;justify-content:end}/*!@:host(.checkbox-alignment-start) .checkbox-wrapper*/.checkbox-alignment-start.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-align:start;align-items:start}/*!@:host(.checkbox-alignment-center) .checkbox-wrapper*/.checkbox-alignment-center.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-align:center;align-items:center}/*!@:host(.checkbox-label-placement-start) .checkbox-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-direction:row;flex-direction:row}/*!@:host(.checkbox-label-placement-start) .label-text-wrapper*/.checkbox-label-placement-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-end) .checkbox-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.checkbox-label-placement-end) .label-text-wrapper*/.checkbox-label-placement-end.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}/*!@:host(.checkbox-label-placement-fixed) .label-text-wrapper*/.checkbox-label-placement-fixed.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.checkbox-label-placement-stacked) .checkbox-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .checkbox-wrapper.sc-ion-checkbox-md{-ms-flex-direction:column;flex-direction:column}/*!@:host(.checkbox-label-placement-stacked) .label-text-wrapper*/.checkbox-label-placement-stacked.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-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(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:left top;transform-origin:left top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-start.sc-ion-checkbox-md-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:center top;transform-origin:center top}/*!@:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper, :host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper*/[dir=rtl].sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .sc-ion-checkbox-md-h -no-combinator.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl].checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md,[dir=rtl] .checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){/*!@:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper*/.checkbox-label-placement-stacked.checkbox-alignment-center.sc-ion-checkbox-md-h:dir(rtl) .label-text-wrapper.sc-ion-checkbox-md{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}/*!@:host(.checkbox-checked) .checkbox-icon,\n:host(.checkbox-indeterminate) .checkbox-icon*/.checkbox-checked.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md,.checkbox-indeterminate.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}/*!@:host(.checkbox-checked) .checkbox-icon path,\n:host(.checkbox-indeterminate) .checkbox-icon path*/.checkbox-checked.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md,.checkbox-indeterminate.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{opacity:1}/*!@:host(.checkbox-disabled)*/.checkbox-disabled.sc-ion-checkbox-md-h{pointer-events:none}/*!@:host*/.sc-ion-checkbox-md-h{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}/*!@.checkbox-icon path*/.checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{stroke-dasharray:30;stroke-dashoffset:30}/*!@:host(.checkbox-checked) .checkbox-icon path,\n:host(.checkbox-indeterminate) .checkbox-icon path*/.checkbox-checked.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md,.checkbox-indeterminate.sc-ion-checkbox-md-h .checkbox-icon.sc-ion-checkbox-md path.sc-ion-checkbox-md{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}/*!@:host(.checkbox-disabled) .label-text-wrapper*/.checkbox-disabled.sc-ion-checkbox-md-h .label-text-wrapper.sc-ion-checkbox-md{opacity:0.38}/*!@:host(.checkbox-disabled) .native-wrapper*/.checkbox-disabled.sc-ion-checkbox-md-h .native-wrapper.sc-ion-checkbox-md{opacity:0.63}";
|
|
14014
13773
|
var IonCheckboxMdStyle0 = checkboxMdCss;
|
|
14015
13774
|
|
|
14016
13775
|
/**
|
|
@@ -14028,12 +13787,8 @@ class Checkbox {
|
|
|
14028
13787
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
14029
13788
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
14030
13789
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
14031
|
-
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
14032
13790
|
this.inputId = `ion-cb-${checkboxIds++}`;
|
|
14033
13791
|
this.inheritedAttributes = {};
|
|
14034
|
-
// TODO(FW-3100): remove this
|
|
14035
|
-
// This flag ensures we log the deprecation warning at most once.
|
|
14036
|
-
this.hasLoggedDeprecationWarning = false;
|
|
14037
13792
|
/**
|
|
14038
13793
|
* Sets the checked property and emits
|
|
14039
13794
|
* the ionChange event. Use this to update the
|
|
@@ -14074,49 +13829,21 @@ class Checkbox {
|
|
|
14074
13829
|
this.labelPlacement = 'start';
|
|
14075
13830
|
this.justify = 'space-between';
|
|
14076
13831
|
this.alignment = 'center';
|
|
14077
|
-
this.legacy = undefined;
|
|
14078
|
-
}
|
|
14079
|
-
connectedCallback() {
|
|
14080
|
-
this.legacyFormController = createLegacyFormController(this.el); // TODO(FW-3100): remove this
|
|
14081
13832
|
}
|
|
14082
13833
|
componentWillLoad() {
|
|
14083
|
-
this.
|
|
14084
|
-
// TODO(FW-3100): remove check
|
|
14085
|
-
if (!this.legacyFormController.hasLegacyControl()) {
|
|
14086
|
-
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
14087
|
-
}
|
|
14088
|
-
}
|
|
14089
|
-
styleChanged() {
|
|
14090
|
-
this.emitStyle();
|
|
14091
|
-
}
|
|
14092
|
-
emitStyle() {
|
|
14093
|
-
const style = {
|
|
14094
|
-
'interactive-disabled': this.disabled,
|
|
14095
|
-
// TODO(FW-3100): remove this
|
|
14096
|
-
legacy: !!this.legacy,
|
|
14097
|
-
};
|
|
14098
|
-
// TODO(FW-3100): remove this
|
|
14099
|
-
if (this.legacyFormController.hasLegacyControl()) {
|
|
14100
|
-
style['checkbox-checked'] = this.checked;
|
|
14101
|
-
}
|
|
14102
|
-
this.ionStyle.emit(style);
|
|
13834
|
+
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
14103
13835
|
}
|
|
14104
13836
|
setFocus() {
|
|
14105
13837
|
if (this.focusEl) {
|
|
14106
13838
|
this.focusEl.focus();
|
|
14107
13839
|
}
|
|
14108
13840
|
}
|
|
14109
|
-
// TODO(FW-3100): run contents of renderCheckbox directly instead
|
|
14110
13841
|
render() {
|
|
14111
|
-
const { legacyFormController } = this;
|
|
14112
|
-
return legacyFormController.hasLegacyControl() ? this.renderLegacyCheckbox() : this.renderCheckbox();
|
|
14113
|
-
}
|
|
14114
|
-
renderCheckbox() {
|
|
14115
13842
|
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment, } = this;
|
|
14116
13843
|
const mode = getIonMode$1(this);
|
|
14117
13844
|
const path = getSVGPath(mode, indeterminate);
|
|
14118
13845
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
14119
|
-
return (hAsync(Host, { class: createColorClasses$1(color, {
|
|
13846
|
+
return (hAsync(Host, { key: 'be30606f48a3adf62eddc68b7d7f908d0c46f96d', class: createColorClasses$1(color, {
|
|
14120
13847
|
[mode]: true,
|
|
14121
13848
|
'in-item': hostContext('ion-item', el),
|
|
14122
13849
|
'checkbox-checked': checked,
|
|
@@ -14126,40 +13853,10 @@ class Checkbox {
|
|
|
14126
13853
|
[`checkbox-justify-${justify}`]: true,
|
|
14127
13854
|
[`checkbox-alignment-${alignment}`]: true,
|
|
14128
13855
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
14129
|
-
}), onClick: this.onClick }, hAsync("label", { class: "checkbox-wrapper" }, hAsync("input", Object.assign({ type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), hAsync("div", { class: {
|
|
13856
|
+
}), onClick: this.onClick }, hAsync("label", { key: '96c3f85a0ae6970743f6965d614033426cf2b163', class: "checkbox-wrapper" }, hAsync("input", Object.assign({ key: 'd998089218bcb6065228095e38af936eebfa3780', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), hAsync("div", { key: 'f2374957e47eec899aa2ca49ede4cfdf8397fc18', class: {
|
|
14130
13857
|
'label-text-wrapper': true,
|
|
14131
13858
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
14132
|
-
}, part: "label" }, hAsync("slot",
|
|
14133
|
-
}
|
|
14134
|
-
// TODO(FW-3100): remove this
|
|
14135
|
-
renderLegacyCheckbox() {
|
|
14136
|
-
if (!this.hasLoggedDeprecationWarning) {
|
|
14137
|
-
printIonWarning(`ion-checkbox now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.
|
|
14138
|
-
|
|
14139
|
-
Example: <ion-checkbox>Label</ion-checkbox>
|
|
14140
|
-
Example with aria-label: <ion-checkbox aria-label="Label"></ion-checkbox>
|
|
14141
|
-
|
|
14142
|
-
Developers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.`, this.el);
|
|
14143
|
-
if (this.legacy) {
|
|
14144
|
-
printIonWarning(`ion-checkbox is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.
|
|
14145
|
-
Developers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.`, this.el);
|
|
14146
|
-
}
|
|
14147
|
-
this.hasLoggedDeprecationWarning = true;
|
|
14148
|
-
}
|
|
14149
|
-
const { color, checked, disabled, el, getSVGPath, indeterminate, inputId, name, value } = this;
|
|
14150
|
-
const mode = getIonMode$1(this);
|
|
14151
|
-
const { label, labelId, labelText } = getAriaLabel(el, inputId);
|
|
14152
|
-
const path = getSVGPath(mode, indeterminate);
|
|
14153
|
-
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
14154
|
-
return (hAsync(Host, { "aria-labelledby": label ? labelId : null, "aria-checked": `${checked}`, "aria-hidden": disabled ? 'true' : null, role: "checkbox", class: createColorClasses$1(color, {
|
|
14155
|
-
[mode]: true,
|
|
14156
|
-
'in-item': hostContext('ion-item', el),
|
|
14157
|
-
'checkbox-checked': checked,
|
|
14158
|
-
'checkbox-disabled': disabled,
|
|
14159
|
-
'checkbox-indeterminate': indeterminate,
|
|
14160
|
-
'legacy-checkbox': true,
|
|
14161
|
-
interactive: true,
|
|
14162
|
-
}), onClick: this.onClick }, hAsync("svg", { class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path), hAsync("label", { htmlFor: inputId }, labelText), hAsync("input", { type: "checkbox", "aria-checked": `${checked}`, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) })));
|
|
13859
|
+
}, part: "label" }, hAsync("slot", { key: '3bd6bc289c26e96cc0b4a8b39154fec1d02ba426' })), hAsync("div", { key: '30397663226d628859d3814f9dc53ee4aad57de5', class: "native-wrapper" }, hAsync("svg", { key: '53374f787677adfdb3b693ead3f8d86412127c10', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
|
|
14163
13860
|
}
|
|
14164
13861
|
getSVGPath(mode, indeterminate) {
|
|
14165
13862
|
let path = indeterminate ? (hAsync("path", { d: "M6 12L18 12", part: "mark" })) : (hAsync("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
@@ -14169,10 +13866,6 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
14169
13866
|
return path;
|
|
14170
13867
|
}
|
|
14171
13868
|
get el() { return getElement(this); }
|
|
14172
|
-
static get watchers() { return {
|
|
14173
|
-
"checked": ["styleChanged"],
|
|
14174
|
-
"disabled": ["styleChanged"]
|
|
14175
|
-
}; }
|
|
14176
13869
|
static get style() { return {
|
|
14177
13870
|
ios: IonCheckboxIosStyle0,
|
|
14178
13871
|
md: IonCheckboxMdStyle0
|
|
@@ -14189,8 +13882,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
14189
13882
|
"value": [8],
|
|
14190
13883
|
"labelPlacement": [1, "label-placement"],
|
|
14191
13884
|
"justify": [1],
|
|
14192
|
-
"alignment": [1]
|
|
14193
|
-
"legacy": [4]
|
|
13885
|
+
"alignment": [1]
|
|
14194
13886
|
},
|
|
14195
13887
|
"$listeners$": undefined,
|
|
14196
13888
|
"$lazyBundleId$": "-",
|
|
@@ -14217,12 +13909,12 @@ class Chip {
|
|
|
14217
13909
|
}
|
|
14218
13910
|
render() {
|
|
14219
13911
|
const mode = getIonMode$1(this);
|
|
14220
|
-
return (hAsync(Host, { key: '
|
|
13912
|
+
return (hAsync(Host, { key: '4c8c83eefc650c00f2c515937df63094f9468bbd', "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
14221
13913
|
[mode]: true,
|
|
14222
13914
|
'chip-outline': this.outline,
|
|
14223
13915
|
'chip-disabled': this.disabled,
|
|
14224
13916
|
'ion-activatable': true,
|
|
14225
|
-
}) }, hAsync("slot", { key: '
|
|
13917
|
+
}) }, hAsync("slot", { key: '5a94dafd29f2ea7255ba2d4fa173f5eff92146aa' }), mode === 'md' && hAsync("ion-ripple-effect", null)));
|
|
14226
13918
|
}
|
|
14227
13919
|
static get style() { return {
|
|
14228
13920
|
ios: IonChipIosStyle0,
|
|
@@ -14373,9 +14065,9 @@ class Col {
|
|
|
14373
14065
|
render() {
|
|
14374
14066
|
const isRTL = document.dir === 'rtl';
|
|
14375
14067
|
const mode = getIonMode$1(this);
|
|
14376
|
-
return (hAsync(Host, { key: '
|
|
14068
|
+
return (hAsync(Host, { key: '8bb465c85b64001d6613e8b38cd4f4fd2b4c4a90', class: {
|
|
14377
14069
|
[mode]: true,
|
|
14378
|
-
}, style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, hAsync("slot", { key: '
|
|
14070
|
+
}, style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, hAsync("slot", { key: 'fe9f9ce55c86771638413457a0d5dcd9dce29217' })));
|
|
14379
14071
|
}
|
|
14380
14072
|
static get style() { return IonColStyle0; }
|
|
14381
14073
|
static get cmpMeta() { return {
|
|
@@ -14744,7 +14436,7 @@ class Content {
|
|
|
14744
14436
|
const forceOverscroll = this.shouldForceOverscroll();
|
|
14745
14437
|
const transitionShadow = mode === 'ios';
|
|
14746
14438
|
this.resize();
|
|
14747
|
-
return (hAsync(Host, { key: '
|
|
14439
|
+
return (hAsync(Host, { key: '5b6d5c2b8b91ac84dcdf6cf6178a8f7fb970ca00', role: isMainContent ? 'main' : undefined, class: createColorClasses$1(this.color, {
|
|
14748
14440
|
[mode]: true,
|
|
14749
14441
|
'content-sizing': hostContext('ion-popover', this.el),
|
|
14750
14442
|
overscroll: forceOverscroll,
|
|
@@ -14752,12 +14444,12 @@ class Content {
|
|
|
14752
14444
|
}), style: {
|
|
14753
14445
|
'--offset-top': `${this.cTop}px`,
|
|
14754
14446
|
'--offset-bottom': `${this.cBottom}px`,
|
|
14755
|
-
} }, hAsync("div", { key: '
|
|
14447
|
+
} }, hAsync("div", { key: '4fa58c187e2c2f7f3bc365f485dd80dc0c059d8b', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), hAsync("div", { key: 'f595d0d59e0957acdebd0b16ae79e88da8ed973d', class: {
|
|
14756
14448
|
'inner-scroll': true,
|
|
14757
14449
|
'scroll-x': scrollX,
|
|
14758
14450
|
'scroll-y': scrollY,
|
|
14759
14451
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
14760
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, hAsync("slot", { key: '
|
|
14452
|
+
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, hAsync("slot", { key: '1aceb64f45d13574ea1e20c0885191ced5a0b961' })), transitionShadow ? (hAsync("div", { class: "transition-effect" }, hAsync("div", { class: "transition-cover" }), hAsync("div", { class: "transition-shadow" }))) : null, hAsync("slot", { key: 'd6c4f4d9001da024ec652358f7ae880db75d3a4e', name: "fixed" })));
|
|
14761
14453
|
}
|
|
14762
14454
|
get el() { return getElement(this); }
|
|
14763
14455
|
static get style() { return IonContentStyle0; }
|
|
@@ -18233,7 +17925,7 @@ class Datetime {
|
|
|
18233
17925
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
18234
17926
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
18235
17927
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
18236
|
-
return (hAsync(Host, { key: '
|
|
17928
|
+
return (hAsync(Host, { key: '2e5ff577327018558a145cff23f03661c2d19c41', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
|
|
18237
17929
|
[mode]: true,
|
|
18238
17930
|
['datetime-readonly']: readonly,
|
|
18239
17931
|
['datetime-disabled']: disabled,
|
|
@@ -18645,7 +18337,7 @@ class DatetimeButton {
|
|
|
18645
18337
|
render() {
|
|
18646
18338
|
const { color, dateText, timeText, selectedButton, datetimeActive, disabled } = this;
|
|
18647
18339
|
const mode = getIonMode$1(this);
|
|
18648
|
-
return (hAsync(Host, { key: '
|
|
18340
|
+
return (hAsync(Host, { key: 'cff9c4cbabf76a415b3785e9fa6cc682fddcec54', class: createColorClasses$1(color, {
|
|
18649
18341
|
[mode]: true,
|
|
18650
18342
|
[`${selectedButton}-active`]: datetimeActive,
|
|
18651
18343
|
['datetime-button-disabled']: disabled,
|
|
@@ -18723,12 +18415,12 @@ class Fab {
|
|
|
18723
18415
|
render() {
|
|
18724
18416
|
const { horizontal, vertical, edge } = this;
|
|
18725
18417
|
const mode = getIonMode$1(this);
|
|
18726
|
-
return (hAsync(Host, { key: '
|
|
18418
|
+
return (hAsync(Host, { key: '295e4b79449ff102d54b4a415487a26144a47839', class: {
|
|
18727
18419
|
[mode]: true,
|
|
18728
18420
|
[`fab-horizontal-${horizontal}`]: horizontal !== undefined,
|
|
18729
18421
|
[`fab-vertical-${vertical}`]: vertical !== undefined,
|
|
18730
18422
|
'fab-edge': edge,
|
|
18731
|
-
} }, hAsync("slot", { key: '
|
|
18423
|
+
} }, hAsync("slot", { key: 'a41871eb5d0a8c6315ba7012cef0e4dfc1126c9d' })));
|
|
18732
18424
|
}
|
|
18733
18425
|
get el() { return getElement(this); }
|
|
18734
18426
|
static get watchers() { return {
|
|
@@ -18818,7 +18510,7 @@ class FabButton {
|
|
|
18818
18510
|
rel: this.rel,
|
|
18819
18511
|
target: this.target,
|
|
18820
18512
|
};
|
|
18821
|
-
return (hAsync(Host, { key: '
|
|
18513
|
+
return (hAsync(Host, { key: 'bfc553a86d54b665039512e93c83865232431e61', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
|
|
18822
18514
|
[mode]: true,
|
|
18823
18515
|
'fab-button-in-list': inList,
|
|
18824
18516
|
'fab-button-translucent-in-list': inList && translucent,
|
|
@@ -18829,7 +18521,7 @@ class FabButton {
|
|
|
18829
18521
|
'ion-activatable': true,
|
|
18830
18522
|
'ion-focusable': true,
|
|
18831
18523
|
[`fab-button-${size}`]: size !== undefined,
|
|
18832
|
-
}) }, hAsync(TagType, Object.assign({ key: '
|
|
18524
|
+
}) }, hAsync(TagType, Object.assign({ key: '08821f166159c1c0c08a936f8db0cc5b8c121b6b' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => openURL(href, ev, this.routerDirection, this.routerAnimation) }, inheritedAttributes), hAsync("ion-icon", { key: '5b369ce677bb08c2972489be8abad035f2074fee', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), hAsync("span", { key: '6b61a3242e6d6ec49e157fe6c7a64b8445e6de3b', class: "button-inner" }, hAsync("slot", { key: 'f6450e5caabb8becd48425547246b6edf96eb4f8' })), mode === 'md' && hAsync("ion-ripple-effect", null))));
|
|
18833
18525
|
}
|
|
18834
18526
|
get el() { return getElement(this); }
|
|
18835
18527
|
static get style() { return {
|
|
@@ -18880,11 +18572,11 @@ class FabList {
|
|
|
18880
18572
|
}
|
|
18881
18573
|
render() {
|
|
18882
18574
|
const mode = getIonMode$1(this);
|
|
18883
|
-
return (hAsync(Host, { key: '
|
|
18575
|
+
return (hAsync(Host, { key: '8eca9c8c4f7febe3e0b44604a3854480f5f9e697', class: {
|
|
18884
18576
|
[mode]: true,
|
|
18885
18577
|
'fab-list-active': this.activated,
|
|
18886
18578
|
[`fab-list-side-${this.side}`]: true,
|
|
18887
|
-
} }, hAsync("slot", { key: '
|
|
18579
|
+
} }, hAsync("slot", { key: '3be8055bbf0dbb928d712e950f6184bd173a2d1e' })));
|
|
18888
18580
|
}
|
|
18889
18581
|
get el() { return getElement(this); }
|
|
18890
18582
|
static get watchers() { return {
|
|
@@ -19336,7 +19028,7 @@ class Footer {
|
|
|
19336
19028
|
const mode = getIonMode$1(this);
|
|
19337
19029
|
const tabs = this.el.closest('ion-tabs');
|
|
19338
19030
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
19339
|
-
return (hAsync(Host, { key: '
|
|
19031
|
+
return (hAsync(Host, { key: 'c86a1139e5004bb523b2ec02ff3056bb392070d8', role: "contentinfo", class: {
|
|
19340
19032
|
[mode]: true,
|
|
19341
19033
|
// Used internally for styling
|
|
19342
19034
|
[`footer-${mode}`]: true,
|
|
@@ -19344,7 +19036,7 @@ class Footer {
|
|
|
19344
19036
|
[`footer-translucent-${mode}`]: translucent,
|
|
19345
19037
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
19346
19038
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
19347
|
-
} }, mode === 'ios' && translucent && hAsync("div", { class: "footer-background" }), hAsync("slot", { key: '
|
|
19039
|
+
} }, mode === 'ios' && translucent && hAsync("div", { class: "footer-background" }), hAsync("slot", { key: '6869e534facaf074883643403c8fb03bb2f0dbc5' })));
|
|
19348
19040
|
}
|
|
19349
19041
|
get el() { return getElement(this); }
|
|
19350
19042
|
static get style() { return {
|
|
@@ -19375,10 +19067,10 @@ class Grid {
|
|
|
19375
19067
|
}
|
|
19376
19068
|
render() {
|
|
19377
19069
|
const mode = getIonMode$1(this);
|
|
19378
|
-
return (hAsync(Host, { key: '
|
|
19070
|
+
return (hAsync(Host, { key: '6d46d3693c8af7e805cb438dd654485a152e7e40', class: {
|
|
19379
19071
|
[mode]: true,
|
|
19380
19072
|
'grid-fixed': this.fixed,
|
|
19381
|
-
} }, hAsync("slot", { key: '
|
|
19073
|
+
} }, hAsync("slot", { key: '7f57ee35524880aeb96d081dd8125460156196b3' })));
|
|
19382
19074
|
}
|
|
19383
19075
|
static get style() { return IonGridStyle0; }
|
|
19384
19076
|
static get cmpMeta() { return {
|
|
@@ -19709,14 +19401,14 @@ class Header {
|
|
|
19709
19401
|
const collapse = this.collapse || 'none';
|
|
19710
19402
|
// banner role must be at top level, so remove role if inside a menu
|
|
19711
19403
|
const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
|
|
19712
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
19404
|
+
return (hAsync(Host, Object.assign({ key: 'ab8eb272f275b7802e224c21c166124092fa917b', role: roleType, class: {
|
|
19713
19405
|
[mode]: true,
|
|
19714
19406
|
// Used internally for styling
|
|
19715
19407
|
[`header-${mode}`]: true,
|
|
19716
19408
|
[`header-translucent`]: this.translucent,
|
|
19717
19409
|
[`header-collapse-${collapse}`]: true,
|
|
19718
19410
|
[`header-translucent-${mode}`]: this.translucent,
|
|
19719
|
-
} }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { class: "header-background" }), hAsync("slot", { key: '
|
|
19411
|
+
} }, inheritedAttributes), mode === 'ios' && translucent && hAsync("div", { class: "header-background" }), hAsync("slot", { key: '52409e455c10a25419c4cbd9ed2346dfecb36537' })));
|
|
19720
19412
|
}
|
|
19721
19413
|
get el() { return getElement(this); }
|
|
19722
19414
|
static get style() { return {
|
|
@@ -19995,7 +19687,7 @@ class Img {
|
|
|
19995
19687
|
render() {
|
|
19996
19688
|
const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;
|
|
19997
19689
|
const { draggable } = inheritedAttributes;
|
|
19998
|
-
return (hAsync(Host, { key: '
|
|
19690
|
+
return (hAsync(Host, { key: 'ff933e2b7e586c71bc695ad9e1475c2ef48a1632', class: getIonMode$1(this) }, hAsync("img", { key: '60fea471b6665abe92678c7c9ab15c3e12195582', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
|
|
19999
19691
|
}
|
|
20000
19692
|
get el() { return getElement(this); }
|
|
20001
19693
|
static get watchers() { return {
|
|
@@ -20185,101 +19877,284 @@ class InfiniteScroll {
|
|
|
20185
19877
|
else {
|
|
20186
19878
|
this.didFire = false;
|
|
20187
19879
|
}
|
|
20188
|
-
}
|
|
20189
|
-
canStart() {
|
|
20190
|
-
return !this.disabled && !this.isBusy && !!this.scrollEl && !this.isLoading;
|
|
20191
|
-
}
|
|
20192
|
-
enableScrollEvents(shouldListen) {
|
|
20193
|
-
if (this.scrollEl) {
|
|
20194
|
-
if (shouldListen) {
|
|
20195
|
-
this.scrollEl.addEventListener('scroll', this.onScroll);
|
|
20196
|
-
}
|
|
20197
|
-
else {
|
|
20198
|
-
this.scrollEl.removeEventListener('scroll', this.onScroll);
|
|
20199
|
-
}
|
|
19880
|
+
}
|
|
19881
|
+
canStart() {
|
|
19882
|
+
return !this.disabled && !this.isBusy && !!this.scrollEl && !this.isLoading;
|
|
19883
|
+
}
|
|
19884
|
+
enableScrollEvents(shouldListen) {
|
|
19885
|
+
if (this.scrollEl) {
|
|
19886
|
+
if (shouldListen) {
|
|
19887
|
+
this.scrollEl.addEventListener('scroll', this.onScroll);
|
|
19888
|
+
}
|
|
19889
|
+
else {
|
|
19890
|
+
this.scrollEl.removeEventListener('scroll', this.onScroll);
|
|
19891
|
+
}
|
|
19892
|
+
}
|
|
19893
|
+
}
|
|
19894
|
+
render() {
|
|
19895
|
+
const mode = getIonMode$1(this);
|
|
19896
|
+
const disabled = this.disabled;
|
|
19897
|
+
return (hAsync(Host, { key: 'd9348b091bc02b744b7599207192994a31bf5044', class: {
|
|
19898
|
+
[mode]: true,
|
|
19899
|
+
'infinite-scroll-loading': this.isLoading,
|
|
19900
|
+
'infinite-scroll-enabled': !disabled,
|
|
19901
|
+
} }));
|
|
19902
|
+
}
|
|
19903
|
+
get el() { return getElement(this); }
|
|
19904
|
+
static get watchers() { return {
|
|
19905
|
+
"threshold": ["thresholdChanged"],
|
|
19906
|
+
"disabled": ["disabledChanged"]
|
|
19907
|
+
}; }
|
|
19908
|
+
static get style() { return IonInfiniteScrollStyle0; }
|
|
19909
|
+
static get cmpMeta() { return {
|
|
19910
|
+
"$flags$": 0,
|
|
19911
|
+
"$tagName$": "ion-infinite-scroll",
|
|
19912
|
+
"$members$": {
|
|
19913
|
+
"threshold": [1],
|
|
19914
|
+
"disabled": [4],
|
|
19915
|
+
"position": [1],
|
|
19916
|
+
"isLoading": [32],
|
|
19917
|
+
"complete": [64]
|
|
19918
|
+
},
|
|
19919
|
+
"$listeners$": undefined,
|
|
19920
|
+
"$lazyBundleId$": "-",
|
|
19921
|
+
"$attrsToReflect$": []
|
|
19922
|
+
}; }
|
|
19923
|
+
}
|
|
19924
|
+
|
|
19925
|
+
const infiniteScrollContentIosCss = "ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-ios .infinite-loading-text{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-small-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}";
|
|
19926
|
+
var IonInfiniteScrollContentIosStyle0 = infiniteScrollContentIosCss;
|
|
19927
|
+
|
|
19928
|
+
const infiniteScrollContentMdCss = "ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-md .infinite-loading-text{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-small-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-md .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}";
|
|
19929
|
+
var IonInfiniteScrollContentMdStyle0 = infiniteScrollContentMdCss;
|
|
19930
|
+
|
|
19931
|
+
class InfiniteScrollContent {
|
|
19932
|
+
constructor(hostRef) {
|
|
19933
|
+
registerInstance(this, hostRef);
|
|
19934
|
+
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
19935
|
+
this.loadingSpinner = undefined;
|
|
19936
|
+
this.loadingText = undefined;
|
|
19937
|
+
}
|
|
19938
|
+
componentDidLoad() {
|
|
19939
|
+
if (this.loadingSpinner === undefined) {
|
|
19940
|
+
const mode = getIonMode$1(this);
|
|
19941
|
+
this.loadingSpinner = config.get('infiniteLoadingSpinner', config.get('spinner', mode === 'ios' ? 'lines' : 'crescent'));
|
|
19942
|
+
}
|
|
19943
|
+
}
|
|
19944
|
+
renderLoadingText() {
|
|
19945
|
+
const { customHTMLEnabled, loadingText } = this;
|
|
19946
|
+
if (customHTMLEnabled) {
|
|
19947
|
+
return hAsync("div", { class: "infinite-loading-text", innerHTML: sanitizeDOMString(loadingText) });
|
|
19948
|
+
}
|
|
19949
|
+
return hAsync("div", { class: "infinite-loading-text" }, this.loadingText);
|
|
19950
|
+
}
|
|
19951
|
+
render() {
|
|
19952
|
+
const mode = getIonMode$1(this);
|
|
19953
|
+
return (hAsync(Host, { key: '6c13188d977ef82db9281e0bc3e6d43438ad2335', class: {
|
|
19954
|
+
[mode]: true,
|
|
19955
|
+
// Used internally for styling
|
|
19956
|
+
[`infinite-scroll-content-${mode}`]: true,
|
|
19957
|
+
} }, hAsync("div", { key: '41b5087e22d03c928d00be4e1845e711409c807d', class: "infinite-loading" }, this.loadingSpinner && (hAsync("div", { class: "infinite-loading-spinner" }, hAsync("ion-spinner", { name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
|
|
19958
|
+
}
|
|
19959
|
+
static get style() { return {
|
|
19960
|
+
ios: IonInfiniteScrollContentIosStyle0,
|
|
19961
|
+
md: IonInfiniteScrollContentMdStyle0
|
|
19962
|
+
}; }
|
|
19963
|
+
static get cmpMeta() { return {
|
|
19964
|
+
"$flags$": 32,
|
|
19965
|
+
"$tagName$": "ion-infinite-scroll-content",
|
|
19966
|
+
"$members$": {
|
|
19967
|
+
"loadingSpinner": [1025, "loading-spinner"],
|
|
19968
|
+
"loadingText": [1, "loading-text"]
|
|
19969
|
+
},
|
|
19970
|
+
"$listeners$": undefined,
|
|
19971
|
+
"$lazyBundleId$": "-",
|
|
19972
|
+
"$attrsToReflect$": []
|
|
19973
|
+
}; }
|
|
19974
|
+
}
|
|
19975
|
+
|
|
19976
|
+
/**
|
|
19977
|
+
* A utility to calculate the size of an outline notch
|
|
19978
|
+
* width relative to the content passed. This is used in
|
|
19979
|
+
* components such as `ion-select` with `fill="outline"`
|
|
19980
|
+
* where we need to pass slotted HTML content. This is not
|
|
19981
|
+
* needed when rendering plaintext content because we can
|
|
19982
|
+
* render the plaintext again hidden with `opacity: 0` inside
|
|
19983
|
+
* of the notch. As a result we can rely on the intrinsic size
|
|
19984
|
+
* of the element to correctly compute the notch width. We
|
|
19985
|
+
* cannot do this with slotted content because we cannot project
|
|
19986
|
+
* it into 2 places at once.
|
|
19987
|
+
*
|
|
19988
|
+
* @internal
|
|
19989
|
+
* @param el: The host element
|
|
19990
|
+
* @param getNotchSpacerEl: A function that returns a reference to the notch spacer element inside of the component template.
|
|
19991
|
+
* @param getLabelSlot: A function that returns a reference to the slotted content.
|
|
19992
|
+
*/
|
|
19993
|
+
const createNotchController = (el, getNotchSpacerEl, getLabelSlot) => {
|
|
19994
|
+
let notchVisibilityIO;
|
|
19995
|
+
const needsExplicitNotchWidth = () => {
|
|
19996
|
+
const notchSpacerEl = getNotchSpacerEl();
|
|
19997
|
+
if (
|
|
19998
|
+
/**
|
|
19999
|
+
* If the notch is not being used
|
|
20000
|
+
* then we do not need to set the notch width.
|
|
20001
|
+
*/
|
|
20002
|
+
notchSpacerEl === undefined ||
|
|
20003
|
+
/**
|
|
20004
|
+
* If either the label property is being
|
|
20005
|
+
* used or the label slot is not defined,
|
|
20006
|
+
* then we do not need to estimate the notch width.
|
|
20007
|
+
*/
|
|
20008
|
+
el.label !== undefined ||
|
|
20009
|
+
getLabelSlot() === null) {
|
|
20010
|
+
return false;
|
|
20011
|
+
}
|
|
20012
|
+
return true;
|
|
20013
|
+
};
|
|
20014
|
+
const calculateNotchWidth = () => {
|
|
20015
|
+
if (needsExplicitNotchWidth()) {
|
|
20016
|
+
/**
|
|
20017
|
+
* Run this the frame after
|
|
20018
|
+
* the browser has re-painted the host element.
|
|
20019
|
+
* Otherwise, the label element may have a width
|
|
20020
|
+
* of 0 and the IntersectionObserver will be used.
|
|
20021
|
+
*/
|
|
20022
|
+
raf(() => {
|
|
20023
|
+
setNotchWidth();
|
|
20024
|
+
});
|
|
20025
|
+
}
|
|
20026
|
+
};
|
|
20027
|
+
/**
|
|
20028
|
+
* When using a label prop we can render
|
|
20029
|
+
* the label value inside of the notch and
|
|
20030
|
+
* let the browser calculate the size of the notch.
|
|
20031
|
+
* However, we cannot render the label slot in multiple
|
|
20032
|
+
* places so we need to manually calculate the notch dimension
|
|
20033
|
+
* based on the size of the slotted content.
|
|
20034
|
+
*
|
|
20035
|
+
* This function should only be used to set the notch width
|
|
20036
|
+
* on slotted label content. The notch width for label prop
|
|
20037
|
+
* content is automatically calculated based on the
|
|
20038
|
+
* intrinsic size of the label text.
|
|
20039
|
+
*/
|
|
20040
|
+
const setNotchWidth = () => {
|
|
20041
|
+
const notchSpacerEl = getNotchSpacerEl();
|
|
20042
|
+
if (notchSpacerEl === undefined) {
|
|
20043
|
+
return;
|
|
20044
|
+
}
|
|
20045
|
+
if (!needsExplicitNotchWidth()) {
|
|
20046
|
+
notchSpacerEl.style.removeProperty('width');
|
|
20047
|
+
return;
|
|
20048
|
+
}
|
|
20049
|
+
const width = getLabelSlot().scrollWidth;
|
|
20050
|
+
if (
|
|
20051
|
+
/**
|
|
20052
|
+
* If the computed width of the label is 0
|
|
20053
|
+
* and notchSpacerEl's offsetParent is null
|
|
20054
|
+
* then that means the element is hidden.
|
|
20055
|
+
* As a result, we need to wait for the element
|
|
20056
|
+
* to become visible before setting the notch width.
|
|
20057
|
+
*
|
|
20058
|
+
* We do not check el.offsetParent because
|
|
20059
|
+
* that can be null if the host element has
|
|
20060
|
+
* position: fixed applied to it.
|
|
20061
|
+
* notchSpacerEl does not have position: fixed.
|
|
20062
|
+
*/
|
|
20063
|
+
width === 0 &&
|
|
20064
|
+
notchSpacerEl.offsetParent === null &&
|
|
20065
|
+
win$1 !== undefined &&
|
|
20066
|
+
'IntersectionObserver' in win$1) {
|
|
20067
|
+
/**
|
|
20068
|
+
* If there is an IO already attached
|
|
20069
|
+
* then that will update the notch
|
|
20070
|
+
* once the element becomes visible.
|
|
20071
|
+
* As a result, there is no need to create
|
|
20072
|
+
* another one.
|
|
20073
|
+
*/
|
|
20074
|
+
if (notchVisibilityIO !== undefined) {
|
|
20075
|
+
return;
|
|
20076
|
+
}
|
|
20077
|
+
const io = (notchVisibilityIO = new IntersectionObserver((ev) => {
|
|
20078
|
+
/**
|
|
20079
|
+
* If the element is visible then we
|
|
20080
|
+
* can try setting the notch width again.
|
|
20081
|
+
*/
|
|
20082
|
+
if (ev[0].intersectionRatio === 1) {
|
|
20083
|
+
setNotchWidth();
|
|
20084
|
+
io.disconnect();
|
|
20085
|
+
notchVisibilityIO = undefined;
|
|
20086
|
+
}
|
|
20087
|
+
},
|
|
20088
|
+
/**
|
|
20089
|
+
* Set the root to be the host element
|
|
20090
|
+
* This causes the IO callback
|
|
20091
|
+
* to be fired in WebKit as soon as the element
|
|
20092
|
+
* is visible. If we used the default root value
|
|
20093
|
+
* then WebKit would only fire the IO callback
|
|
20094
|
+
* after any animations (such as a modal transition)
|
|
20095
|
+
* finished, and there would potentially be a flicker.
|
|
20096
|
+
*/
|
|
20097
|
+
{ threshold: 0.01, root: el }));
|
|
20098
|
+
io.observe(notchSpacerEl);
|
|
20099
|
+
return;
|
|
20100
|
+
}
|
|
20101
|
+
/**
|
|
20102
|
+
* If the element is visible then we can set the notch width.
|
|
20103
|
+
* The notch is only visible when the label is scaled,
|
|
20104
|
+
* which is why we multiply the width by 0.75 as this is
|
|
20105
|
+
* the same amount the label element is scaled by in the host CSS.
|
|
20106
|
+
* (See $form-control-label-stacked-scale in ionic.globals.scss).
|
|
20107
|
+
*/
|
|
20108
|
+
notchSpacerEl.style.setProperty('width', `${width * 0.75}px`);
|
|
20109
|
+
};
|
|
20110
|
+
const destroy = () => {
|
|
20111
|
+
if (notchVisibilityIO) {
|
|
20112
|
+
notchVisibilityIO.disconnect();
|
|
20113
|
+
notchVisibilityIO = undefined;
|
|
20200
20114
|
}
|
|
20115
|
+
};
|
|
20116
|
+
return {
|
|
20117
|
+
calculateNotchWidth,
|
|
20118
|
+
destroy,
|
|
20119
|
+
};
|
|
20120
|
+
};
|
|
20121
|
+
|
|
20122
|
+
/**
|
|
20123
|
+
* Uses the compareWith param to compare two values to determine if they are equal.
|
|
20124
|
+
*
|
|
20125
|
+
* @param currentValue The current value of the control.
|
|
20126
|
+
* @param compareValue The value to compare against.
|
|
20127
|
+
* @param compareWith The function or property name to use to compare values.
|
|
20128
|
+
*/
|
|
20129
|
+
const compareOptions = (currentValue, compareValue, compareWith) => {
|
|
20130
|
+
if (typeof compareWith === 'function') {
|
|
20131
|
+
return compareWith(currentValue, compareValue);
|
|
20201
20132
|
}
|
|
20202
|
-
|
|
20203
|
-
|
|
20204
|
-
const disabled = this.disabled;
|
|
20205
|
-
return (hAsync(Host, { key: '118757d9470756d66434331fc0180d31ac158e06', class: {
|
|
20206
|
-
[mode]: true,
|
|
20207
|
-
'infinite-scroll-loading': this.isLoading,
|
|
20208
|
-
'infinite-scroll-enabled': !disabled,
|
|
20209
|
-
} }));
|
|
20133
|
+
else if (typeof compareWith === 'string') {
|
|
20134
|
+
return currentValue[compareWith] === compareValue[compareWith];
|
|
20210
20135
|
}
|
|
20211
|
-
|
|
20212
|
-
|
|
20213
|
-
"threshold": ["thresholdChanged"],
|
|
20214
|
-
"disabled": ["disabledChanged"]
|
|
20215
|
-
}; }
|
|
20216
|
-
static get style() { return IonInfiniteScrollStyle0; }
|
|
20217
|
-
static get cmpMeta() { return {
|
|
20218
|
-
"$flags$": 0,
|
|
20219
|
-
"$tagName$": "ion-infinite-scroll",
|
|
20220
|
-
"$members$": {
|
|
20221
|
-
"threshold": [1],
|
|
20222
|
-
"disabled": [4],
|
|
20223
|
-
"position": [1],
|
|
20224
|
-
"isLoading": [32],
|
|
20225
|
-
"complete": [64]
|
|
20226
|
-
},
|
|
20227
|
-
"$listeners$": undefined,
|
|
20228
|
-
"$lazyBundleId$": "-",
|
|
20229
|
-
"$attrsToReflect$": []
|
|
20230
|
-
}; }
|
|
20231
|
-
}
|
|
20232
|
-
|
|
20233
|
-
const infiniteScrollContentIosCss = "ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-ios .infinite-loading-text{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-small-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}";
|
|
20234
|
-
var IonInfiniteScrollContentIosStyle0 = infiniteScrollContentIosCss;
|
|
20235
|
-
|
|
20236
|
-
const infiniteScrollContentMdCss = "ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-md .infinite-loading-text{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-small-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}.infinite-scroll-content-md .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}";
|
|
20237
|
-
var IonInfiniteScrollContentMdStyle0 = infiniteScrollContentMdCss;
|
|
20238
|
-
|
|
20239
|
-
class InfiniteScrollContent {
|
|
20240
|
-
constructor(hostRef) {
|
|
20241
|
-
registerInstance(this, hostRef);
|
|
20242
|
-
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
20243
|
-
this.loadingSpinner = undefined;
|
|
20244
|
-
this.loadingText = undefined;
|
|
20136
|
+
else {
|
|
20137
|
+
return Array.isArray(compareValue) ? compareValue.includes(currentValue) : currentValue === compareValue;
|
|
20245
20138
|
}
|
|
20246
|
-
|
|
20247
|
-
|
|
20248
|
-
|
|
20249
|
-
|
|
20250
|
-
|
|
20139
|
+
};
|
|
20140
|
+
/**
|
|
20141
|
+
* Compares a value against the current value(s) to determine if it is selected.
|
|
20142
|
+
*
|
|
20143
|
+
* @param currentValue The current value of the control.
|
|
20144
|
+
* @param compareValue The value to compare against.
|
|
20145
|
+
* @param compareWith The function or property name to use to compare values.
|
|
20146
|
+
*/
|
|
20147
|
+
const isOptionSelected = (currentValue, compareValue, compareWith) => {
|
|
20148
|
+
if (currentValue === undefined) {
|
|
20149
|
+
return false;
|
|
20251
20150
|
}
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
if (customHTMLEnabled) {
|
|
20255
|
-
return hAsync("div", { class: "infinite-loading-text", innerHTML: sanitizeDOMString(loadingText) });
|
|
20256
|
-
}
|
|
20257
|
-
return hAsync("div", { class: "infinite-loading-text" }, this.loadingText);
|
|
20151
|
+
if (Array.isArray(currentValue)) {
|
|
20152
|
+
return currentValue.some((val) => compareOptions(val, compareValue, compareWith));
|
|
20258
20153
|
}
|
|
20259
|
-
|
|
20260
|
-
|
|
20261
|
-
return (hAsync(Host, { key: '0ffeaebe071c7ffe8aabacf89382f402804de44c', class: {
|
|
20262
|
-
[mode]: true,
|
|
20263
|
-
// Used internally for styling
|
|
20264
|
-
[`infinite-scroll-content-${mode}`]: true,
|
|
20265
|
-
} }, hAsync("div", { key: '30a3bac66ac8230b9352223f90eb7fed56071732', class: "infinite-loading" }, this.loadingSpinner && (hAsync("div", { class: "infinite-loading-spinner" }, hAsync("ion-spinner", { name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
|
|
20154
|
+
else {
|
|
20155
|
+
return compareOptions(currentValue, compareValue, compareWith);
|
|
20266
20156
|
}
|
|
20267
|
-
|
|
20268
|
-
ios: IonInfiniteScrollContentIosStyle0,
|
|
20269
|
-
md: IonInfiniteScrollContentMdStyle0
|
|
20270
|
-
}; }
|
|
20271
|
-
static get cmpMeta() { return {
|
|
20272
|
-
"$flags$": 32,
|
|
20273
|
-
"$tagName$": "ion-infinite-scroll-content",
|
|
20274
|
-
"$members$": {
|
|
20275
|
-
"loadingSpinner": [1025, "loading-spinner"],
|
|
20276
|
-
"loadingText": [1, "loading-text"]
|
|
20277
|
-
},
|
|
20278
|
-
"$listeners$": undefined,
|
|
20279
|
-
"$lazyBundleId$": "-",
|
|
20280
|
-
"$attrsToReflect$": []
|
|
20281
|
-
}; }
|
|
20282
|
-
}
|
|
20157
|
+
};
|
|
20283
20158
|
|
|
20284
20159
|
/**
|
|
20285
20160
|
* Used to update a scoped component that uses emulated slots. This fires when
|
|
@@ -20778,7 +20653,7 @@ class Input {
|
|
|
20778
20653
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
20779
20654
|
*/
|
|
20780
20655
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
20781
|
-
return (hAsync(Host, { key: '
|
|
20656
|
+
return (hAsync(Host, { key: '7194f43a5bf2b46c67fac2eb32d8a76156ebd17f', class: createColorClasses$1(this.color, {
|
|
20782
20657
|
[mode]: true,
|
|
20783
20658
|
'has-value': hasValue,
|
|
20784
20659
|
'has-focus': hasFocus,
|
|
@@ -20789,14 +20664,14 @@ class Input {
|
|
|
20789
20664
|
'in-item': inItem,
|
|
20790
20665
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
20791
20666
|
'input-disabled': disabled,
|
|
20792
|
-
}) }, hAsync("label", { key: '
|
|
20667
|
+
}) }, hAsync("label", { key: 'c4e3dbcad69cd08ecd73bf7268936f010eb657e8', class: "input-wrapper", htmlFor: inputId }, this.renderLabelContainer(), hAsync("div", { key: '1a001341f7f57139a1b8cba8bc4eb6b0f589f3b7', class: "native-wrapper" }, hAsync("slot", { key: '9f2448b80c62ba7e5a63237d42d0a9003a321507', name: "start" }), hAsync("input", Object.assign({ key: 'b4d8b49412cb2b205813b5b534bdff754ba8168a', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.clearInput && !readonly && !disabled && (hAsync("button", { "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
20793
20668
|
/**
|
|
20794
20669
|
* This prevents mobile browsers from
|
|
20795
20670
|
* blurring the input when the clear
|
|
20796
20671
|
* button is activated.
|
|
20797
20672
|
*/
|
|
20798
20673
|
ev.preventDefault();
|
|
20799
|
-
}, onClick: this.clearTextInput }, hAsync("ion-icon", { "aria-hidden": "true", icon: mode === 'ios' ? closeCircle : closeSharp }))), hAsync("slot", { key: '
|
|
20674
|
+
}, onClick: this.clearTextInput }, hAsync("ion-icon", { "aria-hidden": "true", icon: mode === 'ios' ? closeCircle : closeSharp }))), hAsync("slot", { key: 'f337b842a5cdbcb5db724fb036c8634580dd4464', name: "end" })), shouldRenderHighlight && hAsync("div", { class: "input-highlight" })), this.renderBottomContent()));
|
|
20800
20675
|
}
|
|
20801
20676
|
get el() { return getElement(this); }
|
|
20802
20677
|
static get watchers() { return {
|
|
@@ -21187,11 +21062,11 @@ class ItemDivider {
|
|
|
21187
21062
|
}
|
|
21188
21063
|
render() {
|
|
21189
21064
|
const mode = getIonMode$1(this);
|
|
21190
|
-
return (hAsync(Host, { key: '
|
|
21065
|
+
return (hAsync(Host, { key: '18d1b78568247bfbf0b0274971b752ace7531f58', class: createColorClasses$1(this.color, {
|
|
21191
21066
|
[mode]: true,
|
|
21192
21067
|
'item-divider-sticky': this.sticky,
|
|
21193
21068
|
item: true,
|
|
21194
|
-
}) }, hAsync("slot", { key: '
|
|
21069
|
+
}) }, hAsync("slot", { key: 'cbf5fe1a9f4233a303d2366d1fc032d7c445f5c7', name: "start" }), hAsync("div", { key: 'ca2608689325a350b23eb026053dd588ea3004e9', class: "item-divider-inner" }, hAsync("div", { key: '00af1d58d5fc7995754a5266534cdf989a3294eb', class: "item-divider-wrapper" }, hAsync("slot", { key: 'bfa2547fe8de49dcfbfccaeb46736182e514ffbc' })), hAsync("slot", { key: '650dd1153d211eb992e69ff7e98c381cf0555e25', name: "end" }))));
|
|
21195
21070
|
}
|
|
21196
21071
|
get el() { return getElement(this); }
|
|
21197
21072
|
static get style() { return {
|
|
@@ -21223,7 +21098,7 @@ class ItemGroup {
|
|
|
21223
21098
|
}
|
|
21224
21099
|
render() {
|
|
21225
21100
|
const mode = getIonMode$1(this);
|
|
21226
|
-
return (hAsync(Host, { key: '
|
|
21101
|
+
return (hAsync(Host, { key: '2443d9e64c1867a9582a2965ed9ac78263965d70', role: "group", class: {
|
|
21227
21102
|
[mode]: true,
|
|
21228
21103
|
// Used internally for styling
|
|
21229
21104
|
[`item-group-${mode}`]: true,
|
|
@@ -21291,12 +21166,12 @@ class ItemOption {
|
|
|
21291
21166
|
href: this.href,
|
|
21292
21167
|
target: this.target,
|
|
21293
21168
|
};
|
|
21294
|
-
return (hAsync(Host, { key: '
|
|
21169
|
+
return (hAsync(Host, { key: '85fe8f529ab0673f1ddba299473690590a1bca88', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
21295
21170
|
[mode]: true,
|
|
21296
21171
|
'item-option-disabled': disabled,
|
|
21297
21172
|
'item-option-expandable': expandable,
|
|
21298
21173
|
'ion-activatable': true,
|
|
21299
|
-
}) }, hAsync(TagType, Object.assign({ key: '
|
|
21174
|
+
}) }, hAsync(TagType, Object.assign({ key: 'cde9bca980cb5589204017d80483baab0996586e' }, attrs, { class: "button-native", part: "native", disabled: disabled }), hAsync("span", { key: 'e2b7886b53b0b85d81fbfd9209c2989673cdb863', class: "button-inner" }, hAsync("slot", { key: 'eaf089857ff0a22d3a9c12574596002e32a28c75', name: "top" }), hAsync("div", { key: '12f5d46fe5b8b5d2a5d2bd9e4782376c5af86f1c', class: "horizontal-wrapper" }, hAsync("slot", { key: 'ba6d89b7c7f9470f73e17808f90d578fbcceba48', name: "start" }), hAsync("slot", { key: '22ad963dd37ae40c03a5723c3e3b05970f40d871', name: "icon-only" }), hAsync("slot", { key: 'a1596a1961b5757828fafaa9edf9da3381482ff3' }), hAsync("slot", { key: 'ad0d2b50de279a712e18985ce9aceda7b5d45712', name: "end" })), hAsync("slot", { key: '2940933c947f7e2d9875f0fb980aff392d5ea7fa', name: "bottom" })), mode === 'md' && hAsync("ion-ripple-effect", null))));
|
|
21300
21175
|
}
|
|
21301
21176
|
get el() { return getElement(this); }
|
|
21302
21177
|
static get style() { return {
|
|
@@ -21343,7 +21218,7 @@ class ItemOptions {
|
|
|
21343
21218
|
render() {
|
|
21344
21219
|
const mode = getIonMode$1(this);
|
|
21345
21220
|
const isEnd = isEndSide(this.side);
|
|
21346
|
-
return (hAsync(Host, { key: '
|
|
21221
|
+
return (hAsync(Host, { key: 'ac0cec6a2ea83c9633c10bce379ffdcc99221b52', class: {
|
|
21347
21222
|
[mode]: true,
|
|
21348
21223
|
// Used internally for styling
|
|
21349
21224
|
[`item-options-${mode}`]: true,
|
|
@@ -21805,7 +21680,7 @@ class ItemSliding {
|
|
|
21805
21680
|
}
|
|
21806
21681
|
render() {
|
|
21807
21682
|
const mode = getIonMode$1(this);
|
|
21808
|
-
return (hAsync(Host, { key: '
|
|
21683
|
+
return (hAsync(Host, { key: 'ae9da267d130e2875b2d854952b70daa739effd8', class: {
|
|
21809
21684
|
[mode]: true,
|
|
21810
21685
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
21811
21686
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -21914,7 +21789,7 @@ class Label {
|
|
|
21914
21789
|
render() {
|
|
21915
21790
|
const position = this.position;
|
|
21916
21791
|
const mode = getIonMode$1(this);
|
|
21917
|
-
return (hAsync(Host, { key: '
|
|
21792
|
+
return (hAsync(Host, { key: '6820fe45a0aa73dca665a43f588f952e94c194c7', class: createColorClasses$1(this.color, {
|
|
21918
21793
|
[mode]: true,
|
|
21919
21794
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
21920
21795
|
[`label-${position}`]: position !== undefined,
|
|
@@ -21976,7 +21851,7 @@ class List {
|
|
|
21976
21851
|
render() {
|
|
21977
21852
|
const mode = getIonMode$1(this);
|
|
21978
21853
|
const { lines, inset } = this;
|
|
21979
|
-
return (hAsync(Host, { key: '
|
|
21854
|
+
return (hAsync(Host, { key: '9a0eab31e53ae22dbfa7aa58d779d3976797ea08', role: "list", class: {
|
|
21980
21855
|
[mode]: true,
|
|
21981
21856
|
// Used internally for styling
|
|
21982
21857
|
[`list-${mode}`]: true,
|
|
@@ -22022,10 +21897,10 @@ class ListHeader {
|
|
|
22022
21897
|
render() {
|
|
22023
21898
|
const { lines } = this;
|
|
22024
21899
|
const mode = getIonMode$1(this);
|
|
22025
|
-
return (hAsync(Host, { key: '
|
|
21900
|
+
return (hAsync(Host, { key: '7b0de2d26ec09f11740ad55bba5e4d2f52623b58', class: createColorClasses$1(this.color, {
|
|
22026
21901
|
[mode]: true,
|
|
22027
21902
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
22028
|
-
}) }, hAsync("div", { key: '
|
|
21903
|
+
}) }, hAsync("div", { key: '86cbae45e24ce7607b011cd3cd1ae82e741a111c', class: "list-header-inner" }, hAsync("slot", { key: 'a276c0540cd1bdd907b01620d5bfb9c996c08b90' }))));
|
|
22029
21904
|
}
|
|
22030
21905
|
static get style() { return {
|
|
22031
21906
|
ios: IonListHeaderIosStyle0,
|
|
@@ -22287,9 +22162,9 @@ class Loading {
|
|
|
22287
22162
|
* Otherwise, don't set aria-labelledby.
|
|
22288
22163
|
*/
|
|
22289
22164
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
22290
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
22165
|
+
return (hAsync(Host, Object.assign({ key: 'e193afb8350415a30c7413db67cd81c73a394ae8', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
22291
22166
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
22292
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '
|
|
22167
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), hAsync("ion-backdrop", { key: '38d87e39091690da9927c324ab5a3f6f31755b4e', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '5a2aa46cb02fd82e56a4e7c1de27349ddab9b413', tabindex: "0" }), hAsync("div", { key: 'ef6ae86e511375ddebc03f242ae4f8952f35c530', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { class: "loading-spinner" }, hAsync("ion-spinner", { name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync("div", { key: 'da6fe0cb92d92622eb85b7edccd185c8869415e7', tabindex: "0" })));
|
|
22293
22168
|
}
|
|
22294
22169
|
get el() { return getElement(this); }
|
|
22295
22170
|
static get watchers() { return {
|
|
@@ -23291,14 +23166,14 @@ class Menu {
|
|
|
23291
23166
|
* the ionBackButton listener in the menu controller
|
|
23292
23167
|
* will handle closing the menu when Escape is pressed.
|
|
23293
23168
|
*/
|
|
23294
|
-
return (hAsync(Host, { key: '
|
|
23169
|
+
return (hAsync(Host, { key: 'c47b00136d61d7d705efadd4d2d06b87b18747a3', onKeyDown: shoudUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
23295
23170
|
[mode]: true,
|
|
23296
23171
|
[`menu-type-${type}`]: true,
|
|
23297
23172
|
'menu-enabled': !disabled,
|
|
23298
23173
|
[`menu-side-${side}`]: true,
|
|
23299
23174
|
'menu-pane-visible': isPaneVisible,
|
|
23300
23175
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
23301
|
-
} }, hAsync("div", { key: '
|
|
23176
|
+
} }, hAsync("div", { key: '829d5332be865b5aab6435e6a7c8872c7fb89b52', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: '5b47ee5da8238ec15d7371606cfbc3d384588ebb' })), hAsync("ion-backdrop", { key: '58bc53f971865fd1615f267cd0259584b3045486', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
23302
23177
|
}
|
|
23303
23178
|
get el() { return getElement(this); }
|
|
23304
23179
|
static get watchers() { return {
|
|
@@ -23401,7 +23276,7 @@ class MenuButton {
|
|
|
23401
23276
|
type: this.type,
|
|
23402
23277
|
};
|
|
23403
23278
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
23404
|
-
return (hAsync(Host, { key: '
|
|
23279
|
+
return (hAsync(Host, { key: '3cdbc04925c8c62ac65763fe83efdfffda0a16fa', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
|
|
23405
23280
|
[mode]: true,
|
|
23406
23281
|
button: true, // ion-buttons target .button
|
|
23407
23282
|
'menu-button-hidden': hidden,
|
|
@@ -23410,7 +23285,7 @@ class MenuButton {
|
|
|
23410
23285
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
23411
23286
|
'ion-activatable': true,
|
|
23412
23287
|
'ion-focusable': true,
|
|
23413
|
-
}) }, hAsync("button", Object.assign({ key: '
|
|
23288
|
+
}) }, hAsync("button", Object.assign({ key: '63db22c49359bf77fa344f5a13b733570ff088a4' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), hAsync("span", { key: '011af3fa930dd888f7f4aca24ba294d23b2ceba7', class: "button-inner" }, hAsync("slot", { key: 'dc75fd2f1f3d42eb30aefd9cd3ef137d6c8a515a' }, hAsync("ion-icon", { key: '55cfdc7df1eab0bdc386e2a5c90be87be56a000a', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && hAsync("ion-ripple-effect", { type: "unbounded" }))));
|
|
23414
23289
|
}
|
|
23415
23290
|
get el() { return getElement(this); }
|
|
23416
23291
|
static get style() { return {
|
|
@@ -23459,10 +23334,10 @@ class MenuToggle {
|
|
|
23459
23334
|
render() {
|
|
23460
23335
|
const mode = getIonMode$1(this);
|
|
23461
23336
|
const hidden = this.autoHide && !this.visible;
|
|
23462
|
-
return (hAsync(Host, { key: '
|
|
23337
|
+
return (hAsync(Host, { key: 'fa7f54b6264dd2110f4cda34aaa6ea7ec4f5040f', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
23463
23338
|
[mode]: true,
|
|
23464
23339
|
'menu-toggle-hidden': hidden,
|
|
23465
|
-
} }, hAsync("slot", { key: '
|
|
23340
|
+
} }, hAsync("slot", { key: '6e1701d21f439cabd9f83607c500eb6111162447' })));
|
|
23466
23341
|
}
|
|
23467
23342
|
static get style() { return IonMenuToggleStyle0; }
|
|
23468
23343
|
static get cmpMeta() { return {
|
|
@@ -23536,9 +23411,23 @@ const transition = (opts) => {
|
|
|
23536
23411
|
});
|
|
23537
23412
|
});
|
|
23538
23413
|
};
|
|
23414
|
+
const LAST_FOCUS = 'ion-last-focus';
|
|
23539
23415
|
const beforeTransition = (opts) => {
|
|
23540
23416
|
const enteringEl = opts.enteringEl;
|
|
23541
23417
|
const leavingEl = opts.leavingEl;
|
|
23418
|
+
const focusManagerEnabled = config.get('experimentalFocusManagerPriority', false);
|
|
23419
|
+
/**
|
|
23420
|
+
* When going back to a previously visited page
|
|
23421
|
+
* focus should typically be moved back to the
|
|
23422
|
+
* element that was last focused when the user
|
|
23423
|
+
* was on this view.
|
|
23424
|
+
*/
|
|
23425
|
+
if (focusManagerEnabled) {
|
|
23426
|
+
const activeEl = document.activeElement;
|
|
23427
|
+
if (activeEl !== null && (leavingEl === null || leavingEl === void 0 ? void 0 : leavingEl.contains(activeEl))) {
|
|
23428
|
+
activeEl.setAttribute(LAST_FOCUS, 'true');
|
|
23429
|
+
}
|
|
23430
|
+
}
|
|
23542
23431
|
setZIndex(enteringEl, leavingEl, opts.direction);
|
|
23543
23432
|
if (opts.showGoBack) {
|
|
23544
23433
|
enteringEl.classList.add('can-go-back');
|
|
@@ -23564,6 +23453,24 @@ const runTransition = async (opts) => {
|
|
|
23564
23453
|
const ani = animationBuilder && Build.isBrowser ? animation(animationBuilder, opts) : noAnimation(opts); // fast path for no animation
|
|
23565
23454
|
return ani;
|
|
23566
23455
|
};
|
|
23456
|
+
/**
|
|
23457
|
+
* Moves focus to a specified element.
|
|
23458
|
+
* Note that we do not remove the tabindex
|
|
23459
|
+
* because that can result in an unintentional
|
|
23460
|
+
* blur. Non-focusables can't be focused, so the
|
|
23461
|
+
* body will get focused again.
|
|
23462
|
+
*/
|
|
23463
|
+
const moveFocus = (el) => {
|
|
23464
|
+
el.tabIndex = -1;
|
|
23465
|
+
el.focus();
|
|
23466
|
+
};
|
|
23467
|
+
/**
|
|
23468
|
+
* Elements that are hidden using `display: none` should
|
|
23469
|
+
* not be focused even if they are present in the DOM.
|
|
23470
|
+
*/
|
|
23471
|
+
const isVisible = (el) => {
|
|
23472
|
+
return el.offsetParent !== null;
|
|
23473
|
+
};
|
|
23567
23474
|
const afterTransition = (opts) => {
|
|
23568
23475
|
const enteringEl = opts.enteringEl;
|
|
23569
23476
|
const leavingEl = opts.leavingEl;
|
|
@@ -23573,6 +23480,69 @@ const afterTransition = (opts) => {
|
|
|
23573
23480
|
leavingEl.classList.remove('ion-page-invisible');
|
|
23574
23481
|
leavingEl.style.removeProperty('pointer-events');
|
|
23575
23482
|
}
|
|
23483
|
+
const focusManagerPriorities = config.get('experimentalFocusManagerPriority', false);
|
|
23484
|
+
if (Array.isArray(focusManagerPriorities) && !enteringEl.contains(document.activeElement)) {
|
|
23485
|
+
/**
|
|
23486
|
+
* When going back to a previously visited view
|
|
23487
|
+
* focus should always be moved back to the element
|
|
23488
|
+
* that the user was last focused on when they were on this view.
|
|
23489
|
+
*/
|
|
23490
|
+
const lastFocus = enteringEl.querySelector(`[${LAST_FOCUS}]`);
|
|
23491
|
+
if (lastFocus && isVisible(lastFocus)) {
|
|
23492
|
+
moveFocus(lastFocus);
|
|
23493
|
+
return;
|
|
23494
|
+
}
|
|
23495
|
+
for (const priority of focusManagerPriorities) {
|
|
23496
|
+
switch (priority) {
|
|
23497
|
+
case 'content':
|
|
23498
|
+
/**
|
|
23499
|
+
* If no level one heading exists then we should at least focus the
|
|
23500
|
+
* header so focus starts at the top of the page.
|
|
23501
|
+
*/
|
|
23502
|
+
const content = enteringEl.querySelector('main, [role="main"]');
|
|
23503
|
+
if (content && isVisible(content)) {
|
|
23504
|
+
moveFocus(content);
|
|
23505
|
+
return;
|
|
23506
|
+
}
|
|
23507
|
+
break;
|
|
23508
|
+
case 'heading':
|
|
23509
|
+
/**
|
|
23510
|
+
* If no last focus exists then we should prefer to focus
|
|
23511
|
+
* level one headings. We do not prioritize the header yet
|
|
23512
|
+
* because the header can have non-title elements such as
|
|
23513
|
+
* a back button which is not necessarily helpful
|
|
23514
|
+
* to focus first.
|
|
23515
|
+
*/
|
|
23516
|
+
const headingOne = enteringEl.querySelector('h1, [role="heading"][aria-level="1"]');
|
|
23517
|
+
if (headingOne && isVisible(headingOne)) {
|
|
23518
|
+
moveFocus(headingOne);
|
|
23519
|
+
return;
|
|
23520
|
+
}
|
|
23521
|
+
break;
|
|
23522
|
+
case 'banner':
|
|
23523
|
+
/**
|
|
23524
|
+
* If no level one heading exists then we should at least focus the
|
|
23525
|
+
* header so focus starts at the top of the page.
|
|
23526
|
+
*/
|
|
23527
|
+
const header = enteringEl.querySelector('header, [role="banner"]');
|
|
23528
|
+
if (header && isVisible(header)) {
|
|
23529
|
+
moveFocus(header);
|
|
23530
|
+
return;
|
|
23531
|
+
}
|
|
23532
|
+
break;
|
|
23533
|
+
default:
|
|
23534
|
+
printIonWarning(`Unrecognized focus manager priority value ${priority}`);
|
|
23535
|
+
break;
|
|
23536
|
+
}
|
|
23537
|
+
}
|
|
23538
|
+
/**
|
|
23539
|
+
* If there is no header then focus the page
|
|
23540
|
+
* so focus at least moves to the correct view.
|
|
23541
|
+
* The browser will then determine where within the
|
|
23542
|
+
* page to move focus to.
|
|
23543
|
+
*/
|
|
23544
|
+
moveFocus(enteringEl);
|
|
23545
|
+
}
|
|
23576
23546
|
};
|
|
23577
23547
|
const getAnimationBuilder = async (opts) => {
|
|
23578
23548
|
if (!opts.leavingEl || !opts.animated || opts.duration === 0) {
|
|
@@ -23605,7 +23575,16 @@ const animation = async (animationBuilder, opts) => {
|
|
|
23605
23575
|
const noAnimation = async (opts) => {
|
|
23606
23576
|
const enteringEl = opts.enteringEl;
|
|
23607
23577
|
const leavingEl = opts.leavingEl;
|
|
23608
|
-
|
|
23578
|
+
const focusManagerEnabled = config.get('experimentalFocusManagerPriority', false);
|
|
23579
|
+
/**
|
|
23580
|
+
* If the focus manager is enabled then we
|
|
23581
|
+
* need to wait for Ionic components to be rendered
|
|
23582
|
+
* otherwise the correct component to focus may not
|
|
23583
|
+
* be focused because it is still hidden.
|
|
23584
|
+
* However, if the manager is not enabled
|
|
23585
|
+
* then there's no need to wait since there will be no animation.
|
|
23586
|
+
*/
|
|
23587
|
+
await waitForReady(opts, focusManagerEnabled);
|
|
23609
23588
|
fireWillEvents(enteringEl, leavingEl);
|
|
23610
23589
|
fireDidEvents(enteringEl, leavingEl);
|
|
23611
23590
|
return {
|
|
@@ -25286,9 +25265,9 @@ class Modal {
|
|
|
25286
25265
|
const mode = getIonMode$1(this);
|
|
25287
25266
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
25288
25267
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
25289
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
25268
|
+
return (hAsync(Host, Object.assign({ key: 'd5619b83430689b05282ea7507b8027fbef2cdc5', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
25290
25269
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
25291
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: '
|
|
25270
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: 'db27a855c1a123d634b81f3176807d1aedc0deb8', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { class: "modal-shadow" }), hAsync("div", Object.assign({ key: '6756bb8872a5f5abba75ed00e2f66e987f7ad0ed',
|
|
25292
25271
|
/*
|
|
25293
25272
|
role and aria-modal must be used on the
|
|
25294
25273
|
same element. They must also be set inside the
|
|
@@ -25297,7 +25276,7 @@ class Modal {
|
|
|
25297
25276
|
*/
|
|
25298
25277
|
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { class: "modal-handle",
|
|
25299
25278
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
25300
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '
|
|
25279
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '72dac7b1071ba85cd039eaa811de95cbdd9dd50e' }))));
|
|
25301
25280
|
}
|
|
25302
25281
|
get el() { return getElement(this); }
|
|
25303
25282
|
static get watchers() { return {
|
|
@@ -26245,7 +26224,7 @@ class Nav {
|
|
|
26245
26224
|
}
|
|
26246
26225
|
}
|
|
26247
26226
|
render() {
|
|
26248
|
-
return hAsync("slot", { key: '
|
|
26227
|
+
return hAsync("slot", { key: 'a86e551f86509bd65200393785e4000dbb37154a' });
|
|
26249
26228
|
}
|
|
26250
26229
|
get el() { return getElement(this); }
|
|
26251
26230
|
static get watchers() { return {
|
|
@@ -26318,7 +26297,7 @@ class NavLink {
|
|
|
26318
26297
|
this.routerAnimation = undefined;
|
|
26319
26298
|
}
|
|
26320
26299
|
render() {
|
|
26321
|
-
return hAsync(Host, { key: '
|
|
26300
|
+
return hAsync(Host, { key: '7b6b746a0e945a48b308eec2dcd9893daf00bca1', onClick: this.onClick });
|
|
26322
26301
|
}
|
|
26323
26302
|
get el() { return getElement(this); }
|
|
26324
26303
|
static get cmpMeta() { return {
|
|
@@ -26352,9 +26331,9 @@ class Note {
|
|
|
26352
26331
|
}
|
|
26353
26332
|
render() {
|
|
26354
26333
|
const mode = getIonMode$1(this);
|
|
26355
|
-
return (hAsync(Host, { key: '
|
|
26334
|
+
return (hAsync(Host, { key: '83fbede35bbb772419d68f6ad398aab0e00b9f61', class: createColorClasses$1(this.color, {
|
|
26356
26335
|
[mode]: true,
|
|
26357
|
-
}) }, hAsync("slot", { key: '
|
|
26336
|
+
}) }, hAsync("slot", { key: 'c4060ce2439e96a5ac8763843579b7956a90032f' })));
|
|
26358
26337
|
}
|
|
26359
26338
|
static get style() { return {
|
|
26360
26339
|
ios: IonNoteIosStyle0,
|
|
@@ -26851,7 +26830,7 @@ class Picker$1 {
|
|
|
26851
26830
|
this.emitInputModeChange();
|
|
26852
26831
|
}
|
|
26853
26832
|
render() {
|
|
26854
|
-
return (hAsync(Host, { key: '
|
|
26833
|
+
return (hAsync(Host, { key: '56b1421dee69c5aa7521b70199f047f4033c0a94', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, hAsync("input", { key: '6956b6ee5debbad88e90d8b307833a4c112cabfb', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
|
|
26855
26834
|
var _a;
|
|
26856
26835
|
/**
|
|
26857
26836
|
* The "Enter" key represents
|
|
@@ -26866,7 +26845,7 @@ class Picker$1 {
|
|
|
26866
26845
|
if (ev.key === 'Enter') {
|
|
26867
26846
|
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.blur();
|
|
26868
26847
|
}
|
|
26869
|
-
}, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), hAsync("div", { key: '
|
|
26848
|
+
}, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), hAsync("div", { key: 'b6acaac9ed883ab1db90a09f7ef3c15feb8fa38b', class: "picker-before" }), hAsync("div", { key: '76a49ca1b135f5fdd31a6230053af1f58d0d7dd1', class: "picker-after" }), hAsync("div", { key: '1e265527d12ffd6dc005133ac7fcfc2a1e02c7c3', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), hAsync("slot", { key: '828077cb8f6a8061d3509aca018d7b06d3e98130' })));
|
|
26870
26849
|
}
|
|
26871
26850
|
get el() { return getElement(this); }
|
|
26872
26851
|
static get style() { return {
|
|
@@ -27106,11 +27085,11 @@ class Picker {
|
|
|
27106
27085
|
render() {
|
|
27107
27086
|
const { htmlAttributes } = this;
|
|
27108
27087
|
const mode = getIonMode$1(this);
|
|
27109
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
27088
|
+
return (hAsync(Host, Object.assign({ key: '285d317ac7974e6c74003f5f5ebef0e1e09a1872', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
27110
27089
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
27111
27090
|
}, class: Object.assign({ [mode]: true,
|
|
27112
27091
|
// Used internally for styling
|
|
27113
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: '
|
|
27092
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), hAsync("ion-backdrop", { key: 'fea748f9be58118b5d44a4ec951d8b269a6ef4ff', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync("div", { key: '331c557b055b3fd3e1bd0ebed18045881a4202bf', tabindex: "0" }), hAsync("div", { key: '721efa169849e204d021abfaca6ba8d3f2314192', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, hAsync("div", { key: 'dddc0d894e246eb9d68621ed8cb1635b767367a7', class: "picker-toolbar" }, this.buttons.map((b) => (hAsync("div", { class: buttonWrapperClass(b) }, hAsync("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass$1(b) }, b.text))))), hAsync("div", { key: '6ddbfc93dc0fae1f152c5bfbed11c71120e1a90d', class: "picker-columns" }, hAsync("div", { key: '48cae995a7ef7e15e815b8513d0d00b18f909b31', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => hAsync("ion-picker-legacy-column", { col: c })), hAsync("div", { key: '801a673e5dd04c56e195d1285b56c69b97300d3a', class: "picker-below-highlight" }))), hAsync("div", { key: '7caa3cf1d94226184d9f7ab857962a80b53a3638', tabindex: "0" })));
|
|
27114
27093
|
}
|
|
27115
27094
|
get el() { return getElement(this); }
|
|
27116
27095
|
static get watchers() { return {
|
|
@@ -27524,14 +27503,14 @@ class PickerColumn {
|
|
|
27524
27503
|
render() {
|
|
27525
27504
|
const { color, disabled, isActive, numericInput } = this;
|
|
27526
27505
|
const mode = getIonMode$1(this);
|
|
27527
|
-
return (hAsync(Host, { key: '
|
|
27506
|
+
return (hAsync(Host, { key: '22dcc8dc9bc8c6035cba9f8825f231797464c652', class: createColorClasses$1(color, {
|
|
27528
27507
|
[mode]: true,
|
|
27529
27508
|
['picker-column-active']: isActive,
|
|
27530
27509
|
['picker-column-numeric-input']: numericInput,
|
|
27531
27510
|
['picker-column-disabled']: disabled,
|
|
27532
|
-
}) }, hAsync("slot", { key: '
|
|
27511
|
+
}) }, hAsync("slot", { key: 'e93c2d8ea862e2d84ae9338ad2cbec0eea2230f8', name: "prefix" }), hAsync("div", { key: 'a981c29b3cd9456b7f2523d1daa4d1797d389f03', class: "picker-opts", tabindex: disabled ? undefined : 0, ref: (el) => {
|
|
27533
27512
|
this.scrollEl = el;
|
|
27534
|
-
} }, hAsync("div", { key: '
|
|
27513
|
+
} }, hAsync("div", { key: 'd80da940ecb2d8cea236ef9c74da1871a7ab6248', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: '2b05ef9d4116ca7940c3b61454517c02ee40bf9e', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: 'a557a7fb595d3bec5e0bd76b10f73cdc93b17bff', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("slot", { key: '4934b827a0b11dfcb2cb9a49740076609ab86f59' }), hAsync("div", { key: 'f89592da27eb54e88e9a977aa4ecd9dc4d8e211d', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: '87c0cf79ce3b88c2328256ee6895612327653009', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), hAsync("div", { key: '24e96271c3e7468cc3cc5a6f3e384740c4fd9988', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0")), hAsync("slot", { key: '2ed210e571787a88c06d7538cb7082875e85fb28', name: "suffix" })));
|
|
27535
27514
|
}
|
|
27536
27515
|
get el() { return getElement(this); }
|
|
27537
27516
|
static get watchers() { return {
|
|
@@ -27896,9 +27875,9 @@ class PickerColumnCmp {
|
|
|
27896
27875
|
render() {
|
|
27897
27876
|
const col = this.col;
|
|
27898
27877
|
const mode = getIonMode$1(this);
|
|
27899
|
-
return (hAsync(Host, { key: '
|
|
27878
|
+
return (hAsync(Host, { key: '0337ac8379be177501b8d61f0ac0f68ecbb8344d', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, getClassMap(col.cssClass)), style: {
|
|
27900
27879
|
'max-width': this.col.columnWidth,
|
|
27901
|
-
} }, col.prefix && (hAsync("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), hAsync("div", { key: '
|
|
27880
|
+
} }, col.prefix && (hAsync("div", { class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), hAsync("div", { key: '013ba8ea1c2fe4fe717386b9cc87484913c234f7', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index) => (hAsync("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index }, o.text)))), col.suffix && (hAsync("div", { class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
27902
27881
|
}
|
|
27903
27882
|
get el() { return getElement(this); }
|
|
27904
27883
|
static get watchers() { return {
|
|
@@ -28002,10 +27981,10 @@ class PickerColumnOption {
|
|
|
28002
27981
|
render() {
|
|
28003
27982
|
const { color, disabled, ariaLabel } = this;
|
|
28004
27983
|
const mode = getIonMode$1(this);
|
|
28005
|
-
return (hAsync(Host, { key: '
|
|
27984
|
+
return (hAsync(Host, { key: '1d5358c019c01ca429ddb514b9f9b67a3c89f652', class: createColorClasses$1(color, {
|
|
28006
27985
|
[mode]: true,
|
|
28007
27986
|
['option-disabled']: disabled,
|
|
28008
|
-
}) }, hAsync("button", { key: '
|
|
27987
|
+
}) }, hAsync("button", { key: 'c86794a15b61062a886c6f5113723ccd98238e9f', tabindex: "-1", "aria-label": ariaLabel, disabled: disabled, onClick: () => this.onClick() }, hAsync("slot", { key: 'ab7f80cacdd39b5aedf7d2cc8eddc6288093629a' }))));
|
|
28009
27988
|
}
|
|
28010
27989
|
get el() { return getElement(this); }
|
|
28011
27990
|
static get watchers() { return {
|
|
@@ -29313,9 +29292,9 @@ class Popover {
|
|
|
29313
29292
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes } = this;
|
|
29314
29293
|
const desktop = isPlatform('desktop');
|
|
29315
29294
|
const enableArrow = arrow && !parentPopover;
|
|
29316
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
29295
|
+
return (hAsync(Host, Object.assign({ key: '6b555de5f10a00551cd14a8065ffee388c6e218a', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
29317
29296
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
29318
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: '
|
|
29297
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && hAsync("ion-backdrop", { tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync("div", { key: 'ecf8280d3119a3e7104ff10bdaebbe3a4a7d1579', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { class: "popover-arrow", part: "arrow" }), hAsync("div", { key: '0701cb732704fe84255c78114f61a19b7e431a17', class: "popover-content", part: "content" }, hAsync("slot", { key: '213fdc42677814157aa573855e6db4c4a0052161' })))));
|
|
29319
29298
|
}
|
|
29320
29299
|
get el() { return getElement(this); }
|
|
29321
29300
|
static get watchers() { return {
|
|
@@ -29406,7 +29385,7 @@ class ProgressBar {
|
|
|
29406
29385
|
const mode = getIonMode$1(this);
|
|
29407
29386
|
// If the progress is displayed as a solid bar.
|
|
29408
29387
|
const progressSolid = buffer === 1;
|
|
29409
|
-
return (hAsync(Host, { key: '
|
|
29388
|
+
return (hAsync(Host, { key: '78a32304c7164cb78145a91be7bb9b86ecd11b66', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses$1(color, {
|
|
29410
29389
|
[mode]: true,
|
|
29411
29390
|
[`progress-bar-${type}`]: true,
|
|
29412
29391
|
'progress-paused': paused,
|
|
@@ -29563,7 +29542,7 @@ class Radio {
|
|
|
29563
29542
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
29564
29543
|
const mode = getIonMode$1(this);
|
|
29565
29544
|
const inItem = hostContext('ion-item', el);
|
|
29566
|
-
return (hAsync(Host, { key: '
|
|
29545
|
+
return (hAsync(Host, { key: '46bb0202f75b6cc81df10de71fbe971dc4dcaa68', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses$1(color, {
|
|
29567
29546
|
[mode]: true,
|
|
29568
29547
|
'in-item': inItem,
|
|
29569
29548
|
'radio-checked': checked,
|
|
@@ -29574,10 +29553,10 @@ class Radio {
|
|
|
29574
29553
|
// Focus and active styling should not apply when the radio is in an item
|
|
29575
29554
|
'ion-activatable': !inItem,
|
|
29576
29555
|
'ion-focusable': !inItem,
|
|
29577
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '
|
|
29556
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, hAsync("label", { key: '55061e8cc857752d963c9e4a65f46727f5c2cd9d', class: "radio-wrapper" }, hAsync("div", { key: '589fd41fccd0e6d007e7bc502067f3f2447e4b80', class: {
|
|
29578
29557
|
'label-text-wrapper': true,
|
|
29579
29558
|
'label-text-wrapper-hidden': !hasLabel,
|
|
29580
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
29559
|
+
}, part: "label" }, hAsync("slot", { key: '0076f1f3b64c1a0cf2bc511424956a63d6cf2db9' })), hAsync("div", { key: '1505a84e6dc8715f8fcb19ce94fab79e624a0622', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
29581
29560
|
}
|
|
29582
29561
|
get el() { return getElement(this); }
|
|
29583
29562
|
static get watchers() { return {
|
|
@@ -29762,7 +29741,7 @@ class RadioGroup {
|
|
|
29762
29741
|
const { label, labelId, el, name, value } = this;
|
|
29763
29742
|
const mode = getIonMode$1(this);
|
|
29764
29743
|
renderHiddenInput(true, el, name, value, false);
|
|
29765
|
-
return hAsync(Host, { key: '
|
|
29744
|
+
return hAsync(Host, { key: '3d43aa6696c5293b49fc44cf91e3e41c4f4d12df', role: "radiogroup", "aria-labelledby": label ? labelId : null, onClick: this.onClick, class: mode });
|
|
29766
29745
|
}
|
|
29767
29746
|
get el() { return getElement(this); }
|
|
29768
29747
|
static get watchers() { return {
|
|
@@ -29826,10 +29805,10 @@ function roundToMaxDecimalPlaces(n, ...references) {
|
|
|
29826
29805
|
return Number(n.toFixed(maxPlaces));
|
|
29827
29806
|
}
|
|
29828
29807
|
|
|
29829
|
-
const rangeIosCss = "/*!@:host*/.sc-ion-range-ios-h{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.range-disabled)*/.range-disabled.sc-ion-range-ios-h{pointer-events:none}/*!@::slotted(ion-label)*/.sc-ion-range-ios-s>ion-label{-ms-flex:initial;flex:initial}/*!@::slotted(ion-icon[slot])*/.sc-ion-range-ios-s>ion-icon[slot]{font-size:24px}/*!@.range-slider*/.range-slider.sc-ion-range-ios{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}/*!@:host(.range-pressed) .range-slider*/.range-pressed.sc-ion-range-ios-h .range-slider.sc-ion-range-ios{cursor:-webkit-grabbing;cursor:grabbing}/*!@.range-pin*/.range-pin.sc-ion-range-ios{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-ios{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-ios{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-knob-handle*/[dir=rtl].sc-ion-range-ios-h .range-knob-handle.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h .range-knob-handle.sc-ion-range-ios{left:unset}/*!@[dir=rtl] .range-knob-handle*/[dir=rtl].sc-ion-range-ios .range-knob-handle.sc-ion-range-ios{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob-handle:dir(rtl)*/.range-knob-handle.sc-ion-range-ios:dir(rtl){left:unset}}/*!@.range-knob-handle:active, .range-knob-handle:focus*/.range-knob-handle.sc-ion-range-ios:active,.range-knob-handle.sc-ion-range-ios:focus{outline:none}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-ios{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-ios{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-bar-container*/[dir=rtl].sc-ion-range-ios-h .range-bar-container.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h .range-bar-container.sc-ion-range-ios{left:unset}/*!@[dir=rtl] .range-bar-container*/[dir=rtl].sc-ion-range-ios .range-bar-container.sc-ion-range-ios{left:unset}@supports selector(:dir(rtl)){/*!@.range-bar-container:dir(rtl)*/.range-bar-container.sc-ion-range-ios:dir(rtl){left:unset}}/*!@.range-bar*/.range-bar.sc-ion-range-ios{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-ios{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-ios{inset-inline-start:calc(50% - var(--knob-size) / 2)}/*!@:host-context([dir=rtl]) .range-knob*/[dir=rtl].sc-ion-range-ios-h .range-knob.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h .range-knob.sc-ion-range-ios{left:unset}/*!@[dir=rtl] .range-knob*/[dir=rtl].sc-ion-range-ios .range-knob.sc-ion-range-ios{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob:dir(rtl)*/.range-knob.sc-ion-range-ios:dir(rtl){left:unset}}/*!@:host(.range-pressed) .range-bar-active*/.range-pressed.sc-ion-range-ios-h .range-bar-active.sc-ion-range-ios{will-change:left, right}/*!@:host(.in-item)*/.in-item.sc-ion-range-ios-h{width:100%}/*!@:host([slot=start]),\n:host([slot=end])*/[slot=start].sc-ion-range-ios-h,[slot=end].sc-ion-range-ios-h{width:auto}/*!@:host(.in-item) ::slotted(ion-label)*/.sc-ion-range-ios-h.in-item .sc-ion-range-ios-s>ion-label{-ms-flex-item-align:center;align-self:center}/*!@.range-wrapper*/.range-wrapper.sc-ion-range-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}/*!@::slotted([slot=label])*/.sc-ion-range-ios-s>[slot=label]{max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-range-ios{display:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-range-ios{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}/*!@:host(.range-label-placement-start) .range-wrapper*/.range-label-placement-start.sc-ion-range-ios-h .range-wrapper.sc-ion-range-ios{-ms-flex-direction:row;flex-direction:row}/*!@:host(.range-label-placement-start) .label-text-wrapper*/.range-label-placement-start.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-end) .range-wrapper*/.range-label-placement-end.sc-ion-range-ios-h .range-wrapper.sc-ion-range-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.range-label-placement-end) .label-text-wrapper*/.range-label-placement-end.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.range-label-placement-stacked) .range-wrapper*/.range-label-placement-stacked.sc-ion-range-ios-h .range-wrapper.sc-ion-range-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}/*!@:host(.range-label-placement-stacked) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-transform-origin:left top;transform-origin:left top;-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-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper, :host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper*/[dir=rtl].sc-ion-range-ios-h -no-combinator.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h -no-combinator.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios,[dir=rtl].range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios,[dir=rtl] .range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-ios-h:dir(rtl) .label-text-wrapper.sc-ion-range-ios{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.in-item.range-label-placement-stacked) .label-text-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.range-label-placement-stacked) .native-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-ios-h .native-wrapper.sc-ion-range-ios{margin-bottom:0px}/*!@:host*/.sc-ion-range-ios-h{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0px 0.5px 4px rgba(0, 0, 0, 0.12), 0px 6px 13px rgba(0, 0, 0, 0.12);--knob-size:26px;--bar-height:4px;--bar-background:var(--ion-color-step-900, var(--ion-background-color-step-900, #e6e6e6));--bar-background-active:var(--ion-color-primary, #0054e9);--bar-border-radius:2px;--height:42px}/*!@:host(.legacy-range)*/.legacy-range.sc-ion-range-ios-h{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}/*!@:host(.range-item-start-adjustment)*/.range-item-start-adjustment.sc-ion-range-ios-h{-webkit-padding-start:24px;padding-inline-start:24px}/*!@:host(.range-item-end-adjustment)*/.range-item-end-adjustment.sc-ion-range-ios-h{-webkit-padding-end:24px;padding-inline-end:24px}/*!@:host(.ion-color) .range-bar-active,\n:host(.ion-color) .range-tick-active*/.ion-color.sc-ion-range-ios-h .range-bar-active.sc-ion-range-ios,.ion-color.sc-ion-range-ios-h .range-tick-active.sc-ion-range-ios{background:var(--ion-color-base)}/*!@::slotted([slot=start])*/.sc-ion-range-ios-s>[slot=start]{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@::slotted([slot=end])*/.sc-ion-range-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-has-pin:not(.range-label-placement-stacked))*/.range-has-pin.sc-ion-range-ios-h:not(.range-label-placement-stacked){padding-top:calc(8px + 0.75rem)}/*!@:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper*/.range-has-pin.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{margin-bottom:calc(8px + 0.75rem)}/*!@.range-bar-active*/.range-bar-active.sc-ion-range-ios{bottom:0;width:auto;background:var(--bar-background-active)}/*!@.range-bar-active.has-ticks*/.range-bar-active.has-ticks.sc-ion-range-ios{border-radius:0;-webkit-margin-start:-2px;margin-inline-start:-2px;-webkit-margin-end:-2px;margin-inline-end:-2px}/*!@.range-tick*/.range-tick.sc-ion-range-ios{-webkit-margin-start:-2px;margin-inline-start:-2px;border-radius:0;position:absolute;top:17px;width:4px;height:8px;background:var(--ion-color-step-900, var(--ion-background-color-step-900, #e6e6e6));pointer-events:none}/*!@.range-tick-active*/.range-tick-active.sc-ion-range-ios{background:var(--bar-background-active)}/*!@.range-pin*/.range-pin.sc-ion-range-ios{-webkit-transform:translate3d(0, 100%, 0) scale(0.01);transform:translate3d(0, 100%, 0) scale(0.01);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:0.75rem;text-align:center}/*!@.range-knob-pressed .range-pin,\n.range-knob-handle.ion-focused .range-pin*/.range-knob-pressed.sc-ion-range-ios .range-pin.sc-ion-range-ios,.range-knob-handle.ion-focused.sc-ion-range-ios .range-pin.sc-ion-range-ios{-webkit-transform:translate3d(0, calc(-100% + 11px), 0) scale(1);transform:translate3d(0, calc(-100% + 11px), 0) scale(1)}/*!@:host(.range-disabled)*/.range-disabled.sc-ion-range-ios-h{opacity:0.3}";
|
|
29808
|
+
const rangeIosCss = "/*!@:host*/.sc-ion-range-ios-h{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.range-disabled)*/.range-disabled.sc-ion-range-ios-h{pointer-events:none}/*!@::slotted(ion-label)*/.sc-ion-range-ios-s>ion-label{-ms-flex:initial;flex:initial}/*!@::slotted(ion-icon[slot])*/.sc-ion-range-ios-s>ion-icon[slot]{font-size:24px}/*!@.range-slider*/.range-slider.sc-ion-range-ios{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}/*!@:host(.range-pressed) .range-slider*/.range-pressed.sc-ion-range-ios-h .range-slider.sc-ion-range-ios{cursor:-webkit-grabbing;cursor:grabbing}/*!@.range-pin*/.range-pin.sc-ion-range-ios{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-ios{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-ios{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-knob-handle*/[dir=rtl].sc-ion-range-ios-h .range-knob-handle.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h .range-knob-handle.sc-ion-range-ios{left:unset}/*!@[dir=rtl] .range-knob-handle*/[dir=rtl].sc-ion-range-ios .range-knob-handle.sc-ion-range-ios{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob-handle:dir(rtl)*/.range-knob-handle.sc-ion-range-ios:dir(rtl){left:unset}}/*!@.range-knob-handle:active, .range-knob-handle:focus*/.range-knob-handle.sc-ion-range-ios:active,.range-knob-handle.sc-ion-range-ios:focus{outline:none}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-ios{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-ios{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-bar-container*/[dir=rtl].sc-ion-range-ios-h .range-bar-container.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h .range-bar-container.sc-ion-range-ios{left:unset}/*!@[dir=rtl] .range-bar-container*/[dir=rtl].sc-ion-range-ios .range-bar-container.sc-ion-range-ios{left:unset}@supports selector(:dir(rtl)){/*!@.range-bar-container:dir(rtl)*/.range-bar-container.sc-ion-range-ios:dir(rtl){left:unset}}/*!@.range-bar*/.range-bar.sc-ion-range-ios{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-ios{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-ios{inset-inline-start:calc(50% - var(--knob-size) / 2)}/*!@:host-context([dir=rtl]) .range-knob*/[dir=rtl].sc-ion-range-ios-h .range-knob.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h .range-knob.sc-ion-range-ios{left:unset}/*!@[dir=rtl] .range-knob*/[dir=rtl].sc-ion-range-ios .range-knob.sc-ion-range-ios{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob:dir(rtl)*/.range-knob.sc-ion-range-ios:dir(rtl){left:unset}}/*!@:host(.range-pressed) .range-bar-active*/.range-pressed.sc-ion-range-ios-h .range-bar-active.sc-ion-range-ios{will-change:left, right}/*!@:host(.in-item)*/.in-item.sc-ion-range-ios-h{width:100%}/*!@:host([slot=start]),\n:host([slot=end])*/[slot=start].sc-ion-range-ios-h,[slot=end].sc-ion-range-ios-h{width:auto}/*!@:host(.in-item) ::slotted(ion-label)*/.sc-ion-range-ios-h.in-item .sc-ion-range-ios-s>ion-label{-ms-flex-item-align:center;align-self:center}/*!@.range-wrapper*/.range-wrapper.sc-ion-range-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}/*!@::slotted([slot=label])*/.sc-ion-range-ios-s>[slot=label]{max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-range-ios{display:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-range-ios{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}/*!@:host(.range-label-placement-start) .range-wrapper*/.range-label-placement-start.sc-ion-range-ios-h .range-wrapper.sc-ion-range-ios{-ms-flex-direction:row;flex-direction:row}/*!@:host(.range-label-placement-start) .label-text-wrapper*/.range-label-placement-start.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-end) .range-wrapper*/.range-label-placement-end.sc-ion-range-ios-h .range-wrapper.sc-ion-range-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.range-label-placement-end) .label-text-wrapper*/.range-label-placement-end.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.range-label-placement-stacked) .range-wrapper*/.range-label-placement-stacked.sc-ion-range-ios-h .range-wrapper.sc-ion-range-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}/*!@:host(.range-label-placement-stacked) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-transform-origin:left top;transform-origin:left top;-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-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper, :host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper*/[dir=rtl].sc-ion-range-ios-h -no-combinator.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios,[dir=rtl] .sc-ion-range-ios-h -no-combinator.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios,[dir=rtl].range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios,[dir=rtl] .range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-ios-h:dir(rtl) .label-text-wrapper.sc-ion-range-ios{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.in-item.range-label-placement-stacked) .label-text-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.range-label-placement-stacked) .native-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-ios-h .native-wrapper.sc-ion-range-ios{margin-bottom:0px}/*!@:host*/.sc-ion-range-ios-h{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0px 0.5px 4px rgba(0, 0, 0, 0.12), 0px 6px 13px rgba(0, 0, 0, 0.12);--knob-size:26px;--bar-height:4px;--bar-background:var(--ion-color-step-900, var(--ion-background-color-step-900, #e6e6e6));--bar-background-active:var(--ion-color-primary, #0054e9);--bar-border-radius:2px;--height:42px}/*!@:host(.range-item-start-adjustment)*/.range-item-start-adjustment.sc-ion-range-ios-h{-webkit-padding-start:24px;padding-inline-start:24px}/*!@:host(.range-item-end-adjustment)*/.range-item-end-adjustment.sc-ion-range-ios-h{-webkit-padding-end:24px;padding-inline-end:24px}/*!@:host(.ion-color) .range-bar-active,\n:host(.ion-color) .range-tick-active*/.ion-color.sc-ion-range-ios-h .range-bar-active.sc-ion-range-ios,.ion-color.sc-ion-range-ios-h .range-tick-active.sc-ion-range-ios{background:var(--ion-color-base)}/*!@::slotted([slot=start])*/.sc-ion-range-ios-s>[slot=start]{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@::slotted([slot=end])*/.sc-ion-range-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-has-pin:not(.range-label-placement-stacked))*/.range-has-pin.sc-ion-range-ios-h:not(.range-label-placement-stacked){padding-top:calc(8px + 0.75rem)}/*!@:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper*/.range-has-pin.range-label-placement-stacked.sc-ion-range-ios-h .label-text-wrapper.sc-ion-range-ios{margin-bottom:calc(8px + 0.75rem)}/*!@.range-bar-active*/.range-bar-active.sc-ion-range-ios{bottom:0;width:auto;background:var(--bar-background-active)}/*!@.range-bar-active.has-ticks*/.range-bar-active.has-ticks.sc-ion-range-ios{border-radius:0;-webkit-margin-start:-2px;margin-inline-start:-2px;-webkit-margin-end:-2px;margin-inline-end:-2px}/*!@.range-tick*/.range-tick.sc-ion-range-ios{-webkit-margin-start:-2px;margin-inline-start:-2px;border-radius:0;position:absolute;top:17px;width:4px;height:8px;background:var(--ion-color-step-900, var(--ion-background-color-step-900, #e6e6e6));pointer-events:none}/*!@.range-tick-active*/.range-tick-active.sc-ion-range-ios{background:var(--bar-background-active)}/*!@.range-pin*/.range-pin.sc-ion-range-ios{-webkit-transform:translate3d(0, 100%, 0) scale(0.01);transform:translate3d(0, 100%, 0) scale(0.01);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:0.75rem;text-align:center}/*!@.range-knob-pressed .range-pin,\n.range-knob-handle.ion-focused .range-pin*/.range-knob-pressed.sc-ion-range-ios .range-pin.sc-ion-range-ios,.range-knob-handle.ion-focused.sc-ion-range-ios .range-pin.sc-ion-range-ios{-webkit-transform:translate3d(0, calc(-100% + 11px), 0) scale(1);transform:translate3d(0, calc(-100% + 11px), 0) scale(1)}/*!@:host(.range-disabled)*/.range-disabled.sc-ion-range-ios-h{opacity:0.3}";
|
|
29830
29809
|
var IonRangeIosStyle0 = rangeIosCss;
|
|
29831
29810
|
|
|
29832
|
-
const rangeMdCss = "/*!@:host*/.sc-ion-range-md-h{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.range-disabled)*/.range-disabled.sc-ion-range-md-h{pointer-events:none}/*!@::slotted(ion-label)*/.sc-ion-range-md-s>ion-label{-ms-flex:initial;flex:initial}/*!@::slotted(ion-icon[slot])*/.sc-ion-range-md-s>ion-icon[slot]{font-size:24px}/*!@.range-slider*/.range-slider.sc-ion-range-md{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}/*!@:host(.range-pressed) .range-slider*/.range-pressed.sc-ion-range-md-h .range-slider.sc-ion-range-md{cursor:-webkit-grabbing;cursor:grabbing}/*!@.range-pin*/.range-pin.sc-ion-range-md{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-md{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-md{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-knob-handle*/[dir=rtl].sc-ion-range-md-h .range-knob-handle.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h .range-knob-handle.sc-ion-range-md{left:unset}/*!@[dir=rtl] .range-knob-handle*/[dir=rtl].sc-ion-range-md .range-knob-handle.sc-ion-range-md{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob-handle:dir(rtl)*/.range-knob-handle.sc-ion-range-md:dir(rtl){left:unset}}/*!@.range-knob-handle:active, .range-knob-handle:focus*/.range-knob-handle.sc-ion-range-md:active,.range-knob-handle.sc-ion-range-md:focus{outline:none}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-md{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-md{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-bar-container*/[dir=rtl].sc-ion-range-md-h .range-bar-container.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h .range-bar-container.sc-ion-range-md{left:unset}/*!@[dir=rtl] .range-bar-container*/[dir=rtl].sc-ion-range-md .range-bar-container.sc-ion-range-md{left:unset}@supports selector(:dir(rtl)){/*!@.range-bar-container:dir(rtl)*/.range-bar-container.sc-ion-range-md:dir(rtl){left:unset}}/*!@.range-bar*/.range-bar.sc-ion-range-md{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-md{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-md{inset-inline-start:calc(50% - var(--knob-size) / 2)}/*!@:host-context([dir=rtl]) .range-knob*/[dir=rtl].sc-ion-range-md-h .range-knob.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h .range-knob.sc-ion-range-md{left:unset}/*!@[dir=rtl] .range-knob*/[dir=rtl].sc-ion-range-md .range-knob.sc-ion-range-md{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob:dir(rtl)*/.range-knob.sc-ion-range-md:dir(rtl){left:unset}}/*!@:host(.range-pressed) .range-bar-active*/.range-pressed.sc-ion-range-md-h .range-bar-active.sc-ion-range-md{will-change:left, right}/*!@:host(.in-item)*/.in-item.sc-ion-range-md-h{width:100%}/*!@:host([slot=start]),\n:host([slot=end])*/[slot=start].sc-ion-range-md-h,[slot=end].sc-ion-range-md-h{width:auto}/*!@:host(.in-item) ::slotted(ion-label)*/.sc-ion-range-md-h.in-item .sc-ion-range-md-s>ion-label{-ms-flex-item-align:center;align-self:center}/*!@.range-wrapper*/.range-wrapper.sc-ion-range-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}/*!@::slotted([slot=label])*/.sc-ion-range-md-s>[slot=label]{max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-range-md{display:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-range-md{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}/*!@:host(.range-label-placement-start) .range-wrapper*/.range-label-placement-start.sc-ion-range-md-h .range-wrapper.sc-ion-range-md{-ms-flex-direction:row;flex-direction:row}/*!@:host(.range-label-placement-start) .label-text-wrapper*/.range-label-placement-start.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-end) .range-wrapper*/.range-label-placement-end.sc-ion-range-md-h .range-wrapper.sc-ion-range-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.range-label-placement-end) .label-text-wrapper*/.range-label-placement-end.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.range-label-placement-stacked) .range-wrapper*/.range-label-placement-stacked.sc-ion-range-md-h .range-wrapper.sc-ion-range-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}/*!@:host(.range-label-placement-stacked) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-transform-origin:left top;transform-origin:left top;-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-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper, :host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper*/[dir=rtl].sc-ion-range-md-h -no-combinator.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h -no-combinator.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,[dir=rtl].range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,[dir=rtl] .range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-md-h:dir(rtl) .label-text-wrapper.sc-ion-range-md{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.in-item.range-label-placement-stacked) .label-text-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.range-label-placement-stacked) .native-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-md-h .native-wrapper.sc-ion-range-md{margin-bottom:0px}/*!@:host*/.sc-ion-range-md-h{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.26);--bar-background-active:var(--ion-color-primary, #0054e9);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #0054e9);--pin-color:var(--ion-color-primary-contrast, #fff)}/*!@:host(.legacy-range) ::slotted([slot=label])*/.sc-ion-range-md-h.legacy-range .sc-ion-range-md-s>[slot=label]{font-size:initial}/*!@:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=start]),\n:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=end]),\n:host(:not(.legacy-range)) .native-wrapper*/.sc-ion-range-md-h:not(.legacy-range) .sc-ion-range-md-s>:not(ion-icon)[slot=start],.sc-ion-range-md-h:not(.legacy-range).sc-ion-range-md-s>:not(ion-icon)[slot=end],.sc-ion-range-md-h:not(.legacy-range) .sc-ion-range-md-s>:not(ion-icon)[slot=end],.sc-ion-range-md-h:not(.legacy-range) .native-wrapper.sc-ion-range-md{font-size:0.75rem}/*!@:host(.legacy-range)*/.legacy-range.sc-ion-range-md-h{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:8px;padding-bottom:8px;font-size:0.75rem}/*!@:host(.range-item-start-adjustment)*/.range-item-start-adjustment.sc-ion-range-md-h{-webkit-padding-start:18px;padding-inline-start:18px}/*!@:host(.range-item-end-adjustment)*/.range-item-end-adjustment.sc-ion-range-md-h{-webkit-padding-end:18px;padding-inline-end:18px}/*!@:host(.ion-color) .range-bar*/.ion-color.sc-ion-range-md-h .range-bar.sc-ion-range-md{background:rgba(var(--ion-color-base-rgb), 0.26)}/*!@:host(.ion-color) .range-bar-active,\n:host(.ion-color) .range-knob,\n:host(.ion-color) .range-knob::before,\n:host(.ion-color) .range-pin,\n:host(.ion-color) .range-pin::before,\n:host(.ion-color) .range-tick*/.ion-color.sc-ion-range-md-h .range-bar-active.sc-ion-range-md,.ion-color.sc-ion-range-md-h .range-knob.sc-ion-range-md,.ion-color.sc-ion-range-md-h .range-knob.sc-ion-range-md::before,.ion-color.sc-ion-range-md-h .range-pin.sc-ion-range-md,.ion-color.sc-ion-range-md-h .range-pin.sc-ion-range-md::before,.ion-color.sc-ion-range-md-h .range-tick.sc-ion-range-md{background:var(--ion-color-base);color:var(--ion-color-contrast)}/*!@::slotted([slot=start])*/.sc-ion-range-md-s>[slot=start]{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0}/*!@::slotted([slot=end])*/.sc-ion-range-md-s>[slot=end]{-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-has-pin:not(.range-label-placement-stacked))*/.range-has-pin.sc-ion-range-md-h:not(.range-label-placement-stacked){padding-top:1.75rem}/*!@:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper*/.range-has-pin.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{margin-bottom:1.75rem}/*!@.range-bar-active*/.range-bar-active.sc-ion-range-md{bottom:0;width:auto;background:var(--bar-background-active)}/*!@.range-knob*/.range-knob.sc-ion-range-md{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}/*!@.range-knob::before*/.range-knob.sc-ion-range-md::before{border-radius:50%;position:absolute;width:var(--knob-size);height:var(--knob-size);-webkit-transform:scale(1);transform:scale(1);-webkit-transition:0.267s cubic-bezier(0, 0, 0.58, 1);transition:0.267s cubic-bezier(0, 0, 0.58, 1);background:var(--knob-background);content:\"\";opacity:0.13;pointer-events:none}/*!@.range-knob::before*/.range-knob.sc-ion-range-md::before{inset-inline-start:0}/*!@.range-tick*/.range-tick.sc-ion-range-md{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}/*!@.range-tick-active*/.range-tick-active.sc-ion-range-md{background:transparent}/*!@.range-pin*/.range-pin.sc-ion-range-md{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0, 0, 0) scale(0.01);transform:translate3d(0, 0, 0) scale(0.01);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:1.75rem;height:1.75rem;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color)}/*!@.range-pin::before*/.range-pin.sc-ion-range-md::before{bottom:-1px;-webkit-margin-start:-13px;margin-inline-start:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:\"\";z-index:-1}/*!@.range-pin::before*/.range-pin.sc-ion-range-md::before{inset-inline-start:50%}/*!@:host-context([dir=rtl]) .range-pin::before*/[dir=rtl].sc-ion-range-md-h .range-pin.sc-ion-range-md::before,[dir=rtl] .sc-ion-range-md-h .range-pin.sc-ion-range-md::before{left:unset}/*!@[dir=rtl] .range-pin::before*/[dir=rtl].sc-ion-range-md .range-pin.sc-ion-range-md::before{left:unset}@supports selector(:dir(rtl)){/*!@.range-pin::before:dir(rtl)*/.range-pin.sc-ion-range-md::before:dir(rtl){left:unset}}/*!@.range-knob-pressed .range-pin,\n.range-knob-handle.ion-focused .range-pin*/.range-knob-pressed.sc-ion-range-md .range-pin.sc-ion-range-md,.range-knob-handle.ion-focused.sc-ion-range-md .range-pin.sc-ion-range-md{-webkit-transform:translate3d(0, calc(-100% + 4px), 0) scale(1);transform:translate3d(0, calc(-100% + 4px), 0) scale(1)}@media (any-hover: hover){/*!@.range-knob-handle:hover .range-knob:before*/.range-knob-handle.sc-ion-range-md:hover .range-knob.sc-ion-range-md:before{-webkit-transform:scale(2);transform:scale(2);opacity:0.13}}/*!@.range-knob-handle.ion-activated .range-knob:before, .range-knob-handle.ion-focused .range-knob:before, .range-knob-handle.range-knob-pressed .range-knob:before*/.range-knob-handle.ion-activated.sc-ion-range-md .range-knob.sc-ion-range-md:before,.range-knob-handle.ion-focused.sc-ion-range-md .range-knob.sc-ion-range-md:before,.range-knob-handle.range-knob-pressed.sc-ion-range-md .range-knob.sc-ion-range-md:before{-webkit-transform:scale(2);transform:scale(2)}/*!@.range-knob-handle.ion-focused .range-knob::before*/.range-knob-handle.ion-focused.sc-ion-range-md .range-knob.sc-ion-range-md::before{opacity:0.13}/*!@.range-knob-handle.ion-activated .range-knob::before, .range-knob-handle.range-knob-pressed .range-knob::before*/.range-knob-handle.ion-activated.sc-ion-range-md .range-knob.sc-ion-range-md::before,.range-knob-handle.range-knob-pressed.sc-ion-range-md .range-knob.sc-ion-range-md::before{opacity:0.25}/*!@:host(:not(.range-has-pin)) .range-knob-pressed .range-knob,\n:host(:not(.range-has-pin)) .range-knob-handle.ion-focused .range-knob*/.sc-ion-range-md-h:not(.range-has-pin) .range-knob-pressed.sc-ion-range-md .range-knob.sc-ion-range-md,.sc-ion-range-md-h:not(.range-has-pin) .range-knob-handle.ion-focused.sc-ion-range-md .range-knob.sc-ion-range-md{-webkit-transform:scale(1);transform:scale(1)}/*!@:host(.range-disabled) .range-bar-active,\n:host(.range-disabled) .range-bar,\n:host(.range-disabled) .range-tick*/.range-disabled.sc-ion-range-md-h .range-bar-active.sc-ion-range-md,.range-disabled.sc-ion-range-md-h .range-bar.sc-ion-range-md,.range-disabled.sc-ion-range-md-h .range-tick.sc-ion-range-md{background-color:var(--ion-color-step-250, var(--ion-background-color-step-250, #bfbfbf))}/*!@:host(.range-disabled) .range-knob*/.range-disabled.sc-ion-range-md-h .range-knob.sc-ion-range-md{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, var(--ion-background-color-step-250, #bfbfbf))}/*!@:host(.range-disabled) .label-text-wrapper,\n:host(.range-disabled) ::slotted([slot=start]),\n:host(.range-disabled) ::slotted([slot=end])*/.range-disabled.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,.sc-ion-range-md-h.range-disabled.sc-ion-range-md-s>[slot=start],.sc-ion-range-md-h.range-disabled .sc-ion-range-md-s>[slot=start],.sc-ion-range-md-h.range-disabled.sc-ion-range-md-s>[slot=end],.sc-ion-range-md-h.range-disabled .sc-ion-range-md-s>[slot=end]{opacity:0.38}";
|
|
29811
|
+
const rangeMdCss = "/*!@:host*/.sc-ion-range-md-h{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}/*!@:host(.range-disabled)*/.range-disabled.sc-ion-range-md-h{pointer-events:none}/*!@::slotted(ion-label)*/.sc-ion-range-md-s>ion-label{-ms-flex:initial;flex:initial}/*!@::slotted(ion-icon[slot])*/.sc-ion-range-md-s>ion-icon[slot]{font-size:24px}/*!@.range-slider*/.range-slider.sc-ion-range-md{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}/*!@:host(.range-pressed) .range-slider*/.range-pressed.sc-ion-range-md-h .range-slider.sc-ion-range-md{cursor:-webkit-grabbing;cursor:grabbing}/*!@.range-pin*/.range-pin.sc-ion-range-md{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-md{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}/*!@.range-knob-handle*/.range-knob-handle.sc-ion-range-md{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-knob-handle*/[dir=rtl].sc-ion-range-md-h .range-knob-handle.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h .range-knob-handle.sc-ion-range-md{left:unset}/*!@[dir=rtl] .range-knob-handle*/[dir=rtl].sc-ion-range-md .range-knob-handle.sc-ion-range-md{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob-handle:dir(rtl)*/.range-knob-handle.sc-ion-range-md:dir(rtl){left:unset}}/*!@.range-knob-handle:active, .range-knob-handle:focus*/.range-knob-handle.sc-ion-range-md:active,.range-knob-handle.sc-ion-range-md:focus{outline:none}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-md{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}/*!@.range-bar-container*/.range-bar-container.sc-ion-range-md{inset-inline-start:0}/*!@:host-context([dir=rtl]) .range-bar-container*/[dir=rtl].sc-ion-range-md-h .range-bar-container.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h .range-bar-container.sc-ion-range-md{left:unset}/*!@[dir=rtl] .range-bar-container*/[dir=rtl].sc-ion-range-md .range-bar-container.sc-ion-range-md{left:unset}@supports selector(:dir(rtl)){/*!@.range-bar-container:dir(rtl)*/.range-bar-container.sc-ion-range-md:dir(rtl){left:unset}}/*!@.range-bar*/.range-bar.sc-ion-range-md{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-md{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}/*!@.range-knob*/.range-knob.sc-ion-range-md{inset-inline-start:calc(50% - var(--knob-size) / 2)}/*!@:host-context([dir=rtl]) .range-knob*/[dir=rtl].sc-ion-range-md-h .range-knob.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h .range-knob.sc-ion-range-md{left:unset}/*!@[dir=rtl] .range-knob*/[dir=rtl].sc-ion-range-md .range-knob.sc-ion-range-md{left:unset}@supports selector(:dir(rtl)){/*!@.range-knob:dir(rtl)*/.range-knob.sc-ion-range-md:dir(rtl){left:unset}}/*!@:host(.range-pressed) .range-bar-active*/.range-pressed.sc-ion-range-md-h .range-bar-active.sc-ion-range-md{will-change:left, right}/*!@:host(.in-item)*/.in-item.sc-ion-range-md-h{width:100%}/*!@:host([slot=start]),\n:host([slot=end])*/[slot=start].sc-ion-range-md-h,[slot=end].sc-ion-range-md-h{width:auto}/*!@:host(.in-item) ::slotted(ion-label)*/.sc-ion-range-md-h.in-item .sc-ion-range-md-s>ion-label{-ms-flex-item-align:center;align-self:center}/*!@.range-wrapper*/.range-wrapper.sc-ion-range-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}/*!@::slotted([slot=label])*/.sc-ion-range-md-s>[slot=label]{max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}/*!@.label-text-wrapper-hidden*/.label-text-wrapper-hidden.sc-ion-range-md{display:none}/*!@.native-wrapper*/.native-wrapper.sc-ion-range-md{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}/*!@:host(.range-label-placement-start) .range-wrapper*/.range-label-placement-start.sc-ion-range-md-h .range-wrapper.sc-ion-range-md{-ms-flex-direction:row;flex-direction:row}/*!@:host(.range-label-placement-start) .label-text-wrapper*/.range-label-placement-start.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-end) .range-wrapper*/.range-label-placement-end.sc-ion-range-md-h .range-wrapper.sc-ion-range-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}/*!@:host(.range-label-placement-end) .label-text-wrapper*/.range-label-placement-end.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}/*!@:host(.range-label-placement-fixed) .label-text-wrapper*/.range-label-placement-fixed.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}/*!@:host(.range-label-placement-stacked) .range-wrapper*/.range-label-placement-stacked.sc-ion-range-md-h .range-wrapper.sc-ion-range-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}/*!@:host(.range-label-placement-stacked) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-transform-origin:left top;transform-origin:left top;-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-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper, :host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper*/[dir=rtl].sc-ion-range-md-h -no-combinator.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,[dir=rtl] .sc-ion-range-md-h -no-combinator.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,[dir=rtl].range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,[dir=rtl] .range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){/*!@:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper*/.range-label-placement-stacked.sc-ion-range-md-h:dir(rtl) .label-text-wrapper.sc-ion-range-md{-webkit-transform-origin:right top;transform-origin:right top}}/*!@:host(.in-item.range-label-placement-stacked) .label-text-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{margin-top:10px;margin-bottom:16px}/*!@:host(.in-item.range-label-placement-stacked) .native-wrapper*/.in-item.range-label-placement-stacked.sc-ion-range-md-h .native-wrapper.sc-ion-range-md{margin-bottom:0px}/*!@:host*/.sc-ion-range-md-h{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.26);--bar-background-active:var(--ion-color-primary, #0054e9);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #0054e9);--pin-color:var(--ion-color-primary-contrast, #fff)}/*!@::slotted(:not(ion-icon)[slot=start]),\n::slotted(:not(ion-icon)[slot=end]),\n.native-wrapper*/.sc-ion-range-md-s>:not(ion-icon)[slot=start],.sc-ion-range-md-s>:not(ion-icon)[slot=end],.native-wrapper.sc-ion-range-md{font-size:0.75rem}/*!@:host(.range-item-start-adjustment)*/.range-item-start-adjustment.sc-ion-range-md-h{-webkit-padding-start:18px;padding-inline-start:18px}/*!@:host(.range-item-end-adjustment)*/.range-item-end-adjustment.sc-ion-range-md-h{-webkit-padding-end:18px;padding-inline-end:18px}/*!@:host(.ion-color) .range-bar*/.ion-color.sc-ion-range-md-h .range-bar.sc-ion-range-md{background:rgba(var(--ion-color-base-rgb), 0.26)}/*!@:host(.ion-color) .range-bar-active,\n:host(.ion-color) .range-knob,\n:host(.ion-color) .range-knob::before,\n:host(.ion-color) .range-pin,\n:host(.ion-color) .range-pin::before,\n:host(.ion-color) .range-tick*/.ion-color.sc-ion-range-md-h .range-bar-active.sc-ion-range-md,.ion-color.sc-ion-range-md-h .range-knob.sc-ion-range-md,.ion-color.sc-ion-range-md-h .range-knob.sc-ion-range-md::before,.ion-color.sc-ion-range-md-h .range-pin.sc-ion-range-md,.ion-color.sc-ion-range-md-h .range-pin.sc-ion-range-md::before,.ion-color.sc-ion-range-md-h .range-tick.sc-ion-range-md{background:var(--ion-color-base);color:var(--ion-color-contrast)}/*!@::slotted([slot=start])*/.sc-ion-range-md-s>[slot=start]{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0}/*!@::slotted([slot=end])*/.sc-ion-range-md-s>[slot=end]{-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}/*!@:host(.range-has-pin:not(.range-label-placement-stacked))*/.range-has-pin.sc-ion-range-md-h:not(.range-label-placement-stacked){padding-top:1.75rem}/*!@:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper*/.range-has-pin.range-label-placement-stacked.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md{margin-bottom:1.75rem}/*!@.range-bar-active*/.range-bar-active.sc-ion-range-md{bottom:0;width:auto;background:var(--bar-background-active)}/*!@.range-knob*/.range-knob.sc-ion-range-md{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}/*!@.range-knob::before*/.range-knob.sc-ion-range-md::before{border-radius:50%;position:absolute;width:var(--knob-size);height:var(--knob-size);-webkit-transform:scale(1);transform:scale(1);-webkit-transition:0.267s cubic-bezier(0, 0, 0.58, 1);transition:0.267s cubic-bezier(0, 0, 0.58, 1);background:var(--knob-background);content:\"\";opacity:0.13;pointer-events:none}/*!@.range-knob::before*/.range-knob.sc-ion-range-md::before{inset-inline-start:0}/*!@.range-tick*/.range-tick.sc-ion-range-md{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}/*!@.range-tick-active*/.range-tick-active.sc-ion-range-md{background:transparent}/*!@.range-pin*/.range-pin.sc-ion-range-md{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0, 0, 0) scale(0.01);transform:translate3d(0, 0, 0) scale(0.01);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:1.75rem;height:1.75rem;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color)}/*!@.range-pin::before*/.range-pin.sc-ion-range-md::before{bottom:-1px;-webkit-margin-start:-13px;margin-inline-start:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:\"\";z-index:-1}/*!@.range-pin::before*/.range-pin.sc-ion-range-md::before{inset-inline-start:50%}/*!@:host-context([dir=rtl]) .range-pin::before*/[dir=rtl].sc-ion-range-md-h .range-pin.sc-ion-range-md::before,[dir=rtl] .sc-ion-range-md-h .range-pin.sc-ion-range-md::before{left:unset}/*!@[dir=rtl] .range-pin::before*/[dir=rtl].sc-ion-range-md .range-pin.sc-ion-range-md::before{left:unset}@supports selector(:dir(rtl)){/*!@.range-pin::before:dir(rtl)*/.range-pin.sc-ion-range-md::before:dir(rtl){left:unset}}/*!@.range-knob-pressed .range-pin,\n.range-knob-handle.ion-focused .range-pin*/.range-knob-pressed.sc-ion-range-md .range-pin.sc-ion-range-md,.range-knob-handle.ion-focused.sc-ion-range-md .range-pin.sc-ion-range-md{-webkit-transform:translate3d(0, calc(-100% + 4px), 0) scale(1);transform:translate3d(0, calc(-100% + 4px), 0) scale(1)}@media (any-hover: hover){/*!@.range-knob-handle:hover .range-knob:before*/.range-knob-handle.sc-ion-range-md:hover .range-knob.sc-ion-range-md:before{-webkit-transform:scale(2);transform:scale(2);opacity:0.13}}/*!@.range-knob-handle.ion-activated .range-knob:before, .range-knob-handle.ion-focused .range-knob:before, .range-knob-handle.range-knob-pressed .range-knob:before*/.range-knob-handle.ion-activated.sc-ion-range-md .range-knob.sc-ion-range-md:before,.range-knob-handle.ion-focused.sc-ion-range-md .range-knob.sc-ion-range-md:before,.range-knob-handle.range-knob-pressed.sc-ion-range-md .range-knob.sc-ion-range-md:before{-webkit-transform:scale(2);transform:scale(2)}/*!@.range-knob-handle.ion-focused .range-knob::before*/.range-knob-handle.ion-focused.sc-ion-range-md .range-knob.sc-ion-range-md::before{opacity:0.13}/*!@.range-knob-handle.ion-activated .range-knob::before, .range-knob-handle.range-knob-pressed .range-knob::before*/.range-knob-handle.ion-activated.sc-ion-range-md .range-knob.sc-ion-range-md::before,.range-knob-handle.range-knob-pressed.sc-ion-range-md .range-knob.sc-ion-range-md::before{opacity:0.25}/*!@:host(:not(.range-has-pin)) .range-knob-pressed .range-knob,\n:host(:not(.range-has-pin)) .range-knob-handle.ion-focused .range-knob*/.sc-ion-range-md-h:not(.range-has-pin) .range-knob-pressed.sc-ion-range-md .range-knob.sc-ion-range-md,.sc-ion-range-md-h:not(.range-has-pin) .range-knob-handle.ion-focused.sc-ion-range-md .range-knob.sc-ion-range-md{-webkit-transform:scale(1);transform:scale(1)}/*!@:host(.range-disabled) .range-bar-active,\n:host(.range-disabled) .range-bar,\n:host(.range-disabled) .range-tick*/.range-disabled.sc-ion-range-md-h .range-bar-active.sc-ion-range-md,.range-disabled.sc-ion-range-md-h .range-bar.sc-ion-range-md,.range-disabled.sc-ion-range-md-h .range-tick.sc-ion-range-md{background-color:var(--ion-color-step-250, var(--ion-background-color-step-250, #bfbfbf))}/*!@:host(.range-disabled) .range-knob*/.range-disabled.sc-ion-range-md-h .range-knob.sc-ion-range-md{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, var(--ion-background-color-step-250, #bfbfbf))}/*!@:host(.range-disabled) .label-text-wrapper,\n:host(.range-disabled) ::slotted([slot=start]),\n:host(.range-disabled) ::slotted([slot=end])*/.range-disabled.sc-ion-range-md-h .label-text-wrapper.sc-ion-range-md,.sc-ion-range-md-h.range-disabled.sc-ion-range-md-s>[slot=start],.sc-ion-range-md-h.range-disabled .sc-ion-range-md-s>[slot=start],.sc-ion-range-md-h.range-disabled.sc-ion-range-md-s>[slot=end],.sc-ion-range-md-h.range-disabled .sc-ion-range-md-s>[slot=end]{opacity:0.38}";
|
|
29833
29812
|
var IonRangeMdStyle0 = rangeMdCss;
|
|
29834
29813
|
|
|
29835
29814
|
// TODO(FW-2832): types
|
|
@@ -29853,7 +29832,6 @@ class Range {
|
|
|
29853
29832
|
registerInstance(this, hostRef);
|
|
29854
29833
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
29855
29834
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
29856
|
-
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
29857
29835
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
29858
29836
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
29859
29837
|
this.ionKnobMoveStart = createEvent(this, "ionKnobMoveStart", 7);
|
|
@@ -29865,8 +29843,6 @@ class Range {
|
|
|
29865
29843
|
this.inheritedAttributes = {};
|
|
29866
29844
|
this.contentEl = null;
|
|
29867
29845
|
this.initialContentScrollY = true;
|
|
29868
|
-
// This flag ensures we log the deprecation warning at most once.
|
|
29869
|
-
this.hasLoggedDeprecationWarning = false;
|
|
29870
29846
|
this.clampBounds = (value) => {
|
|
29871
29847
|
return clamp(this.min, value, this.max);
|
|
29872
29848
|
};
|
|
@@ -29919,14 +29895,12 @@ class Range {
|
|
|
29919
29895
|
if (this.hasFocus) {
|
|
29920
29896
|
this.hasFocus = false;
|
|
29921
29897
|
this.ionBlur.emit();
|
|
29922
|
-
this.emitStyle();
|
|
29923
29898
|
}
|
|
29924
29899
|
};
|
|
29925
29900
|
this.onFocus = () => {
|
|
29926
29901
|
if (!this.hasFocus) {
|
|
29927
29902
|
this.hasFocus = true;
|
|
29928
29903
|
this.ionFocus.emit();
|
|
29929
|
-
this.emitStyle();
|
|
29930
29904
|
}
|
|
29931
29905
|
};
|
|
29932
29906
|
this.ratioA = 0;
|
|
@@ -29948,7 +29922,6 @@ class Range {
|
|
|
29948
29922
|
this.disabled = false;
|
|
29949
29923
|
this.value = 0;
|
|
29950
29924
|
this.labelPlacement = 'start';
|
|
29951
|
-
this.legacy = undefined;
|
|
29952
29925
|
}
|
|
29953
29926
|
debounceChanged() {
|
|
29954
29927
|
const { ionInput, debounce, originalIonInput } = this;
|
|
@@ -29985,7 +29958,6 @@ class Range {
|
|
|
29985
29958
|
if (this.gesture) {
|
|
29986
29959
|
this.gesture.enable(!this.disabled);
|
|
29987
29960
|
}
|
|
29988
|
-
this.emitStyle();
|
|
29989
29961
|
}
|
|
29990
29962
|
valueChanged() {
|
|
29991
29963
|
if (!this.noUpdate) {
|
|
@@ -30009,8 +29981,6 @@ class Range {
|
|
|
30009
29981
|
this.didLoad = true;
|
|
30010
29982
|
}
|
|
30011
29983
|
connectedCallback() {
|
|
30012
|
-
const { el } = this;
|
|
30013
|
-
this.legacyFormController = createLegacyFormController(el);
|
|
30014
29984
|
this.updateRatio();
|
|
30015
29985
|
this.debounceChanged();
|
|
30016
29986
|
this.disabledChanged();
|
|
@@ -30051,17 +30021,6 @@ class Range {
|
|
|
30051
30021
|
return value;
|
|
30052
30022
|
}
|
|
30053
30023
|
}
|
|
30054
|
-
// TODO FW-2997 remove this
|
|
30055
|
-
emitStyle() {
|
|
30056
|
-
if (this.legacyFormController.hasLegacyControl()) {
|
|
30057
|
-
this.ionStyle.emit({
|
|
30058
|
-
interactive: true,
|
|
30059
|
-
'interactive-disabled': this.disabled,
|
|
30060
|
-
// TODO(FW-2997): remove this
|
|
30061
|
-
legacy: !!this.legacy,
|
|
30062
|
-
});
|
|
30063
|
-
}
|
|
30064
|
-
}
|
|
30065
30024
|
/**
|
|
30066
30025
|
* Emits an `ionChange` event.
|
|
30067
30026
|
*
|
|
@@ -30178,34 +30137,6 @@ class Range {
|
|
|
30178
30137
|
}
|
|
30179
30138
|
}
|
|
30180
30139
|
}
|
|
30181
|
-
// TODO FW-2997 remove this
|
|
30182
|
-
renderLegacyRange() {
|
|
30183
|
-
if (!this.hasLoggedDeprecationWarning) {
|
|
30184
|
-
printIonWarning(`ion-range now requires providing a label with either the label slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.
|
|
30185
|
-
|
|
30186
|
-
Example: <ion-range><div slot="label">Volume</div></ion-range>
|
|
30187
|
-
Example with aria-label: <ion-range aria-label="Volume"></ion-range>
|
|
30188
|
-
|
|
30189
|
-
Developers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.`, this.el);
|
|
30190
|
-
if (this.legacy) {
|
|
30191
|
-
printIonWarning(`ion-range is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.
|
|
30192
|
-
|
|
30193
|
-
Developers can dismiss this warning by removing their usage of the "legacy" property and using the new range syntax.`, this.el);
|
|
30194
|
-
}
|
|
30195
|
-
this.hasLoggedDeprecationWarning = true;
|
|
30196
|
-
}
|
|
30197
|
-
const { el, pressedKnob, disabled, pin, rangeId } = this;
|
|
30198
|
-
const mode = getIonMode$1(this);
|
|
30199
|
-
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
30200
|
-
return (hAsync(Host, { onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
30201
|
-
[mode]: true,
|
|
30202
|
-
'in-item': hostContext('ion-item', el),
|
|
30203
|
-
'range-disabled': disabled,
|
|
30204
|
-
'range-pressed': pressedKnob !== undefined,
|
|
30205
|
-
'range-has-pin': pin,
|
|
30206
|
-
'legacy-range': true,
|
|
30207
|
-
}) }, hAsync("slot", { name: "start" }), this.renderRangeSlider(), hAsync("slot", { name: "end" })));
|
|
30208
|
-
}
|
|
30209
30140
|
/**
|
|
30210
30141
|
* Returns true if content was passed to the "start" slot
|
|
30211
30142
|
*/
|
|
@@ -30218,37 +30149,6 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
30218
30149
|
get hasEndSlotContent() {
|
|
30219
30150
|
return this.el.querySelector('[slot="end"]') !== null;
|
|
30220
30151
|
}
|
|
30221
|
-
renderRange() {
|
|
30222
|
-
const { disabled, el, hasLabel, rangeId, pin, pressedKnob, labelPlacement, label } = this;
|
|
30223
|
-
const inItem = hostContext('ion-item', el);
|
|
30224
|
-
/**
|
|
30225
|
-
* If there is no start content then the knob at
|
|
30226
|
-
* the min value will be cut off by the item margin.
|
|
30227
|
-
*/
|
|
30228
|
-
const hasStartContent = (hasLabel && (labelPlacement === 'start' || labelPlacement === 'fixed')) || this.hasStartSlotContent;
|
|
30229
|
-
const needsStartAdjustment = inItem && !hasStartContent;
|
|
30230
|
-
/**
|
|
30231
|
-
* If there is no end content then the knob at
|
|
30232
|
-
* the max value will be cut off by the item margin.
|
|
30233
|
-
*/
|
|
30234
|
-
const hasEndContent = (hasLabel && labelPlacement === 'end') || this.hasEndSlotContent;
|
|
30235
|
-
const needsEndAdjustment = inItem && !hasEndContent;
|
|
30236
|
-
const mode = getIonMode$1(this);
|
|
30237
|
-
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
30238
|
-
return (hAsync(Host, { onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
30239
|
-
[mode]: true,
|
|
30240
|
-
'in-item': inItem,
|
|
30241
|
-
'range-disabled': disabled,
|
|
30242
|
-
'range-pressed': pressedKnob !== undefined,
|
|
30243
|
-
'range-has-pin': pin,
|
|
30244
|
-
[`range-label-placement-${labelPlacement}`]: true,
|
|
30245
|
-
'range-item-start-adjustment': needsStartAdjustment,
|
|
30246
|
-
'range-item-end-adjustment': needsEndAdjustment,
|
|
30247
|
-
}) }, hAsync("label", { class: "range-wrapper", id: "range-label" }, hAsync("div", { class: {
|
|
30248
|
-
'label-text-wrapper': true,
|
|
30249
|
-
'label-text-wrapper-hidden': !hasLabel,
|
|
30250
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { class: "native-wrapper" }, hAsync("slot", { name: "start" }), this.renderRangeSlider(), hAsync("slot", { name: "end" })))));
|
|
30251
|
-
}
|
|
30252
30152
|
get hasLabel() {
|
|
30253
30153
|
return this.label !== undefined || this.el.querySelector('[slot="label"]') !== null;
|
|
30254
30154
|
}
|
|
@@ -30324,7 +30224,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
30324
30224
|
}
|
|
30325
30225
|
}
|
|
30326
30226
|
let labelledBy;
|
|
30327
|
-
if (
|
|
30227
|
+
if (this.hasLabel) {
|
|
30328
30228
|
labelledBy = 'range-label';
|
|
30329
30229
|
}
|
|
30330
30230
|
return (hAsync("div", { class: "range-slider", ref: (rangeEl) => (this.rangeSlider = rangeEl) }, ticks.map((tick) => (hAsync("div", { style: tickStyle(tick), role: "presentation", class: {
|
|
@@ -30364,8 +30264,35 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
30364
30264
|
})));
|
|
30365
30265
|
}
|
|
30366
30266
|
render() {
|
|
30367
|
-
const {
|
|
30368
|
-
|
|
30267
|
+
const { disabled, el, hasLabel, rangeId, pin, pressedKnob, labelPlacement, label } = this;
|
|
30268
|
+
const inItem = hostContext('ion-item', el);
|
|
30269
|
+
/**
|
|
30270
|
+
* If there is no start content then the knob at
|
|
30271
|
+
* the min value will be cut off by the item margin.
|
|
30272
|
+
*/
|
|
30273
|
+
const hasStartContent = (hasLabel && (labelPlacement === 'start' || labelPlacement === 'fixed')) || this.hasStartSlotContent;
|
|
30274
|
+
const needsStartAdjustment = inItem && !hasStartContent;
|
|
30275
|
+
/**
|
|
30276
|
+
* If there is no end content then the knob at
|
|
30277
|
+
* the max value will be cut off by the item margin.
|
|
30278
|
+
*/
|
|
30279
|
+
const hasEndContent = (hasLabel && labelPlacement === 'end') || this.hasEndSlotContent;
|
|
30280
|
+
const needsEndAdjustment = inItem && !hasEndContent;
|
|
30281
|
+
const mode = getIonMode$1(this);
|
|
30282
|
+
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
30283
|
+
return (hAsync(Host, { key: 'ff8dbbb4e0c8b9802408a40fa0d93528ec730a9f', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
30284
|
+
[mode]: true,
|
|
30285
|
+
'in-item': inItem,
|
|
30286
|
+
'range-disabled': disabled,
|
|
30287
|
+
'range-pressed': pressedKnob !== undefined,
|
|
30288
|
+
'range-has-pin': pin,
|
|
30289
|
+
[`range-label-placement-${labelPlacement}`]: true,
|
|
30290
|
+
'range-item-start-adjustment': needsStartAdjustment,
|
|
30291
|
+
'range-item-end-adjustment': needsEndAdjustment,
|
|
30292
|
+
}) }, hAsync("label", { key: '2164b0ec67215d7791d795a1f6274b595ad74d80', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: '717346e2bcfb29a3a5ef39b5fec226d484aa1f46', class: {
|
|
30293
|
+
'label-text-wrapper': true,
|
|
30294
|
+
'label-text-wrapper-hidden': !hasLabel,
|
|
30295
|
+
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: 'a6ffff056ab81a45f1a0b38fa42031c51ceabb52', class: "native-wrapper" }, hAsync("slot", { key: 'df3f155a9886cc62d3f0d23467c406c52cd3e082', name: "start" }), this.renderRangeSlider(), hAsync("slot", { key: '3fab316ecdff317c07010a204d89e85af12d347e', name: "end" })))));
|
|
30369
30296
|
}
|
|
30370
30297
|
get el() { return getElement(this); }
|
|
30371
30298
|
static get watchers() { return {
|
|
@@ -30400,7 +30327,6 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
30400
30327
|
"disabled": [4],
|
|
30401
30328
|
"value": [1026],
|
|
30402
30329
|
"labelPlacement": [1, "label-placement"],
|
|
30403
|
-
"legacy": [4],
|
|
30404
30330
|
"ratioA": [32],
|
|
30405
30331
|
"ratioB": [32],
|
|
30406
30332
|
"pressedKnob": [32]
|
|
@@ -31238,7 +31164,7 @@ class Refresher {
|
|
|
31238
31164
|
}
|
|
31239
31165
|
render() {
|
|
31240
31166
|
const mode = getIonMode$1(this);
|
|
31241
|
-
return (hAsync(Host, { key: '
|
|
31167
|
+
return (hAsync(Host, { key: '460d903daa65f5549f4f75de63d185d82b9df1bc', slot: "fixed", class: {
|
|
31242
31168
|
[mode]: true,
|
|
31243
31169
|
// Used internally for styling
|
|
31244
31170
|
[`refresher-${mode}`]: true,
|
|
@@ -31466,7 +31392,7 @@ class RefresherContent {
|
|
|
31466
31392
|
const pullingIcon = this.pullingIcon;
|
|
31467
31393
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
31468
31394
|
const mode = getIonMode$1(this);
|
|
31469
|
-
return (hAsync(Host, { key: '
|
|
31395
|
+
return (hAsync(Host, { key: 'bd4122ec149c1ea6c43d5b6dfd7932569bfd8d7e', class: mode }, hAsync("div", { key: '492113883e1ed465fd6b35a8e700b29a8bbb2baf', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (hAsync("div", { class: "refresher-pulling-icon" }, hAsync("div", { class: "spinner-arrow-container" }, hAsync("ion-spinner", { name: this.pullingIcon, paused: true }), mode === 'md' && this.pullingIcon === 'circular' && (hAsync("div", { class: "arrow-container" }, hAsync("ion-icon", { icon: caretBackSharp, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (hAsync("div", { class: "refresher-pulling-icon" }, hAsync("ion-icon", { icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), hAsync("div", { key: '402b0e02cfee42358c4fd690b60c8eb39386569f', class: "refresher-refreshing" }, this.refreshingSpinner && (hAsync("div", { class: "refresher-refreshing-icon" }, hAsync("ion-spinner", { name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
31470
31396
|
}
|
|
31471
31397
|
get el() { return getElement(this); }
|
|
31472
31398
|
static get cmpMeta() { return {
|
|
@@ -31509,7 +31435,7 @@ class Reorder {
|
|
|
31509
31435
|
render() {
|
|
31510
31436
|
const mode = getIonMode$1(this);
|
|
31511
31437
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
31512
|
-
return (hAsync(Host, { key: '
|
|
31438
|
+
return (hAsync(Host, { key: '268c3575bdc5ca591e11442a744119028f17ae85', class: mode }, hAsync("slot", { key: '4767aef1d57921060541cd38b0a62ef2d8b3267b' }, hAsync("ion-icon", { key: 'ad5f972dc2449cdd7aba92b06e7f0d2539e9a202', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
31513
31439
|
}
|
|
31514
31440
|
get el() { return getElement(this); }
|
|
31515
31441
|
static get style() { return {
|
|
@@ -31763,7 +31689,7 @@ class ReorderGroup {
|
|
|
31763
31689
|
}
|
|
31764
31690
|
render() {
|
|
31765
31691
|
const mode = getIonMode$1(this);
|
|
31766
|
-
return (hAsync(Host, { key: '
|
|
31692
|
+
return (hAsync(Host, { key: '3131c13e939242f1a4e10b4fcee028440b1a04c3', class: {
|
|
31767
31693
|
[mode]: true,
|
|
31768
31694
|
'reorder-enabled': !this.disabled,
|
|
31769
31695
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -31871,7 +31797,7 @@ class RippleEffect {
|
|
|
31871
31797
|
}
|
|
31872
31798
|
render() {
|
|
31873
31799
|
const mode = getIonMode$1(this);
|
|
31874
|
-
return (hAsync(Host, { key: '
|
|
31800
|
+
return (hAsync(Host, { key: '42d95cc2382286e3bc5d68603f8292eb57ba10f5', role: "presentation", class: {
|
|
31875
31801
|
[mode]: true,
|
|
31876
31802
|
unbounded: this.unbounded,
|
|
31877
31803
|
} }));
|
|
@@ -32813,10 +32739,10 @@ class RouterLink {
|
|
|
32813
32739
|
rel: this.rel,
|
|
32814
32740
|
target: this.target,
|
|
32815
32741
|
};
|
|
32816
|
-
return (hAsync(Host, { key: '
|
|
32742
|
+
return (hAsync(Host, { key: '64a8781a0e92ddc14e03a60ac3da7f21dd59a2af', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
32817
32743
|
[mode]: true,
|
|
32818
32744
|
'ion-activatable': true,
|
|
32819
|
-
}) }, hAsync("a", Object.assign({ key: '
|
|
32745
|
+
}) }, hAsync("a", Object.assign({ key: 'e2da87e62410c9ada5810f95ab1b9d6c489703a0' }, attrs), hAsync("slot", { key: '201854747f5c867c8f6fadea20ef29b1d221f9db' }))));
|
|
32820
32746
|
}
|
|
32821
32747
|
static get style() { return IonRouterLinkStyle0; }
|
|
32822
32748
|
static get cmpMeta() { return {
|
|
@@ -33011,7 +32937,7 @@ class RouterOutlet {
|
|
|
33011
32937
|
return true;
|
|
33012
32938
|
}
|
|
33013
32939
|
render() {
|
|
33014
|
-
return hAsync("slot", { key: '
|
|
32940
|
+
return hAsync("slot", { key: 'b90c776f7924a88b1b36befe7e6f8943fc20dfe3' });
|
|
33015
32941
|
}
|
|
33016
32942
|
get el() { return getElement(this); }
|
|
33017
32943
|
static get watchers() { return {
|
|
@@ -33045,7 +32971,7 @@ class Row {
|
|
|
33045
32971
|
registerInstance(this, hostRef);
|
|
33046
32972
|
}
|
|
33047
32973
|
render() {
|
|
33048
|
-
return (hAsync(Host, { key: '
|
|
32974
|
+
return (hAsync(Host, { key: 'e52c499804f7bebc1c4ab8fb69ef1b452eae58c1', class: getIonMode$1(this) }, hAsync("slot", { key: '7808e8156601912e0192fe0b74bdedda2c359e1c' })));
|
|
33049
32975
|
}
|
|
33050
32976
|
static get style() { return IonRowStyle0; }
|
|
33051
32977
|
static get cmpMeta() { return {
|
|
@@ -33419,8 +33345,8 @@ class Searchbar {
|
|
|
33419
33345
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
33420
33346
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
33421
33347
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
33422
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
33423
|
-
return (hAsync(Host, { key: '
|
|
33348
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: 'd219b739da043f04358e5646c9d206d5f39d1b86', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, hAsync("div", { key: 'fa93932c72571e76d5845e15a4d96291591cec61', "aria-hidden": "true" }, mode === 'md' ? (hAsync("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
33349
|
+
return (hAsync(Host, { key: '72fed78006b21e3e4bc3af31a4eb4545fd3b69da', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
33424
33350
|
[mode]: true,
|
|
33425
33351
|
'searchbar-animated': animated,
|
|
33426
33352
|
'searchbar-disabled': this.disabled,
|
|
@@ -33430,14 +33356,14 @@ class Searchbar {
|
|
|
33430
33356
|
'searchbar-has-focus': this.focused,
|
|
33431
33357
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
33432
33358
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
33433
|
-
}) }, hAsync("div", { key: '
|
|
33359
|
+
}) }, hAsync("div", { key: 'b392694fa344f9316c5ca15560f49b03d149d9a1', class: "searchbar-input-container" }, hAsync("input", { key: '998a7ab915a20bc952c6b4be645870b6291576b7', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }), mode === 'md' && cancelButton, hAsync("ion-icon", { key: 'fa6f3463a1941368e3cf4eaf7059cf5518d1daeb', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), hAsync("button", { key: 'e6200807543cfb4a685a6ad0481eb2dc5cab38df', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
33434
33360
|
/**
|
|
33435
33361
|
* This prevents mobile browsers from
|
|
33436
33362
|
* blurring the input when the clear
|
|
33437
33363
|
* button is activated.
|
|
33438
33364
|
*/
|
|
33439
33365
|
ev.preventDefault();
|
|
33440
|
-
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '
|
|
33366
|
+
}, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: '983f4f65730913c5ff93baed855d694983f72e12', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
33441
33367
|
}
|
|
33442
33368
|
get el() { return getElement(this); }
|
|
33443
33369
|
static get watchers() { return {
|
|
@@ -33906,14 +33832,14 @@ class Segment {
|
|
|
33906
33832
|
}
|
|
33907
33833
|
render() {
|
|
33908
33834
|
const mode = getIonMode$1(this);
|
|
33909
|
-
return (hAsync(Host, { key: '
|
|
33835
|
+
return (hAsync(Host, { key: 'a0b1480e0f95ed9647871c749dbd93ef7ce5b28e', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
33910
33836
|
[mode]: true,
|
|
33911
33837
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
33912
33838
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
33913
33839
|
'segment-activated': this.activated,
|
|
33914
33840
|
'segment-disabled': this.disabled,
|
|
33915
33841
|
'segment-scrollable': this.scrollable,
|
|
33916
|
-
}) }, hAsync("slot", { key: '
|
|
33842
|
+
}) }, hAsync("slot", { key: '01b9559e574b1b194e6010295cd9bea4b6aeab1b' })));
|
|
33917
33843
|
}
|
|
33918
33844
|
get el() { return getElement(this); }
|
|
33919
33845
|
static get watchers() { return {
|
|
@@ -34023,7 +33949,7 @@ class SegmentButton {
|
|
|
34023
33949
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
34024
33950
|
const mode = getIonMode$1(this);
|
|
34025
33951
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
34026
|
-
return (hAsync(Host, { key: '
|
|
33952
|
+
return (hAsync(Host, { key: 'fc2262b4b1cb0c3e38b3de672910543211779b98', class: {
|
|
34027
33953
|
[mode]: true,
|
|
34028
33954
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
34029
33955
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -34039,10 +33965,10 @@ class SegmentButton {
|
|
|
34039
33965
|
'ion-activatable': true,
|
|
34040
33966
|
'ion-activatable-instant': true,
|
|
34041
33967
|
'ion-focusable': true,
|
|
34042
|
-
} }, hAsync("button", Object.assign({ key: '
|
|
33968
|
+
} }, hAsync("button", Object.assign({ key: 'd73ffb0e52b86e41fff7aafac8bd77073b494b28', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), hAsync("span", { key: 'a3d76c3191a508f47782f17602d814920dc26694', class: "button-inner" }, hAsync("slot", { key: 'ae6479c5eec1e0f4077066a6b0ca06c13af0847f' })), mode === 'md' && hAsync("ion-ripple-effect", null)), hAsync("div", { key: '593a4ec0d186520485073dc2fcdf23899924399b', part: "indicator", class: {
|
|
34043
33969
|
'segment-button-indicator': true,
|
|
34044
33970
|
'segment-button-indicator-animated': true,
|
|
34045
|
-
} }, hAsync("div", { key: '
|
|
33971
|
+
} }, hAsync("div", { key: 'cfbd0d89a928cce0130da46b2be406c03ab3cddb', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
34046
33972
|
}
|
|
34047
33973
|
get el() { return getElement(this); }
|
|
34048
33974
|
static get watchers() { return {
|
|
@@ -34641,7 +34567,7 @@ class Select {
|
|
|
34641
34567
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
34642
34568
|
*/
|
|
34643
34569
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
34644
|
-
return (hAsync(Host, { key: '
|
|
34570
|
+
return (hAsync(Host, { key: '55ce46dd2138cf8f964245542c780fbccb1b3a58', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
34645
34571
|
[mode]: true,
|
|
34646
34572
|
'in-item': inItem,
|
|
34647
34573
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -34657,7 +34583,7 @@ class Select {
|
|
|
34657
34583
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
34658
34584
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
34659
34585
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
34660
|
-
}) }, hAsync("label", { key: '
|
|
34586
|
+
}) }, hAsync("label", { key: '41b640595034c59e2044a080f36edc92639fc3df', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), hAsync("div", { key: '52cd7d7813835f77782d2205970de898ab04922f', class: "select-wrapper-inner" }, hAsync("slot", { key: 'eca1ab2e4fcd336e4ac0a7d92cf1f9430222c603', name: "start" }), hAsync("div", { key: '0d8ea4e0135cd9d3b066f30ab3a3b84b1c97138c', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: 'e6959eb1c5688c8a7e54fbc78fa6823042fcc31a', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { class: "select-highlight" }))));
|
|
34661
34587
|
}
|
|
34662
34588
|
get el() { return getElement(this); }
|
|
34663
34589
|
static get watchers() { return {
|
|
@@ -34748,7 +34674,7 @@ class SelectOption {
|
|
|
34748
34674
|
this.value = undefined;
|
|
34749
34675
|
}
|
|
34750
34676
|
render() {
|
|
34751
|
-
return hAsync(Host, { key: '
|
|
34677
|
+
return hAsync(Host, { key: 'e46b062b71c143792bb74527ba4980e02edc14b3', role: "option", id: this.inputId, class: getIonMode$1(this) });
|
|
34752
34678
|
}
|
|
34753
34679
|
get el() { return getElement(this); }
|
|
34754
34680
|
static get style() { return IonSelectOptionStyle0; }
|
|
@@ -34868,7 +34794,7 @@ class SelectPopover {
|
|
|
34868
34794
|
render() {
|
|
34869
34795
|
const { header, message, options, subHeader } = this;
|
|
34870
34796
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
34871
|
-
return (hAsync(Host, { key: '
|
|
34797
|
+
return (hAsync(Host, { key: '07c094ea0b8ba353f6147a912eedc3c75719fd4e', class: getIonMode$1(this) }, hAsync("ion-list", { key: '4d110e3e036bbfecc418d0e37fc9bc4ec0c18674' }, header !== undefined && hAsync("ion-list-header", null, header), hasSubHeaderOrMessage && (hAsync("ion-item", null, hAsync("ion-label", { class: "ion-text-wrap" }, subHeader !== undefined && hAsync("h3", null, subHeader), message !== undefined && hAsync("p", null, message)))), this.renderOptions(options))));
|
|
34872
34798
|
}
|
|
34873
34799
|
get el() { return getElement(this); }
|
|
34874
34800
|
static get style() { return {
|
|
@@ -34916,11 +34842,11 @@ class SkeletonText {
|
|
|
34916
34842
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
34917
34843
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
34918
34844
|
const mode = getIonMode$1(this);
|
|
34919
|
-
return (hAsync(Host, { key: '
|
|
34845
|
+
return (hAsync(Host, { key: 'e0a84e5017cde072087d5580dd370bbd36106f99', class: {
|
|
34920
34846
|
[mode]: true,
|
|
34921
34847
|
'skeleton-text-animated': animated,
|
|
34922
34848
|
'in-media': inMedia,
|
|
34923
|
-
} }, hAsync("span", { key: '
|
|
34849
|
+
} }, hAsync("span", { key: '3274a42e3fd4f1b9fb285f4b982416e1f68ac766' }, "\u00A0")));
|
|
34924
34850
|
}
|
|
34925
34851
|
get el() { return getElement(this); }
|
|
34926
34852
|
static get style() { return IonSkeletonTextStyle0; }
|
|
@@ -34973,7 +34899,7 @@ class Spinner {
|
|
|
34973
34899
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
34974
34900
|
}
|
|
34975
34901
|
}
|
|
34976
|
-
return (hAsync(Host, { key: '
|
|
34902
|
+
return (hAsync(Host, { key: 'bfb8b93a58da60686f6a1e6b8a5e0d1b7dea1f5d', class: createColorClasses$1(self.color, {
|
|
34977
34903
|
[mode]: true,
|
|
34978
34904
|
[`spinner-${spinnerName}`]: true,
|
|
34979
34905
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -35073,12 +34999,12 @@ class SplitPane {
|
|
|
35073
34999
|
}
|
|
35074
35000
|
render() {
|
|
35075
35001
|
const mode = getIonMode$1(this);
|
|
35076
|
-
return (hAsync(Host, { key: '
|
|
35002
|
+
return (hAsync(Host, { key: 'ea58eb10f1e0040f8b193684085dcf0b6fb70736', class: {
|
|
35077
35003
|
[mode]: true,
|
|
35078
35004
|
// Used internally for styling
|
|
35079
35005
|
[`split-pane-${mode}`]: true,
|
|
35080
35006
|
'split-pane-visible': this.visible,
|
|
35081
|
-
} }, hAsync("slot", { key: '
|
|
35007
|
+
} }, hAsync("slot", { key: '568992064ae695fb4de01aef59d6f6e3359e1e0f' })));
|
|
35082
35008
|
}
|
|
35083
35009
|
get el() { return getElement(this); }
|
|
35084
35010
|
static get watchers() { return {
|
|
@@ -35147,10 +35073,10 @@ class Tab {
|
|
|
35147
35073
|
}
|
|
35148
35074
|
render() {
|
|
35149
35075
|
const { tab, active, component } = this;
|
|
35150
|
-
return (hAsync(Host, { key: '
|
|
35076
|
+
return (hAsync(Host, { key: 'e67484767fa4aab6bc90db390a90eb5e24e51f14', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
35151
35077
|
'ion-page': component === undefined,
|
|
35152
35078
|
'tab-hidden': !active,
|
|
35153
|
-
} }, hAsync("slot", { key: '
|
|
35079
|
+
} }, hAsync("slot", { key: 'ad6523d5a128d457d09e88739f8218cdf16152de' })));
|
|
35154
35080
|
}
|
|
35155
35081
|
get el() { return getElement(this); }
|
|
35156
35082
|
static get watchers() { return {
|
|
@@ -35228,11 +35154,11 @@ class TabBar {
|
|
|
35228
35154
|
const { color, translucent, keyboardVisible } = this;
|
|
35229
35155
|
const mode = getIonMode$1(this);
|
|
35230
35156
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
35231
|
-
return (hAsync(Host, { key: '
|
|
35157
|
+
return (hAsync(Host, { key: '2d30e75e19d86a1eb65cff8ddab0cb059f59b224', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses$1(color, {
|
|
35232
35158
|
[mode]: true,
|
|
35233
35159
|
'tab-bar-translucent': translucent,
|
|
35234
35160
|
'tab-bar-hidden': shouldHide,
|
|
35235
|
-
}) }, hAsync("slot", { key: '
|
|
35161
|
+
}) }, hAsync("slot", { key: '5b739f1bbe21c887b7810383edd2f67143ac086e' })));
|
|
35236
35162
|
}
|
|
35237
35163
|
get el() { return getElement(this); }
|
|
35238
35164
|
static get watchers() { return {
|
|
@@ -35330,7 +35256,7 @@ class TabButton {
|
|
|
35330
35256
|
rel,
|
|
35331
35257
|
target,
|
|
35332
35258
|
};
|
|
35333
|
-
return (hAsync(Host, { key: '
|
|
35259
|
+
return (hAsync(Host, { key: 'b37743b20b93c27ffb0094b35545292533f9d30f', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
35334
35260
|
[mode]: true,
|
|
35335
35261
|
'tab-selected': selected,
|
|
35336
35262
|
'tab-disabled': disabled,
|
|
@@ -35342,7 +35268,7 @@ class TabButton {
|
|
|
35342
35268
|
'ion-activatable': true,
|
|
35343
35269
|
'ion-selectable': true,
|
|
35344
35270
|
'ion-focusable': true,
|
|
35345
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
35271
|
+
} }, hAsync("a", Object.assign({ key: '7dd2b3aaa96f64a8b7411730ed8b201466a97162' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), hAsync("span", { key: 'cb328541793b6aa469d5d3bff662d2efa56dc977', class: "button-inner" }, hAsync("slot", { key: '904a1b063f481ac86d5bea967a375addc9c96471' })), mode === 'md' && hAsync("ion-ripple-effect", { type: "unbounded" }))));
|
|
35346
35272
|
}
|
|
35347
35273
|
get el() { return getElement(this); }
|
|
35348
35274
|
static get style() { return {
|
|
@@ -35508,7 +35434,7 @@ class Tabs {
|
|
|
35508
35434
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
35509
35435
|
}
|
|
35510
35436
|
render() {
|
|
35511
|
-
return (hAsync(Host, { key: '
|
|
35437
|
+
return (hAsync(Host, { key: 'e2cac6a2e54514f31cfe65692e34e88d530b204f', onIonTabButtonClick: this.onTabClicked }, hAsync("slot", { key: '53bc64f37aebb9a68c6e2db2c89ec6d39cd64bbd', name: "top" }), hAsync("div", { key: '72f4f0ae53518631d6c1b6276da3f63147c28cfc', class: "tabs-inner" }, hAsync("slot", { key: '79f1eece652cf00a3dd8359b68e68059816ff704' })), hAsync("slot", { key: '3fbaf52447720ee14c7db06f2bf71a92093847f4', name: "bottom" })));
|
|
35512
35438
|
}
|
|
35513
35439
|
get el() { return getElement(this); }
|
|
35514
35440
|
static get style() { return IonTabsStyle0; }
|
|
@@ -35550,9 +35476,9 @@ class Text {
|
|
|
35550
35476
|
}
|
|
35551
35477
|
render() {
|
|
35552
35478
|
const mode = getIonMode$1(this);
|
|
35553
|
-
return (hAsync(Host, { key: '
|
|
35479
|
+
return (hAsync(Host, { key: '9b5decc6dfca4fbaf0fe42696a9833ffee269a7d', class: createColorClasses$1(this.color, {
|
|
35554
35480
|
[mode]: true,
|
|
35555
|
-
}) }, hAsync("slot", { key: '
|
|
35481
|
+
}) }, hAsync("slot", { key: '5b822dcc0f6255819cec7626d0c0f7f9873aaab9' })));
|
|
35556
35482
|
}
|
|
35557
35483
|
static get style() { return IonTextStyle0; }
|
|
35558
35484
|
static get cmpMeta() { return {
|
|
@@ -35920,7 +35846,7 @@ class Textarea {
|
|
|
35920
35846
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
35921
35847
|
*/
|
|
35922
35848
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
35923
|
-
return (hAsync(Host, { key: '
|
|
35849
|
+
return (hAsync(Host, { key: '3adbec7986ecb5a274ecf341b938432c3d04705a', class: createColorClasses$1(this.color, {
|
|
35924
35850
|
[mode]: true,
|
|
35925
35851
|
'has-value': hasValue,
|
|
35926
35852
|
'has-focus': hasFocus,
|
|
@@ -35929,7 +35855,7 @@ class Textarea {
|
|
|
35929
35855
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
35930
35856
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
35931
35857
|
'textarea-disabled': disabled,
|
|
35932
|
-
}) }, hAsync("label", { key: '
|
|
35858
|
+
}) }, hAsync("label", { key: '9df12985193c4fa6a277b71bcac668d7e61f02ac', class: "textarea-wrapper", htmlFor: inputId }, this.renderLabelContainer(), hAsync("div", { key: 'b39ac1d580d3bcaad8cc028e703960cd2277fa10', class: "textarea-wrapper-inner" }, hAsync("div", { key: 'b2d6971c51683fe67121c4d0e4ac8e17723fa59d', class: "start-slot-wrapper" }, hAsync("slot", { key: 'b229d482a4ff208858dffc6ff3a5ad661a2a7288', name: "start" })), hAsync("div", { key: 'b2d2770afa7012f055463df6a302bed685b46107', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, hAsync("textarea", Object.assign({ key: 'a18150f8d381e0569f6d71867451ce8176157521', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value)), hAsync("div", { key: 'f20f6e5c9b339cff4bdd7bffe59afd27b05ce8b9', class: "end-slot-wrapper" }, hAsync("slot", { key: '64a10ebdb4a89ec1c3d34c29e8c9403d3d788f3b', name: "end" }))), shouldRenderHighlight && hAsync("div", { class: "textarea-highlight" })), this.renderBottomContent()));
|
|
35933
35859
|
}
|
|
35934
35860
|
get el() { return getElement(this); }
|
|
35935
35861
|
static get watchers() { return {
|
|
@@ -35991,7 +35917,7 @@ class Thumbnail {
|
|
|
35991
35917
|
registerInstance(this, hostRef);
|
|
35992
35918
|
}
|
|
35993
35919
|
render() {
|
|
35994
|
-
return (hAsync(Host, { key: '
|
|
35920
|
+
return (hAsync(Host, { key: '68bac4e80f5d27131690fd20dfabff2618743206', class: getIonMode$1(this) }, hAsync("slot", { key: '89f46a686288428391cdfaef3384824751ae3d05' })));
|
|
35995
35921
|
}
|
|
35996
35922
|
static get style() { return IonThumbnailStyle0; }
|
|
35997
35923
|
static get cmpMeta() { return {
|
|
@@ -36820,9 +36746,9 @@ class Toast {
|
|
|
36820
36746
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
36821
36747
|
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);
|
|
36822
36748
|
}
|
|
36823
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
36749
|
+
return (hAsync(Host, Object.assign({ key: '883ac055d9c73336b8912bdf25e18d16cc6b81fe', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
36824
36750
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
36825
|
-
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: '
|
|
36751
|
+
}, class: createColorClasses$1(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), hAsync("div", { key: 'b34cc9f7cfa69a8d9ce343686aa14d0d0c174e97', class: wrapperClass }, hAsync("div", { key: '08ff305e319454116f24a4d354c50949905411d6', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: '854f71fc8a2ed078626011b07ee599cd17312a86', 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')))));
|
|
36826
36752
|
}
|
|
36827
36753
|
get el() { return getElement(this); }
|
|
36828
36754
|
static get watchers() { return {
|
|
@@ -37042,7 +36968,7 @@ class Toggle {
|
|
|
37042
36968
|
const value = this.getValue();
|
|
37043
36969
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
37044
36970
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
37045
|
-
return (hAsync(Host, { key: '
|
|
36971
|
+
return (hAsync(Host, { key: '3c0acc5498682a610e7a6f095590ad79391e1ba4', onClick: this.onClick, class: createColorClasses$1(color, {
|
|
37046
36972
|
[mode]: true,
|
|
37047
36973
|
'in-item': hostContext('ion-item', el),
|
|
37048
36974
|
'toggle-activated': activated,
|
|
@@ -37052,10 +36978,10 @@ class Toggle {
|
|
|
37052
36978
|
[`toggle-alignment-${alignment}`]: true,
|
|
37053
36979
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
37054
36980
|
[`toggle-${rtl}`]: true,
|
|
37055
|
-
}) }, hAsync("label", { key: '
|
|
36981
|
+
}) }, hAsync("label", { key: '68133afe76d290ebcb8f05883a27875529f0bfff', class: "toggle-wrapper" }, hAsync("input", Object.assign({ key: 'abd6aad2a3e62fbffb80d5c3dbdc57182bc97fab', 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)), hAsync("div", { key: '8e70ddd2b4daada4bf16e85e56df9078116933f9', class: {
|
|
37056
36982
|
'label-text-wrapper': true,
|
|
37057
36983
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
37058
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
36984
|
+
}, part: "label" }, hAsync("slot", { key: 'eae25cdeefe1e6589f06b3a2568522e74cf44d66' })), hAsync("div", { key: 'df9adddd1d8d73c8a23e1e91261d84c876ac5935', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
37059
36985
|
}
|
|
37060
36986
|
get el() { return getElement(this); }
|
|
37061
36987
|
static get watchers() { return {
|
|
@@ -37159,10 +37085,10 @@ class Toolbar {
|
|
|
37159
37085
|
this.childrenStyles.forEach((value) => {
|
|
37160
37086
|
Object.assign(childStyles, value);
|
|
37161
37087
|
});
|
|
37162
|
-
return (hAsync(Host, { key: '
|
|
37088
|
+
return (hAsync(Host, { key: 'f72d6a7ed20c88ba15d64050acfc20f320569862', class: Object.assign(Object.assign({}, childStyles), createColorClasses$1(this.color, {
|
|
37163
37089
|
[mode]: true,
|
|
37164
37090
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
37165
|
-
})) }, hAsync("div", { key: '
|
|
37091
|
+
})) }, hAsync("div", { key: 'ccf18eea9756ca56ca828b05bd3f86cf8a32e24c', class: "toolbar-background" }), hAsync("div", { key: '1fa699d8e17f57b42a52d47a1bdb793f2cbbfe5d', class: "toolbar-container" }, hAsync("slot", { key: 'ef4d877bad0918eefdc67fa7aa258024a58d26ef', name: "start" }), hAsync("slot", { key: '41858db7a8d58c9165952c9336731d621ec3c2b8', name: "secondary" }), hAsync("div", { key: '577770b9346b48a0fa1412cbdbd9393d553d2286', class: "toolbar-content" }, hAsync("slot", { key: 'ae47b29e1f7d2c3dde7a170c9737b48f075139c2' })), hAsync("slot", { key: 'cfbf7879daf1a38fee434335abff936d8f3690e0', name: "primary" }), hAsync("slot", { key: 'ed3a66248f43e0749f6aef9fb78ea4f5034c0774', name: "end" }))));
|
|
37166
37092
|
}
|
|
37167
37093
|
get el() { return getElement(this); }
|
|
37168
37094
|
static get style() { return {
|
|
@@ -37212,11 +37138,11 @@ class ToolbarTitle {
|
|
|
37212
37138
|
render() {
|
|
37213
37139
|
const mode = getIonMode$1(this);
|
|
37214
37140
|
const size = this.getSize();
|
|
37215
|
-
return (hAsync(Host, { key: '
|
|
37141
|
+
return (hAsync(Host, { key: '53fb524f6763307bd0a1f077ada8e9ee82c865c0', class: createColorClasses$1(this.color, {
|
|
37216
37142
|
[mode]: true,
|
|
37217
37143
|
[`title-${size}`]: true,
|
|
37218
37144
|
'title-rtl': document.dir === 'rtl',
|
|
37219
|
-
}) }, hAsync("div", { key: '
|
|
37145
|
+
}) }, hAsync("div", { key: '5957214d78b666fd0ba988c3f4cc18368a92deac', class: "toolbar-title" }, hAsync("slot", { key: '444b2019e079d5ed6decbfc4db488757fcf70094' }))));
|
|
37220
37146
|
}
|
|
37221
37147
|
get el() { return getElement(this); }
|
|
37222
37148
|
static get watchers() { return {
|