@ionic/core 8.4.4-dev.11741105335.1f4941f2 → 8.4.4-dev.11741193800.14916f6f
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 +0 -28
- package/components/index6.js +3 -11
- package/components/ion-select.js +4 -6
- package/components/ion-toggle.js +4 -6
- package/components/ionic-global.js +1 -12
- package/components/modal.js +35 -259
- package/components/toolbar.js +2 -2
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{app-globals-21afee77.js → app-globals-247c7281.js} +1 -1
- package/dist/cjs/{button-active-3f2f60b4.js → button-active-43e2b419.js} +1 -1
- package/dist/cjs/{data-108e531d.js → data-21dc0f81.js} +1 -1
- package/dist/cjs/{framework-delegate-05579976.js → framework-delegate-2a11ff27.js} +1 -1
- package/dist/cjs/{hardware-back-button-9e8a2c4f.js → hardware-back-button-25324112.js} +2 -2
- package/dist/cjs/{helpers-4be3f90d.js → helpers-06f744d7.js} +0 -28
- package/dist/cjs/{index-0ff61d0b.js → index-17772b90.js} +4 -4
- package/dist/cjs/{index-73f75efb.js → index-2e236a04.js} +0 -4
- package/dist/cjs/{index-6770fc00.js → index-5235cd7a.js} +2 -2
- package/dist/cjs/{index-2a46a047.js → index-5915f9b3.js} +3 -11
- package/dist/cjs/{index-26bb7e42.js → index-a9253094.js} +6 -6
- package/dist/cjs/{index-ad7a712e.js → index-d36529a6.js} +1 -1
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{input-shims-fd997b01.js → input-shims-a1181384.js} +3 -5
- package/dist/cjs/{input.utils-c15a1814.js → input.utils-693b953e.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -8
- package/dist/cjs/ion-alert.cjs.entry.js +8 -8
- package/dist/cjs/ion-app_8.cjs.entry.js +15 -15
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-back-button.cjs.entry.js +3 -3
- package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-button_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-card_5.cjs.entry.js +3 -3
- package/dist/cjs/ion-checkbox.cjs.entry.js +7 -8
- package/dist/cjs/ion-chip.cjs.entry.js +2 -2
- package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime-button.cjs.entry.js +5 -5
- package/dist/cjs/ion-datetime_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-fab_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-img.cjs.entry.js +3 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ion-input.cjs.entry.js +6 -6
- package/dist/cjs/ion-item-option_3.cjs.entry.js +5 -5
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +7 -7
- package/dist/cjs/ion-menu_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-modal.cjs.entry.js +44 -267
- 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 +3 -3
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +8 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-range.cjs.entry.js +5 -5
- 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 +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +3 -3
- package/dist/cjs/ion-searchbar.cjs.entry.js +3 -3
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-select-modal.cjs.entry.js +7 -7
- package/dist/cjs/ion-select_3.cjs.entry.js +12 -13
- package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +3 -3
- 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 +7 -7
- package/dist/cjs/ion-toggle.cjs.entry.js +7 -8
- package/dist/cjs/{ionic-global-d9a8bb5b.js → ionic-global-20cee824.js} +1 -12
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-a4f35c55.js → ios.transition-c3e3b768.js} +5 -5
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-cdf904e6.js → md.transition-91d9b2db.js} +5 -5
- package/dist/cjs/{notch-controller-a0c464d1.js → notch-controller-57bae241.js} +1 -1
- package/dist/cjs/{overlays-86695cf1.js → overlays-93c1a579.js} +5 -5
- package/dist/cjs/{status-tap-1a2485c1.js → status-tap-ede4c3df.js} +4 -5
- package/dist/cjs/{swipe-back-47a52b83.js → swipe-back-2aee5ac9.js} +1 -1
- package/dist/collection/components/checkbox/checkbox.js +4 -23
- 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/select/select.js +4 -23
- package/dist/collection/components/toggle/toggle.js +4 -23
- package/dist/collection/components/toolbar/toolbar.js +2 -6
- package/dist/collection/global/ionic-global.js +1 -12
- package/dist/collection/utils/helpers.js +0 -28
- package/dist/collection/utils/logging/index.js +3 -10
- package/dist/docs.json +2 -115
- package/dist/esm/{app-globals-5dbb61a5.js → app-globals-0aadb3a9.js} +1 -1
- package/dist/esm/{button-active-f6503382.js → button-active-90f1dbc4.js} +1 -1
- package/dist/esm/{data-b3284b5e.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{framework-delegate-f683816e.js → framework-delegate-3e745cc0.js} +1 -1
- package/dist/esm/{hardware-back-button-06ef3c3e.js → hardware-back-button-d58e8ab6.js} +2 -2
- package/dist/esm/{helpers-9b49d7d2.js → helpers-16b36a2b.js} +0 -28
- package/dist/esm/{index-5a0f5fd0.js → index-299c3a24.js} +1 -1
- package/dist/esm/{index-28849c61.js → index-527b9e34.js} +1 -4
- package/dist/esm/{index-6ad967f3.js → index-9b0d46f4.js} +3 -11
- package/dist/esm/{index-7105cd59.js → index-a94537d9.js} +4 -4
- package/dist/esm/{index-6a5baab0.js → index-ae5421cc.js} +6 -6
- package/dist/esm/{index-dd0f7395.js → index-d312d755.js} +2 -2
- package/dist/esm/index.js +11 -11
- package/dist/esm/{input-shims-dff819a9.js → input-shims-7761bb89.js} +3 -5
- package/dist/esm/{input.utils-2f1029cf.js → input.utils-005c974b.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +4 -4
- package/dist/esm/ion-action-sheet.entry.js +8 -8
- package/dist/esm/ion-alert.entry.js +8 -8
- package/dist/esm/ion-app_8.entry.js +15 -15
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-back-button.entry.js +3 -3
- package/dist/esm/ion-backdrop.entry.js +2 -2
- package/dist/esm/ion-breadcrumb_2.entry.js +3 -3
- package/dist/esm/ion-button_2.entry.js +4 -4
- package/dist/esm/ion-card_5.entry.js +3 -3
- package/dist/esm/ion-checkbox.entry.js +7 -8
- package/dist/esm/ion-chip.entry.js +2 -2
- package/dist/esm/ion-col_3.entry.js +2 -2
- package/dist/esm/ion-datetime-button.entry.js +5 -5
- package/dist/esm/ion-datetime_3.entry.js +8 -8
- package/dist/esm/ion-fab_3.entry.js +3 -3
- package/dist/esm/ion-img.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
- package/dist/esm/ion-input-password-toggle.entry.js +3 -3
- package/dist/esm/ion-input.entry.js +6 -6
- package/dist/esm/ion-item-option_3.entry.js +5 -5
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +7 -7
- package/dist/esm/ion-menu_3.entry.js +8 -8
- package/dist/esm/ion-modal.entry.js +44 -267
- 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 +3 -3
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +8 -8
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +3 -3
- package/dist/esm/ion-range.entry.js +5 -5
- 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 +2 -2
- package/dist/esm/ion-route_4.entry.js +3 -3
- package/dist/esm/ion-searchbar.entry.js +3 -3
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +3 -3
- package/dist/esm/ion-select-modal.entry.js +7 -7
- package/dist/esm/ion-select_3.entry.js +12 -13
- package/dist/esm/ion-spinner.entry.js +2 -2
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +3 -3
- 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 +7 -7
- package/dist/esm/ion-toggle.entry.js +7 -8
- package/dist/esm/{ionic-global-c81d82ab.js → ionic-global-33560a0a.js} +1 -12
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-314468a2.js → ios.transition-ee25fba4.js} +5 -5
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-a560e0e2.js → md.transition-76353fd3.js} +5 -5
- package/dist/esm/{notch-controller-3dc61260.js → notch-controller-b94a6b7b.js} +1 -1
- package/dist/esm/{overlays-9a81f230.js → overlays-87b6aa7c.js} +5 -5
- package/dist/esm/{status-tap-d07dbc82.js → status-tap-c5dd83b2.js} +4 -5
- package/dist/esm/{swipe-back-23ee7ab1.js → swipe-back-6e381b00.js} +1 -1
- package/dist/esm-es5/app-globals-0aadb3a9.js +4 -0
- package/dist/esm-es5/{button-active-f6503382.js → button-active-90f1dbc4.js} +1 -1
- package/dist/esm-es5/{data-b3284b5e.js → data-ae11fd43.js} +1 -1
- package/dist/esm-es5/{framework-delegate-f683816e.js → framework-delegate-3e745cc0.js} +1 -1
- package/dist/esm-es5/{hardware-back-button-06ef3c3e.js → hardware-back-button-d58e8ab6.js} +1 -1
- package/dist/esm-es5/helpers-16b36a2b.js +4 -0
- package/dist/esm-es5/{index-5a0f5fd0.js → index-299c3a24.js} +1 -1
- package/dist/esm-es5/index-527b9e34.js +5 -0
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/{index-7105cd59.js → index-a94537d9.js} +1 -1
- package/dist/esm-es5/{index-6a5baab0.js → index-ae5421cc.js} +1 -1
- package/dist/esm-es5/{index-dd0f7395.js → index-d312d755.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-7761bb89.js +4 -0
- package/dist/esm-es5/{input.utils-2f1029cf.js → input.utils-005c974b.js} +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-card_5.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-col_3.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
- package/dist/esm-es5/ion-picker-column.entry.js +1 -1
- package/dist/esm-es5/ion-picker.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic-global-33560a0a.js +4 -0
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-314468a2.js → ios.transition-ee25fba4.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/md.transition-76353fd3.js +4 -0
- package/dist/esm-es5/{notch-controller-3dc61260.js → notch-controller-b94a6b7b.js} +1 -1
- package/dist/esm-es5/{overlays-9a81f230.js → overlays-87b6aa7c.js} +1 -1
- package/dist/esm-es5/status-tap-c5dd83b2.js +4 -0
- package/dist/esm-es5/{swipe-back-23ee7ab1.js → swipe-back-6e381b00.js} +1 -1
- package/dist/html.html-data.json +0 -16
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/p-030bbd88.entry.js +4 -0
- package/dist/ionic/p-03417f7c.entry.js +4 -0
- package/dist/ionic/p-0612c7c3.entry.js +4 -0
- package/dist/ionic/{p-65346408.system.entry.js → p-06260d68.system.entry.js} +1 -1
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/{p-73897169.system.js → p-07cf4028.system.js} +1 -1
- package/dist/ionic/{p-18e101b7.system.entry.js → p-08409995.system.entry.js} +2 -2
- package/dist/ionic/{p-acb30a5c.system.js → p-09aa088e.system.js} +1 -1
- package/dist/ionic/p-0a47a1fb.entry.js +4 -0
- package/dist/ionic/{p-e8f34871.entry.js → p-0e2aaf53.entry.js} +1 -1
- package/dist/ionic/p-1110d6ab.entry.js +4 -0
- package/dist/ionic/p-14e6a33e.entry.js +4 -0
- package/dist/ionic/{p-5010643d.system.entry.js → p-15ca0b12.system.entry.js} +1 -1
- package/dist/ionic/{p-5fe8b767.entry.js → p-17088ca0.entry.js} +1 -1
- package/dist/ionic/{p-39dd4f62.js → p-1828fde5.js} +1 -1
- package/dist/ionic/{p-a584c79d.system.entry.js → p-1a2a0488.system.entry.js} +1 -1
- package/dist/ionic/p-1e0ee321.entry.js +4 -0
- package/dist/ionic/{p-e2e19375.system.entry.js → p-1fa70a4d.system.entry.js} +1 -1
- package/dist/ionic/p-1fadb8b9.js +4 -0
- package/dist/ionic/{p-4452a8ac.system.js → p-1fed4470.system.js} +1 -1
- package/dist/ionic/{p-69066a53.js → p-21891ead.js} +1 -1
- package/dist/ionic/p-235edda0.entry.js +4 -0
- package/dist/ionic/p-248ff024.system.js +4 -0
- package/dist/ionic/{p-7458862e.system.entry.js → p-2664778b.system.entry.js} +1 -1
- package/dist/ionic/{p-7ae680ba.system.entry.js → p-2b595f52.system.entry.js} +1 -1
- package/dist/ionic/p-2bc0c8cf.entry.js +4 -0
- package/dist/ionic/{p-77e7b7b6.system.entry.js → p-2be04f09.system.entry.js} +1 -1
- package/dist/ionic/{p-afecb188.entry.js → p-2fa83e88.entry.js} +1 -1
- package/dist/ionic/p-32ab7c59.entry.js +4 -0
- package/dist/ionic/{p-990630ca.js → p-37c85d40.js} +1 -1
- package/dist/ionic/p-39f6077e.js +4 -0
- package/dist/ionic/{p-058e61eb.system.js → p-3a993e5c.system.js} +1 -1
- package/dist/ionic/{p-2c9eb774.system.js → p-41dc2b36.system.js} +1 -1
- package/dist/ionic/{p-c8d645b3.entry.js → p-48e13c51.entry.js} +1 -1
- package/dist/ionic/{p-92365bc1.system.entry.js → p-4b27d69d.system.entry.js} +1 -1
- package/dist/ionic/p-4b4d1f73.entry.js +4 -0
- package/dist/ionic/{p-af452fa4.system.js → p-4ba8de87.system.js} +1 -1
- package/dist/ionic/{p-e32557bb.system.entry.js → p-4bcc2581.system.entry.js} +1 -1
- package/dist/ionic/{p-73dc4950.entry.js → p-4cfb0dc8.entry.js} +1 -1
- package/dist/ionic/{p-76446a85.entry.js → p-4ea83104.entry.js} +1 -1
- package/dist/ionic/{p-a9e24ae2.system.entry.js → p-50eb95ba.system.entry.js} +1 -1
- package/dist/ionic/{p-0eb2553a.system.entry.js → p-5216f047.system.entry.js} +1 -1
- package/dist/ionic/p-5406a48a.system.entry.js +4 -0
- package/dist/ionic/p-5430a6da.entry.js +4 -0
- package/dist/ionic/{p-5126cf1e.system.js → p-56358500.system.js} +1 -1
- package/dist/ionic/{p-860eb968.system.js → p-57de65cb.system.js} +1 -1
- package/dist/ionic/p-5b73e74c.js +4 -0
- package/dist/ionic/{p-155c2bb0.entry.js → p-5f8c7f64.entry.js} +1 -1
- package/dist/ionic/p-5faf0879.js +4 -0
- package/dist/ionic/p-60666514.entry.js +4 -0
- package/dist/ionic/p-61153ec9.entry.js +4 -0
- package/dist/ionic/{p-6d32975a.entry.js → p-644cfb0d.entry.js} +1 -1
- package/dist/ionic/p-66a5d6a8.js +5 -0
- package/dist/ionic/{p-e5849f8d.entry.js → p-6724b6ce.entry.js} +1 -1
- package/dist/ionic/{p-95775830.entry.js → p-6752a057.entry.js} +1 -1
- package/dist/ionic/{p-5fce0c0b.system.entry.js → p-67d24f70.system.entry.js} +1 -1
- package/dist/ionic/{p-d821466d.system.entry.js → p-68327266.system.entry.js} +1 -1
- package/dist/ionic/{p-da8ef548.system.entry.js → p-685e9613.system.entry.js} +1 -1
- package/dist/ionic/{p-a5b31c0f.entry.js → p-695c3921.entry.js} +1 -1
- package/dist/ionic/{p-8cfba7e9.system.entry.js → p-6b0cbcc3.system.entry.js} +1 -1
- package/dist/ionic/p-6d11152f.entry.js +4 -0
- package/dist/ionic/{p-fbf86e62.system.js → p-6d969696.system.js} +1 -1
- package/dist/ionic/p-71062ade.system.js +4 -0
- package/dist/ionic/{p-70ccc275.system.entry.js → p-71235698.system.entry.js} +1 -1
- package/dist/ionic/{p-33a8a71b.entry.js → p-7341f38d.entry.js} +1 -1
- package/dist/ionic/{p-f56752be.system.entry.js → p-734de30f.system.entry.js} +1 -1
- package/dist/ionic/{p-df862603.entry.js → p-73d6a80d.entry.js} +1 -1
- package/dist/ionic/{p-4d413973.system.entry.js → p-741f94fe.system.entry.js} +1 -1
- package/dist/ionic/p-75098ab5.system.js +4 -0
- package/dist/ionic/{p-8e407469.system.js → p-7d2357da.system.js} +1 -1
- package/dist/ionic/{p-af744710.system.entry.js → p-80a4f5a4.system.entry.js} +1 -1
- package/dist/ionic/{p-fca6ef5f.system.entry.js → p-81a4c94d.system.entry.js} +1 -1
- package/dist/ionic/{p-f78af648.system.entry.js → p-82acef74.system.entry.js} +1 -1
- package/dist/ionic/{p-bdad26e3.entry.js → p-841c4879.entry.js} +1 -1
- package/dist/ionic/{p-2515cb4d.system.entry.js → p-8615796d.system.entry.js} +1 -1
- package/dist/ionic/{p-31a6efce.system.entry.js → p-86189afd.system.entry.js} +1 -1
- package/dist/ionic/{p-2ef3c7ee.system.entry.js → p-87570c71.system.entry.js} +1 -1
- package/dist/ionic/{p-d99e8644.system.js → p-89d3401f.system.js} +1 -1
- package/dist/ionic/{p-ecceeb90.js → p-8f6d68b7.js} +1 -1
- package/dist/ionic/{p-56da53ad.system.entry.js → p-8fdfd686.system.entry.js} +1 -1
- package/dist/ionic/p-93ce49e8.entry.js +4 -0
- package/dist/ionic/{p-4ad78edc.entry.js → p-93ee5b02.entry.js} +1 -1
- package/dist/ionic/{p-d1172fe3.system.entry.js → p-99e1fd04.system.entry.js} +1 -1
- package/dist/ionic/{p-af09741c.entry.js → p-9bcc9444.entry.js} +1 -1
- package/dist/ionic/{p-7a1766d6.js → p-9dfcac21.js} +1 -1
- package/dist/ionic/{p-d4ca0475.js → p-9f85d4b1.js} +1 -1
- package/dist/ionic/{p-dc146a2a.system.entry.js → p-a0a5c0db.system.entry.js} +1 -1
- package/dist/ionic/p-a25c4e5d.js +4 -0
- package/dist/ionic/{p-372ae7f4.system.js → p-a4866e3e.system.js} +1 -1
- package/dist/ionic/p-a8a9c283.system.js +4 -0
- package/dist/ionic/{p-0bfffa34.system.entry.js → p-a8ad56a5.system.entry.js} +1 -1
- package/dist/ionic/{p-9de5c787.entry.js → p-a9740e59.entry.js} +1 -1
- package/dist/ionic/{p-63c09585.system.entry.js → p-a9de8117.system.entry.js} +1 -1
- package/dist/ionic/{p-179bf9d1.system.entry.js → p-ad4cca47.system.entry.js} +1 -1
- package/dist/ionic/{p-93e3654c.system.entry.js → p-b17b56a9.system.entry.js} +1 -1
- package/dist/ionic/{p-6190d0d6.entry.js → p-b28ea018.entry.js} +1 -1
- package/dist/ionic/{p-8818edd8.entry.js → p-b36d1e39.entry.js} +1 -1
- package/dist/ionic/{p-c32644d7.entry.js → p-b480d2b1.entry.js} +1 -1
- package/dist/ionic/p-bd92a627.system.js +4 -0
- package/dist/ionic/p-be685cdb.entry.js +4 -0
- package/dist/ionic/{p-037fc3f3.entry.js → p-c172eb14.entry.js} +1 -1
- package/dist/ionic/{p-80c6d619.entry.js → p-c23b3d05.entry.js} +1 -1
- package/dist/ionic/p-c566c4ac.js +4 -0
- package/dist/ionic/{p-f89cf011.system.entry.js → p-c585a45f.system.entry.js} +1 -1
- package/dist/ionic/p-c89f0db9.entry.js +4 -0
- package/dist/ionic/{p-424eb140.system.entry.js → p-c8c27ae7.system.entry.js} +1 -1
- package/dist/ionic/{p-02e23f26.entry.js → p-c9f32d38.entry.js} +1 -1
- package/dist/ionic/{p-95da3ae2.system.js → p-caafaec4.system.js} +1 -1
- package/dist/ionic/{p-f301a694.system.entry.js → p-ced5d9b6.system.entry.js} +1 -1
- package/dist/ionic/{p-578efda4.system.js → p-d1410529.system.js} +2 -2
- package/dist/ionic/{p-dd0c9350.system.entry.js → p-d3bd54e1.system.entry.js} +1 -1
- package/dist/ionic/{p-1a5bc5f7.js → p-d60342e3.js} +1 -1
- package/dist/ionic/p-d6251c7e.system.entry.js +4 -0
- package/dist/ionic/{p-2abae1cc.system.entry.js → p-d7811e30.system.entry.js} +1 -1
- package/dist/ionic/{p-955c3eb8.entry.js → p-d7e6cd7e.entry.js} +1 -1
- package/dist/ionic/{p-89bf08c7.entry.js → p-da231185.entry.js} +1 -1
- package/dist/ionic/{p-97a65908.entry.js → p-dade2313.entry.js} +1 -1
- package/dist/ionic/{p-efbf5af5.system.entry.js → p-db8a02a0.system.entry.js} +1 -1
- package/dist/ionic/{p-16799667.system.entry.js → p-dbac4f3e.system.entry.js} +1 -1
- package/dist/ionic/{p-eeb5cb45.system.entry.js → p-e4c8444f.system.entry.js} +2 -2
- package/dist/ionic/{p-655723eb.system.entry.js → p-e4cc4565.system.entry.js} +1 -1
- package/dist/ionic/{p-acc8399c.system.entry.js → p-e5a3b38b.system.entry.js} +2 -2
- package/dist/ionic/p-e6e2ff13.entry.js +4 -0
- package/dist/ionic/{p-2507278c.system.entry.js → p-e78844bd.system.entry.js} +1 -1
- package/dist/ionic/{p-4d3a5f86.js → p-e9336870.js} +1 -1
- package/dist/ionic/{p-5b932840.entry.js → p-ecc26ede.entry.js} +1 -1
- package/dist/ionic/{p-346b2baf.js → p-ece761b3.js} +1 -1
- package/dist/ionic/{p-5882bffa.system.entry.js → p-ed1a1717.system.entry.js} +1 -1
- package/dist/ionic/{p-84d08aae.system.entry.js → p-ee7c3605.system.entry.js} +1 -1
- package/dist/ionic/{p-bc616455.entry.js → p-f0e14400.entry.js} +1 -1
- package/dist/ionic/p-f11a9436.system.js +5 -0
- package/dist/ionic/{p-484d855b.system.entry.js → p-f4af839e.system.entry.js} +2 -2
- package/dist/ionic/{p-343b6b1d.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/p-f70935ed.js +4 -0
- package/dist/ionic/{p-f3102647.system.entry.js → p-f93eb347.system.entry.js} +1 -1
- package/dist/ionic/{p-3c8e5c23.system.js → p-f99425b1.system.js} +1 -1
- package/dist/ionic/{p-62af944c.entry.js → p-fa8b0bbd.entry.js} +1 -1
- package/dist/ionic/{p-10327ad2.system.entry.js → p-faa24152.system.entry.js} +1 -1
- package/dist/ionic/{p-36c448fe.entry.js → p-fae7cdef.entry.js} +1 -1
- package/dist/ionic/{p-2bc73fb5.js → p-fb4ae485.js} +1 -1
- package/dist/ionic/{p-d7bb5325.entry.js → p-fbddd225.entry.js} +1 -1
- package/dist/ionic/{p-2cbe5399.entry.js → p-fc295a7f.entry.js} +1 -1
- package/dist/ionic/{p-ed75fcfb.system.entry.js → p-fd01cb8a.system.entry.js} +1 -1
- package/dist/ionic/p-fd579866.js +4 -0
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/ionic/{p-d743e981.js → p-ff861eb0.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/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 -32
- package/dist/types/utils/config.d.ts +0 -12
- package/dist/types/utils/logging/index.d.ts +1 -13
- package/hydrate/index.js +52 -320
- package/hydrate/index.mjs +52 -320
- package/package.json +2 -2
- package/dist/esm-es5/app-globals-5dbb61a5.js +0 -4
- package/dist/esm-es5/helpers-9b49d7d2.js +0 -4
- package/dist/esm-es5/index-28849c61.js +0 -5
- package/dist/esm-es5/index-6ad967f3.js +0 -4
- package/dist/esm-es5/input-shims-dff819a9.js +0 -4
- package/dist/esm-es5/ionic-global-c81d82ab.js +0 -4
- package/dist/esm-es5/md.transition-a560e0e2.js +0 -4
- package/dist/esm-es5/status-tap-d07dbc82.js +0 -4
- package/dist/ionic/p-0574e87e.js +0 -4
- package/dist/ionic/p-14be4015.entry.js +0 -4
- package/dist/ionic/p-155f4d90.entry.js +0 -4
- package/dist/ionic/p-16bfb979.system.entry.js +0 -4
- package/dist/ionic/p-1f405274.js +0 -4
- package/dist/ionic/p-21227121.js +0 -4
- package/dist/ionic/p-22149a4f.js +0 -4
- package/dist/ionic/p-25180df3.system.js +0 -5
- package/dist/ionic/p-265939f0.entry.js +0 -4
- package/dist/ionic/p-322c5fb4.system.js +0 -4
- package/dist/ionic/p-34479cfb.entry.js +0 -4
- package/dist/ionic/p-3e99e3e0.entry.js +0 -4
- package/dist/ionic/p-41780810.entry.js +0 -4
- package/dist/ionic/p-42c9deb1.entry.js +0 -4
- package/dist/ionic/p-49a0e74c.entry.js +0 -4
- package/dist/ionic/p-52245809.js +0 -4
- package/dist/ionic/p-5c9324c6.js +0 -4
- package/dist/ionic/p-67222c16.system.js +0 -4
- package/dist/ionic/p-70af0afb.entry.js +0 -4
- package/dist/ionic/p-712fedc9.entry.js +0 -4
- package/dist/ionic/p-72ec9a26.entry.js +0 -4
- package/dist/ionic/p-7b98cebe.entry.js +0 -4
- package/dist/ionic/p-9962f63f.entry.js +0 -4
- package/dist/ionic/p-9b3bb24e.entry.js +0 -4
- package/dist/ionic/p-9f3008d4.system.js +0 -4
- package/dist/ionic/p-a18470c6.entry.js +0 -4
- package/dist/ionic/p-a69b9fc5.system.js +0 -4
- package/dist/ionic/p-b3680e2f.system.js +0 -4
- package/dist/ionic/p-bb11d9fb.js +0 -4
- package/dist/ionic/p-bb2a6761.entry.js +0 -4
- package/dist/ionic/p-c3802319.system.js +0 -4
- package/dist/ionic/p-c935cfc9.js +0 -4
- package/dist/ionic/p-d836d43e.js +0 -5
- package/dist/ionic/p-e8d56122.js +0 -4
- package/dist/ionic/p-f2613334.system.entry.js +0 -4
- package/dist/ionic/p-f5d6624d.entry.js +0 -4
- package/dist/ionic/p-fca17935.entry.js +0 -4
- package/dist/ionic/p-fec13c57.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -2536,37 +2536,9 @@ const inheritAriaAttributes = (el, ignoreList) => {
|
|
|
2536
2536
|
return inheritAttributes$1(el, attributesToInherit);
|
|
2537
2537
|
};
|
|
2538
2538
|
const addEventListener$1 = (el, eventName, callback, opts) => {
|
|
2539
|
-
var _a;
|
|
2540
|
-
if (typeof window !== 'undefined') {
|
|
2541
|
-
const win = window;
|
|
2542
|
-
const config = (_a = win === null || win === void 0 ? void 0 : win.Ionic) === null || _a === void 0 ? void 0 : _a.config;
|
|
2543
|
-
if (config) {
|
|
2544
|
-
const ael = config.get('_ael');
|
|
2545
|
-
if (ael) {
|
|
2546
|
-
return ael(el, eventName, callback, opts);
|
|
2547
|
-
}
|
|
2548
|
-
else if (config._ael) {
|
|
2549
|
-
return config._ael(el, eventName, callback, opts);
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
2539
|
return el.addEventListener(eventName, callback, opts);
|
|
2554
2540
|
};
|
|
2555
2541
|
const removeEventListener = (el, eventName, callback, opts) => {
|
|
2556
|
-
var _a;
|
|
2557
|
-
if (typeof window !== 'undefined') {
|
|
2558
|
-
const win = window;
|
|
2559
|
-
const config = (_a = win === null || win === void 0 ? void 0 : win.Ionic) === null || _a === void 0 ? void 0 : _a.config;
|
|
2560
|
-
if (config) {
|
|
2561
|
-
const rel = config.get('_rel');
|
|
2562
|
-
if (rel) {
|
|
2563
|
-
return rel(el, eventName, callback, opts);
|
|
2564
|
-
}
|
|
2565
|
-
else if (config._rel) {
|
|
2566
|
-
return config._rel(el, eventName, callback, opts);
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
2542
|
return el.removeEventListener(eventName, callback, opts);
|
|
2571
2543
|
};
|
|
2572
2544
|
/**
|
|
@@ -3227,12 +3199,9 @@ let accordionIds = 0;
|
|
|
3227
3199
|
* @param message - The string message to be logged to the console.
|
|
3228
3200
|
*/
|
|
3229
3201
|
const printIonWarning = (message, ...params) => {
|
|
3230
|
-
|
|
3231
|
-
if (["WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
3232
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3233
|
-
}
|
|
3202
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3234
3203
|
};
|
|
3235
|
-
|
|
3204
|
+
/*
|
|
3236
3205
|
* Logs an error to the console with an Ionic prefix
|
|
3237
3206
|
* to indicate the library that is warning the developer.
|
|
3238
3207
|
*
|
|
@@ -3240,10 +3209,7 @@ const printIonWarning = (message, ...params) => {
|
|
|
3240
3209
|
* @param params - Additional arguments to supply to the console.error.
|
|
3241
3210
|
*/
|
|
3242
3211
|
const printIonError = (message, ...params) => {
|
|
3243
|
-
|
|
3244
|
-
if (["ERROR" /* LogLevel.ERROR */, "WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
3245
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3246
|
-
}
|
|
3212
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3247
3213
|
};
|
|
3248
3214
|
/**
|
|
3249
3215
|
* Prints an error informing developers that an implementation requires an element to be used
|
|
@@ -8507,7 +8473,6 @@ class Checkbox {
|
|
|
8507
8473
|
this.labelPlacement = 'start';
|
|
8508
8474
|
this.justify = undefined;
|
|
8509
8475
|
this.alignment = undefined;
|
|
8510
|
-
this.required = false;
|
|
8511
8476
|
}
|
|
8512
8477
|
componentWillLoad() {
|
|
8513
8478
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
@@ -8519,11 +8484,11 @@ class Checkbox {
|
|
|
8519
8484
|
}
|
|
8520
8485
|
}
|
|
8521
8486
|
render() {
|
|
8522
|
-
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment,
|
|
8487
|
+
const { color, checked, disabled, el, getSVGPath, indeterminate, inheritedAttributes, inputId, justify, labelPlacement, name, value, alignment, } = this;
|
|
8523
8488
|
const mode = getIonMode$1(this);
|
|
8524
8489
|
const path = getSVGPath(mode, indeterminate);
|
|
8525
8490
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
8526
|
-
return (hAsync(Host, { key: '
|
|
8491
|
+
return (hAsync(Host, { key: '6dc787e1100521d08c4900104e1a3e2f594e919f', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses$1(color, {
|
|
8527
8492
|
[mode]: true,
|
|
8528
8493
|
'in-item': hostContext('ion-item', el),
|
|
8529
8494
|
'checkbox-checked': checked,
|
|
@@ -8533,10 +8498,10 @@ class Checkbox {
|
|
|
8533
8498
|
[`checkbox-justify-${justify}`]: justify !== undefined,
|
|
8534
8499
|
[`checkbox-alignment-${alignment}`]: alignment !== undefined,
|
|
8535
8500
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
8536
|
-
}), onClick: this.onClick }, hAsync("label", { key: '
|
|
8501
|
+
}), onClick: this.onClick }, hAsync("label", { key: '68222fb736a5ec3f2e488649b0e2ce0417dcb224', class: "checkbox-wrapper" }, hAsync("input", Object.assign({ key: 'f12962d7e9b19c744cfdbdeccc67ae7f5d080281', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), hAsync("div", { key: 'c72df2699414b1e5a41a1bc267bc634f0c93dcff', class: {
|
|
8537
8502
|
'label-text-wrapper': true,
|
|
8538
8503
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
8539
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
8504
|
+
}, part: "label" }, hAsync("slot", { key: 'a2a80285178a7e0e3b536fc9ca26b8b444aa4307' })), hAsync("div", { key: 'c2b05e0d1fe8df5dcd72858220b5ff51ecaee4cc', class: "native-wrapper" }, hAsync("svg", { key: 'ee24913fded72258ebd9713654a6dba92a18fcf7', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
|
|
8540
8505
|
}
|
|
8541
8506
|
getSVGPath(mode, indeterminate) {
|
|
8542
8507
|
let path = indeterminate ? (hAsync("path", { d: "M6 12L18 12", part: "mark" })) : (hAsync("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
@@ -8563,7 +8528,6 @@ class Checkbox {
|
|
|
8563
8528
|
"labelPlacement": [1, "label-placement"],
|
|
8564
8529
|
"justify": [1],
|
|
8565
8530
|
"alignment": [1],
|
|
8566
|
-
"required": [4],
|
|
8567
8531
|
"setFocus": [64]
|
|
8568
8532
|
},
|
|
8569
8533
|
"$listeners$": undefined,
|
|
@@ -19039,7 +19003,7 @@ const computeDuration = (remaining, velocity) => {
|
|
|
19039
19003
|
};
|
|
19040
19004
|
|
|
19041
19005
|
const createSheetEnterAnimation = (opts) => {
|
|
19042
|
-
const { currentBreakpoint, backdropBreakpoint
|
|
19006
|
+
const { currentBreakpoint, backdropBreakpoint } = opts;
|
|
19043
19007
|
/**
|
|
19044
19008
|
* If the backdropBreakpoint is undefined, then the backdrop
|
|
19045
19009
|
* should always fade in. If the backdropBreakpoint came before the
|
|
@@ -19059,16 +19023,7 @@ const createSheetEnterAnimation = (opts) => {
|
|
|
19059
19023
|
{ offset: 0, opacity: 1, transform: 'translateY(100%)' },
|
|
19060
19024
|
{ offset: 1, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
|
|
19061
19025
|
]);
|
|
19062
|
-
|
|
19063
|
-
* This allows the content to be scrollable at any breakpoint.
|
|
19064
|
-
*/
|
|
19065
|
-
const contentAnimation = !expandToScroll
|
|
19066
|
-
? createAnimation('contentAnimation').keyframes([
|
|
19067
|
-
{ offset: 0, opacity: 1, maxHeight: `${(1 - currentBreakpoint) * 100}%` },
|
|
19068
|
-
{ offset: 1, opacity: 1, maxHeight: `${currentBreakpoint * 100}%` },
|
|
19069
|
-
])
|
|
19070
|
-
: undefined;
|
|
19071
|
-
return { wrapperAnimation, backdropAnimation, contentAnimation };
|
|
19026
|
+
return { wrapperAnimation, backdropAnimation };
|
|
19072
19027
|
};
|
|
19073
19028
|
const createSheetLeaveAnimation = (opts) => {
|
|
19074
19029
|
const { currentBreakpoint, backdropBreakpoint } = opts;
|
|
@@ -19103,68 +19058,22 @@ const createEnterAnimation$1 = () => {
|
|
|
19103
19058
|
})
|
|
19104
19059
|
.afterClearStyles(['pointer-events']);
|
|
19105
19060
|
const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(100vh)', 'translateY(0vh)');
|
|
19106
|
-
return { backdropAnimation, wrapperAnimation
|
|
19061
|
+
return { backdropAnimation, wrapperAnimation };
|
|
19107
19062
|
};
|
|
19108
19063
|
/**
|
|
19109
19064
|
* iOS Modal Enter Animation for the Card presentation style
|
|
19110
19065
|
*/
|
|
19111
19066
|
const iosEnterAnimation$3 = (baseEl, opts) => {
|
|
19112
|
-
const { presentingEl, currentBreakpoint
|
|
19067
|
+
const { presentingEl, currentBreakpoint } = opts;
|
|
19113
19068
|
const root = getElementRoot(baseEl);
|
|
19114
|
-
const { wrapperAnimation, backdropAnimation
|
|
19069
|
+
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation$1();
|
|
19115
19070
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
19116
19071
|
wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
|
|
19117
|
-
// The content animation is only added if scrolling is enabled for
|
|
19118
|
-
// all the breakpoints.
|
|
19119
|
-
!expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
|
|
19120
19072
|
const baseAnimation = createAnimation('entering-base')
|
|
19121
19073
|
.addElement(baseEl)
|
|
19122
19074
|
.easing('cubic-bezier(0.32,0.72,0,1)')
|
|
19123
19075
|
.duration(500)
|
|
19124
|
-
.addAnimation(
|
|
19125
|
-
.beforeAddWrite(() => {
|
|
19126
|
-
if (expandToScroll) {
|
|
19127
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
19128
|
-
return;
|
|
19129
|
-
}
|
|
19130
|
-
/**
|
|
19131
|
-
* There are some browsers that causes flickering when
|
|
19132
|
-
* dragging the content when scroll is enabled at every
|
|
19133
|
-
* breakpoint. This is due to the wrapper element being
|
|
19134
|
-
* transformed off the screen and having a snap animation.
|
|
19135
|
-
*
|
|
19136
|
-
* A workaround is to clone the footer element and append
|
|
19137
|
-
* it outside of the wrapper element. This way, the footer
|
|
19138
|
-
* is still visible and the drag can be done without
|
|
19139
|
-
* flickering. The original footer is hidden until the modal
|
|
19140
|
-
* is dismissed. This maintains the animation of the footer
|
|
19141
|
-
* when the modal is dismissed.
|
|
19142
|
-
*
|
|
19143
|
-
* The workaround needs to be done before the animation starts
|
|
19144
|
-
* so there are no flickering issues.
|
|
19145
|
-
*/
|
|
19146
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
19147
|
-
/**
|
|
19148
|
-
* This check is needed to prevent more than one footer
|
|
19149
|
-
* from being appended to the shadow root.
|
|
19150
|
-
* Otherwise, iOS and MD enter animations would append
|
|
19151
|
-
* the footer twice.
|
|
19152
|
-
*/
|
|
19153
|
-
const ionFooterAlreadyAppended = baseEl.shadowRoot.querySelector('ion-footer');
|
|
19154
|
-
if (ionFooter && !ionFooterAlreadyAppended) {
|
|
19155
|
-
const footerHeight = ionFooter.clientHeight;
|
|
19156
|
-
const clonedFooter = ionFooter.cloneNode(true);
|
|
19157
|
-
baseEl.shadowRoot.appendChild(clonedFooter);
|
|
19158
|
-
ionFooter.style.setProperty('display', 'none');
|
|
19159
|
-
ionFooter.setAttribute('aria-hidden', 'true');
|
|
19160
|
-
// Padding is added to prevent some content from being hidden.
|
|
19161
|
-
const page = baseEl.querySelector('.ion-page');
|
|
19162
|
-
page.style.setProperty('padding-bottom', `${footerHeight}px`);
|
|
19163
|
-
}
|
|
19164
|
-
});
|
|
19165
|
-
if (contentAnimation) {
|
|
19166
|
-
baseAnimation.addAnimation(contentAnimation);
|
|
19167
|
-
}
|
|
19076
|
+
.addAnimation(wrapperAnimation);
|
|
19168
19077
|
if (presentingEl) {
|
|
19169
19078
|
const isMobile = window.innerWidth < 768;
|
|
19170
19079
|
const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
|
|
@@ -19242,7 +19151,7 @@ const createLeaveAnimation$1 = () => {
|
|
|
19242
19151
|
* iOS Modal Leave Animation
|
|
19243
19152
|
*/
|
|
19244
19153
|
const iosLeaveAnimation$3 = (baseEl, opts, duration = 500) => {
|
|
19245
|
-
const { presentingEl, currentBreakpoint
|
|
19154
|
+
const { presentingEl, currentBreakpoint } = opts;
|
|
19246
19155
|
const root = getElementRoot(baseEl);
|
|
19247
19156
|
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation$1();
|
|
19248
19157
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
@@ -19251,29 +19160,7 @@ const iosLeaveAnimation$3 = (baseEl, opts, duration = 500) => {
|
|
|
19251
19160
|
.addElement(baseEl)
|
|
19252
19161
|
.easing('cubic-bezier(0.32,0.72,0,1)')
|
|
19253
19162
|
.duration(duration)
|
|
19254
|
-
.addAnimation(wrapperAnimation)
|
|
19255
|
-
.beforeAddWrite(() => {
|
|
19256
|
-
if (expandToScroll) {
|
|
19257
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
19258
|
-
return;
|
|
19259
|
-
}
|
|
19260
|
-
/**
|
|
19261
|
-
* If expandToScroll is disabled, we need to swap
|
|
19262
|
-
* the visibility to the original, so the footer
|
|
19263
|
-
* dismisses with the modal and doesn't stay
|
|
19264
|
-
* until the modal is removed from the DOM.
|
|
19265
|
-
*/
|
|
19266
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
19267
|
-
if (ionFooter) {
|
|
19268
|
-
const clonedFooter = baseEl.shadowRoot.querySelector('ion-footer');
|
|
19269
|
-
ionFooter.style.removeProperty('display');
|
|
19270
|
-
ionFooter.removeAttribute('aria-hidden');
|
|
19271
|
-
clonedFooter.style.setProperty('display', 'none');
|
|
19272
|
-
clonedFooter.setAttribute('aria-hidden', 'true');
|
|
19273
|
-
const page = baseEl.querySelector('.ion-page');
|
|
19274
|
-
page.style.removeProperty('padding-bottom');
|
|
19275
|
-
}
|
|
19276
|
-
});
|
|
19163
|
+
.addAnimation(wrapperAnimation);
|
|
19277
19164
|
if (presentingEl) {
|
|
19278
19165
|
const isMobile = window.innerWidth < 768;
|
|
19279
19166
|
const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
|
|
@@ -19351,69 +19238,22 @@ const createEnterAnimation = () => {
|
|
|
19351
19238
|
{ offset: 0, opacity: 0.01, transform: 'translateY(40px)' },
|
|
19352
19239
|
{ offset: 1, opacity: 1, transform: `translateY(0px)` },
|
|
19353
19240
|
]);
|
|
19354
|
-
return { backdropAnimation, wrapperAnimation
|
|
19241
|
+
return { backdropAnimation, wrapperAnimation };
|
|
19355
19242
|
};
|
|
19356
19243
|
/**
|
|
19357
19244
|
* Md Modal Enter Animation
|
|
19358
19245
|
*/
|
|
19359
19246
|
const mdEnterAnimation$2 = (baseEl, opts) => {
|
|
19360
|
-
const { currentBreakpoint
|
|
19247
|
+
const { currentBreakpoint } = opts;
|
|
19361
19248
|
const root = getElementRoot(baseEl);
|
|
19362
|
-
const { wrapperAnimation, backdropAnimation
|
|
19249
|
+
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
|
|
19363
19250
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
19364
19251
|
wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
|
|
19365
|
-
|
|
19366
|
-
// all the breakpoints.
|
|
19367
|
-
expandToScroll && (contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.addElement(baseEl.querySelector('.ion-page')));
|
|
19368
|
-
const baseAnimation = createAnimation()
|
|
19252
|
+
return createAnimation()
|
|
19369
19253
|
.addElement(baseEl)
|
|
19370
19254
|
.easing('cubic-bezier(0.36,0.66,0.04,1)')
|
|
19371
19255
|
.duration(280)
|
|
19372
|
-
.addAnimation([backdropAnimation, wrapperAnimation])
|
|
19373
|
-
.beforeAddWrite(() => {
|
|
19374
|
-
if (expandToScroll) {
|
|
19375
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
19376
|
-
return;
|
|
19377
|
-
}
|
|
19378
|
-
/**
|
|
19379
|
-
* There are some browsers that causes flickering when
|
|
19380
|
-
* dragging the content when scroll is enabled at every
|
|
19381
|
-
* breakpoint. This is due to the wrapper element being
|
|
19382
|
-
* transformed off the screen and having a snap animation.
|
|
19383
|
-
*
|
|
19384
|
-
* A workaround is to clone the footer element and append
|
|
19385
|
-
* it outside of the wrapper element. This way, the footer
|
|
19386
|
-
* is still visible and the drag can be done without
|
|
19387
|
-
* flickering. The original footer is hidden until the modal
|
|
19388
|
-
* is dismissed. This maintains the animation of the footer
|
|
19389
|
-
* when the modal is dismissed.
|
|
19390
|
-
*
|
|
19391
|
-
* The workaround needs to be done before the animation starts
|
|
19392
|
-
* so there are no flickering issues.
|
|
19393
|
-
*/
|
|
19394
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
19395
|
-
/**
|
|
19396
|
-
* This check is needed to prevent more than one footer
|
|
19397
|
-
* from being appended to the shadow root.
|
|
19398
|
-
* Otherwise, iOS and MD enter animations would append
|
|
19399
|
-
* the footer twice.
|
|
19400
|
-
*/
|
|
19401
|
-
const ionFooterAlreadyAppended = baseEl.shadowRoot.querySelector('ion-footer');
|
|
19402
|
-
if (ionFooter && !ionFooterAlreadyAppended) {
|
|
19403
|
-
const footerHeight = ionFooter.clientHeight;
|
|
19404
|
-
const clonedFooter = ionFooter.cloneNode(true);
|
|
19405
|
-
baseEl.shadowRoot.appendChild(clonedFooter);
|
|
19406
|
-
ionFooter.style.setProperty('display', 'none');
|
|
19407
|
-
ionFooter.setAttribute('aria-hidden', 'true');
|
|
19408
|
-
// Padding is added to prevent some content from being hidden.
|
|
19409
|
-
const page = baseEl.querySelector('.ion-page');
|
|
19410
|
-
page.style.setProperty('padding-bottom', `${footerHeight}px`);
|
|
19411
|
-
}
|
|
19412
|
-
});
|
|
19413
|
-
if (contentAnimation) {
|
|
19414
|
-
baseAnimation.addAnimation(contentAnimation);
|
|
19415
|
-
}
|
|
19416
|
-
return baseAnimation;
|
|
19256
|
+
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
19417
19257
|
};
|
|
19418
19258
|
|
|
19419
19259
|
const createLeaveAnimation = () => {
|
|
@@ -19428,41 +19268,18 @@ const createLeaveAnimation = () => {
|
|
|
19428
19268
|
* Md Modal Leave Animation
|
|
19429
19269
|
*/
|
|
19430
19270
|
const mdLeaveAnimation$2 = (baseEl, opts) => {
|
|
19431
|
-
const { currentBreakpoint
|
|
19271
|
+
const { currentBreakpoint } = opts;
|
|
19432
19272
|
const root = getElementRoot(baseEl);
|
|
19433
19273
|
const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation();
|
|
19434
19274
|
backdropAnimation.addElement(root.querySelector('ion-backdrop'));
|
|
19435
19275
|
wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
|
|
19436
|
-
|
|
19276
|
+
return createAnimation()
|
|
19437
19277
|
.easing('cubic-bezier(0.47,0,0.745,0.715)')
|
|
19438
19278
|
.duration(200)
|
|
19439
|
-
.addAnimation([backdropAnimation, wrapperAnimation])
|
|
19440
|
-
.beforeAddWrite(() => {
|
|
19441
|
-
if (expandToScroll) {
|
|
19442
|
-
// Scroll can only be done when the modal is fully expanded.
|
|
19443
|
-
return;
|
|
19444
|
-
}
|
|
19445
|
-
/**
|
|
19446
|
-
* If expandToScroll is disabled, we need to swap
|
|
19447
|
-
* the visibility to the original, so the footer
|
|
19448
|
-
* dismisses with the modal and doesn't stay
|
|
19449
|
-
* until the modal is removed from the DOM.
|
|
19450
|
-
*/
|
|
19451
|
-
const ionFooter = baseEl.querySelector('ion-footer');
|
|
19452
|
-
if (ionFooter) {
|
|
19453
|
-
const clonedFooter = baseEl.shadowRoot.querySelector('ion-footer');
|
|
19454
|
-
ionFooter.style.removeProperty('display');
|
|
19455
|
-
ionFooter.removeAttribute('aria-hidden');
|
|
19456
|
-
clonedFooter.style.setProperty('display', 'none');
|
|
19457
|
-
clonedFooter.setAttribute('aria-hidden', 'true');
|
|
19458
|
-
const page = baseEl.querySelector('.ion-page');
|
|
19459
|
-
page.style.removeProperty('padding-bottom');
|
|
19460
|
-
}
|
|
19461
|
-
});
|
|
19462
|
-
return baseAnimation;
|
|
19279
|
+
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
19463
19280
|
};
|
|
19464
19281
|
|
|
19465
|
-
const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [],
|
|
19282
|
+
const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
|
|
19466
19283
|
// Defaults for the sheet swipe animation
|
|
19467
19284
|
const defaultBackdrop = [
|
|
19468
19285
|
{ offset: 0, opacity: 'var(--backdrop-opacity)' },
|
|
@@ -19479,10 +19296,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19479
19296
|
{ offset: 1, transform: 'translateY(100%)' },
|
|
19480
19297
|
],
|
|
19481
19298
|
BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
|
|
19482
|
-
CONTENT_KEYFRAMES: [
|
|
19483
|
-
{ offset: 0, maxHeight: '100%' },
|
|
19484
|
-
{ offset: 1, maxHeight: '0%' },
|
|
19485
|
-
],
|
|
19486
19299
|
};
|
|
19487
19300
|
const contentEl = baseEl.querySelector('ion-content');
|
|
19488
19301
|
const height = wrapperEl.clientHeight;
|
|
@@ -19490,11 +19303,10 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19490
19303
|
let offset = 0;
|
|
19491
19304
|
let canDismissBlocksGesture = false;
|
|
19492
19305
|
const canDismissMaxStep = 0.95;
|
|
19493
|
-
const maxBreakpoint = breakpoints[breakpoints.length - 1];
|
|
19494
|
-
const minBreakpoint = breakpoints[0];
|
|
19495
19306
|
const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
|
|
19496
19307
|
const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
|
|
19497
|
-
const
|
|
19308
|
+
const maxBreakpoint = breakpoints[breakpoints.length - 1];
|
|
19309
|
+
const minBreakpoint = breakpoints[0];
|
|
19498
19310
|
const enableBackdrop = () => {
|
|
19499
19311
|
baseEl.style.setProperty('pointer-events', 'auto');
|
|
19500
19312
|
backdropEl.style.setProperty('pointer-events', 'auto');
|
|
@@ -19517,31 +19329,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19517
19329
|
*/
|
|
19518
19330
|
baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
|
|
19519
19331
|
};
|
|
19520
|
-
/**
|
|
19521
|
-
* Toggles the visible modal footer when `expandToScroll` is disabled.
|
|
19522
|
-
* @param footer The footer to show.
|
|
19523
|
-
*/
|
|
19524
|
-
const swapFooterVisibility = (footer) => {
|
|
19525
|
-
const originalFooter = baseEl.querySelector('ion-footer');
|
|
19526
|
-
if (!originalFooter) {
|
|
19527
|
-
return;
|
|
19528
|
-
}
|
|
19529
|
-
const clonedFooter = wrapperEl.nextElementSibling;
|
|
19530
|
-
const footerToHide = footer === 'original' ? clonedFooter : originalFooter;
|
|
19531
|
-
const footerToShow = footer === 'original' ? originalFooter : clonedFooter;
|
|
19532
|
-
footerToShow.style.removeProperty('display');
|
|
19533
|
-
footerToShow.removeAttribute('aria-hidden');
|
|
19534
|
-
const page = baseEl.querySelector('.ion-page');
|
|
19535
|
-
if (footer === 'original') {
|
|
19536
|
-
page.style.removeProperty('padding-bottom');
|
|
19537
|
-
}
|
|
19538
|
-
else {
|
|
19539
|
-
const pagePadding = footerToShow.clientHeight;
|
|
19540
|
-
page.style.setProperty('padding-bottom', `${pagePadding}px`);
|
|
19541
|
-
}
|
|
19542
|
-
footerToHide.style.setProperty('display', 'none');
|
|
19543
|
-
footerToHide.setAttribute('aria-hidden', 'true');
|
|
19544
|
-
};
|
|
19545
19332
|
/**
|
|
19546
19333
|
* After the entering animation completes,
|
|
19547
19334
|
* we need to set the animation to go from
|
|
@@ -19553,7 +19340,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19553
19340
|
if (wrapperAnimation && backdropAnimation) {
|
|
19554
19341
|
wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
|
|
19555
19342
|
backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
|
|
19556
|
-
contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
|
|
19557
19343
|
animation.progressStart(true, 1 - currentBreakpoint);
|
|
19558
19344
|
/**
|
|
19559
19345
|
* If backdrop is not enabled, then content
|
|
@@ -19570,7 +19356,7 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19570
19356
|
disableBackdrop();
|
|
19571
19357
|
}
|
|
19572
19358
|
}
|
|
19573
|
-
if (contentEl && currentBreakpoint !== maxBreakpoint
|
|
19359
|
+
if (contentEl && currentBreakpoint !== maxBreakpoint) {
|
|
19574
19360
|
contentEl.scrollY = false;
|
|
19575
19361
|
}
|
|
19576
19362
|
const canStart = (detail) => {
|
|
@@ -19584,13 +19370,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19584
19370
|
*/
|
|
19585
19371
|
const contentEl = findClosestIonContent(detail.event.target);
|
|
19586
19372
|
currentBreakpoint = getCurrentBreakpoint();
|
|
19587
|
-
/**
|
|
19588
|
-
* If we have expandToScroll disabled, we should not allow the swipe gesture to start
|
|
19589
|
-
* if the content is being swiped.
|
|
19590
|
-
*/
|
|
19591
|
-
if (!expandToScroll && contentEl) {
|
|
19592
|
-
return false;
|
|
19593
|
-
}
|
|
19594
19373
|
if (currentBreakpoint === 1 && contentEl) {
|
|
19595
19374
|
/**
|
|
19596
19375
|
* The modal should never swipe to close on the content with a refresher.
|
|
@@ -19621,15 +19400,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19621
19400
|
* Remove undefined check
|
|
19622
19401
|
*/
|
|
19623
19402
|
canDismissBlocksGesture = baseEl.canDismiss !== undefined && baseEl.canDismiss !== true && minBreakpoint === 0;
|
|
19624
|
-
/**
|
|
19625
|
-
* If expandToScroll is disabled, we need to swap
|
|
19626
|
-
* the footer visibility to the original, so if the modal
|
|
19627
|
-
* is dismissed, the footer dismisses with the modal
|
|
19628
|
-
* and doesn't stay on the screen after the modal is gone.
|
|
19629
|
-
*/
|
|
19630
|
-
if (!expandToScroll) {
|
|
19631
|
-
swapFooterVisibility('original');
|
|
19632
|
-
}
|
|
19633
19403
|
/**
|
|
19634
19404
|
* If we are pulling down, then it is possible we are pulling on the content.
|
|
19635
19405
|
* We do not want scrolling to happen at the same time as the gesture.
|
|
@@ -19745,19 +19515,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19745
19515
|
opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
|
|
19746
19516
|
},
|
|
19747
19517
|
]);
|
|
19748
|
-
if (contentAnimation) {
|
|
19749
|
-
/**
|
|
19750
|
-
* The modal content should scroll at any breakpoint when expandToScroll
|
|
19751
|
-
* is disabled. In order to do this, the content needs to be completely
|
|
19752
|
-
* viewable so scrolling can access everything. Otherwise, the default
|
|
19753
|
-
* behavior would show the content off the screen and only allow
|
|
19754
|
-
* scrolling when the sheet is fully expanded.
|
|
19755
|
-
*/
|
|
19756
|
-
contentAnimation.keyframes([
|
|
19757
|
-
{ offset: 0, maxHeight: `${(1 - breakpointOffset) * 100}%` },
|
|
19758
|
-
{ offset: 1, maxHeight: `${snapToBreakpoint * 100}%` },
|
|
19759
|
-
]);
|
|
19760
|
-
}
|
|
19761
19518
|
animation.progressStep(0);
|
|
19762
19519
|
}
|
|
19763
19520
|
/**
|
|
@@ -19765,14 +19522,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19765
19522
|
* snapping animation completes.
|
|
19766
19523
|
*/
|
|
19767
19524
|
gesture.enable(false);
|
|
19768
|
-
/**
|
|
19769
|
-
* If expandToScroll is disabled, we need to swap
|
|
19770
|
-
* the footer visibility to the cloned one so the footer
|
|
19771
|
-
* doesn't flicker when the sheet's height is animated.
|
|
19772
|
-
*/
|
|
19773
|
-
if (!expandToScroll && shouldRemainOpen) {
|
|
19774
|
-
swapFooterVisibility('cloned');
|
|
19775
|
-
}
|
|
19776
19525
|
if (shouldPreventDismiss) {
|
|
19777
19526
|
handleCanDismiss(baseEl, animation);
|
|
19778
19527
|
}
|
|
@@ -19780,13 +19529,13 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19780
19529
|
onDismiss();
|
|
19781
19530
|
}
|
|
19782
19531
|
/**
|
|
19783
|
-
*
|
|
19784
|
-
*
|
|
19785
|
-
*
|
|
19786
|
-
*
|
|
19787
|
-
* released, so we align with that
|
|
19532
|
+
* If the sheet is going to be fully expanded then we should enable
|
|
19533
|
+
* scrolling immediately. The sheet modal animation takes ~500ms to finish
|
|
19534
|
+
* so if we wait until then there is a visible delay for when scrolling is
|
|
19535
|
+
* re-enabled. Native iOS allows for scrolling on the sheet modal as soon
|
|
19536
|
+
* as the gesture is released, so we align with that.
|
|
19788
19537
|
*/
|
|
19789
|
-
if (contentEl &&
|
|
19538
|
+
if (contentEl && snapToBreakpoint === breakpoints[breakpoints.length - 1]) {
|
|
19790
19539
|
contentEl.scrollY = true;
|
|
19791
19540
|
}
|
|
19792
19541
|
return new Promise((resolve) => {
|
|
@@ -19804,7 +19553,6 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19804
19553
|
raf(() => {
|
|
19805
19554
|
wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
|
|
19806
19555
|
backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
|
|
19807
|
-
contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
|
|
19808
19556
|
animation.progressStart(true, 1 - snapToBreakpoint);
|
|
19809
19557
|
currentBreakpoint = snapToBreakpoint;
|
|
19810
19558
|
onBreakpointChange(currentBreakpoint);
|
|
@@ -19857,10 +19605,10 @@ const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, ba
|
|
|
19857
19605
|
};
|
|
19858
19606
|
};
|
|
19859
19607
|
|
|
19860
|
-
const modalIosCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host
|
|
19608
|
+
const modalIosCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}";
|
|
19861
19609
|
var IonModalIosStyle0 = modalIosCss;
|
|
19862
19610
|
|
|
19863
|
-
const modalMdCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host
|
|
19611
|
+
const modalMdCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}";
|
|
19864
19612
|
var IonModalMdStyle0 = modalMdCss;
|
|
19865
19613
|
|
|
19866
19614
|
// TODO(FW-2832): types
|
|
@@ -19939,7 +19687,6 @@ class Modal {
|
|
|
19939
19687
|
this.enterAnimation = undefined;
|
|
19940
19688
|
this.leaveAnimation = undefined;
|
|
19941
19689
|
this.breakpoints = undefined;
|
|
19942
|
-
this.expandToScroll = true;
|
|
19943
19690
|
this.initialBreakpoint = undefined;
|
|
19944
19691
|
this.backdropBreakpoint = 0;
|
|
19945
19692
|
this.handle = undefined;
|
|
@@ -20155,7 +19902,6 @@ class Modal {
|
|
|
20155
19902
|
presentingEl: presentingElement,
|
|
20156
19903
|
currentBreakpoint: this.initialBreakpoint,
|
|
20157
19904
|
backdropBreakpoint: this.backdropBreakpoint,
|
|
20158
|
-
expandToScroll: this.expandToScroll,
|
|
20159
19905
|
});
|
|
20160
19906
|
/* tslint:disable-next-line */
|
|
20161
19907
|
if (typeof window !== 'undefined') {
|
|
@@ -20206,10 +19952,7 @@ class Modal {
|
|
|
20206
19952
|
// should be in the DOM and referenced by now, except
|
|
20207
19953
|
// for the presenting el
|
|
20208
19954
|
const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation$3);
|
|
20209
|
-
const ani = (this.animation = animationBuilder(el, {
|
|
20210
|
-
presentingEl: this.presentingElement,
|
|
20211
|
-
expandToScroll: this.expandToScroll,
|
|
20212
|
-
}));
|
|
19955
|
+
const ani = (this.animation = animationBuilder(el, { presentingEl: this.presentingElement }));
|
|
20213
19956
|
const contentEl = findIonContent(el);
|
|
20214
19957
|
if (!contentEl) {
|
|
20215
19958
|
printIonContentErrorMsg(el);
|
|
@@ -20254,10 +19997,9 @@ class Modal {
|
|
|
20254
19997
|
presentingEl: this.presentingElement,
|
|
20255
19998
|
currentBreakpoint: initialBreakpoint,
|
|
20256
19999
|
backdropBreakpoint,
|
|
20257
|
-
expandToScroll: this.expandToScroll,
|
|
20258
20000
|
}));
|
|
20259
20001
|
ani.progressStart(true, 1);
|
|
20260
|
-
const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints,
|
|
20002
|
+
const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
|
|
20261
20003
|
if (this.currentBreakpoint !== breakpoint) {
|
|
20262
20004
|
this.currentBreakpoint = breakpoint;
|
|
20263
20005
|
this.ionBreakpointDidChange.emit({ breakpoint });
|
|
@@ -20335,7 +20077,6 @@ class Modal {
|
|
|
20335
20077
|
presentingEl: presentingElement,
|
|
20336
20078
|
currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
|
|
20337
20079
|
backdropBreakpoint: this.backdropBreakpoint,
|
|
20338
|
-
expandToScroll: this.expandToScroll,
|
|
20339
20080
|
});
|
|
20340
20081
|
if (dismissed) {
|
|
20341
20082
|
const { delegate } = this.getDelegate();
|
|
@@ -20421,23 +20162,23 @@ class Modal {
|
|
|
20421
20162
|
return true;
|
|
20422
20163
|
}
|
|
20423
20164
|
render() {
|
|
20424
|
-
const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap
|
|
20165
|
+
const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap } = this;
|
|
20425
20166
|
const showHandle = handle !== false && isSheetModal;
|
|
20426
20167
|
const mode = getIonMode$1(this);
|
|
20427
20168
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
20428
20169
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
20429
|
-
return (hAsync(Host, Object.assign({ key: '
|
|
20170
|
+
return (hAsync(Host, Object.assign({ key: 'b4da5111fe4719fa450c39b2d4bd884a302a7924', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
20430
20171
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
20431
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal,
|
|
20172
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), hAsync("ion-backdrop", { key: 'c12dbf747e0eb914eaf1331798548ffc7e147763', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && hAsync("div", { key: 'da546ee80c6576b5acc66e959fd5009e0b9a8160', class: "modal-shadow" }), hAsync("div", Object.assign({ key: '306ebe6427440ad5f7ed36d590e562d15a503b75',
|
|
20432
20173
|
/*
|
|
20433
20174
|
role and aria-modal must be used on the
|
|
20434
20175
|
same element. They must also be set inside the
|
|
20435
20176
|
shadow DOM otherwise ion-button will not be highlighted
|
|
20436
20177
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
20437
20178
|
*/
|
|
20438
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: '
|
|
20179
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (hAsync("button", { key: 'c5d17e346fe255a7c0cacbbf15c0083f2d09c488', class: "modal-handle",
|
|
20439
20180
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
20440
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '
|
|
20181
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), hAsync("slot", { key: '5cc714170a00b67f3eda0cd1d6f37c1489a99c83' }))));
|
|
20441
20182
|
}
|
|
20442
20183
|
get el() { return getElement(this); }
|
|
20443
20184
|
static get watchers() { return {
|
|
@@ -20459,7 +20200,6 @@ class Modal {
|
|
|
20459
20200
|
"enterAnimation": [16],
|
|
20460
20201
|
"leaveAnimation": [16],
|
|
20461
20202
|
"breakpoints": [16],
|
|
20462
|
-
"expandToScroll": [4, "expand-to-scroll"],
|
|
20463
20203
|
"initialBreakpoint": [2, "initial-breakpoint"],
|
|
20464
20204
|
"backdropBreakpoint": [2, "backdrop-breakpoint"],
|
|
20465
20205
|
"handle": [4],
|
|
@@ -29934,7 +29674,6 @@ class Select {
|
|
|
29934
29674
|
this.expandedIcon = undefined;
|
|
29935
29675
|
this.shape = undefined;
|
|
29936
29676
|
this.value = undefined;
|
|
29937
|
-
this.required = false;
|
|
29938
29677
|
}
|
|
29939
29678
|
styleChanged() {
|
|
29940
29679
|
this.emitStyle();
|
|
@@ -30446,8 +30185,8 @@ class Select {
|
|
|
30446
30185
|
return renderedLabel;
|
|
30447
30186
|
}
|
|
30448
30187
|
renderListbox() {
|
|
30449
|
-
const { disabled, inputId, isExpanded
|
|
30450
|
-
return (hAsync("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`,
|
|
30188
|
+
const { disabled, inputId, isExpanded } = this;
|
|
30189
|
+
return (hAsync("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl) }));
|
|
30451
30190
|
}
|
|
30452
30191
|
render() {
|
|
30453
30192
|
const { disabled, el, isExpanded, expandedIcon, labelPlacement, justify, placeholder, fill, shape, name, value } = this;
|
|
@@ -30478,7 +30217,7 @@ class Select {
|
|
|
30478
30217
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
30479
30218
|
*/
|
|
30480
30219
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
30481
|
-
return (hAsync(Host, { key: '
|
|
30220
|
+
return (hAsync(Host, { key: 'b2dca9ae25d88e4d9fdb55003041a66be5668fcf', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
30482
30221
|
[mode]: true,
|
|
30483
30222
|
'in-item': inItem,
|
|
30484
30223
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -30494,7 +30233,7 @@ class Select {
|
|
|
30494
30233
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
30495
30234
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
30496
30235
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
30497
|
-
}) }, hAsync("label", { key: '
|
|
30236
|
+
}) }, hAsync("label", { key: 'c22fe9aee8cd448223497ef143e89529fcef8af6', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), hAsync("div", { key: '601972df4579f4fa6a9c2c12865593e807decb72', class: "select-wrapper-inner" }, hAsync("slot", { key: '5f7b1261862f74b978b26f026533e3fd1cc666ba', name: "start" }), hAsync("div", { key: '39616da89f4b4b78432f6da85116a7de2ca589e7', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: '1d7b3601b73af7c05b3627cfc8e5147ea379bb03', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { key: 'b0344f0ac15003e22fee66d3d7ed03a07da7e8b7', class: "select-highlight" }))));
|
|
30498
30237
|
}
|
|
30499
30238
|
get el() { return getElement(this); }
|
|
30500
30239
|
static get watchers() { return {
|
|
@@ -30530,7 +30269,6 @@ class Select {
|
|
|
30530
30269
|
"expandedIcon": [1, "expanded-icon"],
|
|
30531
30270
|
"shape": [1],
|
|
30532
30271
|
"value": [1032],
|
|
30533
|
-
"required": [4],
|
|
30534
30272
|
"isExpanded": [32],
|
|
30535
30273
|
"open": [64]
|
|
30536
30274
|
},
|
|
@@ -32927,7 +32665,6 @@ class Toggle {
|
|
|
32927
32665
|
this.labelPlacement = 'start';
|
|
32928
32666
|
this.justify = undefined;
|
|
32929
32667
|
this.alignment = undefined;
|
|
32930
|
-
this.required = false;
|
|
32931
32668
|
}
|
|
32932
32669
|
disabledChanged() {
|
|
32933
32670
|
if (this.gesture) {
|
|
@@ -33009,12 +32746,12 @@ class Toggle {
|
|
|
33009
32746
|
return this.el.textContent !== '';
|
|
33010
32747
|
}
|
|
33011
32748
|
render() {
|
|
33012
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment
|
|
32749
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
33013
32750
|
const mode = getIonMode$1(this);
|
|
33014
32751
|
const value = this.getValue();
|
|
33015
32752
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
33016
32753
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
33017
|
-
return (hAsync(Host, { key: '
|
|
32754
|
+
return (hAsync(Host, { key: 'f52195ec3bc14c024647cb41319c32a4cd330e19', onClick: this.onClick, class: createColorClasses$1(color, {
|
|
33018
32755
|
[mode]: true,
|
|
33019
32756
|
'in-item': hostContext('ion-item', el),
|
|
33020
32757
|
'toggle-activated': activated,
|
|
@@ -33024,10 +32761,10 @@ class Toggle {
|
|
|
33024
32761
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
33025
32762
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
33026
32763
|
[`toggle-${rtl}`]: true,
|
|
33027
|
-
}) }, hAsync("label", { key: '
|
|
32764
|
+
}) }, hAsync("label", { key: 'f8b3a215ad85b2cee611ad63449b584e1640f27f', class: "toggle-wrapper" }, hAsync("input", Object.assign({ key: 'f387b1ea840737a9737917e516834c887be99c09', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), hAsync("div", { key: '936af880db59fe377cd2de9101eb28a1c4fb8914', class: {
|
|
33028
32765
|
'label-text-wrapper': true,
|
|
33029
32766
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
33030
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
32767
|
+
}, part: "label" }, hAsync("slot", { key: '80a6672e2e792c15011a9496dcd75363cdba31c6' })), hAsync("div", { key: '2b2b318b38ab27b194c0dab4cecd77d9d780f2ca', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
33031
32768
|
}
|
|
33032
32769
|
get el() { return getElement(this); }
|
|
33033
32770
|
static get watchers() { return {
|
|
@@ -33050,7 +32787,6 @@ class Toggle {
|
|
|
33050
32787
|
"labelPlacement": [1, "label-placement"],
|
|
33051
32788
|
"justify": [1],
|
|
33052
32789
|
"alignment": [1],
|
|
33053
|
-
"required": [4],
|
|
33054
32790
|
"activated": [32]
|
|
33055
32791
|
},
|
|
33056
32792
|
"$listeners$": undefined,
|
|
@@ -33082,10 +32818,6 @@ var IonToolbarMdStyle0 = toolbarMdCss;
|
|
|
33082
32818
|
* @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
|
|
33083
32819
|
* @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
|
|
33084
32820
|
* @slot end - Content is placed to the right of the toolbar text in LTR, and to the left in RTL.
|
|
33085
|
-
*
|
|
33086
|
-
* @part background - The background of the toolbar, covering the entire area behind the toolbar content.
|
|
33087
|
-
* @part container - The container that wraps all toolbar content, including the default slot and named slot content.
|
|
33088
|
-
* @part content - The container for the default slot, wrapping content provided without a named slot.
|
|
33089
32821
|
*/
|
|
33090
32822
|
class Toolbar {
|
|
33091
32823
|
constructor(hostRef) {
|
|
@@ -33136,10 +32868,10 @@ class Toolbar {
|
|
|
33136
32868
|
this.childrenStyles.forEach((value) => {
|
|
33137
32869
|
Object.assign(childStyles, value);
|
|
33138
32870
|
});
|
|
33139
|
-
return (hAsync(Host, { key: '
|
|
32871
|
+
return (hAsync(Host, { key: '462538a5ecd01baf3cde116c9f029aeda26c81be', class: Object.assign(Object.assign({}, childStyles), createColorClasses$1(this.color, {
|
|
33140
32872
|
[mode]: true,
|
|
33141
32873
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
33142
|
-
})) }, hAsync("div", { key: '
|
|
32874
|
+
})) }, hAsync("div", { key: 'c0b4415d3b2472de643a9be7cb3b13b3b628621b', class: "toolbar-background" }), hAsync("div", { key: '0ccb8a2dbeaa28d8f9bed87629c0c097446690c2', class: "toolbar-container" }, hAsync("slot", { key: '3e726dac359e923df21d80301651f16063a3de20', name: "start" }), hAsync("slot", { key: 'cd799330b56a7f8833bc61bb2807aafb21846f71', name: "secondary" }), hAsync("div", { key: '395282e6ac8c53576922dcdb5f08c25d34638c86', class: "toolbar-content" }, hAsync("slot", { key: 'a437c60e4ba5aae65e55169ae82a6f379868ec1d' })), hAsync("slot", { key: '711af9b9d321a7b31ede924c9bdcad767aa9a1ca', name: "primary" }), hAsync("slot", { key: 'ecc02edeaf80a837890bcb08d5096df1e22a0b9a', name: "end" }))));
|
|
33143
32875
|
}
|
|
33144
32876
|
get el() { return getElement(this); }
|
|
33145
32877
|
static get style() { return {
|