@ionic/core 9.0.11-nightly.20261111 → 9.0.12-dev.11794435138.1d5cadc3
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-D8FyR2IB.js → p-28_KCxSf.js} +1 -1
- package/components/{p-PkD1iLNN.js → p-2r7QpBW2.js} +1 -1
- package/components/{p-CW84OFQa.js → p-5LnxYgt7.js} +1 -1
- package/components/{p-CvyvLbPe.js → p-B89FqNe7.js} +1 -1
- package/components/p-BAAtTHkh.js +4 -0
- package/components/{p-CjPRDxby.js → p-BE1iSZxK.js} +1 -1
- package/components/p-BEN_dW38.js +4 -0
- package/components/{p-Dy7x-KDF.js → p-BFhqMUFJ.js} +1 -1
- package/components/{p-DRm4t-by.js → p-BKzm8GnQ.js} +1 -1
- package/components/{p-DHo45oj7.js → p-BPW1yhC5.js} +1 -1
- package/components/{p-HthJZjZ6.js → p-BRwclc4v.js} +1 -1
- package/components/{p-ChkSQqfP.js → p-BU1um0go.js} +1 -1
- package/components/{p-DaW9OZ6S.js → p-BaD2k7-g.js} +1 -1
- package/components/{p-RhI78AKb.js → p-Bl36leJI.js} +1 -1
- package/components/{p-B3dSuofL.js → p-Bp-vRdq-.js} +1 -1
- package/components/{p-DnBabjgY.js → p-BqRR1T5F.js} +1 -1
- package/components/{p-BT2InaHz.js → p-By_XQw23.js} +1 -1
- package/components/{p-07wRJfkt.js → p-C6Eoe8TE.js} +1 -1
- package/components/p-C6mx0RsH.js +4 -0
- package/components/{p-7KepMw9O.js → p-C7PoQnxN.js} +1 -1
- package/components/{p-C8BAigo3.js → p-CApfTEZu.js} +1 -1
- package/components/{p-D5_mEbGJ.js → p-CHtaS-1H.js} +1 -1
- package/components/{p-D_U0pDe5.js → p-CHw0oDIX.js} +1 -1
- package/components/p-CVWleXIL.js +4 -0
- package/components/p-CeRIYiar.js +4 -0
- package/components/{p-BBsseItU.js → p-CekDicbC.js} +1 -1
- package/components/p-Cjd_foSx.js +4 -0
- package/components/{p-z-EWo6r-.js → p-Cs66-da5.js} +1 -1
- package/components/{p-DTGCMApY.js → p-CsEqD5L_.js} +1 -1
- package/components/p-CxYMGJTr.js +4 -0
- package/components/{p-hLu-eIbb.js → p-CyOxaozL.js} +1 -1
- package/{dist/ionic/p-CJmyfI8x.js → components/p-D2CH_C1y.js} +1 -1
- package/components/{p-BrrMFd9K.js → p-D3Kil3Ox.js} +1 -1
- package/components/{p-BWbz71uB.js → p-D7J-iv5T.js} +1 -1
- package/{dist/ionic/p-e1haAYzm.js → components/p-DBdOjgB_.js} +1 -1
- package/{dist/ionic/p-BO10QT9r.js → components/p-DDML-XXM.js} +1 -1
- package/components/{p-ChsJlFCQ.js → p-DPypH5J1.js} +1 -1
- package/components/{p-CqvARtmt.js → p-DSGxE4YQ.js} +1 -1
- package/components/{p-KbMCbGRA.js → p-DVRS13xd.js} +1 -1
- package/components/p-DVa8nma_.js +4 -0
- package/components/{p-7NbIvzb4.js → p-DX2WL1Da.js} +1 -1
- package/components/p-Dhhot0Wu.js +4 -0
- package/components/{p-Dbi3KqKm.js → p-Di_8hcJD.js} +1 -1
- package/components/{p-C-SO5kIs.js → p-Dkw9q24a.js} +1 -1
- package/components/{p-BMHdI-wb.js → p-DrXp7JFH.js} +1 -1
- package/components/{p-3avHDbEF.js → p-Dt1Xl4fS.js} +1 -1
- package/components/p-DuG_CBXq.js +4 -0
- package/components/p-HIqLOae3.js +4 -0
- package/components/{p-BZ1k9WL7.js → p-Zt5D5E38.js} +1 -1
- package/components/p-dgUknkY4.js +4 -0
- package/components/{p-DwTzX8Vi.js → p-fCziDtBc.js} +1 -1
- package/components/{p-CUQjkOdi.js → p-oTJGwohD.js} +1 -1
- package/dist/cjs/{animation-UiXhXV49.js → animation-B7oGwLLy.js} +2 -2
- package/dist/cjs/{app-globals-BoFCZq0K.js → app-globals-CIBBAkMv.js} +1 -1
- package/dist/cjs/attribute-controller-bNeK5E15.js +219 -0
- package/dist/cjs/{button-active-DzN1aPt-.js → button-active-B9Tkc4mf.js} +2 -2
- package/dist/cjs/{capacitor-BTjfXFlK.js → capacitor-MxFQgshb.js} +1 -1
- package/dist/cjs/{format-CVjpvAl1.js → format-CqApCy46.js} +1 -1
- package/dist/cjs/{framework-delegate-hNMKEiQC.js → framework-delegate-DAKg2Azt.js} +1 -1
- package/dist/cjs/{haptic-BD5qPgy8.js → haptic-CRRCyhfL.js} +1 -1
- package/dist/cjs/{helpers-BrETKUUX.js → helpers-BDvjDsXt.js} +1 -1
- package/dist/cjs/{index-BTc0Jnhx.js → index-BUIZTwKD.js} +5 -5
- package/dist/cjs/{index-DNBYnlrc.js → index-BashZvQB.js} +4 -4
- package/dist/cjs/{index-bwclzjks.js → index-BecWuzkK.js} +2 -2
- package/dist/cjs/{index-BiQyIvoc.js → index-CKee8md4.js} +71 -35
- package/dist/cjs/{index-DMz2Eyis.js → index-D02LHDVd.js} +2 -2
- package/dist/cjs/{index-B4ONUQRp.js → index-DJX-8rkB.js} +1 -1
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{input-shims-CRmdShL9.js → input-shims-ClPpap7E.js} +5 -5
- package/dist/cjs/{input.utils-Becpo0ax.js → input.utils-DXw7l7p9.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +7 -5
- package/dist/cjs/ion-action-sheet.cjs.entry.js +13 -12
- package/dist/cjs/ion-alert.cjs.entry.js +13 -12
- package/dist/cjs/ion-app_8.cjs.entry.js +32 -24
- package/dist/cjs/ion-avatar_3.cjs.entry.js +8 -5
- package/dist/cjs/ion-back-button.cjs.entry.js +16 -6
- package/dist/cjs/ion-backdrop.cjs.entry.js +4 -3
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +33 -9
- package/dist/cjs/ion-button_2.cjs.entry.js +17 -9
- package/dist/cjs/ion-card_5.cjs.entry.js +36 -11
- package/dist/cjs/ion-checkbox.cjs.entry.js +6 -5
- package/dist/cjs/ion-chip.cjs.entry.js +4 -3
- package/dist/cjs/ion-col_3.cjs.entry.js +8 -5
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -5
- package/dist/cjs/ion-datetime.cjs.entry.js +8 -7
- package/dist/cjs/ion-fab_3.cjs.entry.js +18 -8
- package/dist/cjs/ion-img.cjs.entry.js +5 -4
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +9 -7
- package/dist/cjs/ion-input-otp.cjs.entry.js +5 -4
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +4 -3
- package/dist/cjs/ion-input.cjs.entry.js +7 -6
- package/dist/cjs/ion-item-option_3.cjs.entry.js +23 -9
- package/dist/cjs/ion-item_8.cjs.entry.js +38 -14
- package/dist/cjs/ion-loading.cjs.entry.js +9 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +24 -12
- package/dist/cjs/ion-modal.cjs.entry.js +13 -12
- package/dist/cjs/ion-nav_2.cjs.entry.js +10 -8
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +5 -4
- package/dist/cjs/ion-picker-column.cjs.entry.js +7 -6
- package/dist/cjs/ion-picker.cjs.entry.js +4 -3
- package/dist/cjs/ion-popover.cjs.entry.js +9 -8
- package/dist/cjs/ion-progress-bar.cjs.entry.js +5 -4
- package/dist/cjs/ion-radio_2.cjs.entry.js +8 -6
- package/dist/cjs/ion-range.cjs.entry.js +6 -5
- package/dist/cjs/ion-refresher_2.cjs.entry.js +12 -10
- package/dist/cjs/ion-reorder_2.cjs.entry.js +10 -8
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +4 -3
- package/dist/cjs/ion-route_4.cjs.entry.js +26 -10
- package/dist/cjs/ion-searchbar.cjs.entry.js +5 -4
- package/dist/cjs/ion-segment-content.cjs.entry.js +3 -2
- package/dist/cjs/ion-segment-view.cjs.entry.js +3 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +14 -7
- package/dist/cjs/ion-select-modal.cjs.entry.js +9 -8
- package/dist/cjs/ion-select_3.cjs.entry.js +22 -14
- package/dist/cjs/ion-spinner.cjs.entry.js +4 -3
- package/dist/cjs/ion-split-pane.cjs.entry.js +4 -3
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +21 -10
- package/dist/cjs/ion-tab_2.cjs.entry.js +7 -5
- package/dist/cjs/ion-text.cjs.entry.js +4 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +7 -6
- package/dist/cjs/ion-toast.cjs.entry.js +9 -8
- package/dist/cjs/ion-toggle.cjs.entry.js +8 -7
- package/dist/cjs/{ionic-global-48ceLiJ6.js → ionic-global-Bt1gOF3y.js} +1 -1
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-CN092Fh6.js → ios.transition-CExZyoOI.js} +4 -4
- package/dist/cjs/{item-multiple-inputs-C-hz7xrh.js → item-multiple-inputs-DCadv5DD.js} +1 -1
- package/dist/cjs/{keyboard-4OBzkjOG.js → keyboard-DcLeJI_8.js} +4 -4
- package/dist/cjs/{keyboard-BMpscicm.js → keyboard-OOIuCa13.js} +1 -1
- package/dist/cjs/{keyboard-controller-DZE97OtR.js → keyboard-controller-BMyz0P1a.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-B6961Ny9.js → md.transition-DaAVTRvs.js} +4 -4
- package/dist/cjs/{overlays-BbVQG3UT.js → overlays-D4y6dLkd.js} +4 -4
- package/dist/cjs/{select-option-render-CzyhrkOu.js → select-option-render-XNNDfPjV.js} +2 -2
- package/dist/cjs/{slot-mutation-controller-CRa_cKOh.js → slot-mutation-controller-DPIgf5CF.js} +1 -1
- package/dist/cjs/{status-tap-hRIvObiJ.js → status-tap-DsMxsZJD.js} +3 -3
- package/dist/cjs/{swipe-back-C-aigThB.js → swipe-back-DTBGxsBq.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/back-button/back-button.js +12 -3
- package/dist/collection/components/breadcrumb/breadcrumb.js +28 -5
- package/dist/collection/components/button/button.js +10 -4
- package/dist/collection/components/card/card.js +24 -3
- package/dist/collection/components/fab-button/fab-button.js +10 -3
- package/dist/collection/components/item/item.js +19 -3
- package/dist/collection/components/item-option/item-option.js +14 -3
- package/dist/collection/components/menu-button/menu-button.js +12 -3
- package/dist/collection/components/router-link/router-link.js +15 -3
- package/dist/collection/components/segment-button/segment-button.js +7 -2
- package/dist/collection/components/select/select.js +8 -3
- package/dist/collection/components/tab-button/tab-button.js +12 -3
- package/dist/collection/utils/attribute-controller.js +107 -20
- package/dist/docs.json +2 -2
- package/dist/esm/{animation-C_V9lXzL.js → animation-DC5AcIYI.js} +2 -2
- package/dist/esm/{app-globals-CNfpAPW6.js → app-globals-BFed4dT0.js} +1 -1
- package/dist/esm/attribute-controller-ClTQeZiJ.js +215 -0
- package/dist/esm/{button-active-rB-Ct9KZ.js → button-active-C2jz6R8a.js} +2 -2
- package/dist/esm/{capacitor-BY7l8HgR.js → capacitor-Bt0eJ0hM.js} +1 -1
- package/dist/esm/{format-Ck1cw5z7.js → format-C833IXB1.js} +1 -1
- package/dist/esm/{framework-delegate-CW5_kWfc.js → framework-delegate-DnTzYR1W.js} +1 -1
- package/dist/esm/{haptic-ES_sSPLn.js → haptic-ChR8my2M.js} +1 -1
- package/dist/esm/{helpers-p94IkmEA.js → helpers-BvbUHGGm.js} +1 -1
- package/dist/esm/{index-BpRUsN_W.js → index-BGtO2Fhf.js} +71 -35
- package/dist/esm/{index-CBkVO5D0.js → index-BObCPR8a.js} +2 -2
- package/dist/esm/{index-txcXIB3P.js → index-BXaoLxIE.js} +5 -5
- package/dist/esm/{index-DLDbwWW7.js → index-DFG3GaUN.js} +2 -2
- package/dist/esm/{index-CK8uF0iB.js → index-I3r9qsv0.js} +1 -1
- package/dist/esm/{index-vgPixHgF.js → index-MGm9Sl6h.js} +4 -4
- package/dist/esm/index.js +11 -11
- package/dist/esm/{input-shims-KNXj3DAv.js → input-shims-DmHorap3.js} +5 -5
- package/dist/esm/{input.utils-DZY_K8Po.js → input.utils-CBbgDLtb.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +7 -5
- package/dist/esm/ion-action-sheet.entry.js +13 -12
- package/dist/esm/ion-alert.entry.js +13 -12
- package/dist/esm/ion-app_8.entry.js +32 -24
- package/dist/esm/ion-avatar_3.entry.js +8 -5
- package/dist/esm/ion-back-button.entry.js +16 -6
- package/dist/esm/ion-backdrop.entry.js +4 -3
- package/dist/esm/ion-breadcrumb_2.entry.js +33 -9
- package/dist/esm/ion-button_2.entry.js +17 -9
- package/dist/esm/ion-card_5.entry.js +36 -11
- package/dist/esm/ion-checkbox.entry.js +6 -5
- package/dist/esm/ion-chip.entry.js +4 -3
- package/dist/esm/ion-col_3.entry.js +8 -5
- package/dist/esm/ion-datetime-button.entry.js +6 -5
- package/dist/esm/ion-datetime.entry.js +8 -7
- package/dist/esm/ion-fab_3.entry.js +18 -8
- package/dist/esm/ion-img.entry.js +5 -4
- package/dist/esm/ion-infinite-scroll_2.entry.js +9 -7
- package/dist/esm/ion-input-otp.entry.js +5 -4
- package/dist/esm/ion-input-password-toggle.entry.js +4 -3
- package/dist/esm/ion-input.entry.js +7 -6
- package/dist/esm/ion-item-option_3.entry.js +23 -9
- package/dist/esm/ion-item_8.entry.js +38 -14
- package/dist/esm/ion-loading.entry.js +9 -8
- package/dist/esm/ion-menu_3.entry.js +24 -12
- package/dist/esm/ion-modal.entry.js +13 -12
- package/dist/esm/ion-nav_2.entry.js +10 -8
- package/dist/esm/ion-picker-column-option.entry.js +5 -4
- package/dist/esm/ion-picker-column.entry.js +7 -6
- package/dist/esm/ion-picker.entry.js +4 -3
- package/dist/esm/ion-popover.entry.js +9 -8
- package/dist/esm/ion-progress-bar.entry.js +5 -4
- package/dist/esm/ion-radio_2.entry.js +8 -6
- package/dist/esm/ion-range.entry.js +6 -5
- package/dist/esm/ion-refresher_2.entry.js +12 -10
- package/dist/esm/ion-reorder_2.entry.js +10 -8
- package/dist/esm/ion-ripple-effect.entry.js +4 -3
- package/dist/esm/ion-route_4.entry.js +26 -10
- package/dist/esm/ion-searchbar.entry.js +5 -4
- package/dist/esm/ion-segment-content.entry.js +3 -2
- package/dist/esm/ion-segment-view.entry.js +3 -2
- package/dist/esm/ion-segment_2.entry.js +14 -7
- package/dist/esm/ion-select-modal.entry.js +9 -8
- package/dist/esm/ion-select_3.entry.js +22 -14
- package/dist/esm/ion-spinner.entry.js +4 -3
- package/dist/esm/ion-split-pane.entry.js +4 -3
- package/dist/esm/ion-tab-bar_2.entry.js +21 -10
- package/dist/esm/ion-tab_2.entry.js +7 -5
- package/dist/esm/ion-text.entry.js +4 -3
- package/dist/esm/ion-textarea.entry.js +7 -6
- package/dist/esm/ion-toast.entry.js +9 -8
- package/dist/esm/ion-toggle.entry.js +8 -7
- package/dist/esm/{ionic-global-Cep6oYzK.js → ionic-global-BDyJ_8I-.js} +1 -1
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-CW92wRDL.js → ios.transition-BRRzMHfK.js} +4 -4
- package/dist/esm/{item-multiple-inputs-Bd2LO7qK.js → item-multiple-inputs-IPlsPhUJ.js} +1 -1
- package/dist/esm/{keyboard-CutS8BPd.js → keyboard-BFjnkNMv.js} +1 -1
- package/dist/esm/{keyboard-BumguZrM.js → keyboard-DUoJXTRE.js} +4 -4
- package/dist/esm/{keyboard-controller-DqohyEsZ.js → keyboard-controller-BA84p4ML.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-yhfkYX1P.js → md.transition-BlNVIP5o.js} +4 -4
- package/dist/esm/{overlays-BBgMM61s.js → overlays-DR4E-YYD.js} +4 -4
- package/dist/esm/{select-option-render-BSDT9oSA.js → select-option-render-BUBAvw2_.js} +2 -2
- package/dist/esm/{slot-mutation-controller-uKdPbY9K.js → slot-mutation-controller-DBmgz_0k.js} +1 -1
- package/dist/esm/{status-tap-BskkGI4e.js → status-tap-z4LuyVUt.js} +3 -3
- package/dist/esm/{swipe-back-BZdyM2Q-.js → swipe-back-C1eBKfiK.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-03bb02b6.entry.js +4 -0
- package/dist/ionic/p-05a057fb.entry.js +4 -0
- package/dist/ionic/p-1238548e.entry.js +4 -0
- package/dist/ionic/p-1274e8e0.entry.js +4 -0
- package/dist/ionic/p-1419107d.entry.js +4 -0
- package/dist/ionic/p-1616c2e3.entry.js +4 -0
- package/dist/ionic/p-1a4d6cf3.entry.js +4 -0
- package/dist/ionic/p-1ae4b282.entry.js +4 -0
- package/dist/ionic/p-1b7a15d4.entry.js +4 -0
- package/dist/ionic/{p-BWKtcudz.js → p-1feuPAQy.js} +1 -1
- package/dist/ionic/p-2090c9dd.entry.js +4 -0
- package/dist/ionic/p-26aa0bea.entry.js +4 -0
- package/dist/ionic/p-2f68b3c0.entry.js +4 -0
- package/dist/ionic/p-2fab8bf5.entry.js +4 -0
- package/dist/ionic/p-333b8225.entry.js +4 -0
- package/dist/ionic/p-33c41604.entry.js +4 -0
- package/dist/ionic/p-46f2c59f.entry.js +4 -0
- package/dist/ionic/p-4ecf0d94.entry.js +4 -0
- package/dist/ionic/p-4f02f020.entry.js +4 -0
- package/dist/ionic/p-52186d6b.entry.js +4 -0
- package/dist/ionic/p-53b6ab69.entry.js +4 -0
- package/dist/ionic/p-605d5a7e.entry.js +4 -0
- package/dist/ionic/p-66adc5a1.entry.js +4 -0
- package/dist/ionic/p-6a746af4.entry.js +4 -0
- package/dist/ionic/p-6e7d46fa.entry.js +4 -0
- package/dist/ionic/p-736344e9.entry.js +4 -0
- package/dist/ionic/p-74dda4e5.entry.js +4 -0
- package/dist/ionic/p-79e645bd.entry.js +4 -0
- package/dist/ionic/p-7hQRImkK.js +4 -0
- package/dist/ionic/p-88cf20d2.entry.js +4 -0
- package/dist/ionic/p-98d3a2be.entry.js +4 -0
- package/dist/ionic/p-9e3b3263.entry.js +4 -0
- package/dist/ionic/{p-8B39TMv-.js → p-B9cO-kYV.js} +1 -1
- package/dist/ionic/p-BGtO2Fhf.js +6 -0
- package/dist/ionic/{p-C4SpVvhx.js → p-BNupGwtk.js} +1 -1
- package/dist/ionic/{p-DArnNWiu.js → p-BkcYeWXi.js} +1 -1
- package/dist/ionic/p-Bl_jKJLv.js +4 -0
- package/dist/ionic/p-BmeHOspf.js +4 -0
- package/dist/ionic/{p-5a3UxQAh.js → p-C7A9OQcL.js} +1 -1
- package/{components/p-R4UxBukQ.js → dist/ionic/p-CBq1CZwb.js} +1 -1
- package/dist/ionic/{p-DxftXYZp.js → p-CNyAVKal.js} +1 -1
- package/dist/ionic/p-CRgN46qV.js +4 -0
- package/dist/ionic/p-CYKfkI6i.js +4 -0
- package/dist/ionic/{p-BBZQUbCq.js → p-C_0lvVN_.js} +1 -1
- package/{components/p-CdrNHfZl.js → dist/ionic/p-Ci4965j8.js} +1 -1
- package/dist/ionic/{p-SEecsUh7.js → p-CjUT_VTP.js} +1 -1
- package/{components/p-LkEGRiq0.js → dist/ionic/p-Cw2UdaY3.js} +1 -1
- package/dist/ionic/{p-DFPZa_No.js → p-D0_5-Ckh.js} +1 -1
- package/dist/ionic/p-D5TRCRie.js +4 -0
- package/dist/ionic/p-DCzujr0Q.js +4 -0
- package/dist/ionic/{p-B2JD8_LP.js → p-DJqMQDf-.js} +1 -1
- package/dist/ionic/{p-CfccUand.js → p-DRGrDfWv.js} +1 -1
- package/dist/ionic/p-Dqz9qh-H.js +4 -0
- package/dist/ionic/{p-Cf6KtUnA.js → p-RJtRqfIz.js} +1 -1
- package/dist/ionic/p-SfKXFiOB.js +4 -0
- package/dist/ionic/{p-CNdt1FPc.js → p-UUJgswAN.js} +1 -1
- package/dist/ionic/p-a4df0e91.entry.js +4 -0
- package/dist/ionic/p-a992a35b.entry.js +4 -0
- package/dist/ionic/p-b5e6edf6.entry.js +4 -0
- package/dist/ionic/p-b872f43e.entry.js +4 -0
- package/dist/ionic/p-b922806b.entry.js +4 -0
- package/dist/ionic/p-bf720fd6.entry.js +4 -0
- package/dist/ionic/p-c1209b84.entry.js +4 -0
- package/dist/ionic/p-c394744f.entry.js +4 -0
- package/dist/ionic/p-c7315410.entry.js +4 -0
- package/dist/ionic/p-ca4a06e6.entry.js +4 -0
- package/dist/ionic/p-ca608663.entry.js +4 -0
- package/dist/ionic/p-d0d4482d.entry.js +4 -0
- package/dist/ionic/p-d4afa00a.entry.js +4 -0
- package/dist/ionic/p-d7749f70.entry.js +4 -0
- package/dist/ionic/p-db93830d.entry.js +4 -0
- package/dist/ionic/p-dd3d4a4f.entry.js +4 -0
- package/dist/ionic/{p-B2y1T0dN.js → p-de2BC0yO.js} +1 -1
- package/dist/ionic/p-df8a4ddd.entry.js +4 -0
- package/dist/ionic/p-df9ebba7.entry.js +4 -0
- package/dist/ionic/p-eb93c676.entry.js +4 -0
- package/dist/ionic/p-ec4dbb45.entry.js +4 -0
- package/dist/ionic/p-f0206bd7.entry.js +4 -0
- package/dist/ionic/{p-96d040b0.entry.js → p-fcc5b886.entry.js} +1 -1
- package/dist/ionic/p-rXvVaOP9.js +4 -0
- package/dist/ionic/{p-DCmOKz8e.js → p-ynrl9u5l.js} +1 -1
- package/dist/types/components/back-button/back-button.d.ts +3 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +8 -0
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +6 -0
- package/dist/types/components/fab-button/fab-button.d.ts +2 -0
- package/dist/types/components/item/item.d.ts +6 -0
- package/dist/types/components/item-option/item-option.d.ts +4 -0
- package/dist/types/components/menu-button/menu-button.d.ts +3 -0
- package/dist/types/components/router-link/router-link.d.ts +5 -0
- package/dist/types/components/segment-button/segment-button.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +1 -0
- package/dist/types/components/tab-button/tab-button.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/attribute-controller.d.ts +28 -6
- package/hydrate/index.js +574 -262
- package/hydrate/index.mjs +574 -262
- package/package.json +2 -2
- package/components/p-C0TdbIVo.js +0 -4
- package/components/p-C6Y0cCH_.js +0 -4
- package/components/p-CCFj0kgH.js +0 -4
- package/components/p-CRb2xRCz.js +0 -4
- package/components/p-CohRJRIu.js +0 -4
- package/components/p-Ct2aBEue.js +0 -4
- package/components/p-CwEis84J.js +0 -4
- package/components/p-DLEJ61lJ.js +0 -4
- package/components/p-Dah8BCNg.js +0 -4
- package/components/p-DaojW_d_.js +0 -4
- package/components/p-Ds5vN3iu.js +0 -4
- package/components/p-kKGBuIkf.js +0 -4
- package/dist/cjs/attribute-controller-0-lwbVEj.js +0 -131
- package/dist/esm/attribute-controller-ItNOXNp9.js +0 -128
- package/dist/ionic/p-00cd107d.entry.js +0 -4
- package/dist/ionic/p-013b9aba.entry.js +0 -4
- package/dist/ionic/p-014c3633.entry.js +0 -4
- package/dist/ionic/p-0562139b.entry.js +0 -4
- package/dist/ionic/p-0a789930.entry.js +0 -4
- package/dist/ionic/p-0f1613f2.entry.js +0 -4
- package/dist/ionic/p-1252621e.entry.js +0 -4
- package/dist/ionic/p-129f7b95.entry.js +0 -4
- package/dist/ionic/p-16de8fd9.entry.js +0 -4
- package/dist/ionic/p-1bb1be7e.entry.js +0 -4
- package/dist/ionic/p-1f342c2d.entry.js +0 -4
- package/dist/ionic/p-1ffa5577.entry.js +0 -4
- package/dist/ionic/p-210f906e.entry.js +0 -4
- package/dist/ionic/p-27960f65.entry.js +0 -4
- package/dist/ionic/p-3c6fc2e8.entry.js +0 -4
- package/dist/ionic/p-436d4ac8.entry.js +0 -4
- package/dist/ionic/p-43729675.entry.js +0 -4
- package/dist/ionic/p-4468e439.entry.js +0 -4
- package/dist/ionic/p-4e4e5919.entry.js +0 -4
- package/dist/ionic/p-51af4728.entry.js +0 -4
- package/dist/ionic/p-59e4b521.entry.js +0 -4
- package/dist/ionic/p-5b47b8d5.entry.js +0 -4
- package/dist/ionic/p-5dcddfd5.entry.js +0 -4
- package/dist/ionic/p-694f3e78.entry.js +0 -4
- package/dist/ionic/p-76c189e7.entry.js +0 -4
- package/dist/ionic/p-77252596.entry.js +0 -4
- package/dist/ionic/p-77540bcb.entry.js +0 -4
- package/dist/ionic/p-77e7b612.entry.js +0 -4
- package/dist/ionic/p-7868eb92.entry.js +0 -4
- package/dist/ionic/p-800ce1e0.entry.js +0 -4
- package/dist/ionic/p-84470714.entry.js +0 -4
- package/dist/ionic/p-87fb6d59.entry.js +0 -4
- package/dist/ionic/p-8af85fa8.entry.js +0 -4
- package/dist/ionic/p-8c85e250.entry.js +0 -4
- package/dist/ionic/p-8dQB1sG_.js +0 -4
- package/dist/ionic/p-9515f840.entry.js +0 -4
- package/dist/ionic/p-9d7e5a0b.entry.js +0 -4
- package/dist/ionic/p-B0afqOUt.js +0 -4
- package/dist/ionic/p-BHBb21Hp.js +0 -4
- package/dist/ionic/p-BexAj0yw.js +0 -4
- package/dist/ionic/p-BgkRGRO3.js +0 -4
- package/dist/ionic/p-BpRUsN_W.js +0 -6
- package/dist/ionic/p-DBFcFCH5.js +0 -4
- package/dist/ionic/p-DYKDWM2f.js +0 -4
- package/dist/ionic/p-DfvWlTdB.js +0 -4
- package/dist/ionic/p-DriE1ZAo.js +0 -4
- package/dist/ionic/p-DzQk7Lu8.js +0 -4
- package/dist/ionic/p-a45caa30.entry.js +0 -4
- package/dist/ionic/p-af15fc5d.entry.js +0 -4
- package/dist/ionic/p-af4b4719.entry.js +0 -4
- package/dist/ionic/p-b0faaae2.entry.js +0 -4
- package/dist/ionic/p-b3aadfe8.entry.js +0 -4
- package/dist/ionic/p-b5bcbbc1.entry.js +0 -4
- package/dist/ionic/p-c293f854.entry.js +0 -4
- package/dist/ionic/p-c56c23b6.entry.js +0 -4
- package/dist/ionic/p-c7ea2647.entry.js +0 -4
- package/dist/ionic/p-c8c77f7b.entry.js +0 -4
- package/dist/ionic/p-cbc73380.entry.js +0 -4
- package/dist/ionic/p-d58e9da3.entry.js +0 -4
- package/dist/ionic/p-ec08a7e6.entry.js +0 -4
- package/dist/ionic/p-f37e6ed2.entry.js +0 -4
- package/dist/ionic/p-f6a1ab48.entry.js +0 -4
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Host, h, forceUpdate, } from "@stencil/core";
|
|
5
|
+
import { createTabindexController } from "../../utils/attribute-controller";
|
|
5
6
|
import { ENABLE_HTML_CONTENT_DEFAULT } from "../../utils/config";
|
|
6
7
|
import { compareOptions, createClickController, createNotchController, createStartEndContainerController, getSlottedClickContent, isOptionSelected, checkInvalidState, } from "../../utils/forms/index";
|
|
7
8
|
import { focusVisibleElement, renderHiddenInput, inheritAttributes } from "../../utils/helpers";
|
|
@@ -185,6 +186,7 @@ export class Select {
|
|
|
185
186
|
}
|
|
186
187
|
async connectedCallback() {
|
|
187
188
|
const { el } = this;
|
|
189
|
+
this.tabindexController?.init();
|
|
188
190
|
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
|
|
189
191
|
this.startEndContainerController?.calculateContainerWidths();
|
|
190
192
|
forceUpdate(this);
|
|
@@ -246,6 +248,7 @@ export class Select {
|
|
|
246
248
|
}
|
|
247
249
|
componentWillLoad() {
|
|
248
250
|
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
|
|
251
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
249
252
|
this.hintTextId = this.getHintTextId();
|
|
250
253
|
}
|
|
251
254
|
componentDidLoad() {
|
|
@@ -262,6 +265,7 @@ export class Select {
|
|
|
262
265
|
this.emitStyle();
|
|
263
266
|
}
|
|
264
267
|
disconnectedCallback() {
|
|
268
|
+
this.tabindexController?.destroy();
|
|
265
269
|
if (this.mutationO) {
|
|
266
270
|
this.mutationO.disconnect();
|
|
267
271
|
this.mutationO = undefined;
|
|
@@ -890,7 +894,8 @@ export class Select {
|
|
|
890
894
|
}
|
|
891
895
|
renderListbox() {
|
|
892
896
|
const { disabled, inputId, isExpanded, required } = this;
|
|
893
|
-
|
|
897
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
898
|
+
return (h("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-required": `${required}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl), ...tabindexAttributes }));
|
|
894
899
|
}
|
|
895
900
|
getHintTextId() {
|
|
896
901
|
const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
|
|
@@ -940,7 +945,7 @@ export class Select {
|
|
|
940
945
|
const hasOutlineFill = mode === 'md' && fill === 'outline';
|
|
941
946
|
renderHiddenInput(true, el, name, parseValue(value), disabled);
|
|
942
947
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
|
|
943
|
-
return (h(Host, { key: '
|
|
948
|
+
return (h(Host, { key: '33b9006ae4d0190621c3ec6241db4507ef08e891', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
944
949
|
[mode]: true,
|
|
945
950
|
'in-item': inItem,
|
|
946
951
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -958,7 +963,7 @@ export class Select {
|
|
|
958
963
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
959
964
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
960
965
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
961
|
-
}) }, h("label", { key: '
|
|
966
|
+
}) }, h("label", { key: 'c123702d69e5a7dece801b9765ce52777d4a376c', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), h("div", { key: '9cbac0085afa03e9b5d777b028d7a837ddfc8212', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, h("slot", { key: '179f1454e56c7dc50637b6149c6916a28fc2cf4a', name: "start" })), h("div", { key: 'bb492a41a762d8fc4199561967f688284e4b6e1f', class: "select-control", part: "control" }, this.renderLabel(), h("div", { key: 'e0f889c0f02e16fe1a47c4ddfeba7a262341a72d', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), h("div", { key: 'bb5e5e117d786e02d6ac9d0514c5f54c240388ab', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), h("slot", { key: '07df73fde0d7413e7d28af0d0b25a04593ea77dc', name: "end" })), shouldRenderHighlight && h("div", { key: '753762d7c94c48d89e3c727fefbb5c9fdd981ad2', class: "select-highlight" })), this.renderBottomContent()));
|
|
962
967
|
}
|
|
963
968
|
static get is() { return "ion-select"; }
|
|
964
969
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { Host, h } from "@stencil/core";
|
|
4
|
+
import { Host, forceUpdate, h } from "@stencil/core";
|
|
5
|
+
import { createTabindexController } from "../../utils/attribute-controller";
|
|
5
6
|
import { inheritAttributes } from "../../utils/helpers";
|
|
6
7
|
import { config } from "../../global/config";
|
|
7
8
|
import { getIonMode } from "../../global/ionic-global";
|
|
@@ -41,10 +42,17 @@ export class TabButton {
|
|
|
41
42
|
this.inheritedAttributes = {
|
|
42
43
|
...inheritAttributes(this.el, ['aria-label']),
|
|
43
44
|
};
|
|
45
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
44
46
|
if (this.layout === undefined) {
|
|
45
47
|
this.layout = config.get('tabButtonLayout', 'icon-top');
|
|
46
48
|
}
|
|
47
49
|
}
|
|
50
|
+
connectedCallback() {
|
|
51
|
+
this.tabindexController?.init();
|
|
52
|
+
}
|
|
53
|
+
disconnectedCallback() {
|
|
54
|
+
this.tabindexController?.destroy();
|
|
55
|
+
}
|
|
48
56
|
selectTab(ev) {
|
|
49
57
|
if (this.tab !== undefined) {
|
|
50
58
|
if (!this.disabled) {
|
|
@@ -66,13 +74,14 @@ export class TabButton {
|
|
|
66
74
|
render() {
|
|
67
75
|
const { disabled, hasIcon, hasLabel, href, rel, target, layout, selected, tab, inheritedAttributes } = this;
|
|
68
76
|
const mode = getIonMode(this);
|
|
77
|
+
const tabindex = this.tabindexController?.attributes.tabindex;
|
|
69
78
|
const attrs = {
|
|
70
79
|
download: this.download,
|
|
71
80
|
href,
|
|
72
81
|
rel,
|
|
73
82
|
target,
|
|
74
83
|
};
|
|
75
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '177c6c12cbee6e5e0b54375edb62d2a05b51b27b', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
76
85
|
[mode]: true,
|
|
77
86
|
'tab-selected': selected,
|
|
78
87
|
'tab-disabled': disabled,
|
|
@@ -84,7 +93,7 @@ export class TabButton {
|
|
|
84
93
|
'ion-activatable': true,
|
|
85
94
|
'ion-selectable': true,
|
|
86
95
|
'ion-focusable': true,
|
|
87
|
-
} }, h("a", { key: '
|
|
96
|
+
} }, h("a", { key: '16289c599d9be6f4c90ddded302c46aa905633e3', ...attrs, class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : tabindex, ...inheritedAttributes }, h("span", { key: 'cef69478ddc3fc9144acab61cb8cc0df1d8ca711', class: "button-inner" }, h("slot", { key: 'e276e619c8062c36f1de0d2a46abba750e8e58d7' })), mode === 'md' && h("ion-ripple-effect", { key: '6f747fd5723d00a1aa034f8d6a97e752f5f3c1c6', type: "unbounded" }))));
|
|
88
97
|
}
|
|
89
98
|
static get is() { return "ion-tab-button"; }
|
|
90
99
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,11 +12,11 @@ import { ariaAttributes, inheritAttributes } from "./helpers";
|
|
|
12
12
|
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
13
13
|
* watching right away, so `init()` is only needed to resume after a move.
|
|
14
14
|
*
|
|
15
|
-
* Two things to know before adopting it.
|
|
16
|
-
* from the host, so a value written after load sits
|
|
17
|
-
* element it is applied to, which matters if the host has
|
|
18
|
-
* attribute
|
|
19
|
-
*
|
|
15
|
+
* Two things to know before adopting it. Unless `moveFromHost` says otherwise, only the
|
|
16
|
+
* initial copy removes the attributes from the host, so a value written after load sits
|
|
17
|
+
* on the host as well as on the element it is applied to, which matters if the host has
|
|
18
|
+
* a role of its own. And an attribute moved off the host can never be removed, only
|
|
19
|
+
* overwritten, since removing it from the host doesn't fire a mutation.
|
|
20
20
|
* An empty string works for `aria-label` and friends, but a token-valued attribute
|
|
21
21
|
* has to be set to its default instead, so `aria-pressed="false"` rather than empty.
|
|
22
22
|
*
|
|
@@ -28,10 +28,15 @@ import { ariaAttributes, inheritAttributes } from "./helpers";
|
|
|
28
28
|
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
29
29
|
* those is the component's own write, and for attributes that would put a second node in
|
|
30
30
|
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
31
|
+
* @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
|
|
32
|
+
* a value moves off the host. A rejected value stays on the host and is left out of
|
|
33
|
+
* `attributes`. It can read component state, as long as the component calls `refresh()`
|
|
34
|
+
* when that state changes.
|
|
31
35
|
*/
|
|
32
|
-
export const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = []) => {
|
|
36
|
+
export const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
|
|
33
37
|
let inherited = inheritAttributes(el, attributes);
|
|
34
38
|
let observer;
|
|
39
|
+
const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
|
|
35
40
|
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
36
41
|
/**
|
|
37
42
|
* The names still on the host, which is everything written after load. The initial
|
|
@@ -47,6 +52,25 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
47
52
|
hostWritten.add(name);
|
|
48
53
|
}
|
|
49
54
|
};
|
|
55
|
+
const moveOffHost = (changed) => {
|
|
56
|
+
if (moveFromHost === undefined) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
for (const [name, value] of Object.entries(changed)) {
|
|
60
|
+
if (value != null && !staysOnHost(name, value)) {
|
|
61
|
+
el.removeAttribute(name);
|
|
62
|
+
// Without this, the missing attribute would read as a developer removal later.
|
|
63
|
+
hostWritten.delete(name);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
// The initial copy took everything off the host, so put back what has to stay there.
|
|
68
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
69
|
+
if (staysOnHost(name, value)) {
|
|
70
|
+
el.setAttribute(name, value);
|
|
71
|
+
hostWritten.add(name);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
50
74
|
/**
|
|
51
75
|
* Nothing is watching while the host is out of the tree, since `disconnectedCallback`
|
|
52
76
|
* calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
|
|
@@ -67,36 +91,74 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
67
91
|
}
|
|
68
92
|
changed[name] = value;
|
|
69
93
|
}
|
|
94
|
+
moveOffHost(changed);
|
|
70
95
|
if (Object.keys(changed).length > 0) {
|
|
71
96
|
inherited = { ...inherited, ...changed };
|
|
72
97
|
onChange();
|
|
73
98
|
}
|
|
74
99
|
};
|
|
100
|
+
const handleRecords = (mutations) => {
|
|
101
|
+
const changed = {};
|
|
102
|
+
for (const mutation of mutations) {
|
|
103
|
+
const name = mutation.attributeName;
|
|
104
|
+
// A removed attribute reads back as null, which clears it from the element the
|
|
105
|
+
// values are spread onto.
|
|
106
|
+
const value = el.getAttribute(name);
|
|
107
|
+
setPresence(name, value);
|
|
108
|
+
changed[name] = value;
|
|
109
|
+
}
|
|
110
|
+
moveOffHost(changed);
|
|
111
|
+
// Drop the removals `moveOffHost` just queued, or they'd read back as the developer
|
|
112
|
+
// clearing the attribute.
|
|
113
|
+
observer?.takeRecords();
|
|
114
|
+
inherited = { ...inherited, ...changed };
|
|
115
|
+
onChange();
|
|
116
|
+
};
|
|
75
117
|
const init = () => {
|
|
76
118
|
// There is no MutationObserver in SSR or the hydrate build.
|
|
77
119
|
if (observer !== undefined || watchedAttributes.length === 0 || win === undefined || !('MutationObserver' in win)) {
|
|
78
120
|
return;
|
|
79
121
|
}
|
|
80
122
|
readMissedChanges();
|
|
81
|
-
observer = new MutationObserver(
|
|
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
|
-
});
|
|
123
|
+
observer = new MutationObserver(handleRecords);
|
|
94
124
|
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
95
125
|
};
|
|
96
126
|
const destroy = () => {
|
|
97
127
|
observer?.disconnect();
|
|
98
128
|
observer = undefined;
|
|
99
129
|
};
|
|
130
|
+
const refresh = () => {
|
|
131
|
+
if (moveFromHost === undefined) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
// A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
|
|
135
|
+
// first, or the loop below would act on the old value and drop the new one.
|
|
136
|
+
if (observer !== undefined) {
|
|
137
|
+
const pending = observer.takeRecords();
|
|
138
|
+
if (pending.length > 0) {
|
|
139
|
+
handleRecords(pending);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
readMissedChanges();
|
|
144
|
+
}
|
|
145
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
const onHost = el.hasAttribute(name);
|
|
150
|
+
if (staysOnHost(name, value) && !onHost) {
|
|
151
|
+
el.setAttribute(name, value);
|
|
152
|
+
hostWritten.add(name);
|
|
153
|
+
}
|
|
154
|
+
else if (!staysOnHost(name, value) && onHost) {
|
|
155
|
+
el.removeAttribute(name);
|
|
156
|
+
hostWritten.delete(name);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
// Drop our own writes, or they'd read back as the developer's.
|
|
160
|
+
observer?.takeRecords();
|
|
161
|
+
};
|
|
100
162
|
/**
|
|
101
163
|
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
102
164
|
* host and an observer armed any earlier would read the removal as a developer clearing
|
|
@@ -105,10 +167,20 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
105
167
|
init();
|
|
106
168
|
return {
|
|
107
169
|
get attributes() {
|
|
108
|
-
|
|
170
|
+
if (moveFromHost === undefined) {
|
|
171
|
+
return inherited;
|
|
172
|
+
}
|
|
173
|
+
const moved = {};
|
|
174
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
175
|
+
if (!staysOnHost(name, value)) {
|
|
176
|
+
moved[name] = value;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return moved;
|
|
109
180
|
},
|
|
110
181
|
init,
|
|
111
182
|
destroy,
|
|
183
|
+
refresh,
|
|
112
184
|
};
|
|
113
185
|
};
|
|
114
186
|
/**
|
|
@@ -124,3 +196,18 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
124
196
|
export const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
|
|
125
197
|
return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
|
|
126
198
|
};
|
|
199
|
+
/**
|
|
200
|
+
* Moves `tabindex` from the host to the native element in the shadow root, including later
|
|
201
|
+
* writes, since a host with a `tabindex` is an extra tab stop with no name. A negative
|
|
202
|
+
* `tabindex` stays on the host, where it already skips the shadow root and the focus
|
|
203
|
+
* utilities expect to find it.
|
|
204
|
+
*
|
|
205
|
+
* @internal
|
|
206
|
+
* @param el The host element to copy from and watch.
|
|
207
|
+
* @param onChange Called after `tabindex` changes, so the component can re-render.
|
|
208
|
+
* @param hasNativeElement Whether the component renders a native element to move `tabindex`
|
|
209
|
+
* to. Call `refresh()` when the answer changes.
|
|
210
|
+
*/
|
|
211
|
+
export const createTabindexController = (el, onChange, hasNativeElement = () => true) => {
|
|
212
|
+
return createAttributeController(el, ['tabindex'], onChange, [], (_, value) => hasNativeElement() && parseInt(value, 10) >= 0);
|
|
213
|
+
};
|
package/dist/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { c as printIonError } from './index-
|
|
5
|
-
import { w as win } from './helpers-
|
|
4
|
+
import { c as printIonError } from './index-BGtO2Fhf.js';
|
|
5
|
+
import { w as win } from './helpers-BvbUHGGm.js';
|
|
6
6
|
|
|
7
7
|
let animationPrefix;
|
|
8
8
|
const getAnimationPrefix = (el) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { i as initialize } from './ionic-global-
|
|
4
|
+
import { i as initialize } from './ionic-global-BDyJ_8I-.js';
|
|
5
5
|
|
|
6
6
|
const appGlobalScript = initialize || (() => {});
|
|
7
7
|
const globalScripts = appGlobalScript;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { b as inheritAttributes, w as win, q as ariaAttributes } from './helpers-BvbUHGGm.js';
|
|
5
|
+
|
|
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. Unless `moveFromHost` says otherwise, only the
|
|
16
|
+
* initial copy removes the attributes from the host, so a value written after load sits
|
|
17
|
+
* on the host as well as on the element it is applied to, which matters if the host has
|
|
18
|
+
* a role of its own. And an attribute moved off the host can never be removed, only
|
|
19
|
+
* overwritten, since removing it from the host doesn't fire a 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
|
+
* @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
|
|
32
|
+
* a value moves off the host. A rejected value stays on the host and is left out of
|
|
33
|
+
* `attributes`. It can read component state, as long as the component calls `refresh()`
|
|
34
|
+
* when that state changes.
|
|
35
|
+
*/
|
|
36
|
+
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
|
|
37
|
+
let inherited = inheritAttributes(el, attributes);
|
|
38
|
+
let observer;
|
|
39
|
+
const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
|
|
40
|
+
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
41
|
+
/**
|
|
42
|
+
* The names still on the host, which is everything written after load. The initial
|
|
43
|
+
* copy removes what it captures, so a missing attribute only counts as a removal
|
|
44
|
+
* when its name is in here.
|
|
45
|
+
*/
|
|
46
|
+
const hostWritten = new Set();
|
|
47
|
+
const setPresence = (name, value) => {
|
|
48
|
+
if (value === null) {
|
|
49
|
+
hostWritten.delete(name);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
hostWritten.add(name);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const moveOffHost = (changed) => {
|
|
56
|
+
if (moveFromHost === undefined) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
for (const [name, value] of Object.entries(changed)) {
|
|
60
|
+
if (value != null && !staysOnHost(name, value)) {
|
|
61
|
+
el.removeAttribute(name);
|
|
62
|
+
// Without this, the missing attribute would read as a developer removal later.
|
|
63
|
+
hostWritten.delete(name);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
// The initial copy took everything off the host, so put back what has to stay there.
|
|
68
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
69
|
+
if (staysOnHost(name, value)) {
|
|
70
|
+
el.setAttribute(name, value);
|
|
71
|
+
hostWritten.add(name);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Nothing is watching while the host is out of the tree, since `disconnectedCallback`
|
|
76
|
+
* calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
|
|
77
|
+
* the host has to be re-read on the way back in.
|
|
78
|
+
*/
|
|
79
|
+
const readMissedChanges = () => {
|
|
80
|
+
const changed = {};
|
|
81
|
+
for (const name of watchedAttributes) {
|
|
82
|
+
const value = el.getAttribute(name);
|
|
83
|
+
const wasOnHost = hostWritten.has(name);
|
|
84
|
+
setPresence(name, value);
|
|
85
|
+
/**
|
|
86
|
+
* An attribute that was never written to the host is missing because the initial
|
|
87
|
+
* copy took it, not because the developer cleared it.
|
|
88
|
+
*/
|
|
89
|
+
if ((value === null && !wasOnHost) || value === inherited[name]) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
changed[name] = value;
|
|
93
|
+
}
|
|
94
|
+
moveOffHost(changed);
|
|
95
|
+
if (Object.keys(changed).length > 0) {
|
|
96
|
+
inherited = { ...inherited, ...changed };
|
|
97
|
+
onChange();
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const handleRecords = (mutations) => {
|
|
101
|
+
const changed = {};
|
|
102
|
+
for (const mutation of mutations) {
|
|
103
|
+
const name = mutation.attributeName;
|
|
104
|
+
// A removed attribute reads back as null, which clears it from the element the
|
|
105
|
+
// values are spread onto.
|
|
106
|
+
const value = el.getAttribute(name);
|
|
107
|
+
setPresence(name, value);
|
|
108
|
+
changed[name] = value;
|
|
109
|
+
}
|
|
110
|
+
moveOffHost(changed);
|
|
111
|
+
// Drop the removals `moveOffHost` just queued, or they'd read back as the developer
|
|
112
|
+
// clearing the attribute.
|
|
113
|
+
observer?.takeRecords();
|
|
114
|
+
inherited = { ...inherited, ...changed };
|
|
115
|
+
onChange();
|
|
116
|
+
};
|
|
117
|
+
const init = () => {
|
|
118
|
+
// There is no MutationObserver in SSR or the hydrate build.
|
|
119
|
+
if (observer !== undefined || watchedAttributes.length === 0 || win === undefined || !('MutationObserver' in win)) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
readMissedChanges();
|
|
123
|
+
observer = new MutationObserver(handleRecords);
|
|
124
|
+
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
125
|
+
};
|
|
126
|
+
const destroy = () => {
|
|
127
|
+
observer?.disconnect();
|
|
128
|
+
observer = undefined;
|
|
129
|
+
};
|
|
130
|
+
const refresh = () => {
|
|
131
|
+
if (moveFromHost === undefined) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
// A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
|
|
135
|
+
// first, or the loop below would act on the old value and drop the new one.
|
|
136
|
+
if (observer !== undefined) {
|
|
137
|
+
const pending = observer.takeRecords();
|
|
138
|
+
if (pending.length > 0) {
|
|
139
|
+
handleRecords(pending);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
readMissedChanges();
|
|
144
|
+
}
|
|
145
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
const onHost = el.hasAttribute(name);
|
|
150
|
+
if (staysOnHost(name, value) && !onHost) {
|
|
151
|
+
el.setAttribute(name, value);
|
|
152
|
+
hostWritten.add(name);
|
|
153
|
+
}
|
|
154
|
+
else if (!staysOnHost(name, value) && onHost) {
|
|
155
|
+
el.removeAttribute(name);
|
|
156
|
+
hostWritten.delete(name);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
// Drop our own writes, or they'd read back as the developer's.
|
|
160
|
+
observer?.takeRecords();
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
164
|
+
* host and an observer armed any earlier would read the removal as a developer clearing
|
|
165
|
+
* them.
|
|
166
|
+
*/
|
|
167
|
+
init();
|
|
168
|
+
return {
|
|
169
|
+
get attributes() {
|
|
170
|
+
if (moveFromHost === undefined) {
|
|
171
|
+
return inherited;
|
|
172
|
+
}
|
|
173
|
+
const moved = {};
|
|
174
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
175
|
+
if (!staysOnHost(name, value)) {
|
|
176
|
+
moved[name] = value;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return moved;
|
|
180
|
+
},
|
|
181
|
+
init,
|
|
182
|
+
destroy,
|
|
183
|
+
refresh,
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
|
|
188
|
+
* watches every ARIA attribute plus `role`.
|
|
189
|
+
*
|
|
190
|
+
* @internal
|
|
191
|
+
* @param el The host element to copy from and watch.
|
|
192
|
+
* @param onChange Called after the attributes change, so the component can re-render.
|
|
193
|
+
* @param hostOwnedAttributes Attributes copied at load but not watched. See
|
|
194
|
+
* `createAttributeController`.
|
|
195
|
+
*/
|
|
196
|
+
const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
|
|
197
|
+
return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Moves `tabindex` from the host to the native element in the shadow root, including later
|
|
201
|
+
* writes, since a host with a `tabindex` is an extra tab stop with no name. A negative
|
|
202
|
+
* `tabindex` stays on the host, where it already skips the shadow root and the focus
|
|
203
|
+
* utilities expect to find it.
|
|
204
|
+
*
|
|
205
|
+
* @internal
|
|
206
|
+
* @param el The host element to copy from and watch.
|
|
207
|
+
* @param onChange Called after `tabindex` changes, so the component can re-render.
|
|
208
|
+
* @param hasNativeElement Whether the component renders a native element to move `tabindex`
|
|
209
|
+
* to. Call `refresh()` when the answer changes.
|
|
210
|
+
*/
|
|
211
|
+
const createTabindexController = (el, onChange, hasNativeElement = () => true) => {
|
|
212
|
+
return createAttributeController(el, ['tabindex'], onChange, [], (_, value) => hasNativeElement() && parseInt(value, 10) >= 0);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export { createAriaAttributeController as a, createAttributeController as b, createTabindexController as c };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { w as writeTask } from './index-
|
|
5
|
-
import { h as hapticSelectionEnd, a as hapticSelectionChanged, b as hapticSelectionStart } from './haptic-
|
|
4
|
+
import { w as writeTask } from './index-BGtO2Fhf.js';
|
|
5
|
+
import { h as hapticSelectionEnd, a as hapticSelectionChanged, b as hapticSelectionStart } from './haptic-ChR8my2M.js';
|
|
6
6
|
import { createGesture } from './index-BmLuEdV7.js';
|
|
7
7
|
|
|
8
8
|
const createButtonActiveGesture = (el, isButton) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { c as componentOnReady } from './helpers-
|
|
4
|
+
import { c as componentOnReady } from './helpers-BvbUHGGm.js';
|
|
5
5
|
|
|
6
6
|
// TODO(FW-2832): types
|
|
7
7
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { c as printIonError } from './index-
|
|
4
|
+
import { c as printIonError } from './index-BGtO2Fhf.js';
|
|
5
5
|
import { i as isRTL } from './dir-Dj4J3LkD.js';
|
|
6
6
|
|
|
7
7
|
const win = typeof window !== 'undefined' ? window : undefined;
|