@ionic/core 9.0.4-nightly.20260911 → 9.0.4-nightly.20260915
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/components/p--pR3YKVX.js +4 -0
- package/components/{p-BJr2B5hZ.js → p-2ta4uE9-.js} +1 -1
- package/components/{p-YjMkHuvH.js → p-47h0_nN4.js} +1 -1
- package/components/{p-C8Ck7_Eo.js → p-8MzqWBTT.js} +1 -1
- package/components/{p-CNLioZ3B.js → p-BGChz0G8.js} +1 -1
- package/components/{p-DZRZic9C.js → p-BLe-edUh.js} +1 -1
- package/components/{p-CJgnoKcN.js → p-BMHhG7Xh.js} +1 -1
- package/components/{p-TWw4e4sO.js → p-BPbgEuCf.js} +1 -1
- package/components/{p-DnBNYc7u.js → p-Bc-3W2an.js} +1 -1
- package/{dist/ionic/p-DTxBioUO.js → components/p-BezPzC13.js} +1 -1
- package/components/{p-B1_TL6RQ.js → p-BezRi1ML.js} +1 -1
- package/components/p-Bi8VGu4M.js +4 -0
- package/components/{p-DL13ieTa.js → p-BjizFeM6.js} +1 -1
- package/components/{p-BF48Oc0v.js → p-BuxZkazO.js} +1 -1
- package/components/p-BxCcX93a.js +4 -0
- package/components/{p-BW_SlU2D.js → p-C0tpzcpi.js} +1 -1
- package/components/{p-DMBiAyOR.js → p-C6WYVtle.js} +1 -1
- package/components/p-CDt7Q7Dj.js +4 -0
- package/components/p-CDvyV0r0.js +4 -0
- package/components/{p-C4VpVfrJ.js → p-CEs5NmKW.js} +1 -1
- package/components/{p-CMRYD_yR.js → p-CLVgYpRn.js} +1 -1
- package/components/{p-Cd1WaN-0.js → p-CMT0YmOj.js} +1 -1
- package/components/{p-DFLJvuRK.js → p-CPGp3WWG.js} +1 -1
- package/components/{p-B4lxwJ8N.js → p-CXuRZoWE.js} +1 -1
- package/components/{p-D7wDJdFn.js → p-CaY8IRMT.js} +1 -1
- package/components/{p-BQyuFxYc.js → p-CcOl6jEv.js} +1 -1
- package/components/{p-Ctop2IWW.js → p-CeGQfrDU.js} +1 -1
- package/components/{p-cEN43Ahr.js → p-CkffScdn.js} +1 -1
- package/components/{p-BT9-hMMz.js → p-CpcdCRug.js} +1 -1
- package/components/{p-Hp8t4RMX.js → p-Csi6iX-c.js} +1 -1
- package/components/{p-1sJ0ZDPe.js → p-CthoZqG1.js} +1 -1
- package/components/{p-Fl7ZFU74.js → p-DBGxvxkE.js} +1 -1
- package/components/p-DEvF_E6y.js +4 -0
- package/components/{p-COO0eJOA.js → p-DKX1mWld.js} +1 -1
- package/components/{p-CqbGBmqb.js → p-DMT-4tHM.js} +1 -1
- package/components/p-DOwsU7Mc.js +4 -0
- package/components/{p-5ldEpNdG.js → p-DSuBagxs.js} +1 -1
- package/{dist/ionic/p-DZ6Hmc-8.js → components/p-DVHC9GYb.js} +1 -1
- package/components/p-DWe-YApm.js +4 -0
- package/components/{p-Bi-it1EH.js → p-DX_3N4fh.js} +1 -1
- package/components/{p-C-NbvXu4.js → p-DcrAT6v8.js} +1 -1
- package/components/p-DftucGJR.js +4 -0
- package/components/{p-qAXsfUff.js → p-HO1CDBeU.js} +1 -1
- package/components/{p-DM1gJSMP.js → p-MLplUp3U.js} +1 -1
- package/{dist/ionic/p-BMiZX1LT.js → components/p-MOwrp7hX.js} +1 -1
- package/components/{p-D5w_FlVa.js → p-MSr4IlyS.js} +1 -1
- package/components/{p-GGbIHyEF.js → p-PWHvigWP.js} +1 -1
- package/components/p-S-gGoI4A.js +4 -0
- package/components/{p-BYJRZKHa.js → p-gyjG_IM4.js} +1 -1
- package/components/p-k92zpBT6.js +4 -0
- package/components/{p-DxhHlJln.js → p-rDUBp56G.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-Kd1N7WTN.js → animation-2DHlng-f.js} +3 -3
- package/dist/cjs/{app-globals-b1G4t26O.js → app-globals-BeC95igM.js} +1 -1
- package/dist/cjs/{button-active-CQCFubJJ.js → button-active-CTyeZB16.js} +2 -2
- package/dist/cjs/{capacitor-DmA66EwP.js → capacitor-cADDPMtd.js} +3 -3
- package/dist/cjs/{format-bHU8N1g5.js → format-BbkxKT7p.js} +1 -1
- package/dist/cjs/{framework-delegate-d-fWfeI6.js → framework-delegate-DYIuFqQx.js} +1 -1
- package/dist/cjs/{haptic-Ch-X4gRx.js → haptic-CqPss9_L.js} +1 -1
- package/dist/cjs/{helpers-7wzdhdeg.js → helpers-DHjAEaU9.js} +45 -1
- package/dist/cjs/{index-C74Q3t6a.js → index-B-R-H1Z2.js} +7 -8
- package/dist/cjs/{index-DtvKGwdh.js → index-BLq7TkUV.js} +2 -2
- package/dist/cjs/{index-CQfEIyLK.js → index-D_D542p0.js} +4 -4
- package/dist/cjs/{index-DFNrCX7M.js → index-Da83wbmS.js} +8 -9
- package/dist/cjs/{index-KiSZqhYS.js → index-MdIUU940.js} +1 -1
- package/dist/cjs/{index-DXoo08JC.js → index-T36W_eKv.js} +13 -8
- package/dist/cjs/index.cjs.js +17 -19
- package/dist/cjs/{input-shims-VJIiKBKv.js → input-shims-DYxL0Fdm.js} +16 -17
- package/dist/cjs/{input.utils-EHVE2RK_.js → input.utils-B_32Xwga.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-action-sheet.cjs.entry.js +26 -28
- package/dist/cjs/ion-alert.cjs.entry.js +27 -29
- package/dist/cjs/ion-app_8.cjs.entry.js +72 -24
- 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 +7 -9
- 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 +12 -16
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +18 -20
- package/dist/cjs/ion-menu_3.cjs.entry.js +15 -17
- package/dist/cjs/ion-modal.cjs.entry.js +177 -172
- 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 +8 -9
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +18 -20
- 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 +8 -9
- package/dist/cjs/ion-reorder_2.cjs.entry.js +6 -7
- 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 +3 -3
- package/dist/cjs/ion-select-modal.cjs.entry.js +8 -10
- package/dist/cjs/ion-select_3.cjs.entry.js +71 -53
- 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 +6 -7
- 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 +11 -15
- package/dist/cjs/ion-toast.cjs.entry.js +49 -51
- package/dist/cjs/ion-toggle.cjs.entry.js +6 -7
- package/dist/cjs/{ionic-global-CYJNT-2P.js → ionic-global-BWd7usAF.js} +1 -1
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-DYGiD6gM.js → ios.transition-6AFNO6uU.js} +4 -5
- package/dist/cjs/{item-multiple-inputs-Dv6qrMhm.js → item-multiple-inputs-BaBx_Te8.js} +1 -1
- package/dist/cjs/{keyboard-Cix5TVkD.js → keyboard-BJEm-3HF.js} +5 -3
- package/dist/cjs/{keyboard-cHxZlTyz.js → keyboard-DstMw6u1.js} +1 -1
- package/dist/cjs/{keyboard-controller-PtZoN2GS.js → keyboard-controller-DaUNT15d.js} +9 -9
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-CrSkaoz6.js → md.transition-CPq0ckrU.js} +4 -5
- package/dist/cjs/{overlays-BR21NUIG.js → overlays-DwMDYc_O.js} +162 -9
- package/dist/cjs/{select-option-render-D8ZEjYji.js → select-option-render-Cu-ABBRH.js} +2 -2
- package/dist/cjs/{slot-mutation-controller-D6IjSEIh.js → slot-mutation-controller-CtYZdaWI.js} +73 -5
- package/dist/cjs/{status-tap-CNP5eD1R.js → status-tap-BUfv_eD4.js} +3 -3
- package/dist/cjs/{swipe-back-BYb_nLJe.js → swipe-back-DYKxJU5r.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/content/content.js +62 -8
- package/dist/collection/components/input/input.ios.css +6 -0
- package/dist/collection/components/input/input.js +6 -9
- package/dist/collection/components/input/input.md.css +6 -0
- package/dist/collection/components/modal/modal.ios.css +12 -1
- package/dist/collection/components/modal/modal.js +31 -8
- package/dist/collection/components/modal/modal.md.css +12 -1
- package/dist/collection/components/modal/safe-area-utils.js +69 -90
- package/dist/collection/components/modal/utils.js +7 -0
- package/dist/collection/components/select/select.ios.css +1 -1
- package/dist/collection/components/select/select.js +67 -38
- package/dist/collection/components/select/select.md.css +1 -1
- package/dist/collection/components/textarea/textarea.ios.css +15 -1
- package/dist/collection/components/textarea/textarea.js +5 -8
- package/dist/collection/components/textarea/textarea.md.css +15 -1
- package/dist/collection/utils/forms/click-controller.js +70 -0
- package/dist/collection/utils/forms/index.js +1 -0
- package/dist/collection/utils/helpers.js +39 -0
- package/dist/collection/utils/overlays.js +34 -0
- package/dist/docs.json +9 -3
- package/dist/esm/{animation-BFNVlYum.js → animation-CAzXJ2I1.js} +2 -2
- package/dist/esm/{app-globals-BgX0BGL1.js → app-globals-DGJXnnkm.js} +1 -1
- package/dist/esm/{button-active-BfOvDr3b.js → button-active-DyyWVqU3.js} +2 -2
- package/dist/esm/{capacitor-CFERIeaU.js → capacitor-C041I3qZ.js} +1 -1
- package/dist/esm/{format-DDFE9jM5.js → format-D78cdY12.js} +1 -1
- package/dist/esm/{framework-delegate-BwNhx9NR.js → framework-delegate-CUDbUfWS.js} +1 -1
- package/dist/esm/{haptic-Cq4UAeka.js → haptic-D3njgGLB.js} +1 -1
- package/dist/esm/{helpers-BSmc0nst.js → helpers-BJFnZngp.js} +43 -2
- package/dist/esm/{index-DnA_7Bnx.js → index-CdoVp_rZ.js} +4 -4
- package/dist/esm/{index-D76bbuoi.js → index-DmnOg_xm.js} +1 -1
- package/dist/esm/{index-CJln0gS3.js → index-DoY4e_3F.js} +2 -3
- package/dist/esm/{index-C23AVPx9.js → index-Dvqtt_WK.js} +13 -8
- package/dist/esm/{index-BuPaALjU.js → index-iurdcGHg.js} +5 -6
- package/dist/esm/{index-C1b9CLFg.js → index-obGyiHiO.js} +2 -2
- package/dist/esm/index.js +11 -13
- package/dist/esm/{input-shims-Dqk-Ou25.js → input-shims-DognYvwv.js} +5 -6
- package/dist/esm/{input.utils-rqoH22pW.js → input.utils-C3mVJhji.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +3 -3
- package/dist/esm/ion-action-sheet.entry.js +11 -13
- package/dist/esm/ion-alert.entry.js +11 -13
- package/dist/esm/ion-app_8.entry.js +72 -24
- 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 +6 -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-otp.entry.js +3 -3
- package/dist/esm/ion-input-password-toggle.entry.js +2 -2
- package/dist/esm/ion-input.entry.js +12 -16
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +7 -9
- package/dist/esm/ion-menu_3.entry.js +7 -9
- package/dist/esm/ion-modal.entry.js +115 -110
- 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 +5 -6
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +7 -9
- 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 +8 -9
- package/dist/esm/ion-reorder_2.entry.js +6 -7
- 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 +3 -3
- package/dist/esm/ion-select-modal.entry.js +7 -9
- package/dist/esm/ion-select_3.entry.js +66 -48
- 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 +6 -7
- 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 +11 -15
- package/dist/esm/ion-toast.entry.js +7 -9
- package/dist/esm/ion-toggle.entry.js +6 -7
- package/dist/esm/{ionic-global-ZXjCXKH0.js → ionic-global-BSaFA7np.js} +1 -1
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-CWAgfQ1r.js → ios.transition-ofa92pAl.js} +4 -5
- package/dist/esm/{item-multiple-inputs-DZnIiOO_.js → item-multiple-inputs-CffmpUe9.js} +1 -1
- package/dist/esm/{keyboard-DAF8GNJ9.js → keyboard-Cz4hUjuj.js} +1 -1
- package/dist/esm/{keyboard-Cj8mLJeq.js → keyboard-Dsc85bts.js} +5 -3
- package/dist/esm/{keyboard-controller-DEwoa1ev.js → keyboard-controller-BLvRgxgP.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-ZuqDDdDW.js → md.transition-DnFfqsAv.js} +4 -5
- package/dist/esm/{overlays-DKE0DgvE.js → overlays-a_5AhqWk.js} +156 -7
- package/dist/esm/{select-option-render-CRP_teb1.js → select-option-render-C_PCwA67.js} +2 -2
- package/dist/esm/{slot-mutation-controller-B5NpUZ-N.js → slot-mutation-controller-D7n8Peo2.js} +69 -3
- package/dist/esm/{status-tap-Cv9gb3ja.js → status-tap-BsTKKfug.js} +3 -3
- package/dist/esm/{swipe-back-B2CmabKY.js → swipe-back-ibFGqXH2.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-063769cf.entry.js +4 -0
- package/dist/ionic/{p-d8c138d9.entry.js → p-097a0cf5.entry.js} +1 -1
- package/dist/ionic/{p-ec00fd0d.entry.js → p-0a14a6a3.entry.js} +1 -1
- package/dist/ionic/p-0a824cef.entry.js +4 -0
- package/dist/ionic/{p-9c5f2691.entry.js → p-12ea6d13.entry.js} +1 -1
- package/dist/ionic/p-1c4926e9.entry.js +4 -0
- package/dist/ionic/p-1dac4211.entry.js +4 -0
- package/dist/ionic/{p-a8ff2489.entry.js → p-23afeeb2.entry.js} +1 -1
- package/dist/ionic/{p-ca1b8865.entry.js → p-25abc69d.entry.js} +1 -1
- package/dist/ionic/{p-099b7f9f.entry.js → p-26d89234.entry.js} +1 -1
- package/dist/ionic/{p-8b80d9f9.entry.js → p-28952272.entry.js} +1 -1
- package/dist/ionic/{p-5cc09b40.entry.js → p-29687c0b.entry.js} +1 -1
- package/dist/ionic/p-2ecebfd9.entry.js +4 -0
- package/dist/ionic/p-302e4d74.entry.js +4 -0
- package/dist/ionic/p-38d3e1cb.entry.js +4 -0
- package/dist/ionic/p-41254776.entry.js +4 -0
- package/dist/ionic/{p-6e386853.entry.js → p-416bec74.entry.js} +1 -1
- package/dist/ionic/{p-354d38d3.entry.js → p-41ae57ea.entry.js} +1 -1
- package/dist/ionic/{p-7bfeccb3.entry.js → p-4dc3f2b3.entry.js} +1 -1
- package/dist/ionic/{p-efc0cf82.entry.js → p-5272e103.entry.js} +1 -1
- package/dist/ionic/{p-68cc89a6.entry.js → p-59305088.entry.js} +1 -1
- package/dist/ionic/p-5b9b245e.entry.js +4 -0
- package/dist/ionic/{p-561af487.entry.js → p-5eadc64e.entry.js} +1 -1
- package/dist/ionic/p-5f695204.entry.js +4 -0
- package/dist/ionic/{p-38b9375b.entry.js → p-60ca717e.entry.js} +1 -1
- package/dist/ionic/{p-4c3e50f8.entry.js → p-63eb4550.entry.js} +1 -1
- package/dist/ionic/{p-90f50a65.entry.js → p-689f7a37.entry.js} +1 -1
- package/dist/ionic/{p-54cbb0a7.entry.js → p-7da532af.entry.js} +1 -1
- package/dist/ionic/{p-271c3640.entry.js → p-84dea138.entry.js} +1 -1
- package/dist/ionic/{p-4712a8a9.entry.js → p-88cf4127.entry.js} +1 -1
- package/dist/ionic/{p-3bba83ee.entry.js → p-89e04e63.entry.js} +1 -1
- package/dist/ionic/{p-dd01be0a.entry.js → p-8af458bf.entry.js} +1 -1
- package/dist/ionic/p-8d68604a.entry.js +4 -0
- package/dist/ionic/p-B13Uv-FT.js +4 -0
- package/dist/ionic/p-B8K6OHqa.js +4 -0
- package/dist/ionic/p-BD0v0Sx_.js +4 -0
- package/dist/ionic/p-BDs20Dfe.js +4 -0
- package/dist/ionic/p-BIj0Lfim.js +4 -0
- package/dist/ionic/p-BRZstBYy.js +4 -0
- package/dist/ionic/{p-T71k3C35.js → p-BRlwrQ6h.js} +1 -1
- package/dist/ionic/{p-DYUjHcuH.js → p-BT0-h-eD.js} +1 -1
- package/dist/ionic/p-Ba_yQZdQ.js +4 -0
- package/dist/ionic/p-BnMJqJBa.js +4 -0
- package/{components/p-6ZLn6K5e.js → dist/ionic/p-BrbwGxm1.js} +1 -1
- package/dist/ionic/p-Bu6uWqQM.js +4 -0
- package/dist/ionic/p-Bx46Dlpo.js +4 -0
- package/dist/ionic/p-C0vJzNM9.js +4 -0
- package/dist/ionic/p-C4FdGOym.js +4 -0
- package/dist/ionic/p-C5SsTfux.js +4 -0
- package/dist/ionic/p-CD77BF32.js +4 -0
- package/dist/ionic/p-CESQIy-V.js +4 -0
- package/dist/ionic/{p-BaeKWZ-a.js → p-CazJOH5P.js} +1 -1
- package/dist/ionic/p-D14knedj.js +4 -0
- package/dist/ionic/p-DQcKi6P6.js +4 -0
- package/dist/ionic/p-DlvB1Idh.js +4 -0
- package/dist/ionic/{p-C23AVPx9.js → p-Dvqtt_WK.js} +1 -1
- package/dist/ionic/{p-CJv-wOAd.js → p-NL1pxcde.js} +1 -1
- package/dist/ionic/{p-191a651e.entry.js → p-a1d733a3.entry.js} +1 -1
- package/dist/ionic/p-a4a2ce90.entry.js +4 -0
- package/dist/ionic/p-a6a95175.entry.js +4 -0
- package/dist/ionic/p-ac6a1168.entry.js +4 -0
- package/dist/ionic/{p-cc4320d3.entry.js → p-bcf18c26.entry.js} +1 -1
- package/dist/ionic/p-be8ae1cc.entry.js +4 -0
- package/dist/ionic/{p-85599fe3.entry.js → p-c0dd14f4.entry.js} +1 -1
- package/dist/ionic/{p-f0fb23c1.entry.js → p-c9952851.entry.js} +1 -1
- package/dist/ionic/p-cb893f35.entry.js +4 -0
- package/dist/ionic/p-d7fb1d2a.entry.js +4 -0
- package/dist/ionic/{p-ee09ac9d.entry.js → p-d8a6ebfd.entry.js} +1 -1
- package/dist/ionic/{p-7fbb3319.entry.js → p-dd89474c.entry.js} +1 -1
- package/dist/ionic/{p-fe9ed9bd.entry.js → p-df272a41.entry.js} +1 -1
- package/dist/ionic/{p-b9b4e85d.entry.js → p-e04a7110.entry.js} +1 -1
- package/dist/ionic/{p-D7jHfs0Y.js → p-e0g1fYYm.js} +1 -1
- package/dist/ionic/{p-a8df96c8.entry.js → p-e3a98575.entry.js} +1 -1
- package/dist/ionic/{p-d6755739.entry.js → p-efa78f73.entry.js} +1 -1
- package/dist/ionic/{p-1f24cb24.entry.js → p-f97ef975.entry.js} +1 -1
- package/dist/ionic/p-fc3312a4.entry.js +4 -0
- package/dist/ionic/{p-5d9094ac.entry.js → p-fd220f9c.entry.js} +1 -1
- package/dist/ionic/p-g9SK-dv1.js +4 -0
- package/dist/ionic/p-yYEBg4iw.js +4 -0
- package/dist/ionic/{p-BMPN55of.js → p-yiP8rgDC.js} +1 -1
- package/dist/types/components/content/content.d.ts +28 -3
- package/dist/types/components/input/input.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +9 -1
- package/dist/types/components/modal/safe-area-utils.d.ts +28 -14
- package/dist/types/components/modal/utils.d.ts +4 -0
- package/dist/types/components/select/select.d.ts +11 -0
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/dist/types/utils/forms/click-controller.d.ts +36 -0
- package/dist/types/utils/forms/index.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +17 -0
- package/dist/types/utils/overlays.d.ts +15 -0
- package/hydrate/index.js +454 -194
- package/hydrate/index.mjs +454 -194
- package/package.json +1 -1
- package/components/p-BNIsryb2.js +0 -4
- package/components/p-BU8a2IhR.js +0 -4
- package/components/p-BWoa-cki.js +0 -4
- package/components/p-BgkOsq-d.js +0 -4
- package/components/p-C09TXohi.js +0 -4
- package/components/p-CG_zZq_I.js +0 -4
- package/components/p-CWAks_S_.js +0 -4
- package/components/p-CWuIRJQN.js +0 -4
- package/components/p-CrAKlX71.js +0 -4
- package/components/p-Cw6WocLJ.js +0 -4
- package/components/p-DhNuxvJH.js +0 -4
- package/components/p-DiuOa1vw.js +0 -4
- package/components/p-M34T2gyX.js +0 -4
- package/dist/cjs/hardware-back-button-Bu4Dzw8l.js +0 -121
- package/dist/cjs/index-DkNv4J_i.js +0 -10
- package/dist/esm/hardware-back-button-DmkiRgOT.js +0 -115
- package/dist/esm/index-ZjP4CjeZ.js +0 -7
- package/dist/ionic/p-171a2278.entry.js +0 -4
- package/dist/ionic/p-2ea4bb36.entry.js +0 -4
- package/dist/ionic/p-338a02e0.entry.js +0 -4
- package/dist/ionic/p-3e01c744.entry.js +0 -4
- package/dist/ionic/p-458715a9.entry.js +0 -4
- package/dist/ionic/p-5906ea6f.entry.js +0 -4
- package/dist/ionic/p-612ea3b1.entry.js +0 -4
- package/dist/ionic/p-77c96e08.entry.js +0 -4
- package/dist/ionic/p-7e394cc3.entry.js +0 -4
- package/dist/ionic/p-803059b6.entry.js +0 -4
- package/dist/ionic/p-9595e305.entry.js +0 -4
- package/dist/ionic/p-9ee9c5b6.entry.js +0 -4
- package/dist/ionic/p-BY6BzzPF.js +0 -4
- package/dist/ionic/p-Bd72UYI2.js +0 -4
- package/dist/ionic/p-BgOvhHy_.js +0 -4
- package/dist/ionic/p-BhamHSw3.js +0 -4
- package/dist/ionic/p-BijjLYjT.js +0 -4
- package/dist/ionic/p-C8XilMh0.js +0 -4
- package/dist/ionic/p-CER8qW8Y.js +0 -4
- package/dist/ionic/p-CFuOr1Tu.js +0 -4
- package/dist/ionic/p-CIGNaXM1.js +0 -4
- package/dist/ionic/p-CMZYmFb4.js +0 -4
- package/dist/ionic/p-CkxVYPtX.js +0 -4
- package/dist/ionic/p-CmXuiRT6.js +0 -4
- package/dist/ionic/p-D5t_-oMk.js +0 -4
- package/dist/ionic/p-D6rHcCvc.js +0 -4
- package/dist/ionic/p-DLM95R4x.js +0 -4
- package/dist/ionic/p-D_gb-kdd.js +0 -4
- package/dist/ionic/p-DajLgJ4d.js +0 -4
- package/dist/ionic/p-Do3zTvCA.js +0 -4
- package/dist/ionic/p-ZjP4CjeZ.js +0 -4
- package/dist/ionic/p-aff52029.entry.js +0 -4
- package/dist/ionic/p-b3532b8d.entry.js +0 -4
- package/dist/ionic/p-d526798a.entry.js +0 -4
- package/dist/ionic/p-e7f4b1e0.entry.js +0 -4
- package/dist/ionic/p-f83b3e0c.entry.js +0 -4
- package/dist/ionic/p-fa50d493.entry.js +0 -4
- package/dist/ionic/p-zWf7R2xV.js +0 -4
|
@@ -77,7 +77,12 @@
|
|
|
77
77
|
--max-width: auto;
|
|
78
78
|
--height: 100%;
|
|
79
79
|
--min-height: auto;
|
|
80
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Clamps a content-sized `--height` (auto, fit-content, ...) to the
|
|
82
|
+
* overlay, giving the wrapper's flex children something to shrink
|
|
83
|
+
* toward so `ion-content` scrolls instead of overflowing.
|
|
84
|
+
*/
|
|
85
|
+
--max-height: 100%;
|
|
81
86
|
--overflow: hidden;
|
|
82
87
|
--border-radius: 0;
|
|
83
88
|
--border-width: 0;
|
|
@@ -129,8 +134,14 @@ ion-backdrop {
|
|
|
129
134
|
/**
|
|
130
135
|
* The wrapper receives programmatic focus for screen readers but should not
|
|
131
136
|
* show a visible focus ring, which is meant only for keyboard navigation.
|
|
137
|
+
*
|
|
138
|
+
* A flex layout is required for the wrapper to size itself to its content
|
|
139
|
+
* when the modal is content-sized (`--height` is auto, fit-content, ...).
|
|
140
|
+
* This makes it so that the content can scroll when it overflows the wrapper.
|
|
132
141
|
*/
|
|
133
142
|
.modal-wrapper {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
134
145
|
outline: none;
|
|
135
146
|
}
|
|
136
147
|
|
|
@@ -21,8 +21,8 @@ import { mdEnterAnimation } from "./animations/md.enter";
|
|
|
21
21
|
import { mdLeaveAnimation } from "./animations/md.leave";
|
|
22
22
|
import { createSheetGesture } from "./gestures/sheet";
|
|
23
23
|
import { createSwipeToCloseGesture, SwipeToCloseDefaults } from "./gestures/swipe-to-close";
|
|
24
|
-
import { getInitialSafeAreaConfig, getPositionBasedSafeAreaConfig, applySafeAreaOverrides, clearSafeAreaOverrides, getRootSafeAreaTop, onRootSafeAreaTopChange,
|
|
25
|
-
import { setCardStatusBarDark, setCardStatusBarDefault } from "./utils";
|
|
24
|
+
import { getInitialSafeAreaConfig, getPositionBasedSafeAreaConfig, applySafeAreaOverrides, clearSafeAreaOverrides, getRootSafeAreaTop, onRootSafeAreaTopChange, getModalCoveredAxes, } from "./safe-area-utils";
|
|
25
|
+
import { onModalHeightChange, setCardStatusBarDark, setCardStatusBarDefault } from "./utils";
|
|
26
26
|
// TODO(FW-2832): types
|
|
27
27
|
/**
|
|
28
28
|
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
|
@@ -1053,7 +1053,7 @@ export class Modal {
|
|
|
1053
1053
|
/**
|
|
1054
1054
|
* Creates the context object for safe-area utilities.
|
|
1055
1055
|
*
|
|
1056
|
-
* `
|
|
1056
|
+
* `coveredAxes` is only set by `setInitialSafeAreaOverrides()`
|
|
1057
1057
|
* because it is only read by `getInitialSafeAreaConfig()`. Other callers
|
|
1058
1058
|
* (resize handler, post-animation update, fullscreen-padding apply) would
|
|
1059
1059
|
* pay a `getComputedStyle()` cost for a value they never consult.
|
|
@@ -1067,6 +1067,26 @@ export class Modal {
|
|
|
1067
1067
|
currentBreakpoint: this.currentBreakpoint,
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* Keeps the content's sizing in sync with `--height`. The content reads the
|
|
1072
|
+
* property to determine whether it should size itself to its content, and
|
|
1073
|
+
* changes to `--height` on an ancestor or the root can change that behavior
|
|
1074
|
+
* without changing the modal itself.
|
|
1075
|
+
*/
|
|
1076
|
+
watchHeightForContent() {
|
|
1077
|
+
/**
|
|
1078
|
+
* A sheet's height comes from its breakpoints, so its content never sizes
|
|
1079
|
+
* itself to `--height`. Watching it would cause the drag to recalculate on
|
|
1080
|
+
* every frame.
|
|
1081
|
+
*/
|
|
1082
|
+
if (this.isSheetModal) {
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
this.unsubscribeHeightChange?.();
|
|
1086
|
+
this.unsubscribeHeightChange = onModalHeightChange(this.el, () => {
|
|
1087
|
+
this.el.querySelectorAll('ion-content').forEach((contentEl) => contentEl.recalculateDimensions());
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1070
1090
|
/**
|
|
1071
1091
|
* Sets initial safe-area overrides before modal animation.
|
|
1072
1092
|
* Called in present() before animation starts.
|
|
@@ -1080,10 +1100,11 @@ export class Modal {
|
|
|
1080
1100
|
setInitialSafeAreaOverrides() {
|
|
1081
1101
|
const context = {
|
|
1082
1102
|
...this.getSafeAreaContext(),
|
|
1083
|
-
|
|
1103
|
+
coveredAxes: getModalCoveredAxes(this.el),
|
|
1084
1104
|
};
|
|
1085
1105
|
const safeAreaConfig = getInitialSafeAreaConfig(context);
|
|
1086
1106
|
applySafeAreaOverrides(this.el, safeAreaConfig);
|
|
1107
|
+
this.watchHeightForContent();
|
|
1087
1108
|
// Set the internal offset property with the resolved root safe-area-top value
|
|
1088
1109
|
if (context.isSheetModal) {
|
|
1089
1110
|
this.updateSheetOffsetTop();
|
|
@@ -1203,6 +1224,8 @@ export class Modal {
|
|
|
1203
1224
|
clearSafeAreaOverrides(this.el);
|
|
1204
1225
|
this.unsubscribeRootSafeAreaTop?.();
|
|
1205
1226
|
this.unsubscribeRootSafeAreaTop = undefined;
|
|
1227
|
+
this.unsubscribeHeightChange?.();
|
|
1228
|
+
this.unsubscribeHeightChange = undefined;
|
|
1206
1229
|
// Remove internal sheet offset property
|
|
1207
1230
|
this.el.style.removeProperty('--ion-modal-offset-top');
|
|
1208
1231
|
const { contentEl } = this.findContentAndFooter();
|
|
@@ -1240,7 +1263,7 @@ export class Modal {
|
|
|
1240
1263
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
1241
1264
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
1242
1265
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
1243
|
-
return (h(Host, { key: '
|
|
1266
|
+
return (h(Host, { key: '17a95bd7722bac2344bea041aff97db17f55c0cf', "no-router": true,
|
|
1244
1267
|
// Allow the modal to be navigable when the handle is focusable
|
|
1245
1268
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1, ...htmlAttributes, style: {
|
|
1246
1269
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
@@ -1253,7 +1276,7 @@ export class Modal {
|
|
|
1253
1276
|
'overlay-hidden': true,
|
|
1254
1277
|
[FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false,
|
|
1255
1278
|
...getClassMap(this.cssClass),
|
|
1256
|
-
}, onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }, h("ion-backdrop", { key: '
|
|
1279
|
+
}, onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }, h("ion-backdrop", { key: '9dab1ef4771c0d847ba2be8672afbaa2748517f3', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '64af7ed1c5f552b61fc4b9387b926acc76c8a99a', class: "modal-shadow" }), h("div", { key: '7e76d77d5b2e8f0467bb793facf5aa86f8d01bbe',
|
|
1257
1280
|
/*
|
|
1258
1281
|
role and aria-modal must be used on the
|
|
1259
1282
|
same element. They must also be set inside the
|
|
@@ -1266,9 +1289,9 @@ export class Modal {
|
|
|
1266
1289
|
without the tabindex focus() would be a no-op and screen readers
|
|
1267
1290
|
may not properly announce the dialog and its content when it opens.
|
|
1268
1291
|
*/
|
|
1269
|
-
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: '
|
|
1292
|
+
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: '5efc0bb0a59adcc594ac48da9fd90e57908a7ffb', class: "modal-handle",
|
|
1270
1293
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
1271
|
-
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: '
|
|
1294
|
+
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: '6175fcd0b39c086b4e9eb9e96c4d631c2a86774b', onSlotchange: this.onSlotChange }))));
|
|
1272
1295
|
}
|
|
1273
1296
|
static get is() { return "ion-modal"; }
|
|
1274
1297
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,7 +77,12 @@
|
|
|
77
77
|
--max-width: auto;
|
|
78
78
|
--height: 100%;
|
|
79
79
|
--min-height: auto;
|
|
80
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Clamps a content-sized `--height` (auto, fit-content, ...) to the
|
|
82
|
+
* overlay, giving the wrapper's flex children something to shrink
|
|
83
|
+
* toward so `ion-content` scrolls instead of overflowing.
|
|
84
|
+
*/
|
|
85
|
+
--max-height: 100%;
|
|
81
86
|
--overflow: hidden;
|
|
82
87
|
--border-radius: 0;
|
|
83
88
|
--border-width: 0;
|
|
@@ -129,8 +134,14 @@ ion-backdrop {
|
|
|
129
134
|
/**
|
|
130
135
|
* The wrapper receives programmatic focus for screen readers but should not
|
|
131
136
|
* show a visible focus ring, which is meant only for keyboard navigation.
|
|
137
|
+
*
|
|
138
|
+
* A flex layout is required for the wrapper to size itself to its content
|
|
139
|
+
* when the modal is content-sized (`--height` is auto, fit-content, ...).
|
|
140
|
+
* This makes it so that the content can scroll when it overflows the wrapper.
|
|
132
141
|
*/
|
|
133
142
|
.modal-wrapper {
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
134
145
|
outline: none;
|
|
135
146
|
}
|
|
136
147
|
|
|
@@ -2,41 +2,14 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { win } from "../../utils/browser/index";
|
|
5
|
-
import { raf } from "../../utils/helpers";
|
|
6
|
-
|
|
7
|
-
* These thresholds match the SCSS media query breakpoints in modal.vars.scss
|
|
8
|
-
* that trigger the centered dialog layout (non-fullscreen modal).
|
|
9
|
-
*
|
|
10
|
-
* SCSS defines two height breakpoints: $modal-inset-min-height-small (600px)
|
|
11
|
-
* and $modal-inset-min-height-large (768px). We use the smaller one because
|
|
12
|
-
* that's the threshold where the modal transitions from fullscreen to centered
|
|
13
|
-
* dialog — the larger breakpoint only increases the dialog's height.
|
|
14
|
-
*/
|
|
15
|
-
const MODAL_INSET_MIN_WIDTH = 768;
|
|
16
|
-
const MODAL_INSET_MIN_HEIGHT = 600;
|
|
5
|
+
import { onCustomPropertyChange, raf } from "../../utils/helpers";
|
|
6
|
+
import { getOverlaySizeType } from "../../utils/overlays";
|
|
17
7
|
const EDGE_THRESHOLD = 5;
|
|
18
|
-
/**
|
|
19
|
-
* CSS values for `--width` / `--height` that are treated as fullscreen
|
|
20
|
-
* (modal touches the corresponding screen edges). Empty string means the
|
|
21
|
-
* property was not overridden. See `hasCustomModalDimensions()`.
|
|
22
|
-
*/
|
|
23
|
-
const FULLSCREEN_SIZE_VALUES = new Set(['', '100%', '100vw', '100vh', '100dvw', '100dvh', '100svw', '100svh']);
|
|
24
8
|
/**
|
|
25
9
|
* Cache for resolved root safe-area-top value, invalidated once per frame.
|
|
26
10
|
*/
|
|
27
11
|
let cachedRootSafeAreaTop = null;
|
|
28
12
|
let cacheInvalidationScheduled = false;
|
|
29
|
-
/**
|
|
30
|
-
* Determines if the current viewport meets the CSS media query conditions
|
|
31
|
-
* that cause regular modals to render as centered dialogs instead of fullscreen.
|
|
32
|
-
* Matches: @media (min-width: 768px) and (min-height: 600px)
|
|
33
|
-
*/
|
|
34
|
-
const isCenteredDialogViewport = () => {
|
|
35
|
-
if (!win)
|
|
36
|
-
return false;
|
|
37
|
-
return win.matchMedia(`(min-width: ${MODAL_INSET_MIN_WIDTH}px) and (min-height: ${MODAL_INSET_MIN_HEIGHT}px)`)
|
|
38
|
-
.matches;
|
|
39
|
-
};
|
|
40
13
|
/**
|
|
41
14
|
* Resolves the current root --ion-safe-area-top value to pixels.
|
|
42
15
|
* Uses a temporary element because getComputedStyle on :root returns
|
|
@@ -70,55 +43,64 @@ export const getRootSafeAreaTop = () => {
|
|
|
70
43
|
return value;
|
|
71
44
|
};
|
|
72
45
|
/**
|
|
73
|
-
* Calls back when the resolved root `--ion-safe-area-top` changes
|
|
74
|
-
*
|
|
75
|
-
*
|
|
46
|
+
* Calls back when the resolved root `--ion-safe-area-top` changes. The value
|
|
47
|
+
* the caller already applied is passed as the baseline, so a change between
|
|
48
|
+
* that read and the observer starting is still reported.
|
|
76
49
|
*/
|
|
77
50
|
export const onRootSafeAreaTopChange = (callback) => {
|
|
78
|
-
|
|
79
|
-
if (!doc?.body || typeof ResizeObserver === 'undefined') {
|
|
80
|
-
return () => undefined;
|
|
81
|
-
}
|
|
82
|
-
const probe = doc.createElement('div');
|
|
83
|
-
probe.style.cssText =
|
|
84
|
-
'position:fixed;visibility:hidden;pointer-events:none;top:0;left:0;width:0;' +
|
|
85
|
-
'height:var(--ion-safe-area-top,0px);';
|
|
86
|
-
doc.body.appendChild(probe);
|
|
87
|
-
/**
|
|
88
|
-
* Seeded with the value the caller has already applied, so a change that
|
|
89
|
-
* lands before the observer's first delivery still gets reported. Comparing
|
|
90
|
-
* against an unset value instead would consume that first delivery and treat
|
|
91
|
-
* the new inset as the baseline.
|
|
92
|
-
*/
|
|
93
|
-
let lastHeight = getRootSafeAreaTop();
|
|
94
|
-
const observer = new ResizeObserver((entries) => {
|
|
95
|
-
const { height } = entries[0].contentRect;
|
|
96
|
-
if (height !== lastHeight) {
|
|
97
|
-
lastHeight = height;
|
|
98
|
-
callback(height);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
observer.observe(probe);
|
|
102
|
-
return () => {
|
|
103
|
-
observer.disconnect();
|
|
104
|
-
probe.remove();
|
|
105
|
-
};
|
|
51
|
+
return onCustomPropertyChange(win?.document?.body, '--ion-safe-area-top', callback, getRootSafeAreaTop());
|
|
106
52
|
};
|
|
107
53
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* touch any screen edge).
|
|
54
|
+
* Determines which viewport axes the modal spans so safe-area requirements
|
|
55
|
+
* can be predicted independently for each axis.
|
|
111
56
|
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
57
|
+
* A modal that spans an axis reaches both edges on that axis and needs the
|
|
58
|
+
* corresponding safe-area insets. A modal that does not span an axis reaches
|
|
59
|
+
* neither edge on that axis.
|
|
60
|
+
*
|
|
61
|
+
* When both `--width` and `--height` are `fullscreen`, coverage can be
|
|
62
|
+
* determined directly. Otherwise, coverage is based on the rendered wrapper,
|
|
63
|
+
* including cases where content sizing or `--max-height` causes the modal
|
|
64
|
+
* to reach the viewport.
|
|
116
65
|
*/
|
|
117
|
-
export const
|
|
66
|
+
export const getModalCoveredAxes = (hostEl) => {
|
|
118
67
|
const styles = getComputedStyle(hostEl);
|
|
119
|
-
const width = styles.getPropertyValue('--width')
|
|
120
|
-
const height = styles.getPropertyValue('--height')
|
|
121
|
-
|
|
68
|
+
const width = getOverlaySizeType(styles.getPropertyValue('--width'));
|
|
69
|
+
const height = getOverlaySizeType(styles.getPropertyValue('--height'));
|
|
70
|
+
if (width === 'fullscreen' && height === 'fullscreen') {
|
|
71
|
+
return { vertical: true, horizontal: true };
|
|
72
|
+
}
|
|
73
|
+
return measureCoveredAxes(hostEl);
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Measures the modal wrapper to determine whether it spans the viewport
|
|
77
|
+
* on each axis.
|
|
78
|
+
*
|
|
79
|
+
* The wrapper has no box while the modal is hidden, so `overlay-hidden`
|
|
80
|
+
* is temporarily removed to allow the wrapper to be measured. The class
|
|
81
|
+
* is restored in the same task before the browser can paint.
|
|
82
|
+
*
|
|
83
|
+
* Only the wrapper's size is measured. Its position is affected by the
|
|
84
|
+
* enter animation, which initially translates it by its own height, while
|
|
85
|
+
* the translation does not affect its measured size.
|
|
86
|
+
*/
|
|
87
|
+
const measureCoveredAxes = (hostEl) => {
|
|
88
|
+
const wrapperEl = hostEl.shadowRoot?.querySelector('.modal-wrapper');
|
|
89
|
+
if (wrapperEl == null || win === undefined) {
|
|
90
|
+
return { vertical: false, horizontal: false };
|
|
91
|
+
}
|
|
92
|
+
const wasHidden = hostEl.classList.contains('overlay-hidden');
|
|
93
|
+
if (wasHidden) {
|
|
94
|
+
hostEl.classList.remove('overlay-hidden');
|
|
95
|
+
}
|
|
96
|
+
const { width, height } = wrapperEl.getBoundingClientRect();
|
|
97
|
+
if (wasHidden) {
|
|
98
|
+
hostEl.classList.add('overlay-hidden');
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
vertical: height >= win.innerHeight - EDGE_THRESHOLD,
|
|
102
|
+
horizontal: width >= win.innerWidth - EDGE_THRESHOLD,
|
|
103
|
+
};
|
|
122
104
|
};
|
|
123
105
|
/**
|
|
124
106
|
* Returns the initial safe-area configuration based on modal type.
|
|
@@ -152,26 +134,23 @@ export const getInitialSafeAreaConfig = (context) => {
|
|
|
152
134
|
right: '0px',
|
|
153
135
|
};
|
|
154
136
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
// Fullscreen modals on phone - inherit all safe areas
|
|
137
|
+
/**
|
|
138
|
+
* Each axis is evaluated independently because a modal can span one axis
|
|
139
|
+
* without spanning the other. This allows the initial safe-area configuration
|
|
140
|
+
* to match the modal's expected dimensions and avoids correcting an incorrect
|
|
141
|
+
* pair of insets after presentation.
|
|
142
|
+
*
|
|
143
|
+
* A modal can span the horizontal axis while remaining inset vertically, or
|
|
144
|
+
* span the vertical axis while remaining inset horizontally. Wide viewports
|
|
145
|
+
* can also render regular modals as centered dialogs, while content-sized
|
|
146
|
+
* modals may still be clamped to the viewport.
|
|
147
|
+
*/
|
|
148
|
+
const { vertical, horizontal } = context.coveredAxes ?? { vertical: true, horizontal: true };
|
|
170
149
|
return {
|
|
171
|
-
top: 'inherit',
|
|
172
|
-
bottom: 'inherit',
|
|
173
|
-
left: 'inherit',
|
|
174
|
-
right: 'inherit',
|
|
150
|
+
top: vertical ? 'inherit' : '0px',
|
|
151
|
+
bottom: vertical ? 'inherit' : '0px',
|
|
152
|
+
left: horizontal ? 'inherit' : '0px',
|
|
153
|
+
right: horizontal ? 'inherit' : '0px',
|
|
175
154
|
};
|
|
176
155
|
};
|
|
177
156
|
/**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { win } from "../../utils/browser/index";
|
|
5
|
+
import { onCustomPropertyChange } from "../../utils/helpers";
|
|
5
6
|
import { StatusBar, Style } from "../../utils/native/status-bar";
|
|
6
7
|
/**
|
|
7
8
|
* Use y = mx + b to
|
|
@@ -78,3 +79,9 @@ export const setCardStatusBarDefault = (defaultStyle = Style.Default) => {
|
|
|
78
79
|
}
|
|
79
80
|
StatusBar.setStyle({ style: defaultStyle });
|
|
80
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Calls back when the modal's resolved `--height` changes.
|
|
84
|
+
*/
|
|
85
|
+
export const onModalHeightChange = (hostEl, callback) => {
|
|
86
|
+
return onCustomPropertyChange(hostEl, '--height', () => callback());
|
|
87
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { Build, Host, h, forceUpdate } from "@stencil/core";
|
|
4
|
+
import { Build, Host, h, forceUpdate, } from "@stencil/core";
|
|
5
5
|
import { ENABLE_HTML_CONTENT_DEFAULT } from "../../utils/config";
|
|
6
|
-
import { compareOptions, createNotchController, createStartContainerController, isOptionSelected, checkInvalidState, } from "../../utils/forms/index";
|
|
6
|
+
import { compareOptions, createClickController, createNotchController, createStartContainerController, getSlottedClickContent, isOptionSelected, checkInvalidState, } from "../../utils/forms/index";
|
|
7
7
|
import { focusVisibleElement, renderHiddenInput, inheritAttributes } from "../../utils/helpers";
|
|
8
8
|
import { printIonWarning } from "../../utils/logging/index";
|
|
9
9
|
import { actionSheetController, alertController, popoverController, modalController } from "../../utils/overlays";
|
|
@@ -109,41 +109,21 @@ export class Select {
|
|
|
109
109
|
*/
|
|
110
110
|
this.required = false;
|
|
111
111
|
this.onClick = (ev) => {
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*
|
|
125
|
-
* Clicking a slotted element also causes a click
|
|
126
|
-
* on the <label> element (since it wraps the slots).
|
|
127
|
-
* Clicking <label> dispatches another click event on
|
|
128
|
-
* the native form control that then bubbles up to this
|
|
129
|
-
* listener. This additional event targets the host
|
|
130
|
-
* element, so the select overlay is opened.
|
|
131
|
-
*
|
|
132
|
-
* When the slotted elements are clicked (and therefore
|
|
133
|
-
* the ancestor <label> element) we want to prevent the label
|
|
134
|
-
* from dispatching another click event.
|
|
135
|
-
*
|
|
136
|
-
* Do not call stopPropagation() because this will cause
|
|
137
|
-
* click handlers on the slotted elements to never fire in React.
|
|
138
|
-
* When developers do onClick in React a native "click" listener
|
|
139
|
-
* is added on the root element, not the slotted element. When that
|
|
140
|
-
* native click listener fires, React then dispatches the synthetic
|
|
141
|
-
* click event on the slotted element. However, if stopPropagation
|
|
142
|
-
* is called then the native click event will never bubble up
|
|
143
|
-
* to the root element.
|
|
144
|
-
*/
|
|
145
|
-
ev.preventDefault();
|
|
112
|
+
const slotted = getSlottedClickContent(ev, this.el);
|
|
113
|
+
/**
|
|
114
|
+
* Interactive slotted content, such as a button or a checkbox, handles its
|
|
115
|
+
* own click, so it should not open the select as well. Any other slotted
|
|
116
|
+
* content is decorative and behaves the same as clicking the select
|
|
117
|
+
* itself.
|
|
118
|
+
*/
|
|
119
|
+
if (slotted !== null) {
|
|
120
|
+
const interactive = ev.target.closest(INTERACTIVE_SLOTTED_CONTENT);
|
|
121
|
+
if (interactive !== null && slotted.contains(interactive)) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
146
124
|
}
|
|
125
|
+
this.setFocus();
|
|
126
|
+
this.open(ev);
|
|
147
127
|
};
|
|
148
128
|
this.onFocus = () => {
|
|
149
129
|
this.hasFocus = true;
|
|
@@ -214,6 +194,7 @@ export class Select {
|
|
|
214
194
|
return Build.isBrowser && getIonMode(this) === 'md' && this.fill === 'outline';
|
|
215
195
|
});
|
|
216
196
|
this.startContainerController.calculateStartContainerWidth();
|
|
197
|
+
this.clickController = createClickController(el);
|
|
217
198
|
this.updateOverlayOptions();
|
|
218
199
|
this.emitStyle();
|
|
219
200
|
this.mutationO = watchForOptions(this.el, 'ion-select-option', async () => {
|
|
@@ -750,6 +731,18 @@ export class Select {
|
|
|
750
731
|
};
|
|
751
732
|
this.ionStyle.emit(style);
|
|
752
733
|
}
|
|
734
|
+
/**
|
|
735
|
+
* The label wrapping the slots has no `for` attribute, so the browser
|
|
736
|
+
* forwards a click on slotted content to the label's first labelable
|
|
737
|
+
* descendant, the internal button. That forwarded click bubbles back out of
|
|
738
|
+
* the shadow root targeting the host, where it would be emitted a second
|
|
739
|
+
* time and open the select. The controller swallows it during the capture
|
|
740
|
+
* phase, leaving the click on the slotted content itself alone so slotted
|
|
741
|
+
* links, checkboxes and buttons keep their default behavior.
|
|
742
|
+
*/
|
|
743
|
+
onClickCapture(ev) {
|
|
744
|
+
this.clickController?.handleClickCapture(ev);
|
|
745
|
+
}
|
|
753
746
|
renderLabel() {
|
|
754
747
|
const { label } = this;
|
|
755
748
|
return (h("div", { class: {
|
|
@@ -947,7 +940,7 @@ export class Select {
|
|
|
947
940
|
const hasOutlineFill = mode === 'md' && fill === 'outline';
|
|
948
941
|
renderHiddenInput(true, el, name, parseValue(value), disabled);
|
|
949
942
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
|
|
950
|
-
return (h(Host, { key: '
|
|
943
|
+
return (h(Host, { key: '31585557ac49c439939b5a084867f5039dc2f1ce', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
951
944
|
[mode]: true,
|
|
952
945
|
'in-item': inItem,
|
|
953
946
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -965,7 +958,7 @@ export class Select {
|
|
|
965
958
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
966
959
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
967
960
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
968
|
-
}) }, h("label", { key: '
|
|
961
|
+
}) }, h("label", { key: '368f5f0c77550be6a743752dd1acbfe9915f0a3d', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), h("div", { key: '2e9039eaa15f398ebe54808ff659db89d3621681', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, h("slot", { key: 'b83e362f89bd8cbc564ad7122778e3a0f08be66d', name: "start" })), h("div", { key: 'f55ac9fc3bbd9a4a3819a101a3780fc02ae8a8e0', class: "select-control", part: "control" }, this.renderLabel(), h("div", { key: 'e32984e57cda5cf341af8e354a2aef5a114827c0', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), h("div", { key: 'fc4cb7c392c46129afe709d9557ad9a10d72b564', class: "select-end", part: "end" }, hasFloatingOrStackedLabel && this.renderSelectIcon(), h("slot", { key: '6d65c92cdafe985a769fb3b41a58625077803eef', name: "end" })), shouldRenderHighlight && h("div", { key: '9a912c64d7cd77f074a069d126cd0bada1b71eed', class: "select-highlight" })), this.renderBottomContent()));
|
|
969
962
|
}
|
|
970
963
|
static get is() { return "ion-select"; }
|
|
971
964
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1611,6 +1604,15 @@ export class Select {
|
|
|
1611
1604
|
"methodName": "styleChanged"
|
|
1612
1605
|
}];
|
|
1613
1606
|
}
|
|
1607
|
+
static get listeners() {
|
|
1608
|
+
return [{
|
|
1609
|
+
"name": "click",
|
|
1610
|
+
"method": "onClickCapture",
|
|
1611
|
+
"target": undefined,
|
|
1612
|
+
"capture": true,
|
|
1613
|
+
"passive": false
|
|
1614
|
+
}];
|
|
1615
|
+
}
|
|
1614
1616
|
}
|
|
1615
1617
|
const getOptionValue = (el) => {
|
|
1616
1618
|
const value = el.value;
|
|
@@ -1851,3 +1853,30 @@ const extractOptionContent = (option, customHTMLEnabled) => {
|
|
|
1851
1853
|
};
|
|
1852
1854
|
let selectIds = 0;
|
|
1853
1855
|
const OPTION_CLASS = 'select-interface-option';
|
|
1856
|
+
/**
|
|
1857
|
+
* Slotted content that handles its own click, so clicking it should not also
|
|
1858
|
+
* open the select.
|
|
1859
|
+
*
|
|
1860
|
+
* This deliberately does not reuse `focusableQueryString`. That selector
|
|
1861
|
+
* answers whether an element can take focus right now, which is a different
|
|
1862
|
+
* question: an ion-radio outside a radio group carries tabindex="-1" from the
|
|
1863
|
+
* group's roving tabindex, and disabled controls are excluded, yet both still
|
|
1864
|
+
* handle their own clicks.
|
|
1865
|
+
*/
|
|
1866
|
+
const INTERACTIVE_SLOTTED_CONTENT = [
|
|
1867
|
+
'a[href]',
|
|
1868
|
+
'button',
|
|
1869
|
+
'input[type="checkbox"]',
|
|
1870
|
+
'input[type="radio"]',
|
|
1871
|
+
'ion-button',
|
|
1872
|
+
'ion-checkbox',
|
|
1873
|
+
'ion-radio',
|
|
1874
|
+
'ion-toggle',
|
|
1875
|
+
'[tabindex]:not([tabindex^="-"])',
|
|
1876
|
+
/**
|
|
1877
|
+
* Covers the remaining Ionic controls. The tags above are still listed
|
|
1878
|
+
* because ion-checkbox and ion-radio only carry this class when they are
|
|
1879
|
+
* outside an item, so a select inside an item would lose the match.
|
|
1880
|
+
*/
|
|
1881
|
+
'.ion-focusable',
|
|
1882
|
+
].join(', ');
|
|
@@ -155,6 +155,12 @@
|
|
|
155
155
|
position: relative;
|
|
156
156
|
flex: 1;
|
|
157
157
|
width: 100%;
|
|
158
|
+
/**
|
|
159
|
+
* The textarea keeps a minimum width so that the value stays visible
|
|
160
|
+
* when a long label or wide slotted content would otherwise shrink
|
|
161
|
+
* it to nothing.
|
|
162
|
+
*/
|
|
163
|
+
min-width: 2ch;
|
|
158
164
|
max-width: 100%;
|
|
159
165
|
max-height: 100%;
|
|
160
166
|
border: 0;
|
|
@@ -292,7 +298,15 @@
|
|
|
292
298
|
|
|
293
299
|
.native-wrapper {
|
|
294
300
|
display: grid;
|
|
295
|
-
|
|
301
|
+
/**
|
|
302
|
+
* The wrapper has to carry the same minimum width as the textarea it holds.
|
|
303
|
+
* It is the flex item that competes with the label and the slots for space,
|
|
304
|
+
* so without it the textarea keeps its width but overflows the field.
|
|
305
|
+
*
|
|
306
|
+
* The minimum cannot be inherited because .textarea-control sets
|
|
307
|
+
* `min-width: 0` so that the slots keep their size.
|
|
308
|
+
*/
|
|
309
|
+
min-width: 2ch;
|
|
296
310
|
max-width: inherit;
|
|
297
311
|
min-height: inherit;
|
|
298
312
|
max-height: inherit;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Host, forceUpdate, h, writeTask, } from "@stencil/core";
|
|
5
|
-
import { createNotchController, createStartContainerController, checkInvalidState } from "../../utils/forms/index";
|
|
5
|
+
import { createClickController, createNotchController, createStartContainerController, checkInvalidState, } from "../../utils/forms/index";
|
|
6
6
|
import { inheritAriaAttributes, debounceEvent, inheritAttributes, componentOnReady } from "../../utils/helpers";
|
|
7
7
|
import { createSlotMutationController } from "../../utils/slot-mutation-controller";
|
|
8
8
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
@@ -189,11 +189,7 @@ export class Textarea {
|
|
|
189
189
|
* Instead, the click event from the ion-textarea is emitted.
|
|
190
190
|
*/
|
|
191
191
|
onClickCapture(ev) {
|
|
192
|
-
|
|
193
|
-
if (nativeInput && ev.target === nativeInput) {
|
|
194
|
-
ev.stopPropagation();
|
|
195
|
-
this.el.click();
|
|
196
|
-
}
|
|
192
|
+
this.clickController?.handleClickCapture(ev);
|
|
197
193
|
}
|
|
198
194
|
connectedCallback() {
|
|
199
195
|
const { el } = this;
|
|
@@ -206,6 +202,7 @@ export class Textarea {
|
|
|
206
202
|
return Build.isBrowser && getIonMode(this) === 'md' && this.fill === 'outline';
|
|
207
203
|
});
|
|
208
204
|
this.startContainerController.calculateStartContainerWidth();
|
|
205
|
+
this.clickController = createClickController(el, () => this.nativeInput);
|
|
209
206
|
// Watch for class changes to update validation state
|
|
210
207
|
if (Build.isBrowser && typeof MutationObserver !== 'undefined') {
|
|
211
208
|
this.validationObserver = new MutationObserver(() => {
|
|
@@ -461,7 +458,7 @@ export class Textarea {
|
|
|
461
458
|
* the textarea has a value or is focused.
|
|
462
459
|
*/
|
|
463
460
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
|
|
464
|
-
return (h(Host, { key: '
|
|
461
|
+
return (h(Host, { key: '0f01ed6565313c45beaea5e0aa429a86b9cfa1a0', class: createColorClasses(this.color, {
|
|
465
462
|
[mode]: true,
|
|
466
463
|
'has-value': hasValue,
|
|
467
464
|
'has-focus': hasFocus,
|
|
@@ -470,7 +467,7 @@ export class Textarea {
|
|
|
470
467
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
471
468
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
472
469
|
'textarea-disabled': disabled,
|
|
473
|
-
}) }, h("label", { key: '
|
|
470
|
+
}) }, h("label", { key: 'a59548c3d3bf66543fd6e06b5c3b6e649f963164', class: "textarea-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, hasOutlineFill && this.renderOutlineContainer(), h("div", { key: '29055193d664d9fe84ba0340fdcbbc54fec0e403', class: "textarea-start", ref: (el) => (this.startContainerEl = el) }, h("slot", { key: '2cc122d9541ce7ae3c2309c27123b6c6c91cbfc7', name: "start" })), h("div", { key: 'c847a6fa1eaf6ef2b296415cd72bdd3aee9828a2', class: "textarea-control" }, this.renderLabel(), h("div", { key: 'f9205f82d6346daa86dc7e0f6e1eb221c76ed7b0', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, h("textarea", { key: '0bdb517fa5b3a44eeb3bb2ed1f9a8eab21a9a6a1', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined, ...this.inheritedAttributes }, value))), h("div", { key: '1ce661b800ef12146bdb97fb193e22be227ea052', class: "textarea-end" }, h("slot", { key: 'aca5704db48fe8e0e784cf57f2978ae2d63b3edc', name: "end" })), shouldRenderHighlight && h("div", { key: 'd916816d44cbdb4bc9a05032c5490eaa9bf3ba47', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
474
471
|
}
|
|
475
472
|
static get is() { return "ion-textarea"; }
|
|
476
473
|
static get encapsulation() { return "scoped"; }
|