@ionic/core 8.4.4-dev.11741136034.11909e03 → 8.4.4-dev.11741197052.19804443
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/alert.js +4 -25
- package/components/checkbox.js +6 -4
- package/components/index6.js +11 -3
- package/components/ion-input.js +2 -2
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +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 +2 -2
- 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 +43 -14
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +4 -4
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +6 -4
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/modal.js +259 -35
- 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 +39 -2
- 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-21dc0f81.js → data-108e531d.js} +1 -1
- package/dist/cjs/{index-1ae3f40a.js → index-0ff61d0b.js} +1 -1
- package/dist/cjs/{index-4e14a46e.js → index-26bb7e42.js} +3 -3
- package/dist/cjs/{index-5915f9b3.js → index-2a46a047.js} +11 -3
- package/dist/cjs/{index-c441c903.js → index-6770fc00.js} +1 -1
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{input-shims-e748a364.js → input-shims-fd997b01.js} +4 -2
- package/dist/cjs/{input.utils-74e4ec28.js → input.utils-c15a1814.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +2 -2
- package/dist/cjs/ion-alert.cjs.entry.js +6 -27
- package/dist/cjs/ion-app_8.cjs.entry.js +10 -10
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- 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 +6 -6
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-loading.cjs.entry.js +4 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +9 -9
- package/dist/cjs/ion-modal.cjs.entry.js +262 -39
- package/dist/cjs/ion-nav_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +5 -5
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +39 -4
- package/dist/cjs/ion-range.cjs.entry.js +5 -5
- package/dist/cjs/ion-refresher_2.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +3 -3
- package/dist/cjs/ion-select_3.cjs.entry.js +45 -17
- 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 +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- 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 +4 -4
- package/dist/cjs/ion-toggle.cjs.entry.js +5 -4
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-afdec89f.js → ios.transition-a4f35c55.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-9f0d3db5.js → md.transition-cdf904e6.js} +2 -2
- package/dist/cjs/{overlays-76b29cd4.js → overlays-86695cf1.js} +1 -1
- package/dist/cjs/{status-tap-fb807fad.js → status-tap-1a2485c1.js} +3 -2
- package/dist/collection/components/alert/alert.js +4 -29
- package/dist/collection/components/checkbox/checkbox.js +23 -4
- package/dist/collection/components/input/input.ios.css +3 -2
- package/dist/collection/components/input/input.md.css +7 -2
- 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 +50 -4
- package/dist/collection/components/modal/animations/ios.leave.js +24 -2
- package/dist/collection/components/modal/animations/md.enter.js +52 -5
- package/dist/collection/components/modal/animations/md.leave.js +26 -3
- package/dist/collection/components/modal/animations/sheet.js +11 -2
- package/dist/collection/components/modal/gestures/sheet.js +79 -10
- package/dist/collection/components/modal/modal.ios.css +16 -0
- package/dist/collection/components/modal/modal.js +32 -7
- package/dist/collection/components/modal/modal.md.css +6 -0
- 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.ios.css +205 -0
- package/dist/collection/components/radio-group/radio-group.js +72 -1
- package/dist/collection/components/radio-group/radio-group.md.css +205 -0
- 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 +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +59 -13
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.ios.css +3 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/textarea/textarea.md.css +7 -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 +23 -4
- package/dist/collection/components/toolbar/toolbar.js +6 -2
- package/dist/collection/utils/logging/index.js +10 -3
- package/dist/docs.json +163 -6
- package/dist/esm/{data-ae11fd43.js → data-b3284b5e.js} +1 -1
- package/dist/esm/{index-7ec5519a.js → index-6a5baab0.js} +3 -3
- package/dist/esm/{index-9b0d46f4.js → index-6ad967f3.js} +11 -3
- package/dist/esm/{index-8785a9c6.js → index-7105cd59.js} +1 -1
- package/dist/esm/{index-33f7e3ff.js → index-dd0f7395.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-shims-0e65111b.js → input-shims-dff819a9.js} +4 -2
- package/dist/esm/{input.utils-1ad8dafc.js → input.utils-2f1029cf.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +2 -2
- package/dist/esm/ion-alert.entry.js +6 -27
- package/dist/esm/ion-app_8.entry.js +10 -10
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +5 -4
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +7 -7
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- 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 +6 -6
- package/dist/esm/ion-item_8.entry.js +11 -11
- package/dist/esm/ion-loading.entry.js +4 -4
- package/dist/esm/ion-menu_3.entry.js +9 -9
- package/dist/esm/ion-modal.entry.js +262 -39
- package/dist/esm/ion-nav_2.entry.js +4 -4
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +5 -5
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +39 -4
- package/dist/esm/ion-range.entry.js +5 -5
- package/dist/esm/ion-refresher_2.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/ion-searchbar.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/ion-select-modal.entry.js +3 -3
- package/dist/esm/ion-select_3.entry.js +46 -18
- 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 +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- 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 +4 -4
- package/dist/esm/ion-toggle.entry.js +5 -4
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-085853ff.js → ios.transition-314468a2.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-33826623.js → md.transition-a560e0e2.js} +2 -2
- package/dist/esm/{overlays-e3d0d356.js → overlays-9a81f230.js} +1 -1
- package/dist/esm/{status-tap-163e8128.js → status-tap-d07dbc82.js} +3 -2
- package/dist/esm-es5/{data-ae11fd43.js → data-b3284b5e.js} +1 -1
- package/dist/esm-es5/{index-7ec5519a.js → index-6a5baab0.js} +1 -1
- package/dist/esm-es5/index-6ad967f3.js +4 -0
- package/dist/esm-es5/{index-8785a9c6.js → index-7105cd59.js} +1 -1
- package/dist/esm-es5/{index-33f7e3ff.js → index-dd0f7395.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-dff819a9.js +4 -0
- package/dist/esm-es5/{input.utils-1ad8dafc.js → input.utils-2f1029cf.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-button_2.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-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-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-085853ff.js → ios.transition-314468a2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-a560e0e2.js +4 -0
- package/dist/esm-es5/{overlays-e3d0d356.js → overlays-9a81f230.js} +1 -1
- package/dist/esm-es5/status-tap-d07dbc82.js +4 -0
- package/dist/html.html-data.json +24 -0
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-56da53ad.system.entry.js → p-00cb90b3.system.entry.js} +1 -1
- package/dist/ionic/p-02b44bd5.entry.js +4 -0
- package/dist/ionic/p-03a356dc.system.entry.js +4 -0
- package/dist/ionic/{p-7b96e5c1.system.entry.js → p-04db4253.system.entry.js} +1 -1
- package/dist/ionic/{p-e8232807.system.js → p-058e61eb.system.js} +1 -1
- package/dist/ionic/{p-83e68c71.entry.js → p-0f427d00.entry.js} +1 -1
- package/dist/ionic/p-116f21ad.entry.js +4 -0
- package/dist/ionic/p-155f4d90.entry.js +4 -0
- package/dist/ionic/{p-0c9b6d3a.system.entry.js → p-18e101b7.system.entry.js} +1 -1
- package/dist/ionic/{p-d60342e3.js → p-1a5bc5f7.js} +1 -1
- package/dist/ionic/{p-9be5f3ee.system.entry.js → p-1ce80097.system.entry.js} +2 -2
- package/dist/ionic/p-21227121.js +4 -0
- package/dist/ionic/p-22149a4f.js +4 -0
- package/dist/ionic/{p-d192fdf7.system.entry.js → p-240be0f1.system.entry.js} +1 -1
- package/dist/ionic/{p-3df889b3.system.entry.js → p-29a385ad.system.entry.js} +2 -2
- package/dist/ionic/{p-16799667.system.entry.js → p-2f43663c.system.entry.js} +1 -1
- package/dist/ionic/{p-b91acf8d.system.entry.js → p-303c49af.system.entry.js} +1 -1
- package/dist/ionic/{p-ffc48bc5.system.entry.js → p-31080bfd.system.entry.js} +1 -1
- package/dist/ionic/p-322c5fb4.system.js +1 -1
- package/dist/ionic/{p-f687573e.system.js → p-343b6b1d.system.js} +1 -1
- package/dist/ionic/p-346b2baf.js +4 -0
- package/dist/ionic/{p-45de8d2a.entry.js → p-36c448fe.entry.js} +1 -1
- package/dist/ionic/{p-42808996.js → p-39dd4f62.js} +1 -1
- package/dist/ionic/p-3b9baafd.system.entry.js +4 -0
- package/dist/ionic/{p-1bc65aec.system.entry.js → p-3bcd8164.system.entry.js} +1 -1
- package/dist/ionic/{p-c32644d7.entry.js → p-3fb3f2eb.entry.js} +1 -1
- package/dist/ionic/{p-6b1bd0c1.entry.js → p-4312277a.entry.js} +1 -1
- package/dist/ionic/{p-afecb188.entry.js → p-442e3021.entry.js} +1 -1
- package/dist/ionic/{p-424eb140.system.entry.js → p-468b7fe5.system.entry.js} +1 -1
- package/dist/ionic/p-478523e8.entry.js +4 -0
- package/dist/ionic/{p-561ddcd4.system.entry.js → p-484d855b.system.entry.js} +1 -1
- package/dist/ionic/{p-6d32975a.entry.js → p-48d2c8e3.entry.js} +1 -1
- package/dist/ionic/p-4a585ae0.entry.js +4 -0
- package/dist/ionic/{p-f5035354.js → p-4d3a5f86.js} +1 -1
- package/dist/ionic/{p-f301a694.system.entry.js → p-50446cd6.system.entry.js} +1 -1
- package/dist/ionic/{p-265939f0.entry.js → p-50f5686a.entry.js} +1 -1
- package/dist/ionic/p-52245809.js +4 -0
- package/dist/ionic/{p-70ccc275.system.entry.js → p-53bca196.system.entry.js} +2 -2
- package/dist/ionic/{p-a3c78186.system.entry.js → p-55a56913.system.entry.js} +1 -1
- package/dist/ionic/{p-5b932840.entry.js → p-571f7efd.entry.js} +1 -1
- package/dist/ionic/{p-1a790eef.system.js → p-578efda4.system.js} +2 -2
- package/dist/ionic/{p-7b98cebe.entry.js → p-5bc4e7d6.entry.js} +1 -1
- package/dist/ionic/p-5c9324c6.js +4 -0
- package/dist/ionic/{p-a4575db1.system.entry.js → p-6085ef7a.system.entry.js} +1 -1
- package/dist/ionic/{p-82b931e2.entry.js → p-608fb244.entry.js} +1 -1
- package/dist/ionic/{p-7458862e.system.entry.js → p-65493214.system.entry.js} +1 -1
- package/dist/ionic/{p-e8c3fb87.system.entry.js → p-655723eb.system.entry.js} +1 -1
- package/dist/ionic/{p-32e99b0a.entry.js → p-666c9334.entry.js} +1 -1
- package/dist/ionic/p-67222c16.system.js +4 -0
- package/dist/ionic/{p-203633d1.entry.js → p-70af0afb.entry.js} +1 -1
- package/dist/ionic/p-712fedc9.entry.js +4 -0
- package/dist/ionic/{p-aa63b365.system.js → p-73897169.system.js} +1 -1
- package/dist/ionic/{p-e97a3f44.entry.js → p-7417fa0d.entry.js} +1 -1
- package/dist/ionic/{p-95775830.entry.js → p-7d6d8f1f.entry.js} +1 -1
- package/dist/ionic/{p-4c252070.entry.js → p-83f37f5a.entry.js} +1 -1
- package/dist/ionic/{p-77e7b7b6.system.entry.js → p-850cf316.system.entry.js} +1 -1
- package/dist/ionic/{p-a2b6dd57.system.js → p-860eb968.system.js} +1 -1
- package/dist/ionic/{p-da074ff7.entry.js → p-89bf08c7.entry.js} +1 -1
- package/dist/ionic/{p-c29f8157.system.entry.js → p-8cfba7e9.system.entry.js} +1 -1
- package/dist/ionic/{p-af09741c.entry.js → p-8d76f65b.entry.js} +1 -1
- package/dist/ionic/{p-340e3f24.system.js → p-8e407469.system.js} +1 -1
- package/dist/ionic/{p-0397811d.entry.js → p-913c767b.entry.js} +1 -1
- package/dist/ionic/{p-2507278c.system.entry.js → p-9659caca.system.entry.js} +1 -1
- package/dist/ionic/p-98d22c76.entry.js +4 -0
- package/dist/ionic/{p-13dc21b0.js → p-990630ca.js} +1 -1
- package/dist/ionic/p-9a100adc.entry.js +4 -0
- package/dist/ionic/{p-1bbe8665.system.entry.js → p-9d533d0f.system.entry.js} +2 -2
- package/dist/ionic/{p-df862603.entry.js → p-9fb84718.entry.js} +1 -1
- package/dist/ionic/p-a1eec999.entry.js +4 -0
- package/dist/ionic/{p-4346c79d.system.entry.js → p-a4681756.system.entry.js} +1 -1
- package/dist/ionic/{p-9a1f985d.system.entry.js → p-a4b99077.system.entry.js} +1 -1
- package/dist/ionic/{p-9eee4de1.system.js → p-acb30a5c.system.js} +1 -1
- package/dist/ionic/{p-48a8d9b4.system.entry.js → p-acc8399c.system.entry.js} +2 -2
- package/dist/ionic/{p-41780810.entry.js → p-ad64ea6c.entry.js} +1 -1
- package/dist/ionic/{p-881d9e52.system.js → p-af452fa4.system.js} +1 -1
- package/dist/ionic/{p-91f17b25.system.entry.js → p-af744710.system.entry.js} +2 -2
- package/dist/ionic/{p-e2e19375.system.entry.js → p-b6480b77.system.entry.js} +1 -1
- package/dist/ionic/p-b936eb7e.system.entry.js +4 -0
- package/dist/ionic/{p-57379000.entry.js → p-bc616455.entry.js} +1 -1
- package/dist/ionic/{p-26194519.entry.js → p-c06eeace.entry.js} +1 -1
- package/dist/ionic/{p-2abae1cc.system.entry.js → p-c078a25d.system.entry.js} +1 -1
- package/dist/ionic/p-c3802319.system.js +4 -0
- package/dist/ionic/{p-e1bbacb7.entry.js → p-c41319f5.entry.js} +1 -1
- package/dist/ionic/{p-02e23f26.entry.js → p-c41bfec3.entry.js} +1 -1
- package/dist/ionic/p-c5d5571d.system.entry.js +4 -0
- package/dist/ionic/{p-76446a85.entry.js → p-c68aa784.entry.js} +1 -1
- package/dist/ionic/p-c71ccf01.entry.js +4 -0
- package/dist/ionic/{p-92365bc1.system.entry.js → p-c905c1b6.system.entry.js} +1 -1
- package/dist/ionic/{p-02e1ebd9.js → p-c935cfc9.js} +1 -1
- package/dist/ionic/{p-73dc4950.entry.js → p-d12c8b7c.entry.js} +1 -1
- package/dist/ionic/{p-2ef3c7ee.system.entry.js → p-d5356f93.system.entry.js} +1 -1
- package/dist/ionic/{p-14143257.entry.js → p-d7bb5325.entry.js} +1 -1
- package/dist/ionic/{p-3572f86a.system.entry.js → p-d821466d.system.entry.js} +1 -1
- package/dist/ionic/{p-ed75fcfb.system.entry.js → p-d8a385f2.system.entry.js} +1 -1
- package/dist/ionic/{p-c1b51537.system.js → p-d99e8644.system.js} +1 -1
- package/dist/ionic/p-dcb3d82e.entry.js +4 -0
- package/dist/ionic/{p-d06601eb.system.entry.js → p-e2276d6e.system.entry.js} +1 -1
- package/dist/ionic/{p-3eaf1444.system.entry.js → p-e32557bb.system.entry.js} +1 -1
- package/dist/ionic/{p-f78af648.system.entry.js → p-e8c718c9.system.entry.js} +1 -1
- package/dist/ionic/p-e8d56122.js +4 -0
- package/dist/ionic/{p-fca6ef5f.system.entry.js → p-ed059cb7.system.entry.js} +1 -1
- package/dist/ionic/p-efe06d98.entry.js +4 -0
- package/dist/ionic/{p-62af944c.entry.js → p-f200c0f2.entry.js} +1 -1
- package/dist/ionic/{p-f42743d1.entry.js → p-f5d6624d.entry.js} +1 -1
- package/dist/ionic/{p-e308de5b.system.js → p-fbf86e62.system.js} +1 -1
- package/dist/ionic/{p-f2b8c349.system.entry.js → p-fd6967d6.system.entry.js} +1 -1
- package/dist/ionic/{p-57ceead7.entry.js → p-ff99d51d.entry.js} +1 -1
- package/dist/ionic/{p-2515cb4d.system.entry.js → p-ffeacdf4.system.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +6 -0
- package/dist/types/components/modal/animations/sheet.d.ts +1 -0
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/modal-interface.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +11 -0
- package/dist/types/components/radio-group/radio-group.d.ts +15 -0
- package/dist/types/components/select/select.d.ts +6 -0
- package/dist/types/components/toggle/toggle.d.ts +6 -0
- package/dist/types/components/toolbar/toolbar.d.ts +4 -0
- package/dist/types/components.d.ts +48 -0
- package/dist/types/utils/config.d.ts +9 -0
- package/dist/types/utils/logging/index.d.ts +13 -1
- package/hydrate/index.js +457 -174
- package/hydrate/index.mjs +457 -174
- package/package.json +1 -1
- package/dist/esm-es5/index-9b0d46f4.js +0 -4
- package/dist/esm-es5/input-shims-0e65111b.js +0 -4
- package/dist/esm-es5/md.transition-33826623.js +0 -4
- package/dist/esm-es5/status-tap-163e8128.js +0 -4
- package/dist/ionic/p-06fee233.js +0 -4
- package/dist/ionic/p-075a94bd.js +0 -4
- package/dist/ionic/p-0a59f4fa.entry.js +0 -4
- package/dist/ionic/p-0e43be1b.entry.js +0 -4
- package/dist/ionic/p-0ee3b5a2.system.js +0 -4
- package/dist/ionic/p-135e5731.js +0 -4
- package/dist/ionic/p-14be4015.entry.js +0 -4
- package/dist/ionic/p-162c8d0c.system.entry.js +0 -4
- package/dist/ionic/p-16bfb979.system.entry.js +0 -4
- package/dist/ionic/p-25fa1d30.system.entry.js +0 -4
- package/dist/ionic/p-2c8798d0.entry.js +0 -4
- package/dist/ionic/p-49a0e74c.entry.js +0 -4
- package/dist/ionic/p-4e131759.entry.js +0 -4
- package/dist/ionic/p-51dec25d.js +0 -4
- package/dist/ionic/p-5cde8ef3.entry.js +0 -4
- package/dist/ionic/p-6190d0d6.entry.js +0 -4
- package/dist/ionic/p-61d044b4.entry.js +0 -4
- package/dist/ionic/p-68dc53a5.js +0 -4
- package/dist/ionic/p-803f0bc2.entry.js +0 -4
- package/dist/ionic/p-8a836849.entry.js +0 -4
- package/dist/ionic/p-b7433d7d.js +0 -4
- package/dist/ionic/p-cc700b6b.entry.js +0 -4
- package/dist/ionic/p-e265ae18.system.entry.js +0 -4
- package/dist/ionic/p-ff4b7e40.system.js +0 -4
|
@@ -311,6 +311,7 @@
|
|
|
311
311
|
justify-content: space-between;
|
|
312
312
|
border-top: var(--border-width) var(--border-style) var(--border-color);
|
|
313
313
|
font-size: 0.75rem;
|
|
314
|
+
white-space: normal;
|
|
314
315
|
}
|
|
315
316
|
|
|
316
317
|
/**
|
|
@@ -340,7 +341,7 @@
|
|
|
340
341
|
|
|
341
342
|
.input-bottom .helper-text {
|
|
342
343
|
display: block;
|
|
343
|
-
color: var(--ion-color-step-
|
|
344
|
+
color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
|
|
344
345
|
}
|
|
345
346
|
|
|
346
347
|
:host(.ion-touched.ion-invalid) .input-bottom .error-text {
|
|
@@ -359,7 +360,7 @@
|
|
|
359
360
|
*/
|
|
360
361
|
-webkit-margin-start: auto;
|
|
361
362
|
margin-inline-start: auto;
|
|
362
|
-
color: var(--ion-color-step-
|
|
363
|
+
color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
|
|
363
364
|
white-space: nowrap;
|
|
364
365
|
padding-inline-start: 16px;
|
|
365
366
|
}
|
|
@@ -799,6 +800,10 @@
|
|
|
799
800
|
--border-color: var(--highlight-color);
|
|
800
801
|
}
|
|
801
802
|
|
|
803
|
+
/**
|
|
804
|
+
* The bottom content should never have
|
|
805
|
+
* a border with the solid style.
|
|
806
|
+
*/
|
|
802
807
|
:host(.input-fill-solid) .input-bottom {
|
|
803
808
|
border-top: none;
|
|
804
809
|
}
|
|
@@ -18,11 +18,11 @@ export class ItemDivider {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const mode = getIonMode(this);
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '7cb307fb16d74eac6138460aad469d8aa2cb44aa', class: createColorClasses(this.color, {
|
|
22
22
|
[mode]: true,
|
|
23
23
|
'item-divider-sticky': this.sticky,
|
|
24
24
|
item: true,
|
|
25
|
-
}) }, h("slot", { key: '
|
|
25
|
+
}) }, h("slot", { key: '0f3e94dfa849350b9863d7fc4b68cb5cf1b3e205', name: "start" }), h("div", { key: '3a806bbd2a569890a91c54fec6fe9cd6e69ec924', class: "item-divider-inner" }, h("div", { key: '41df8574ba468669dd136a282195f281c4d181ff', class: "item-divider-wrapper" }, h("slot", { key: '1e30568d695bc42595a71232a1baac6d9e8a598d' })), h("slot", { key: '6f8e6b6fb3216bb1f1ac738931e3ba16654ca8d7', name: "end" }))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "ion-item-divider"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ import { getIonMode } from "../../global/ionic-global";
|
|
|
6
6
|
export class ItemGroup {
|
|
7
7
|
render() {
|
|
8
8
|
const mode = getIonMode(this);
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'a95b74fed5ce0888eca195ed718f7bfaa53fa86c', role: "group", class: {
|
|
10
10
|
[mode]: true,
|
|
11
11
|
// Used internally for styling
|
|
12
12
|
[`item-group-${mode}`]: true,
|
|
@@ -44,12 +44,12 @@ export class ItemOption {
|
|
|
44
44
|
href: this.href,
|
|
45
45
|
target: this.target,
|
|
46
46
|
};
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'a5acf613ba8d0906abfb08a5865df845f7c82373', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
48
48
|
[mode]: true,
|
|
49
49
|
'item-option-disabled': disabled,
|
|
50
50
|
'item-option-expandable': expandable,
|
|
51
51
|
'ion-activatable': true,
|
|
52
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
52
|
+
}) }, h(TagType, Object.assign({ key: 'cc0100d587cc4ba680d926d4754511c40a7b41be' }, attrs, { class: "button-native", part: "native", disabled: disabled }), h("span", { key: 'bf2409257aec9994e5dd8e31ec40ada61970dd46', class: "button-inner" }, h("slot", { key: 'c8cc3a3ffa5d586978860c3a6744232d8cb209c8', name: "top" }), h("div", { key: '09fd76f4e25bb174540c68e67617b1676ea3039a', class: "horizontal-wrapper" }, h("slot", { key: 'c9228eb1219a3130825bce989fb9ed40f3b4060b', name: "start" }), h("slot", { key: '5afa4950062d8dafbe07073ecb49a3f3bb9ef840', name: "icon-only" }), h("slot", { key: '25a2b5c35c83e617cfeba3d261c00505af5eb10c' }), h("slot", { key: 'ac11cc02e44a335288d8f7d8ad4a7f09156f57b8', name: "end" })), h("slot", { key: '45b086ba9a8ba1ee3e8f2f1b581120cabca80dc4', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", { key: '4def7e98ac861c98da78e3b47c9cdb17f1126a68' }))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "ion-item-option"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,7 +17,7 @@ export class ItemOptions {
|
|
|
17
17
|
render() {
|
|
18
18
|
const mode = getIonMode(this);
|
|
19
19
|
const isEnd = isEndSide(this.side);
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'e73d542ea800d953373c478b287f90bac63c4a29', class: {
|
|
21
21
|
[mode]: true,
|
|
22
22
|
// Used internally for styling
|
|
23
23
|
[`item-options-${mode}`]: true,
|
|
@@ -386,7 +386,7 @@ export class ItemSliding {
|
|
|
386
386
|
}
|
|
387
387
|
render() {
|
|
388
388
|
const mode = getIonMode(this);
|
|
389
|
-
return (h(Host, { key: '
|
|
389
|
+
return (h(Host, { key: 'b88f1f7cd0a5625dbccc0ee0f771c79a1338c5c8', class: {
|
|
390
390
|
[mode]: true,
|
|
391
391
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
392
392
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -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: 'aa8cda765cf7813b02adbc39cff7dec21fc2d730', 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: '297af5559f2ccb3b2d06ea00e074aa96c3e5235c' })));
|
|
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: 'f6e2de02ec55e3c64d129a52fb154e9d4e36ea98', class: createColorClasses(this.color, {
|
|
19
19
|
[mode]: true,
|
|
20
20
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
21
|
-
}) }, h("div", { key: '
|
|
21
|
+
}) }, h("div", { key: 'a38b47618205ccdd76bb8e406e37522b1c087780', class: "list-header-inner" }, h("slot", { key: '5afd06a7fbdf06bef5b7b27723515133fae66004' }))));
|
|
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: '016c85ddadecf0f7e50912d42301e2b4ba940709', 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: 'ffe727b8b32d635d21c625681b6048c42db9976b', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '0945a45abe13968854ead32235522a6f7d60ac28', tabindex: "0", "aria-hidden": "true" }), h("div", { key: '0c0fd2a371250e0b49781c76147ee7a9c455dc9b', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: 'f78773f16ae5fbfdc1c7a98d70ac8eb1f71c7526', class: "loading-spinner" }, h("ion-spinner", { key: '6381b30b3bde40f8bf39719f231679a72c2058ef', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '1d3ae05e6bb80756655c110c3332150c721963c3', 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: 'e67a2f0596e27d7ddf9ef4b65b14cc1b6d1572d2', 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: '976d3e7f93bc7946e835ddedc1645f2f83544c6c', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: 'e26aea346260736210604815139138f1c602add7' })), h("ion-backdrop", { key: '7d27b0d2f01b2bd3dc3b3342e79c9207c82b1356', 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: 'a2b925ae91161c18e95d2cb94f32ae7f9df60186', 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: '50335dd8aec7567cc9f7132a8583f3cd82398880' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), h("span", { key: '9f2ec8f6c7994c0fb5441ee104e42efde0795f38', class: "button-inner" }, h("slot", { key: '00c044e0a9fb96761e8cff59cd0dbf5e4440f8e9' }, h("ion-icon", { key: 'dc7c8c15f3a483c78dbf831dc9cd1bfd0c418ca2', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: '733f0a1e0d6a145cfe405b73ebc68e1b0522aca5', 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: 'bc1dfcc3a4d677e31d5b962567122c1912354dd3', 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: '4b2c290cbe8fd222249ea1e85c5f93fb9ab368f8' })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "ion-menu-toggle"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,22 +13,68 @@ 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, contentAnimation: undefined };
|
|
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 } = opts;
|
|
22
|
+
const { presentingEl, currentBreakpoint, expandToScroll } = opts;
|
|
23
23
|
const root = getElementRoot(baseEl);
|
|
24
|
-
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
|
|
24
|
+
const { wrapperAnimation, backdropAnimation, contentAnimation } = 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')));
|
|
27
30
|
const baseAnimation = createAnimation('entering-base')
|
|
28
31
|
.addElement(baseEl)
|
|
29
32
|
.easing('cubic-bezier(0.32,0.72,0,1)')
|
|
30
33
|
.duration(500)
|
|
31
|
-
.addAnimation(wrapperAnimation)
|
|
34
|
+
.addAnimation([wrapperAnimation])
|
|
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
|
+
}
|
|
32
78
|
if (presentingEl) {
|
|
33
79
|
const isMobile = window.innerWidth < 768;
|
|
34
80
|
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 } = opts;
|
|
17
|
+
const { presentingEl, currentBreakpoint, expandToScroll } = 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,7 +23,29 @@ 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)
|
|
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
|
+
});
|
|
27
49
|
if (presentingEl) {
|
|
28
50
|
const isMobile = window.innerWidth < 768;
|
|
29
51
|
const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
|
|
@@ -15,20 +15,67 @@ 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, contentAnimation: undefined };
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Md Modal Enter Animation
|
|
22
22
|
*/
|
|
23
23
|
export const mdEnterAnimation = (baseEl, opts) => {
|
|
24
|
-
const { currentBreakpoint } = opts;
|
|
24
|
+
const { currentBreakpoint, expandToScroll } = opts;
|
|
25
25
|
const root = getElementRoot(baseEl);
|
|
26
|
-
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
|
|
26
|
+
const { wrapperAnimation, backdropAnimation, contentAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
|
|
27
27
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
28
28
|
wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
|
|
29
|
-
|
|
29
|
+
// The content animation is only added if scrolling is enabled for
|
|
30
|
+
// all the breakpoints.
|
|
31
|
+
expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
|
|
32
|
+
const baseAnimation = createAnimation()
|
|
30
33
|
.addElement(baseEl)
|
|
31
34
|
.easing('cubic-bezier(0.36,0.66,0.04,1)')
|
|
32
35
|
.duration(280)
|
|
33
|
-
.addAnimation([backdropAnimation, wrapperAnimation])
|
|
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;
|
|
34
81
|
};
|
|
@@ -16,13 +16,36 @@ const createLeaveAnimation = () => {
|
|
|
16
16
|
* Md Modal Leave Animation
|
|
17
17
|
*/
|
|
18
18
|
export const mdLeaveAnimation = (baseEl, opts) => {
|
|
19
|
-
const { currentBreakpoint } = opts;
|
|
19
|
+
const { currentBreakpoint, expandToScroll } = 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
|
+
const baseAnimation = createAnimation()
|
|
25
25
|
.easing('cubic-bezier(0.47,0,0.745,0.715)')
|
|
26
26
|
.duration(200)
|
|
27
|
-
.addAnimation([backdropAnimation, wrapperAnimation])
|
|
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;
|
|
28
51
|
};
|
|
@@ -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 } = opts;
|
|
7
|
+
const { currentBreakpoint, backdropBreakpoint, expandToScroll } = 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,7 +24,16 @@ 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
|
-
|
|
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 };
|
|
28
37
|
};
|
|
29
38
|
export const createSheetLeaveAnimation = (opts) => {
|
|
30
39
|
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 = [], getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
|
|
10
|
+
export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], expandToScroll, getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
|
|
11
11
|
// Defaults for the sheet swipe animation
|
|
12
12
|
const defaultBackdrop = [
|
|
13
13
|
{ offset: 0, opacity: 'var(--backdrop-opacity)' },
|
|
@@ -24,6 +24,10 @@ 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
|
+
],
|
|
27
31
|
};
|
|
28
32
|
const contentEl = baseEl.querySelector('ion-content');
|
|
29
33
|
const height = wrapperEl.clientHeight;
|
|
@@ -31,10 +35,11 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
31
35
|
let offset = 0;
|
|
32
36
|
let canDismissBlocksGesture = false;
|
|
33
37
|
const canDismissMaxStep = 0.95;
|
|
34
|
-
const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
|
|
35
|
-
const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
|
|
36
38
|
const maxBreakpoint = breakpoints[breakpoints.length - 1];
|
|
37
39
|
const minBreakpoint = breakpoints[0];
|
|
40
|
+
const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
|
|
41
|
+
const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
|
|
42
|
+
const contentAnimation = animation.childAnimations.find((ani) => ani.id === 'contentAnimation');
|
|
38
43
|
const enableBackdrop = () => {
|
|
39
44
|
baseEl.style.setProperty('pointer-events', 'auto');
|
|
40
45
|
backdropEl.style.setProperty('pointer-events', 'auto');
|
|
@@ -57,6 +62,31 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
57
62
|
*/
|
|
58
63
|
baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
|
|
59
64
|
};
|
|
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
|
+
};
|
|
60
90
|
/**
|
|
61
91
|
* After the entering animation completes,
|
|
62
92
|
* we need to set the animation to go from
|
|
@@ -68,6 +98,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
68
98
|
if (wrapperAnimation && backdropAnimation) {
|
|
69
99
|
wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
|
|
70
100
|
backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
|
|
101
|
+
contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
|
|
71
102
|
animation.progressStart(true, 1 - currentBreakpoint);
|
|
72
103
|
/**
|
|
73
104
|
* If backdrop is not enabled, then content
|
|
@@ -84,7 +115,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
84
115
|
disableBackdrop();
|
|
85
116
|
}
|
|
86
117
|
}
|
|
87
|
-
if (contentEl && currentBreakpoint !== maxBreakpoint) {
|
|
118
|
+
if (contentEl && currentBreakpoint !== maxBreakpoint && expandToScroll) {
|
|
88
119
|
contentEl.scrollY = false;
|
|
89
120
|
}
|
|
90
121
|
const canStart = (detail) => {
|
|
@@ -98,6 +129,13 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
98
129
|
*/
|
|
99
130
|
const contentEl = findClosestIonContent(detail.event.target);
|
|
100
131
|
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
|
+
}
|
|
101
139
|
if (currentBreakpoint === 1 && contentEl) {
|
|
102
140
|
/**
|
|
103
141
|
* The modal should never swipe to close on the content with a refresher.
|
|
@@ -128,6 +166,15 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
128
166
|
* Remove undefined check
|
|
129
167
|
*/
|
|
130
168
|
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
|
+
}
|
|
131
178
|
/**
|
|
132
179
|
* If we are pulling down, then it is possible we are pulling on the content.
|
|
133
180
|
* We do not want scrolling to happen at the same time as the gesture.
|
|
@@ -243,6 +290,19 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
243
290
|
opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
|
|
244
291
|
},
|
|
245
292
|
]);
|
|
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
|
+
}
|
|
246
306
|
animation.progressStep(0);
|
|
247
307
|
}
|
|
248
308
|
/**
|
|
@@ -250,6 +310,14 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
250
310
|
* snapping animation completes.
|
|
251
311
|
*/
|
|
252
312
|
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
|
+
}
|
|
253
321
|
if (shouldPreventDismiss) {
|
|
254
322
|
handleCanDismiss(baseEl, animation);
|
|
255
323
|
}
|
|
@@ -257,13 +325,13 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
257
325
|
onDismiss();
|
|
258
326
|
}
|
|
259
327
|
/**
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
328
|
+
* Enables scrolling immediately if the sheet is about to fully expand
|
|
329
|
+
* or if it allows scrolling at any breakpoint. Without this, there would
|
|
330
|
+
* be a ~500ms delay while the modal animation completes, causing a
|
|
331
|
+
* noticeable lag. Native iOS allows scrolling as soon as the gesture is
|
|
332
|
+
* released, so we align with that behavior.
|
|
265
333
|
*/
|
|
266
|
-
if (contentEl && snapToBreakpoint === breakpoints[breakpoints.length - 1]) {
|
|
334
|
+
if (contentEl && (snapToBreakpoint === breakpoints[breakpoints.length - 1] || !expandToScroll)) {
|
|
267
335
|
contentEl.scrollY = true;
|
|
268
336
|
}
|
|
269
337
|
return new Promise((resolve) => {
|
|
@@ -281,6 +349,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
|
|
|
281
349
|
raf(() => {
|
|
282
350
|
wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
|
|
283
351
|
backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
|
|
352
|
+
contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
|
|
284
353
|
animation.progressStart(true, 1 - snapToBreakpoint);
|
|
285
354
|
currentBreakpoint = snapToBreakpoint;
|
|
286
355
|
onBreakpointChange(currentBreakpoint);
|