@ionic/core 9.0.1-dev.11788212611.154b1596 → 9.0.1-dev.11788285010.17561004
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/index.js +1 -1
- package/components/ion-accordion-group.js +1 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-app.js +1 -1
- package/components/ion-avatar.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-backdrop.js +1 -1
- package/components/ion-badge.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-breadcrumbs.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-buttons.js +1 -1
- package/components/ion-card-content.js +1 -1
- package/components/ion-card-header.js +1 -1
- package/components/ion-card-subtitle.js +1 -1
- package/components/ion-card-title.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-checkbox.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-col.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-fab-list.js +1 -1
- package/components/ion-fab.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-grid.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-icon.js +1 -1
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-otp.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-divider.js +1 -1
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-label.js +1 -1
- package/components/ion-list-header.js +1 -1
- package/components/ion-list.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +1 -1
- package/components/ion-picker-column-option.js +1 -1
- package/components/ion-picker-column.js +1 -1
- package/components/ion-picker.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-radio-group.js +1 -1
- package/components/ion-radio.js +1 -1
- package/components/ion-range.js +1 -1
- 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-ripple-effect.js +1 -1
- package/components/ion-route-redirect.js +1 -1
- package/components/ion-route.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/{dist/ionic/p-BpG7jkT9.js → components/p-66ogmUZU.js} +1 -1
- package/components/p-6Vp915Y7.js +4 -0
- package/components/{p-B2L09UOs.js → p-7PNwKFZi.js} +1 -1
- package/components/{p-C8mPeq0D.js → p-A8MJRBIY.js} +1 -1
- package/components/p-AQcCdH2_.js +4 -0
- package/components/{p-DkEb3SCT.js → p-B6x5_b9w.js} +1 -1
- package/components/{p-CDKY4TZ_.js → p-B8MQjdvk.js} +1 -1
- package/components/{p-CLZPNP7x.js → p-BA_4ZIEg.js} +1 -1
- package/components/{p-CyKlfXdt.js → p-BFtL8t1r.js} +1 -1
- package/components/{p-RRH-7cpd.js → p-BMfgF-Tv.js} +1 -1
- package/components/{p-l-zxxFre.js → p-BPDxVIRr.js} +1 -1
- package/{dist/ionic/p-BC17SPKH.js → components/p-BSARlp49.js} +1 -1
- package/components/p-BdwCtX8Y.js +4 -0
- package/components/p-Bg4OwDwb.js +4 -0
- package/components/{p-CBhGZ6rF.js → p-BgUIV8NQ.js} +1 -1
- package/components/{p-CxiXpCtB.js → p-Bnc0m4SW.js} +1 -1
- package/components/{p-7qDu1bID.js → p-BpLt_Ptn.js} +1 -1
- package/components/{p-C12SAK00.js → p-BqBDq1Ma.js} +1 -1
- package/components/{p-mXsQnyWB.js → p-BrFaQbGY.js} +1 -1
- package/{dist/ionic/p-CoEa7CiN.js → components/p-BuPAFTWI.js} +1 -1
- package/components/{p-CB06XtlF.js → p-Bx2saTHs.js} +1 -1
- package/components/p-BxhE2W85.js +4 -0
- package/components/p-CHswSpKy.js +4 -0
- package/components/p-CQAjyETU.js +4 -0
- package/components/p-CR9OgE6N.js +4 -0
- package/components/{p-CEkamjav.js → p-CWETxTjE.js} +1 -1
- package/components/p-CaZeZIL2.js +4 -0
- package/components/{p-Dq1-WhnV.js → p-CaiZOhfC.js} +1 -1
- package/components/{p-BFwL2yyK.js → p-CgvDC7hC.js} +1 -1
- package/components/p-CqyGR9Aq.js +4 -0
- package/components/{p-DMkSsriG.js → p-D7ysFE2B.js} +1 -1
- package/components/p-DCWfzDM8.js +4 -0
- package/{dist/ionic/p-DA88iqXQ.js → components/p-DDdkefwf.js} +1 -1
- package/components/{p-CJTKYpZv.js → p-DEW7CnUc.js} +1 -1
- package/components/p-DQ1IPvZO.js +4 -0
- package/components/{p-BAJ7NctL.js → p-DcOH6-o5.js} +1 -1
- package/components/p-DfdYCsov.js +4 -0
- package/{dist/ionic/p-DoUx_N0R.js → components/p-DhOoEIAs.js} +1 -1
- package/components/p-Dl_7b_UJ.js +4 -0
- package/components/p-DqAI6tg7.js +4 -0
- package/components/p-DrehWDfv.js +4 -0
- package/components/{p-BWHBdLfY.js → p-DysqCsJu.js} +1 -1
- package/components/{p-BqE7e5gH.js → p-H1f2qsk4.js} +1 -1
- package/components/p-HVYBAhFx.js +4 -0
- package/components/{p-BE9noJ1O.js → p-Kmrg3Fed.js} +1 -1
- package/{dist/ionic/p-wdSUbx5C.js → components/p-RFfE9hF6.js} +1 -1
- package/components/{p-Bcm-GVQM.js → p-SR-LLqp_.js} +1 -1
- package/components/p-eFI3mtEX.js +4 -0
- package/components/{p-5rFO7X8J.js → p-gFwXiYC_.js} +1 -1
- package/components/{p-COxY7PLK.js → p-tX3UxCnU.js} +1 -1
- package/components/{p-VTfnz_8u.js → p-v2NpoOHp.js} +1 -1
- package/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{animation-ihPP_z2n.js → animation-D-OqR4a4.js} +1 -1
- package/dist/cjs/{app-globals-BlkzA410.js → app-globals-BzgwARwJ.js} +1 -1
- package/dist/cjs/{button-active-ItGBjzmO.js → button-active-BlWSD7uK.js} +1 -1
- package/dist/cjs/{format-CPIqtp4x.js → format-D7ig6Vm0.js} +1 -1
- package/dist/cjs/{framework-delegate-DhyWUPGg.js → framework-delegate-BZUx4TnE.js} +1 -1
- package/dist/cjs/{hardware-back-button-D5f_kASb.js → hardware-back-button-JOAEFSzc.js} +1 -1
- package/dist/cjs/{helpers-BCLkFTTd.js → helpers-Dj5o76mq.js} +1 -1
- package/dist/cjs/{index-CldjPPyP.js → index-2sO-zkZ2.js} +4 -4
- package/dist/cjs/{index-Bgz6BcKx.js → index-BrVMoqUk.js} +16 -50
- package/dist/cjs/{index-49DTLc_Z.js → index-C8zH6b3d.js} +2 -2
- package/dist/cjs/{index-BcyiqD6R.js → index-CZ6vzt_q.js} +5 -5
- package/dist/cjs/{index-xum7jdbq.js → index-Csue6G3m.js} +2 -2
- package/dist/cjs/{index-BocV_y-c.js → index-EJLjthTK.js} +1 -2
- package/dist/cjs/index.cjs.js +12 -12
- package/dist/cjs/{input-shims-Jisy7U7-.js → input-shims-Bh7bnt2v.js} +3 -3
- package/dist/cjs/{input.utils-BDTpGrfn.js → input.utils-Cq3g9uHy.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +29 -45
- package/dist/cjs/ion-alert.cjs.entry.js +21 -29
- package/dist/cjs/ion-app_8.cjs.entry.js +16 -93
- 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 +3 -3
- package/dist/cjs/ion-card_5.cjs.entry.js +3 -3
- package/dist/cjs/ion-checkbox.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/ion-datetime.cjs.entry.js +24 -32
- 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-otp.cjs.entry.js +3 -3
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ion-input.cjs.entry.js +5 -5
- package/dist/cjs/ion-item-option_3.cjs.entry.js +15 -13
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +10 -14
- package/dist/cjs/ion-menu_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-modal.cjs.entry.js +32 -85
- package/dist/cjs/ion-nav_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +46 -210
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +10 -23
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-range.cjs.entry.js +4 -4
- package/dist/cjs/ion-refresher_2.cjs.entry.js +6 -6
- package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +4 -4
- 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 +10 -14
- package/dist/cjs/ion-select-modal.cjs.entry.js +8 -8
- package/dist/cjs/ion-select_3.cjs.entry.js +47 -57
- 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 +5 -5
- package/dist/cjs/ion-toast.cjs.entry.js +8 -8
- package/dist/cjs/ion-toggle.cjs.entry.js +4 -4
- package/dist/cjs/{ionic-global-BMU-Us1Q.js → ionic-global-DvgIzM2F.js} +1 -1
- package/dist/cjs/ionic.cjs.js +4 -4
- package/dist/cjs/{ios.transition-OCcCN--B.js → ios.transition-zIgdoSYe.js} +4 -4
- package/dist/cjs/{item-multiple-inputs-BH9yPC66.js → item-multiple-inputs-DG-ZGm6j.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{md.transition-D0o2IIbo.js → md.transition-CXeJ9rfh.js} +4 -4
- package/dist/cjs/{overlays-HN9joo1Z.js → overlays-Bg0auTQa.js} +34 -59
- package/dist/cjs/{select-option-render-BPjGDlsG.js → select-option-render-7m1WdFzF.js} +2 -2
- package/dist/cjs/{slot-mutation-controller-IQ250LoG.js → slot-mutation-controller-BJEJzx_e.js} +1 -1
- package/dist/cjs/{status-tap-Bakl9czs.js → status-tap-DxbUM5XX.js} +3 -3
- package/dist/cjs/{swipe-back-Cv4OZVJ5.js → swipe-back-F_DBt-Aw.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/action-sheet/action-sheet.js +20 -36
- package/dist/collection/components/alert/alert.js +12 -20
- package/dist/collection/components/content/content.js +4 -81
- package/dist/collection/components/datetime/datetime.js +17 -25
- package/dist/collection/components/item-sliding/item-sliding.js +12 -10
- package/dist/collection/components/loading/loading.js +3 -7
- package/dist/collection/components/modal/modal.ios.css +1 -12
- package/dist/collection/components/modal/modal.js +22 -75
- package/dist/collection/components/modal/modal.md.css +1 -12
- package/dist/collection/components/picker-column/picker-column.js +43 -207
- package/dist/collection/components/popover/popover.js +3 -16
- package/dist/collection/components/segment-button/segment-button.js +7 -11
- package/dist/collection/components/select/select.js +39 -49
- package/dist/collection/utils/overlays.js +29 -53
- package/dist/collection/utils/test/playwright/index.js +0 -1
- package/dist/docs.json +48 -279
- package/dist/esm/{animation-B6KGUJwl.js → animation-TxGPYeDn.js} +1 -1
- package/dist/esm/{app-globals-BvutUX8P.js → app-globals-Do8rJest.js} +1 -1
- package/dist/esm/{button-active-DRNebs9r.js → button-active-ChA4D-ml.js} +1 -1
- package/dist/esm/{format-BF3btM7P.js → format-CVk5e_GP.js} +1 -1
- package/dist/esm/{framework-delegate-60cEIAgt.js → framework-delegate-DaLWnISz.js} +1 -1
- package/dist/esm/{hardware-back-button-rhkwRNk2.js → hardware-back-button-D8W4L0JP.js} +1 -1
- package/dist/esm/{helpers-DLLANtRS.js → helpers-BIgoInJU.js} +1 -1
- package/dist/esm/{index-DOrtAUWV.js → index-BmOR8tCv.js} +2 -2
- package/dist/esm/{index-D_7MeuVD.js → index-C5ZdL0qp.js} +5 -5
- package/dist/esm/{index-BZHVn0iF.js → index-C8Dsa6li.js} +4 -4
- package/dist/esm/{index-h81G-QbJ.js → index-CKYcsw8f.js} +16 -50
- package/dist/esm/{index-Bl4BUvBL.js → index-DHw2lZxe.js} +2 -2
- package/dist/esm/{index-JgU5uTSY.js → index-elneMH8y.js} +2 -2
- package/dist/esm/index.js +12 -12
- package/dist/esm/{input-shims-C2ipc_XX.js → input-shims-09NN97kF.js} +3 -3
- package/dist/esm/{input.utils-D-qoPjqr.js → input.utils-BxyH9l1w.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +3 -3
- package/dist/esm/ion-action-sheet.entry.js +29 -45
- package/dist/esm/ion-alert.entry.js +21 -29
- package/dist/esm/ion-app_8.entry.js +16 -93
- 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 +3 -3
- package/dist/esm/ion-card_5.entry.js +3 -3
- package/dist/esm/ion-checkbox.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/ion-datetime.entry.js +24 -32
- 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-otp.entry.js +3 -3
- package/dist/esm/ion-input-password-toggle.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +5 -5
- package/dist/esm/ion-item-option_3.entry.js +15 -13
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +10 -14
- package/dist/esm/ion-menu_3.entry.js +8 -8
- package/dist/esm/ion-modal.entry.js +32 -85
- package/dist/esm/ion-nav_2.entry.js +6 -6
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +47 -211
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +10 -23
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +4 -4
- package/dist/esm/ion-range.entry.js +4 -4
- package/dist/esm/ion-refresher_2.entry.js +6 -6
- package/dist/esm/ion-reorder_2.entry.js +4 -4
- package/dist/esm/ion-ripple-effect.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +4 -4
- 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 +10 -14
- package/dist/esm/ion-select-modal.entry.js +8 -8
- package/dist/esm/ion-select_3.entry.js +47 -57
- 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 +5 -5
- package/dist/esm/ion-toast.entry.js +8 -8
- package/dist/esm/ion-toggle.entry.js +4 -4
- package/dist/esm/{ionic-global-B7I1sdvg.js → ionic-global-lrowsHfi.js} +1 -1
- package/dist/esm/ionic.js +5 -5
- package/dist/esm/{ios.transition-C-6IaIxe.js → ios.transition-BQhADrk1.js} +4 -4
- package/dist/esm/{item-multiple-inputs-DI91syHS.js → item-multiple-inputs-D_N3fDkD.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{md.transition-dyqt0t0d.js → md.transition-D58NpmRa.js} +4 -4
- package/dist/esm/{overlays-Dz2cGX5q.js → overlays-BpnIFlXI.js} +35 -59
- package/dist/esm/{select-option-render-CUJpruSC.js → select-option-render-lIuu64EV.js} +2 -2
- package/dist/esm/{slot-mutation-controller-wFuztlVD.js → slot-mutation-controller-rS_T3FDR.js} +1 -1
- package/dist/esm/{status-tap-Dn_42wiy.js → status-tap-CpFQMLl6.js} +3 -3
- package/dist/esm/{swipe-back-CqOqrHW7.js → swipe-back-rmc7zeNW.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-025763b2.entry.js → p-05800a02.entry.js} +1 -1
- package/dist/ionic/p-0eb50dca.entry.js +4 -0
- package/dist/ionic/{p-0b52d921.entry.js → p-16e9f542.entry.js} +1 -1
- package/dist/ionic/p-18d532a3.entry.js +4 -0
- package/dist/ionic/{p-a2fccdaa.entry.js → p-1db2afb4.entry.js} +1 -1
- package/dist/ionic/{p-5ed60413.entry.js → p-1df75f9e.entry.js} +1 -1
- package/dist/ionic/{p-2ff12c8a.entry.js → p-295ff427.entry.js} +1 -1
- package/dist/ionic/p-34b9379b.entry.js +4 -0
- package/dist/ionic/{p-cc749877.entry.js → p-39a8d4e0.entry.js} +1 -1
- package/dist/ionic/p-4437015c.entry.js +4 -0
- package/dist/ionic/{p-53ba5651.entry.js → p-478035a7.entry.js} +1 -1
- package/dist/ionic/{p-1a20571c.entry.js → p-485fb218.entry.js} +1 -1
- package/dist/ionic/p-48c859fe.entry.js +4 -0
- package/dist/ionic/p-49b9d405.entry.js +4 -0
- package/dist/ionic/{p-d1539609.entry.js → p-56307aea.entry.js} +1 -1
- package/dist/ionic/{p-eeb65463.entry.js → p-5ee2d7b1.entry.js} +1 -1
- package/dist/ionic/{p-ca57763d.entry.js → p-5f216b79.entry.js} +1 -1
- package/dist/ionic/{p-fb4dabbb.entry.js → p-61c799d1.entry.js} +1 -1
- package/dist/ionic/{p-fe80ebb1.entry.js → p-63bbba8d.entry.js} +1 -1
- package/dist/ionic/p-68507e70.entry.js +4 -0
- package/dist/ionic/{p-43bae3f5.entry.js → p-6f048604.entry.js} +1 -1
- package/dist/ionic/{p-dadcb3d2.entry.js → p-70ee8888.entry.js} +1 -1
- package/dist/ionic/{p-7c859f42.entry.js → p-72ad7c64.entry.js} +1 -1
- package/dist/ionic/{p-90e06e60.entry.js → p-75887ee0.entry.js} +1 -1
- package/dist/ionic/{p-bdc01880.entry.js → p-873a315a.entry.js} +1 -1
- package/dist/ionic/{p-f0645c98.entry.js → p-881b6954.entry.js} +1 -1
- package/dist/ionic/p-886d9e66.entry.js +4 -0
- package/dist/ionic/{p-5dc53bdf.entry.js → p-8dd4c026.entry.js} +1 -1
- package/dist/ionic/{p-9f2d3987.entry.js → p-8e007f11.entry.js} +1 -1
- package/dist/ionic/p-8f464a8f.entry.js +4 -0
- package/dist/ionic/p-8f51110d.entry.js +4 -0
- package/dist/ionic/{p-1f66c230.entry.js → p-90ba736e.entry.js} +1 -1
- package/dist/ionic/{p-8d72244b.entry.js → p-959df5f8.entry.js} +1 -1
- package/dist/ionic/{p-8e388a30.entry.js → p-9e455875.entry.js} +1 -1
- package/{components/p-BcuLPPAE.js → dist/ionic/p-9wczfs_v.js} +1 -1
- package/dist/ionic/{p-C10K-FJg.js → p-B1Y7LZhV.js} +1 -1
- package/dist/ionic/p-B5RyLYvl.js +4 -0
- package/dist/ionic/p-BQv5i5Kf.js +4 -0
- package/dist/ionic/{p-CH8tk7Pr.js → p-BZVE25Gu.js} +1 -1
- package/{components/p-CdSLe3Q3.js → dist/ionic/p-BZxjcGRP.js} +1 -1
- package/dist/ionic/p-BnGA34Pd.js +4 -0
- package/dist/ionic/{p-Q9w8L_Sw.js → p-ByLaqOPm.js} +1 -1
- package/dist/ionic/p-C06QNN45.js +4 -0
- package/dist/ionic/{p-KJ5pLPiN.js → p-C4IBDDj6.js} +1 -1
- package/dist/ionic/p-CCVlNZ__.js +4 -0
- package/dist/ionic/{p-CTBfxfjC.js → p-CDBop-kz.js} +1 -1
- package/dist/ionic/p-CKYcsw8f.js +5 -0
- package/dist/ionic/p-CazSodad.js +4 -0
- package/dist/ionic/{p-S1shXW5M.js → p-ClrlQU2y.js} +1 -1
- package/{components/p-DG-dUCKp.js → dist/ionic/p-D0dfUysx.js} +1 -1
- package/dist/ionic/{p-C2BY_4Wp.js → p-D9yvytgv.js} +1 -1
- package/{components/p-DH0rRXjx.js → dist/ionic/p-DF_Uqql8.js} +1 -1
- package/dist/ionic/{p-DMj-M2c4.js → p-DXJgZWgi.js} +1 -1
- package/dist/ionic/p-DdhHqKj-.js +4 -0
- package/dist/ionic/{p-BRc8gq5v.js → p-De0eY881.js} +1 -1
- package/dist/ionic/p-DgUL3JbO.js +4 -0
- package/dist/ionic/{p-06ZcwRF5.js → p-RzUn7cKs.js} +1 -1
- package/dist/ionic/p-VquyMbjp.js +4 -0
- package/dist/ionic/{p-2aabd568.entry.js → p-a0fee899.entry.js} +1 -1
- package/dist/ionic/{p-9e688396.entry.js → p-a54bcd16.entry.js} +1 -1
- package/dist/ionic/{p-eaeac54e.entry.js → p-aebc4d69.entry.js} +1 -1
- package/dist/ionic/{p-9452849d.entry.js → p-b5f37106.entry.js} +1 -1
- package/dist/ionic/{p-082b8125.entry.js → p-b62bfce8.entry.js} +1 -1
- package/dist/ionic/p-b7a11b58.entry.js +4 -0
- package/dist/ionic/{p-546b1109.entry.js → p-bbf6878c.entry.js} +1 -1
- package/dist/ionic/{p-e93cc1e1.entry.js → p-c49165af.entry.js} +1 -1
- package/dist/ionic/{p-9eba0d8a.entry.js → p-cad4eccf.entry.js} +1 -1
- package/dist/ionic/{p-d1b888de.entry.js → p-cdc5115e.entry.js} +1 -1
- package/dist/ionic/{p-47b8b59a.entry.js → p-d3384a40.entry.js} +1 -1
- package/dist/ionic/{p-f607ad4f.entry.js → p-d8bae128.entry.js} +1 -1
- package/dist/ionic/{p-026e2e4c.entry.js → p-d8deff43.entry.js} +1 -1
- package/dist/ionic/{p-6d84fa9f.entry.js → p-ddfb7e5f.entry.js} +1 -1
- package/dist/ionic/{p-ecfc9c71.entry.js → p-e538f18d.entry.js} +1 -1
- package/dist/ionic/{p-83aa7d47.entry.js → p-f376876b.entry.js} +1 -1
- package/dist/ionic/p-f521b13c.entry.js +4 -0
- package/dist/ionic/{p-ac71362a.entry.js → p-fbd83d4c.entry.js} +1 -1
- package/dist/types/components/action-sheet/action-sheet.d.ts +0 -10
- package/dist/types/components/alert/alert.d.ts +0 -7
- package/dist/types/components/content/content.d.ts +0 -24
- package/dist/types/components/modal/modal.d.ts +0 -8
- package/dist/types/components/picker-column/picker-column.d.ts +0 -42
- package/dist/types/components.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -12
- package/dist/types/utils/overlays.d.ts +0 -9
- package/dist/types/utils/test/playwright/index.d.ts +0 -1
- package/hydrate/index.js +213 -596
- package/hydrate/index.mjs +213 -596
- package/loader/index.d.ts +1 -1
- package/package.json +2 -2
- package/components/p-BhlP16sB.js +0 -4
- package/components/p-C8Tp0cQy.js +0 -4
- package/components/p-CFtAWaB6.js +0 -4
- package/components/p-CQxPXWNM.js +0 -4
- package/components/p-CRcX0EGs.js +0 -4
- package/components/p-CVNvmbDp.js +0 -4
- package/components/p-CXpy69Ei.js +0 -4
- package/components/p-CoGD-oMG.js +0 -4
- package/components/p-CpYeYl3u.js +0 -4
- package/components/p-D2XJVty5.js +0 -4
- package/components/p-D49fFp1g.js +0 -4
- package/components/p-DALTMT_o.js +0 -4
- package/components/p-Dr-rBSUW.js +0 -4
- package/components/p-MHpJ2A_m.js +0 -4
- package/components/p-QgdyH-Zs.js +0 -4
- package/components/p-UKksD3f9.js +0 -4
- package/components/p-fP0QF3iG.js +0 -4
- package/components/p-ntAkt4Ra.js +0 -4
- package/components/p-ufB0gCSU.js +0 -4
- package/components/p-z-BF3clL.js +0 -4
- package/dist/collection/utils/test/late-props/late-props.js +0 -69
- package/dist/collection/utils/test/playwright/detach-reattach.js +0 -23
- package/dist/ionic/p-010601fe.entry.js +0 -4
- package/dist/ionic/p-0c2b3555.entry.js +0 -4
- package/dist/ionic/p-26911da5.entry.js +0 -4
- package/dist/ionic/p-326e0d05.entry.js +0 -4
- package/dist/ionic/p-392079fa.entry.js +0 -4
- package/dist/ionic/p-4778b90f.entry.js +0 -4
- package/dist/ionic/p-7dec112e.entry.js +0 -4
- package/dist/ionic/p-9fef333a.entry.js +0 -4
- package/dist/ionic/p-BRa1Jjxr.js +0 -4
- package/dist/ionic/p-Cc-fFNy8.js +0 -4
- package/dist/ionic/p-Cc4w3fVf.js +0 -4
- package/dist/ionic/p-CvRL-Eju.js +0 -4
- package/dist/ionic/p-D_IgV7tz.js +0 -4
- package/dist/ionic/p-b8cd338d.entry.js +0 -4
- package/dist/ionic/p-d85e59b1.entry.js +0 -4
- package/dist/ionic/p-dad2f3e4.entry.js +0 -4
- package/dist/ionic/p-eab77a74.entry.js +0 -4
- package/dist/ionic/p-h81G-QbJ.js +0 -6
- package/dist/ionic/p-nxFQkv7U.js +0 -4
- package/dist/ionic/p-w3KTiug9.js +0 -4
- package/dist/types/utils/test/playwright/detach-reattach.d.ts +0 -13
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, f as printIonWarning, w as writeTask, e as config, h, d as Host, g as getElement } from './index-
|
|
5
|
-
import { i as isIonContent, f as findRefresherInContent, a as findClosestIonContent, d as disableContentScrollY, r as resetContentScrollY, b as findIonContent, p as printIonContentErrorMsg } from './index-
|
|
6
|
-
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate-
|
|
7
|
-
import { g as getElementRoot, e as clamp, r as raf, b as inheritAttributes, h as hasLazyBuild } from './helpers-
|
|
4
|
+
import { r as registerInstance, c as createEvent, f as printIonWarning, w as writeTask, e as config, h, d as Host, g as getElement } from './index-CKYcsw8f.js';
|
|
5
|
+
import { i as isIonContent, f as findRefresherInContent, a as findClosestIonContent, d as disableContentScrollY, r as resetContentScrollY, b as findIonContent, p as printIonContentErrorMsg } from './index-BmOR8tCv.js';
|
|
6
|
+
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate-DaLWnISz.js';
|
|
7
|
+
import { g as getElementRoot, e as clamp, r as raf, b as inheritAttributes, h as hasLazyBuild } from './helpers-BIgoInJU.js';
|
|
8
8
|
import { c as createLockController } from './lock-controller-B-hirT0v.js';
|
|
9
9
|
import { g as getCapacitor } from './capacitor-CFERIeaU.js';
|
|
10
|
-
import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, F as FOCUS_TRAP_DISABLE_CLASS, d as createTriggerController, B as BACKDROP, h as prepareOverlay,
|
|
10
|
+
import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, F as FOCUS_TRAP_DISABLE_CLASS, d as createTriggerController, B as BACKDROP, h as prepareOverlay, j as cleanupRootFocusTrapAccessibility, k as setOverlayId, e as present, f as dismiss, g as eventMethod } from './overlays-BpnIFlXI.js';
|
|
11
11
|
import { g as getClassMap } from './theme-byZM6qHV.js';
|
|
12
|
-
import { e as deepReady, w as waitForMount } from './index-
|
|
13
|
-
import { b as getIonMode } from './ionic-global-
|
|
12
|
+
import { e as deepReady, w as waitForMount } from './index-C8Dsa6li.js';
|
|
13
|
+
import { b as getIonMode } from './ionic-global-lrowsHfi.js';
|
|
14
14
|
import { KEYBOARD_DID_OPEN } from './keyboard-Cj8mLJeq.js';
|
|
15
|
-
import { c as createAnimation } from './animation-
|
|
15
|
+
import { c as createAnimation } from './animation-TxGPYeDn.js';
|
|
16
16
|
import { g as getTimeGivenProgression } from './cubic-bezier-hHmYLOfE.js';
|
|
17
17
|
import { createGesture } from './index-BmLuEdV7.js';
|
|
18
18
|
import { w as win } from './index-ZjP4CjeZ.js';
|
|
19
19
|
import './dir-Dojwmvde.js';
|
|
20
|
-
import './hardware-back-button-
|
|
20
|
+
import './hardware-back-button-D8W4L0JP.js';
|
|
21
21
|
import './gesture-controller-B_gJaBk0.js';
|
|
22
22
|
import './keyboard-DAF8GNJ9.js';
|
|
23
23
|
|
|
@@ -1874,9 +1874,9 @@ const clearSafeAreaOverrides = (hostEl) => {
|
|
|
1874
1874
|
hostEl.style.removeProperty('--ion-safe-area-right');
|
|
1875
1875
|
};
|
|
1876
1876
|
|
|
1877
|
-
const modalIosCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:
|
|
1877
|
+
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-wrapper{outline:none}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px}}@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-modal-offset-top, 0px) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}: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}`;
|
|
1878
1878
|
|
|
1879
|
-
const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:
|
|
1879
|
+
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-wrapper{outline:none}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px}}@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-modal-offset-top, 0px) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}: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}`;
|
|
1880
1880
|
|
|
1881
1881
|
const Modal = class {
|
|
1882
1882
|
constructor(hostRef) {
|
|
@@ -1902,9 +1902,6 @@ const Modal = class {
|
|
|
1902
1902
|
this.inline = false;
|
|
1903
1903
|
// Whether or not modal is being dismissed via gesture
|
|
1904
1904
|
this.gestureAnimationDismissing = false;
|
|
1905
|
-
// True from the first safe-area write in `present()` until the enter
|
|
1906
|
-
// animation settles. A position-based read in that window is not the rest position.
|
|
1907
|
-
this.isPresenting = false;
|
|
1908
1905
|
this.presented = false;
|
|
1909
1906
|
/** @internal */
|
|
1910
1907
|
this.hasController = false;
|
|
@@ -2141,17 +2138,6 @@ const Modal = class {
|
|
|
2141
2138
|
const { el } = this;
|
|
2142
2139
|
prepareOverlay(el);
|
|
2143
2140
|
this.triggerChanged();
|
|
2144
|
-
// A disconnect tears down state this presentation still needs and cannot
|
|
2145
|
-
// tell a re-insert from a removal, so put it back.
|
|
2146
|
-
if (this.presented || this.isPresenting) {
|
|
2147
|
-
this.restoreSafeAreaOverrides();
|
|
2148
|
-
}
|
|
2149
|
-
// A relocation from `willPresent` reaches these before `present()` has
|
|
2150
|
-
// applied the lock, so they apply it instead. Both are idempotent.
|
|
2151
|
-
if (this.presented) {
|
|
2152
|
-
restoreRootFocusTrapAccessibility(el);
|
|
2153
|
-
this.initParentRemovalObserver();
|
|
2154
|
-
}
|
|
2155
2141
|
}
|
|
2156
2142
|
disconnectedCallback() {
|
|
2157
2143
|
this.triggerController.removeClickListener();
|
|
@@ -2329,33 +2315,25 @@ const Modal = class {
|
|
|
2329
2315
|
// Recalculate isSheetModal before safe-area setup because framework
|
|
2330
2316
|
// bindings (e.g., Angular) may not have been applied when componentWillLoad ran.
|
|
2331
2317
|
this.isSheetModal = this.breakpoints !== undefined && this.initialBreakpoint !== undefined;
|
|
2332
|
-
|
|
2318
|
+
// Set initial safe-area overrides before animation
|
|
2319
|
+
this.setInitialSafeAreaOverrides();
|
|
2333
2320
|
const hasCardModal = presentingElement !== undefined;
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
*/
|
|
2344
|
-
if (hasCardModal && getIonMode(this) === 'ios') {
|
|
2345
|
-
// Cache the original status bar color before the modal is presented
|
|
2346
|
-
this.statusBarStyle = await StatusBar.getStyle();
|
|
2347
|
-
setCardStatusBarDark();
|
|
2348
|
-
}
|
|
2349
|
-
await present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
|
|
2350
|
-
presentingEl: presentingElement,
|
|
2351
|
-
currentBreakpoint: this.initialBreakpoint,
|
|
2352
|
-
backdropBreakpoint: this.backdropBreakpoint,
|
|
2353
|
-
expandToScroll: this.expandToScroll,
|
|
2354
|
-
});
|
|
2355
|
-
}
|
|
2356
|
-
finally {
|
|
2357
|
-
this.isPresenting = false;
|
|
2321
|
+
/**
|
|
2322
|
+
* We need to change the status bar at the
|
|
2323
|
+
* start of the animation so that it completes
|
|
2324
|
+
* by the time the card animation is done.
|
|
2325
|
+
*/
|
|
2326
|
+
if (hasCardModal && getIonMode(this) === 'ios') {
|
|
2327
|
+
// Cache the original status bar color before the modal is presented
|
|
2328
|
+
this.statusBarStyle = await StatusBar.getStyle();
|
|
2329
|
+
setCardStatusBarDark();
|
|
2358
2330
|
}
|
|
2331
|
+
await present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
|
|
2332
|
+
presentingEl: presentingElement,
|
|
2333
|
+
currentBreakpoint: this.initialBreakpoint,
|
|
2334
|
+
backdropBreakpoint: this.backdropBreakpoint,
|
|
2335
|
+
expandToScroll: this.expandToScroll,
|
|
2336
|
+
});
|
|
2359
2337
|
// Update safe-area based on actual position after animation
|
|
2360
2338
|
this.updateSafeAreaOverrides();
|
|
2361
2339
|
// Apply fullscreen safe-area padding if needed
|
|
@@ -2857,9 +2835,6 @@ const Modal = class {
|
|
|
2857
2835
|
this.cachedOriginalParent.tagName === 'ION-APP') {
|
|
2858
2836
|
return;
|
|
2859
2837
|
}
|
|
2860
|
-
// Both `present()` and a reconnect call this, so drop any existing
|
|
2861
|
-
// observer. Below the guards, so a call that bails cannot leave none.
|
|
2862
|
-
this.cleanupParentRemovalObserver();
|
|
2863
2838
|
this.parentRemovalObserver = new MutationObserver((mutations) => {
|
|
2864
2839
|
mutations.forEach((mutation) => {
|
|
2865
2840
|
if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
|
|
@@ -2938,9 +2913,6 @@ const Modal = class {
|
|
|
2938
2913
|
// Set the internal offset property with the resolved root safe-area-top value
|
|
2939
2914
|
if (context.isSheetModal) {
|
|
2940
2915
|
this.updateSheetOffsetTop();
|
|
2941
|
-
// A restore after a DOM move runs this a second time for the same
|
|
2942
|
-
// modal, so drop the previous subscription rather than stacking one.
|
|
2943
|
-
this.unsubscribeRootSafeAreaTop?.();
|
|
2944
2916
|
this.unsubscribeRootSafeAreaTop = onRootSafeAreaTopChange((safeAreaTop) => this.updateSheetOffsetTop(safeAreaTop));
|
|
2945
2917
|
}
|
|
2946
2918
|
}
|
|
@@ -3059,31 +3031,6 @@ const Modal = class {
|
|
|
3059
3031
|
const { contentEl } = this.findContentAndFooter();
|
|
3060
3032
|
this.clearContentSafeAreaPadding(contentEl);
|
|
3061
3033
|
}
|
|
3062
|
-
/**
|
|
3063
|
-
* Re-applies what `cleanupSafeAreaOverrides()` removed for a modal moved
|
|
3064
|
-
* while presented. Anything needing no measurement goes on synchronously so
|
|
3065
|
-
* the modal is never painted without safe-area. The position-based
|
|
3066
|
-
* correction waits a frame for the layout pass it reads.
|
|
3067
|
-
*/
|
|
3068
|
-
restoreSafeAreaOverrides() {
|
|
3069
|
-
this.setInitialSafeAreaOverrides();
|
|
3070
|
-
this.applyFullscreenSafeArea();
|
|
3071
|
-
raf(() => {
|
|
3072
|
-
// A dismiss or another move can land first, and a read before the enter
|
|
3073
|
-
// animation settles is not the rest position. `present()` redoes it.
|
|
3074
|
-
if (!this.presented || !this.el.isConnected || this.isPresenting) {
|
|
3075
|
-
return;
|
|
3076
|
-
}
|
|
3077
|
-
// A hidden subtree carries `display: none`, so there is no box and the
|
|
3078
|
-
// read would write the safe-area for a modal touching no edge. The
|
|
3079
|
-
// prediction applied above holds until the modal is shown again.
|
|
3080
|
-
const { width, height } = this.el.getBoundingClientRect();
|
|
3081
|
-
if (width === 0 && height === 0) {
|
|
3082
|
-
return;
|
|
3083
|
-
}
|
|
3084
|
-
this.updateSafeAreaOverrides();
|
|
3085
|
-
});
|
|
3086
|
-
}
|
|
3087
3034
|
render() {
|
|
3088
3035
|
const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap, expandToScroll, } = this;
|
|
3089
3036
|
const showHandle = handle !== false && isSheetModal;
|
|
@@ -3091,7 +3038,7 @@ const Modal = class {
|
|
|
3091
3038
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
3092
3039
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
3093
3040
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
3094
|
-
return (h(Host, { key: '
|
|
3041
|
+
return (h(Host, { key: 'a471c293319cb6ee5ffb7ffafec0b8413e4289de', "no-router": true,
|
|
3095
3042
|
// Allow the modal to be navigable when the handle is focusable
|
|
3096
3043
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1, ...htmlAttributes, style: {
|
|
3097
3044
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
@@ -3104,7 +3051,7 @@ const Modal = class {
|
|
|
3104
3051
|
'overlay-hidden': true,
|
|
3105
3052
|
[FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false,
|
|
3106
3053
|
...getClassMap(this.cssClass),
|
|
3107
|
-
}, onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }, h("ion-backdrop", { key: '
|
|
3054
|
+
}, onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }, h("ion-backdrop", { key: 'f67934afd4ddad64623856fb641cb6db846df428', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: 'a23f5cb6cf60c8f717c1dd556bce375829c80a43', class: "modal-shadow" }), h("div", { key: '51eb6cd1070e4b7e49840a78dc7437238c867a01',
|
|
3108
3055
|
/*
|
|
3109
3056
|
role and aria-modal must be used on the
|
|
3110
3057
|
same element. They must also be set inside the
|
|
@@ -3117,9 +3064,9 @@ const Modal = class {
|
|
|
3117
3064
|
without the tabindex focus() would be a no-op and screen readers
|
|
3118
3065
|
may not properly announce the dialog and its content when it opens.
|
|
3119
3066
|
*/
|
|
3120
|
-
role: "dialog", ...inheritedAttributes, "aria-modal": "true", tabIndex: -1, class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }, showHandle && (h("button", { key: '
|
|
3067
|
+
role: "dialog", ...inheritedAttributes, "aria-modal": "true", tabIndex: -1, class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }, showHandle && (h("button", { key: 'f49a144642b5c227c0c2b00b33f4c7e37a2bf088', class: "modal-handle",
|
|
3121
3068
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
3122
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: '
|
|
3069
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: 'e781c0d5881762c6b61aa432721a38b49580ff64', onSlotchange: this.onSlotChange }))));
|
|
3123
3070
|
}
|
|
3124
3071
|
get el() { return getElement(this); }
|
|
3125
3072
|
static get watchers() { return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, e as config, f as printIonWarning, h, g as getElement, d as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, e as config, f as printIonWarning, h, g as getElement, d as Host } from './index-CKYcsw8f.js';
|
|
5
5
|
import { g as getTimeGivenProgression } from './cubic-bezier-hHmYLOfE.js';
|
|
6
|
-
import { l as assert } from './helpers-
|
|
7
|
-
import { l as lifecycle, t as transition, s as setPageHidden, d as LIFECYCLE_WILL_UNLOAD, b as LIFECYCLE_WILL_LEAVE, c as LIFECYCLE_DID_LEAVE } from './index-
|
|
8
|
-
import { b as getIonMode } from './ionic-global-
|
|
9
|
-
import { a as attachComponent } from './framework-delegate-
|
|
6
|
+
import { l as assert } from './helpers-BIgoInJU.js';
|
|
7
|
+
import { l as lifecycle, t as transition, s as setPageHidden, d as LIFECYCLE_WILL_UNLOAD, b as LIFECYCLE_WILL_LEAVE, c as LIFECYCLE_DID_LEAVE } from './index-C8Dsa6li.js';
|
|
8
|
+
import { b as getIonMode } from './ionic-global-lrowsHfi.js';
|
|
9
|
+
import { a as attachComponent } from './framework-delegate-DaLWnISz.js';
|
|
10
10
|
import './dir-Dojwmvde.js';
|
|
11
11
|
|
|
12
12
|
const VIEW_STATE_NEW = 1;
|
|
@@ -115,7 +115,7 @@ const Nav = class {
|
|
|
115
115
|
// We want to set this flag before any watch callbacks are manually called
|
|
116
116
|
this.didLoad = true;
|
|
117
117
|
this.rootChanged();
|
|
118
|
-
this.gesture = (await import('./swipe-back-
|
|
118
|
+
this.gesture = (await import('./swipe-back-rmc7zeNW.js')).createSwipeBackGesture(this.el, this.canStart.bind(this), this.onStart.bind(this), this.onMove.bind(this), this.onEnd.bind(this));
|
|
119
119
|
this.swipeGestureChanged();
|
|
120
120
|
}
|
|
121
121
|
connectedCallback() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, d as Host, g as getElement } from './index-
|
|
5
|
-
import { b as inheritAttributes } from './helpers-
|
|
4
|
+
import { r as registerInstance, h, d as Host, g as getElement } from './index-CKYcsw8f.js';
|
|
5
|
+
import { b as inheritAttributes } from './helpers-BIgoInJU.js';
|
|
6
6
|
import { c as createColorClasses } from './theme-byZM6qHV.js';
|
|
7
|
-
import { b as getIonMode } from './ionic-global-
|
|
7
|
+
import { b as getIonMode } from './ionic-global-lrowsHfi.js';
|
|
8
8
|
import './dir-Dojwmvde.js';
|
|
9
9
|
|
|
10
10
|
const pickerColumnOptionIosCss = () => `.picker-column-option-button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) .picker-column-option-button{cursor:default}`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, d as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, d as Host, g as getElement } from './index-CKYcsw8f.js';
|
|
5
5
|
import { d as doc } from './index-ZjP4CjeZ.js';
|
|
6
|
-
import { r as raf } from './helpers-
|
|
7
|
-
import {
|
|
8
|
-
import { a as isPlatform, b as getIonMode } from './ionic-global-
|
|
6
|
+
import { r as raf } from './helpers-BIgoInJU.js';
|
|
7
|
+
import { b as hapticSelectionStart, a as hapticSelectionChanged, h as hapticSelectionEnd } from './haptic-Cq4UAeka.js';
|
|
8
|
+
import { a as isPlatform, b as getIonMode } from './ionic-global-lrowsHfi.js';
|
|
9
9
|
import { c as createColorClasses } from './theme-byZM6qHV.js';
|
|
10
10
|
import './dir-Dojwmvde.js';
|
|
11
11
|
import './capacitor-CFERIeaU.js';
|
|
@@ -20,12 +20,6 @@ const PickerColumn = class {
|
|
|
20
20
|
this.isColumnVisible = false;
|
|
21
21
|
this.canExitInputMode = true;
|
|
22
22
|
this.updateValueTextOnScroll = false;
|
|
23
|
-
this.isUserScroll = false;
|
|
24
|
-
/**
|
|
25
|
-
* The haptics for the wheel picker are an iOS-only feature. As a result,
|
|
26
|
-
* they should be disabled on Android.
|
|
27
|
-
*/
|
|
28
|
-
this.enableHaptics = false;
|
|
29
23
|
this.ariaLabel = null;
|
|
30
24
|
this.isActive = false;
|
|
31
25
|
/**
|
|
@@ -57,12 +51,6 @@ const PickerColumn = class {
|
|
|
57
51
|
*/
|
|
58
52
|
this.canExitInputMode = canExitInputMode;
|
|
59
53
|
this.updateValueTextOnScroll = false;
|
|
60
|
-
/**
|
|
61
|
-
* This scroll takes over from whatever the user was doing, so an outside
|
|
62
|
-
* press must not commit an option the column is only passing through.
|
|
63
|
-
*/
|
|
64
|
-
this.isUserScroll = false;
|
|
65
|
-
this.stopWatchingForOutsidePress();
|
|
66
54
|
scrollEl.scroll({
|
|
67
55
|
top,
|
|
68
56
|
left: 0,
|
|
@@ -117,117 +105,6 @@ const PickerColumn = class {
|
|
|
117
105
|
}
|
|
118
106
|
this.isActive = state;
|
|
119
107
|
};
|
|
120
|
-
this.clearScrollEndTimeout = () => {
|
|
121
|
-
if (this.scrollEndTimeout) {
|
|
122
|
-
clearTimeout(this.scrollEndTimeout);
|
|
123
|
-
this.scrollEndTimeout = undefined;
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* Resets the idle timer that commits the centered option.
|
|
128
|
-
*/
|
|
129
|
-
this.resetScrollEndTimeout = () => {
|
|
130
|
-
this.clearScrollEndTimeout();
|
|
131
|
-
this.scrollEndTimeout = setTimeout(this.settle, SCROLL_END_DELAY);
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Capture so the column still commits if an application's own pointerdown
|
|
135
|
-
* handler stops the event before it reaches the document.
|
|
136
|
-
*/
|
|
137
|
-
this.watchForOutsidePress = () => {
|
|
138
|
-
doc?.addEventListener('pointerdown', this.onPointerDownOutside, { capture: true });
|
|
139
|
-
};
|
|
140
|
-
this.stopWatchingForOutsidePress = () => {
|
|
141
|
-
doc?.removeEventListener('pointerdown', this.onPointerDownOutside, { capture: true });
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* Resets everything the current scroll interaction is holding, so nothing
|
|
145
|
-
* pending on it can commit later.
|
|
146
|
-
*/
|
|
147
|
-
this.discardScroll = () => {
|
|
148
|
-
this.stopWatchingForOutsidePress();
|
|
149
|
-
this.clearScrollEndTimeout();
|
|
150
|
-
this.scrollEndCallback = undefined;
|
|
151
|
-
this.centeredOption = undefined;
|
|
152
|
-
this.haltedAtScrollTop = undefined;
|
|
153
|
-
this.isScrolling = false;
|
|
154
|
-
this.isUserScroll = false;
|
|
155
|
-
this.canExitInputMode = true;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Commits the option that is currently centered under the highlight and ends
|
|
159
|
-
* the scroll interaction.
|
|
160
|
-
*/
|
|
161
|
-
this.settle = () => {
|
|
162
|
-
const { centeredOption } = this;
|
|
163
|
-
this.clearScrollEndTimeout();
|
|
164
|
-
this.stopWatchingForOutsidePress();
|
|
165
|
-
this.isUserScroll = false;
|
|
166
|
-
this.isScrolling = false;
|
|
167
|
-
this.updateValueTextOnScroll = true;
|
|
168
|
-
this.enableHaptics && hapticSelectionEnd();
|
|
169
|
-
/**
|
|
170
|
-
* Certain tasks (such as those that
|
|
171
|
-
* cause re-renders) should only be done
|
|
172
|
-
* once scrolling has finished, otherwise
|
|
173
|
-
* flickering may occur.
|
|
174
|
-
*/
|
|
175
|
-
const { scrollEndCallback } = this;
|
|
176
|
-
if (scrollEndCallback) {
|
|
177
|
-
scrollEndCallback();
|
|
178
|
-
this.scrollEndCallback = undefined;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Reset this flag as the
|
|
182
|
-
* next scroll interaction could
|
|
183
|
-
* be a scroll from the user. In this
|
|
184
|
-
* case, we should exit input mode.
|
|
185
|
-
*/
|
|
186
|
-
this.canExitInputMode = true;
|
|
187
|
-
if (centeredOption !== undefined) {
|
|
188
|
-
// Cleared here so a later scroll that centers nothing cannot fall back on it.
|
|
189
|
-
this.centeredOption = undefined;
|
|
190
|
-
if (centeredOption.isConnected) {
|
|
191
|
-
this.setValue(centeredOption.value);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Commits the option the user can see when they press anything outside of the
|
|
197
|
-
* column during a scroll they started. This runs on pointerdown rather than
|
|
198
|
-
* click so the value is up to date by the time an application's own click
|
|
199
|
-
* handler (a Save button, for example) reads it.
|
|
200
|
-
*/
|
|
201
|
-
this.onPointerDownOutside = (ev) => {
|
|
202
|
-
const { centeredOption, parentEl, scrollEl } = this;
|
|
203
|
-
if (!this.isScrolling) {
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* The column can live in another component's Shadow DOM, where a document
|
|
208
|
-
* listener sees the target retargeted to the outer host. The composed path
|
|
209
|
-
* is the only reliable way to tell a press on the column apart.
|
|
210
|
-
*/
|
|
211
|
-
const path = ev.composedPath();
|
|
212
|
-
/**
|
|
213
|
-
* A press anywhere in the parent picker counts as inside, so reaching for a
|
|
214
|
-
* sibling wheel leaves this column coasting.
|
|
215
|
-
*/
|
|
216
|
-
if (path.includes(this.el) || (parentEl != null && path.includes(parentEl))) {
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Landing on the centered option halts the in-flight momentum scroll, so the
|
|
221
|
-
* committed value and the option the user is left looking at agree. The
|
|
222
|
-
* option list can be replaced mid-scroll, and a detached option has no
|
|
223
|
-
* offset to center on.
|
|
224
|
-
*/
|
|
225
|
-
if (centeredOption !== undefined && centeredOption.isConnected) {
|
|
226
|
-
this.centerPickerItemInView(centeredOption, false, false);
|
|
227
|
-
this.haltedAtScrollTop = scrollEl?.scrollTop;
|
|
228
|
-
}
|
|
229
|
-
this.settle();
|
|
230
|
-
};
|
|
231
108
|
/**
|
|
232
109
|
* When the column scrolls, the component
|
|
233
110
|
* needs to determine which item is centered
|
|
@@ -235,42 +112,27 @@ const PickerColumn = class {
|
|
|
235
112
|
* the item object.
|
|
236
113
|
*/
|
|
237
114
|
this.initializeScrollListener = () => {
|
|
238
|
-
|
|
115
|
+
/**
|
|
116
|
+
* The haptics for the wheel picker are
|
|
117
|
+
* an iOS-only feature. As a result, they should
|
|
118
|
+
* be disabled on Android.
|
|
119
|
+
*/
|
|
120
|
+
const enableHaptics = isPlatform('ios');
|
|
239
121
|
const { el, scrollEl } = this;
|
|
122
|
+
let timeout;
|
|
240
123
|
let activeEl = this.activeItem;
|
|
241
124
|
const scrollCallback = () => {
|
|
242
125
|
raf(() => {
|
|
243
|
-
|
|
244
|
-
* This frame cannot be cancelled, and moving the column disconnects it
|
|
245
|
-
* without the observer reporting a change, so this checks live state.
|
|
246
|
-
*/
|
|
247
|
-
if (!this.el.isConnected || !this.isColumnVisible || !scrollEl)
|
|
126
|
+
if (!scrollEl)
|
|
248
127
|
return;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
* Still at the halted position, so this frame is the halt landing
|
|
253
|
-
* rather than the wheel moving, and re-arming would start a second
|
|
254
|
-
* commit cycle.
|
|
255
|
-
*/
|
|
256
|
-
if (Math.abs(scrollEl.scrollTop - haltedAtScrollTop) <= HALT_TOLERANCE)
|
|
257
|
-
return;
|
|
258
|
-
this.haltedAtScrollTop = undefined;
|
|
128
|
+
if (timeout) {
|
|
129
|
+
clearTimeout(timeout);
|
|
130
|
+
timeout = undefined;
|
|
259
131
|
}
|
|
260
|
-
// Armed before the early returns below, so a scroll never ends uncommitted.
|
|
261
|
-
this.resetScrollEndTimeout();
|
|
262
132
|
if (!this.isScrolling) {
|
|
263
|
-
|
|
133
|
+
enableHaptics && hapticSelectionStart();
|
|
264
134
|
this.isScrolling = true;
|
|
265
135
|
}
|
|
266
|
-
/**
|
|
267
|
-
* Only a user-driven scroll holds an uncommitted selection. Checked every
|
|
268
|
-
* frame because the user can take hold of the wheel mid-scroll, and
|
|
269
|
-
* re-adding the same listener is a no-op.
|
|
270
|
-
*/
|
|
271
|
-
if (this.isUserScroll) {
|
|
272
|
-
this.watchForOutsidePress();
|
|
273
|
-
}
|
|
274
136
|
/**
|
|
275
137
|
* Select item in the center of the column
|
|
276
138
|
* which is the month/year that we want to select
|
|
@@ -330,23 +192,18 @@ const PickerColumn = class {
|
|
|
330
192
|
newActiveElement = fallbackActiveElement;
|
|
331
193
|
}
|
|
332
194
|
}
|
|
333
|
-
/**
|
|
334
|
-
* A scroll can land with no selectable option centered, such as an
|
|
335
|
-
* overscroll bounce briefly centering the empty padding rows. Keep the
|
|
336
|
-
* current selection until an option is centered again.
|
|
337
|
-
*/
|
|
338
|
-
if (newActiveElement === undefined || newActiveElement.disabled) {
|
|
339
|
-
return;
|
|
340
|
-
}
|
|
341
195
|
if (activeEl !== undefined) {
|
|
342
196
|
this.setPickerItemActiveState(activeEl, false);
|
|
343
197
|
}
|
|
198
|
+
if (newActiveElement === undefined || newActiveElement.disabled) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
344
201
|
/**
|
|
345
202
|
* If we are selecting a new value,
|
|
346
203
|
* we need to run haptics again.
|
|
347
204
|
*/
|
|
348
205
|
if (newActiveElement !== activeEl) {
|
|
349
|
-
|
|
206
|
+
enableHaptics && hapticSelectionChanged();
|
|
350
207
|
if (this.canExitInputMode) {
|
|
351
208
|
/**
|
|
352
209
|
* The native iOS wheel picker
|
|
@@ -378,14 +235,32 @@ const PickerColumn = class {
|
|
|
378
235
|
if (this.updateValueTextOnScroll) {
|
|
379
236
|
this.assistiveFocusable?.setAttribute('aria-valuetext', this.getOptionValueText(newActiveElement));
|
|
380
237
|
}
|
|
381
|
-
|
|
238
|
+
timeout = setTimeout(() => {
|
|
239
|
+
this.isScrolling = false;
|
|
240
|
+
this.updateValueTextOnScroll = true;
|
|
241
|
+
enableHaptics && hapticSelectionEnd();
|
|
242
|
+
/**
|
|
243
|
+
* Certain tasks (such as those that
|
|
244
|
+
* cause re-renders) should only be done
|
|
245
|
+
* once scrolling has finished, otherwise
|
|
246
|
+
* flickering may occur.
|
|
247
|
+
*/
|
|
248
|
+
const { scrollEndCallback } = this;
|
|
249
|
+
if (scrollEndCallback) {
|
|
250
|
+
scrollEndCallback();
|
|
251
|
+
this.scrollEndCallback = undefined;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Reset this flag as the
|
|
255
|
+
* next scroll interaction could
|
|
256
|
+
* be a scroll from the user. In this
|
|
257
|
+
* case, we should exit input mode.
|
|
258
|
+
*/
|
|
259
|
+
this.canExitInputMode = true;
|
|
260
|
+
this.setValue(newActiveElement.value);
|
|
261
|
+
}, 250);
|
|
382
262
|
});
|
|
383
263
|
};
|
|
384
|
-
const userScrollCallback = () => {
|
|
385
|
-
this.isUserScroll = true;
|
|
386
|
-
// Taking hold of the wheel ends the halt even if it has not moved yet.
|
|
387
|
-
this.haltedAtScrollTop = undefined;
|
|
388
|
-
};
|
|
389
264
|
/**
|
|
390
265
|
* Wrap this in an raf so that the scroll callback
|
|
391
266
|
* does not fire when component is initially shown.
|
|
@@ -394,19 +269,8 @@ const PickerColumn = class {
|
|
|
394
269
|
if (!scrollEl)
|
|
395
270
|
return;
|
|
396
271
|
scrollEl.addEventListener('scroll', scrollCallback);
|
|
397
|
-
scrollEl.addEventListener('pointerdown', userScrollCallback);
|
|
398
|
-
scrollEl.addEventListener('wheel', userScrollCallback, { passive: true });
|
|
399
|
-
/**
|
|
400
|
-
* A `pointerdown` fires once per touch, so a drag that pauses long enough
|
|
401
|
-
* to commit would look like a scroll the column started. A `touchmove`
|
|
402
|
-
* keeps arriving while the finger moves.
|
|
403
|
-
*/
|
|
404
|
-
scrollEl.addEventListener('touchmove', userScrollCallback, { passive: true });
|
|
405
272
|
this.destroyScrollListener = () => {
|
|
406
273
|
scrollEl.removeEventListener('scroll', scrollCallback);
|
|
407
|
-
scrollEl.removeEventListener('pointerdown', userScrollCallback);
|
|
408
|
-
scrollEl.removeEventListener('wheel', userScrollCallback);
|
|
409
|
-
scrollEl.removeEventListener('touchmove', userScrollCallback);
|
|
410
274
|
};
|
|
411
275
|
});
|
|
412
276
|
};
|
|
@@ -589,14 +453,6 @@ const PickerColumn = class {
|
|
|
589
453
|
}
|
|
590
454
|
else {
|
|
591
455
|
this.isColumnVisible = false;
|
|
592
|
-
/**
|
|
593
|
-
* The pending timer still runs so it resets the scroll state, but the
|
|
594
|
-
* option it would have committed is dropped. A column the user cannot
|
|
595
|
-
* see should not change its value.
|
|
596
|
-
*/
|
|
597
|
-
this.stopWatchingForOutsidePress();
|
|
598
|
-
this.centeredOption = undefined;
|
|
599
|
-
this.haltedAtScrollTop = undefined;
|
|
600
456
|
if (this.destroyScrollListener) {
|
|
601
457
|
this.destroyScrollListener();
|
|
602
458
|
this.destroyScrollListener = undefined;
|
|
@@ -667,13 +523,6 @@ const PickerColumn = class {
|
|
|
667
523
|
connectedCallback() {
|
|
668
524
|
this.ariaLabel = this.el.getAttribute('aria-label') ?? 'Select a value';
|
|
669
525
|
}
|
|
670
|
-
disconnectedCallback() {
|
|
671
|
-
/**
|
|
672
|
-
* A pending settle would otherwise commit a value on a column that is no
|
|
673
|
-
* longer in the DOM.
|
|
674
|
-
*/
|
|
675
|
-
this.discardScroll();
|
|
676
|
-
}
|
|
677
526
|
get activeItem() {
|
|
678
527
|
const { value } = this;
|
|
679
528
|
const options = Array.from(this.el.querySelectorAll('ion-picker-column-option'));
|
|
@@ -691,14 +540,14 @@ const PickerColumn = class {
|
|
|
691
540
|
render() {
|
|
692
541
|
const { color, disabled, isActive, numericInput } = this;
|
|
693
542
|
const mode = getIonMode(this);
|
|
694
|
-
return (h(Host, { key: '
|
|
543
|
+
return (h(Host, { key: '78b46ad10d88ea1bb43ca8c36748767912f03224', class: createColorClasses(color, {
|
|
695
544
|
[mode]: true,
|
|
696
545
|
['picker-column-active']: isActive,
|
|
697
546
|
['picker-column-numeric-input']: numericInput,
|
|
698
547
|
['picker-column-disabled']: disabled,
|
|
699
|
-
}) }, h("slot", { key: '
|
|
548
|
+
}) }, h("slot", { key: '761e501df77f7de896ffb3ebb99ebf88c5c3bf70', name: "prefix" }), h("div", { key: '9f4caaeef8ab704522a85f30876d371712f47c5c', class: "picker-opts", ref: (el) => {
|
|
700
549
|
this.scrollEl = el;
|
|
701
|
-
}, role: "slider", tabindex: this.disabled ? undefined : 0, "aria-label": this.ariaLabel, "aria-valuemin": 0, "aria-valuemax": 0, "aria-valuenow": 0, "aria-valuetext": this.getOptionValueText(this.activeItem), "aria-orientation": "vertical", onKeyDown: (ev) => this.onKeyDown(ev) }, h("div", { key: '
|
|
550
|
+
}, role: "slider", tabindex: this.disabled ? undefined : 0, "aria-label": this.ariaLabel, "aria-valuemin": 0, "aria-valuemax": 0, "aria-valuenow": 0, "aria-valuetext": this.getOptionValueText(this.activeItem), "aria-orientation": "vertical", onKeyDown: (ev) => this.onKeyDown(ev) }, h("div", { key: '9d3533436aba6c61c93f65f84a077fba832194a0', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '3f18d3a47361f06f55321b65fdf5742a61722b26', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: 'eac0d20ab8c533ef829875e323e93e1ee2067d6d', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("slot", { key: '92e25989ef41cf6f910c73238e1a0a5ac03f1c1f' }), h("div", { key: '33a84644ebdc84108b44a8e3a129b54e824939c8', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '128ad61a3a68c7ff2d2e44a6e968424fcc608a15', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '6e4d59a4f75befcbbf47279a263f28a69b12dbbd', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0")), h("slot", { key: '3c6621b64438792a3024c90e3d9916a0a3614506', name: "suffix" })));
|
|
702
551
|
}
|
|
703
552
|
get el() { return getElement(this); }
|
|
704
553
|
static get watchers() { return {
|
|
@@ -711,19 +560,6 @@ const PickerColumn = class {
|
|
|
711
560
|
}; }
|
|
712
561
|
};
|
|
713
562
|
const PICKER_ITEM_ACTIVE_CLASS = 'option-active';
|
|
714
|
-
/**
|
|
715
|
-
* How long the column must be idle before the centered option is treated as
|
|
716
|
-
* the user's selection. Replaceable by the `scrollend` event once that is
|
|
717
|
-
* supported everywhere (https://caniuse.com/?search=scrollend).
|
|
718
|
-
*/
|
|
719
|
-
const SCROLL_END_DELAY = 250;
|
|
720
|
-
/**
|
|
721
|
-
* How far, in pixels, the column may report from where it was halted and still
|
|
722
|
-
* count as having stayed there. Centering targets a position between two snap
|
|
723
|
-
* points, so mandatory snapping corrects it by half the column height less
|
|
724
|
-
* three option heights: 2px at the default sizes.
|
|
725
|
-
*/
|
|
726
|
-
const HALT_TOLERANCE = 2;
|
|
727
563
|
PickerColumn.style = pickerColumnCss();
|
|
728
564
|
|
|
729
565
|
export { PickerColumn as ion_picker_column };
|