@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
package/hydrate/index.mjs
CHANGED
|
@@ -466,7 +466,7 @@ const appGlobalScript = initialize || (() => {});
|
|
|
466
466
|
const globalScripts = appGlobalScript;
|
|
467
467
|
|
|
468
468
|
/*
|
|
469
|
-
Stencil Hydrate Platform v4.45.
|
|
469
|
+
Stencil Hydrate Platform v4.45.3 | MIT Licensed | https://stenciljs.com
|
|
470
470
|
*/
|
|
471
471
|
var __create = Object.create;
|
|
472
472
|
var __defProp = Object.defineProperty;
|
|
@@ -959,6 +959,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
959
959
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
960
960
|
}
|
|
961
961
|
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
962
|
+
if (typeof slotName !== "undefined" && slottedNodes.length) return slottedNodes;
|
|
962
963
|
}
|
|
963
964
|
return slottedNodes;
|
|
964
965
|
}
|
|
@@ -1112,7 +1113,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1112
1113
|
}
|
|
1113
1114
|
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1114
1115
|
if (existingStyleElm) {
|
|
1115
|
-
|
|
1116
|
+
appliedStyles.add(scopeId2);
|
|
1116
1117
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
1117
1118
|
styleElm = win$2.document.createElement("style");
|
|
1118
1119
|
styleElm.textContent = style;
|
|
@@ -1120,7 +1121,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1120
1121
|
if (nonce != null) {
|
|
1121
1122
|
styleElm.setAttribute("nonce", nonce);
|
|
1122
1123
|
}
|
|
1123
|
-
|
|
1124
|
+
{
|
|
1124
1125
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1125
1126
|
}
|
|
1126
1127
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
@@ -1470,7 +1471,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1470
1471
|
const scopeId2 = hostElm["s-sc"];
|
|
1471
1472
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1472
1473
|
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1473
|
-
if (childNodeType) {
|
|
1474
|
+
if (childNodeType && node !== hostElm) {
|
|
1474
1475
|
childIdSplt = childNodeType.split(".");
|
|
1475
1476
|
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1476
1477
|
childVNode = createSimpleVNode({
|
|
@@ -6410,7 +6411,8 @@ const accordionMdCss = () => `:host{display:block;position:relative;width:100%;b
|
|
|
6410
6411
|
*/
|
|
6411
6412
|
class Accordion {
|
|
6412
6413
|
constructor(hostRef) {
|
|
6413
|
-
|
|
6414
|
+
if (new.target === Accordion)
|
|
6415
|
+
registerInstance(this, hostRef);
|
|
6414
6416
|
this.accordionGroupUpdateHandler = () => {
|
|
6415
6417
|
/**
|
|
6416
6418
|
* Determine if this update will cause an actual state change.
|
|
@@ -6844,7 +6846,8 @@ const accordionGroupMdCss = () => `:host{display:block}:host(.accordion-group-ex
|
|
|
6844
6846
|
*/
|
|
6845
6847
|
class AccordionGroup {
|
|
6846
6848
|
constructor(hostRef) {
|
|
6847
|
-
|
|
6849
|
+
if (new.target === AccordionGroup)
|
|
6850
|
+
registerInstance(this, hostRef);
|
|
6848
6851
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
6849
6852
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
6850
6853
|
/**
|
|
@@ -10607,7 +10610,8 @@ const actionSheetMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
|
|
|
10607
10610
|
*/
|
|
10608
10611
|
class ActionSheet {
|
|
10609
10612
|
constructor(hostRef) {
|
|
10610
|
-
|
|
10613
|
+
if (new.target === ActionSheet)
|
|
10614
|
+
registerInstance(this, hostRef);
|
|
10611
10615
|
this.didPresent = createEvent(this, "ionActionSheetDidPresent", 7);
|
|
10612
10616
|
this.willPresent = createEvent(this, "ionActionSheetWillPresent", 7);
|
|
10613
10617
|
this.willDismiss = createEvent(this, "ionActionSheetWillDismiss", 7);
|
|
@@ -11229,7 +11233,8 @@ const alertMdCss = () => `.action-sheet-button-label-has-rich-content.sc-ion-ale
|
|
|
11229
11233
|
*/
|
|
11230
11234
|
class Alert {
|
|
11231
11235
|
constructor(hostRef) {
|
|
11232
|
-
|
|
11236
|
+
if (new.target === Alert)
|
|
11237
|
+
registerInstance(this, hostRef);
|
|
11233
11238
|
this.didPresent = createEvent(this, "ionAlertDidPresent", 7);
|
|
11234
11239
|
this.willPresent = createEvent(this, "ionAlertWillPresent", 7);
|
|
11235
11240
|
this.willDismiss = createEvent(this, "ionAlertWillDismiss", 7);
|
|
@@ -11859,7 +11864,8 @@ const appCss = () => `html.plt-mobile ion-app{-webkit-user-select:none;-moz-user
|
|
|
11859
11864
|
|
|
11860
11865
|
class App {
|
|
11861
11866
|
constructor(hostRef) {
|
|
11862
|
-
|
|
11867
|
+
if (new.target === App)
|
|
11868
|
+
registerInstance(this, hostRef);
|
|
11863
11869
|
}
|
|
11864
11870
|
componentDidLoad() {
|
|
11865
11871
|
}
|
|
@@ -11920,7 +11926,8 @@ const avatarMdCss = () => `:host{border-radius:var(--border-radius);display:bloc
|
|
|
11920
11926
|
|
|
11921
11927
|
class Avatar {
|
|
11922
11928
|
constructor(hostRef) {
|
|
11923
|
-
|
|
11929
|
+
if (new.target === Avatar)
|
|
11930
|
+
registerInstance(this, hostRef);
|
|
11924
11931
|
}
|
|
11925
11932
|
render() {
|
|
11926
11933
|
return (hAsync(Host, { key: '998217066084f966bf5d356fed85bcbd451f675a', class: getIonMode$1(this) }, hAsync("slot", { key: '1a6f7c9d4dc6a875f86b5b3cda6d59cb39587f22' })));
|
|
@@ -11939,6 +11946,215 @@ class Avatar {
|
|
|
11939
11946
|
}; }
|
|
11940
11947
|
}
|
|
11941
11948
|
|
|
11949
|
+
/**
|
|
11950
|
+
* Copies a set of attributes off the host element so they can be applied to an element
|
|
11951
|
+
* inside the shadow root, then keeps that copy in sync as the host attributes change.
|
|
11952
|
+
* Using `inheritAttributes` alone copies once at load, so anything written to the host
|
|
11953
|
+
* afterwards never reaches the element the assistive technology reads.
|
|
11954
|
+
*
|
|
11955
|
+
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
11956
|
+
* watching right away, so `init()` is only needed to resume after a move.
|
|
11957
|
+
*
|
|
11958
|
+
* Two things to know before adopting it. Unless `moveFromHost` says otherwise, only the
|
|
11959
|
+
* initial copy removes the attributes from the host, so a value written after load sits
|
|
11960
|
+
* on the host as well as on the element it is applied to, which matters if the host has
|
|
11961
|
+
* a role of its own. And an attribute moved off the host can never be removed, only
|
|
11962
|
+
* overwritten, since removing it from the host doesn't fire a mutation.
|
|
11963
|
+
* An empty string works for `aria-label` and friends, but a token-valued attribute
|
|
11964
|
+
* has to be set to its default instead, so `aria-pressed="false"` rather than empty.
|
|
11965
|
+
*
|
|
11966
|
+
* @internal
|
|
11967
|
+
* @param el The host element to copy from and watch.
|
|
11968
|
+
* @param attributes The attributes to copy and watch.
|
|
11969
|
+
* @param onChange Called after `attributes` changes, so the component can re-render.
|
|
11970
|
+
* @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
|
|
11971
|
+
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
11972
|
+
* those is the component's own write, and for attributes that would put a second node in
|
|
11973
|
+
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
11974
|
+
* @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
|
|
11975
|
+
* a value moves off the host. A rejected value stays on the host and is left out of
|
|
11976
|
+
* `attributes`. It can read component state, as long as the component calls `refresh()`
|
|
11977
|
+
* when that state changes.
|
|
11978
|
+
*/
|
|
11979
|
+
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
|
|
11980
|
+
let inherited = inheritAttributes$1(el, attributes);
|
|
11981
|
+
let observer;
|
|
11982
|
+
const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
|
|
11983
|
+
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
11984
|
+
/**
|
|
11985
|
+
* The names still on the host, which is everything written after load. The initial
|
|
11986
|
+
* copy removes what it captures, so a missing attribute only counts as a removal
|
|
11987
|
+
* when its name is in here.
|
|
11988
|
+
*/
|
|
11989
|
+
const hostWritten = new Set();
|
|
11990
|
+
const setPresence = (name, value) => {
|
|
11991
|
+
if (value === null) {
|
|
11992
|
+
hostWritten.delete(name);
|
|
11993
|
+
}
|
|
11994
|
+
else {
|
|
11995
|
+
hostWritten.add(name);
|
|
11996
|
+
}
|
|
11997
|
+
};
|
|
11998
|
+
const moveOffHost = (changed) => {
|
|
11999
|
+
if (moveFromHost === undefined) {
|
|
12000
|
+
return;
|
|
12001
|
+
}
|
|
12002
|
+
for (const [name, value] of Object.entries(changed)) {
|
|
12003
|
+
if (value != null && !staysOnHost(name, value)) {
|
|
12004
|
+
el.removeAttribute(name);
|
|
12005
|
+
// Without this, the missing attribute would read as a developer removal later.
|
|
12006
|
+
hostWritten.delete(name);
|
|
12007
|
+
}
|
|
12008
|
+
}
|
|
12009
|
+
};
|
|
12010
|
+
// The initial copy took everything off the host, so put back what has to stay there.
|
|
12011
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
12012
|
+
if (staysOnHost(name, value)) {
|
|
12013
|
+
el.setAttribute(name, value);
|
|
12014
|
+
hostWritten.add(name);
|
|
12015
|
+
}
|
|
12016
|
+
}
|
|
12017
|
+
/**
|
|
12018
|
+
* Nothing is watching while the host is out of the tree, since `disconnectedCallback`
|
|
12019
|
+
* calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
|
|
12020
|
+
* the host has to be re-read on the way back in.
|
|
12021
|
+
*/
|
|
12022
|
+
const readMissedChanges = () => {
|
|
12023
|
+
const changed = {};
|
|
12024
|
+
for (const name of watchedAttributes) {
|
|
12025
|
+
const value = el.getAttribute(name);
|
|
12026
|
+
const wasOnHost = hostWritten.has(name);
|
|
12027
|
+
setPresence(name, value);
|
|
12028
|
+
/**
|
|
12029
|
+
* An attribute that was never written to the host is missing because the initial
|
|
12030
|
+
* copy took it, not because the developer cleared it.
|
|
12031
|
+
*/
|
|
12032
|
+
if ((value === null && !wasOnHost) || value === inherited[name]) {
|
|
12033
|
+
continue;
|
|
12034
|
+
}
|
|
12035
|
+
changed[name] = value;
|
|
12036
|
+
}
|
|
12037
|
+
moveOffHost(changed);
|
|
12038
|
+
if (Object.keys(changed).length > 0) {
|
|
12039
|
+
inherited = { ...inherited, ...changed };
|
|
12040
|
+
onChange();
|
|
12041
|
+
}
|
|
12042
|
+
};
|
|
12043
|
+
const handleRecords = (mutations) => {
|
|
12044
|
+
const changed = {};
|
|
12045
|
+
for (const mutation of mutations) {
|
|
12046
|
+
const name = mutation.attributeName;
|
|
12047
|
+
// A removed attribute reads back as null, which clears it from the element the
|
|
12048
|
+
// values are spread onto.
|
|
12049
|
+
const value = el.getAttribute(name);
|
|
12050
|
+
setPresence(name, value);
|
|
12051
|
+
changed[name] = value;
|
|
12052
|
+
}
|
|
12053
|
+
moveOffHost(changed);
|
|
12054
|
+
// Drop the removals `moveOffHost` just queued, or they'd read back as the developer
|
|
12055
|
+
// clearing the attribute.
|
|
12056
|
+
observer?.takeRecords();
|
|
12057
|
+
inherited = { ...inherited, ...changed };
|
|
12058
|
+
onChange();
|
|
12059
|
+
};
|
|
12060
|
+
const init = () => {
|
|
12061
|
+
// There is no MutationObserver in SSR or the hydrate build.
|
|
12062
|
+
if (observer !== undefined || watchedAttributes.length === 0 || win$1 === undefined || !('MutationObserver' in win$1)) {
|
|
12063
|
+
return;
|
|
12064
|
+
}
|
|
12065
|
+
readMissedChanges();
|
|
12066
|
+
observer = new MutationObserver(handleRecords);
|
|
12067
|
+
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
12068
|
+
};
|
|
12069
|
+
const destroy = () => {
|
|
12070
|
+
observer?.disconnect();
|
|
12071
|
+
observer = undefined;
|
|
12072
|
+
};
|
|
12073
|
+
const refresh = () => {
|
|
12074
|
+
if (moveFromHost === undefined) {
|
|
12075
|
+
return;
|
|
12076
|
+
}
|
|
12077
|
+
// A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
|
|
12078
|
+
// first, or the loop below would act on the old value and drop the new one.
|
|
12079
|
+
if (observer !== undefined) {
|
|
12080
|
+
const pending = observer.takeRecords();
|
|
12081
|
+
if (pending.length > 0) {
|
|
12082
|
+
handleRecords(pending);
|
|
12083
|
+
}
|
|
12084
|
+
}
|
|
12085
|
+
else {
|
|
12086
|
+
readMissedChanges();
|
|
12087
|
+
}
|
|
12088
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
12089
|
+
if (value == null) {
|
|
12090
|
+
continue;
|
|
12091
|
+
}
|
|
12092
|
+
const onHost = el.hasAttribute(name);
|
|
12093
|
+
if (staysOnHost(name, value) && !onHost) {
|
|
12094
|
+
el.setAttribute(name, value);
|
|
12095
|
+
hostWritten.add(name);
|
|
12096
|
+
}
|
|
12097
|
+
else if (!staysOnHost(name, value) && onHost) {
|
|
12098
|
+
el.removeAttribute(name);
|
|
12099
|
+
hostWritten.delete(name);
|
|
12100
|
+
}
|
|
12101
|
+
}
|
|
12102
|
+
// Drop our own writes, or they'd read back as the developer's.
|
|
12103
|
+
observer?.takeRecords();
|
|
12104
|
+
};
|
|
12105
|
+
/**
|
|
12106
|
+
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
12107
|
+
* host and an observer armed any earlier would read the removal as a developer clearing
|
|
12108
|
+
* them.
|
|
12109
|
+
*/
|
|
12110
|
+
init();
|
|
12111
|
+
return {
|
|
12112
|
+
get attributes() {
|
|
12113
|
+
if (moveFromHost === undefined) {
|
|
12114
|
+
return inherited;
|
|
12115
|
+
}
|
|
12116
|
+
const moved = {};
|
|
12117
|
+
for (const [name, value] of Object.entries(inherited)) {
|
|
12118
|
+
if (!staysOnHost(name, value)) {
|
|
12119
|
+
moved[name] = value;
|
|
12120
|
+
}
|
|
12121
|
+
}
|
|
12122
|
+
return moved;
|
|
12123
|
+
},
|
|
12124
|
+
init,
|
|
12125
|
+
destroy,
|
|
12126
|
+
refresh,
|
|
12127
|
+
};
|
|
12128
|
+
};
|
|
12129
|
+
/**
|
|
12130
|
+
* The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
|
|
12131
|
+
* watches every ARIA attribute plus `role`.
|
|
12132
|
+
*
|
|
12133
|
+
* @internal
|
|
12134
|
+
* @param el The host element to copy from and watch.
|
|
12135
|
+
* @param onChange Called after the attributes change, so the component can re-render.
|
|
12136
|
+
* @param hostOwnedAttributes Attributes copied at load but not watched. See
|
|
12137
|
+
* `createAttributeController`.
|
|
12138
|
+
*/
|
|
12139
|
+
const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
|
|
12140
|
+
return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
|
|
12141
|
+
};
|
|
12142
|
+
/**
|
|
12143
|
+
* Moves `tabindex` from the host to the native element in the shadow root, including later
|
|
12144
|
+
* writes, since a host with a `tabindex` is an extra tab stop with no name. A negative
|
|
12145
|
+
* `tabindex` stays on the host, where it already skips the shadow root and the focus
|
|
12146
|
+
* utilities expect to find it.
|
|
12147
|
+
*
|
|
12148
|
+
* @internal
|
|
12149
|
+
* @param el The host element to copy from and watch.
|
|
12150
|
+
* @param onChange Called after `tabindex` changes, so the component can re-render.
|
|
12151
|
+
* @param hasNativeElement Whether the component renders a native element to move `tabindex`
|
|
12152
|
+
* to. Call `refresh()` when the answer changes.
|
|
12153
|
+
*/
|
|
12154
|
+
const createTabindexController = (el, onChange, hasNativeElement = () => true) => {
|
|
12155
|
+
return createAttributeController(el, ['tabindex'], onChange, [], (_, value) => hasNativeElement() && parseInt(value, 10) >= 0);
|
|
12156
|
+
};
|
|
12157
|
+
|
|
11942
12158
|
const backButtonIosCss = () => `:host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}`;
|
|
11943
12159
|
|
|
11944
12160
|
const backButtonMdCss = () => `:host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}`;
|
|
@@ -11952,7 +12168,8 @@ const backButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
|
|
|
11952
12168
|
*/
|
|
11953
12169
|
class BackButton {
|
|
11954
12170
|
constructor(hostRef) {
|
|
11955
|
-
|
|
12171
|
+
if (new.target === BackButton)
|
|
12172
|
+
registerInstance(this, hostRef);
|
|
11956
12173
|
this.inheritedAttributes = {};
|
|
11957
12174
|
/**
|
|
11958
12175
|
* If `true`, the user cannot interact with the button.
|
|
@@ -11973,10 +12190,17 @@ class BackButton {
|
|
|
11973
12190
|
}
|
|
11974
12191
|
componentWillLoad() {
|
|
11975
12192
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
12193
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
11976
12194
|
if (this.defaultHref === undefined) {
|
|
11977
12195
|
this.defaultHref = config.get('backButtonDefaultHref');
|
|
11978
12196
|
}
|
|
11979
12197
|
}
|
|
12198
|
+
connectedCallback() {
|
|
12199
|
+
this.tabindexController?.init();
|
|
12200
|
+
}
|
|
12201
|
+
disconnectedCallback() {
|
|
12202
|
+
this.tabindexController?.destroy();
|
|
12203
|
+
}
|
|
11980
12204
|
get backButtonIcon() {
|
|
11981
12205
|
const icon = this.icon;
|
|
11982
12206
|
if (icon != null) {
|
|
@@ -12010,7 +12234,8 @@ class BackButton {
|
|
|
12010
12234
|
const showBackButton = defaultHref !== undefined;
|
|
12011
12235
|
const mode = getIonMode$1(this);
|
|
12012
12236
|
const ariaLabel = inheritedAttributes['aria-label'] || backButtonText || 'back';
|
|
12013
|
-
|
|
12237
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
12238
|
+
return (hAsync(Host, { key: '0b7d30b4421e69c01041819a242bb4d57ee08cdd', onClick: this.onClick, class: createColorClasses$1(color, {
|
|
12014
12239
|
[mode]: true,
|
|
12015
12240
|
button: true, // ion-buttons target .button
|
|
12016
12241
|
'back-button-disabled': disabled,
|
|
@@ -12020,7 +12245,7 @@ class BackButton {
|
|
|
12020
12245
|
'ion-activatable': true,
|
|
12021
12246
|
'ion-focusable': true,
|
|
12022
12247
|
'show-back-button': showBackButton,
|
|
12023
|
-
}) }, hAsync("button", { key: '
|
|
12248
|
+
}) }, hAsync("button", { key: '20bf90c1b19af213eb7db6fb105423b1d5552cc7', type: type, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, hAsync("span", { key: '1472b6bac0ae85a040f8de0a505cc6479e96b672', class: "button-inner" }, backButtonIcon && (hAsync("ion-icon", { key: '223376e1501ca203b9f6d004707dd1d18b5fc076', part: "icon", icon: backButtonIcon, "aria-hidden": "true", lazy: false, "flip-rtl": icon === undefined })), backButtonText && (hAsync("span", { key: '0e94d0b6c930193ed3762946731cf9f4ae626b72', part: "text", "aria-hidden": "true", class: "button-text" }, backButtonText))), mode === 'md' && hAsync("ion-ripple-effect", { key: '7ef5b94fbbca517f333d1ae55198b373d843fec4', type: this.rippleType }))));
|
|
12024
12249
|
}
|
|
12025
12250
|
get el() { return getElement(this); }
|
|
12026
12251
|
static get style() { return {
|
|
@@ -12051,7 +12276,8 @@ const backdropMdCss = () => `:host{left:0;right:0;top:0;bottom:0;display:block;p
|
|
|
12051
12276
|
|
|
12052
12277
|
class Backdrop {
|
|
12053
12278
|
constructor(hostRef) {
|
|
12054
|
-
|
|
12279
|
+
if (new.target === Backdrop)
|
|
12280
|
+
registerInstance(this, hostRef);
|
|
12055
12281
|
this.ionBackdropTap = createEvent(this, "ionBackdropTap", 7);
|
|
12056
12282
|
/**
|
|
12057
12283
|
* If `true`, the backdrop will be visible.
|
|
@@ -12117,7 +12343,8 @@ const badgeMdCss = () => `:host{--background:var(--ion-color-primary, #0054e9);-
|
|
|
12117
12343
|
*/
|
|
12118
12344
|
class Badge {
|
|
12119
12345
|
constructor(hostRef) {
|
|
12120
|
-
|
|
12346
|
+
if (new.target === Badge)
|
|
12347
|
+
registerInstance(this, hostRef);
|
|
12121
12348
|
}
|
|
12122
12349
|
render() {
|
|
12123
12350
|
const mode = getIonMode$1(this);
|
|
@@ -12154,7 +12381,8 @@ const breadcrumbMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex:0
|
|
|
12154
12381
|
*/
|
|
12155
12382
|
class Breadcrumb {
|
|
12156
12383
|
constructor(hostRef) {
|
|
12157
|
-
|
|
12384
|
+
if (new.target === Breadcrumb)
|
|
12385
|
+
registerInstance(this, hostRef);
|
|
12158
12386
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
12159
12387
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
12160
12388
|
this.collapsedClick = createEvent(this, "collapsedClick", 7);
|
|
@@ -12188,6 +12416,21 @@ class Breadcrumb {
|
|
|
12188
12416
|
}
|
|
12189
12417
|
componentWillLoad() {
|
|
12190
12418
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
12419
|
+
// A breadcrumb without an `href` has no native link, so `tabindex` stays on the host.
|
|
12420
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
|
|
12421
|
+
}
|
|
12422
|
+
/**
|
|
12423
|
+
* Adding or removing `href` adds or removes the native link, so `tabindex` has to move
|
|
12424
|
+
* with it.
|
|
12425
|
+
*/
|
|
12426
|
+
hrefChanged() {
|
|
12427
|
+
this.tabindexController?.refresh();
|
|
12428
|
+
}
|
|
12429
|
+
connectedCallback() {
|
|
12430
|
+
this.tabindexController?.init();
|
|
12431
|
+
}
|
|
12432
|
+
disconnectedCallback() {
|
|
12433
|
+
this.tabindexController?.destroy();
|
|
12191
12434
|
}
|
|
12192
12435
|
isClickable() {
|
|
12193
12436
|
return this.href !== undefined;
|
|
@@ -12195,6 +12438,7 @@ class Breadcrumb {
|
|
|
12195
12438
|
render() {
|
|
12196
12439
|
const { color, active, collapsed, disabled, download, el, inheritedAttributes, last, routerAnimation, routerDirection, separator, showCollapsedIndicator, target, } = this;
|
|
12197
12440
|
const clickable = this.isClickable();
|
|
12441
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
12198
12442
|
const TagType = this.href === undefined ? 'span' : 'a';
|
|
12199
12443
|
// Links can still be tabbed to when set to disabled if they have an href
|
|
12200
12444
|
// in order to truly disable them we can keep it as an anchor but remove the href
|
|
@@ -12211,7 +12455,7 @@ class Breadcrumb {
|
|
|
12211
12455
|
// to show the separator as long as it isn't also the last breadcrumb
|
|
12212
12456
|
// otherwise if not collapsed use the value in separator
|
|
12213
12457
|
const showSeparator = last ? false : collapsed ? (showCollapsedIndicator && !last ? true : false) : separator;
|
|
12214
|
-
return (hAsync(Host, { key: '
|
|
12458
|
+
return (hAsync(Host, { key: '6f50e8b42045b81771ffd123a3cb708c603c1541', onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation), "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
|
|
12215
12459
|
[mode]: true,
|
|
12216
12460
|
'breadcrumb-active': active,
|
|
12217
12461
|
'breadcrumb-collapsed': collapsed,
|
|
@@ -12221,17 +12465,22 @@ class Breadcrumb {
|
|
|
12221
12465
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
12222
12466
|
'ion-activatable': clickable,
|
|
12223
12467
|
'ion-focusable': clickable,
|
|
12224
|
-
}) }, hAsync(TagType, { key: '
|
|
12468
|
+
}) }, hAsync(TagType, { key: '4ac14d323e1d35e987862aa9b875d30be2310a71', ...attrs, class: "breadcrumb-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes, ...tabindexAttributes }, hAsync("slot", { key: 'a3598ed5bc506acc4f5bef525cd2404b00228620', name: "start" }), hAsync("slot", { key: '0696a0ffd1513c1d93deb269fdf600e9ef434f17' }), hAsync("slot", { key: 'bf315bd49788604c27b8ba354796250b56f2fcb0', name: "end" })), showCollapsedIndicator && (hAsync("button", { key: 'b130482d7ed16e3c452fa779b0696d1f8687e379', part: "collapsed-indicator", "aria-label": "Show more breadcrumbs", onClick: () => this.collapsedIndicatorClick(), ref: (collapsedEl) => (this.collapsedRef = collapsedEl), class: {
|
|
12225
12469
|
'breadcrumbs-collapsed-indicator': true,
|
|
12226
|
-
} }, hAsync("ion-icon", { key: '
|
|
12470
|
+
} }, hAsync("ion-icon", { key: 'd5094d69a6477b390afaa230f76011bef97f386f', "aria-hidden": "true", icon: ellipsisHorizontal, lazy: false }))), showSeparator && (
|
|
12227
12471
|
/**
|
|
12228
12472
|
* Separators should not be announced by narrators.
|
|
12229
12473
|
* We add aria-hidden on the span so that this applies
|
|
12230
12474
|
* to any custom separators too.
|
|
12231
12475
|
*/
|
|
12232
|
-
hAsync("span", { key: '
|
|
12476
|
+
hAsync("span", { key: '98421acb32aa73507ea1ab078555c20f4bdef6cd', class: "breadcrumb-separator", part: "separator", "aria-hidden": "true" }, hAsync("slot", { key: '8b37779f2003554631a923a8d7ce2436238d1b05', name: "separator" }, mode === 'ios' ? (hAsync("ion-icon", { icon: chevronForwardOutline, lazy: false, "flip-rtl": true })) : (hAsync("span", null, "/")))))));
|
|
12233
12477
|
}
|
|
12234
12478
|
get el() { return getElement(this); }
|
|
12479
|
+
static get watchers() { return {
|
|
12480
|
+
"href": [{
|
|
12481
|
+
"hrefChanged": 0
|
|
12482
|
+
}]
|
|
12483
|
+
}; }
|
|
12235
12484
|
static get style() { return {
|
|
12236
12485
|
ios: breadcrumbIosCss(),
|
|
12237
12486
|
md: breadcrumbMdCss()
|
|
@@ -12270,7 +12519,8 @@ const breadcrumbsMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-
|
|
|
12270
12519
|
*/
|
|
12271
12520
|
class Breadcrumbs {
|
|
12272
12521
|
constructor(hostRef) {
|
|
12273
|
-
|
|
12522
|
+
if (new.target === Breadcrumbs)
|
|
12523
|
+
registerInstance(this, hostRef);
|
|
12274
12524
|
this.ionCollapsedClick = createEvent(this, "ionCollapsedClick", 7);
|
|
12275
12525
|
/**
|
|
12276
12526
|
* The number of breadcrumbs to show before the collapsed indicator.
|
|
@@ -12413,128 +12663,6 @@ class Breadcrumbs {
|
|
|
12413
12663
|
}; }
|
|
12414
12664
|
}
|
|
12415
12665
|
|
|
12416
|
-
/**
|
|
12417
|
-
* Copies a set of attributes off the host element so they can be applied to an element
|
|
12418
|
-
* inside the shadow root, then keeps that copy in sync as the host attributes change.
|
|
12419
|
-
* Using `inheritAttributes` alone copies once at load, so anything written to the host
|
|
12420
|
-
* afterwards never reaches the element the assistive technology reads.
|
|
12421
|
-
*
|
|
12422
|
-
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
12423
|
-
* watching right away, so `init()` is only needed to resume after a move.
|
|
12424
|
-
*
|
|
12425
|
-
* Two things to know before adopting it. Only the initial copy removes the attributes
|
|
12426
|
-
* from the host, so a value written after load sits on the host as well as on the
|
|
12427
|
-
* element it is applied to, which matters if the host has a role of its own. And an
|
|
12428
|
-
* attribute from the initial markup can never be removed, only overwritten, since the
|
|
12429
|
-
* copy already took it off the host and a `removeAttribute` there fires no mutation.
|
|
12430
|
-
* An empty string works for `aria-label` and friends, but a token-valued attribute
|
|
12431
|
-
* has to be set to its default instead, so `aria-pressed="false"` rather than empty.
|
|
12432
|
-
*
|
|
12433
|
-
* @internal
|
|
12434
|
-
* @param el The host element to copy from and watch.
|
|
12435
|
-
* @param attributes The attributes to copy and watch.
|
|
12436
|
-
* @param onChange Called after `attributes` changes, so the component can re-render.
|
|
12437
|
-
* @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
|
|
12438
|
-
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
12439
|
-
* those is the component's own write, and for attributes that would put a second node in
|
|
12440
|
-
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
12441
|
-
*/
|
|
12442
|
-
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = []) => {
|
|
12443
|
-
let inherited = inheritAttributes$1(el, attributes);
|
|
12444
|
-
let observer;
|
|
12445
|
-
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
12446
|
-
/**
|
|
12447
|
-
* The names still on the host, which is everything written after load. The initial
|
|
12448
|
-
* copy removes what it captures, so a missing attribute only counts as a removal
|
|
12449
|
-
* when its name is in here.
|
|
12450
|
-
*/
|
|
12451
|
-
const hostWritten = new Set();
|
|
12452
|
-
const setPresence = (name, value) => {
|
|
12453
|
-
if (value === null) {
|
|
12454
|
-
hostWritten.delete(name);
|
|
12455
|
-
}
|
|
12456
|
-
else {
|
|
12457
|
-
hostWritten.add(name);
|
|
12458
|
-
}
|
|
12459
|
-
};
|
|
12460
|
-
/**
|
|
12461
|
-
* Nothing is watching while the host is out of the tree, since `disconnectedCallback`
|
|
12462
|
-
* calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
|
|
12463
|
-
* the host has to be re-read on the way back in.
|
|
12464
|
-
*/
|
|
12465
|
-
const readMissedChanges = () => {
|
|
12466
|
-
const changed = {};
|
|
12467
|
-
for (const name of watchedAttributes) {
|
|
12468
|
-
const value = el.getAttribute(name);
|
|
12469
|
-
const wasOnHost = hostWritten.has(name);
|
|
12470
|
-
setPresence(name, value);
|
|
12471
|
-
/**
|
|
12472
|
-
* An attribute that was never written to the host is missing because the initial
|
|
12473
|
-
* copy took it, not because the developer cleared it.
|
|
12474
|
-
*/
|
|
12475
|
-
if ((value === null && !wasOnHost) || value === inherited[name]) {
|
|
12476
|
-
continue;
|
|
12477
|
-
}
|
|
12478
|
-
changed[name] = value;
|
|
12479
|
-
}
|
|
12480
|
-
if (Object.keys(changed).length > 0) {
|
|
12481
|
-
inherited = { ...inherited, ...changed };
|
|
12482
|
-
onChange();
|
|
12483
|
-
}
|
|
12484
|
-
};
|
|
12485
|
-
const init = () => {
|
|
12486
|
-
// There is no MutationObserver in SSR or the hydrate build.
|
|
12487
|
-
if (observer !== undefined || watchedAttributes.length === 0 || win$1 === undefined || !('MutationObserver' in win$1)) {
|
|
12488
|
-
return;
|
|
12489
|
-
}
|
|
12490
|
-
readMissedChanges();
|
|
12491
|
-
observer = new MutationObserver((mutations) => {
|
|
12492
|
-
const changed = {};
|
|
12493
|
-
for (const mutation of mutations) {
|
|
12494
|
-
const name = mutation.attributeName;
|
|
12495
|
-
// A removed attribute reads back as null, which clears it from the element the
|
|
12496
|
-
// values are spread onto.
|
|
12497
|
-
const value = el.getAttribute(name);
|
|
12498
|
-
setPresence(name, value);
|
|
12499
|
-
changed[name] = value;
|
|
12500
|
-
}
|
|
12501
|
-
inherited = { ...inherited, ...changed };
|
|
12502
|
-
onChange();
|
|
12503
|
-
});
|
|
12504
|
-
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
12505
|
-
};
|
|
12506
|
-
const destroy = () => {
|
|
12507
|
-
observer?.disconnect();
|
|
12508
|
-
observer = undefined;
|
|
12509
|
-
};
|
|
12510
|
-
/**
|
|
12511
|
-
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
12512
|
-
* host and an observer armed any earlier would read the removal as a developer clearing
|
|
12513
|
-
* them.
|
|
12514
|
-
*/
|
|
12515
|
-
init();
|
|
12516
|
-
return {
|
|
12517
|
-
get attributes() {
|
|
12518
|
-
return inherited;
|
|
12519
|
-
},
|
|
12520
|
-
init,
|
|
12521
|
-
destroy,
|
|
12522
|
-
};
|
|
12523
|
-
};
|
|
12524
|
-
/**
|
|
12525
|
-
* The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
|
|
12526
|
-
* watches every ARIA attribute plus `role`.
|
|
12527
|
-
*
|
|
12528
|
-
* @internal
|
|
12529
|
-
* @param el The host element to copy from and watch.
|
|
12530
|
-
* @param onChange Called after the attributes change, so the component can re-render.
|
|
12531
|
-
* @param hostOwnedAttributes Attributes copied at load but not watched. See
|
|
12532
|
-
* `createAttributeController`.
|
|
12533
|
-
*/
|
|
12534
|
-
const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
|
|
12535
|
-
return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
|
|
12536
|
-
};
|
|
12537
|
-
|
|
12538
12666
|
const buttonIosCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #0054e9);--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.125em, 60px);min-height:clamp(30px, 2.125em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 1.125em, 43.02px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(12.1394px, 1.308125em, 40.1856px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 0.9em, 43.056px)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}`;
|
|
12539
12667
|
|
|
12540
12668
|
const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1), background-color 15ms linear, color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-strong){font-weight:bold}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.86em, 60px);min-height:clamp(30px, 2.86em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.104px, 1.6em, 43.008px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(13.002px, 1.23125em, 40.385px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.008px, 1.4em, 43.008px)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-background, var(--color));color:var(--ion-toolbar-color, var(--background), var(--ion-color-primary-contrast, #fff))}`;
|
|
@@ -12551,7 +12679,8 @@ const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;-
|
|
|
12551
12679
|
*/
|
|
12552
12680
|
class Button {
|
|
12553
12681
|
constructor(hostRef) {
|
|
12554
|
-
|
|
12682
|
+
if (new.target === Button)
|
|
12683
|
+
registerInstance(this, hostRef);
|
|
12555
12684
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
12556
12685
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
12557
12686
|
this.inItem = false;
|
|
@@ -12663,12 +12792,15 @@ class Button {
|
|
|
12663
12792
|
* two elements in the accessibility tree.
|
|
12664
12793
|
*/
|
|
12665
12794
|
this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled', 'role']);
|
|
12795
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
12666
12796
|
}
|
|
12667
12797
|
connectedCallback() {
|
|
12668
12798
|
this.ariaController?.init();
|
|
12799
|
+
this.tabindexController?.init();
|
|
12669
12800
|
}
|
|
12670
12801
|
disconnectedCallback() {
|
|
12671
12802
|
this.ariaController?.destroy();
|
|
12803
|
+
this.tabindexController?.destroy();
|
|
12672
12804
|
}
|
|
12673
12805
|
get hasIconOnly() {
|
|
12674
12806
|
return !!this.el.querySelector('[slot="icon-only"]');
|
|
@@ -12744,7 +12876,10 @@ class Button {
|
|
|
12744
12876
|
render() {
|
|
12745
12877
|
const mode = getIonMode$1(this);
|
|
12746
12878
|
const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong } = this;
|
|
12747
|
-
const inheritedAttributes =
|
|
12879
|
+
const inheritedAttributes = {
|
|
12880
|
+
...this.ariaController?.attributes,
|
|
12881
|
+
...this.tabindexController?.attributes,
|
|
12882
|
+
};
|
|
12748
12883
|
const finalSize = size === undefined && this.inItem ? 'small' : size;
|
|
12749
12884
|
const TagType = href === undefined ? 'button' : 'a';
|
|
12750
12885
|
const attrs = TagType === 'button'
|
|
@@ -12769,7 +12904,7 @@ class Button {
|
|
|
12769
12904
|
{
|
|
12770
12905
|
type !== 'button' && this.renderHiddenButton();
|
|
12771
12906
|
}
|
|
12772
|
-
return (hAsync(Host, { key: '
|
|
12907
|
+
return (hAsync(Host, { key: '9676cd8eb88ff0ff0582eeaa8b87ed4525a4dbee', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
|
|
12773
12908
|
[mode]: true,
|
|
12774
12909
|
[buttonType]: true,
|
|
12775
12910
|
[`${buttonType}-${expand}`]: expand !== undefined,
|
|
@@ -12784,7 +12919,7 @@ class Button {
|
|
|
12784
12919
|
'button-disabled': disabled,
|
|
12785
12920
|
'ion-activatable': true,
|
|
12786
12921
|
'ion-focusable': true,
|
|
12787
|
-
}) }, hAsync(TagType, { key: '
|
|
12922
|
+
}) }, hAsync(TagType, { key: '42609eab7e854c1e1ddf678c7dc83c7ec81e560e', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("span", { key: 'a212acc720c9312b3ac35345333df7a7175ace92', class: "button-inner" }, hAsync("slot", { key: '05986b525272c768a37c274748f15aeb2fce313e', name: "icon-only", onSlotchange: this.slotChanged }), hAsync("slot", { key: '4b6951f7b201c19714e97e2075f517f88642a169', name: "start" }), hAsync("slot", { key: 'fa2d5ca4551a14ebfafe5399683e239566571398' }), hAsync("slot", { key: 'ca8edc225165824f535177b99bb39adc1fea5fd2', name: "end" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '01c38cc6c230bb35861bbcc1472f4a2f18522e93', type: this.rippleType }))));
|
|
12788
12923
|
}
|
|
12789
12924
|
get el() { return getElement(this); }
|
|
12790
12925
|
static get watchers() { return {
|
|
@@ -12830,7 +12965,8 @@ const buttonsMdCss = () => `.sc-ion-buttons-md-h{display:-ms-flexbox;display:fle
|
|
|
12830
12965
|
|
|
12831
12966
|
class Buttons {
|
|
12832
12967
|
constructor(hostRef) {
|
|
12833
|
-
|
|
12968
|
+
if (new.target === Buttons)
|
|
12969
|
+
registerInstance(this, hostRef);
|
|
12834
12970
|
/**
|
|
12835
12971
|
* If true, buttons will disappear when its
|
|
12836
12972
|
* parent toolbar has fully collapsed if the toolbar
|
|
@@ -12879,7 +13015,8 @@ const cardMdCss = () => `:host{--ion-safe-area-left:0px;--ion-safe-area-right:0p
|
|
|
12879
13015
|
*/
|
|
12880
13016
|
class Card {
|
|
12881
13017
|
constructor(hostRef) {
|
|
12882
|
-
|
|
13018
|
+
if (new.target === Card)
|
|
13019
|
+
registerInstance(this, hostRef);
|
|
12883
13020
|
/**
|
|
12884
13021
|
* If `true`, a button tag will be rendered and the card will be tappable.
|
|
12885
13022
|
*/
|
|
@@ -12905,12 +13042,23 @@ class Card {
|
|
|
12905
13042
|
* the card host renders no role of its own, so nothing reads the leftover copy.
|
|
12906
13043
|
*/
|
|
12907
13044
|
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
|
|
13045
|
+
// A card that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
13046
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
|
|
13047
|
+
}
|
|
13048
|
+
/**
|
|
13049
|
+
* Changing `href` or `button` adds or removes the native element, so `tabindex` has to
|
|
13050
|
+
* move with it.
|
|
13051
|
+
*/
|
|
13052
|
+
clickableChanged() {
|
|
13053
|
+
this.tabindexController?.refresh();
|
|
12908
13054
|
}
|
|
12909
13055
|
connectedCallback() {
|
|
12910
13056
|
this.ariaController?.init();
|
|
13057
|
+
this.tabindexController?.init();
|
|
12911
13058
|
}
|
|
12912
13059
|
disconnectedCallback() {
|
|
12913
13060
|
this.ariaController?.destroy();
|
|
13061
|
+
this.tabindexController?.destroy();
|
|
12914
13062
|
}
|
|
12915
13063
|
isClickable() {
|
|
12916
13064
|
return this.href !== undefined || this.button;
|
|
@@ -12922,6 +13070,7 @@ class Card {
|
|
|
12922
13070
|
}
|
|
12923
13071
|
const { href, routerAnimation, routerDirection } = this;
|
|
12924
13072
|
const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
|
|
13073
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
12925
13074
|
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
|
12926
13075
|
const attrs = TagType === 'button'
|
|
12927
13076
|
? { type: this.type }
|
|
@@ -12931,17 +13080,25 @@ class Card {
|
|
|
12931
13080
|
rel: this.rel,
|
|
12932
13081
|
target: this.target,
|
|
12933
13082
|
};
|
|
12934
|
-
return (hAsync(TagType, { ...attrs, ...inheritedAriaAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, hAsync("slot", null), clickable && mode === 'md' && hAsync("ion-ripple-effect", null)));
|
|
13083
|
+
return (hAsync(TagType, { ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, hAsync("slot", null), clickable && mode === 'md' && hAsync("ion-ripple-effect", null)));
|
|
12935
13084
|
}
|
|
12936
13085
|
render() {
|
|
12937
13086
|
const mode = getIonMode$1(this);
|
|
12938
|
-
return (hAsync(Host, { key: '
|
|
13087
|
+
return (hAsync(Host, { key: 'a50cd4e11f563acefeadc4c8f67536276593384a', class: createColorClasses$1(this.color, {
|
|
12939
13088
|
[mode]: true,
|
|
12940
13089
|
'card-disabled': this.disabled,
|
|
12941
13090
|
'ion-activatable': this.isClickable(),
|
|
12942
13091
|
}) }, this.renderCard(mode)));
|
|
12943
13092
|
}
|
|
12944
13093
|
get el() { return getElement(this); }
|
|
13094
|
+
static get watchers() { return {
|
|
13095
|
+
"href": [{
|
|
13096
|
+
"clickableChanged": 0
|
|
13097
|
+
}],
|
|
13098
|
+
"button": [{
|
|
13099
|
+
"clickableChanged": 0
|
|
13100
|
+
}]
|
|
13101
|
+
}; }
|
|
12945
13102
|
static get style() { return {
|
|
12946
13103
|
ios: cardIosCss(),
|
|
12947
13104
|
md: cardMdCss()
|
|
@@ -12976,7 +13133,8 @@ const cardContentMdCss = () => `ion-card-content{display:block;position:relative
|
|
|
12976
13133
|
*/
|
|
12977
13134
|
class CardContent {
|
|
12978
13135
|
constructor(hostRef) {
|
|
12979
|
-
|
|
13136
|
+
if (new.target === CardContent)
|
|
13137
|
+
registerInstance(this, hostRef);
|
|
12980
13138
|
}
|
|
12981
13139
|
render() {
|
|
12982
13140
|
const mode = getIonMode$1(this);
|
|
@@ -13009,7 +13167,8 @@ const cardHeaderMdCss = () => `:host{--background:transparent;--color:inherit;di
|
|
|
13009
13167
|
*/
|
|
13010
13168
|
class CardHeader {
|
|
13011
13169
|
constructor(hostRef) {
|
|
13012
|
-
|
|
13170
|
+
if (new.target === CardHeader)
|
|
13171
|
+
registerInstance(this, hostRef);
|
|
13013
13172
|
/**
|
|
13014
13173
|
* If `true`, the card header will be translucent.
|
|
13015
13174
|
* Only applies when the mode is `"ios"` and the device supports
|
|
@@ -13051,7 +13210,8 @@ const cardSubtitleMdCss = () => `:host{display:block;position:relative;color:var
|
|
|
13051
13210
|
*/
|
|
13052
13211
|
class CardSubtitle {
|
|
13053
13212
|
constructor(hostRef) {
|
|
13054
|
-
|
|
13213
|
+
if (new.target === CardSubtitle)
|
|
13214
|
+
registerInstance(this, hostRef);
|
|
13055
13215
|
}
|
|
13056
13216
|
render() {
|
|
13057
13217
|
const mode = getIonMode$1(this);
|
|
@@ -13085,7 +13245,8 @@ const cardTitleMdCss = () => `:host{display:block;position:relative;color:var(--
|
|
|
13085
13245
|
*/
|
|
13086
13246
|
class CardTitle {
|
|
13087
13247
|
constructor(hostRef) {
|
|
13088
|
-
|
|
13248
|
+
if (new.target === CardTitle)
|
|
13249
|
+
registerInstance(this, hostRef);
|
|
13089
13250
|
}
|
|
13090
13251
|
render() {
|
|
13091
13252
|
const mode = getIonMode$1(this);
|
|
@@ -13572,7 +13733,8 @@ const checkboxMdCss = () => `:host{--checkbox-background-checked:var(--ion-color
|
|
|
13572
13733
|
*/
|
|
13573
13734
|
class Checkbox {
|
|
13574
13735
|
constructor(hostRef) {
|
|
13575
|
-
|
|
13736
|
+
if (new.target === Checkbox)
|
|
13737
|
+
registerInstance(this, hostRef);
|
|
13576
13738
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
13577
13739
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
13578
13740
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -13799,7 +13961,8 @@ const chipMdCss = () => `:host{--background:rgba(var(--ion-text-color-rgb, 0, 0,
|
|
|
13799
13961
|
*/
|
|
13800
13962
|
class Chip {
|
|
13801
13963
|
constructor(hostRef) {
|
|
13802
|
-
|
|
13964
|
+
if (new.target === Chip)
|
|
13965
|
+
registerInstance(this, hostRef);
|
|
13803
13966
|
/**
|
|
13804
13967
|
* Display an outline style button.
|
|
13805
13968
|
*/
|
|
@@ -13864,7 +14027,8 @@ const SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports(
|
|
|
13864
14027
|
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
13865
14028
|
class Col {
|
|
13866
14029
|
constructor(hostRef) {
|
|
13867
|
-
|
|
14030
|
+
if (new.target === Col)
|
|
14031
|
+
registerInstance(this, hostRef);
|
|
13868
14032
|
}
|
|
13869
14033
|
onResize() {
|
|
13870
14034
|
}
|
|
@@ -13998,7 +14162,8 @@ const contentCss = () => `:host{--background:var(--ion-background-color, #fff);-
|
|
|
13998
14162
|
*/
|
|
13999
14163
|
class Content {
|
|
14000
14164
|
constructor(hostRef) {
|
|
14001
|
-
|
|
14165
|
+
if (new.target === Content)
|
|
14166
|
+
registerInstance(this, hostRef);
|
|
14002
14167
|
this.ionScrollStart = createEvent(this, "ionScrollStart", 7);
|
|
14003
14168
|
this.ionScroll = createEvent(this, "ionScroll", 7);
|
|
14004
14169
|
this.ionScrollEnd = createEvent(this, "ionScrollEnd", 7);
|
|
@@ -16481,7 +16646,8 @@ const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flo
|
|
|
16481
16646
|
*/
|
|
16482
16647
|
class Datetime {
|
|
16483
16648
|
constructor(hostRef) {
|
|
16484
|
-
|
|
16649
|
+
if (new.target === Datetime)
|
|
16650
|
+
registerInstance(this, hostRef);
|
|
16485
16651
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
16486
16652
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
16487
16653
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
@@ -18433,7 +18599,8 @@ const datetimeButtonMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-fl
|
|
|
18433
18599
|
*/
|
|
18434
18600
|
class DatetimeButton {
|
|
18435
18601
|
constructor(hostRef) {
|
|
18436
|
-
|
|
18602
|
+
if (new.target === DatetimeButton)
|
|
18603
|
+
registerInstance(this, hostRef);
|
|
18437
18604
|
this.datetimeEl = null;
|
|
18438
18605
|
this.overlayEl = null;
|
|
18439
18606
|
this.datetimePresentation = 'date-time';
|
|
@@ -18787,7 +18954,8 @@ const fabCss = () => `:host{position:absolute;width:-webkit-fit-content;width:-m
|
|
|
18787
18954
|
|
|
18788
18955
|
class Fab {
|
|
18789
18956
|
constructor(hostRef) {
|
|
18790
|
-
|
|
18957
|
+
if (new.target === Fab)
|
|
18958
|
+
registerInstance(this, hostRef);
|
|
18791
18959
|
/**
|
|
18792
18960
|
* If `true`, the fab will display on the edge of the header if
|
|
18793
18961
|
* `vertical` is `"top"`, and on the edge of the footer if
|
|
@@ -18880,7 +19048,8 @@ const fabButtonMdCss = () => `:host{--color-activated:var(--color);--color-focus
|
|
|
18880
19048
|
*/
|
|
18881
19049
|
class FabButton {
|
|
18882
19050
|
constructor(hostRef) {
|
|
18883
|
-
|
|
19051
|
+
if (new.target === FabButton)
|
|
19052
|
+
registerInstance(this, hostRef);
|
|
18884
19053
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
18885
19054
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
18886
19055
|
this.fab = null;
|
|
@@ -18944,6 +19113,10 @@ class FabButton {
|
|
|
18944
19113
|
}
|
|
18945
19114
|
connectedCallback() {
|
|
18946
19115
|
this.fab = this.el.closest('ion-fab');
|
|
19116
|
+
this.tabindexController?.init();
|
|
19117
|
+
}
|
|
19118
|
+
disconnectedCallback() {
|
|
19119
|
+
this.tabindexController?.destroy();
|
|
18947
19120
|
}
|
|
18948
19121
|
/**
|
|
18949
19122
|
* The native button rendered inside `ion-fab-button` is in the Shadow DOM and
|
|
@@ -19003,11 +19176,13 @@ class FabButton {
|
|
|
19003
19176
|
}
|
|
19004
19177
|
componentWillLoad() {
|
|
19005
19178
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
19179
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
19006
19180
|
}
|
|
19007
19181
|
render() {
|
|
19008
19182
|
const { el, disabled, color, href, activated, show, translucent, size, inheritedAttributes, type } = this;
|
|
19009
19183
|
const inList = hostContext('ion-fab-list', el);
|
|
19010
19184
|
const mode = getIonMode$1(this);
|
|
19185
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
19011
19186
|
const TagType = href === undefined ? 'button' : 'a';
|
|
19012
19187
|
const attrs = TagType === 'button'
|
|
19013
19188
|
? { type }
|
|
@@ -19024,7 +19199,7 @@ class FabButton {
|
|
|
19024
19199
|
if (type !== 'button') {
|
|
19025
19200
|
this.renderHiddenButton();
|
|
19026
19201
|
}
|
|
19027
|
-
return (hAsync(Host, { key: '
|
|
19202
|
+
return (hAsync(Host, { key: '95594de6a6509d29799ba4f5b54a14632bca1c83', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
|
|
19028
19203
|
[mode]: true,
|
|
19029
19204
|
'fab-button-in-list': inList,
|
|
19030
19205
|
'fab-button-translucent-in-list': inList && translucent,
|
|
@@ -19035,7 +19210,7 @@ class FabButton {
|
|
|
19035
19210
|
'ion-activatable': true,
|
|
19036
19211
|
'ion-focusable': true,
|
|
19037
19212
|
[`fab-button-${size}`]: size !== undefined,
|
|
19038
|
-
}) }, hAsync(TagType, { key: '
|
|
19213
|
+
}) }, hAsync(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 }, hAsync("ion-icon", { key: '6ba981ded86087506dfc115124d4f69bb4c8d03c', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), hAsync("span", { key: '54efdabe98164f3575641c104f8a9e82ec2a42c7', class: "button-inner" }, hAsync("slot", { key: '23c0809c2371454c27cb8dd55d0c81bbf062a238' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '7aacc6325bbc990e496378eef0d5af2697b2edce' }))));
|
|
19039
19214
|
}
|
|
19040
19215
|
get el() { return getElement(this); }
|
|
19041
19216
|
static get watchers() { return {
|
|
@@ -19077,7 +19252,8 @@ const fabListCss = () => `:host{margin-left:0;margin-right:0;margin-top:calc(100
|
|
|
19077
19252
|
|
|
19078
19253
|
class FabList {
|
|
19079
19254
|
constructor(hostRef) {
|
|
19080
|
-
|
|
19255
|
+
if (new.target === FabList)
|
|
19256
|
+
registerInstance(this, hostRef);
|
|
19081
19257
|
this.activateTimeouts = [];
|
|
19082
19258
|
/**
|
|
19083
19259
|
* If `true`, the fab list will show all fab buttons in the list.
|
|
@@ -19520,7 +19696,8 @@ const footerMdCss = () => `ion-footer{display:block;position:relative;-ms-flex-o
|
|
|
19520
19696
|
*/
|
|
19521
19697
|
class Footer {
|
|
19522
19698
|
constructor(hostRef) {
|
|
19523
|
-
|
|
19699
|
+
if (new.target === Footer)
|
|
19700
|
+
registerInstance(this, hostRef);
|
|
19524
19701
|
this.keyboardCtrl = null;
|
|
19525
19702
|
this.keyboardCtrlPromise = null;
|
|
19526
19703
|
this.keyboardVisible = false;
|
|
@@ -19650,7 +19827,8 @@ const gridCss = () => `:host{-webkit-padding-start:var(--ion-grid-padding-xs, va
|
|
|
19650
19827
|
|
|
19651
19828
|
class Grid {
|
|
19652
19829
|
constructor(hostRef) {
|
|
19653
|
-
|
|
19830
|
+
if (new.target === Grid)
|
|
19831
|
+
registerInstance(this, hostRef);
|
|
19654
19832
|
/**
|
|
19655
19833
|
* If `true`, the grid will have a fixed width based on the screen size.
|
|
19656
19834
|
*/
|
|
@@ -19917,7 +20095,8 @@ const headerMdCss = () => `ion-header{display:block;position:relative;-ms-flex-o
|
|
|
19917
20095
|
*/
|
|
19918
20096
|
class Header {
|
|
19919
20097
|
constructor(hostRef) {
|
|
19920
|
-
|
|
20098
|
+
if (new.target === Header)
|
|
20099
|
+
registerInstance(this, hostRef);
|
|
19921
20100
|
this.inheritedAttributes = {};
|
|
19922
20101
|
/**
|
|
19923
20102
|
* If `true`, the header will be translucent.
|
|
@@ -20154,7 +20333,8 @@ const iconCss = () => `:host{display:inline-block;width:1em;height:1em;font-size
|
|
|
20154
20333
|
|
|
20155
20334
|
class Icon {
|
|
20156
20335
|
constructor(hostRef) {
|
|
20157
|
-
|
|
20336
|
+
if (new.target === Icon)
|
|
20337
|
+
registerInstance(this, hostRef);
|
|
20158
20338
|
this.iconName = null;
|
|
20159
20339
|
this.inheritedAttributes = {};
|
|
20160
20340
|
this.didLoadIcon = false;
|
|
@@ -20337,7 +20517,8 @@ const imgCss = () => `:host{display:block;-o-object-fit:contain;object-fit:conta
|
|
|
20337
20517
|
*/
|
|
20338
20518
|
class Img {
|
|
20339
20519
|
constructor(hostRef) {
|
|
20340
|
-
|
|
20520
|
+
if (new.target === Img)
|
|
20521
|
+
registerInstance(this, hostRef);
|
|
20341
20522
|
this.ionImgWillLoad = createEvent(this, "ionImgWillLoad", 7);
|
|
20342
20523
|
this.ionImgDidLoad = createEvent(this, "ionImgDidLoad", 7);
|
|
20343
20524
|
this.ionError = createEvent(this, "ionError", 7);
|
|
@@ -20455,7 +20636,8 @@ const infiniteScrollCss = () => `ion-infinite-scroll{display:none;width:100%}.in
|
|
|
20455
20636
|
|
|
20456
20637
|
class InfiniteScroll {
|
|
20457
20638
|
constructor(hostRef) {
|
|
20458
|
-
|
|
20639
|
+
if (new.target === InfiniteScroll)
|
|
20640
|
+
registerInstance(this, hostRef);
|
|
20459
20641
|
this.ionInfinite = createEvent(this, "ionInfinite", 7);
|
|
20460
20642
|
this.thrPx = 0;
|
|
20461
20643
|
this.thrPc = 0;
|
|
@@ -20678,7 +20860,8 @@ const infiniteScrollContentMdCss = () => `ion-infinite-scroll-content{display:-m
|
|
|
20678
20860
|
|
|
20679
20861
|
class InfiniteScrollContent {
|
|
20680
20862
|
constructor(hostRef) {
|
|
20681
|
-
|
|
20863
|
+
if (new.target === InfiniteScrollContent)
|
|
20864
|
+
registerInstance(this, hostRef);
|
|
20682
20865
|
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
20683
20866
|
}
|
|
20684
20867
|
componentDidLoad() {
|
|
@@ -20870,7 +21053,8 @@ const inputMdCss = () => `.sc-ion-input-md-h{--placeholder-color:initial;--place
|
|
|
20870
21053
|
*/
|
|
20871
21054
|
class Input {
|
|
20872
21055
|
constructor(hostRef) {
|
|
20873
|
-
|
|
21056
|
+
if (new.target === Input)
|
|
21057
|
+
registerInstance(this, hostRef);
|
|
20874
21058
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
20875
21059
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
20876
21060
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -21449,7 +21633,8 @@ const inputOtpMdCss = () => `.sc-ion-input-otp-md-h{--margin-top:0;--margin-end:
|
|
|
21449
21633
|
|
|
21450
21634
|
class InputOTP {
|
|
21451
21635
|
constructor(hostRef) {
|
|
21452
|
-
|
|
21636
|
+
if (new.target === InputOTP)
|
|
21637
|
+
registerInstance(this, hostRef);
|
|
21453
21638
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
21454
21639
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
21455
21640
|
this.ionComplete = createEvent(this, "ionComplete", 7);
|
|
@@ -22149,7 +22334,8 @@ const mdInputPasswordToggleCss = () => ``;
|
|
|
22149
22334
|
*/
|
|
22150
22335
|
class InputPasswordToggle {
|
|
22151
22336
|
constructor(hostRef) {
|
|
22152
|
-
|
|
22337
|
+
if (new.target === InputPasswordToggle)
|
|
22338
|
+
registerInstance(this, hostRef);
|
|
22153
22339
|
/**
|
|
22154
22340
|
* @internal
|
|
22155
22341
|
*/
|
|
@@ -22253,7 +22439,8 @@ const INDICATOR_CONTROL_SELECTOR = 'ion-checkbox, ion-radio, ion-toggle';
|
|
|
22253
22439
|
*/
|
|
22254
22440
|
class Item {
|
|
22255
22441
|
constructor(hostRef) {
|
|
22256
|
-
|
|
22442
|
+
if (new.target === Item)
|
|
22443
|
+
registerInstance(this, hostRef);
|
|
22257
22444
|
this.labelColorStyles = {};
|
|
22258
22445
|
this.itemStyles = new Map();
|
|
22259
22446
|
this.didLoad = false;
|
|
@@ -22292,6 +22479,14 @@ class Item {
|
|
|
22292
22479
|
buttonChanged() {
|
|
22293
22480
|
// Update the focusable option when the button option is changed
|
|
22294
22481
|
this.focusable = this.isFocusable();
|
|
22482
|
+
this.tabindexController?.refresh();
|
|
22483
|
+
}
|
|
22484
|
+
/**
|
|
22485
|
+
* Adding or removing `href` adds or removes the native element, so `tabindex` has to move
|
|
22486
|
+
* with it. The same goes for `button` in `buttonChanged`.
|
|
22487
|
+
*/
|
|
22488
|
+
hrefChanged() {
|
|
22489
|
+
this.tabindexController?.refresh();
|
|
22295
22490
|
}
|
|
22296
22491
|
labelColorChanged(ev) {
|
|
22297
22492
|
const { color } = this;
|
|
@@ -22336,6 +22531,7 @@ class Item {
|
|
|
22336
22531
|
this.updateInteractivityOnSlotChange();
|
|
22337
22532
|
}
|
|
22338
22533
|
this.ariaController?.init();
|
|
22534
|
+
this.tabindexController?.init();
|
|
22339
22535
|
}
|
|
22340
22536
|
componentWillLoad() {
|
|
22341
22537
|
/**
|
|
@@ -22345,6 +22541,8 @@ class Item {
|
|
|
22345
22541
|
* reads it twice.
|
|
22346
22542
|
*/
|
|
22347
22543
|
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
|
|
22544
|
+
// An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
22545
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
|
|
22348
22546
|
}
|
|
22349
22547
|
componentDidLoad() {
|
|
22350
22548
|
raf(() => {
|
|
@@ -22362,6 +22560,7 @@ class Item {
|
|
|
22362
22560
|
this.indicatorControlObserver = undefined;
|
|
22363
22561
|
}
|
|
22364
22562
|
this.ariaController?.destroy();
|
|
22563
|
+
this.tabindexController?.destroy();
|
|
22365
22564
|
}
|
|
22366
22565
|
totalNestedInputs() {
|
|
22367
22566
|
// The following elements have a clickable cover that is relative to the entire item
|
|
@@ -22465,6 +22664,7 @@ class Item {
|
|
|
22465
22664
|
const clickable = this.isClickable();
|
|
22466
22665
|
const canActivate = this.canActivate();
|
|
22467
22666
|
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
|
22667
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
22468
22668
|
const attrs = TagType === 'button'
|
|
22469
22669
|
? { type: this.type }
|
|
22470
22670
|
: {
|
|
@@ -22535,7 +22735,7 @@ class Item {
|
|
|
22535
22735
|
* multi-input item, and in a clickable item, which is a second tab stop.
|
|
22536
22736
|
*/
|
|
22537
22737
|
const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
|
|
22538
|
-
return (hAsync(Host, { key: '
|
|
22738
|
+
return (hAsync(Host, { key: 'b9de79c9d6fbe11a19c8e507d1c34af9f9068cfa', "aria-disabled": ariaDisabled, class: {
|
|
22539
22739
|
...childStyles,
|
|
22540
22740
|
...labelColorStyles,
|
|
22541
22741
|
...createColorClasses$1(this.color, {
|
|
@@ -22552,12 +22752,15 @@ class Item {
|
|
|
22552
22752
|
'ion-focusable': this.focusable,
|
|
22553
22753
|
'item-rtl': isRTL$1(el),
|
|
22554
22754
|
}),
|
|
22555
|
-
}, role: inList ? 'listitem' : null }, hAsync(TagType, { key: '
|
|
22755
|
+
}, role: inList ? 'listitem' : null }, hAsync(TagType, { key: 'c52faccd0d44784e300e55c90b4456c491513c3c', ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, hAsync("slot", { key: '11cc95e796b494cf87db7b810846cb2c18186577', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), hAsync("div", { key: '6c94a9dd570f4e6e65924fdde6bcbb840c9b424d', class: "item-inner", part: "inner" }, hAsync("div", { key: '06c490d6f3e15fa811c72d5cd2b7936f99dd8430', class: "input-wrapper", part: "container" }, hAsync("slot", { key: '4487a6cf30f3b26455c96726733f57b1dbcab694', onSlotchange: this.updateInteractivityOnSlotChange })), hAsync("slot", { key: '16d6e70fa22f43b11bc63304dae9900f4a41b703', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (hAsync("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' && hAsync("ion-ripple-effect", { key: 'a9b081a6ebe870d057b775cfae2e7a4de6679155' }))));
|
|
22556
22756
|
}
|
|
22557
22757
|
get el() { return getElement(this); }
|
|
22558
22758
|
static get watchers() { return {
|
|
22559
22759
|
"button": [{
|
|
22560
22760
|
"buttonChanged": 0
|
|
22761
|
+
}],
|
|
22762
|
+
"href": [{
|
|
22763
|
+
"hrefChanged": 0
|
|
22561
22764
|
}]
|
|
22562
22765
|
}; }
|
|
22563
22766
|
static get style() { return {
|
|
@@ -22608,7 +22811,8 @@ const itemDividerMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padd
|
|
|
22608
22811
|
*/
|
|
22609
22812
|
class ItemDivider {
|
|
22610
22813
|
constructor(hostRef) {
|
|
22611
|
-
|
|
22814
|
+
if (new.target === ItemDivider)
|
|
22815
|
+
registerInstance(this, hostRef);
|
|
22612
22816
|
/**
|
|
22613
22817
|
* When it's set to `true`, the item-divider will stay visible when it reaches the top
|
|
22614
22818
|
* of the viewport until the next `ion-item-divider` replaces it.
|
|
@@ -22650,7 +22854,8 @@ const itemGroupMdCss = () => `ion-item-group{display:block}`;
|
|
|
22650
22854
|
|
|
22651
22855
|
class ItemGroup {
|
|
22652
22856
|
constructor(hostRef) {
|
|
22653
|
-
|
|
22857
|
+
if (new.target === ItemGroup)
|
|
22858
|
+
registerInstance(this, hostRef);
|
|
22654
22859
|
}
|
|
22655
22860
|
render() {
|
|
22656
22861
|
const mode = getIonMode$1(this);
|
|
@@ -22695,7 +22900,8 @@ const itemOptionMdCss = () => `:host{--background:var(--ion-color-primary, #0054
|
|
|
22695
22900
|
*/
|
|
22696
22901
|
class ItemOption {
|
|
22697
22902
|
constructor(hostRef) {
|
|
22698
|
-
|
|
22903
|
+
if (new.target === ItemOption)
|
|
22904
|
+
registerInstance(this, hostRef);
|
|
22699
22905
|
/**
|
|
22700
22906
|
* If `true`, the user cannot interact with the item option.
|
|
22701
22907
|
*/
|
|
@@ -22715,8 +22921,18 @@ class ItemOption {
|
|
|
22715
22921
|
}
|
|
22716
22922
|
};
|
|
22717
22923
|
}
|
|
22924
|
+
componentWillLoad() {
|
|
22925
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
22926
|
+
}
|
|
22927
|
+
connectedCallback() {
|
|
22928
|
+
this.tabindexController?.init();
|
|
22929
|
+
}
|
|
22930
|
+
disconnectedCallback() {
|
|
22931
|
+
this.tabindexController?.destroy();
|
|
22932
|
+
}
|
|
22718
22933
|
render() {
|
|
22719
22934
|
const { disabled, expandable, href } = this;
|
|
22935
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
22720
22936
|
const TagType = href === undefined ? 'button' : 'a';
|
|
22721
22937
|
const mode = getIonMode$1(this);
|
|
22722
22938
|
const attrs = TagType === 'button'
|
|
@@ -22726,12 +22942,12 @@ class ItemOption {
|
|
|
22726
22942
|
href: this.href,
|
|
22727
22943
|
target: this.target,
|
|
22728
22944
|
};
|
|
22729
|
-
return (hAsync(Host, { key: '
|
|
22945
|
+
return (hAsync(Host, { key: 'b9d323be73e0ac6408aa56a05eeb67076e35daf8', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
22730
22946
|
[mode]: true,
|
|
22731
22947
|
'item-option-disabled': disabled,
|
|
22732
22948
|
'item-option-expandable': expandable,
|
|
22733
22949
|
'ion-activatable': true,
|
|
22734
|
-
}) }, hAsync(TagType, { key: '
|
|
22950
|
+
}) }, hAsync(TagType, { key: '6a59ebaa090613f42fca1fe51eff7863a69526ac', ...attrs, ...tabindexAttributes, class: "button-native", part: "native", disabled: disabled }, hAsync("span", { key: '9a5709f3b6d6bccdf0d60345f6171ca5439d54f4', class: "button-inner", part: "inner" }, hAsync("slot", { key: '9d76f6239d4c50cb785142a89bba26702a79c1f8', name: "top" }), hAsync("div", { key: 'b2aecda5dbfa5e3279d49b6dab6cb14c0b5df697', class: "horizontal-wrapper", part: "container" }, hAsync("slot", { key: '40d56d38d7a73a55f5ea4f6cdd6bc62dcfaa8dae', name: "start" }), hAsync("slot", { key: 'e531ca665546752bde34525cc6630a5ea2ac2575', name: "icon-only" }), hAsync("slot", { key: '2b7a78f6a4776eeb0720f79a81d075f75c63f4ff' }), hAsync("slot", { key: 'b296120a461d3b330ec05a97524b8ce5d3250a07', name: "end" })), hAsync("slot", { key: '5ebdf7af5acb29cc1b728f812d7f0c4d952512cc', name: "bottom" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '538f3e7d90a17ddbcc72ad227a0711573d3f7aac' }))));
|
|
22735
22951
|
}
|
|
22736
22952
|
get el() { return getElement(this); }
|
|
22737
22953
|
static get style() { return {
|
|
@@ -22763,7 +22979,8 @@ const itemOptionsMdCss = () => `ion-item-options{top:0;right:0;-ms-flex-pack:end
|
|
|
22763
22979
|
|
|
22764
22980
|
class ItemOptions {
|
|
22765
22981
|
constructor(hostRef) {
|
|
22766
|
-
|
|
22982
|
+
if (new.target === ItemOptions)
|
|
22983
|
+
registerInstance(this, hostRef);
|
|
22767
22984
|
this.ionSwipe = createEvent(this, "ionSwipe", 7);
|
|
22768
22985
|
/**
|
|
22769
22986
|
* The side the option button should be on. Possible values: `"start"` and `"end"`. If you have multiple `ion-item-options`, a side must be provided for each.
|
|
@@ -22864,7 +23081,8 @@ const ELASTIC_FACTOR = 0.55;
|
|
|
22864
23081
|
let openSlidingItem;
|
|
22865
23082
|
class ItemSliding {
|
|
22866
23083
|
constructor(hostRef) {
|
|
22867
|
-
|
|
23084
|
+
if (new.target === ItemSliding)
|
|
23085
|
+
registerInstance(this, hostRef);
|
|
22868
23086
|
this.ionDrag = createEvent(this, "ionDrag", 7);
|
|
22869
23087
|
this.item = null;
|
|
22870
23088
|
this.openAmount = 0;
|
|
@@ -23301,7 +23519,8 @@ const labelMdCss = () => `.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--col
|
|
|
23301
23519
|
*/
|
|
23302
23520
|
class Label {
|
|
23303
23521
|
constructor(hostRef) {
|
|
23304
|
-
|
|
23522
|
+
if (new.target === Label)
|
|
23523
|
+
registerInstance(this, hostRef);
|
|
23305
23524
|
this.ionColor = createEvent(this, "ionColor", 7);
|
|
23306
23525
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
23307
23526
|
this.inRange = false;
|
|
@@ -23397,7 +23616,8 @@ const listMdCss = () => `ion-list{margin-left:0;margin-right:0;margin-top:0;marg
|
|
|
23397
23616
|
*/
|
|
23398
23617
|
class List {
|
|
23399
23618
|
constructor(hostRef) {
|
|
23400
|
-
|
|
23619
|
+
if (new.target === List)
|
|
23620
|
+
registerInstance(this, hostRef);
|
|
23401
23621
|
/**
|
|
23402
23622
|
* If `true`, the list will have margin around it and rounded corners.
|
|
23403
23623
|
*/
|
|
@@ -23458,7 +23678,8 @@ const listHeaderMdCss = () => `:host{--border-style:solid;--border-width:0;--inn
|
|
|
23458
23678
|
*/
|
|
23459
23679
|
class ListHeader {
|
|
23460
23680
|
constructor(hostRef) {
|
|
23461
|
-
|
|
23681
|
+
if (new.target === ListHeader)
|
|
23682
|
+
registerInstance(this, hostRef);
|
|
23462
23683
|
}
|
|
23463
23684
|
render() {
|
|
23464
23685
|
const { lines } = this;
|
|
@@ -23583,7 +23804,8 @@ const loadingMdCss = () => `.sc-ion-loading-md-h{--min-width:auto;--width:auto;-
|
|
|
23583
23804
|
*/
|
|
23584
23805
|
class Loading {
|
|
23585
23806
|
constructor(hostRef) {
|
|
23586
|
-
|
|
23807
|
+
if (new.target === Loading)
|
|
23808
|
+
registerInstance(this, hostRef);
|
|
23587
23809
|
this.didPresent = createEvent(this, "ionLoadingDidPresent", 7);
|
|
23588
23810
|
this.willPresent = createEvent(this, "ionLoadingWillPresent", 7);
|
|
23589
23811
|
this.willDismiss = createEvent(this, "ionLoadingWillDismiss", 7);
|
|
@@ -24206,7 +24428,8 @@ const mdEasingReverse = 'cubic-bezier(0.4, 0, 0.6, 1)';
|
|
|
24206
24428
|
*/
|
|
24207
24429
|
class Menu {
|
|
24208
24430
|
constructor(hostRef) {
|
|
24209
|
-
|
|
24431
|
+
if (new.target === Menu)
|
|
24432
|
+
registerInstance(this, hostRef);
|
|
24210
24433
|
this.ionWillOpen = createEvent(this, "ionWillOpen", 7);
|
|
24211
24434
|
this.ionWillClose = createEvent(this, "ionWillClose", 7);
|
|
24212
24435
|
this.ionDidOpen = createEvent(this, "ionDidOpen", 7);
|
|
@@ -24919,7 +25142,8 @@ const menuButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
|
|
|
24919
25142
|
*/
|
|
24920
25143
|
class MenuButton {
|
|
24921
25144
|
constructor(hostRef) {
|
|
24922
|
-
|
|
25145
|
+
if (new.target === MenuButton)
|
|
25146
|
+
registerInstance(this, hostRef);
|
|
24923
25147
|
this.inheritedAttributes = {};
|
|
24924
25148
|
this.visible = false;
|
|
24925
25149
|
/**
|
|
@@ -24940,6 +25164,13 @@ class MenuButton {
|
|
|
24940
25164
|
}
|
|
24941
25165
|
componentWillLoad() {
|
|
24942
25166
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
25167
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
25168
|
+
}
|
|
25169
|
+
connectedCallback() {
|
|
25170
|
+
this.tabindexController?.init();
|
|
25171
|
+
}
|
|
25172
|
+
disconnectedCallback() {
|
|
25173
|
+
this.tabindexController?.destroy();
|
|
24943
25174
|
}
|
|
24944
25175
|
componentDidLoad() {
|
|
24945
25176
|
this.visibilityChanged();
|
|
@@ -24949,6 +25180,7 @@ class MenuButton {
|
|
|
24949
25180
|
}
|
|
24950
25181
|
render() {
|
|
24951
25182
|
const { color, disabled, inheritedAttributes } = this;
|
|
25183
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
24952
25184
|
const mode = getIonMode$1(this);
|
|
24953
25185
|
const menuIcon = config.get('menuIcon', mode === 'ios' ? menuOutline : menuSharp);
|
|
24954
25186
|
const hidden = this.autoHide && !this.visible;
|
|
@@ -24956,7 +25188,7 @@ class MenuButton {
|
|
|
24956
25188
|
type: this.type,
|
|
24957
25189
|
};
|
|
24958
25190
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
24959
|
-
return (hAsync(Host, { key: '
|
|
25191
|
+
return (hAsync(Host, { key: 'bccc30d2a1e67e484f493211f950391c82f28b00', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
|
|
24960
25192
|
[mode]: true,
|
|
24961
25193
|
button: true, // ion-buttons target .button
|
|
24962
25194
|
'menu-button-hidden': hidden,
|
|
@@ -24965,7 +25197,7 @@ class MenuButton {
|
|
|
24965
25197
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
24966
25198
|
'ion-activatable': true,
|
|
24967
25199
|
'ion-focusable': true,
|
|
24968
|
-
}) }, hAsync("button", { key: '
|
|
25200
|
+
}) }, hAsync("button", { key: 'c2479290c5fee434c12c75fe47b2a10c58908bcb', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, hAsync("span", { key: 'ab2a5aa0aced1e551f5571dbfd3dabe8b3558370', class: "button-inner" }, hAsync("slot", { key: '7e7f827910287e11ffe716639c069e977df64d6a' }, hAsync("ion-icon", { key: 'ec4677e9b71d4b2167c64aebef269a58994262d1', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && hAsync("ion-ripple-effect", { key: '5b88e62b6cb4530f7b63dde0352cb0b7ef73cbff', type: "unbounded" }))));
|
|
24969
25201
|
}
|
|
24970
25202
|
get el() { return getElement(this); }
|
|
24971
25203
|
static get style() { return {
|
|
@@ -24996,7 +25228,8 @@ const menuToggleCss = () => `:host(.menu-toggle-hidden){display:none}`;
|
|
|
24996
25228
|
*/
|
|
24997
25229
|
class MenuToggle {
|
|
24998
25230
|
constructor(hostRef) {
|
|
24999
|
-
|
|
25231
|
+
if (new.target === MenuToggle)
|
|
25232
|
+
registerInstance(this, hostRef);
|
|
25000
25233
|
this.visible = false;
|
|
25001
25234
|
/**
|
|
25002
25235
|
* Automatically hides the content when the corresponding menu is not active.
|
|
@@ -27265,7 +27498,8 @@ const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;-
|
|
|
27265
27498
|
*/
|
|
27266
27499
|
class Modal {
|
|
27267
27500
|
constructor(hostRef) {
|
|
27268
|
-
|
|
27501
|
+
if (new.target === Modal)
|
|
27502
|
+
registerInstance(this, hostRef);
|
|
27269
27503
|
this.didPresent = createEvent(this, "ionModalDidPresent", 7);
|
|
27270
27504
|
this.willPresent = createEvent(this, "ionModalWillPresent", 7);
|
|
27271
27505
|
this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
|
|
@@ -28657,7 +28891,8 @@ const navCss = () => `:host{left:0;right:0;top:0;bottom:0;position:absolute;cont
|
|
|
28657
28891
|
|
|
28658
28892
|
class Nav {
|
|
28659
28893
|
constructor(hostRef) {
|
|
28660
|
-
|
|
28894
|
+
if (new.target === Nav)
|
|
28895
|
+
registerInstance(this, hostRef);
|
|
28661
28896
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
28662
28897
|
this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
|
|
28663
28898
|
this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
|
|
@@ -29460,7 +29695,8 @@ const navLink = (el, routerDirection, component, componentProps, routerAnimation
|
|
|
29460
29695
|
|
|
29461
29696
|
class NavLink {
|
|
29462
29697
|
constructor(hostRef) {
|
|
29463
|
-
|
|
29698
|
+
if (new.target === NavLink)
|
|
29699
|
+
registerInstance(this, hostRef);
|
|
29464
29700
|
/**
|
|
29465
29701
|
* The transition direction when navigating to another page.
|
|
29466
29702
|
*/
|
|
@@ -29497,7 +29733,8 @@ const noteMdCss = () => `:host{color:var(--color);font-family:var(--ion-font-fam
|
|
|
29497
29733
|
*/
|
|
29498
29734
|
class Note {
|
|
29499
29735
|
constructor(hostRef) {
|
|
29500
|
-
|
|
29736
|
+
if (new.target === Note)
|
|
29737
|
+
registerInstance(this, hostRef);
|
|
29501
29738
|
}
|
|
29502
29739
|
render() {
|
|
29503
29740
|
const mode = getIonMode$1(this);
|
|
@@ -29530,7 +29767,8 @@ const pickerMdCss = () => `:host{display:-ms-flexbox;display:flex;position:relat
|
|
|
29530
29767
|
*/
|
|
29531
29768
|
class Picker {
|
|
29532
29769
|
constructor(hostRef) {
|
|
29533
|
-
|
|
29770
|
+
if (new.target === Picker)
|
|
29771
|
+
registerInstance(this, hostRef);
|
|
29534
29772
|
this.ionInputModeChange = createEvent(this, "ionInputModeChange", 7);
|
|
29535
29773
|
this.useInputMode = false;
|
|
29536
29774
|
this.isInHighlightBounds = (ev) => {
|
|
@@ -30018,7 +30256,8 @@ const pickerColumnCss = () => `:host{display:-ms-flexbox;display:flex;position:r
|
|
|
30018
30256
|
*/
|
|
30019
30257
|
class PickerColumn {
|
|
30020
30258
|
constructor(hostRef) {
|
|
30021
|
-
|
|
30259
|
+
if (new.target === PickerColumn)
|
|
30260
|
+
registerInstance(this, hostRef);
|
|
30022
30261
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
30023
30262
|
this.isScrolling = false;
|
|
30024
30263
|
this.isColumnVisible = false;
|
|
@@ -30754,7 +30993,8 @@ const pickerColumnOptionMdCss = () => `.picker-column-option-button{padding-left
|
|
|
30754
30993
|
|
|
30755
30994
|
class PickerColumnOption {
|
|
30756
30995
|
constructor(hostRef) {
|
|
30757
|
-
|
|
30996
|
+
if (new.target === PickerColumnOption)
|
|
30997
|
+
registerInstance(this, hostRef);
|
|
30758
30998
|
/**
|
|
30759
30999
|
* We keep track of the parent picker column
|
|
30760
31000
|
* so we can update the value of it when
|
|
@@ -32028,7 +32268,8 @@ const popoverMdCss = () => `:host{--background:var(--ion-background-color, #fff)
|
|
|
32028
32268
|
*/
|
|
32029
32269
|
class Popover {
|
|
32030
32270
|
constructor(hostRef) {
|
|
32031
|
-
|
|
32271
|
+
if (new.target === Popover)
|
|
32272
|
+
registerInstance(this, hostRef);
|
|
32032
32273
|
this.didPresent = createEvent(this, "ionPopoverDidPresent", 7);
|
|
32033
32274
|
this.willPresent = createEvent(this, "ionPopoverWillPresent", 7);
|
|
32034
32275
|
this.willDismiss = createEvent(this, "ionPopoverWillDismiss", 7);
|
|
@@ -32598,7 +32839,8 @@ const progressBarMdCss = () => `:host{--background:rgba(var(--ion-color-primary-
|
|
|
32598
32839
|
*/
|
|
32599
32840
|
class ProgressBar {
|
|
32600
32841
|
constructor(hostRef) {
|
|
32601
|
-
|
|
32842
|
+
if (new.target === ProgressBar)
|
|
32843
|
+
registerInstance(this, hostRef);
|
|
32602
32844
|
/**
|
|
32603
32845
|
* The state of the progress bar, based on if the time the process takes is known or not.
|
|
32604
32846
|
* Default options are: `"determinate"` (no animation), `"indeterminate"` (animate from left to right).
|
|
@@ -32690,7 +32932,8 @@ const radioMdCss = () => `:host{--inner-border-radius:50%;display:inline-block;p
|
|
|
32690
32932
|
*/
|
|
32691
32933
|
class Radio {
|
|
32692
32934
|
constructor(hostRef) {
|
|
32693
|
-
|
|
32935
|
+
if (new.target === Radio)
|
|
32936
|
+
registerInstance(this, hostRef);
|
|
32694
32937
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
32695
32938
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
32696
32939
|
this.inputId = `ion-rb-${radioButtonIds++}`;
|
|
@@ -32875,7 +33118,8 @@ const radioGroupMdCss = () => `ion-radio-group{vertical-align:top}.radio-group-t
|
|
|
32875
33118
|
|
|
32876
33119
|
class RadioGroup {
|
|
32877
33120
|
constructor(hostRef) {
|
|
32878
|
-
|
|
33121
|
+
if (new.target === RadioGroup)
|
|
33122
|
+
registerInstance(this, hostRef);
|
|
32879
33123
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
32880
33124
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
32881
33125
|
this.inputId = `ion-rg-${radioGroupIds++}`;
|
|
@@ -33205,7 +33449,8 @@ const rangeMdCss = () => `:host{--knob-handle-size:calc(var(--knob-size) * 2);di
|
|
|
33205
33449
|
*/
|
|
33206
33450
|
class Range {
|
|
33207
33451
|
constructor(hostRef) {
|
|
33208
|
-
|
|
33452
|
+
if (new.target === Range)
|
|
33453
|
+
registerInstance(this, hostRef);
|
|
33209
33454
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
33210
33455
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
33211
33456
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
@@ -34314,7 +34559,8 @@ const refresherMdCss = () => `ion-refresher{top:0;display:none;position:absolute
|
|
|
34314
34559
|
*/
|
|
34315
34560
|
class Refresher {
|
|
34316
34561
|
constructor(hostRef) {
|
|
34317
|
-
|
|
34562
|
+
if (new.target === Refresher)
|
|
34563
|
+
registerInstance(this, hostRef);
|
|
34318
34564
|
this.ionRefresh = createEvent(this, "ionRefresh", 7);
|
|
34319
34565
|
this.ionPull = createEvent(this, "ionPull", 7);
|
|
34320
34566
|
this.ionStart = createEvent(this, "ionStart", 7);
|
|
@@ -35243,7 +35489,8 @@ const SPINNERS = spinners;
|
|
|
35243
35489
|
|
|
35244
35490
|
class RefresherContent {
|
|
35245
35491
|
constructor(hostRef) {
|
|
35246
|
-
|
|
35492
|
+
if (new.target === RefresherContent)
|
|
35493
|
+
registerInstance(this, hostRef);
|
|
35247
35494
|
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
35248
35495
|
}
|
|
35249
35496
|
componentWillLoad() {
|
|
@@ -35308,7 +35555,8 @@ const reorderMdCss = () => `:host([slot]){display:none;line-height:0;z-index:100
|
|
|
35308
35555
|
*/
|
|
35309
35556
|
class Reorder {
|
|
35310
35557
|
constructor(hostRef) {
|
|
35311
|
-
|
|
35558
|
+
if (new.target === Reorder)
|
|
35559
|
+
registerInstance(this, hostRef);
|
|
35312
35560
|
}
|
|
35313
35561
|
onClick(ev) {
|
|
35314
35562
|
const reorderGroup = this.el.closest('ion-reorder-group');
|
|
@@ -35343,7 +35591,8 @@ const reorderGroupCss = () => `.reorder-list-active>*{display:block;-webkit-tran
|
|
|
35343
35591
|
|
|
35344
35592
|
class ReorderGroup {
|
|
35345
35593
|
constructor(hostRef) {
|
|
35346
|
-
|
|
35594
|
+
if (new.target === ReorderGroup)
|
|
35595
|
+
registerInstance(this, hostRef);
|
|
35347
35596
|
this.ionItemReorder = createEvent(this, "ionItemReorder", 7);
|
|
35348
35597
|
this.ionReorderStart = createEvent(this, "ionReorderStart", 7);
|
|
35349
35598
|
this.ionReorderMove = createEvent(this, "ionReorderMove", 7);
|
|
@@ -35647,7 +35896,8 @@ const rippleEffectCss = () => `:host{left:0;right:0;top:0;bottom:0;position:abso
|
|
|
35647
35896
|
|
|
35648
35897
|
class RippleEffect {
|
|
35649
35898
|
constructor(hostRef) {
|
|
35650
|
-
|
|
35899
|
+
if (new.target === RippleEffect)
|
|
35900
|
+
registerInstance(this, hostRef);
|
|
35651
35901
|
/**
|
|
35652
35902
|
* Sets the type of ripple-effect:
|
|
35653
35903
|
*
|
|
@@ -35742,7 +35992,8 @@ const INITIAL_ORIGIN_SCALE = 0.5;
|
|
|
35742
35992
|
// TODO(FW-2832): types
|
|
35743
35993
|
class Route {
|
|
35744
35994
|
constructor(hostRef) {
|
|
35745
|
-
|
|
35995
|
+
if (new.target === Route)
|
|
35996
|
+
registerInstance(this, hostRef);
|
|
35746
35997
|
this.ionRouteDataChanged = createEvent(this, "ionRouteDataChanged", 7);
|
|
35747
35998
|
/**
|
|
35748
35999
|
* Relative path that needs to match in order for this route to apply.
|
|
@@ -35804,7 +36055,8 @@ class Route {
|
|
|
35804
36055
|
|
|
35805
36056
|
class RouteRedirect {
|
|
35806
36057
|
constructor(hostRef) {
|
|
35807
|
-
|
|
36058
|
+
if (new.target === RouteRedirect)
|
|
36059
|
+
registerInstance(this, hostRef);
|
|
35808
36060
|
this.ionRouteRedirectChanged = createEvent(this, "ionRouteRedirectChanged", 7);
|
|
35809
36061
|
}
|
|
35810
36062
|
propDidChange() {
|
|
@@ -36492,7 +36744,8 @@ const flattenNode = (chain, chains, node) => {
|
|
|
36492
36744
|
|
|
36493
36745
|
class Router {
|
|
36494
36746
|
constructor(hostRef) {
|
|
36495
|
-
|
|
36747
|
+
if (new.target === Router)
|
|
36748
|
+
registerInstance(this, hostRef);
|
|
36496
36749
|
this.ionRouteWillChange = createEvent(this, "ionRouteWillChange", 7);
|
|
36497
36750
|
this.ionRouteDidChange = createEvent(this, "ionRouteDidChange", 7);
|
|
36498
36751
|
this.previousPath = null;
|
|
@@ -36833,7 +37086,8 @@ const routerLinkCss = () => `:host{--background:transparent;--color:var(--ion-co
|
|
|
36833
37086
|
|
|
36834
37087
|
class RouterLink {
|
|
36835
37088
|
constructor(hostRef) {
|
|
36836
|
-
|
|
37089
|
+
if (new.target === RouterLink)
|
|
37090
|
+
registerInstance(this, hostRef);
|
|
36837
37091
|
/**
|
|
36838
37092
|
* When using a router, it specifies the transition direction when navigating to
|
|
36839
37093
|
* another page using `href`.
|
|
@@ -36843,18 +37097,29 @@ class RouterLink {
|
|
|
36843
37097
|
openURL(this.href, ev, this.routerDirection, this.routerAnimation);
|
|
36844
37098
|
};
|
|
36845
37099
|
}
|
|
37100
|
+
componentWillLoad() {
|
|
37101
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
37102
|
+
}
|
|
37103
|
+
connectedCallback() {
|
|
37104
|
+
this.tabindexController?.init();
|
|
37105
|
+
}
|
|
37106
|
+
disconnectedCallback() {
|
|
37107
|
+
this.tabindexController?.destroy();
|
|
37108
|
+
}
|
|
36846
37109
|
render() {
|
|
36847
37110
|
const mode = getIonMode$1(this);
|
|
37111
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
36848
37112
|
const attrs = {
|
|
36849
37113
|
href: this.href,
|
|
36850
37114
|
rel: this.rel,
|
|
36851
37115
|
target: this.target,
|
|
36852
37116
|
};
|
|
36853
|
-
return (hAsync(Host, { key: '
|
|
37117
|
+
return (hAsync(Host, { key: '51d8c563858a89c274f4b3778b937e545f4626df', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
36854
37118
|
[mode]: true,
|
|
36855
37119
|
'ion-activatable': true,
|
|
36856
|
-
}) }, hAsync("a", { key: '
|
|
37120
|
+
}) }, hAsync("a", { key: '2f806b3036d648cf01ff69739c7f422c9a554c7d', ...attrs, ...tabindexAttributes }, hAsync("slot", { key: '43a2ee8b80574b120d80a8d65e8615921eb36afb' }))));
|
|
36857
37121
|
}
|
|
37122
|
+
get el() { return getElement(this); }
|
|
36858
37123
|
static get style() { return routerLinkCss(); }
|
|
36859
37124
|
static get cmpMeta() { return {
|
|
36860
37125
|
"$flags$": 265,
|
|
@@ -36877,7 +37142,8 @@ const routerOutletCss = () => `:host{left:0;right:0;top:0;bottom:0;position:abso
|
|
|
36877
37142
|
|
|
36878
37143
|
class RouterOutlet {
|
|
36879
37144
|
constructor(hostRef) {
|
|
36880
|
-
|
|
37145
|
+
if (new.target === RouterOutlet)
|
|
37146
|
+
registerInstance(this, hostRef);
|
|
36881
37147
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
36882
37148
|
this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
|
|
36883
37149
|
this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
|
|
@@ -37131,7 +37397,8 @@ const rowCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;
|
|
|
37131
37397
|
|
|
37132
37398
|
class Row {
|
|
37133
37399
|
constructor(hostRef) {
|
|
37134
|
-
|
|
37400
|
+
if (new.target === Row)
|
|
37401
|
+
registerInstance(this, hostRef);
|
|
37135
37402
|
}
|
|
37136
37403
|
render() {
|
|
37137
37404
|
return (hAsync(Host, { key: '12b7419dd67ff18dd00e1bf5093299bd94c75503', class: getIonMode$1(this) }, hAsync("slot", { key: '43fc76a289ecaf398a77a90034ee576003a826fd' })));
|
|
@@ -37156,7 +37423,8 @@ const searchbarMdCss = () => `.sc-ion-searchbar-md-h{--placeholder-color:initial
|
|
|
37156
37423
|
*/
|
|
37157
37424
|
class Searchbar {
|
|
37158
37425
|
constructor(hostRef) {
|
|
37159
|
-
|
|
37426
|
+
if (new.target === Searchbar)
|
|
37427
|
+
registerInstance(this, hostRef);
|
|
37160
37428
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
37161
37429
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
37162
37430
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
@@ -37701,7 +37969,8 @@ const segmentMdCss = () => `:host{--ripple-color:currentColor;-moz-osx-font-smoo
|
|
|
37701
37969
|
*/
|
|
37702
37970
|
class Segment {
|
|
37703
37971
|
constructor(hostRef) {
|
|
37704
|
-
|
|
37972
|
+
if (new.target === Segment)
|
|
37973
|
+
registerInstance(this, hostRef);
|
|
37705
37974
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
37706
37975
|
this.ionSelect = createEvent(this, "ionSelect", 7);
|
|
37707
37976
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
@@ -38297,7 +38566,8 @@ let ids = 0;
|
|
|
38297
38566
|
*/
|
|
38298
38567
|
class SegmentButton {
|
|
38299
38568
|
constructor(hostRef) {
|
|
38300
|
-
|
|
38569
|
+
if (new.target === SegmentButton)
|
|
38570
|
+
registerInstance(this, hostRef);
|
|
38301
38571
|
this.segmentEl = null;
|
|
38302
38572
|
this.inheritedAttributes = {};
|
|
38303
38573
|
this.checked = false;
|
|
@@ -38333,6 +38603,7 @@ class SegmentButton {
|
|
|
38333
38603
|
this.updateState();
|
|
38334
38604
|
}
|
|
38335
38605
|
connectedCallback() {
|
|
38606
|
+
this.tabindexController?.init();
|
|
38336
38607
|
const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
|
|
38337
38608
|
if (segmentEl) {
|
|
38338
38609
|
this.updateState();
|
|
@@ -38341,6 +38612,7 @@ class SegmentButton {
|
|
|
38341
38612
|
}
|
|
38342
38613
|
}
|
|
38343
38614
|
disconnectedCallback() {
|
|
38615
|
+
this.tabindexController?.destroy();
|
|
38344
38616
|
const segmentEl = this.segmentEl;
|
|
38345
38617
|
if (segmentEl) {
|
|
38346
38618
|
removeEventListener(segmentEl, 'ionSelect', this.updateState);
|
|
@@ -38352,6 +38624,7 @@ class SegmentButton {
|
|
|
38352
38624
|
this.inheritedAttributes = {
|
|
38353
38625
|
...inheritAttributes$1(this.el, ['aria-label']),
|
|
38354
38626
|
};
|
|
38627
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
38355
38628
|
// Return if there is no contentId defined
|
|
38356
38629
|
if (!this.contentId)
|
|
38357
38630
|
return;
|
|
@@ -38397,8 +38670,9 @@ class SegmentButton {
|
|
|
38397
38670
|
render() {
|
|
38398
38671
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
38399
38672
|
const mode = getIonMode$1(this);
|
|
38673
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
38400
38674
|
const hasSegmentColor = () => segmentEl?.color !== undefined;
|
|
38401
|
-
return (hAsync(Host, { key: '
|
|
38675
|
+
return (hAsync(Host, { key: 'd0d37d00f921193edd3a3670363583d9ee1cfb39', class: {
|
|
38402
38676
|
[mode]: true,
|
|
38403
38677
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
38404
38678
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -38414,7 +38688,7 @@ class SegmentButton {
|
|
|
38414
38688
|
'ion-activatable': true,
|
|
38415
38689
|
'ion-activatable-instant': true,
|
|
38416
38690
|
'ion-focusable': true,
|
|
38417
|
-
} }, hAsync("button", { key: '
|
|
38691
|
+
} }, hAsync("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 }, hAsync("span", { key: '0fdf337f0ba7fa08143124091a580418f7b94a7c', class: "button-inner" }, hAsync("slot", { key: 'bce39283cdbe68cffbece870296fecff6f214345' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '2653c7c6d50bc00540d249ed98c6c6a5d93672d6' })), hAsync("div", { key: 'de0dbdd9f531158cc77ba04e78f4e96e32b6fb02', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: '2006cb914692ae1d5659828e36c502f9747adede', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
38418
38692
|
}
|
|
38419
38693
|
get el() { return getElement(this); }
|
|
38420
38694
|
static get watchers() { return {
|
|
@@ -38448,7 +38722,8 @@ const segmentContentCss = () => `:host{scroll-snap-align:center;scroll-snap-stop
|
|
|
38448
38722
|
|
|
38449
38723
|
class SegmentContent {
|
|
38450
38724
|
constructor(hostRef) {
|
|
38451
|
-
|
|
38725
|
+
if (new.target === SegmentContent)
|
|
38726
|
+
registerInstance(this, hostRef);
|
|
38452
38727
|
}
|
|
38453
38728
|
render() {
|
|
38454
38729
|
return (hAsync(Host, { key: 'b03079d7cfd78724828a4f42d7a7030457682b25' }, hAsync("slot", { key: 'c4c86280e5e577ee31a181758fea27a788fd87fa' })));
|
|
@@ -38470,7 +38745,8 @@ const segmentViewMdCss = () => `:host{display:-ms-flexbox;display:flex;height:10
|
|
|
38470
38745
|
|
|
38471
38746
|
class SegmentView {
|
|
38472
38747
|
constructor(hostRef) {
|
|
38473
|
-
|
|
38748
|
+
if (new.target === SegmentView)
|
|
38749
|
+
registerInstance(this, hostRef);
|
|
38474
38750
|
this.ionSegmentViewScroll = createEvent(this, "ionSegmentViewScroll", 7);
|
|
38475
38751
|
this.scrollEndTimeout = null;
|
|
38476
38752
|
this.isTouching = false;
|
|
@@ -38623,7 +38899,8 @@ const selectMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padding-b
|
|
|
38623
38899
|
*/
|
|
38624
38900
|
class Select {
|
|
38625
38901
|
constructor(hostRef) {
|
|
38626
|
-
|
|
38902
|
+
if (new.target === Select)
|
|
38903
|
+
registerInstance(this, hostRef);
|
|
38627
38904
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
38628
38905
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
38629
38906
|
this.ionDismiss = createEvent(this, "ionDismiss", 7);
|
|
@@ -38776,6 +39053,7 @@ class Select {
|
|
|
38776
39053
|
}
|
|
38777
39054
|
async connectedCallback() {
|
|
38778
39055
|
const { el } = this;
|
|
39056
|
+
this.tabindexController?.init();
|
|
38779
39057
|
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
|
|
38780
39058
|
this.startEndContainerController?.calculateContainerWidths();
|
|
38781
39059
|
});
|
|
@@ -38795,6 +39073,7 @@ class Select {
|
|
|
38795
39073
|
}
|
|
38796
39074
|
componentWillLoad() {
|
|
38797
39075
|
this.inheritedAttributes = inheritAttributes$1(this.el, ['aria-label']);
|
|
39076
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
38798
39077
|
this.hintTextId = this.getHintTextId();
|
|
38799
39078
|
}
|
|
38800
39079
|
componentDidLoad() {
|
|
@@ -38811,6 +39090,7 @@ class Select {
|
|
|
38811
39090
|
this.emitStyle();
|
|
38812
39091
|
}
|
|
38813
39092
|
disconnectedCallback() {
|
|
39093
|
+
this.tabindexController?.destroy();
|
|
38814
39094
|
if (this.mutationO) {
|
|
38815
39095
|
this.mutationO.disconnect();
|
|
38816
39096
|
this.mutationO = undefined;
|
|
@@ -39401,7 +39681,8 @@ class Select {
|
|
|
39401
39681
|
}
|
|
39402
39682
|
renderListbox() {
|
|
39403
39683
|
const { disabled, inputId, isExpanded, required } = this;
|
|
39404
|
-
|
|
39684
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
39685
|
+
return (hAsync("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 }));
|
|
39405
39686
|
}
|
|
39406
39687
|
getHintTextId() {
|
|
39407
39688
|
const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
|
|
@@ -39451,7 +39732,7 @@ class Select {
|
|
|
39451
39732
|
const hasOutlineFill = mode === 'md' && fill === 'outline';
|
|
39452
39733
|
renderHiddenInput(true, el, name, parseValue(value), disabled);
|
|
39453
39734
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
|
|
39454
|
-
return (hAsync(Host, { key: '
|
|
39735
|
+
return (hAsync(Host, { key: '33b9006ae4d0190621c3ec6241db4507ef08e891', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
39455
39736
|
[mode]: true,
|
|
39456
39737
|
'in-item': inItem,
|
|
39457
39738
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -39469,7 +39750,7 @@ class Select {
|
|
|
39469
39750
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
39470
39751
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
39471
39752
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
39472
|
-
}) }, hAsync("label", { key: '
|
|
39753
|
+
}) }, hAsync("label", { key: 'c123702d69e5a7dece801b9765ce52777d4a376c', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), hAsync("div", { key: '9cbac0085afa03e9b5d777b028d7a837ddfc8212', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, hAsync("slot", { key: '179f1454e56c7dc50637b6149c6916a28fc2cf4a', name: "start" })), hAsync("div", { key: 'bb492a41a762d8fc4199561967f688284e4b6e1f', class: "select-control", part: "control" }, this.renderLabel(), hAsync("div", { key: 'e0f889c0f02e16fe1a47c4ddfeba7a262341a72d', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), hAsync("div", { key: 'bb5e5e117d786e02d6ac9d0514c5f54c240388ab', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), hAsync("slot", { key: '07df73fde0d7413e7d28af0d0b25a04593ea77dc', name: "end" })), shouldRenderHighlight && hAsync("div", { key: '753762d7c94c48d89e3c727fefbb5c9fdd981ad2', class: "select-highlight" })), this.renderBottomContent()));
|
|
39473
39754
|
}
|
|
39474
39755
|
get el() { return getElement(this); }
|
|
39475
39756
|
static get watchers() { return {
|
|
@@ -39802,7 +40083,8 @@ const selectModalMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
|
|
|
39802
40083
|
|
|
39803
40084
|
class SelectModal {
|
|
39804
40085
|
constructor(hostRef) {
|
|
39805
|
-
|
|
40086
|
+
if (new.target === SelectModal)
|
|
40087
|
+
registerInstance(this, hostRef);
|
|
39806
40088
|
// Tracks the option that received Enter-keydown so keyup only
|
|
39807
40089
|
// dismisses when the press started on the same option. Prevents
|
|
39808
40090
|
// Enter on the triggering ion-select from auto-dismissing.
|
|
@@ -39969,7 +40251,8 @@ const selectOptionCss = () => `:host{display:none}`;
|
|
|
39969
40251
|
*/
|
|
39970
40252
|
class SelectOption {
|
|
39971
40253
|
constructor(hostRef) {
|
|
39972
|
-
|
|
40254
|
+
if (new.target === SelectOption)
|
|
40255
|
+
registerInstance(this, hostRef);
|
|
39973
40256
|
this.inputId = `ion-selopt-${selectOptionIds++}`;
|
|
39974
40257
|
/**
|
|
39975
40258
|
* If `true`, the user cannot interact with the select option.
|
|
@@ -40007,7 +40290,8 @@ const selectPopoverMdCss = () => `.action-sheet-button-label-has-rich-content.sc
|
|
|
40007
40290
|
*/
|
|
40008
40291
|
class SelectPopover {
|
|
40009
40292
|
constructor(hostRef) {
|
|
40010
|
-
|
|
40293
|
+
if (new.target === SelectPopover)
|
|
40294
|
+
registerInstance(this, hostRef);
|
|
40011
40295
|
// Tracks the option that received Enter-keydown so keyup only
|
|
40012
40296
|
// dismisses when the press started on the same option. Prevents
|
|
40013
40297
|
// Enter on the triggering ion-select from auto-dismissing.
|
|
@@ -40185,7 +40469,8 @@ const skeletonTextCss = () => `:host{--background:rgba(var(--background-rgb, var
|
|
|
40185
40469
|
|
|
40186
40470
|
class SkeletonText {
|
|
40187
40471
|
constructor(hostRef) {
|
|
40188
|
-
|
|
40472
|
+
if (new.target === SkeletonText)
|
|
40473
|
+
registerInstance(this, hostRef);
|
|
40189
40474
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
40190
40475
|
/**
|
|
40191
40476
|
* If `true`, the skeleton text will animate.
|
|
@@ -40232,7 +40517,8 @@ const spinnerCss = () => `:host{display:inline-block;position:relative;width:28p
|
|
|
40232
40517
|
|
|
40233
40518
|
class Spinner {
|
|
40234
40519
|
constructor(hostRef) {
|
|
40235
|
-
|
|
40520
|
+
if (new.target === Spinner)
|
|
40521
|
+
registerInstance(this, hostRef);
|
|
40236
40522
|
/**
|
|
40237
40523
|
* If `true`, the spinner's animation will be paused.
|
|
40238
40524
|
*/
|
|
@@ -40303,7 +40589,8 @@ const QUERY = {
|
|
|
40303
40589
|
lg: '(min-width: 992px)'};
|
|
40304
40590
|
class SplitPane {
|
|
40305
40591
|
constructor(hostRef) {
|
|
40306
|
-
|
|
40592
|
+
if (new.target === SplitPane)
|
|
40593
|
+
registerInstance(this, hostRef);
|
|
40307
40594
|
this.ionSplitPaneVisible = createEvent(this, "ionSplitPaneVisible", 7);
|
|
40308
40595
|
this.visible = false;
|
|
40309
40596
|
/**
|
|
@@ -40405,7 +40692,8 @@ const tabCss = () => `:host(.tab-hidden){display:none !important}`;
|
|
|
40405
40692
|
|
|
40406
40693
|
class Tab {
|
|
40407
40694
|
constructor(hostRef) {
|
|
40408
|
-
|
|
40695
|
+
if (new.target === Tab)
|
|
40696
|
+
registerInstance(this, hostRef);
|
|
40409
40697
|
/** @internal */
|
|
40410
40698
|
this.active = false;
|
|
40411
40699
|
}
|
|
@@ -40483,7 +40771,8 @@ const tabBarMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-align
|
|
|
40483
40771
|
*/
|
|
40484
40772
|
class TabBar {
|
|
40485
40773
|
constructor(hostRef) {
|
|
40486
|
-
|
|
40774
|
+
if (new.target === TabBar)
|
|
40775
|
+
registerInstance(this, hostRef);
|
|
40487
40776
|
this.ionTabBarChanged = createEvent(this, "ionTabBarChanged", 7);
|
|
40488
40777
|
this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
|
|
40489
40778
|
this.keyboardCtrl = null;
|
|
@@ -40605,7 +40894,8 @@ const tabButtonMdCss = () => `:host{--ripple-color:var(--color-selected);--backg
|
|
|
40605
40894
|
*/
|
|
40606
40895
|
class TabButton {
|
|
40607
40896
|
constructor(hostRef) {
|
|
40608
|
-
|
|
40897
|
+
if (new.target === TabButton)
|
|
40898
|
+
registerInstance(this, hostRef);
|
|
40609
40899
|
this.ionTabButtonClick = createEvent(this, "ionTabButtonClick", 7);
|
|
40610
40900
|
this.inheritedAttributes = {};
|
|
40611
40901
|
/**
|
|
@@ -40636,10 +40926,17 @@ class TabButton {
|
|
|
40636
40926
|
this.inheritedAttributes = {
|
|
40637
40927
|
...inheritAttributes$1(this.el, ['aria-label']),
|
|
40638
40928
|
};
|
|
40929
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
40639
40930
|
if (this.layout === undefined) {
|
|
40640
40931
|
this.layout = config.get('tabButtonLayout', 'icon-top');
|
|
40641
40932
|
}
|
|
40642
40933
|
}
|
|
40934
|
+
connectedCallback() {
|
|
40935
|
+
this.tabindexController?.init();
|
|
40936
|
+
}
|
|
40937
|
+
disconnectedCallback() {
|
|
40938
|
+
this.tabindexController?.destroy();
|
|
40939
|
+
}
|
|
40643
40940
|
selectTab(ev) {
|
|
40644
40941
|
if (this.tab !== undefined) {
|
|
40645
40942
|
if (!this.disabled) {
|
|
@@ -40661,13 +40958,14 @@ class TabButton {
|
|
|
40661
40958
|
render() {
|
|
40662
40959
|
const { disabled, hasIcon, hasLabel, href, rel, target, layout, selected, tab, inheritedAttributes } = this;
|
|
40663
40960
|
const mode = getIonMode$1(this);
|
|
40961
|
+
const tabindex = this.tabindexController?.attributes.tabindex;
|
|
40664
40962
|
const attrs = {
|
|
40665
40963
|
download: this.download,
|
|
40666
40964
|
href,
|
|
40667
40965
|
rel,
|
|
40668
40966
|
target,
|
|
40669
40967
|
};
|
|
40670
|
-
return (hAsync(Host, { key: '
|
|
40968
|
+
return (hAsync(Host, { key: '177c6c12cbee6e5e0b54375edb62d2a05b51b27b', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
40671
40969
|
[mode]: true,
|
|
40672
40970
|
'tab-selected': selected,
|
|
40673
40971
|
'tab-disabled': disabled,
|
|
@@ -40679,7 +40977,7 @@ class TabButton {
|
|
|
40679
40977
|
'ion-activatable': true,
|
|
40680
40978
|
'ion-selectable': true,
|
|
40681
40979
|
'ion-focusable': true,
|
|
40682
|
-
} }, hAsync("a", { key: '
|
|
40980
|
+
} }, hAsync("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 }, hAsync("span", { key: 'cef69478ddc3fc9144acab61cb8cc0df1d8ca711', class: "button-inner" }, hAsync("slot", { key: 'e276e619c8062c36f1de0d2a46abba750e8e58d7' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '6f747fd5723d00a1aa034f8d6a97e752f5f3c1c6', type: "unbounded" }))));
|
|
40683
40981
|
}
|
|
40684
40982
|
get el() { return getElement(this); }
|
|
40685
40983
|
static get style() { return {
|
|
@@ -40714,7 +41012,8 @@ const tabsCss = () => `:host{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;d
|
|
|
40714
41012
|
*/
|
|
40715
41013
|
class Tabs {
|
|
40716
41014
|
constructor(hostRef) {
|
|
40717
|
-
|
|
41015
|
+
if (new.target === Tabs)
|
|
41016
|
+
registerInstance(this, hostRef);
|
|
40718
41017
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
40719
41018
|
this.ionTabsWillChange = createEvent(this, "ionTabsWillChange", 3);
|
|
40720
41019
|
this.ionTabsDidChange = createEvent(this, "ionTabsDidChange", 3);
|
|
@@ -40905,7 +41204,8 @@ const textCss = () => `:host(.ion-color){color:var(--ion-color-base)}`;
|
|
|
40905
41204
|
*/
|
|
40906
41205
|
class Text {
|
|
40907
41206
|
constructor(hostRef) {
|
|
40908
|
-
|
|
41207
|
+
if (new.target === Text)
|
|
41208
|
+
registerInstance(this, hostRef);
|
|
40909
41209
|
}
|
|
40910
41210
|
render() {
|
|
40911
41211
|
const mode = getIonMode$1(this);
|
|
@@ -40939,7 +41239,8 @@ const textareaMdCss = () => `.sc-ion-textarea-md-h{--background:initial;--color:
|
|
|
40939
41239
|
*/
|
|
40940
41240
|
class Textarea {
|
|
40941
41241
|
constructor(hostRef) {
|
|
40942
|
-
|
|
41242
|
+
if (new.target === Textarea)
|
|
41243
|
+
registerInstance(this, hostRef);
|
|
40943
41244
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
40944
41245
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
40945
41246
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -41433,7 +41734,8 @@ const thumbnailCss = () => `:host{--size:48px;--border-radius:0;border-radius:va
|
|
|
41433
41734
|
|
|
41434
41735
|
class Thumbnail {
|
|
41435
41736
|
constructor(hostRef) {
|
|
41436
|
-
|
|
41737
|
+
if (new.target === Thumbnail)
|
|
41738
|
+
registerInstance(this, hostRef);
|
|
41437
41739
|
}
|
|
41438
41740
|
render() {
|
|
41439
41741
|
return (hAsync(Host, { key: 'ff9d2a4886b1c90a316c761f1160111f0e997f5d', class: getIonMode$1(this) }, hAsync("slot", { key: '9a0f0d69e3713831e88c8770a60b28ff1a03abb6' })));
|
|
@@ -41902,7 +42204,8 @@ const toastMdCss = () => `:host{--border-width:0;--border-style:none;--border-co
|
|
|
41902
42204
|
*/
|
|
41903
42205
|
class Toast {
|
|
41904
42206
|
constructor(hostRef) {
|
|
41905
|
-
|
|
42207
|
+
if (new.target === Toast)
|
|
42208
|
+
registerInstance(this, hostRef);
|
|
41906
42209
|
this.didPresent = createEvent(this, "ionToastDidPresent", 7);
|
|
41907
42210
|
this.willPresent = createEvent(this, "ionToastWillPresent", 7);
|
|
41908
42211
|
this.willDismiss = createEvent(this, "ionToastWillDismiss", 7);
|
|
@@ -42387,7 +42690,8 @@ const toggleMdCss = () => `:host{-webkit-box-sizing:content-box !important;box-s
|
|
|
42387
42690
|
*/
|
|
42388
42691
|
class Toggle {
|
|
42389
42692
|
constructor(hostRef) {
|
|
42390
|
-
|
|
42693
|
+
if (new.target === Toggle)
|
|
42694
|
+
registerInstance(this, hostRef);
|
|
42391
42695
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
42392
42696
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
42393
42697
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -42718,7 +43022,8 @@ const toolbarMdCss = () => `:host{--border-width:0;--border-style:solid;--opacit
|
|
|
42718
43022
|
*/
|
|
42719
43023
|
class Toolbar {
|
|
42720
43024
|
constructor(hostRef) {
|
|
42721
|
-
|
|
43025
|
+
if (new.target === Toolbar)
|
|
43026
|
+
registerInstance(this, hostRef);
|
|
42722
43027
|
this.childrenStyles = new Map();
|
|
42723
43028
|
}
|
|
42724
43029
|
componentWillLoad() {
|
|
@@ -42795,7 +43100,8 @@ const titleMdCss = () => `:host{--color:initial;display:-ms-flexbox;display:flex
|
|
|
42795
43100
|
|
|
42796
43101
|
class ToolbarTitle {
|
|
42797
43102
|
constructor(hostRef) {
|
|
42798
|
-
|
|
43103
|
+
if (new.target === ToolbarTitle)
|
|
43104
|
+
registerInstance(this, hostRef);
|
|
42799
43105
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
42800
43106
|
}
|
|
42801
43107
|
sizeChanged() {
|
|
@@ -43839,7 +44145,7 @@ var NAMESPACE = (
|
|
|
43839
44145
|
);
|
|
43840
44146
|
|
|
43841
44147
|
/*
|
|
43842
|
-
Stencil Hydrate Runner v4.45.
|
|
44148
|
+
Stencil Hydrate Runner v4.45.3 | MIT Licensed | https://stenciljs.com
|
|
43843
44149
|
*/
|
|
43844
44150
|
var __create = Object.create;
|
|
43845
44151
|
var __defProp = Object.defineProperty;
|
|
@@ -55128,22 +55434,26 @@ var MockNodeList = class {
|
|
|
55128
55434
|
this.length = length;
|
|
55129
55435
|
}
|
|
55130
55436
|
};
|
|
55437
|
+
var MockElementInternals = class {
|
|
55438
|
+
states = /* @__PURE__ */ new Set();
|
|
55439
|
+
setFormValue() {
|
|
55440
|
+
}
|
|
55441
|
+
setValidity() {
|
|
55442
|
+
}
|
|
55443
|
+
checkValidity() {
|
|
55444
|
+
return true;
|
|
55445
|
+
}
|
|
55446
|
+
reportValidity() {
|
|
55447
|
+
return true;
|
|
55448
|
+
}
|
|
55449
|
+
};
|
|
55131
55450
|
var MockElement = class extends MockNode2 {
|
|
55132
55451
|
__namespaceURI;
|
|
55133
55452
|
__attributeMap;
|
|
55134
55453
|
__shadowRoot;
|
|
55135
55454
|
__style;
|
|
55136
55455
|
attachInternals() {
|
|
55137
|
-
return new
|
|
55138
|
-
get: function(_target, prop, _receiver) {
|
|
55139
|
-
if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
|
|
55140
|
-
console.error(
|
|
55141
|
-
`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
55142
|
-
Testing components with ElementInternals is fully supported in e2e tests.`
|
|
55143
|
-
);
|
|
55144
|
-
}
|
|
55145
|
-
}
|
|
55146
|
-
});
|
|
55456
|
+
return new MockElementInternals();
|
|
55147
55457
|
}
|
|
55148
55458
|
constructor(ownerDocument, nodeName, namespaceURI = null) {
|
|
55149
55459
|
super(ownerDocument, 1 /* ELEMENT_NODE */, typeof nodeName === "string" ? nodeName : null, null);
|
|
@@ -55417,7 +55727,9 @@ var MockElement = class extends MockNode2 {
|
|
|
55417
55727
|
return this.hasAttributeNS(null, "hidden");
|
|
55418
55728
|
}
|
|
55419
55729
|
set hidden(isHidden) {
|
|
55420
|
-
if (isHidden ===
|
|
55730
|
+
if (isHidden === "until-found") {
|
|
55731
|
+
this.setAttributeNS(null, "hidden", "until-found");
|
|
55732
|
+
} else if (isHidden === true) {
|
|
55421
55733
|
this.setAttributeNS(null, "hidden", "");
|
|
55422
55734
|
} else {
|
|
55423
55735
|
this.removeAttributeNS(null, "hidden");
|