@ionic/core 9.0.3 → 9.0.4-dev.11789491273.11ab1c95
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-TWw4e4sO.js → p--0Ha2gLq.js} +1 -1
- package/components/{p-BJr2B5hZ.js → p-2ta4uE9-.js} +1 -1
- package/components/{p-YjMkHuvH.js → p-47h0_nN4.js} +1 -1
- package/components/{p-BT9-hMMz.js → p-5jHAJ8C_.js} +1 -1
- package/components/p-6yLSJYP5.js +4 -0
- package/components/{p-Bi-it1EH.js → p-B4w_sFd4.js} +1 -1
- package/components/{p-DnBNYc7u.js → p-BBVXJUno.js} +1 -1
- package/components/{p-BW_SlU2D.js → p-BCI0nI6X.js} +1 -1
- package/components/{p-D7wDJdFn.js → p-BCkE4_T_.js} +1 -1
- package/components/{p-B1_TL6RQ.js → p-BLCBNn2X.js} +1 -1
- package/components/{p-CJgnoKcN.js → p-BMHhG7Xh.js} +1 -1
- package/components/p-BUZjpZPj.js +4 -0
- package/components/{p-qAXsfUff.js → p-Bb4gKl_z.js} +1 -1
- package/components/{p-CNLioZ3B.js → p-BbuOLVCJ.js} +1 -1
- package/{dist/ionic/p-DTxBioUO.js → components/p-BezPzC13.js} +1 -1
- package/components/{p-D5w_FlVa.js → p-BgsT2jfW.js} +1 -1
- package/components/{p-DL13ieTa.js → p-BjizFeM6.js} +1 -1
- package/components/{p-CqbGBmqb.js → p-BmIw6_lr.js} +1 -1
- package/components/{p-5ldEpNdG.js → p-BpPCBEmb.js} +1 -1
- package/components/{p-BF48Oc0v.js → p-BuxZkazO.js} +1 -1
- package/components/{p-B4lxwJ8N.js → p-C0FB9NcQ.js} +1 -1
- package/components/{p-C8Ck7_Eo.js → p-C4hRhU-I.js} +1 -1
- package/components/p-CDt7Q7Dj.js +4 -0
- package/components/{p-DFLJvuRK.js → p-CPGp3WWG.js} +1 -1
- package/components/{p-DMBiAyOR.js → p-CPj9oYoe.js} +1 -1
- package/components/{p-cEN43Ahr.js → p-CkffScdn.js} +1 -1
- package/components/{p-Ctop2IWW.js → p-ClaT45M5.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-C4VpVfrJ.js → p-Cw6JRwdQ.js} +1 -1
- package/components/p-D2vl9H3c.js +4 -0
- package/components/{p-Fl7ZFU74.js → p-DBGxvxkE.js} +1 -1
- package/components/p-DCqwKMcP.js +4 -0
- package/components/{p-COO0eJOA.js → p-DKX1mWld.js} +1 -1
- package/components/p-DP8hRAY9.js +4 -0
- package/components/p-DPJUYiz0.js +4 -0
- package/{dist/ionic/p-DZ6Hmc-8.js → components/p-DVHC9GYb.js} +1 -1
- package/components/{p-C09TXohi.js → p-DX55ygwT.js} +1 -1
- package/components/{p-BNIsryb2.js → p-DbTr4Ana.js} +1 -1
- package/components/{p-C-NbvXu4.js → p-Dh79xOoJ.js} +1 -1
- package/components/p-Dp5qTLGr.js +4 -0
- 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-M34T2gyX.js → p-OTASwZcn.js} +1 -1
- package/components/{p-GGbIHyEF.js → p-PWHvigWP.js} +1 -1
- package/components/p-fwAEwYZc.js +4 -0
- package/components/{p-BYJRZKHa.js → p-gyjG_IM4.js} +1 -1
- package/components/{p-Cd1WaN-0.js → p-i_RUbfxc.js} +1 -1
- package/components/p-k92zpBT6.js +4 -0
- package/components/{p-DxhHlJln.js → p-rDUBp56G.js} +1 -1
- package/components/{p-BQyuFxYc.js → p-sOZUmSUg.js} +1 -1
- package/components/{p-CrAKlX71.js → p-zpafbpPu.js} +1 -1
- package/css/core.css.map +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/dist/cjs/{animation-Kd1N7WTN.js → animation-CLVioITt.js} +1 -1
- package/dist/cjs/{app-globals-b1G4t26O.js → app-globals-BeC95igM.js} +1 -1
- package/dist/cjs/attribute-controller-Co16PtRL.js +132 -0
- package/dist/cjs/{button-active-CQCFubJJ.js → button-active-WQwvuLxR.js} +1 -1
- package/dist/cjs/{format-bHU8N1g5.js → format-BbkxKT7p.js} +1 -1
- package/dist/cjs/{framework-delegate-d-fWfeI6.js → framework-delegate-30SP5_5C.js} +1 -1
- package/dist/cjs/{hardware-back-button-Bu4Dzw8l.js → hardware-back-button-Cs6wQo8f.js} +1 -1
- package/dist/cjs/{helpers-7wzdhdeg.js → helpers-28k0ioWb.js} +6 -3
- package/dist/cjs/{index-CQfEIyLK.js → index-BjT0jN-K.js} +4 -4
- package/dist/cjs/{index-DtvKGwdh.js → index-CiwO_ZVY.js} +2 -2
- package/dist/cjs/{index-DFNrCX7M.js → index-DEWlkbEq.js} +5 -5
- package/dist/cjs/{index-C74Q3t6a.js → index-Df1Nb3Lk.js} +2 -2
- 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 +12 -12
- package/dist/cjs/{input-shims-VJIiKBKv.js → input-shims-CoTMQkM0.js} +3 -3
- 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 +10 -10
- package/dist/cjs/ion-alert.cjs.entry.js +10 -10
- package/dist/cjs/ion-app_8.cjs.entry.js +12 -12
- 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 +24 -34
- package/dist/cjs/ion-card_5.cjs.entry.js +15 -7
- 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 -7
- 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 -15
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +18 -8
- package/dist/cjs/ion-loading.cjs.entry.js +8 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +8 -8
- package/dist/cjs/ion-modal.cjs.entry.js +9 -9
- 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 +3 -3
- package/dist/cjs/ion-picker.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +8 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/ion-radio_2.cjs.entry.js +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 +3 -3
- package/dist/cjs/ion-select-modal.cjs.entry.js +8 -8
- package/dist/cjs/ion-select_3.cjs.entry.js +67 -47
- 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 +11 -14
- 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-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-C1f9F6HE.js} +4 -4
- package/dist/cjs/{item-multiple-inputs-Dv6qrMhm.js → item-multiple-inputs-BaBx_Te8.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-CrSkaoz6.js → md.transition-ApZEp9g4.js} +4 -4
- package/dist/cjs/{overlays-BR21NUIG.js → overlays-DqxYgNWz.js} +5 -5
- 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-D09vhXzN.js} +70 -1
- package/dist/cjs/{status-tap-CNP5eD1R.js → status-tap-DdEe06LQ.js} +3 -3
- package/dist/cjs/{swipe-back-BYb_nLJe.js → swipe-back-D1lp_e6s.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/button/button.js +21 -32
- package/dist/collection/components/card/card.js +12 -6
- 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/item/item.js +15 -6
- 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/attribute-controller.js +126 -0
- 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 +5 -3
- package/dist/docs.json +9 -3
- package/dist/esm/{animation-BFNVlYum.js → animation-QHItcYqX.js} +1 -1
- package/dist/esm/{app-globals-BgX0BGL1.js → app-globals-DGJXnnkm.js} +1 -1
- package/dist/esm/attribute-controller-CpBzYvYU.js +129 -0
- package/dist/esm/{button-active-BfOvDr3b.js → button-active-zEnGkgJp.js} +1 -1
- package/dist/esm/{format-DDFE9jM5.js → format-D78cdY12.js} +1 -1
- package/dist/esm/{framework-delegate-BwNhx9NR.js → framework-delegate-BgMe4jPq.js} +1 -1
- package/dist/esm/{hardware-back-button-DmkiRgOT.js → hardware-back-button-BxrFDnI0.js} +1 -1
- package/dist/esm/{helpers-BSmc0nst.js → helpers-DeeJAHV9.js} +6 -4
- package/dist/esm/{index-BuPaALjU.js → index-Co9fHIiq.js} +5 -5
- package/dist/esm/{index-CJln0gS3.js → index-DCEhZGaW.js} +2 -2
- package/dist/esm/{index-C1b9CLFg.js → index-DE7lbMup.js} +2 -2
- package/dist/esm/{index-D76bbuoi.js → index-DmnOg_xm.js} +1 -1
- package/dist/esm/{index-C23AVPx9.js → index-Dvqtt_WK.js} +13 -8
- package/dist/esm/{index-DnA_7Bnx.js → index-R9pvwLnZ.js} +4 -4
- package/dist/esm/index.js +12 -12
- package/dist/esm/{input-shims-Dqk-Ou25.js → input-shims-Dq4cwnFs.js} +3 -3
- 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 +10 -10
- package/dist/esm/ion-alert.entry.js +10 -10
- package/dist/esm/ion-app_8.entry.js +12 -12
- 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 +24 -34
- package/dist/esm/ion-card_5.entry.js +15 -7
- 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 +7 -7
- 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 -15
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +18 -8
- package/dist/esm/ion-loading.entry.js +8 -8
- package/dist/esm/ion-menu_3.entry.js +8 -8
- package/dist/esm/ion-modal.entry.js +9 -9
- 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 +3 -3
- package/dist/esm/ion-picker.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +8 -8
- package/dist/esm/ion-progress-bar.entry.js +3 -3
- package/dist/esm/ion-radio_2.entry.js +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 +3 -3
- package/dist/esm/ion-select-modal.entry.js +8 -8
- package/dist/esm/ion-select_3.entry.js +67 -47
- 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 +11 -14
- package/dist/esm/ion-toast.entry.js +8 -8
- package/dist/esm/ion-toggle.entry.js +4 -4
- 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-Df5RLe_T.js} +4 -4
- package/dist/esm/{item-multiple-inputs-DZnIiOO_.js → item-multiple-inputs-CffmpUe9.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-ZuqDDdDW.js → md.transition-CjaOFo9D.js} +4 -4
- package/dist/esm/{overlays-DKE0DgvE.js → overlays-BibrxrLf.js} +5 -5
- 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-BkDOe1zv.js} +69 -2
- package/dist/esm/{status-tap-Cv9gb3ja.js → status-tap-jSEmdAcL.js} +3 -3
- package/dist/esm/{swipe-back-B2CmabKY.js → swipe-back-DECoCqxP.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-85599fe3.entry.js → p-005fc249.entry.js} +1 -1
- package/dist/ionic/{p-271c3640.entry.js → p-00c87480.entry.js} +1 -1
- package/dist/ionic/p-0870e9ff.entry.js +4 -0
- package/dist/ionic/{p-5906ea6f.entry.js → p-0e4a8b4c.entry.js} +1 -1
- package/dist/ionic/{p-9c5f2691.entry.js → p-12ea6d13.entry.js} +1 -1
- package/dist/ionic/{p-77c96e08.entry.js → p-1662825b.entry.js} +1 -1
- package/dist/ionic/{p-cc4320d3.entry.js → p-17076d6d.entry.js} +1 -1
- package/dist/ionic/p-1da7dbb2.entry.js +4 -0
- package/dist/ionic/{p-3e01c744.entry.js → p-23a40e1a.entry.js} +1 -1
- package/dist/ionic/{p-5cc09b40.entry.js → p-25606ced.entry.js} +1 -1
- package/dist/ionic/{p-2ea4bb36.entry.js → p-259211ef.entry.js} +1 -1
- package/dist/ionic/{p-ca1b8865.entry.js → p-25abc69d.entry.js} +1 -1
- package/dist/ionic/p-2d100776.entry.js +4 -0
- package/dist/ionic/{p-d526798a.entry.js → p-34b93eb0.entry.js} +1 -1
- package/dist/ionic/{p-6e386853.entry.js → p-416bec74.entry.js} +1 -1
- package/dist/ionic/{p-171a2278.entry.js → p-418c7db6.entry.js} +1 -1
- package/dist/ionic/p-5264ae56.entry.js +4 -0
- package/dist/ionic/{p-efc0cf82.entry.js → p-5272e103.entry.js} +1 -1
- package/dist/ionic/{p-612ea3b1.entry.js → p-57c5caad.entry.js} +1 -1
- package/dist/ionic/{p-68cc89a6.entry.js → p-59305088.entry.js} +1 -1
- package/dist/ionic/{p-561af487.entry.js → p-5eadc64e.entry.js} +1 -1
- package/dist/ionic/{p-38b9375b.entry.js → p-60ca717e.entry.js} +1 -1
- package/dist/ionic/{p-8b80d9f9.entry.js → p-65e8cf6e.entry.js} +1 -1
- package/dist/ionic/{p-90f50a65.entry.js → p-689f7a37.entry.js} +1 -1
- package/dist/ionic/{p-fa50d493.entry.js → p-7fc0c7f4.entry.js} +1 -1
- package/dist/ionic/{p-3bba83ee.entry.js → p-89e04e63.entry.js} +1 -1
- package/dist/ionic/{p-5d9094ac.entry.js → p-8d06d603.entry.js} +1 -1
- package/dist/ionic/{p-aff52029.entry.js → p-8fe32c85.entry.js} +1 -1
- package/dist/ionic/{p-d6755739.entry.js → p-94b50c55.entry.js} +1 -1
- package/dist/ionic/{p-CFuOr1Tu.js → p-BJIzb1h3.js} +1 -1
- package/dist/ionic/p-BMSRTipc.js +4 -0
- package/dist/ionic/{p-CmXuiRT6.js → p-BQq5eWUl.js} +1 -1
- package/dist/ionic/p-BRZstBYy.js +4 -0
- package/dist/ionic/{p-DajLgJ4d.js → p-BUizV0iN.js} +1 -1
- package/dist/ionic/{p-CJv-wOAd.js → p-BViV3T3I.js} +1 -1
- package/dist/ionic/{p-CER8qW8Y.js → p-BautDe39.js} +1 -1
- package/dist/ionic/{p-CMZYmFb4.js → p-Bg92X_yH.js} +1 -1
- package/dist/ionic/{p-DYUjHcuH.js → p-BlliOtjV.js} +1 -1
- package/dist/ionic/p-BoPnUg6t.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-CW7vemvF.js +4 -0
- package/dist/ionic/p-CirHja2K.js +4 -0
- package/dist/ionic/p-D14knedj.js +4 -0
- package/dist/ionic/{p-BgOvhHy_.js → p-DURXSIC9.js} +1 -1
- package/dist/ionic/p-DlvB1Idh.js +4 -0
- package/dist/ionic/p-Dnq82tx6.js +4 -0
- package/dist/ionic/{p-C23AVPx9.js → p-Dvqtt_WK.js} +1 -1
- package/dist/ionic/{p-BaeKWZ-a.js → p-LTQ0kEh5.js} +1 -1
- package/dist/ionic/p-PCITDQzG.js +4 -0
- package/dist/ionic/p-T2mbrXZh.js +4 -0
- package/dist/ionic/{p-a8df96c8.entry.js → p-a1694aea.entry.js} +1 -1
- package/dist/ionic/{p-191a651e.entry.js → p-b52666f2.entry.js} +1 -1
- package/dist/ionic/{p-099b7f9f.entry.js → p-b87e375b.entry.js} +1 -1
- package/dist/ionic/p-bba893bd.entry.js +4 -0
- package/dist/ionic/{p-f0fb23c1.entry.js → p-bc6477b7.entry.js} +1 -1
- package/dist/ionic/{p-7bfeccb3.entry.js → p-bcce4c27.entry.js} +1 -1
- package/dist/ionic/{p-e7f4b1e0.entry.js → p-bf0bf4be.entry.js} +1 -1
- package/dist/ionic/{p-ee09ac9d.entry.js → p-c8bc68c1.entry.js} +1 -1
- package/dist/ionic/{p-4712a8a9.entry.js → p-c968f7c8.entry.js} +1 -1
- package/dist/ionic/{p-803059b6.entry.js → p-c9ca4b89.entry.js} +1 -1
- package/dist/ionic/{p-54cbb0a7.entry.js → p-d01370da.entry.js} +1 -1
- package/dist/ionic/{p-338a02e0.entry.js → p-d203aa2f.entry.js} +1 -1
- package/dist/ionic/{p-b3532b8d.entry.js → p-d47e04c8.entry.js} +1 -1
- package/dist/ionic/{p-7fbb3319.entry.js → p-dd89474c.entry.js} +1 -1
- package/dist/ionic/{p-b9b4e85d.entry.js → p-e04a7110.entry.js} +1 -1
- package/dist/ionic/{p-458715a9.entry.js → p-e07af85b.entry.js} +1 -1
- package/dist/ionic/{p-D7jHfs0Y.js → p-e0g1fYYm.js} +1 -1
- package/dist/ionic/{p-9595e305.entry.js → p-e20958c9.entry.js} +1 -1
- package/dist/ionic/{p-fe9ed9bd.entry.js → p-e7e5bd70.entry.js} +1 -1
- package/dist/ionic/p-e831cbc4.entry.js +4 -0
- package/dist/ionic/{p-BijjLYjT.js → p-eRdlCM8q.js} +1 -1
- package/dist/ionic/{p-dd01be0a.entry.js → p-f320604d.entry.js} +1 -1
- package/dist/ionic/{p-354d38d3.entry.js → p-f6d7e96d.entry.js} +1 -1
- package/dist/ionic/{p-ec00fd0d.entry.js → p-f72fd8c8.entry.js} +1 -1
- package/dist/ionic/{p-d8c138d9.entry.js → p-f78add99.entry.js} +1 -1
- package/dist/types/components/button/button.d.ts +3 -12
- package/dist/types/components/card/card.d.ts +3 -1
- package/dist/types/components/input/input.d.ts +1 -0
- package/dist/types/components/item/item.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +11 -0
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/dist/types/utils/attribute-controller.d.ts +56 -0
- 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 +10 -2
- package/hydrate/index.js +393 -128
- package/hydrate/index.mjs +393 -128
- package/package.json +1 -1
- 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-CG_zZq_I.js +0 -4
- package/components/p-CMRYD_yR.js +0 -4
- package/components/p-CWAks_S_.js +0 -4
- package/components/p-CWuIRJQN.js +0 -4
- package/components/p-Cw6WocLJ.js +0 -4
- package/components/p-DZRZic9C.js +0 -4
- package/components/p-DhNuxvJH.js +0 -4
- package/components/p-DiuOa1vw.js +0 -4
- package/dist/ionic/p-1f24cb24.entry.js +0 -4
- package/dist/ionic/p-4c3e50f8.entry.js +0 -4
- package/dist/ionic/p-7e394cc3.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-C8XilMh0.js +0 -4
- package/dist/ionic/p-CkxVYPtX.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-Do3zTvCA.js +0 -4
- package/dist/ionic/p-a8ff2489.entry.js +0 -4
- package/dist/ionic/p-f83b3e0c.entry.js +0 -4
- package/dist/ionic/p-zWf7R2xV.js +0 -4
|
@@ -151,6 +151,12 @@
|
|
|
151
151
|
position: relative;
|
|
152
152
|
flex: 1;
|
|
153
153
|
width: 100%;
|
|
154
|
+
/**
|
|
155
|
+
* The input keeps a minimum width so that the value stays visible
|
|
156
|
+
* when a long label or wide slotted content would otherwise shrink
|
|
157
|
+
* it to nothing.
|
|
158
|
+
*/
|
|
159
|
+
min-width: 2ch;
|
|
154
160
|
max-width: 100%;
|
|
155
161
|
height: 100%;
|
|
156
162
|
max-height: 100%;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Host, forceUpdate, h } from "@stencil/core";
|
|
5
|
-
import {
|
|
5
|
+
import { createAttributeController } from "../../utils/attribute-controller";
|
|
6
|
+
import { raf } from "../../utils/helpers";
|
|
6
7
|
import { createColorClasses, hostContext, openURL } from "../../utils/theme";
|
|
7
8
|
import { chevronForward } from "ionicons/icons";
|
|
8
9
|
import { getIonMode } from "../../global/ionic-global";
|
|
@@ -23,7 +24,6 @@ export class Item {
|
|
|
23
24
|
constructor() {
|
|
24
25
|
this.labelColorStyles = {};
|
|
25
26
|
this.itemStyles = new Map();
|
|
26
|
-
this.inheritedAriaAttributes = {};
|
|
27
27
|
this.didLoad = false;
|
|
28
28
|
this.multipleInputs = false;
|
|
29
29
|
this.focusable = true;
|
|
@@ -104,9 +104,16 @@ export class Item {
|
|
|
104
104
|
this.watchForIndicatorControls();
|
|
105
105
|
this.updateInteractivityOnSlotChange();
|
|
106
106
|
}
|
|
107
|
+
this.ariaController?.init();
|
|
107
108
|
}
|
|
108
109
|
componentWillLoad() {
|
|
109
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Only the initial copy takes the attribute off the host, so an `aria-label` written
|
|
112
|
+
* after load names both the native element and the Host, which is a `listitem` when
|
|
113
|
+
* the item is in an `ion-list`. The two names always agree, so a screen reader just
|
|
114
|
+
* reads it twice.
|
|
115
|
+
*/
|
|
116
|
+
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(this));
|
|
110
117
|
}
|
|
111
118
|
componentDidLoad() {
|
|
112
119
|
raf(() => {
|
|
@@ -123,6 +130,7 @@ export class Item {
|
|
|
123
130
|
this.indicatorControlObserver.disconnect();
|
|
124
131
|
this.indicatorControlObserver = undefined;
|
|
125
132
|
}
|
|
133
|
+
this.ariaController?.destroy();
|
|
126
134
|
}
|
|
127
135
|
totalNestedInputs() {
|
|
128
136
|
// The following elements have a clickable cover that is relative to the entire item
|
|
@@ -230,7 +238,8 @@ export class Item {
|
|
|
230
238
|
return controls[0];
|
|
231
239
|
}
|
|
232
240
|
render() {
|
|
233
|
-
const { detail, detailIcon, download, labelColorStyles, lines, disabled, href, rel, target, routerAnimation, routerDirection,
|
|
241
|
+
const { detail, detailIcon, download, labelColorStyles, lines, disabled, href, rel, target, routerAnimation, routerDirection, multipleInputs, } = this;
|
|
242
|
+
const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
|
|
234
243
|
const childStyles = {};
|
|
235
244
|
const mode = getIonMode(this);
|
|
236
245
|
const clickable = this.isClickable();
|
|
@@ -306,7 +315,7 @@ export class Item {
|
|
|
306
315
|
* multi-input item, and in a clickable item, which is a second tab stop.
|
|
307
316
|
*/
|
|
308
317
|
const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
|
|
309
|
-
return (h(Host, { key: '
|
|
318
|
+
return (h(Host, { key: '7fe924642310c19f057ae1bfa29c1acdf5cc7ed6', "aria-disabled": ariaDisabled, class: {
|
|
310
319
|
...childStyles,
|
|
311
320
|
...labelColorStyles,
|
|
312
321
|
...createColorClasses(this.color, {
|
|
@@ -323,7 +332,7 @@ export class Item {
|
|
|
323
332
|
'ion-focusable': this.focusable,
|
|
324
333
|
'item-rtl': document.dir === 'rtl',
|
|
325
334
|
}),
|
|
326
|
-
}, role: inList ? 'listitem' : null }, h(TagType, { key: '
|
|
335
|
+
}, role: inList ? 'listitem' : null }, h(TagType, { key: '8fddfb2a076b4b98e45ee8b23579d011dba12acb', ...attrs, ...inheritedAriaAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, h("slot", { key: '7f888b62b2023cf501fd308e32629e7a291c2d05', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), h("div", { key: '6d5cdde307caa65b131edb65cb0a5f8294cf151c', class: "item-inner", part: "inner" }, h("div", { key: '9fbfffdff4cf51adf1f02d573953cf8b145574b0', class: "input-wrapper", part: "container" }, h("slot", { key: '574c7e61cdaa3959a28bad7353105ef217a76ed9', onSlotchange: this.updateInteractivityOnSlotChange })), h("slot", { key: 'ed7e211960cd65ed17f865a6d50d5bdde069416b', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (h("ion-icon", { key: '2847bb21f42e9d5ab8ea86262b2bc1c3b3f7c902', icon: detailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": detailIcon === chevronForward }))), canActivate && mode === 'md' && h("ion-ripple-effect", { key: '55502ef394db0953144387fa3baebf9fa6a976a9' }))));
|
|
327
336
|
}
|
|
328
337
|
static get is() { return "ion-item"; }
|
|
329
338
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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"; }
|
|
@@ -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;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { win } from "./browser/index";
|
|
5
|
+
import { ariaAttributes, inheritAttributes } from "./helpers";
|
|
6
|
+
/**
|
|
7
|
+
* Copies a set of attributes off the host element so they can be applied to an element
|
|
8
|
+
* inside the shadow root, then keeps that copy in sync as the host attributes change.
|
|
9
|
+
* Using `inheritAttributes` alone copies once at load, so anything written to the host
|
|
10
|
+
* afterwards never reaches the element the assistive technology reads.
|
|
11
|
+
*
|
|
12
|
+
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
13
|
+
* watching right away, so `init()` is only needed to resume after a move.
|
|
14
|
+
*
|
|
15
|
+
* Two things to know before adopting it. Only the initial copy removes the attributes
|
|
16
|
+
* from the host, so a value written after load sits on the host as well as on the
|
|
17
|
+
* element it is applied to, which matters if the host has a role of its own. And an
|
|
18
|
+
* attribute from the initial markup can never be removed, only overwritten, since the
|
|
19
|
+
* copy already took it off the host and a `removeAttribute` there fires no mutation.
|
|
20
|
+
* An empty string works for `aria-label` and friends, but a token-valued attribute
|
|
21
|
+
* has to be set to its default instead, so `aria-pressed="false"` rather than empty.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
* @param el The host element to copy from and watch.
|
|
25
|
+
* @param attributes The attributes to copy and watch.
|
|
26
|
+
* @param onChange Called after `attributes` changes, so the component can re-render.
|
|
27
|
+
* @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
|
|
28
|
+
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
29
|
+
* those is the component's own write, and for attributes that would put a second node in
|
|
30
|
+
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
31
|
+
*/
|
|
32
|
+
export const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = []) => {
|
|
33
|
+
let inherited = inheritAttributes(el, attributes);
|
|
34
|
+
let observer;
|
|
35
|
+
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
36
|
+
/**
|
|
37
|
+
* The names still on the host, which is everything written after load. The initial
|
|
38
|
+
* copy removes what it captures, so a missing attribute only counts as a removal
|
|
39
|
+
* when its name is in here.
|
|
40
|
+
*/
|
|
41
|
+
const hostWritten = new Set();
|
|
42
|
+
const setPresence = (name, value) => {
|
|
43
|
+
if (value === null) {
|
|
44
|
+
hostWritten.delete(name);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
hostWritten.add(name);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Nothing is watching while the host is out of the tree, since `disconnectedCallback`
|
|
52
|
+
* calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
|
|
53
|
+
* the host has to be re-read on the way back in.
|
|
54
|
+
*/
|
|
55
|
+
const readMissedChanges = () => {
|
|
56
|
+
const changed = {};
|
|
57
|
+
for (const name of watchedAttributes) {
|
|
58
|
+
const value = el.getAttribute(name);
|
|
59
|
+
const wasOnHost = hostWritten.has(name);
|
|
60
|
+
setPresence(name, value);
|
|
61
|
+
/**
|
|
62
|
+
* An attribute that was never written to the host is missing because the initial
|
|
63
|
+
* copy took it, not because the developer cleared it.
|
|
64
|
+
*/
|
|
65
|
+
if ((value === null && !wasOnHost) || value === inherited[name]) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
changed[name] = value;
|
|
69
|
+
}
|
|
70
|
+
if (Object.keys(changed).length > 0) {
|
|
71
|
+
inherited = { ...inherited, ...changed };
|
|
72
|
+
onChange();
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const init = () => {
|
|
76
|
+
// There is no MutationObserver in SSR or the hydrate build.
|
|
77
|
+
if (observer !== undefined || watchedAttributes.length === 0 || win === undefined || !('MutationObserver' in win)) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
readMissedChanges();
|
|
81
|
+
observer = new MutationObserver((mutations) => {
|
|
82
|
+
const changed = {};
|
|
83
|
+
for (const mutation of mutations) {
|
|
84
|
+
const name = mutation.attributeName;
|
|
85
|
+
// A removed attribute reads back as null, which clears it from the element the
|
|
86
|
+
// values are spread onto.
|
|
87
|
+
const value = el.getAttribute(name);
|
|
88
|
+
setPresence(name, value);
|
|
89
|
+
changed[name] = value;
|
|
90
|
+
}
|
|
91
|
+
inherited = { ...inherited, ...changed };
|
|
92
|
+
onChange();
|
|
93
|
+
});
|
|
94
|
+
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
95
|
+
};
|
|
96
|
+
const destroy = () => {
|
|
97
|
+
observer?.disconnect();
|
|
98
|
+
observer = undefined;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
102
|
+
* host and an observer armed any earlier would read the removal as a developer clearing
|
|
103
|
+
* them.
|
|
104
|
+
*/
|
|
105
|
+
init();
|
|
106
|
+
return {
|
|
107
|
+
get attributes() {
|
|
108
|
+
return inherited;
|
|
109
|
+
},
|
|
110
|
+
init,
|
|
111
|
+
destroy,
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
|
|
116
|
+
* watches every ARIA attribute plus `role`.
|
|
117
|
+
*
|
|
118
|
+
* @internal
|
|
119
|
+
* @param el The host element to copy from and watch.
|
|
120
|
+
* @param onChange Called after the attributes change, so the component can re-render.
|
|
121
|
+
* @param hostOwnedAttributes Attributes copied at load but not watched. See
|
|
122
|
+
* `createAttributeController`.
|
|
123
|
+
*/
|
|
124
|
+
export const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
|
|
125
|
+
return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
|
|
126
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { raf } from "../helpers";
|
|
5
|
+
/**
|
|
6
|
+
* The content slotted into a form control's start or end slot that a click
|
|
7
|
+
* started on, or `null` when the click did not start on slotted content.
|
|
8
|
+
*
|
|
9
|
+
* The slotted element is compared against the host in case the form control
|
|
10
|
+
* itself is slotted into, for example, an item. Without that check a control
|
|
11
|
+
* carrying slot="start"/"end" would treat every click on itself as a slotted
|
|
12
|
+
* click.
|
|
13
|
+
*/
|
|
14
|
+
export const getSlottedClickContent = (ev, el) => {
|
|
15
|
+
const slotted = ev.target.closest('[slot="start"], [slot="end"]');
|
|
16
|
+
return slotted !== null && slotted !== el && el.contains(slotted) ? slotted : null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Whether a click started on content slotted into a form control's start or
|
|
20
|
+
* end slot.
|
|
21
|
+
*/
|
|
22
|
+
const isSlottedClick = (ev, el) => getSlottedClickContent(ev, el) !== null;
|
|
23
|
+
/**
|
|
24
|
+
* A utility for form components that wrap their content in a <label>, such as
|
|
25
|
+
* ion-input, ion-textarea and ion-select.
|
|
26
|
+
*
|
|
27
|
+
* Clicking slotted content also clicks that label, and the browser follows it
|
|
28
|
+
* with a click on the label's control. That second click would be emitted from
|
|
29
|
+
* the host as a duplicate, so the slotted click is remembered and the click
|
|
30
|
+
* that follows it is suppressed.
|
|
31
|
+
*
|
|
32
|
+
* Browsers skip the forwarding when the click lands on interactive content,
|
|
33
|
+
* such as a slotted button, so the slotted click is remembered for a frame
|
|
34
|
+
* rather than until a forwarded click that may never arrive.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* @param el - The host element.
|
|
38
|
+
* @param getNativeInput - A callback returning the native form control the
|
|
39
|
+
* label points at, for components that have one. Those components emit the
|
|
40
|
+
* click from the host rather than the control, so the control's click is
|
|
41
|
+
* always stopped and re-dispatched from the host. Omit it for components whose
|
|
42
|
+
* label has no `for` attribute, such as ion-select, where the browser forwards
|
|
43
|
+
* to an internal control that already re-bubbles targeting the host.
|
|
44
|
+
*/
|
|
45
|
+
export const createClickController = (el, getNativeInput) => {
|
|
46
|
+
let hasSlottedClick = false;
|
|
47
|
+
const handleClickCapture = (ev) => {
|
|
48
|
+
if (isSlottedClick(ev, el)) {
|
|
49
|
+
hasSlottedClick = true;
|
|
50
|
+
raf(() => (hasSlottedClick = false));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (getNativeInput === undefined) {
|
|
54
|
+
if (hasSlottedClick) {
|
|
55
|
+
ev.stopPropagation();
|
|
56
|
+
hasSlottedClick = false;
|
|
57
|
+
}
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const nativeInput = getNativeInput();
|
|
61
|
+
if (nativeInput !== undefined && ev.target === nativeInput) {
|
|
62
|
+
ev.stopPropagation();
|
|
63
|
+
if (!hasSlottedClick) {
|
|
64
|
+
el.click();
|
|
65
|
+
}
|
|
66
|
+
hasSlottedClick = false;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
return { handleClickCapture };
|
|
70
|
+
};
|
|
@@ -82,8 +82,8 @@ export const hasLazyBuild = (stencilEl) => {
|
|
|
82
82
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
83
83
|
* that is later used in the render function.
|
|
84
84
|
*
|
|
85
|
-
* This
|
|
86
|
-
* does not trigger a re-render.
|
|
85
|
+
* This copies once. Use `createAttributeController` instead when the attributes can
|
|
86
|
+
* change after load, since a host attribute change does not trigger a re-render.
|
|
87
87
|
*/
|
|
88
88
|
export const inheritAttributes = (el, attributes = []) => {
|
|
89
89
|
const attributeObject = {};
|
|
@@ -102,8 +102,10 @@ export const inheritAttributes = (el, attributes = []) => {
|
|
|
102
102
|
* List of available ARIA attributes + `role`.
|
|
103
103
|
* Removed deprecated attributes.
|
|
104
104
|
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes
|
|
105
|
+
*
|
|
106
|
+
* @internal Exported for `attribute-controller.ts`, which needs the same set.
|
|
105
107
|
*/
|
|
106
|
-
const ariaAttributes = [
|
|
108
|
+
export const ariaAttributes = [
|
|
107
109
|
'role',
|
|
108
110
|
'aria-activedescendant',
|
|
109
111
|
'aria-atomic',
|
package/dist/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-09-
|
|
2
|
+
"timestamp": "2026-09-15T16:56:36",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.45.0",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -31461,7 +31461,13 @@
|
|
|
31461
31461
|
"docsTags": []
|
|
31462
31462
|
}
|
|
31463
31463
|
],
|
|
31464
|
-
"listeners": [
|
|
31464
|
+
"listeners": [
|
|
31465
|
+
{
|
|
31466
|
+
"event": "click",
|
|
31467
|
+
"capture": true,
|
|
31468
|
+
"passive": false
|
|
31469
|
+
}
|
|
31470
|
+
],
|
|
31465
31471
|
"styles": [
|
|
31466
31472
|
{
|
|
31467
31473
|
"name": "--background",
|