@ionic/core 8.4.4-dev.11740776520.1b9d8cb9 → 8.4.4-dev.11741030124.1142ac6a
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 +4 -6
- package/components/helpers.js +11 -1
- package/components/index6.js +3 -11
- package/components/index9.js +1 -1
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +40 -9
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +41 -16
- 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 +2 -2
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +4 -6
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/modal.js +35 -259
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +2 -39
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{data-108e531d.js → data-21dc0f81.js} +1 -1
- package/dist/cjs/{framework-delegate-55f5683a.js → framework-delegate-05579976.js} +1 -1
- package/dist/cjs/{helpers-afaa9001.js → helpers-4be3f90d.js} +11 -0
- package/dist/cjs/{index-3652c918.js → index-1ae3f40a.js} +2 -2
- package/dist/cjs/{index-e975c92b.js → index-4e14a46e.js} +4 -4
- package/dist/cjs/{index-2a46a047.js → index-5915f9b3.js} +3 -11
- package/dist/cjs/{index-9509ecad.js → index-ad7a712e.js} +1 -1
- package/dist/cjs/{index-0d762bba.js → index-c441c903.js} +2 -2
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{input-shims-cd05268a.js → input-shims-e748a364.js} +3 -5
- package/dist/cjs/{input.utils-ffb2f81b.js → input.utils-74e4ec28.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
- 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 +14 -14
- 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 +2 -2
- package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +5 -6
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +3 -3
- package/dist/cjs/ion-datetime_3.cjs.entry.js +9 -9
- package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-img.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ion-input.cjs.entry.js +4 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +7 -7
- 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 +41 -264
- package/dist/cjs/ion-nav_2.cjs.entry.js +7 -7
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +1 -1
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- 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 -40
- package/dist/cjs/ion-range.cjs.entry.js +6 -6
- package/dist/cjs/ion-refresher_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-reorder_2.cjs.entry.js +5 -5
- 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-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +42 -11
- package/dist/cjs/ion-select-modal.cjs.entry.js +5 -5
- package/dist/cjs/ion-select_3.cjs.entry.js +47 -21
- 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 +6 -6
- package/dist/cjs/ion-toast.cjs.entry.js +6 -6
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -6
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-0e664e88.js → ios.transition-afdec89f.js} +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-2e8aef2c.js → md.transition-9f0d3db5.js} +3 -3
- package/dist/cjs/{notch-controller-d69150f5.js → notch-controller-a0c464d1.js} +1 -1
- package/dist/cjs/{overlays-65fdaff6.js → overlays-76b29cd4.js} +3 -3
- package/dist/cjs/{status-tap-d74f1429.js → status-tap-fb807fad.js} +3 -4
- package/dist/cjs/{swipe-back-0303a5e4.js → swipe-back-47a52b83.js} +1 -1
- package/dist/collection/components/checkbox/checkbox.js +4 -23
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/animations/ios.enter.js +4 -50
- package/dist/collection/components/modal/animations/ios.leave.js +2 -24
- package/dist/collection/components/modal/animations/md.enter.js +5 -52
- package/dist/collection/components/modal/animations/md.leave.js +3 -26
- package/dist/collection/components/modal/animations/sheet.js +2 -11
- package/dist/collection/components/modal/gestures/sheet.js +10 -79
- package/dist/collection/components/modal/modal.ios.css +0 -16
- package/dist/collection/components/modal/modal.js +7 -32
- package/dist/collection/components/modal/modal.md.css +0 -6
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -72
- package/dist/collection/components/range/range.js +3 -3
- 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 +40 -9
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +40 -32
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.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 +4 -23
- package/dist/collection/components/toolbar/toolbar.js +2 -6
- package/dist/collection/utils/helpers.js +10 -0
- package/dist/collection/utils/logging/index.js +3 -10
- package/dist/docs.json +2 -163
- package/dist/esm/{data-b3284b5e.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{framework-delegate-63d1a679.js → framework-delegate-f683816e.js} +1 -1
- package/dist/esm/{helpers-da915de8.js → helpers-9b49d7d2.js} +11 -1
- package/dist/esm/{index-efb8ecdf.js → index-33f7e3ff.js} +2 -2
- package/dist/esm/{index-79b30591.js → index-5a0f5fd0.js} +1 -1
- package/dist/esm/{index-2f7fde3d.js → index-7ec5519a.js} +4 -4
- package/dist/esm/{index-cb21eccb.js → index-8785a9c6.js} +2 -2
- package/dist/esm/{index-6ad967f3.js → index-9b0d46f4.js} +3 -11
- package/dist/esm/index.js +8 -8
- package/dist/esm/{input-shims-2fd7c6ef.js → input-shims-0e65111b.js} +3 -5
- package/dist/esm/{input.utils-961c9f17.js → input.utils-1ad8dafc.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +2 -2
- 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 +14 -14
- 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 +2 -2
- package/dist/esm/ion-card_5.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +5 -6
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +3 -3
- package/dist/esm/ion-datetime_3.entry.js +9 -9
- package/dist/esm/ion-fab_3.entry.js +1 -1
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
- package/dist/esm/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +4 -4
- package/dist/esm/ion-item-option_3.entry.js +7 -7
- 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 +41 -264
- package/dist/esm/ion-nav_2.entry.js +7 -7
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +1 -1
- package/dist/esm/ion-picker.entry.js +1 -1
- 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 -40
- package/dist/esm/ion-range.entry.js +6 -6
- package/dist/esm/ion-refresher_2.entry.js +5 -5
- package/dist/esm/ion-reorder_2.entry.js +5 -5
- 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-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +42 -11
- package/dist/esm/ion-select-modal.entry.js +5 -5
- package/dist/esm/ion-select_3.entry.js +47 -21
- 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 +6 -6
- package/dist/esm/ion-toast.entry.js +6 -6
- package/dist/esm/ion-toggle.entry.js +5 -6
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-b1da3753.js → ios.transition-085853ff.js} +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-571b3859.js → md.transition-33826623.js} +3 -3
- package/dist/esm/{notch-controller-55b09e11.js → notch-controller-3dc61260.js} +1 -1
- package/dist/esm/{overlays-5deab4de.js → overlays-e3d0d356.js} +3 -3
- package/dist/esm/{status-tap-79eac0ac.js → status-tap-163e8128.js} +3 -4
- package/dist/esm/{swipe-back-e5394307.js → swipe-back-23ee7ab1.js} +1 -1
- package/dist/esm-es5/{data-b3284b5e.js → data-ae11fd43.js} +1 -1
- package/dist/esm-es5/{framework-delegate-63d1a679.js → framework-delegate-f683816e.js} +1 -1
- package/dist/esm-es5/{helpers-da915de8.js → helpers-9b49d7d2.js} +1 -1
- package/dist/esm-es5/{index-efb8ecdf.js → index-33f7e3ff.js} +1 -1
- package/dist/esm-es5/{index-79b30591.js → index-5a0f5fd0.js} +1 -1
- package/dist/esm-es5/{index-2f7fde3d.js → index-7ec5519a.js} +1 -1
- package/dist/esm-es5/{index-cb21eccb.js → index-8785a9c6.js} +1 -1
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-0e65111b.js +4 -0
- package/dist/esm-es5/{input.utils-961c9f17.js → input.utils-1ad8dafc.js} +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-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-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-b1da3753.js → ios.transition-085853ff.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-33826623.js +4 -0
- package/dist/esm-es5/{notch-controller-55b09e11.js → notch-controller-3dc61260.js} +1 -1
- package/dist/esm-es5/{overlays-5deab4de.js → overlays-e3d0d356.js} +1 -1
- package/dist/esm-es5/status-tap-163e8128.js +4 -0
- package/dist/esm-es5/{swipe-back-e5394307.js → swipe-back-23ee7ab1.js} +1 -1
- package/dist/html.html-data.json +0 -24
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-f1c4dcd4.js → p-02e1ebd9.js} +1 -1
- package/dist/ionic/{p-6f0f433c.entry.js → p-02e23f26.entry.js} +1 -1
- package/dist/ionic/{p-797204e3.entry.js → p-0397811d.entry.js} +1 -1
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/p-075a94bd.js +4 -0
- package/dist/ionic/p-0a59f4fa.entry.js +4 -0
- package/dist/ionic/{p-2346ab53.system.entry.js → p-0c9b6d3a.system.entry.js} +1 -1
- package/dist/ionic/p-0e43be1b.entry.js +4 -0
- package/dist/ionic/{p-7ed1657c.system.entry.js → p-0eb2553a.system.entry.js} +1 -1
- package/dist/ionic/p-0ee3b5a2.system.js +4 -0
- package/dist/ionic/p-135e5731.js +4 -0
- package/dist/ionic/{p-b6efeab8.js → p-13dc21b0.js} +1 -1
- package/dist/ionic/{p-7a6eaf9e.entry.js → p-14143257.entry.js} +1 -1
- package/dist/ionic/p-14be4015.entry.js +4 -0
- package/dist/ionic/{p-248318e0.system.entry.js → p-162c8d0c.system.entry.js} +1 -1
- package/dist/ionic/{p-2f43663c.system.entry.js → p-16799667.system.entry.js} +1 -1
- package/dist/ionic/p-16bfb979.system.entry.js +4 -0
- package/dist/ionic/{p-a88dec0d.system.js → p-1a790eef.system.js} +2 -2
- package/dist/ionic/{p-d4c9f8f6.system.entry.js → p-1bbe8665.system.entry.js} +2 -2
- package/dist/ionic/{p-fd257e86.system.entry.js → p-1bc65aec.system.entry.js} +1 -1
- package/dist/ionic/p-1f405274.js +4 -0
- package/dist/ionic/{p-120fb79a.entry.js → p-203633d1.entry.js} +1 -1
- package/dist/ionic/{p-9659caca.system.entry.js → p-2507278c.system.entry.js} +1 -1
- package/dist/ionic/{p-4fb8b6f8.system.entry.js → p-2515cb4d.system.entry.js} +1 -1
- package/dist/ionic/p-25fa1d30.system.entry.js +4 -0
- package/dist/ionic/{p-eb86eafb.entry.js → p-26194519.entry.js} +1 -1
- package/dist/ionic/{p-959886ca.entry.js → p-265939f0.entry.js} +1 -1
- package/dist/ionic/{p-c078a25d.system.entry.js → p-2abae1cc.system.entry.js} +1 -1
- package/dist/ionic/{p-34b11c24.js → p-2bc73fb5.js} +1 -1
- package/dist/ionic/p-2c9eb774.system.js +4 -0
- package/dist/ionic/{p-08f8804f.system.entry.js → p-2ef3c7ee.system.entry.js} +1 -1
- package/dist/ionic/p-322c5fb4.system.js +1 -1
- package/dist/ionic/{p-5a064906.entry.js → p-32e99b0a.entry.js} +1 -1
- package/dist/ionic/{p-c4238c12.system.js → p-340e3f24.system.js} +1 -1
- package/dist/ionic/{p-a090bce8.system.entry.js → p-3572f86a.system.entry.js} +1 -1
- package/dist/ionic/{p-14350389.system.entry.js → p-3df889b3.system.entry.js} +2 -2
- package/dist/ionic/{p-05b74e45.system.entry.js → p-3eaf1444.system.entry.js} +1 -1
- package/dist/ionic/{p-2034ff3e.entry.js → p-41780810.entry.js} +1 -1
- package/dist/ionic/{p-468b7fe5.system.entry.js → p-424eb140.system.entry.js} +1 -1
- package/dist/ionic/{p-1ab13b2b.js → p-42808996.js} +1 -1
- package/dist/ionic/{p-a9b68560.system.entry.js → p-4346c79d.system.entry.js} +1 -1
- package/dist/ionic/{p-a15ddedb.system.js → p-4452a8ac.system.js} +1 -1
- package/dist/ionic/{p-b1eb86fd.entry.js → p-45de8d2a.entry.js} +1 -1
- package/dist/ionic/{p-8ac07653.system.entry.js → p-48a8d9b4.system.entry.js} +2 -2
- package/dist/ionic/p-49a0e74c.entry.js +4 -0
- package/dist/ionic/{p-52d7a191.entry.js → p-4ad78edc.entry.js} +1 -1
- package/dist/ionic/{p-46d78904.entry.js → p-4c252070.entry.js} +1 -1
- package/dist/ionic/{p-19ea7bff.system.js → p-5126cf1e.system.js} +1 -1
- package/dist/ionic/{p-cb13696c.js → p-51dec25d.js} +1 -1
- package/dist/ionic/{p-933727f9.system.entry.js → p-561ddcd4.system.entry.js} +2 -2
- package/dist/ionic/p-56da53ad.system.entry.js +4 -0
- package/dist/ionic/{p-948e6c6a.entry.js → p-57379000.entry.js} +1 -1
- package/dist/ionic/{p-c8c015fa.entry.js → p-57ceead7.entry.js} +1 -1
- package/dist/ionic/{p-571f7efd.entry.js → p-5b932840.entry.js} +1 -1
- package/dist/ionic/{p-15d18206.entry.js → p-5cde8ef3.entry.js} +1 -1
- package/dist/ionic/{p-0f00abe2.entry.js → p-6190d0d6.entry.js} +1 -1
- package/dist/ionic/p-61d044b4.entry.js +4 -0
- package/dist/ionic/{p-f200c0f2.entry.js → p-62af944c.entry.js} +1 -1
- package/dist/ionic/p-68dc53a5.js +4 -0
- package/dist/ionic/{p-308d9b4c.entry.js → p-6b1bd0c1.entry.js} +1 -1
- package/dist/ionic/{p-48d2c8e3.entry.js → p-6d32975a.entry.js} +1 -1
- package/dist/ionic/{p-458d8052.system.entry.js → p-70ccc275.system.entry.js} +2 -2
- package/dist/ionic/{p-d12c8b7c.entry.js → p-73dc4950.entry.js} +1 -1
- package/dist/ionic/{p-65493214.system.entry.js → p-7458862e.system.entry.js} +1 -1
- package/dist/ionic/{p-d1918f92.entry.js → p-76446a85.entry.js} +1 -1
- package/dist/ionic/{p-e7bfd50d.system.entry.js → p-77e7b7b6.system.entry.js} +1 -1
- package/dist/ionic/{p-72812e99.js → p-7a1766d6.js} +1 -1
- package/dist/ionic/{p-6270042b.system.entry.js → p-7b96e5c1.system.entry.js} +1 -1
- package/dist/ionic/{p-aacfc8f1.entry.js → p-7b98cebe.entry.js} +1 -1
- package/dist/ionic/{p-766477e0.entry.js → p-803f0bc2.entry.js} +1 -1
- package/dist/ionic/{p-f0270b8c.entry.js → p-82b931e2.entry.js} +1 -1
- package/dist/ionic/{p-2b0ce71f.entry.js → p-83e68c71.entry.js} +1 -1
- package/dist/ionic/p-84b1b9a0.entry.js +4 -0
- package/dist/ionic/{p-1e67b266.system.entry.js → p-84d08aae.system.entry.js} +1 -1
- package/dist/ionic/{p-d22e2a38.system.js → p-881d9e52.system.js} +1 -1
- package/dist/ionic/p-8a836849.entry.js +4 -0
- package/dist/ionic/{p-e09d6392.system.entry.js → p-91f17b25.system.entry.js} +2 -2
- package/dist/ionic/{p-1eb2e3bc.system.entry.js → p-92365bc1.system.entry.js} +1 -1
- package/dist/ionic/{p-d7aa6b00.entry.js → p-955c3eb8.entry.js} +1 -1
- package/dist/ionic/{p-7d6d8f1f.entry.js → p-95775830.entry.js} +1 -1
- package/dist/ionic/{p-8635f5e6.system.js → p-95da3ae2.system.js} +1 -1
- package/dist/ionic/{p-102e55aa.system.entry.js → p-9a1f985d.system.entry.js} +1 -1
- package/dist/ionic/{p-b9d7015f.entry.js → p-9b3bb24e.entry.js} +1 -1
- package/dist/ionic/{p-1854b62d.system.entry.js → p-9be5f3ee.system.entry.js} +2 -2
- package/dist/ionic/{p-5c08627a.system.js → p-9eee4de1.system.js} +1 -1
- package/dist/ionic/{p-7de1e42c.system.js → p-a2b6dd57.system.js} +1 -1
- package/dist/ionic/{p-a2cc2247.system.entry.js → p-a3c78186.system.entry.js} +1 -1
- package/dist/ionic/{p-71c66f13.system.entry.js → p-a4575db1.system.entry.js} +1 -1
- package/dist/ionic/{p-01186920.system.entry.js → p-a9e24ae2.system.entry.js} +1 -1
- package/dist/ionic/{p-0eb35a7f.system.js → p-aa63b365.system.js} +1 -1
- package/dist/ionic/{p-b8427d77.entry.js → p-af09741c.entry.js} +1 -1
- package/dist/ionic/{p-442e3021.entry.js → p-afecb188.entry.js} +1 -1
- package/dist/ionic/{p-a8f2c254.entry.js → p-b0d8bbee.entry.js} +1 -1
- package/dist/ionic/{p-3ad285e3.system.js → p-b3680e2f.system.js} +1 -1
- package/dist/ionic/p-b7433d7d.js +4 -0
- package/dist/ionic/{p-e1ebcbb2.system.entry.js → p-b91acf8d.system.entry.js} +1 -1
- package/dist/ionic/{p-b51e4004.js → p-bb11d9fb.js} +1 -1
- package/dist/ionic/{p-081a4ce4.entry.js → p-bb2a6761.entry.js} +1 -1
- package/dist/ionic/{p-ada36597.system.js → p-c1b51537.system.js} +1 -1
- package/dist/ionic/{p-8cfba7e9.system.entry.js → p-c29f8157.system.entry.js} +1 -1
- package/dist/ionic/{p-d3a4e061.entry.js → p-c32644d7.entry.js} +1 -1
- package/dist/ionic/{p-c41ac815.entry.js → p-c8d645b3.entry.js} +1 -1
- package/dist/ionic/p-cc700b6b.entry.js +4 -0
- package/dist/ionic/{p-1fdf3d2e.system.entry.js → p-d06601eb.system.entry.js} +1 -1
- package/dist/ionic/{p-bac6d8b8.system.entry.js → p-d192fdf7.system.entry.js} +1 -1
- package/dist/ionic/{p-34093a29.system.entry.js → p-d3b26da4.system.entry.js} +1 -1
- package/dist/ionic/{p-3cc276f4.js → p-d4ca0475.js} +1 -1
- package/dist/ionic/{p-1a5bc5f7.js → p-d60342e3.js} +1 -1
- package/dist/ionic/{p-89bf08c7.entry.js → p-da074ff7.entry.js} +1 -1
- package/dist/ionic/{p-58d5df0c.system.entry.js → p-da8ef548.system.entry.js} +1 -1
- package/dist/ionic/{p-985a7e17.system.entry.js → p-dc146a2a.system.entry.js} +1 -1
- package/dist/ionic/{p-cac0e0b3.system.entry.js → p-dd0c9350.system.entry.js} +1 -1
- package/dist/ionic/p-df862603.entry.js +4 -0
- package/dist/ionic/{p-d1d88a4a.entry.js → p-e1bbacb7.entry.js} +1 -1
- package/dist/ionic/{p-0445f081.system.entry.js → p-e265ae18.system.entry.js} +1 -1
- package/dist/ionic/{p-b0dce4ab.system.entry.js → p-e2e19375.system.entry.js} +1 -1
- package/dist/ionic/p-e308de5b.system.js +4 -0
- package/dist/ionic/{p-a4a2420e.system.entry.js → p-e456ee59.system.entry.js} +1 -1
- package/dist/ionic/{p-b3c60433.system.js → p-e8232807.system.js} +1 -1
- package/dist/ionic/{p-15e76dd1.entry.js → p-e8f34871.entry.js} +1 -1
- package/dist/ionic/{p-ef2b566d.entry.js → p-e97a3f44.entry.js} +1 -1
- package/dist/ionic/{p-d8a385f2.system.entry.js → p-ed75fcfb.system.entry.js} +1 -1
- package/dist/ionic/{p-6b888f65.system.entry.js → p-f301a694.system.entry.js} +1 -1
- package/dist/ionic/{p-e76dae93.entry.js → p-f42743d1.entry.js} +1 -1
- package/dist/ionic/{p-28706c6f.js → p-f5035354.js} +1 -1
- package/dist/ionic/{p-343b6b1d.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/{p-03692b8d.system.entry.js → p-f78af648.system.entry.js} +1 -1
- package/dist/ionic/{p-63b0abde.system.entry.js → p-f89cf011.system.entry.js} +1 -1
- package/dist/ionic/{p-7b9a2b23.entry.js → p-fca17935.entry.js} +1 -1
- package/dist/ionic/{p-ed059cb7.system.entry.js → p-fca6ef5f.system.entry.js} +1 -1
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/ionic/{p-f03b3a76.system.entry.js → p-ffc48bc5.system.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +0 -6
- package/dist/types/components/modal/animations/sheet.d.ts +0 -1
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +0 -1
- package/dist/types/components/modal/modal.d.ts +0 -11
- package/dist/types/components/radio-group/radio-group.d.ts +0 -15
- package/dist/types/components/segment-button/segment-button.d.ts +2 -1
- package/dist/types/components/select/select.d.ts +0 -6
- package/dist/types/components/toggle/toggle.d.ts +0 -6
- package/dist/types/components/toolbar/toolbar.d.ts +0 -4
- package/dist/types/components.d.ts +0 -48
- package/dist/types/utils/config.d.ts +0 -9
- package/dist/types/utils/helpers.d.ts +1 -0
- package/dist/types/utils/logging/index.d.ts +1 -13
- package/hydrate/index.js +219 -428
- package/hydrate/index.mjs +219 -428
- package/package.json +3 -3
- package/dist/collection/components/radio-group/radio-group.ios.css +0 -202
- package/dist/collection/components/radio-group/radio-group.md.css +0 -202
- package/dist/esm-es5/index-6ad967f3.js +0 -4
- package/dist/esm-es5/input-shims-2fd7c6ef.js +0 -4
- package/dist/esm-es5/md.transition-571b3859.js +0 -4
- package/dist/esm-es5/status-tap-79eac0ac.js +0 -4
- package/dist/ionic/p-073b47c8.system.entry.js +0 -4
- package/dist/ionic/p-0af823e1.js +0 -4
- package/dist/ionic/p-116f21ad.entry.js +0 -4
- package/dist/ionic/p-13966709.entry.js +0 -4
- package/dist/ionic/p-4c2d5b80.system.js +0 -4
- package/dist/ionic/p-4c98e2cf.system.js +0 -4
- package/dist/ionic/p-58fff30e.entry.js +0 -4
- package/dist/ionic/p-67222c16.system.js +0 -4
- package/dist/ionic/p-6c95736e.entry.js +0 -4
- package/dist/ionic/p-702bc67d.entry.js +0 -4
- package/dist/ionic/p-72bc8a1c.js +0 -4
- package/dist/ionic/p-7513b0c4.js +0 -4
- package/dist/ionic/p-9343a445.js +0 -4
- package/dist/ionic/p-9fd14430.system.entry.js +0 -4
- package/dist/ionic/p-a3db8ee3.js +0 -4
- package/dist/ionic/p-c5d5571d.system.entry.js +0 -4
- package/dist/ionic/p-d1c5b60e.system.js +0 -4
- package/dist/ionic/p-e8d56122.js +0 -4
- package/dist/ionic/p-eb027b33.entry.js +0 -4
- package/dist/ionic/p-edbf38cf.entry.js +0 -4
- package/dist/ionic/p-ef67a752.entry.js +0 -4
- package/dist/ionic/p-efe06d98.entry.js +0 -4
|
@@ -55,13 +55,13 @@ export class Label {
|
|
|
55
55
|
render() {
|
|
56
56
|
const position = this.position;
|
|
57
57
|
const mode = getIonMode(this);
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '6353a70565ef6fbbbf4042b000e536c61bcf99a9', class: createColorClasses(this.color, {
|
|
59
59
|
[mode]: true,
|
|
60
60
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
61
61
|
[`label-${position}`]: position !== undefined,
|
|
62
62
|
[`label-no-animate`]: this.noAnimate,
|
|
63
63
|
'label-rtl': document.dir === 'rtl',
|
|
64
|
-
}) }, h("slot", { key: '
|
|
64
|
+
}) }, h("slot", { key: '6ef9c2758c0168442aa84941af0a6cec1ef1ec21' })));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "ion-label"; }
|
|
67
67
|
static get encapsulation() { return "scoped"; }
|
|
@@ -15,10 +15,10 @@ export class ListHeader {
|
|
|
15
15
|
render() {
|
|
16
16
|
const { lines } = this;
|
|
17
17
|
const mode = getIonMode(this);
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'fb78bd8601cbd7b90ec84a96e0c8325be1132b1e', class: createColorClasses(this.color, {
|
|
19
19
|
[mode]: true,
|
|
20
20
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
21
|
-
}) }, h("div", { key: '
|
|
21
|
+
}) }, h("div", { key: '2580ad49f3a54973e15f14d645a1e55a6fa066ac', class: "list-header-inner" }, h("slot", { key: '677b2e2ec8eeb3ae6ad329e86c76451cf3ae6c2f' }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "ion-list-header"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -161,9 +161,9 @@ export class Loading {
|
|
|
161
161
|
* Otherwise, don't set aria-labelledby.
|
|
162
162
|
*/
|
|
163
163
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
164
|
-
return (h(Host, Object.assign({ key: '
|
|
164
|
+
return (h(Host, Object.assign({ key: 'd97f536b7f443ea19a2bbf2dcbc7f546b8e0a092', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
165
165
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
166
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
166
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '6cd39bd7912fd080ab59d041644054c96d238ea9', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'c14ca5a9308844f11bcb010257e15208a75b39bc', tabindex: "0", "aria-hidden": "true" }), h("div", { key: '118bceefa8e1cf8b225a858f224e6d919cf03c26', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: '490d6e8ae4433835fe273162d7b90deab944fb39', class: "loading-spinner" }, h("ion-spinner", { key: 'c5cf6549c43df4cb23814b3e62ec4d9e7ea2b64f', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '2b888362122d3b66b0492d53b0c21bd6a2a97501', tabindex: "0", "aria-hidden": "true" })));
|
|
167
167
|
}
|
|
168
168
|
static get is() { return "ion-loading"; }
|
|
169
169
|
static get encapsulation() { return "scoped"; }
|
|
@@ -614,14 +614,14 @@ export class Menu {
|
|
|
614
614
|
* the ionBackButton listener in the menu controller
|
|
615
615
|
* will handle closing the menu when Escape is pressed.
|
|
616
616
|
*/
|
|
617
|
-
return (h(Host, { key: '
|
|
617
|
+
return (h(Host, { key: 'da96fdb4c5ddf60e615cc4cdda7ccdb3fd7e089b', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
618
618
|
[mode]: true,
|
|
619
619
|
[`menu-type-${type}`]: true,
|
|
620
620
|
'menu-enabled': !disabled,
|
|
621
621
|
[`menu-side-${side}`]: true,
|
|
622
622
|
'menu-pane-visible': isPaneVisible,
|
|
623
623
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
624
|
-
} }, h("div", { key: '
|
|
624
|
+
} }, h("div", { key: '894e680fe227534711128c7aca980964ddb5a08a', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: 'e9f5934518dc0cceaeadf1f2820614595fec6bc9' })), h("ion-backdrop", { key: '7282077817657b1bb6c155f1404c0a519fece993', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
625
625
|
}
|
|
626
626
|
static get is() { return "ion-menu"; }
|
|
627
627
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@ export class MenuButton {
|
|
|
46
46
|
type: this.type,
|
|
47
47
|
};
|
|
48
48
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '7ec29715ce7926b7c2b08f3d9cac8aaa16b3dc28', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
|
|
50
50
|
[mode]: true,
|
|
51
51
|
button: true, // ion-buttons target .button
|
|
52
52
|
'menu-button-hidden': hidden,
|
|
@@ -55,7 +55,7 @@ export class MenuButton {
|
|
|
55
55
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
56
56
|
'ion-activatable': true,
|
|
57
57
|
'ion-focusable': true,
|
|
58
|
-
}) }, h("button", Object.assign({ key: '
|
|
58
|
+
}) }, h("button", Object.assign({ key: 'd4c5929264af3ba0328118bcc27d2ab7ef5d3809' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), h("span", { key: '7bfa6e9a93105486623d044861e879ec79ff64f1', class: "button-inner" }, h("slot", { key: '071ab58e285832fc188706166f5547d45d501ac5' }, h("ion-icon", { key: '918ec5d791921de9821c347af4f65f97dd94aabf', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: '00ffdd53f635e706c1dbd01b8e7944498650fe81', type: "unbounded" }))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "ion-menu-button"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,10 +26,10 @@ export class MenuToggle {
|
|
|
26
26
|
render() {
|
|
27
27
|
const mode = getIonMode(this);
|
|
28
28
|
const hidden = this.autoHide && !this.visible;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '7c27ea5b0795676bf5cb33e1f83aa142c197f64e', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
30
30
|
[mode]: true,
|
|
31
31
|
'menu-toggle-hidden': hidden,
|
|
32
|
-
} }, h("slot", { key: '
|
|
32
|
+
} }, h("slot", { key: '69f187becedc0fe34603d41d279f043cf0fdf776' })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "ion-menu-toggle"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,68 +13,22 @@ const createEnterAnimation = () => {
|
|
|
13
13
|
})
|
|
14
14
|
.afterClearStyles(['pointer-events']);
|
|
15
15
|
const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(100vh)', 'translateY(0vh)');
|
|
16
|
-
return { backdropAnimation, wrapperAnimation
|
|
16
|
+
return { backdropAnimation, wrapperAnimation };
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* iOS Modal Enter Animation for the Card presentation style
|
|
20
20
|
*/
|
|
21
21
|
export const iosEnterAnimation = (baseEl, opts) => {
|
|
22
|
-
const { presentingEl, currentBreakpoint
|
|
22
|
+
const { presentingEl, currentBreakpoint } = opts;
|
|
23
23
|
const root = getElementRoot(baseEl);
|
|
24
|
-
const { wrapperAnimation, backdropAnimation
|
|
24
|
+
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
|
|
25
25
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
26
26
|
wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
|
|
27
|
-
// The content animation is only added if scrolling is enabled for
|
|
28
|
-
// all the breakpoints.
|
|
29
|
-
!expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
|
|
30
27
|
const baseAnimation = createAnimation('entering-base')
|
|
31
28
|
.addElement(baseEl)
|
|
32
29
|
.easing('cubic-bezier(0.32,0.72,0,1)')
|
|
33
30
|
.duration(500)
|
|
34
|
-
.addAnimation(
|
|
35
|
-
.beforeAddWrite(() => {
|
|
36
|
-
if (expandToScroll) {
|
|
37
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* There are some browsers that causes flickering when
|
|
42
|
-
* dragging the content when scroll is enabled at every
|
|
43
|
-
* breakpoint. This is due to the wrapper element being
|
|
44
|
-
* transformed off the screen and having a snap animation.
|
|
45
|
-
*
|
|
46
|
-
* A workaround is to clone the footer element and append
|
|
47
|
-
* it outside of the wrapper element. This way, the footer
|
|
48
|
-
* is still visible and the drag can be done without
|
|
49
|
-
* flickering. The original footer is hidden until the modal
|
|
50
|
-
* is dismissed. This maintains the animation of the footer
|
|
51
|
-
* when the modal is dismissed.
|
|
52
|
-
*
|
|
53
|
-
* The workaround needs to be done before the animation starts
|
|
54
|
-
* so there are no flickering issues.
|
|
55
|
-
*/
|
|
56
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
57
|
-
/**
|
|
58
|
-
* This check is needed to prevent more than one footer
|
|
59
|
-
* from being appended to the shadow root.
|
|
60
|
-
* Otherwise, iOS and MD enter animations would append
|
|
61
|
-
* the footer twice.
|
|
62
|
-
*/
|
|
63
|
-
const ionFooterAlreadyAppended = baseEl.shadowRoot.querySelector('ion-footer');
|
|
64
|
-
if (ionFooter && !ionFooterAlreadyAppended) {
|
|
65
|
-
const footerHeight = ionFooter.clientHeight;
|
|
66
|
-
const clonedFooter = ionFooter.cloneNode(true);
|
|
67
|
-
baseEl.shadowRoot.appendChild(clonedFooter);
|
|
68
|
-
ionFooter.style.setProperty('display', 'none');
|
|
69
|
-
ionFooter.setAttribute('aria-hidden', 'true');
|
|
70
|
-
// Padding is added to prevent some content from being hidden.
|
|
71
|
-
const page = baseEl.querySelector('.ion-page');
|
|
72
|
-
page.style.setProperty('padding-bottom', `${footerHeight}px`);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (contentAnimation) {
|
|
76
|
-
baseAnimation.addAnimation(contentAnimation);
|
|
77
|
-
}
|
|
31
|
+
.addAnimation(wrapperAnimation);
|
|
78
32
|
if (presentingEl) {
|
|
79
33
|
const isMobile = window.innerWidth < 768;
|
|
80
34
|
const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
|
|
@@ -14,7 +14,7 @@ const createLeaveAnimation = () => {
|
|
|
14
14
|
* iOS Modal Leave Animation
|
|
15
15
|
*/
|
|
16
16
|
export const iosLeaveAnimation = (baseEl, opts, duration = 500) => {
|
|
17
|
-
const { presentingEl, currentBreakpoint
|
|
17
|
+
const { presentingEl, currentBreakpoint } = opts;
|
|
18
18
|
const root = getElementRoot(baseEl);
|
|
19
19
|
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation();
|
|
20
20
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
@@ -23,29 +23,7 @@ export const iosLeaveAnimation = (baseEl, opts, duration = 500) => {
|
|
|
23
23
|
.addElement(baseEl)
|
|
24
24
|
.easing('cubic-bezier(0.32,0.72,0,1)')
|
|
25
25
|
.duration(duration)
|
|
26
|
-
.addAnimation(wrapperAnimation)
|
|
27
|
-
.beforeAddWrite(() => {
|
|
28
|
-
if (expandToScroll) {
|
|
29
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* If expandToScroll is disabled, we need to swap
|
|
34
|
-
* the visibility to the original, so the footer
|
|
35
|
-
* dismisses with the modal and doesn't stay
|
|
36
|
-
* until the modal is removed from the DOM.
|
|
37
|
-
*/
|
|
38
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
39
|
-
if (ionFooter) {
|
|
40
|
-
const clonedFooter = baseEl.shadowRoot.querySelector('ion-footer');
|
|
41
|
-
ionFooter.style.removeProperty('display');
|
|
42
|
-
ionFooter.removeAttribute('aria-hidden');
|
|
43
|
-
clonedFooter.style.setProperty('display', 'none');
|
|
44
|
-
clonedFooter.setAttribute('aria-hidden', 'true');
|
|
45
|
-
const page = baseEl.querySelector('.ion-page');
|
|
46
|
-
page.style.removeProperty('padding-bottom');
|
|
47
|
-
}
|
|
48
|
-
});
|
|
26
|
+
.addAnimation(wrapperAnimation);
|
|
49
27
|
if (presentingEl) {
|
|
50
28
|
const isMobile = window.innerWidth < 768;
|
|
51
29
|
const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
|
|
@@ -15,67 +15,20 @@ const createEnterAnimation = () => {
|
|
|
15
15
|
{ offset: 0, opacity: 0.01, transform: 'translateY(40px)' },
|
|
16
16
|
{ offset: 1, opacity: 1, transform: `translateY(0px)` },
|
|
17
17
|
]);
|
|
18
|
-
return { backdropAnimation, wrapperAnimation
|
|
18
|
+
return { backdropAnimation, wrapperAnimation };
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Md Modal Enter Animation
|
|
22
22
|
*/
|
|
23
23
|
export const mdEnterAnimation = (baseEl, opts) => {
|
|
24
|
-
const { currentBreakpoint
|
|
24
|
+
const { currentBreakpoint } = opts;
|
|
25
25
|
const root = getElementRoot(baseEl);
|
|
26
|
-
const { wrapperAnimation, backdropAnimation
|
|
26
|
+
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
|
|
27
27
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
28
28
|
wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
|
|
29
|
-
|
|
30
|
-
// all the breakpoints.
|
|
31
|
-
expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
|
|
32
|
-
const baseAnimation = createAnimation()
|
|
29
|
+
return createAnimation()
|
|
33
30
|
.addElement(baseEl)
|
|
34
31
|
.easing('cubic-bezier(0.36,0.66,0.04,1)')
|
|
35
32
|
.duration(280)
|
|
36
|
-
.addAnimation([backdropAnimation, wrapperAnimation])
|
|
37
|
-
.beforeAddWrite(() => {
|
|
38
|
-
if (expandToScroll) {
|
|
39
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* There are some browsers that causes flickering when
|
|
44
|
-
* dragging the content when scroll is enabled at every
|
|
45
|
-
* breakpoint. This is due to the wrapper element being
|
|
46
|
-
* transformed off the screen and having a snap animation.
|
|
47
|
-
*
|
|
48
|
-
* A workaround is to clone the footer element and append
|
|
49
|
-
* it outside of the wrapper element. This way, the footer
|
|
50
|
-
* is still visible and the drag can be done without
|
|
51
|
-
* flickering. The original footer is hidden until the modal
|
|
52
|
-
* is dismissed. This maintains the animation of the footer
|
|
53
|
-
* when the modal is dismissed.
|
|
54
|
-
*
|
|
55
|
-
* The workaround needs to be done before the animation starts
|
|
56
|
-
* so there are no flickering issues.
|
|
57
|
-
*/
|
|
58
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
59
|
-
/**
|
|
60
|
-
* This check is needed to prevent more than one footer
|
|
61
|
-
* from being appended to the shadow root.
|
|
62
|
-
* Otherwise, iOS and MD enter animations would append
|
|
63
|
-
* the footer twice.
|
|
64
|
-
*/
|
|
65
|
-
const ionFooterAlreadyAppended = baseEl.shadowRoot.querySelector('ion-footer');
|
|
66
|
-
if (ionFooter && !ionFooterAlreadyAppended) {
|
|
67
|
-
const footerHeight = ionFooter.clientHeight;
|
|
68
|
-
const clonedFooter = ionFooter.cloneNode(true);
|
|
69
|
-
baseEl.shadowRoot.appendChild(clonedFooter);
|
|
70
|
-
ionFooter.style.setProperty('display', 'none');
|
|
71
|
-
ionFooter.setAttribute('aria-hidden', 'true');
|
|
72
|
-
// Padding is added to prevent some content from being hidden.
|
|
73
|
-
const page = baseEl.querySelector('.ion-page');
|
|
74
|
-
page.style.setProperty('padding-bottom', `${footerHeight}px`);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
if (contentAnimation) {
|
|
78
|
-
baseAnimation.addAnimation(contentAnimation);
|
|
79
|
-
}
|
|
80
|
-
return baseAnimation;
|
|
33
|
+
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
81
34
|
};
|
|
@@ -16,36 +16,13 @@ const createLeaveAnimation = () => {
|
|
|
16
16
|
* Md Modal Leave Animation
|
|
17
17
|
*/
|
|
18
18
|
export const mdLeaveAnimation = (baseEl, opts) => {
|
|
19
|
-
const { currentBreakpoint
|
|
19
|
+
const { currentBreakpoint } = opts;
|
|
20
20
|
const root = getElementRoot(baseEl);
|
|
21
21
|
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation();
|
|
22
22
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
23
23
|
wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
|
|
24
|
-
|
|
24
|
+
return createAnimation()
|
|
25
25
|
.easing('cubic-bezier(0.47,0,0.745,0.715)')
|
|
26
26
|
.duration(200)
|
|
27
|
-
.addAnimation([backdropAnimation, wrapperAnimation])
|
|
28
|
-
.beforeAddWrite(() => {
|
|
29
|
-
if (expandToScroll) {
|
|
30
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* If expandToScroll is disabled, we need to swap
|
|
35
|
-
* the visibility to the original, so the footer
|
|
36
|
-
* dismisses with the modal and doesn't stay
|
|
37
|
-
* until the modal is removed from the DOM.
|
|
38
|
-
*/
|
|
39
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
40
|
-
if (ionFooter) {
|
|
41
|
-
const clonedFooter = baseEl.shadowRoot.querySelector('ion-footer');
|
|
42
|
-
ionFooter.style.removeProperty('display');
|
|
43
|
-
ionFooter.removeAttribute('aria-hidden');
|
|
44
|
-
clonedFooter.style.setProperty('display', 'none');
|
|
45
|
-
clonedFooter.setAttribute('aria-hidden', 'true');
|
|
46
|
-
const page = baseEl.querySelector('.ion-page');
|
|
47
|
-
page.style.removeProperty('padding-bottom');
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
return baseAnimation;
|
|
27
|
+
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
51
28
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { createAnimation } from "../../../utils/animation/animation";
|
|
5
5
|
import { getBackdropValueForSheet } from "../utils";
|
|
6
6
|
export const createSheetEnterAnimation = (opts) => {
|
|
7
|
-
const { currentBreakpoint, backdropBreakpoint
|
|
7
|
+
const { currentBreakpoint, backdropBreakpoint } = opts;
|
|
8
8
|
/**
|
|
9
9
|
* If the backdropBreakpoint is undefined, then the backdrop
|
|
10
10
|
* should always fade in. If the backdropBreakpoint came before the
|
|
@@ -24,16 +24,7 @@ export const createSheetEnterAnimation = (opts) => {
|
|
|
24
24
|
{ offset: 0, opacity: 1, transform: 'translateY(100%)' },
|
|
25
25
|
{ offset: 1, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
|
|
26
26
|
]);
|
|
27
|
-
|
|
28
|
-
* This allows the content to be scrollable at any breakpoint.
|
|
29
|
-
*/
|
|
30
|
-
const contentAnimation = !expandToScroll
|
|
31
|
-
? createAnimation('contentAnimation').keyframes([
|
|
32
|
-
{ offset: 0, opacity: 1, maxHeight: `${(1 - currentBreakpoint) * 100}%` },
|
|
33
|
-
{ offset: 1, opacity: 1, maxHeight: `${currentBreakpoint * 100}%` },
|
|
34
|
-
])
|
|
35
|
-
: undefined;
|
|
36
|
-
return { wrapperAnimation, backdropAnimation, contentAnimation };
|
|
27
|
+
return { wrapperAnimation, backdropAnimation };
|
|
37
28
|
};
|
|
38
29
|
export const createSheetLeaveAnimation = (opts) => {
|
|
39
30
|
const { currentBreakpoint, backdropBreakpoint } = opts;
|
|
@@ -7,7 +7,7 @@ import { clamp, raf, getElementRoot } from "../../../utils/helpers";
|
|
|
7
7
|
import { FOCUS_TRAP_DISABLE_CLASS } from "../../../utils/overlays";
|
|
8
8
|
import { getBackdropValueForSheet } from "../utils";
|
|
9
9
|
import { calculateSpringStep, handleCanDismiss } from "./utils";
|
|
10
|
-
export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [],
|
|
10
|
+
export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
|
|
11
11
|
// Defaults for the sheet swipe animation
|
|
12
12
|
const defaultBackdrop = [
|
|
13
13
|
{ offset: 0, opacity: 'var(--backdrop-opacity)' },
|
|
@@ -24,10 +24,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
24
24
|
{ offset: 1, transform: 'translateY(100%)' },
|
|
25
25
|
],
|
|
26
26
|
BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
|
|
27
|
-
CONTENT_KEYFRAMES: [
|
|
28
|
-
{ offset: 0, maxHeight: '100%' },
|
|
29
|
-
{ offset: 1, maxHeight: '0%' },
|
|
30
|
-
],
|
|
31
27
|
};
|
|
32
28
|
const contentEl = baseEl.querySelector('ion-content');
|
|
33
29
|
const height = wrapperEl.clientHeight;
|
|
@@ -35,11 +31,10 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
35
31
|
let offset = 0;
|
|
36
32
|
let canDismissBlocksGesture = false;
|
|
37
33
|
const canDismissMaxStep = 0.95;
|
|
38
|
-
const maxBreakpoint = breakpoints[breakpoints.length - 1];
|
|
39
|
-
const minBreakpoint = breakpoints[0];
|
|
40
34
|
const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
|
|
41
35
|
const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
|
|
42
|
-
const
|
|
36
|
+
const maxBreakpoint = breakpoints[breakpoints.length - 1];
|
|
37
|
+
const minBreakpoint = breakpoints[0];
|
|
43
38
|
const enableBackdrop = () => {
|
|
44
39
|
baseEl.style.setProperty('pointer-events', 'auto');
|
|
45
40
|
backdropEl.style.setProperty('pointer-events', 'auto');
|
|
@@ -62,31 +57,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
62
57
|
*/
|
|
63
58
|
baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
|
|
64
59
|
};
|
|
65
|
-
/**
|
|
66
|
-
* Toggles the visible modal footer when `expandToScroll` is disabled.
|
|
67
|
-
* @param footer The footer to show.
|
|
68
|
-
*/
|
|
69
|
-
const swapFooterVisibility = (footer) => {
|
|
70
|
-
const originalFooter = baseEl.querySelector('ion-footer');
|
|
71
|
-
if (!originalFooter) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const clonedFooter = wrapperEl.nextElementSibling;
|
|
75
|
-
const footerToHide = footer === 'original' ? clonedFooter : originalFooter;
|
|
76
|
-
const footerToShow = footer === 'original' ? originalFooter : clonedFooter;
|
|
77
|
-
footerToShow.style.removeProperty('display');
|
|
78
|
-
footerToShow.removeAttribute('aria-hidden');
|
|
79
|
-
const page = baseEl.querySelector('.ion-page');
|
|
80
|
-
if (footer === 'original') {
|
|
81
|
-
page.style.removeProperty('padding-bottom');
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
const pagePadding = footerToShow.clientHeight;
|
|
85
|
-
page.style.setProperty('padding-bottom', `${pagePadding}px`);
|
|
86
|
-
}
|
|
87
|
-
footerToHide.style.setProperty('display', 'none');
|
|
88
|
-
footerToHide.setAttribute('aria-hidden', 'true');
|
|
89
|
-
};
|
|
90
60
|
/**
|
|
91
61
|
* After the entering animation completes,
|
|
92
62
|
* we need to set the animation to go from
|
|
@@ -98,7 +68,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
98
68
|
if (wrapperAnimation && backdropAnimation) {
|
|
99
69
|
wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
|
|
100
70
|
backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
|
|
101
|
-
contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
|
|
102
71
|
animation.progressStart(true, 1 - currentBreakpoint);
|
|
103
72
|
/**
|
|
104
73
|
* If backdrop is not enabled, then content
|
|
@@ -115,7 +84,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
115
84
|
disableBackdrop();
|
|
116
85
|
}
|
|
117
86
|
}
|
|
118
|
-
if (contentEl && currentBreakpoint !== maxBreakpoint
|
|
87
|
+
if (contentEl && currentBreakpoint !== maxBreakpoint) {
|
|
119
88
|
contentEl.scrollY = false;
|
|
120
89
|
}
|
|
121
90
|
const canStart = (detail) => {
|
|
@@ -129,13 +98,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
129
98
|
*/
|
|
130
99
|
const contentEl = findClosestIonContent(detail.event.target);
|
|
131
100
|
currentBreakpoint = getCurrentBreakpoint();
|
|
132
|
-
/**
|
|
133
|
-
* If we have expandToScroll disabled, we should not allow the swipe gesture to start
|
|
134
|
-
* if the content is being swiped.
|
|
135
|
-
*/
|
|
136
|
-
if (!expandToScroll && contentEl) {
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
101
|
if (currentBreakpoint === 1 && contentEl) {
|
|
140
102
|
/**
|
|
141
103
|
* The modal should never swipe to close on the content with a refresher.
|
|
@@ -166,15 +128,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
166
128
|
* Remove undefined check
|
|
167
129
|
*/
|
|
168
130
|
canDismissBlocksGesture = baseEl.canDismiss !== undefined && baseEl.canDismiss !== true && minBreakpoint === 0;
|
|
169
|
-
/**
|
|
170
|
-
* If expandToScroll is disabled, we need to swap
|
|
171
|
-
* the footer visibility to the original, so if the modal
|
|
172
|
-
* is dismissed, the footer dismisses with the modal
|
|
173
|
-
* and doesn't stay on the screen after the modal is gone.
|
|
174
|
-
*/
|
|
175
|
-
if (!expandToScroll) {
|
|
176
|
-
swapFooterVisibility('original');
|
|
177
|
-
}
|
|
178
131
|
/**
|
|
179
132
|
* If we are pulling down, then it is possible we are pulling on the content.
|
|
180
133
|
* We do not want scrolling to happen at the same time as the gesture.
|
|
@@ -290,19 +243,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
290
243
|
opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
|
|
291
244
|
},
|
|
292
245
|
]);
|
|
293
|
-
if (contentAnimation) {
|
|
294
|
-
/**
|
|
295
|
-
* The modal content should scroll at any breakpoint when expandToScroll
|
|
296
|
-
* is disabled. In order to do this, the content needs to be completely
|
|
297
|
-
* viewable so scrolling can access everything. Otherwise, the default
|
|
298
|
-
* behavior would show the content off the screen and only allow
|
|
299
|
-
* scrolling when the sheet is fully expanded.
|
|
300
|
-
*/
|
|
301
|
-
contentAnimation.keyframes([
|
|
302
|
-
{ offset: 0, maxHeight: `${(1 - breakpointOffset) * 100}%` },
|
|
303
|
-
{ offset: 1, maxHeight: `${snapToBreakpoint * 100}%` },
|
|
304
|
-
]);
|
|
305
|
-
}
|
|
306
246
|
animation.progressStep(0);
|
|
307
247
|
}
|
|
308
248
|
/**
|
|
@@ -310,14 +250,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
310
250
|
* snapping animation completes.
|
|
311
251
|
*/
|
|
312
252
|
gesture.enable(false);
|
|
313
|
-
/**
|
|
314
|
-
* If expandToScroll is disabled, we need to swap
|
|
315
|
-
* the footer visibility to the cloned one so the footer
|
|
316
|
-
* doesn't flicker when the sheet's height is animated.
|
|
317
|
-
*/
|
|
318
|
-
if (!expandToScroll && shouldRemainOpen) {
|
|
319
|
-
swapFooterVisibility('cloned');
|
|
320
|
-
}
|
|
321
253
|
if (shouldPreventDismiss) {
|
|
322
254
|
handleCanDismiss(baseEl, animation);
|
|
323
255
|
}
|
|
@@ -325,13 +257,13 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
325
257
|
onDismiss();
|
|
326
258
|
}
|
|
327
259
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
* released, so we align with that
|
|
260
|
+
* If the sheet is going to be fully expanded then we should enable
|
|
261
|
+
* scrolling immediately. The sheet modal animation takes ~500ms to finish
|
|
262
|
+
* so if we wait until then there is a visible delay for when scrolling is
|
|
263
|
+
* re-enabled. Native iOS allows for scrolling on the sheet modal as soon
|
|
264
|
+
* as the gesture is released, so we align with that.
|
|
333
265
|
*/
|
|
334
|
-
if (contentEl &&
|
|
266
|
+
if (contentEl && snapToBreakpoint === breakpoints[breakpoints.length - 1]) {
|
|
335
267
|
contentEl.scrollY = true;
|
|
336
268
|
}
|
|
337
269
|
return new Promise((resolve) => {
|
|
@@ -349,7 +281,6 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
349
281
|
raf(() => {
|
|
350
282
|
wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
|
|
351
283
|
backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
|
|
352
|
-
contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
|
|
353
284
|
animation.progressStart(true, 1 - snapToBreakpoint);
|
|
354
285
|
currentBreakpoint = snapToBreakpoint;
|
|
355
286
|
onBreakpointChange(currentBreakpoint);
|
|
@@ -201,12 +201,6 @@ ion-backdrop {
|
|
|
201
201
|
bottom: 0;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
:host(.modal-sheet.modal-no-expand-scroll) ion-footer {
|
|
205
|
-
position: absolute;
|
|
206
|
-
bottom: 0;
|
|
207
|
-
width: var(--width);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
204
|
/**
|
|
211
205
|
* Convert a font size to a dynamic font size.
|
|
212
206
|
* Fonts that participate in Dynamic Type should use
|
|
@@ -331,14 +325,4 @@ ion-backdrop {
|
|
|
331
325
|
border-start-end-radius: var(--border-radius);
|
|
332
326
|
border-end-end-radius: 0;
|
|
333
327
|
border-end-start-radius: 0;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Sheet modals require an additional padding as mentioned in the
|
|
338
|
-
* `core.scss` file. However, there's a workaround that requires
|
|
339
|
-
* a cloned footer to be added to the modal. This is only necessary
|
|
340
|
-
* because the core styles are not being applied to the cloned footer.
|
|
341
|
-
*/
|
|
342
|
-
:host(.modal-sheet.modal-no-expand-scroll) ion-footer ion-toolbar:first-of-type {
|
|
343
|
-
padding-top: 6px;
|
|
344
328
|
}
|