@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/components/checkbox.js
CHANGED
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import {
|
|
6
|
-
import { i as inheritAriaAttributes, e as renderHiddenInput, j as getAriaLabel } from './helpers.js';
|
|
7
|
-
import { p as printIonWarning } from './index6.js';
|
|
5
|
+
import { i as inheritAriaAttributes, e as renderHiddenInput } from './helpers.js';
|
|
8
6
|
import { c as createColorClasses, h as hostContext } from './theme.js';
|
|
9
7
|
import { b as getIonMode } from './ionic-global.js';
|
|
10
8
|
|
|
11
|
-
const checkboxIosCss = ":host{--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){width:100%;height:100%}:host([slot=start]
|
|
9
|
+
const checkboxIosCss = ":host{--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){width:100%;height:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{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{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{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{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{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{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-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{-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{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-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{-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{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--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){opacity:0.3}";
|
|
12
10
|
const IonCheckboxIosStyle0 = checkboxIosCss;
|
|
13
11
|
|
|
14
|
-
const checkboxMdCss = ":host{--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){width:100%;height:100%}:host([slot=start]
|
|
12
|
+
const checkboxMdCss = ":host{--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){width:100%;height:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{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{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{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{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{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{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-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{-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{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-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{-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{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--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{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}";
|
|
15
13
|
const IonCheckboxMdStyle0 = checkboxMdCss;
|
|
16
14
|
|
|
17
15
|
const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLElement {
|
|
@@ -22,12 +20,8 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
22
20
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
23
21
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
24
22
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
25
|
-
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
26
23
|
this.inputId = `ion-cb-${checkboxIds++}`;
|
|
27
24
|
this.inheritedAttributes = {};
|
|
28
|
-
// TODO(FW-3100): remove this
|
|
29
|
-
// This flag ensures we log the deprecation warning at most once.
|
|
30
|
-
this.hasLoggedDeprecationWarning = false;
|
|
31
25
|
/**
|
|
32
26
|
* Sets the checked property and emits
|
|
33
27
|
* the ionChange event. Use this to update the
|
|
@@ -68,49 +62,21 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
68
62
|
this.labelPlacement = 'start';
|
|
69
63
|
this.justify = 'space-between';
|
|
70
64
|
this.alignment = 'center';
|
|
71
|
-
this.legacy = undefined;
|
|
72
|
-
}
|
|
73
|
-
connectedCallback() {
|
|
74
|
-
this.legacyFormController = createLegacyFormController(this.el); // TODO(FW-3100): remove this
|
|
75
65
|
}
|
|
76
66
|
componentWillLoad() {
|
|
77
|
-
this.
|
|
78
|
-
// TODO(FW-3100): remove check
|
|
79
|
-
if (!this.legacyFormController.hasLegacyControl()) {
|
|
80
|
-
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
styleChanged() {
|
|
84
|
-
this.emitStyle();
|
|
85
|
-
}
|
|
86
|
-
emitStyle() {
|
|
87
|
-
const style = {
|
|
88
|
-
'interactive-disabled': this.disabled,
|
|
89
|
-
// TODO(FW-3100): remove this
|
|
90
|
-
legacy: !!this.legacy,
|
|
91
|
-
};
|
|
92
|
-
// TODO(FW-3100): remove this
|
|
93
|
-
if (this.legacyFormController.hasLegacyControl()) {
|
|
94
|
-
style['checkbox-checked'] = this.checked;
|
|
95
|
-
}
|
|
96
|
-
this.ionStyle.emit(style);
|
|
67
|
+
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
97
68
|
}
|
|
98
69
|
setFocus() {
|
|
99
70
|
if (this.focusEl) {
|
|
100
71
|
this.focusEl.focus();
|
|
101
72
|
}
|
|
102
73
|
}
|
|
103
|
-
// TODO(FW-3100): run contents of renderCheckbox directly instead
|
|
104
74
|
render() {
|
|
105
|
-
const { legacyFormController } = this;
|
|
106
|
-
return legacyFormController.hasLegacyControl() ? this.renderLegacyCheckbox() : this.renderCheckbox();
|
|
107
|
-
}
|
|
108
|
-
renderCheckbox() {
|
|
109
75
|
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment, } = this;
|
|
110
76
|
const mode = getIonMode(this);
|
|
111
77
|
const path = getSVGPath(mode, indeterminate);
|
|
112
78
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
113
|
-
return (h(Host, { class: createColorClasses(color, {
|
|
79
|
+
return (h(Host, { key: 'be30606f48a3adf62eddc68b7d7f908d0c46f96d', class: createColorClasses(color, {
|
|
114
80
|
[mode]: true,
|
|
115
81
|
'in-item': hostContext('ion-item', el),
|
|
116
82
|
'checkbox-checked': checked,
|
|
@@ -120,40 +86,10 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
|
120
86
|
[`checkbox-justify-${justify}`]: true,
|
|
121
87
|
[`checkbox-alignment-${alignment}`]: true,
|
|
122
88
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
123
|
-
}), onClick: this.onClick }, h("label", { class: "checkbox-wrapper" }, h("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)), h("div", { class: {
|
|
89
|
+
}), onClick: this.onClick }, h("label", { key: '96c3f85a0ae6970743f6965d614033426cf2b163', class: "checkbox-wrapper" }, h("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)), h("div", { key: 'f2374957e47eec899aa2ca49ede4cfdf8397fc18', class: {
|
|
124
90
|
'label-text-wrapper': true,
|
|
125
91
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
126
|
-
}, part: "label" }, h("slot",
|
|
127
|
-
}
|
|
128
|
-
// TODO(FW-3100): remove this
|
|
129
|
-
renderLegacyCheckbox() {
|
|
130
|
-
if (!this.hasLoggedDeprecationWarning) {
|
|
131
|
-
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.
|
|
132
|
-
|
|
133
|
-
Example: <ion-checkbox>Label</ion-checkbox>
|
|
134
|
-
Example with aria-label: <ion-checkbox aria-label="Label"></ion-checkbox>
|
|
135
|
-
|
|
136
|
-
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);
|
|
137
|
-
if (this.legacy) {
|
|
138
|
-
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.
|
|
139
|
-
Developers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.`, this.el);
|
|
140
|
-
}
|
|
141
|
-
this.hasLoggedDeprecationWarning = true;
|
|
142
|
-
}
|
|
143
|
-
const { color, checked, disabled, el, getSVGPath, indeterminate, inputId, name, value } = this;
|
|
144
|
-
const mode = getIonMode(this);
|
|
145
|
-
const { label, labelId, labelText } = getAriaLabel(el, inputId);
|
|
146
|
-
const path = getSVGPath(mode, indeterminate);
|
|
147
|
-
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
148
|
-
return (h(Host, { "aria-labelledby": label ? labelId : null, "aria-checked": `${checked}`, "aria-hidden": disabled ? 'true' : null, role: "checkbox", class: createColorClasses(color, {
|
|
149
|
-
[mode]: true,
|
|
150
|
-
'in-item': hostContext('ion-item', el),
|
|
151
|
-
'checkbox-checked': checked,
|
|
152
|
-
'checkbox-disabled': disabled,
|
|
153
|
-
'checkbox-indeterminate': indeterminate,
|
|
154
|
-
'legacy-checkbox': true,
|
|
155
|
-
interactive: true,
|
|
156
|
-
}), onClick: this.onClick }, h("svg", { class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path), h("label", { htmlFor: inputId }, labelText), h("input", { type: "checkbox", "aria-checked": `${checked}`, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) })));
|
|
92
|
+
}, part: "label" }, h("slot", { key: '3bd6bc289c26e96cc0b4a8b39154fec1d02ba426' })), h("div", { key: '30397663226d628859d3814f9dc53ee4aad57de5', class: "native-wrapper" }, h("svg", { key: '53374f787677adfdb3b693ead3f8d86412127c10', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
|
|
157
93
|
}
|
|
158
94
|
getSVGPath(mode, indeterminate) {
|
|
159
95
|
let path = indeterminate ? (h("path", { d: "M6 12L18 12", part: "mark" })) : (h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
@@ -163,10 +99,6 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
163
99
|
return path;
|
|
164
100
|
}
|
|
165
101
|
get el() { return this; }
|
|
166
|
-
static get watchers() { return {
|
|
167
|
-
"checked": ["styleChanged"],
|
|
168
|
-
"disabled": ["styleChanged"]
|
|
169
|
-
}; }
|
|
170
102
|
static get style() { return {
|
|
171
103
|
ios: IonCheckboxIosStyle0,
|
|
172
104
|
md: IonCheckboxMdStyle0
|
|
@@ -180,11 +112,7 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
180
112
|
"value": [8],
|
|
181
113
|
"labelPlacement": [1, "label-placement"],
|
|
182
114
|
"justify": [1],
|
|
183
|
-
"alignment": [1]
|
|
184
|
-
"legacy": [4]
|
|
185
|
-
}, undefined, {
|
|
186
|
-
"checked": ["styleChanged"],
|
|
187
|
-
"disabled": ["styleChanged"]
|
|
115
|
+
"alignment": [1]
|
|
188
116
|
}]);
|
|
189
117
|
let checkboxIds = 0;
|
|
190
118
|
function defineCustomElement() {
|
package/components/helpers.js
CHANGED
|
@@ -415,4 +415,4 @@ const shallowEqualStringMap = (map1, map2) => {
|
|
|
415
415
|
return true;
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
export { addEventListener as a, removeEventListener as b, componentOnReady as c, inheritAttributes as d, renderHiddenInput as e, focusElement as f, getElementRoot as g, hasShadowDom as h, inheritAriaAttributes as i,
|
|
418
|
+
export { addEventListener as a, removeEventListener as b, componentOnReady as c, inheritAttributes as d, renderHiddenInput as e, focusElement as f, getElementRoot as g, hasShadowDom as h, inheritAriaAttributes as i, hasLazyBuild as j, clamp as k, debounceEvent as l, isEndSide as m, assert as n, getAriaLabel as o, debounce as p, now as q, raf as r, shallowEqualStringMap as s, transitionEndAsync as t, pointerCoord as u };
|
package/components/index2.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { writeTask, Build } from '@stencil/core/internal/client';
|
|
5
|
+
import { p as printIonWarning } from './index6.js';
|
|
6
|
+
import { c as config } from './ionic-global.js';
|
|
5
7
|
import { r as raf } from './helpers.js';
|
|
6
8
|
|
|
7
9
|
const LIFECYCLE_WILL_ENTER = 'ionViewWillEnter';
|
|
@@ -30,9 +32,23 @@ const transition = (opts) => {
|
|
|
30
32
|
});
|
|
31
33
|
});
|
|
32
34
|
};
|
|
35
|
+
const LAST_FOCUS = 'ion-last-focus';
|
|
33
36
|
const beforeTransition = (opts) => {
|
|
34
37
|
const enteringEl = opts.enteringEl;
|
|
35
38
|
const leavingEl = opts.leavingEl;
|
|
39
|
+
const focusManagerEnabled = config.get('experimentalFocusManagerPriority', false);
|
|
40
|
+
/**
|
|
41
|
+
* When going back to a previously visited page
|
|
42
|
+
* focus should typically be moved back to the
|
|
43
|
+
* element that was last focused when the user
|
|
44
|
+
* was on this view.
|
|
45
|
+
*/
|
|
46
|
+
if (focusManagerEnabled) {
|
|
47
|
+
const activeEl = document.activeElement;
|
|
48
|
+
if (activeEl !== null && (leavingEl === null || leavingEl === void 0 ? void 0 : leavingEl.contains(activeEl))) {
|
|
49
|
+
activeEl.setAttribute(LAST_FOCUS, 'true');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
36
52
|
setZIndex(enteringEl, leavingEl, opts.direction);
|
|
37
53
|
if (opts.showGoBack) {
|
|
38
54
|
enteringEl.classList.add('can-go-back');
|
|
@@ -58,6 +74,24 @@ const runTransition = async (opts) => {
|
|
|
58
74
|
const ani = animationBuilder && Build.isBrowser ? animation(animationBuilder, opts) : noAnimation(opts); // fast path for no animation
|
|
59
75
|
return ani;
|
|
60
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* Moves focus to a specified element.
|
|
79
|
+
* Note that we do not remove the tabindex
|
|
80
|
+
* because that can result in an unintentional
|
|
81
|
+
* blur. Non-focusables can't be focused, so the
|
|
82
|
+
* body will get focused again.
|
|
83
|
+
*/
|
|
84
|
+
const moveFocus = (el) => {
|
|
85
|
+
el.tabIndex = -1;
|
|
86
|
+
el.focus();
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Elements that are hidden using `display: none` should
|
|
90
|
+
* not be focused even if they are present in the DOM.
|
|
91
|
+
*/
|
|
92
|
+
const isVisible = (el) => {
|
|
93
|
+
return el.offsetParent !== null;
|
|
94
|
+
};
|
|
61
95
|
const afterTransition = (opts) => {
|
|
62
96
|
const enteringEl = opts.enteringEl;
|
|
63
97
|
const leavingEl = opts.leavingEl;
|
|
@@ -67,6 +101,69 @@ const afterTransition = (opts) => {
|
|
|
67
101
|
leavingEl.classList.remove('ion-page-invisible');
|
|
68
102
|
leavingEl.style.removeProperty('pointer-events');
|
|
69
103
|
}
|
|
104
|
+
const focusManagerPriorities = config.get('experimentalFocusManagerPriority', false);
|
|
105
|
+
if (Array.isArray(focusManagerPriorities) && !enteringEl.contains(document.activeElement)) {
|
|
106
|
+
/**
|
|
107
|
+
* When going back to a previously visited view
|
|
108
|
+
* focus should always be moved back to the element
|
|
109
|
+
* that the user was last focused on when they were on this view.
|
|
110
|
+
*/
|
|
111
|
+
const lastFocus = enteringEl.querySelector(`[${LAST_FOCUS}]`);
|
|
112
|
+
if (lastFocus && isVisible(lastFocus)) {
|
|
113
|
+
moveFocus(lastFocus);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
for (const priority of focusManagerPriorities) {
|
|
117
|
+
switch (priority) {
|
|
118
|
+
case 'content':
|
|
119
|
+
/**
|
|
120
|
+
* If no level one heading exists then we should at least focus the
|
|
121
|
+
* header so focus starts at the top of the page.
|
|
122
|
+
*/
|
|
123
|
+
const content = enteringEl.querySelector('main, [role="main"]');
|
|
124
|
+
if (content && isVisible(content)) {
|
|
125
|
+
moveFocus(content);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
break;
|
|
129
|
+
case 'heading':
|
|
130
|
+
/**
|
|
131
|
+
* If no last focus exists then we should prefer to focus
|
|
132
|
+
* level one headings. We do not prioritize the header yet
|
|
133
|
+
* because the header can have non-title elements such as
|
|
134
|
+
* a back button which is not necessarily helpful
|
|
135
|
+
* to focus first.
|
|
136
|
+
*/
|
|
137
|
+
const headingOne = enteringEl.querySelector('h1, [role="heading"][aria-level="1"]');
|
|
138
|
+
if (headingOne && isVisible(headingOne)) {
|
|
139
|
+
moveFocus(headingOne);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
143
|
+
case 'banner':
|
|
144
|
+
/**
|
|
145
|
+
* If no level one heading exists then we should at least focus the
|
|
146
|
+
* header so focus starts at the top of the page.
|
|
147
|
+
*/
|
|
148
|
+
const header = enteringEl.querySelector('header, [role="banner"]');
|
|
149
|
+
if (header && isVisible(header)) {
|
|
150
|
+
moveFocus(header);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
break;
|
|
154
|
+
default:
|
|
155
|
+
printIonWarning(`Unrecognized focus manager priority value ${priority}`);
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* If there is no header then focus the page
|
|
161
|
+
* so focus at least moves to the correct view.
|
|
162
|
+
* The browser will then determine where within the
|
|
163
|
+
* page to move focus to.
|
|
164
|
+
*/
|
|
165
|
+
moveFocus(enteringEl);
|
|
166
|
+
}
|
|
70
167
|
};
|
|
71
168
|
const getAnimationBuilder = async (opts) => {
|
|
72
169
|
if (!opts.leavingEl || !opts.animated || opts.duration === 0) {
|
|
@@ -99,7 +196,16 @@ const animation = async (animationBuilder, opts) => {
|
|
|
99
196
|
const noAnimation = async (opts) => {
|
|
100
197
|
const enteringEl = opts.enteringEl;
|
|
101
198
|
const leavingEl = opts.leavingEl;
|
|
102
|
-
|
|
199
|
+
const focusManagerEnabled = config.get('experimentalFocusManagerPriority', false);
|
|
200
|
+
/**
|
|
201
|
+
* If the focus manager is enabled then we
|
|
202
|
+
* need to wait for Ionic components to be rendered
|
|
203
|
+
* otherwise the correct component to focus may not
|
|
204
|
+
* be focused because it is still hidden.
|
|
205
|
+
* However, if the manager is not enabled
|
|
206
|
+
* then there's no need to wait since there will be no animation.
|
|
207
|
+
*/
|
|
208
|
+
await waitForReady(opts, focusManagerEnabled);
|
|
103
209
|
fireWillEvents(enteringEl, leavingEl);
|
|
104
210
|
fireDidEvents(enteringEl, leavingEl);
|
|
105
211
|
return {
|
package/components/index9.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { d as doc } from './index5.js';
|
|
5
|
-
import {
|
|
5
|
+
import { q as now, u as pointerCoord } from './helpers.js';
|
|
6
6
|
|
|
7
7
|
const startTapClick = (config) => {
|
|
8
8
|
if (doc === undefined) {
|
package/components/ion-chip.js
CHANGED
|
@@ -23,12 +23,12 @@ const Chip = /*@__PURE__*/ proxyCustomElement(class Chip extends HTMLElement {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
const mode = getIonMode(this);
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '4c8c83eefc650c00f2c515937df63094f9468bbd', "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses(this.color, {
|
|
27
27
|
[mode]: true,
|
|
28
28
|
'chip-outline': this.outline,
|
|
29
29
|
'chip-disabled': this.disabled,
|
|
30
30
|
'ion-activatable': true,
|
|
31
|
-
}) }, h("slot", { key: '
|
|
31
|
+
}) }, h("slot", { key: '5a94dafd29f2ea7255ba2d4fa173f5eff92146aa' }), mode === 'md' && h("ion-ripple-effect", null)));
|
|
32
32
|
}
|
|
33
33
|
static get style() { return {
|
|
34
34
|
ios: IonChipIosStyle0,
|
package/components/ion-col.js
CHANGED
|
@@ -138,9 +138,9 @@ const Col = /*@__PURE__*/ proxyCustomElement(class Col extends HTMLElement {
|
|
|
138
138
|
render() {
|
|
139
139
|
const isRTL = document.dir === 'rtl';
|
|
140
140
|
const mode = getIonMode(this);
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '8bb465c85b64001d6613e8b38cd4f4fd2b4c4a90', class: {
|
|
142
142
|
[mode]: true,
|
|
143
|
-
}, style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, h("slot", { key: '
|
|
143
|
+
}, style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, h("slot", { key: 'fe9f9ce55c86771638413457a0d5dcd9dce29217' })));
|
|
144
144
|
}
|
|
145
145
|
static get style() { return IonColStyle0; }
|
|
146
146
|
}, [1, "ion-col", {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, Build, readTask, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import {
|
|
5
|
+
import { j as hasLazyBuild, c as componentOnReady } from './helpers.js';
|
|
6
6
|
import { b as getIonMode, a as isPlatform } from './ionic-global.js';
|
|
7
7
|
import { i as isRTL } from './dir.js';
|
|
8
8
|
import { c as createColorClasses, h as hostContext } from './theme.js';
|
|
@@ -337,7 +337,7 @@ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLEleme
|
|
|
337
337
|
const forceOverscroll = this.shouldForceOverscroll();
|
|
338
338
|
const transitionShadow = mode === 'ios';
|
|
339
339
|
this.resize();
|
|
340
|
-
return (h(Host, { key: '
|
|
340
|
+
return (h(Host, { key: '5b6d5c2b8b91ac84dcdf6cf6178a8f7fb970ca00', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
|
|
341
341
|
[mode]: true,
|
|
342
342
|
'content-sizing': hostContext('ion-popover', this.el),
|
|
343
343
|
overscroll: forceOverscroll,
|
|
@@ -345,12 +345,12 @@ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLEleme
|
|
|
345
345
|
}), style: {
|
|
346
346
|
'--offset-top': `${this.cTop}px`,
|
|
347
347
|
'--offset-bottom': `${this.cBottom}px`,
|
|
348
|
-
} }, h("div", { key: '
|
|
348
|
+
} }, h("div", { key: '4fa58c187e2c2f7f3bc365f485dd80dc0c059d8b', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), h("div", { key: 'f595d0d59e0957acdebd0b16ae79e88da8ed973d', class: {
|
|
349
349
|
'inner-scroll': true,
|
|
350
350
|
'scroll-x': scrollX,
|
|
351
351
|
'scroll-y': scrollY,
|
|
352
352
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
353
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '
|
|
353
|
+
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '1aceb64f45d13574ea1e20c0885191ced5a0b961' })), transitionShadow ? (h("div", { class: "transition-effect" }, h("div", { class: "transition-cover" }), h("div", { class: "transition-shadow" }))) : null, h("slot", { key: 'd6c4f4d9001da024ec652358f7ae880db75d3a4e', name: "fixed" })));
|
|
354
354
|
}
|
|
355
355
|
get el() { return this; }
|
|
356
356
|
static get style() { return IonContentStyle0; }
|
|
@@ -336,7 +336,7 @@ const DatetimeButton = /*@__PURE__*/ proxyCustomElement(class DatetimeButton ext
|
|
|
336
336
|
render() {
|
|
337
337
|
const { color, dateText, timeText, selectedButton, datetimeActive, disabled } = this;
|
|
338
338
|
const mode = getIonMode(this);
|
|
339
|
-
return (h(Host, { key: '
|
|
339
|
+
return (h(Host, { key: 'cff9c4cbabf76a415b3785e9fa6cc682fddcec54', class: createColorClasses(color, {
|
|
340
340
|
[mode]: true,
|
|
341
341
|
[`${selectedButton}-active`]: datetimeActive,
|
|
342
342
|
['datetime-button-disabled']: disabled,
|
|
@@ -1702,7 +1702,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1702
1702
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1703
1703
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1704
1704
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
1705
|
-
return (h(Host, { key: '
|
|
1705
|
+
return (h(Host, { key: '2e5ff577327018558a145cff23f03661c2d19c41', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
|
|
1706
1706
|
[mode]: true,
|
|
1707
1707
|
['datetime-readonly']: readonly,
|
|
1708
1708
|
['datetime-disabled']: disabled,
|
|
@@ -71,7 +71,7 @@ const FabButton = /*@__PURE__*/ proxyCustomElement(class FabButton extends HTMLE
|
|
|
71
71
|
rel: this.rel,
|
|
72
72
|
target: this.target,
|
|
73
73
|
};
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: 'bfc553a86d54b665039512e93c83865232431e61', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
75
75
|
[mode]: true,
|
|
76
76
|
'fab-button-in-list': inList,
|
|
77
77
|
'fab-button-translucent-in-list': inList && translucent,
|
|
@@ -82,7 +82,7 @@ const FabButton = /*@__PURE__*/ proxyCustomElement(class FabButton extends HTMLE
|
|
|
82
82
|
'ion-activatable': true,
|
|
83
83
|
'ion-focusable': true,
|
|
84
84
|
[`fab-button-${size}`]: size !== undefined,
|
|
85
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
85
|
+
}) }, h(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), h("ion-icon", { key: '5b369ce677bb08c2972489be8abad035f2074fee', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: '6b61a3242e6d6ec49e157fe6c7a64b8445e6de3b', class: "button-inner" }, h("slot", { key: 'f6450e5caabb8becd48425547246b6edf96eb4f8' })), mode === 'md' && h("ion-ripple-effect", null))));
|
|
86
86
|
}
|
|
87
87
|
get el() { return this; }
|
|
88
88
|
static get style() { return {
|
|
@@ -25,11 +25,11 @@ const FabList = /*@__PURE__*/ proxyCustomElement(class FabList extends HTMLEleme
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const mode = getIonMode(this);
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '8eca9c8c4f7febe3e0b44604a3854480f5f9e697', class: {
|
|
29
29
|
[mode]: true,
|
|
30
30
|
'fab-list-active': this.activated,
|
|
31
31
|
[`fab-list-side-${this.side}`]: true,
|
|
32
|
-
} }, h("slot", { key: '
|
|
32
|
+
} }, h("slot", { key: '3be8055bbf0dbb928d712e950f6184bd173a2d1e' })));
|
|
33
33
|
}
|
|
34
34
|
get el() { return this; }
|
|
35
35
|
static get watchers() { return {
|
package/components/ion-fab.js
CHANGED
|
@@ -54,12 +54,12 @@ const Fab = /*@__PURE__*/ proxyCustomElement(class Fab extends HTMLElement {
|
|
|
54
54
|
render() {
|
|
55
55
|
const { horizontal, vertical, edge } = this;
|
|
56
56
|
const mode = getIonMode(this);
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '295e4b79449ff102d54b4a415487a26144a47839', class: {
|
|
58
58
|
[mode]: true,
|
|
59
59
|
[`fab-horizontal-${horizontal}`]: horizontal !== undefined,
|
|
60
60
|
[`fab-vertical-${vertical}`]: vertical !== undefined,
|
|
61
61
|
'fab-edge': edge,
|
|
62
|
-
} }, h("slot", { key: '
|
|
62
|
+
} }, h("slot", { key: 'a41871eb5d0a8c6315ba7012cef0e4dfc1126c9d' })));
|
|
63
63
|
}
|
|
64
64
|
get el() { return this; }
|
|
65
65
|
static get watchers() { return {
|
package/components/ion-footer.js
CHANGED
|
@@ -5,7 +5,7 @@ import { readTask, writeTask, proxyCustomElement, HTMLElement, h, Host } from '@
|
|
|
5
5
|
import { f as findIonContent, p as printIonContentErrorMsg, g as getScrollElement } from './index8.js';
|
|
6
6
|
import { c as createKeyboardController } from './keyboard-controller.js';
|
|
7
7
|
import { b as getIonMode } from './ionic-global.js';
|
|
8
|
-
import {
|
|
8
|
+
import { k as clamp } from './helpers.js';
|
|
9
9
|
|
|
10
10
|
const handleFooterFade = (scrollEl, baseEl) => {
|
|
11
11
|
readTask(() => {
|
|
@@ -115,7 +115,7 @@ const Footer = /*@__PURE__*/ proxyCustomElement(class Footer extends HTMLElement
|
|
|
115
115
|
const mode = getIonMode(this);
|
|
116
116
|
const tabs = this.el.closest('ion-tabs');
|
|
117
117
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: 'c86a1139e5004bb523b2ec02ff3056bb392070d8', role: "contentinfo", class: {
|
|
119
119
|
[mode]: true,
|
|
120
120
|
// Used internally for styling
|
|
121
121
|
[`footer-${mode}`]: true,
|
|
@@ -123,7 +123,7 @@ const Footer = /*@__PURE__*/ proxyCustomElement(class Footer extends HTMLElement
|
|
|
123
123
|
[`footer-translucent-${mode}`]: translucent,
|
|
124
124
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
125
125
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
126
|
-
} }, mode === 'ios' && translucent && h("div", { class: "footer-background" }), h("slot", { key: '
|
|
126
|
+
} }, mode === 'ios' && translucent && h("div", { class: "footer-background" }), h("slot", { key: '6869e534facaf074883643403c8fb03bb2f0dbc5' })));
|
|
127
127
|
}
|
|
128
128
|
get el() { return this; }
|
|
129
129
|
static get style() { return {
|
package/components/ion-grid.js
CHANGED
|
@@ -16,10 +16,10 @@ const Grid = /*@__PURE__*/ proxyCustomElement(class Grid extends HTMLElement {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const mode = getIonMode(this);
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '6d46d3693c8af7e805cb438dd654485a152e7e40', class: {
|
|
20
20
|
[mode]: true,
|
|
21
21
|
'grid-fixed': this.fixed,
|
|
22
|
-
} }, h("slot", { key: '
|
|
22
|
+
} }, h("slot", { key: '7f57ee35524880aeb96d081dd8125460156196b3' })));
|
|
23
23
|
}
|
|
24
24
|
static get style() { return IonGridStyle0; }
|
|
25
25
|
}, [1, "ion-grid", {
|
package/components/ion-header.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { readTask, writeTask, proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { g as getScrollElement, f as findIonContent, p as printIonContentErrorMsg } from './index8.js';
|
|
6
|
-
import {
|
|
6
|
+
import { k as clamp, i as inheritAriaAttributes } from './helpers.js';
|
|
7
7
|
import { h as hostContext } from './theme.js';
|
|
8
8
|
import { b as getIonMode } from './ionic-global.js';
|
|
9
9
|
|
|
@@ -321,14 +321,14 @@ const Header = /*@__PURE__*/ proxyCustomElement(class Header extends HTMLElement
|
|
|
321
321
|
const collapse = this.collapse || 'none';
|
|
322
322
|
// banner role must be at top level, so remove role if inside a menu
|
|
323
323
|
const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
|
|
324
|
-
return (h(Host, Object.assign({ key: '
|
|
324
|
+
return (h(Host, Object.assign({ key: 'ab8eb272f275b7802e224c21c166124092fa917b', role: roleType, class: {
|
|
325
325
|
[mode]: true,
|
|
326
326
|
// Used internally for styling
|
|
327
327
|
[`header-${mode}`]: true,
|
|
328
328
|
[`header-translucent`]: this.translucent,
|
|
329
329
|
[`header-collapse-${collapse}`]: true,
|
|
330
330
|
[`header-translucent-${mode}`]: this.translucent,
|
|
331
|
-
} }, inheritedAttributes), mode === 'ios' && translucent && h("div", { class: "header-background" }), h("slot", { key: '
|
|
331
|
+
} }, inheritedAttributes), mode === 'ios' && translucent && h("div", { class: "header-background" }), h("slot", { key: '52409e455c10a25419c4cbd9ed2346dfecb36537' })));
|
|
332
332
|
}
|
|
333
333
|
get el() { return this; }
|
|
334
334
|
static get style() { return {
|
package/components/ion-img.js
CHANGED
|
@@ -78,7 +78,7 @@ const Img = /*@__PURE__*/ proxyCustomElement(class Img extends HTMLElement {
|
|
|
78
78
|
render() {
|
|
79
79
|
const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;
|
|
80
80
|
const { draggable } = inheritedAttributes;
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'ff933e2b7e586c71bc695ad9e1475c2ef48a1632', class: getIonMode(this) }, h("img", { key: '60fea471b6665abe92678c7c9ab15c3e12195582', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
|
|
82
82
|
}
|
|
83
83
|
get el() { return this; }
|
|
84
84
|
static get watchers() { return {
|
|
@@ -35,11 +35,11 @@ const InfiniteScrollContent = /*@__PURE__*/ proxyCustomElement(class InfiniteScr
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const mode = getIonMode(this);
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '6c13188d977ef82db9281e0bc3e6d43438ad2335', class: {
|
|
39
39
|
[mode]: true,
|
|
40
40
|
// Used internally for styling
|
|
41
41
|
[`infinite-scroll-content-${mode}`]: true,
|
|
42
|
-
} }, h("div", { key: '
|
|
42
|
+
} }, h("div", { key: '41b5087e22d03c928d00be4e1845e711409c807d', class: "infinite-loading" }, this.loadingSpinner && (h("div", { class: "infinite-loading-spinner" }, h("ion-spinner", { name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
|
|
43
43
|
}
|
|
44
44
|
static get style() { return {
|
|
45
45
|
ios: IonInfiniteScrollContentIosStyle0,
|
|
@@ -174,7 +174,7 @@ const InfiniteScroll = /*@__PURE__*/ proxyCustomElement(class InfiniteScroll ext
|
|
|
174
174
|
render() {
|
|
175
175
|
const mode = getIonMode(this);
|
|
176
176
|
const disabled = this.disabled;
|
|
177
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: 'd9348b091bc02b744b7599207192994a31bf5044', class: {
|
|
178
178
|
[mode]: true,
|
|
179
179
|
'infinite-scroll-loading': this.isLoading,
|
|
180
180
|
'infinite-scroll-enabled': !disabled,
|