@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
|
@@ -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 { inheritAriaAttributes } from "../../utils/helpers";
|
|
6
7
|
import { createColorClasses, hostContext, openURL } from "../../utils/theme";
|
|
7
8
|
import { arrowBackSharp, chevronBack } from "ionicons/icons";
|
|
@@ -36,10 +37,17 @@ export class BackButton {
|
|
|
36
37
|
}
|
|
37
38
|
componentWillLoad() {
|
|
38
39
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
40
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
39
41
|
if (this.defaultHref === undefined) {
|
|
40
42
|
this.defaultHref = config.get('backButtonDefaultHref');
|
|
41
43
|
}
|
|
42
44
|
}
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
this.tabindexController?.init();
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
this.tabindexController?.destroy();
|
|
50
|
+
}
|
|
43
51
|
get backButtonIcon() {
|
|
44
52
|
const icon = this.icon;
|
|
45
53
|
if (icon != null) {
|
|
@@ -73,7 +81,8 @@ export class BackButton {
|
|
|
73
81
|
const showBackButton = defaultHref !== undefined;
|
|
74
82
|
const mode = getIonMode(this);
|
|
75
83
|
const ariaLabel = inheritedAttributes['aria-label'] || backButtonText || 'back';
|
|
76
|
-
|
|
84
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
85
|
+
return (h(Host, { key: '0b7d30b4421e69c01041819a242bb4d57ee08cdd', onClick: this.onClick, class: createColorClasses(color, {
|
|
77
86
|
[mode]: true,
|
|
78
87
|
button: true, // ion-buttons target .button
|
|
79
88
|
'back-button-disabled': disabled,
|
|
@@ -83,7 +92,7 @@ export class BackButton {
|
|
|
83
92
|
'ion-activatable': true,
|
|
84
93
|
'ion-focusable': true,
|
|
85
94
|
'show-back-button': showBackButton,
|
|
86
|
-
}) }, h("button", { key: '
|
|
95
|
+
}) }, h("button", { key: '20bf90c1b19af213eb7db6fb105423b1d5552cc7', type: type, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, h("span", { key: '1472b6bac0ae85a040f8de0a505cc6479e96b672', class: "button-inner" }, backButtonIcon && (h("ion-icon", { key: '223376e1501ca203b9f6d004707dd1d18b5fc076', part: "icon", icon: backButtonIcon, "aria-hidden": "true", lazy: false, "flip-rtl": icon === undefined })), backButtonText && (h("span", { key: '0e94d0b6c930193ed3762946731cf9f4ae626b72', part: "text", "aria-hidden": "true", class: "button-text" }, backButtonText))), mode === 'md' && h("ion-ripple-effect", { key: '7ef5b94fbbca517f333d1ae55198b373d843fec4', type: this.rippleType }))));
|
|
87
96
|
}
|
|
88
97
|
static get is() { return "ion-back-button"; }
|
|
89
98
|
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 { inheritAriaAttributes } from "../../utils/helpers";
|
|
6
7
|
import { createColorClasses, hostContext, openURL } from "../../utils/theme";
|
|
7
8
|
import { chevronForwardOutline, ellipsisHorizontal } from "ionicons/icons";
|
|
@@ -45,6 +46,21 @@ export class Breadcrumb {
|
|
|
45
46
|
}
|
|
46
47
|
componentWillLoad() {
|
|
47
48
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
49
|
+
// A breadcrumb without an `href` has no native link, so `tabindex` stays on the host.
|
|
50
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this), () => this.isClickable());
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Adding or removing `href` adds or removes the native link, so `tabindex` has to move
|
|
54
|
+
* with it.
|
|
55
|
+
*/
|
|
56
|
+
hrefChanged() {
|
|
57
|
+
this.tabindexController?.refresh();
|
|
58
|
+
}
|
|
59
|
+
connectedCallback() {
|
|
60
|
+
this.tabindexController?.init();
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.tabindexController?.destroy();
|
|
48
64
|
}
|
|
49
65
|
isClickable() {
|
|
50
66
|
return this.href !== undefined;
|
|
@@ -52,6 +68,7 @@ export class Breadcrumb {
|
|
|
52
68
|
render() {
|
|
53
69
|
const { color, active, collapsed, disabled, download, el, inheritedAttributes, last, routerAnimation, routerDirection, separator, showCollapsedIndicator, target, } = this;
|
|
54
70
|
const clickable = this.isClickable();
|
|
71
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
55
72
|
const TagType = this.href === undefined ? 'span' : 'a';
|
|
56
73
|
// Links can still be tabbed to when set to disabled if they have an href
|
|
57
74
|
// in order to truly disable them we can keep it as an anchor but remove the href
|
|
@@ -68,7 +85,7 @@ export class Breadcrumb {
|
|
|
68
85
|
// to show the separator as long as it isn't also the last breadcrumb
|
|
69
86
|
// otherwise if not collapsed use the value in separator
|
|
70
87
|
const showSeparator = last ? false : collapsed ? (showCollapsedIndicator && !last ? true : false) : separator;
|
|
71
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '6f50e8b42045b81771ffd123a3cb708c603c1541', onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation), "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
72
89
|
[mode]: true,
|
|
73
90
|
'breadcrumb-active': active,
|
|
74
91
|
'breadcrumb-collapsed': collapsed,
|
|
@@ -78,15 +95,15 @@ export class Breadcrumb {
|
|
|
78
95
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
79
96
|
'ion-activatable': clickable,
|
|
80
97
|
'ion-focusable': clickable,
|
|
81
|
-
}) }, h(TagType, { key: '
|
|
98
|
+
}) }, h(TagType, { key: '4ac14d323e1d35e987862aa9b875d30be2310a71', ...attrs, class: "breadcrumb-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes, ...tabindexAttributes }, h("slot", { key: 'a3598ed5bc506acc4f5bef525cd2404b00228620', name: "start" }), h("slot", { key: '0696a0ffd1513c1d93deb269fdf600e9ef434f17' }), h("slot", { key: 'bf315bd49788604c27b8ba354796250b56f2fcb0', name: "end" })), showCollapsedIndicator && (h("button", { key: 'b130482d7ed16e3c452fa779b0696d1f8687e379', part: "collapsed-indicator", "aria-label": "Show more breadcrumbs", onClick: () => this.collapsedIndicatorClick(), ref: (collapsedEl) => (this.collapsedRef = collapsedEl), class: {
|
|
82
99
|
'breadcrumbs-collapsed-indicator': true,
|
|
83
|
-
} }, h("ion-icon", { key: '
|
|
100
|
+
} }, h("ion-icon", { key: 'd5094d69a6477b390afaa230f76011bef97f386f', "aria-hidden": "true", icon: ellipsisHorizontal, lazy: false }))), showSeparator && (
|
|
84
101
|
/**
|
|
85
102
|
* Separators should not be announced by narrators.
|
|
86
103
|
* We add aria-hidden on the span so that this applies
|
|
87
104
|
* to any custom separators too.
|
|
88
105
|
*/
|
|
89
|
-
h("span", { key: '
|
|
106
|
+
h("span", { key: '98421acb32aa73507ea1ab078555c20f4bdef6cd', class: "breadcrumb-separator", part: "separator", "aria-hidden": "true" }, h("slot", { key: '8b37779f2003554631a923a8d7ce2436238d1b05', name: "separator" }, mode === 'ios' ? (h("ion-icon", { icon: chevronForwardOutline, lazy: false, "flip-rtl": true })) : (h("span", null, "/")))))));
|
|
90
107
|
}
|
|
91
108
|
static get is() { return "ion-breadcrumb"; }
|
|
92
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -444,4 +461,10 @@ export class Breadcrumb {
|
|
|
444
461
|
}];
|
|
445
462
|
}
|
|
446
463
|
static get elementRef() { return "el"; }
|
|
464
|
+
static get watchers() {
|
|
465
|
+
return [{
|
|
466
|
+
"propName": "href",
|
|
467
|
+
"methodName": "hrefChanged"
|
|
468
|
+
}];
|
|
469
|
+
}
|
|
447
470
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Host, forceUpdate, h } from "@stencil/core";
|
|
5
|
-
import { createAriaAttributeController } from "../../utils/attribute-controller";
|
|
5
|
+
import { createAriaAttributeController, createTabindexController } from "../../utils/attribute-controller";
|
|
6
6
|
import { hasShadowDom } from "../../utils/helpers";
|
|
7
7
|
import { printIonWarning } from "../../utils/logging/index";
|
|
8
8
|
import { createColorClasses, hostContext, openURL } from "../../utils/theme";
|
|
@@ -128,12 +128,15 @@ export class Button {
|
|
|
128
128
|
* two elements in the accessibility tree.
|
|
129
129
|
*/
|
|
130
130
|
this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(this), ['aria-disabled', 'role']);
|
|
131
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
131
132
|
}
|
|
132
133
|
connectedCallback() {
|
|
133
134
|
this.ariaController?.init();
|
|
135
|
+
this.tabindexController?.init();
|
|
134
136
|
}
|
|
135
137
|
disconnectedCallback() {
|
|
136
138
|
this.ariaController?.destroy();
|
|
139
|
+
this.tabindexController?.destroy();
|
|
137
140
|
}
|
|
138
141
|
get hasIconOnly() {
|
|
139
142
|
return !!this.el.querySelector('[slot="icon-only"]');
|
|
@@ -209,7 +212,10 @@ export class Button {
|
|
|
209
212
|
render() {
|
|
210
213
|
const mode = getIonMode(this);
|
|
211
214
|
const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong } = this;
|
|
212
|
-
const inheritedAttributes =
|
|
215
|
+
const inheritedAttributes = {
|
|
216
|
+
...this.ariaController?.attributes,
|
|
217
|
+
...this.tabindexController?.attributes,
|
|
218
|
+
};
|
|
213
219
|
const finalSize = size === undefined && this.inItem ? 'small' : size;
|
|
214
220
|
const TagType = href === undefined ? 'button' : 'a';
|
|
215
221
|
const attrs = TagType === 'button'
|
|
@@ -234,7 +240,7 @@ export class Button {
|
|
|
234
240
|
{
|
|
235
241
|
type !== 'button' && this.renderHiddenButton();
|
|
236
242
|
}
|
|
237
|
-
return (h(Host, { key: '
|
|
243
|
+
return (h(Host, { key: '9676cd8eb88ff0ff0582eeaa8b87ed4525a4dbee', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
238
244
|
[mode]: true,
|
|
239
245
|
[buttonType]: true,
|
|
240
246
|
[`${buttonType}-${expand}`]: expand !== undefined,
|
|
@@ -249,7 +255,7 @@ export class Button {
|
|
|
249
255
|
'button-disabled': disabled,
|
|
250
256
|
'ion-activatable': true,
|
|
251
257
|
'ion-focusable': true,
|
|
252
|
-
}) }, h(TagType, { key: '
|
|
258
|
+
}) }, h(TagType, { key: '42609eab7e854c1e1ddf678c7dc83c7ec81e560e', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, h("span", { key: 'a212acc720c9312b3ac35345333df7a7175ace92', class: "button-inner" }, h("slot", { key: '05986b525272c768a37c274748f15aeb2fce313e', name: "icon-only", onSlotchange: this.slotChanged }), h("slot", { key: '4b6951f7b201c19714e97e2075f517f88642a169', name: "start" }), h("slot", { key: 'fa2d5ca4551a14ebfafe5399683e239566571398' }), h("slot", { key: 'ca8edc225165824f535177b99bb39adc1fea5fd2', name: "end" })), mode === 'md' && h("ion-ripple-effect", { key: '01c38cc6c230bb35861bbcc1472f4a2f18522e93', type: this.rippleType }))));
|
|
253
259
|
}
|
|
254
260
|
static get is() { return "ion-button"; }
|
|
255
261
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Host, h, forceUpdate } from "@stencil/core";
|
|
5
|
-
import { createAttributeController } from "../../utils/attribute-controller";
|
|
5
|
+
import { createAttributeController, createTabindexController } from "../../utils/attribute-controller";
|
|
6
6
|
import { createColorClasses, openURL } from "../../utils/theme";
|
|
7
7
|
import { getIonMode } from "../../global/ionic-global";
|
|
8
8
|
/**
|
|
@@ -37,12 +37,23 @@ export class Card {
|
|
|
37
37
|
* the card host renders no role of its own, so nothing reads the leftover copy.
|
|
38
38
|
*/
|
|
39
39
|
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(this));
|
|
40
|
+
// A card that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
41
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this), () => this.isClickable());
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Changing `href` or `button` adds or removes the native element, so `tabindex` has to
|
|
45
|
+
* move with it.
|
|
46
|
+
*/
|
|
47
|
+
clickableChanged() {
|
|
48
|
+
this.tabindexController?.refresh();
|
|
40
49
|
}
|
|
41
50
|
connectedCallback() {
|
|
42
51
|
this.ariaController?.init();
|
|
52
|
+
this.tabindexController?.init();
|
|
43
53
|
}
|
|
44
54
|
disconnectedCallback() {
|
|
45
55
|
this.ariaController?.destroy();
|
|
56
|
+
this.tabindexController?.destroy();
|
|
46
57
|
}
|
|
47
58
|
isClickable() {
|
|
48
59
|
return this.href !== undefined || this.button;
|
|
@@ -54,6 +65,7 @@ export class Card {
|
|
|
54
65
|
}
|
|
55
66
|
const { href, routerAnimation, routerDirection } = this;
|
|
56
67
|
const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
|
|
68
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
57
69
|
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
|
58
70
|
const attrs = TagType === 'button'
|
|
59
71
|
? { type: this.type }
|
|
@@ -63,11 +75,11 @@ export class Card {
|
|
|
63
75
|
rel: this.rel,
|
|
64
76
|
target: this.target,
|
|
65
77
|
};
|
|
66
|
-
return (h(TagType, { ...attrs, ...inheritedAriaAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, h("slot", null), clickable && mode === 'md' && h("ion-ripple-effect", null)));
|
|
78
|
+
return (h(TagType, { ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, h("slot", null), clickable && mode === 'md' && h("ion-ripple-effect", null)));
|
|
67
79
|
}
|
|
68
80
|
render() {
|
|
69
81
|
const mode = getIonMode(this);
|
|
70
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'a50cd4e11f563acefeadc4c8f67536276593384a', class: createColorClasses(this.color, {
|
|
71
83
|
[mode]: true,
|
|
72
84
|
'card-disabled': this.disabled,
|
|
73
85
|
'ion-activatable': this.isClickable(),
|
|
@@ -305,4 +317,13 @@ export class Card {
|
|
|
305
317
|
};
|
|
306
318
|
}
|
|
307
319
|
static get elementRef() { return "el"; }
|
|
320
|
+
static get watchers() {
|
|
321
|
+
return [{
|
|
322
|
+
"propName": "href",
|
|
323
|
+
"methodName": "clickableChanged"
|
|
324
|
+
}, {
|
|
325
|
+
"propName": "button",
|
|
326
|
+
"methodName": "clickableChanged"
|
|
327
|
+
}];
|
|
328
|
+
}
|
|
308
329
|
}
|
|
@@ -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 { inheritAriaAttributes, hasShadowDom } from "../../utils/helpers";
|
|
6
7
|
import { printIonWarning } from "../../utils/logging/index";
|
|
7
8
|
import { createColorClasses, hostContext, openURL } from "../../utils/theme";
|
|
@@ -76,6 +77,10 @@ export class FabButton {
|
|
|
76
77
|
}
|
|
77
78
|
connectedCallback() {
|
|
78
79
|
this.fab = this.el.closest('ion-fab');
|
|
80
|
+
this.tabindexController?.init();
|
|
81
|
+
}
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
this.tabindexController?.destroy();
|
|
79
84
|
}
|
|
80
85
|
/**
|
|
81
86
|
* The native button rendered inside `ion-fab-button` is in the Shadow DOM and
|
|
@@ -135,11 +140,13 @@ export class FabButton {
|
|
|
135
140
|
}
|
|
136
141
|
componentWillLoad() {
|
|
137
142
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
143
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
138
144
|
}
|
|
139
145
|
render() {
|
|
140
146
|
const { el, disabled, color, href, activated, show, translucent, size, inheritedAttributes, type } = this;
|
|
141
147
|
const inList = hostContext('ion-fab-list', el);
|
|
142
148
|
const mode = getIonMode(this);
|
|
149
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
143
150
|
const TagType = href === undefined ? 'button' : 'a';
|
|
144
151
|
const attrs = TagType === 'button'
|
|
145
152
|
? { type }
|
|
@@ -156,7 +163,7 @@ export class FabButton {
|
|
|
156
163
|
if (type !== 'button') {
|
|
157
164
|
this.renderHiddenButton();
|
|
158
165
|
}
|
|
159
|
-
return (h(Host, { key: '
|
|
166
|
+
return (h(Host, { key: '95594de6a6509d29799ba4f5b54a14632bca1c83', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
160
167
|
[mode]: true,
|
|
161
168
|
'fab-button-in-list': inList,
|
|
162
169
|
'fab-button-translucent-in-list': inList && translucent,
|
|
@@ -167,7 +174,7 @@ export class FabButton {
|
|
|
167
174
|
'ion-activatable': true,
|
|
168
175
|
'ion-focusable': true,
|
|
169
176
|
[`fab-button-${size}`]: size !== undefined,
|
|
170
|
-
}) }, h(TagType, { key: '
|
|
177
|
+
}) }, h(TagType, { key: '0f9dd1984d646dc3784a1c701db068e48c9155e3', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => type === 'button' && openURL(href, ev, this.routerDirection, this.routerAnimation), ...inheritedAttributes, ...tabindexAttributes }, h("ion-icon", { key: '6ba981ded86087506dfc115124d4f69bb4c8d03c', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: '54efdabe98164f3575641c104f8a9e82ec2a42c7', class: "button-inner" }, h("slot", { key: '23c0809c2371454c27cb8dd55d0c81bbf062a238' })), mode === 'md' && h("ion-ripple-effect", { key: '7aacc6325bbc990e496378eef0d5af2697b2edce' }))));
|
|
171
178
|
}
|
|
172
179
|
static get is() { return "ion-fab-button"; }
|
|
173
180
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Host, forceUpdate, h } from "@stencil/core";
|
|
5
|
-
import { createAttributeController } from "../../utils/attribute-controller";
|
|
5
|
+
import { createAttributeController, createTabindexController } from "../../utils/attribute-controller";
|
|
6
6
|
import { raf } from "../../utils/helpers";
|
|
7
7
|
import { isRTL } from "../../utils/rtl/index";
|
|
8
8
|
import { createColorClasses, hostContext, openURL } from "../../utils/theme";
|
|
@@ -61,6 +61,14 @@ export class Item {
|
|
|
61
61
|
buttonChanged() {
|
|
62
62
|
// Update the focusable option when the button option is changed
|
|
63
63
|
this.focusable = this.isFocusable();
|
|
64
|
+
this.tabindexController?.refresh();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Adding or removing `href` adds or removes the native element, so `tabindex` has to move
|
|
68
|
+
* with it. The same goes for `button` in `buttonChanged`.
|
|
69
|
+
*/
|
|
70
|
+
hrefChanged() {
|
|
71
|
+
this.tabindexController?.refresh();
|
|
64
72
|
}
|
|
65
73
|
labelColorChanged(ev) {
|
|
66
74
|
const { color } = this;
|
|
@@ -106,6 +114,7 @@ export class Item {
|
|
|
106
114
|
this.updateInteractivityOnSlotChange();
|
|
107
115
|
}
|
|
108
116
|
this.ariaController?.init();
|
|
117
|
+
this.tabindexController?.init();
|
|
109
118
|
}
|
|
110
119
|
componentWillLoad() {
|
|
111
120
|
/**
|
|
@@ -115,6 +124,8 @@ export class Item {
|
|
|
115
124
|
* reads it twice.
|
|
116
125
|
*/
|
|
117
126
|
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(this));
|
|
127
|
+
// An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
128
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this), () => this.isClickable());
|
|
118
129
|
}
|
|
119
130
|
componentDidLoad() {
|
|
120
131
|
raf(() => {
|
|
@@ -132,6 +143,7 @@ export class Item {
|
|
|
132
143
|
this.indicatorControlObserver = undefined;
|
|
133
144
|
}
|
|
134
145
|
this.ariaController?.destroy();
|
|
146
|
+
this.tabindexController?.destroy();
|
|
135
147
|
}
|
|
136
148
|
totalNestedInputs() {
|
|
137
149
|
// The following elements have a clickable cover that is relative to the entire item
|
|
@@ -246,6 +258,7 @@ export class Item {
|
|
|
246
258
|
const clickable = this.isClickable();
|
|
247
259
|
const canActivate = this.canActivate();
|
|
248
260
|
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
|
261
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
249
262
|
const attrs = TagType === 'button'
|
|
250
263
|
? { type: this.type }
|
|
251
264
|
: {
|
|
@@ -316,7 +329,7 @@ export class Item {
|
|
|
316
329
|
* multi-input item, and in a clickable item, which is a second tab stop.
|
|
317
330
|
*/
|
|
318
331
|
const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
|
|
319
|
-
return (h(Host, { key: '
|
|
332
|
+
return (h(Host, { key: 'b9de79c9d6fbe11a19c8e507d1c34af9f9068cfa', "aria-disabled": ariaDisabled, class: {
|
|
320
333
|
...childStyles,
|
|
321
334
|
...labelColorStyles,
|
|
322
335
|
...createColorClasses(this.color, {
|
|
@@ -333,7 +346,7 @@ export class Item {
|
|
|
333
346
|
'ion-focusable': this.focusable,
|
|
334
347
|
'item-rtl': isRTL(el),
|
|
335
348
|
}),
|
|
336
|
-
}, role: inList ? 'listitem' : null }, h(TagType, { key: '
|
|
349
|
+
}, role: inList ? 'listitem' : null }, h(TagType, { key: 'c52faccd0d44784e300e55c90b4456c491513c3c', ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, h("slot", { key: '11cc95e796b494cf87db7b810846cb2c18186577', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), h("div", { key: '6c94a9dd570f4e6e65924fdde6bcbb840c9b424d', class: "item-inner", part: "inner" }, h("div", { key: '06c490d6f3e15fa811c72d5cd2b7936f99dd8430', class: "input-wrapper", part: "container" }, h("slot", { key: '4487a6cf30f3b26455c96726733f57b1dbcab694', onSlotchange: this.updateInteractivityOnSlotChange })), h("slot", { key: '16d6e70fa22f43b11bc63304dae9900f4a41b703', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (h("ion-icon", { key: 'b24443f5753b67f9021b8127cebf47d329e0b03d', 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: 'a9b081a6ebe870d057b775cfae2e7a4de6679155' }))));
|
|
337
350
|
}
|
|
338
351
|
static get is() { return "ion-item"; }
|
|
339
352
|
static get encapsulation() { return "shadow"; }
|
|
@@ -637,6 +650,9 @@ export class Item {
|
|
|
637
650
|
return [{
|
|
638
651
|
"propName": "button",
|
|
639
652
|
"methodName": "buttonChanged"
|
|
653
|
+
}, {
|
|
654
|
+
"propName": "href",
|
|
655
|
+
"methodName": "hrefChanged"
|
|
640
656
|
}];
|
|
641
657
|
}
|
|
642
658
|
static get listeners() {
|
|
@@ -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 { createColorClasses } from "../../utils/theme";
|
|
6
7
|
import { getIonMode } from "../../global/ionic-global";
|
|
7
8
|
/**
|
|
@@ -39,8 +40,18 @@ export class ItemOption {
|
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
}
|
|
43
|
+
componentWillLoad() {
|
|
44
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
this.tabindexController?.init();
|
|
48
|
+
}
|
|
49
|
+
disconnectedCallback() {
|
|
50
|
+
this.tabindexController?.destroy();
|
|
51
|
+
}
|
|
42
52
|
render() {
|
|
43
53
|
const { disabled, expandable, href } = this;
|
|
54
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
44
55
|
const TagType = href === undefined ? 'button' : 'a';
|
|
45
56
|
const mode = getIonMode(this);
|
|
46
57
|
const attrs = TagType === 'button'
|
|
@@ -50,12 +61,12 @@ export class ItemOption {
|
|
|
50
61
|
href: this.href,
|
|
51
62
|
target: this.target,
|
|
52
63
|
};
|
|
53
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'b9d323be73e0ac6408aa56a05eeb67076e35daf8', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
54
65
|
[mode]: true,
|
|
55
66
|
'item-option-disabled': disabled,
|
|
56
67
|
'item-option-expandable': expandable,
|
|
57
68
|
'ion-activatable': true,
|
|
58
|
-
}) }, h(TagType, { key: '
|
|
69
|
+
}) }, h(TagType, { key: '6a59ebaa090613f42fca1fe51eff7863a69526ac', ...attrs, ...tabindexAttributes, class: "button-native", part: "native", disabled: disabled }, h("span", { key: '9a5709f3b6d6bccdf0d60345f6171ca5439d54f4', class: "button-inner", part: "inner" }, h("slot", { key: '9d76f6239d4c50cb785142a89bba26702a79c1f8', name: "top" }), h("div", { key: 'b2aecda5dbfa5e3279d49b6dab6cb14c0b5df697', class: "horizontal-wrapper", part: "container" }, h("slot", { key: '40d56d38d7a73a55f5ea4f6cdd6bc62dcfaa8dae', name: "start" }), h("slot", { key: 'e531ca665546752bde34525cc6630a5ea2ac2575', name: "icon-only" }), h("slot", { key: '2b7a78f6a4776eeb0720f79a81d075f75c63f4ff' }), h("slot", { key: 'b296120a461d3b330ec05a97524b8ce5d3250a07', name: "end" })), h("slot", { key: '5ebdf7af5acb29cc1b728f812d7f0c4d952512cc', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", { key: '538f3e7d90a17ddbcc72ad227a0711573d3f7aac' }))));
|
|
59
70
|
}
|
|
60
71
|
static get is() { return "ion-item-option"; }
|
|
61
72
|
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 { inheritAriaAttributes } from "../../utils/helpers";
|
|
6
7
|
import { menuController } from "../../utils/menu-controller/index";
|
|
7
8
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
@@ -37,6 +38,13 @@ export class MenuButton {
|
|
|
37
38
|
}
|
|
38
39
|
componentWillLoad() {
|
|
39
40
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
41
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
42
|
+
}
|
|
43
|
+
connectedCallback() {
|
|
44
|
+
this.tabindexController?.init();
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
this.tabindexController?.destroy();
|
|
40
48
|
}
|
|
41
49
|
componentDidLoad() {
|
|
42
50
|
this.visibilityChanged();
|
|
@@ -46,6 +54,7 @@ export class MenuButton {
|
|
|
46
54
|
}
|
|
47
55
|
render() {
|
|
48
56
|
const { color, disabled, inheritedAttributes } = this;
|
|
57
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
49
58
|
const mode = getIonMode(this);
|
|
50
59
|
const menuIcon = config.get('menuIcon', mode === 'ios' ? menuOutline : menuSharp);
|
|
51
60
|
const hidden = this.autoHide && !this.visible;
|
|
@@ -53,7 +62,7 @@ export class MenuButton {
|
|
|
53
62
|
type: this.type,
|
|
54
63
|
};
|
|
55
64
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
56
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: 'bccc30d2a1e67e484f493211f950391c82f28b00', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
|
|
57
66
|
[mode]: true,
|
|
58
67
|
button: true, // ion-buttons target .button
|
|
59
68
|
'menu-button-hidden': hidden,
|
|
@@ -62,7 +71,7 @@ export class MenuButton {
|
|
|
62
71
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
63
72
|
'ion-activatable': true,
|
|
64
73
|
'ion-focusable': true,
|
|
65
|
-
}) }, h("button", { key: '
|
|
74
|
+
}) }, h("button", { key: 'c2479290c5fee434c12c75fe47b2a10c58908bcb', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, h("span", { key: 'ab2a5aa0aced1e551f5571dbfd3dabe8b3558370', class: "button-inner" }, h("slot", { key: '7e7f827910287e11ffe716639c069e977df64d6a' }, h("ion-icon", { key: 'ec4677e9b71d4b2167c64aebef269a58994262d1', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: '5b88e62b6cb4530f7b63dde0352cb0b7ef73cbff', type: "unbounded" }))));
|
|
66
75
|
}
|
|
67
76
|
static get is() { return "ion-menu-button"; }
|
|
68
77
|
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 { createColorClasses, openURL } from "../../utils/theme";
|
|
6
7
|
import { getIonMode } from "../../global/ionic-global";
|
|
7
8
|
export class RouterLink {
|
|
@@ -15,17 +16,27 @@ export class RouterLink {
|
|
|
15
16
|
openURL(this.href, ev, this.routerDirection, this.routerAnimation);
|
|
16
17
|
};
|
|
17
18
|
}
|
|
19
|
+
componentWillLoad() {
|
|
20
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
this.tabindexController?.init();
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
this.tabindexController?.destroy();
|
|
27
|
+
}
|
|
18
28
|
render() {
|
|
19
29
|
const mode = getIonMode(this);
|
|
30
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
20
31
|
const attrs = {
|
|
21
32
|
href: this.href,
|
|
22
33
|
rel: this.rel,
|
|
23
34
|
target: this.target,
|
|
24
35
|
};
|
|
25
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '51d8c563858a89c274f4b3778b937e545f4626df', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
26
37
|
[mode]: true,
|
|
27
38
|
'ion-activatable': true,
|
|
28
|
-
}) }, h("a", { key: '
|
|
39
|
+
}) }, h("a", { key: '2f806b3036d648cf01ff69739c7f422c9a554c7d', ...attrs, ...tabindexAttributes }, h("slot", { key: '43a2ee8b80574b120d80a8d65e8615921eb36afb' }))));
|
|
29
40
|
}
|
|
30
41
|
static get is() { return "ion-router-link"; }
|
|
31
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -177,4 +188,5 @@ export class RouterLink {
|
|
|
177
188
|
}
|
|
178
189
|
};
|
|
179
190
|
}
|
|
191
|
+
static get elementRef() { return "el"; }
|
|
180
192
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Host, forceUpdate, h } from "@stencil/core";
|
|
5
|
+
import { createTabindexController } from "../../utils/attribute-controller";
|
|
5
6
|
import { addEventListener, removeEventListener, inheritAttributes } from "../../utils/helpers";
|
|
6
7
|
import { printIonError, printIonWarning } from "../../utils/logging/index";
|
|
7
8
|
import { hostContext } from "../../utils/theme";
|
|
@@ -52,6 +53,7 @@ export class SegmentButton {
|
|
|
52
53
|
this.updateState();
|
|
53
54
|
}
|
|
54
55
|
connectedCallback() {
|
|
56
|
+
this.tabindexController?.init();
|
|
55
57
|
const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
|
|
56
58
|
if (segmentEl) {
|
|
57
59
|
this.updateState();
|
|
@@ -60,6 +62,7 @@ export class SegmentButton {
|
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
disconnectedCallback() {
|
|
65
|
+
this.tabindexController?.destroy();
|
|
63
66
|
const segmentEl = this.segmentEl;
|
|
64
67
|
if (segmentEl) {
|
|
65
68
|
removeEventListener(segmentEl, 'ionSelect', this.updateState);
|
|
@@ -71,6 +74,7 @@ export class SegmentButton {
|
|
|
71
74
|
this.inheritedAttributes = {
|
|
72
75
|
...inheritAttributes(this.el, ['aria-label']),
|
|
73
76
|
};
|
|
77
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
74
78
|
// Return if there is no contentId defined
|
|
75
79
|
if (!this.contentId)
|
|
76
80
|
return;
|
|
@@ -116,8 +120,9 @@ export class SegmentButton {
|
|
|
116
120
|
render() {
|
|
117
121
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
118
122
|
const mode = getIonMode(this);
|
|
123
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
119
124
|
const hasSegmentColor = () => segmentEl?.color !== undefined;
|
|
120
|
-
return (h(Host, { key: '
|
|
125
|
+
return (h(Host, { key: 'd0d37d00f921193edd3a3670363583d9ee1cfb39', class: {
|
|
121
126
|
[mode]: true,
|
|
122
127
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
123
128
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -133,7 +138,7 @@ export class SegmentButton {
|
|
|
133
138
|
'ion-activatable': true,
|
|
134
139
|
'ion-activatable-instant': true,
|
|
135
140
|
'ion-focusable': true,
|
|
136
|
-
} }, h("button", { key: '
|
|
141
|
+
} }, h("button", { key: '0927611d352e2ed4df5d2a72768d504f5d4c4baf', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled, ...this.inheritedAttributes, ...tabindexAttributes }, h("span", { key: '0fdf337f0ba7fa08143124091a580418f7b94a7c', class: "button-inner" }, h("slot", { key: 'bce39283cdbe68cffbece870296fecff6f214345' })), mode === 'md' && h("ion-ripple-effect", { key: '2653c7c6d50bc00540d249ed98c6c6a5d93672d6' })), h("div", { key: 'de0dbdd9f531158cc77ba04e78f4e96e32b6fb02', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: '2006cb914692ae1d5659828e36c502f9747adede', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
137
142
|
}
|
|
138
143
|
static get is() { return "ion-segment-button"; }
|
|
139
144
|
static get encapsulation() { return "shadow"; }
|