@ionic/core 9.0.12-dev.11794863026.1771891a → 9.0.12-dev.11794938426.180bdfeb
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-divider.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-gallery-item.js +1 -1
- package/components/ion-gallery.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-CE7N7-7s.js → p-2sLD_xu6.js} +1 -1
- package/components/{p-DFjX2uxL.js → p-8bQyQ-A-.js} +1 -1
- package/components/p-9SIQ7h0a.js +4 -0
- package/{dist/ionic/p-BPA4-c6T.js → components/p-B5xGjUrw.js} +1 -1
- package/components/{p-cm7z1a2E.js → p-BGbQbTAV.js} +1 -1
- package/components/p-BIe4HWHT.js +4 -0
- package/components/p-BPVr2bEi.js +4 -0
- package/components/{p-BYyhRtNC.js → p-BRLifC9t.js} +1 -1
- package/components/{p-CyvtM0H1.js → p-BTu2WI4z.js} +1 -1
- package/components/p-BX622giM.js +4 -0
- package/components/{p-CiEBXUnh.js → p-BXM-paQi.js} +1 -1
- package/components/p-Ba0pOoA8.js +4 -0
- package/components/p-BjjY6jOq.js +4 -0
- package/components/{p-B8TMb1l1.js → p-BpPHtMLg.js} +1 -1
- package/components/{p-LoXpKVmq.js → p-BrfOWAVf.js} +1 -1
- package/components/p-BsCaQNrX.js +4 -0
- package/components/p-BzAhIYXH.js +4 -0
- package/components/p-CDyvJnTO.js +4 -0
- package/components/p-CJawym4B.js +4 -0
- package/components/{p-DbKRl9BQ.js → p-CZtEtGGD.js} +1 -1
- package/components/{p-Dce65ayP.js → p-CajBjgLi.js} +1 -1
- package/components/{p-7-zF1amS.js → p-CdHuHArh.js} +1 -1
- package/components/{p-Ce7LvQXN.js → p-CgQ7_O5k.js} +1 -1
- package/components/{p-aC2BXYlR.js → p-Cq-9cyXX.js} +1 -1
- package/components/p-D1m8Yjhz.js +4 -0
- package/components/{p-CvxND1-3.js → p-D6f0xBGY.js} +1 -1
- package/components/{p-BHiggB_l.js → p-DAWK42bz.js} +1 -1
- package/{dist/ionic/p-DRbid4Vh.js → components/p-DCRjYLov.js} +1 -1
- package/components/{p-65JoU6_J.js → p-DDKsXI3n.js} +1 -1
- package/components/{p-Fvw018Ly.js → p-DFHZOMhQ.js} +1 -1
- package/components/{p-B7ExaLVL.js → p-DIyhmuo-.js} +1 -1
- package/components/{p-CehdCO1m.js → p-DL3uscQR.js} +1 -1
- package/components/{p-C2UFZTSU.js → p-DNAlvIsW.js} +1 -1
- package/components/{p-3Qs1sQxU.js → p-DO17TLK9.js} +1 -1
- package/components/{p-B_o50gvn.js → p-DSEHMF7Y.js} +1 -1
- package/components/{p-Bslbwrtt.js → p-DSxRYE_f.js} +1 -1
- package/{dist/ionic/p-B7XMQegr.js → components/p-DVDuYWYf.js} +1 -1
- package/components/{p-iNIvlAGo.js → p-DVoIsLVC.js} +1 -1
- package/components/{p-DggDKmuZ.js → p-DXn1957M.js} +1 -1
- package/components/p-DZaKOMM7.js +4 -0
- package/components/p-DgL3phdm.js +4 -0
- package/components/p-DmlpWO08.js +4 -0
- package/components/{p-DRIPgese.js → p-Dq9hq9j2.js} +1 -1
- package/{dist/ionic/p-2gcJ-f11.js → components/p-Dqy0AJBg.js} +1 -1
- package/components/{p-3SVb97od.js → p-EPCb6-n7.js} +1 -1
- package/components/{p-Da8LCPwo.js → p-H6H02QKs.js} +1 -1
- package/components/{p-CAekGbOf.js → p-JGQZIl_3.js} +1 -1
- package/components/{p-HbJahPGd.js → p-K0l20Iqs.js} +1 -1
- package/components/p-V4Qnwbju.js +4 -0
- package/components/p-YAbVl27R.js +4 -0
- package/components/{p-YAWKbhjV.js → p-f2BL1rLD.js} +1 -1
- package/components/{p-DmhWSY74.js → p-lm02RhiY.js} +1 -1
- package/components/p-mNz8l7Bc.js +4 -0
- package/components/{p-CzDkZh7h.js → p-vLIxxolw.js} +1 -1
- package/components/{p-CXzJ234J.js → p-zEYXdQGH.js} +1 -1
- package/dist/cjs/{animation-zKIdNEmG.js → animation-CeH2W-qd.js} +1 -1
- package/dist/cjs/{app-globals-BDrxn8eR.js → app-globals-f7eomsHa.js} +1 -1
- package/dist/cjs/{attribute-controller-23GLe3Vk.js → attribute-controller-mEO_Z0Wr.js} +102 -35
- package/dist/cjs/{button-active-CY7cZvH5.js → button-active-PwgL_R0V.js} +1 -1
- package/dist/cjs/{format-C6r4Asi4.js → format-PsbNYAbf.js} +1 -1
- package/dist/cjs/{framework-delegate-CAdDEnFS.js → framework-delegate-D-XPcdY0.js} +2 -2
- package/dist/cjs/{helpers-DHNLF4fD.js → helpers-jmlMCGoQ.js} +1 -1
- package/dist/cjs/{index-C6QFfpm5.js → index-B5yv8_lH.js} +2 -2
- package/dist/cjs/{index-DhGCo_n8.js → index-CHRTOQP9.js} +2 -2
- package/dist/cjs/{index-lD5wTj_b.js → index-Cco7L1eB.js} +4 -4
- package/dist/cjs/{index-CB1PuDlX.js → index-Cn0FjjMN.js} +86 -40
- package/dist/cjs/{index-B3s1jjBU.js → index-DRLvcDji.js} +1 -1
- package/dist/cjs/{index-C3pmpKlo.js → index-R2zOwQVz.js} +4 -4
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{input-shims-CjkWx7ae.js → input-shims-obkB-KvI.js} +3 -3
- package/dist/cjs/{input.utils-CD4DNiim.js → input.utils-B_HfgEQx.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +7 -5
- package/dist/cjs/ion-action-sheet.cjs.entry.js +15 -13
- package/dist/cjs/ion-alert.cjs.entry.js +14 -12
- package/dist/cjs/ion-app_8.cjs.entry.js +30 -22
- package/dist/cjs/ion-avatar_3.cjs.entry.js +10 -7
- package/dist/cjs/ion-back-button.cjs.entry.js +6 -5
- package/dist/cjs/ion-backdrop.cjs.entry.js +4 -3
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +8 -6
- package/dist/cjs/ion-button_2.cjs.entry.js +12 -12
- package/dist/cjs/ion-card_5.cjs.entry.js +21 -16
- 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 +10 -7
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -5
- package/dist/cjs/ion-datetime.cjs.entry.js +19 -28
- package/dist/cjs/ion-divider.cjs.entry.js +4 -3
- package/dist/cjs/ion-fab_3.cjs.entry.js +10 -7
- package/dist/cjs/ion-gallery-item.cjs.entry.js +4 -3
- package/dist/cjs/ion-gallery.cjs.entry.js +5 -4
- 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 +20 -10
- package/dist/cjs/ion-item-option_3.cjs.entry.js +11 -8
- package/dist/cjs/ion-item_8.cjs.entry.js +34 -25
- package/dist/cjs/ion-loading.cjs.entry.js +12 -10
- package/dist/cjs/ion-menu_3.cjs.entry.js +14 -11
- package/dist/cjs/ion-modal.cjs.entry.js +27 -18
- package/dist/cjs/ion-nav_2.cjs.entry.js +12 -10
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +7 -6
- package/dist/cjs/ion-picker-column.cjs.entry.js +5 -4
- package/dist/cjs/ion-picker.cjs.entry.js +4 -3
- package/dist/cjs/ion-popover.cjs.entry.js +15 -13
- package/dist/cjs/ion-progress-bar.cjs.entry.js +6 -5
- package/dist/cjs/ion-radio_2.cjs.entry.js +8 -6
- package/dist/cjs/ion-range.cjs.entry.js +9 -8
- package/dist/cjs/ion-refresher_2.cjs.entry.js +13 -11
- package/dist/cjs/ion-reorder_2.cjs.entry.js +11 -9
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +5 -4
- package/dist/cjs/ion-route_4.cjs.entry.js +15 -11
- package/dist/cjs/ion-searchbar.cjs.entry.js +19 -9
- package/dist/cjs/ion-segment-content.cjs.entry.js +4 -3
- package/dist/cjs/ion-segment-view.cjs.entry.js +5 -4
- package/dist/cjs/ion-segment_2.cjs.entry.js +12 -10
- package/dist/cjs/ion-select-modal.cjs.entry.js +11 -10
- package/dist/cjs/ion-select_3.cjs.entry.js +20 -17
- package/dist/cjs/ion-spinner.cjs.entry.js +5 -4
- package/dist/cjs/ion-split-pane.cjs.entry.js +6 -5
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +14 -12
- package/dist/cjs/ion-tab_2.cjs.entry.js +10 -8
- package/dist/cjs/ion-text.cjs.entry.js +6 -5
- package/dist/cjs/ion-textarea.cjs.entry.js +9 -8
- package/dist/cjs/ion-toast.cjs.entry.js +11 -10
- package/dist/cjs/ion-toggle.cjs.entry.js +9 -8
- package/dist/cjs/{ionic-global-CZX42KL4.js → ionic-global-BsjzbnZk.js} +4 -4
- package/dist/cjs/ionic.cjs.js +5 -5
- package/dist/cjs/{ios.transition-BjOYqzH0.js → ios.transition-Chk7LwO2.js} +4 -4
- package/dist/cjs/{item-multiple-inputs-D0lzjl68.js → item-multiple-inputs-DRBi1Q76.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{md.transition-C4i7l6ui.js → md.transition-D-k4hn-o.js} +4 -4
- package/dist/cjs/overlay-focus-boundary-DCv6Y3fL.js +42 -0
- package/dist/cjs/{overlays-DziOxcCT.js → overlays-DMW90-Kg.js} +16 -45
- package/dist/cjs/page-restore-Dq2Pkln0.js +90 -0
- package/dist/cjs/{scroll-hide-controller-BSVBCkbw.js → scroll-hide-controller-GvReYiKK.js} +2 -2
- package/dist/cjs/{select-option-render-X_iZ-xeh.js → select-option-render-nr0lBnYb.js} +2 -2
- package/dist/cjs/{slot-mutation-controller-BS-L1szN.js → slot-mutation-controller-DKkmhOKO.js} +1 -1
- package/dist/cjs/{status-tap-D5yiKwdj.js → status-tap-oCDuuJng.js} +3 -3
- package/dist/cjs/{swipe-back-xM_5R5s-.js → swipe-back-DZZ4EcCX.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/action-sheet/action-sheet.js +4 -3
- package/dist/collection/components/alert/alert.js +3 -2
- package/dist/collection/components/button/button.js +4 -6
- package/dist/collection/components/card/card.js +7 -7
- package/dist/collection/components/datetime/datetime.ionic.css +0 -20
- package/dist/collection/components/datetime/datetime.ios.css +0 -10
- package/dist/collection/components/datetime/datetime.js +8 -18
- package/dist/collection/components/datetime/datetime.md.css +0 -10
- package/dist/collection/components/input/input.js +18 -3
- package/dist/collection/components/item/item.js +10 -9
- package/dist/collection/components/loading/loading.js +3 -2
- package/dist/collection/components/modal/modal.ionic.css +8 -0
- package/dist/collection/components/modal/modal.ios.css +8 -0
- package/dist/collection/components/modal/modal.js +5 -4
- package/dist/collection/components/modal/modal.md.css +8 -0
- package/dist/collection/components/modal/safe-area-utils.js +9 -2
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/popover/popover.ionic.css +8 -0
- package/dist/collection/components/popover/popover.ios.css +8 -0
- package/dist/collection/components/popover/popover.js +3 -2
- package/dist/collection/components/popover/popover.md.css +8 -0
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +2 -2
- package/dist/collection/components/reorder/reorder.js +2 -2
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +2 -2
- package/dist/collection/components/searchbar/searchbar.js +22 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-modal/select-modal.js +2 -2
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +2 -2
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/utils/attribute-controller.js +101 -34
- package/dist/collection/utils/forms/index.js +1 -0
- package/dist/collection/utils/forms/page-restore.js +46 -0
- package/dist/collection/utils/overlay-focus-boundary.js +37 -0
- package/dist/collection/utils/overlays.js +12 -41
- package/dist/docs.json +16 -3
- package/dist/esm/{animation-GasMiLY0.js → animation-Cev2GhGs.js} +1 -1
- package/dist/esm/{app-globals-DbCTe1Vv.js → app-globals-BocmgK6F.js} +1 -1
- package/dist/esm/{attribute-controller-CB-n8m6j.js → attribute-controller-418FdXxR.js} +102 -35
- package/dist/esm/{button-active-DLOYzeXl.js → button-active-BhjMt-gU.js} +1 -1
- package/dist/esm/{format-DUHrIiJq.js → format-t9SOC1s5.js} +1 -1
- package/dist/esm/{framework-delegate-99Ms_INy.js → framework-delegate-DOV97IRE.js} +2 -2
- package/dist/esm/{helpers-B_F2b1gy.js → helpers-Bhcp6jft.js} +1 -1
- package/dist/esm/{index-hR6kxzTq.js → index-Bas44FS4.js} +86 -40
- package/dist/esm/{index-D86Q8ZLS.js → index-BxqNQDQb.js} +4 -4
- package/dist/esm/{index-D5lNz-tr.js → index-CSvgU7bD.js} +4 -4
- package/dist/esm/{index-BRYliuA-.js → index-DU_8Y0hH.js} +1 -1
- package/dist/esm/{index-BeR_5uou.js → index-Dr_h9K1q.js} +2 -2
- package/dist/esm/{index-BoEdvSPU.js → index-M3ncuMMO.js} +2 -2
- package/dist/esm/index.js +11 -11
- package/dist/esm/{input-shims-CJVi9djP.js → input-shims-Q8eQDhGy.js} +3 -3
- package/dist/esm/{input.utils-gPgFKve4.js → input.utils-Ca-6biEE.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +7 -5
- package/dist/esm/ion-action-sheet.entry.js +15 -13
- package/dist/esm/ion-alert.entry.js +14 -12
- package/dist/esm/ion-app_8.entry.js +30 -22
- package/dist/esm/ion-avatar_3.entry.js +10 -7
- package/dist/esm/ion-back-button.entry.js +6 -5
- package/dist/esm/ion-backdrop.entry.js +4 -3
- package/dist/esm/ion-breadcrumb_2.entry.js +8 -6
- package/dist/esm/ion-button_2.entry.js +12 -12
- package/dist/esm/ion-card_5.entry.js +21 -16
- 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 +10 -7
- package/dist/esm/ion-datetime-button.entry.js +6 -5
- package/dist/esm/ion-datetime.entry.js +19 -28
- package/dist/esm/ion-divider.entry.js +4 -3
- package/dist/esm/ion-fab_3.entry.js +10 -7
- package/dist/esm/ion-gallery-item.entry.js +4 -3
- package/dist/esm/ion-gallery.entry.js +5 -4
- 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 +19 -9
- package/dist/esm/ion-item-option_3.entry.js +11 -8
- package/dist/esm/ion-item_8.entry.js +34 -25
- package/dist/esm/ion-loading.entry.js +12 -10
- package/dist/esm/ion-menu_3.entry.js +14 -11
- package/dist/esm/ion-modal.entry.js +27 -18
- package/dist/esm/ion-nav_2.entry.js +12 -10
- package/dist/esm/ion-picker-column-option.entry.js +7 -6
- package/dist/esm/ion-picker-column.entry.js +5 -4
- package/dist/esm/ion-picker.entry.js +4 -3
- package/dist/esm/ion-popover.entry.js +15 -13
- package/dist/esm/ion-progress-bar.entry.js +6 -5
- package/dist/esm/ion-radio_2.entry.js +8 -6
- package/dist/esm/ion-range.entry.js +9 -8
- package/dist/esm/ion-refresher_2.entry.js +13 -11
- package/dist/esm/ion-reorder_2.entry.js +11 -9
- package/dist/esm/ion-ripple-effect.entry.js +5 -4
- package/dist/esm/ion-route_4.entry.js +15 -11
- package/dist/esm/ion-searchbar.entry.js +18 -8
- package/dist/esm/ion-segment-content.entry.js +4 -3
- package/dist/esm/ion-segment-view.entry.js +5 -4
- package/dist/esm/ion-segment_2.entry.js +12 -10
- package/dist/esm/ion-select-modal.entry.js +11 -10
- package/dist/esm/ion-select_3.entry.js +20 -17
- package/dist/esm/ion-spinner.entry.js +5 -4
- package/dist/esm/ion-split-pane.entry.js +6 -5
- package/dist/esm/ion-tab-bar_2.entry.js +14 -12
- package/dist/esm/ion-tab_2.entry.js +10 -8
- package/dist/esm/ion-text.entry.js +6 -5
- package/dist/esm/ion-textarea.entry.js +9 -8
- package/dist/esm/ion-toast.entry.js +11 -10
- package/dist/esm/ion-toggle.entry.js +9 -8
- package/dist/esm/{ionic-global-DSbFWXp3.js → ionic-global-BYy_ionO.js} +4 -4
- package/dist/esm/ionic.js +6 -6
- package/dist/esm/{ios.transition-C9thfQYf.js → ios.transition-MTIekCSs.js} +4 -4
- package/dist/esm/{item-multiple-inputs-CSJsB7-I.js → item-multiple-inputs-BrSomT3h.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{md.transition-BEhPsy_z.js → md.transition-CYPyM3Wr.js} +4 -4
- package/dist/esm/overlay-focus-boundary-DrYovbKL.js +40 -0
- package/dist/esm/{overlays-C8sf7PId.js → overlays-D4jQ_MJ6.js} +17 -46
- package/dist/esm/page-restore-9RlWwejf.js +87 -0
- package/dist/esm/{scroll-hide-controller-Chts2wJU.js → scroll-hide-controller-Db79zIPS.js} +2 -2
- package/dist/esm/{select-option-render-D5kt0cO9.js → select-option-render-szX_tjoT.js} +2 -2
- package/dist/esm/{slot-mutation-controller-DanfZTCH.js → slot-mutation-controller-Du2BZesv.js} +1 -1
- package/dist/esm/{status-tap-B8UQS38n.js → status-tap-CxG8iM45.js} +3 -3
- package/dist/esm/{swipe-back-Bgftkxen.js → swipe-back-CyMa6zSX.js} +2 -2
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0a3b23f0.entry.js +4 -0
- package/dist/ionic/p-0c87430e.entry.js +4 -0
- package/dist/ionic/p-0eadd747.entry.js +4 -0
- package/dist/ionic/p-108c617e.entry.js +4 -0
- package/dist/ionic/p-1336380f.entry.js +4 -0
- package/dist/ionic/p-16d7a09e.entry.js +4 -0
- package/dist/ionic/p-1847d994.entry.js +4 -0
- package/dist/ionic/p-1b542120.entry.js +4 -0
- package/dist/ionic/p-1d8fc165.entry.js +4 -0
- package/dist/ionic/p-20e49521.entry.js +4 -0
- package/dist/ionic/p-2c232526.entry.js +4 -0
- package/dist/ionic/p-38580367.entry.js +4 -0
- package/dist/ionic/p-3b6a9e1f.entry.js +4 -0
- package/dist/ionic/p-3fbcf247.entry.js +4 -0
- package/dist/ionic/p-404f56fb.entry.js +4 -0
- package/dist/ionic/p-4c0d2ea4.entry.js +4 -0
- package/dist/ionic/p-4f1773eb.entry.js +4 -0
- package/dist/ionic/p-527fa477.entry.js +4 -0
- package/dist/ionic/p-544ba9be.entry.js +4 -0
- package/dist/ionic/p-5a5408f6.entry.js +4 -0
- package/dist/ionic/{p-DOdxt_P_.js → p-5pKYh0QR.js} +1 -1
- package/dist/ionic/p-61d17ff8.entry.js +4 -0
- package/dist/ionic/p-636b14fb.entry.js +4 -0
- package/dist/ionic/p-6806aefe.entry.js +4 -0
- package/dist/ionic/p-68650478.entry.js +4 -0
- package/dist/ionic/p-6874fc1e.entry.js +4 -0
- package/dist/ionic/p-70f777b3.entry.js +4 -0
- package/dist/ionic/p-71a9c711.entry.js +4 -0
- package/dist/ionic/p-747d4da3.entry.js +4 -0
- package/dist/ionic/p-78ee18fb.entry.js +4 -0
- package/dist/ionic/p-86103379.entry.js +4 -0
- package/dist/ionic/p-9984d163.entry.js +4 -0
- package/dist/ionic/p-9b71b044.entry.js +4 -0
- package/dist/ionic/p-9d765c69.entry.js +4 -0
- package/dist/ionic/p-9e3d4614.entry.js +4 -0
- package/dist/ionic/p-9ohDxdgz.js +4 -0
- package/{components/p-o89R3aqe.js → dist/ionic/p-BQhyhNHy.js} +1 -1
- package/dist/ionic/{p-Bjt84heL.js → p-BSenjX6U.js} +1 -1
- package/dist/ionic/p-BSkpb2fc.js +4 -0
- package/dist/ionic/{p-CeHcVwSj.js → p-BYTjG6HG.js} +1 -1
- package/dist/ionic/p-Bas44FS4.js +6 -0
- package/{components/p-DLXAGW46.js → dist/ionic/p-BawJ4_R2.js} +1 -1
- package/{components/p-BmfO2-NE.js → dist/ionic/p-BiYkrpCo.js} +1 -1
- package/dist/ionic/p-BjBJlURk.js +4 -0
- package/dist/ionic/{p-DsBidY1y.js → p-CAdpShMB.js} +1 -1
- package/dist/ionic/{p-B36ii-hs.js → p-CFV2lqKP.js} +1 -1
- package/dist/ionic/p-CWRBQbEt.js +4 -0
- package/dist/ionic/p-C_Z39n1a.js +4 -0
- package/dist/ionic/p-D4o1HBsS.js +4 -0
- package/dist/ionic/p-D7kZMPgY.js +4 -0
- package/dist/ionic/{p-DuxayXEj.js → p-DLK90YxR.js} +1 -1
- package/dist/ionic/p-DOFFsd_b.js +4 -0
- package/dist/ionic/p-Dbpdrswb.js +4 -0
- package/dist/ionic/p-DrOc_uDR.js +4 -0
- package/dist/ionic/{p-rwBGNQHN.js → p-FygeMLmO.js} +1 -1
- package/dist/ionic/{p-CaOPF8Xt.js → p-XZiK70aS.js} +1 -1
- package/dist/ionic/p-a21edb48.entry.js +4 -0
- package/dist/ionic/p-a8aaf7e8.entry.js +4 -0
- package/dist/ionic/p-ac4b2212.entry.js +4 -0
- package/dist/ionic/p-afa43e97.entry.js +4 -0
- package/dist/ionic/p-b2e17a18.entry.js +4 -0
- package/dist/ionic/p-b7d0d844.entry.js +4 -0
- package/dist/ionic/p-b98e482e.entry.js +4 -0
- package/dist/ionic/p-bD2UA_Oq.js +4 -0
- package/dist/ionic/{p-Co3ilg7B.js → p-bfE6ImVy.js} +1 -1
- package/dist/ionic/p-cc724d97.entry.js +4 -0
- package/dist/ionic/p-d61c5038.entry.js +4 -0
- package/dist/ionic/p-d7d87adb.entry.js +4 -0
- package/dist/ionic/p-dd40211d.entry.js +4 -0
- package/dist/ionic/p-dde3fe0f.entry.js +4 -0
- package/dist/ionic/p-de6ccf04.entry.js +4 -0
- package/dist/ionic/p-df337118.entry.js +4 -0
- package/dist/ionic/p-e3d754ae.entry.js +4 -0
- package/dist/ionic/p-e6a6a075.entry.js +4 -0
- package/dist/ionic/p-e7f841d7.entry.js +4 -0
- package/dist/ionic/p-eSGmNpTU.js +4 -0
- package/dist/ionic/p-ee15d08d.entry.js +4 -0
- package/dist/ionic/p-f41ef4cc.entry.js +4 -0
- package/dist/ionic/p-f6bd7ca3.entry.js +4 -0
- package/dist/ionic/p-fd3ccd0d.entry.js +4 -0
- package/dist/ionic/p-rmK71y9P.js +4 -0
- package/dist/ionic/p-sQjitIqc.js +4 -0
- package/dist/types/components/card/card.d.ts +2 -2
- package/dist/types/components/datetime/datetime.d.ts +4 -2
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components/item/item.d.ts +2 -2
- package/dist/types/components/modal/safe-area-utils.d.ts +2 -1
- package/dist/types/components/searchbar/searchbar.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/utils/attribute-controller.d.ts +18 -13
- package/dist/types/utils/forms/index.d.ts +1 -0
- package/dist/types/utils/forms/page-restore.d.ts +21 -0
- package/dist/types/utils/overlay-focus-boundary.d.ts +15 -0
- package/hydrate/index.js +558 -324
- package/hydrate/index.mjs +558 -324
- package/package.json +2 -2
- package/components/p-2KnciUsT.js +0 -4
- package/components/p-BNBa8_Ls.js +0 -4
- package/components/p-BfDzKnZ-.js +0 -4
- package/components/p-BmnPbSf3.js +0 -4
- package/components/p-C0H1LYQ5.js +0 -4
- package/components/p-C93i7QCU.js +0 -4
- package/components/p-C9qQ2zBV.js +0 -4
- package/components/p-CSSj6cqb.js +0 -4
- package/components/p-DDloHP2b.js +0 -4
- package/components/p-DFBWAYvo.js +0 -4
- package/components/p-DTIqfsbw.js +0 -4
- package/components/p-DibGn4gb.js +0 -4
- package/components/p-DmdTkb5k.js +0 -4
- package/components/p-DtZimz8H.js +0 -4
- package/components/p-ET0FZop5.js +0 -4
- package/components/p-lhYnLiXU.js +0 -4
- package/components/p-pSZXoJUW.js +0 -4
- package/dist/cjs/clear-button-press-controller-C6PTS3jC.js +0 -45
- package/dist/esm/clear-button-press-controller-6ph4kKYn.js +0 -43
- package/dist/ionic/p-038465e3.entry.js +0 -4
- package/dist/ionic/p-136cdbde.entry.js +0 -4
- package/dist/ionic/p-188a2e35.entry.js +0 -4
- package/dist/ionic/p-1b045882.entry.js +0 -4
- package/dist/ionic/p-2717e0fc.entry.js +0 -4
- package/dist/ionic/p-29c1176f.entry.js +0 -4
- package/dist/ionic/p-2b1e9500.entry.js +0 -4
- package/dist/ionic/p-308f9b89.entry.js +0 -4
- package/dist/ionic/p-338cb1e7.entry.js +0 -4
- package/dist/ionic/p-344072c8.entry.js +0 -4
- package/dist/ionic/p-39303a6a.entry.js +0 -4
- package/dist/ionic/p-39bf5990.entry.js +0 -4
- package/dist/ionic/p-3b47fdc7.entry.js +0 -4
- package/dist/ionic/p-3be131ed.entry.js +0 -4
- package/dist/ionic/p-3f15086f.entry.js +0 -4
- package/dist/ionic/p-49edfb46.entry.js +0 -4
- package/dist/ionic/p-522663a4.entry.js +0 -4
- package/dist/ionic/p-561cfcc1.entry.js +0 -4
- package/dist/ionic/p-65ad8502.entry.js +0 -4
- package/dist/ionic/p-6a3ff87c.entry.js +0 -4
- package/dist/ionic/p-6fb60223.entry.js +0 -4
- package/dist/ionic/p-764f4282.entry.js +0 -4
- package/dist/ionic/p-7de26931.entry.js +0 -4
- package/dist/ionic/p-8183df6b.entry.js +0 -4
- package/dist/ionic/p-81b5d87c.entry.js +0 -4
- package/dist/ionic/p-85cbc8c5.entry.js +0 -4
- package/dist/ionic/p-86bf24f4.entry.js +0 -4
- package/dist/ionic/p-8ecb459a.entry.js +0 -4
- package/dist/ionic/p-8ff4bf6c.entry.js +0 -4
- package/dist/ionic/p-905c8b38.entry.js +0 -4
- package/dist/ionic/p-9613f2c3.entry.js +0 -4
- package/dist/ionic/p-9c9a8e34.entry.js +0 -4
- package/dist/ionic/p-9d6e569d.entry.js +0 -4
- package/dist/ionic/p-BXRdzJMJ.js +0 -4
- package/dist/ionic/p-BfDzKnZ-.js +0 -4
- package/dist/ionic/p-BfUzA1cP.js +0 -4
- package/dist/ionic/p-C3TLUO-J.js +0 -4
- package/dist/ionic/p-C4WiowQL.js +0 -4
- package/dist/ionic/p-CXkgZKSx.js +0 -4
- package/dist/ionic/p-D7LiFzrm.js +0 -4
- package/dist/ionic/p-D_vm5I9h.js +0 -4
- package/dist/ionic/p-DxPRC9Jk.js +0 -4
- package/dist/ionic/p-Hb0L-KUN.js +0 -4
- package/dist/ionic/p-WdouEyt8.js +0 -4
- package/dist/ionic/p-a1555032.entry.js +0 -4
- package/dist/ionic/p-a6315f72.entry.js +0 -4
- package/dist/ionic/p-a8e51e17.entry.js +0 -4
- package/dist/ionic/p-a932c26f.entry.js +0 -4
- package/dist/ionic/p-aab54de4.entry.js +0 -4
- package/dist/ionic/p-aaf3f84e.entry.js +0 -4
- package/dist/ionic/p-b076511a.entry.js +0 -4
- package/dist/ionic/p-b1b397cf.entry.js +0 -4
- package/dist/ionic/p-b3e2281c.entry.js +0 -4
- package/dist/ionic/p-b4de840a.entry.js +0 -4
- package/dist/ionic/p-c1fc48c7.entry.js +0 -4
- package/dist/ionic/p-c3dc0187.entry.js +0 -4
- package/dist/ionic/p-ca2c0598.entry.js +0 -4
- package/dist/ionic/p-ce443df7.entry.js +0 -4
- package/dist/ionic/p-ce8bea16.entry.js +0 -4
- package/dist/ionic/p-ceca04fb.entry.js +0 -4
- package/dist/ionic/p-d6cd46ab.entry.js +0 -4
- package/dist/ionic/p-db20f98a.entry.js +0 -4
- package/dist/ionic/p-dbf53341.entry.js +0 -4
- package/dist/ionic/p-de0de6a6.entry.js +0 -4
- package/dist/ionic/p-f3057b31.entry.js +0 -4
- package/dist/ionic/p-fa74dd94.entry.js +0 -4
- package/dist/ionic/p-hR6kxzTq.js +0 -6
- package/dist/ionic/p-pVSZ4TVa.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -632,7 +632,7 @@ const appGlobalScript = initialize || (() => {});
|
|
|
632
632
|
const globalScripts = appGlobalScript;
|
|
633
633
|
|
|
634
634
|
/*
|
|
635
|
-
Stencil Hydrate Platform v4.45.
|
|
635
|
+
Stencil Hydrate Platform v4.45.4 | MIT Licensed | https://stenciljs.com
|
|
636
636
|
*/
|
|
637
637
|
var __create = Object.create;
|
|
638
638
|
var __defProp = Object.defineProperty;
|
|
@@ -1125,6 +1125,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
1125
1125
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
1126
1126
|
}
|
|
1127
1127
|
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
1128
|
+
if (typeof slotName !== "undefined" && slottedNodes.length) return slottedNodes;
|
|
1128
1129
|
}
|
|
1129
1130
|
return slottedNodes;
|
|
1130
1131
|
}
|
|
@@ -1278,7 +1279,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1278
1279
|
}
|
|
1279
1280
|
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1280
1281
|
if (existingStyleElm) {
|
|
1281
|
-
|
|
1282
|
+
appliedStyles.add(scopeId2);
|
|
1282
1283
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
1283
1284
|
styleElm = win.document.createElement("style");
|
|
1284
1285
|
styleElm.textContent = style;
|
|
@@ -1286,7 +1287,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1286
1287
|
if (nonce != null) {
|
|
1287
1288
|
styleElm.setAttribute("nonce", nonce);
|
|
1288
1289
|
}
|
|
1289
|
-
|
|
1290
|
+
{
|
|
1290
1291
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1291
1292
|
}
|
|
1292
1293
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
@@ -1636,7 +1637,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1636
1637
|
const scopeId2 = hostElm["s-sc"];
|
|
1637
1638
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1638
1639
|
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1639
|
-
if (childNodeType) {
|
|
1640
|
+
if (childNodeType && node !== hostElm) {
|
|
1640
1641
|
childIdSplt = childNodeType.split(".");
|
|
1641
1642
|
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1642
1643
|
childVNode = createSimpleVNode({
|
|
@@ -6872,7 +6873,8 @@ const accordionMdCss = () => `:host{display:block;position:relative;width:100%;o
|
|
|
6872
6873
|
*/
|
|
6873
6874
|
class Accordion {
|
|
6874
6875
|
constructor(hostRef) {
|
|
6875
|
-
|
|
6876
|
+
if (new.target === Accordion)
|
|
6877
|
+
registerInstance(this, hostRef);
|
|
6876
6878
|
this.accordionGroupUpdateHandler = () => {
|
|
6877
6879
|
/**
|
|
6878
6880
|
* Determine if this update will cause an actual state change.
|
|
@@ -7316,7 +7318,8 @@ const accordionGroupMdCss = () => `:host{display:block}:host(.accordion-group-ex
|
|
|
7316
7318
|
*/
|
|
7317
7319
|
class AccordionGroup {
|
|
7318
7320
|
constructor(hostRef) {
|
|
7319
|
-
|
|
7321
|
+
if (new.target === AccordionGroup)
|
|
7322
|
+
registerInstance(this, hostRef);
|
|
7320
7323
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
7321
7324
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
7322
7325
|
/**
|
|
@@ -8551,6 +8554,39 @@ const focusElementInContext = (hostToFocus, fallbackElement) => {
|
|
|
8551
8554
|
}
|
|
8552
8555
|
};
|
|
8553
8556
|
|
|
8557
|
+
/**
|
|
8558
|
+
* Moves focus off a boundary. Focus arriving from inside the overlay
|
|
8559
|
+
* wraps to the opposite end. Focus arriving from outside enters at the
|
|
8560
|
+
* nearest end.
|
|
8561
|
+
*/
|
|
8562
|
+
const onBoundaryFocus = (overlay, ev, edge) => {
|
|
8563
|
+
/**
|
|
8564
|
+
* Shadow overlays search their slotted content. Scoped overlays search
|
|
8565
|
+
* their wrapper, since the boundaries are siblings of it in the same
|
|
8566
|
+
* tree and would otherwise be found first.
|
|
8567
|
+
*/
|
|
8568
|
+
const container = overlay.shadowRoot ? overlay : overlay.querySelector('.ion-overlay-wrapper');
|
|
8569
|
+
if (!container) {
|
|
8570
|
+
return;
|
|
8571
|
+
}
|
|
8572
|
+
const from = ev.relatedTarget;
|
|
8573
|
+
const fromInside = from !== null && from !== overlay && (overlay.contains(from) || overlay.shadowRoot?.contains(from) === true);
|
|
8574
|
+
const focusFirst = edge === 'start' ? !fromInside : fromInside;
|
|
8575
|
+
if (focusFirst) {
|
|
8576
|
+
focusFirstDescendant(container, overlay);
|
|
8577
|
+
}
|
|
8578
|
+
else {
|
|
8579
|
+
focusLastDescendant(container, overlay);
|
|
8580
|
+
}
|
|
8581
|
+
};
|
|
8582
|
+
/**
|
|
8583
|
+
* Renders a focusable element before or after an overlay's content that
|
|
8584
|
+
* keeps Tab inside the overlay. The document focus listener in overlays.ts
|
|
8585
|
+
* cannot do this alone, since browsers can move focus past the end of the
|
|
8586
|
+
* page without firing a focus event.
|
|
8587
|
+
*/
|
|
8588
|
+
const OverlayFocusBoundary = ({ overlay, edge }) => (hAsync("div", { class: "ion-overlay-focus-boundary", tabIndex: 0, "aria-hidden": "true", onFocus: (ev) => onBoundaryFocus(overlay, ev, edge) }));
|
|
8589
|
+
|
|
8554
8590
|
// TODO(FW-2832): types
|
|
8555
8591
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
8556
8592
|
if (delegate) {
|
|
@@ -8969,18 +9005,10 @@ const trapKeyboardFocus = (ev, doc) => {
|
|
|
8969
9005
|
focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);
|
|
8970
9006
|
/**
|
|
8971
9007
|
* Otherwise, we must be focusing an element
|
|
8972
|
-
* inside of the overlay.
|
|
8973
|
-
* here are an input/button/etc or the ion-focus-trap
|
|
8974
|
-
* element. The focus trap element is used to prevent
|
|
8975
|
-
* the keyboard focus from leaving the overlay when
|
|
8976
|
-
* using Tab or screen assistants.
|
|
9008
|
+
* inside of the overlay.
|
|
8977
9009
|
*/
|
|
8978
9010
|
}
|
|
8979
9011
|
else {
|
|
8980
|
-
/**
|
|
8981
|
-
* We do not want to focus the traps, so get the overlay
|
|
8982
|
-
* wrapper element as the traps live outside of the wrapper.
|
|
8983
|
-
*/
|
|
8984
9012
|
const overlayRoot = getElementRoot(lastOverlay);
|
|
8985
9013
|
if (!overlayRoot.contains(target)) {
|
|
8986
9014
|
return;
|
|
@@ -8995,40 +9023,13 @@ const trapKeyboardFocus = (ev, doc) => {
|
|
|
8995
9023
|
* Additionally, if the backdrop was tapped we should not
|
|
8996
9024
|
* move focus back inside the wrapper as that could cause
|
|
8997
9025
|
* an interactive elements focus state to activate.
|
|
9026
|
+
*
|
|
9027
|
+
* The focus boundaries outside of the wrapper move
|
|
9028
|
+
* focus back inside on their own.
|
|
8998
9029
|
*/
|
|
8999
9030
|
if (overlayWrapper.contains(target) || target === overlayRoot.querySelector('ion-backdrop')) {
|
|
9000
9031
|
lastOverlay.lastFocus = target;
|
|
9001
9032
|
}
|
|
9002
|
-
else {
|
|
9003
|
-
/**
|
|
9004
|
-
* Otherwise, we must have focused one of the focus traps.
|
|
9005
|
-
* We need to wrap the focus to either the first element
|
|
9006
|
-
* or the last element.
|
|
9007
|
-
*/
|
|
9008
|
-
/**
|
|
9009
|
-
* Once we call `focusFirstDescendant` and focus the first
|
|
9010
|
-
* descendant, another focus event will fire which will
|
|
9011
|
-
* cause `lastOverlay.lastFocus` to be updated before
|
|
9012
|
-
* we can run the code after that. We will cache the value
|
|
9013
|
-
* here to avoid that.
|
|
9014
|
-
*/
|
|
9015
|
-
const lastFocus = lastOverlay.lastFocus;
|
|
9016
|
-
// Focus the first element in the overlay wrapper
|
|
9017
|
-
focusFirstDescendant(overlayWrapper, lastOverlay);
|
|
9018
|
-
/**
|
|
9019
|
-
* If the cached last focused element is the
|
|
9020
|
-
* same as the active element, then we need
|
|
9021
|
-
* to wrap focus to the last descendant. This happens
|
|
9022
|
-
* when the first descendant is focused, and the user
|
|
9023
|
-
* presses Shift + Tab. The previous line will focus
|
|
9024
|
-
* the same descendant again (the first one), causing
|
|
9025
|
-
* last focus to equal the active element.
|
|
9026
|
-
*/
|
|
9027
|
-
if (lastFocus === doc.activeElement) {
|
|
9028
|
-
focusLastDescendant(overlayWrapper, lastOverlay);
|
|
9029
|
-
}
|
|
9030
|
-
lastOverlay.lastFocus = doc.activeElement;
|
|
9031
|
-
}
|
|
9032
9033
|
}
|
|
9033
9034
|
};
|
|
9034
9035
|
const trapShadowFocus = () => {
|
|
@@ -9145,10 +9146,16 @@ const connectListeners = (doc) => {
|
|
|
9145
9146
|
: false;
|
|
9146
9147
|
if (!isInsideOverlay)
|
|
9147
9148
|
return;
|
|
9148
|
-
|
|
9149
|
+
/**
|
|
9150
|
+
* Get all focusable elements from both light and shadow DOM.
|
|
9151
|
+
* Focus boundaries in a shadow root are skipped: shadow elements
|
|
9152
|
+
* are listed after the slotted content, so the boundaries would
|
|
9153
|
+
* sit out of order and wrap focus to the wrong end. Boundaries
|
|
9154
|
+
* in scoped overlays stay, since they are in document order.
|
|
9155
|
+
*/
|
|
9149
9156
|
let allFocusable = [
|
|
9150
9157
|
...lastOverlay.querySelectorAll(focusableQueryString),
|
|
9151
|
-
...(lastOverlay.shadowRoot?.querySelectorAll(focusableQueryString)
|
|
9158
|
+
...Array.from(lastOverlay.shadowRoot?.querySelectorAll(focusableQueryString) ?? []).filter((el) => !el.classList.contains('ion-overlay-focus-boundary')),
|
|
9152
9159
|
];
|
|
9153
9160
|
/**
|
|
9154
9161
|
* Some elements match `focusableQueryString` but are not
|
|
@@ -11324,7 +11331,8 @@ const actionSheetMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
|
|
|
11324
11331
|
*/
|
|
11325
11332
|
class ActionSheet {
|
|
11326
11333
|
constructor(hostRef) {
|
|
11327
|
-
|
|
11334
|
+
if (new.target === ActionSheet)
|
|
11335
|
+
registerInstance(this, hostRef);
|
|
11328
11336
|
this.didPresent = createEvent(this, "ionActionSheetDidPresent", 7);
|
|
11329
11337
|
this.willPresent = createEvent(this, "ionActionSheetWillPresent", 7);
|
|
11330
11338
|
this.willDismiss = createEvent(this, "ionActionSheetWillDismiss", 7);
|
|
@@ -11737,17 +11745,17 @@ class ActionSheet {
|
|
|
11737
11745
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
11738
11746
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
11739
11747
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
11740
|
-
return (hAsync(Host, { key: '
|
|
11748
|
+
return (hAsync(Host, { key: 'f126d2b7604330b9ad08656c0599a2857bdce9fd', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1", ...htmlAttributes, style: {
|
|
11741
11749
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
11742
11750
|
}, class: {
|
|
11743
11751
|
[theme]: true,
|
|
11744
11752
|
...getClassMap(this.cssClass),
|
|
11745
11753
|
'overlay-hidden': true,
|
|
11746
11754
|
'action-sheet-translucent': this.translucent,
|
|
11747
|
-
}, onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: '
|
|
11755
|
+
}, onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: 'ed859b50dd330669bc23e764f9a0cd8e85f16c20', tappable: this.backdropDismiss }), hAsync(OverlayFocusBoundary, { key: 'f1649ce62d3a3679a20bca57eb8ab45759b851f9', overlay: this.el, edge: "start" }), hAsync("div", { key: '0c39479dd4bcd2f96db1b493b18e3d2051de4355', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, hAsync("div", { key: 'df0900607aa1f20edc97d4d81f45fcac94611286', class: "action-sheet-container" }, hAsync("div", { key: '86eb05d0a9be99e6c44e4a9666d70112655a7a54', class: "action-sheet-group", ref: (el) => (this.groupEl = el), role: hasRadioButtons ? 'radiogroup' : undefined, "data-roving-focus": hasRadioButtons ? true : undefined }, header !== undefined && (hAsync("div", { key: '4d49027234e17c76239eba0ded5de27488789579', id: headerID, class: {
|
|
11748
11756
|
'action-sheet-title': true,
|
|
11749
11757
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
11750
|
-
} }, header, this.subHeader && hAsync("div", { key: '
|
|
11758
|
+
} }, header, this.subHeader && hAsync("div", { key: '4a46abdf74e85a0987e6f441ba81f0fdc96bfe12', class: "action-sheet-sub-title" }, this.subHeader))), this.renderActionSheetButtons(buttons)), cancelButton && (hAsync("div", { key: '7ba80a52f3b6d3fa41590a6e8dc9ecb9583b628e', class: "action-sheet-group action-sheet-group-cancel" }, hAsync("button", { key: '06ab2dce960ad93f829261299856dc77034e491f', ...cancelButton.htmlAttributes, type: "button", class: buttonClass$2(cancelButton), onClick: () => this.buttonClick(cancelButton) }, hAsync("span", { key: 'c6680f77e64857303f9f0b6cc4eb90079af432da', class: "action-sheet-button-inner" }, cancelButton.icon && (hAsync("ion-icon", { key: '006c3f802dd1379094f9e2771c06433d90090182', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), theme === 'md' && hAsync("ion-ripple-effect", { key: '5a67d8e843456573985c79d98210c2645b1ca1ee' })))))), hAsync(OverlayFocusBoundary, { key: 'e02fb72c830bf8b8a9c075fb9635be68d4d48432', overlay: this.el, edge: "end" })));
|
|
11751
11759
|
}
|
|
11752
11760
|
get el() { return getElement(this); }
|
|
11753
11761
|
static get watchers() { return {
|
|
@@ -11952,7 +11960,8 @@ const alertMdCss = () => `.action-sheet-button-label-has-rich-content.sc-ion-ale
|
|
|
11952
11960
|
*/
|
|
11953
11961
|
class Alert {
|
|
11954
11962
|
constructor(hostRef) {
|
|
11955
|
-
|
|
11963
|
+
if (new.target === Alert)
|
|
11964
|
+
registerInstance(this, hostRef);
|
|
11956
11965
|
this.didPresent = createEvent(this, "ionAlertDidPresent", 7);
|
|
11957
11966
|
this.willPresent = createEvent(this, "ionAlertWillPresent", 7);
|
|
11958
11967
|
this.willDismiss = createEvent(this, "ionAlertWillDismiss", 7);
|
|
@@ -12499,14 +12508,14 @@ class Alert {
|
|
|
12499
12508
|
* If neither are defined, do not set aria-labelledby.
|
|
12500
12509
|
*/
|
|
12501
12510
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
12502
|
-
return (hAsync(Host, { key: '
|
|
12511
|
+
return (hAsync(Host, { key: '332af2f97ef6974a1a525d482f4e9657ac822563', tabindex: "-1", style: {
|
|
12503
12512
|
zIndex: `${20000 + overlayIndex}`,
|
|
12504
12513
|
}, class: {
|
|
12505
12514
|
...getClassMap(this.cssClass),
|
|
12506
12515
|
[theme]: true,
|
|
12507
12516
|
'overlay-hidden': true,
|
|
12508
12517
|
'alert-translucent': this.translucent,
|
|
12509
|
-
}, onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: '
|
|
12518
|
+
}, onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: 'a26f3acd2d454752e8046343e6827c40e9908950', tappable: this.backdropDismiss }), hAsync(OverlayFocusBoundary, { key: '6d724cede0c27fabc37ba5a0f4324884360d04ac', overlay: this.el, edge: "start" }), hAsync("div", { key: 'b90da31bb3c58eaaeed4d535c92910ef9ef502d0', class: "alert-wrapper ion-overlay-wrapper", role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "0", ref: (el) => (this.wrapperEl = el), ...htmlAttributes }, hAsync("div", { key: '2ef246a2a6b672ce313b1d97bd9a9b167c41db1e', class: "alert-head" }, header && (hAsync("h2", { key: '34bb5dd02513713e89b29472e2d1c2e6f340d23e', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (hAsync("h2", { key: 'f36b60c83219f8c0324d7a3b84cbd6d35e865354', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (hAsync("h3", { key: 'd9296d4b7fa82d88fc327c2a44d7596cf5595563', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), hAsync(OverlayFocusBoundary, { key: '2b0cbe13b49a9c9c9332db0aa28de221fd4e0f46', overlay: this.el, edge: "end" })));
|
|
12510
12519
|
}
|
|
12511
12520
|
get el() { return getElement(this); }
|
|
12512
12521
|
static get watchers() { return {
|
|
@@ -12587,7 +12596,8 @@ const appCss = () => `html.plt-mobile ion-app{-webkit-user-select:none;-moz-user
|
|
|
12587
12596
|
*/
|
|
12588
12597
|
class App {
|
|
12589
12598
|
constructor(hostRef) {
|
|
12590
|
-
|
|
12599
|
+
if (new.target === App)
|
|
12600
|
+
registerInstance(this, hostRef);
|
|
12591
12601
|
}
|
|
12592
12602
|
/**
|
|
12593
12603
|
* Used to set focus on an element that uses `ion-focusable`.
|
|
@@ -12641,7 +12651,8 @@ const avatarMdCss = () => `:host{border-radius:var(--border-radius);display:bloc
|
|
|
12641
12651
|
*/
|
|
12642
12652
|
class Avatar {
|
|
12643
12653
|
constructor(hostRef) {
|
|
12644
|
-
|
|
12654
|
+
if (new.target === Avatar)
|
|
12655
|
+
registerInstance(this, hostRef);
|
|
12645
12656
|
/**
|
|
12646
12657
|
* If `true`, the user cannot interact with the avatar.
|
|
12647
12658
|
*/
|
|
@@ -12711,6 +12722,7 @@ class Avatar {
|
|
|
12711
12722
|
}; }
|
|
12712
12723
|
}
|
|
12713
12724
|
|
|
12725
|
+
const hostNamingAttributes = ['aria-label', 'aria-description', 'role'];
|
|
12714
12726
|
/**
|
|
12715
12727
|
* Copies a set of attributes off the host element so they can be applied to an element
|
|
12716
12728
|
* inside the shadow root, then keeps that copy in sync as the host attributes change.
|
|
@@ -12720,13 +12732,15 @@ class Avatar {
|
|
|
12720
12732
|
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
12721
12733
|
* watching right away, so `init()` is only needed to resume after a move.
|
|
12722
12734
|
*
|
|
12723
|
-
*
|
|
12724
|
-
*
|
|
12725
|
-
*
|
|
12726
|
-
*
|
|
12727
|
-
*
|
|
12728
|
-
*
|
|
12729
|
-
*
|
|
12735
|
+
* An `aria-label`, `aria-description` or `role` written after load is copied and then
|
|
12736
|
+
* replaced on the host with an empty string, so the host isn't a second node in the
|
|
12737
|
+
* accessibility tree and a later `removeAttribute` still fires a mutation. Anything else
|
|
12738
|
+
* stays on the host unless `moveFromHost` takes it off, since it leaves the host unnamed
|
|
12739
|
+
* or, like `aria-labelledby`, only resolves from there. A value the initial copy or
|
|
12740
|
+
* `moveFromHost` takes off the host can only be overwritten, since removing an attribute
|
|
12741
|
+
* that isn't there fires no mutation. An empty string works for `aria-label` and friends,
|
|
12742
|
+
* but a token-valued attribute has to be set to its default instead, so
|
|
12743
|
+
* `aria-pressed="false"` rather than empty.
|
|
12730
12744
|
*
|
|
12731
12745
|
* @internal
|
|
12732
12746
|
* @param el The host element to copy from and watch.
|
|
@@ -12734,24 +12748,30 @@ class Avatar {
|
|
|
12734
12748
|
* @param onChange Called after `attributes` changes, so the component can re-render.
|
|
12735
12749
|
* @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
|
|
12736
12750
|
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
12737
|
-
* those is the component's own write
|
|
12738
|
-
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
12751
|
+
* those is the component's own write.
|
|
12739
12752
|
* @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
|
|
12740
12753
|
* a value moves off the host. A rejected value stays on the host and is left out of
|
|
12741
12754
|
* `attributes`. It can read component state, as long as the component calls `refresh()`
|
|
12742
12755
|
* when that state changes.
|
|
12756
|
+
* @param keepOnHost While this returns `true`, a value written after load stays on the
|
|
12757
|
+
* host. It's checked on every write and on `refresh()`. Use it when the component
|
|
12758
|
+
* sometimes renders nothing that can carry the copy.
|
|
12743
12759
|
*/
|
|
12744
|
-
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
|
|
12760
|
+
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost, keepOnHost = () => false) => {
|
|
12745
12761
|
let inherited = inheritAttributes$1(el, attributes);
|
|
12746
12762
|
let observer;
|
|
12747
12763
|
const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
|
|
12748
12764
|
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
12749
12765
|
/**
|
|
12750
|
-
* The names
|
|
12751
|
-
* copy removes what it captures, so a missing attribute
|
|
12752
|
-
* when its name is in here.
|
|
12766
|
+
* The names written to the host after load, including the empty strings we leave in
|
|
12767
|
+
* place of a copy. The initial copy removes what it captures, so a missing attribute
|
|
12768
|
+
* only counts as a removal when its name is in here.
|
|
12753
12769
|
*/
|
|
12754
12770
|
const hostWritten = new Set();
|
|
12771
|
+
/**
|
|
12772
|
+
* The names whose host value is our empty string, not one the developer wrote.
|
|
12773
|
+
*/
|
|
12774
|
+
const replaced = new Set();
|
|
12755
12775
|
const setPresence = (name, value) => {
|
|
12756
12776
|
if (value === null) {
|
|
12757
12777
|
hostWritten.delete(name);
|
|
@@ -12772,6 +12792,27 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12772
12792
|
}
|
|
12773
12793
|
}
|
|
12774
12794
|
};
|
|
12795
|
+
const replaceOnHost = (written) => {
|
|
12796
|
+
const keep = keepOnHost();
|
|
12797
|
+
for (const [name, value] of Object.entries(written)) {
|
|
12798
|
+
// An empty value already gives the host no name, so it can stay as written.
|
|
12799
|
+
if (keep || value === null || value === '' || !hostNamingAttributes.includes(name)) {
|
|
12800
|
+
replaced.delete(name);
|
|
12801
|
+
continue;
|
|
12802
|
+
}
|
|
12803
|
+
el.setAttribute(name, '');
|
|
12804
|
+
replaced.add(name);
|
|
12805
|
+
}
|
|
12806
|
+
// Drain our own writes so the observer doesn't read them as the developer's.
|
|
12807
|
+
observer?.takeRecords();
|
|
12808
|
+
};
|
|
12809
|
+
const restoreOnHost = () => {
|
|
12810
|
+
for (const name of replaced) {
|
|
12811
|
+
el.setAttribute(name, inherited[name]);
|
|
12812
|
+
}
|
|
12813
|
+
replaced.clear();
|
|
12814
|
+
observer?.takeRecords();
|
|
12815
|
+
};
|
|
12775
12816
|
// The initial copy took everything off the host, so put back what has to stay there.
|
|
12776
12817
|
for (const [name, value] of Object.entries(inherited)) {
|
|
12777
12818
|
if (staysOnHost(name, value)) {
|
|
@@ -12785,6 +12826,7 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12785
12826
|
* the host has to be re-read on the way back in.
|
|
12786
12827
|
*/
|
|
12787
12828
|
const readMissedChanges = () => {
|
|
12829
|
+
const written = {};
|
|
12788
12830
|
const changed = {};
|
|
12789
12831
|
for (const name of watchedAttributes) {
|
|
12790
12832
|
const value = el.getAttribute(name);
|
|
@@ -12794,12 +12836,17 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12794
12836
|
* An attribute that was never written to the host is missing because the initial
|
|
12795
12837
|
* copy took it, not because the developer cleared it.
|
|
12796
12838
|
*/
|
|
12797
|
-
if (
|
|
12839
|
+
if (value === null && !wasOnHost) {
|
|
12798
12840
|
continue;
|
|
12799
12841
|
}
|
|
12800
|
-
|
|
12842
|
+
// Even a rewrite of the same value has to be replaced on the host.
|
|
12843
|
+
written[name] = value;
|
|
12844
|
+
if (value !== inherited[name]) {
|
|
12845
|
+
changed[name] = value;
|
|
12846
|
+
}
|
|
12801
12847
|
}
|
|
12802
12848
|
moveOffHost(changed);
|
|
12849
|
+
replaceOnHost(written);
|
|
12803
12850
|
if (Object.keys(changed).length > 0) {
|
|
12804
12851
|
inherited = { ...inherited, ...changed };
|
|
12805
12852
|
onChange();
|
|
@@ -12816,10 +12863,10 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12816
12863
|
changed[name] = value;
|
|
12817
12864
|
}
|
|
12818
12865
|
moveOffHost(changed);
|
|
12819
|
-
// Drop the removals `moveOffHost` just queued, or they'd read back as the developer
|
|
12820
|
-
// clearing the attribute.
|
|
12821
|
-
observer?.takeRecords();
|
|
12822
12866
|
inherited = { ...inherited, ...changed };
|
|
12867
|
+
// This also drops the removals `moveOffHost` just queued, or they'd read back as the
|
|
12868
|
+
// developer clearing the attribute.
|
|
12869
|
+
replaceOnHost(changed);
|
|
12823
12870
|
onChange();
|
|
12824
12871
|
};
|
|
12825
12872
|
const init = () => {
|
|
@@ -12832,24 +12879,21 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12832
12879
|
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
12833
12880
|
};
|
|
12834
12881
|
const destroy = () => {
|
|
12835
|
-
observer
|
|
12836
|
-
observer = undefined;
|
|
12837
|
-
};
|
|
12838
|
-
const refresh = () => {
|
|
12839
|
-
if (moveFromHost === undefined) {
|
|
12882
|
+
if (observer === undefined) {
|
|
12840
12883
|
return;
|
|
12841
12884
|
}
|
|
12842
|
-
//
|
|
12843
|
-
|
|
12844
|
-
if (
|
|
12845
|
-
|
|
12846
|
-
if (pending.length > 0) {
|
|
12847
|
-
handleRecords(pending);
|
|
12848
|
-
}
|
|
12849
|
-
}
|
|
12850
|
-
else {
|
|
12851
|
-
readMissedChanges();
|
|
12885
|
+
// Apply a write made just before the move, since it hasn't been delivered yet.
|
|
12886
|
+
const pending = observer.takeRecords();
|
|
12887
|
+
if (pending.length > 0) {
|
|
12888
|
+
handleRecords(pending);
|
|
12852
12889
|
}
|
|
12890
|
+
observer.disconnect();
|
|
12891
|
+
observer = undefined;
|
|
12892
|
+
// Put the copied values back while detached, or `init()` would read our empty strings
|
|
12893
|
+
// as the developer clearing them.
|
|
12894
|
+
restoreOnHost();
|
|
12895
|
+
};
|
|
12896
|
+
const applyMoveFromHost = () => {
|
|
12853
12897
|
for (const [name, value] of Object.entries(inherited)) {
|
|
12854
12898
|
if (value == null) {
|
|
12855
12899
|
continue;
|
|
@@ -12864,8 +12908,42 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12864
12908
|
hostWritten.delete(name);
|
|
12865
12909
|
}
|
|
12866
12910
|
}
|
|
12911
|
+
};
|
|
12912
|
+
const refresh = () => {
|
|
12913
|
+
/**
|
|
12914
|
+
* A detached host already has its replaced values back, and `init()` checks
|
|
12915
|
+
* `keepOnHost` again on reattach, so only `moveFromHost` has work to do here.
|
|
12916
|
+
*/
|
|
12917
|
+
if (observer === undefined) {
|
|
12918
|
+
if (moveFromHost !== undefined) {
|
|
12919
|
+
readMissedChanges();
|
|
12920
|
+
applyMoveFromHost();
|
|
12921
|
+
}
|
|
12922
|
+
return;
|
|
12923
|
+
}
|
|
12924
|
+
// A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
|
|
12925
|
+
// first, or the writes below would act on the old value and drop the new one.
|
|
12926
|
+
const pending = observer.takeRecords();
|
|
12927
|
+
if (pending.length > 0) {
|
|
12928
|
+
handleRecords(pending);
|
|
12929
|
+
}
|
|
12930
|
+
if (moveFromHost !== undefined) {
|
|
12931
|
+
applyMoveFromHost();
|
|
12932
|
+
}
|
|
12933
|
+
if (keepOnHost()) {
|
|
12934
|
+
restoreOnHost();
|
|
12935
|
+
}
|
|
12936
|
+
else {
|
|
12937
|
+
const written = {};
|
|
12938
|
+
for (const name of hostWritten) {
|
|
12939
|
+
if (!replaced.has(name)) {
|
|
12940
|
+
written[name] = el.getAttribute(name);
|
|
12941
|
+
}
|
|
12942
|
+
}
|
|
12943
|
+
replaceOnHost(written);
|
|
12944
|
+
}
|
|
12867
12945
|
// Drop our own writes, or they'd read back as the developer's.
|
|
12868
|
-
observer
|
|
12946
|
+
observer.takeRecords();
|
|
12869
12947
|
};
|
|
12870
12948
|
/**
|
|
12871
12949
|
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
@@ -12936,7 +13014,8 @@ const backButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
|
|
|
12936
13014
|
*/
|
|
12937
13015
|
class BackButton {
|
|
12938
13016
|
constructor(hostRef) {
|
|
12939
|
-
|
|
13017
|
+
if (new.target === BackButton)
|
|
13018
|
+
registerInstance(this, hostRef);
|
|
12940
13019
|
this.inheritedAttributes = {};
|
|
12941
13020
|
/**
|
|
12942
13021
|
* If `true`, the user cannot interact with the button.
|
|
@@ -13053,7 +13132,8 @@ const backdropMdCss = () => `:host{right:0;left:0;top:0;bottom:0;display:block;p
|
|
|
13053
13132
|
*/
|
|
13054
13133
|
class Backdrop {
|
|
13055
13134
|
constructor(hostRef) {
|
|
13056
|
-
|
|
13135
|
+
if (new.target === Backdrop)
|
|
13136
|
+
registerInstance(this, hostRef);
|
|
13057
13137
|
this.ionBackdropTap = createEvent(this, "ionBackdropTap", 7);
|
|
13058
13138
|
/**
|
|
13059
13139
|
* If `true`, the backdrop will be visible.
|
|
@@ -13123,7 +13203,8 @@ const badgeMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-font-s
|
|
|
13123
13203
|
*/
|
|
13124
13204
|
class Badge {
|
|
13125
13205
|
constructor(hostRef) {
|
|
13126
|
-
|
|
13206
|
+
if (new.target === Badge)
|
|
13207
|
+
registerInstance(this, hostRef);
|
|
13127
13208
|
}
|
|
13128
13209
|
getShape() {
|
|
13129
13210
|
const theme = getIonTheme(this);
|
|
@@ -13223,7 +13304,8 @@ const breadcrumbMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex:0
|
|
|
13223
13304
|
*/
|
|
13224
13305
|
class Breadcrumb {
|
|
13225
13306
|
constructor(hostRef) {
|
|
13226
|
-
|
|
13307
|
+
if (new.target === Breadcrumb)
|
|
13308
|
+
registerInstance(this, hostRef);
|
|
13227
13309
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
13228
13310
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
13229
13311
|
this.collapsedClick = createEvent(this, "collapsedClick", 7);
|
|
@@ -13379,7 +13461,8 @@ const breadcrumbsMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-
|
|
|
13379
13461
|
*/
|
|
13380
13462
|
class Breadcrumbs {
|
|
13381
13463
|
constructor(hostRef) {
|
|
13382
|
-
|
|
13464
|
+
if (new.target === Breadcrumbs)
|
|
13465
|
+
registerInstance(this, hostRef);
|
|
13383
13466
|
this.ionCollapsedClick = createEvent(this, "ionCollapsedClick", 7);
|
|
13384
13467
|
/**
|
|
13385
13468
|
* The number of breadcrumbs to show before the collapsed indicator.
|
|
@@ -13542,7 +13625,8 @@ const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;-
|
|
|
13542
13625
|
*/
|
|
13543
13626
|
class Button {
|
|
13544
13627
|
constructor(hostRef) {
|
|
13545
|
-
|
|
13628
|
+
if (new.target === Button)
|
|
13629
|
+
registerInstance(this, hostRef);
|
|
13546
13630
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
13547
13631
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
13548
13632
|
this.inDatetime = false;
|
|
@@ -13651,11 +13735,9 @@ class Button {
|
|
|
13651
13735
|
* The ARIA state has to stay live, since `ion-input-password-toggle` rewrites
|
|
13652
13736
|
* `aria-label` and `aria-pressed` on its `ion-button` on every toggle. We keep
|
|
13653
13737
|
* `aria-disabled` out of the watch because the `<Host>` below renders it from the
|
|
13654
|
-
* `disabled` prop and those writes would clobber a developer's value
|
|
13655
|
-
* because a post-load write stays on the host too, which would put the same role on
|
|
13656
|
-
* two elements in the accessibility tree.
|
|
13738
|
+
* `disabled` prop and those writes would clobber a developer's value.
|
|
13657
13739
|
*/
|
|
13658
|
-
this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled'
|
|
13740
|
+
this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled']);
|
|
13659
13741
|
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
13660
13742
|
}
|
|
13661
13743
|
connectedCallback() {
|
|
@@ -13797,7 +13879,7 @@ class Button {
|
|
|
13797
13879
|
{
|
|
13798
13880
|
type !== 'button' && this.renderHiddenButton();
|
|
13799
13881
|
}
|
|
13800
|
-
return (hAsync(Host, { key: '
|
|
13882
|
+
return (hAsync(Host, { key: '7b6f8b7fb418d69d7f984191fcc9b7b52a59379b', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
|
|
13801
13883
|
[theme]: true,
|
|
13802
13884
|
[buttonType]: true,
|
|
13803
13885
|
[`${buttonType}-${expand}`]: expand !== undefined,
|
|
@@ -13814,7 +13896,7 @@ class Button {
|
|
|
13814
13896
|
'button-disabled': disabled,
|
|
13815
13897
|
'ion-activatable': true,
|
|
13816
13898
|
'ion-focusable': true,
|
|
13817
|
-
}) }, hAsync(TagType, { key: '
|
|
13899
|
+
}) }, hAsync(TagType, { key: '15646e0d19540ff90478184e6d96ac9994e6192a', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("span", { key: 'f2e26bf30b3925d5fbe1f4d0d7a43c0ec6b09a21', class: "button-inner" }, hAsync("slot", { key: '69a60de3d81a139248fb126c147d3b722b91f5f4', name: "icon-only", onSlotchange: this.slotChanged }), hAsync("slot", { key: '15e51a0657d4de592f23a1555fe34252b01a6005', name: "start" }), hAsync("slot", { key: '44cd7f343c22b6adf0df36bda7fe874bbe36bc31' }), hAsync("slot", { key: 'd0b75c290f8f0c35f15fdb979103f4af68e738af', name: "end" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '738c0f358b4abeb331fa336fdcb2749a09d5f334', type: this.rippleType }))));
|
|
13818
13900
|
}
|
|
13819
13901
|
get el() { return getElement(this); }
|
|
13820
13902
|
static get watchers() { return {
|
|
@@ -13867,7 +13949,8 @@ const buttonsMdCss = () => `.sc-ion-buttons-md-h{display:-ms-flexbox;display:fle
|
|
|
13867
13949
|
*/
|
|
13868
13950
|
class Buttons {
|
|
13869
13951
|
constructor(hostRef) {
|
|
13870
|
-
|
|
13952
|
+
if (new.target === Buttons)
|
|
13953
|
+
registerInstance(this, hostRef);
|
|
13871
13954
|
/**
|
|
13872
13955
|
* If true, buttons will disappear when its
|
|
13873
13956
|
* parent toolbar has fully collapsed if the toolbar
|
|
@@ -13920,7 +14003,8 @@ const cardMdCss = () => `:host{--ion-safe-area-left:0px;--ion-safe-area-right:0p
|
|
|
13920
14003
|
*/
|
|
13921
14004
|
class Card {
|
|
13922
14005
|
constructor(hostRef) {
|
|
13923
|
-
|
|
14006
|
+
if (new.target === Card)
|
|
14007
|
+
registerInstance(this, hostRef);
|
|
13924
14008
|
/**
|
|
13925
14009
|
* If `true`, a button tag will be rendered and the card will be tappable.
|
|
13926
14010
|
*/
|
|
@@ -13947,19 +14031,19 @@ class Card {
|
|
|
13947
14031
|
}
|
|
13948
14032
|
componentWillLoad() {
|
|
13949
14033
|
/**
|
|
13950
|
-
*
|
|
13951
|
-
* after load
|
|
13952
|
-
* the card host renders no role of its own, so nothing reads the leftover copy.
|
|
14034
|
+
* A non-clickable card renders no native element to apply the copy to, so an
|
|
14035
|
+
* `aria-label` written after load has to stay on the host.
|
|
13953
14036
|
*/
|
|
13954
|
-
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
|
|
14037
|
+
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(), [], undefined, () => !this.isClickable());
|
|
13955
14038
|
// A card that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
13956
14039
|
this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
|
|
13957
14040
|
}
|
|
13958
14041
|
/**
|
|
13959
|
-
* Changing `href` or `button` adds or removes the native element, so `tabindex`
|
|
13960
|
-
* move with it.
|
|
14042
|
+
* Changing `href` or `button` adds or removes the native element, so `tabindex` and a
|
|
14043
|
+
* label written after load have to move with it.
|
|
13961
14044
|
*/
|
|
13962
14045
|
clickableChanged() {
|
|
14046
|
+
this.ariaController?.refresh();
|
|
13963
14047
|
this.tabindexController?.refresh();
|
|
13964
14048
|
}
|
|
13965
14049
|
connectedCallback() {
|
|
@@ -13995,7 +14079,7 @@ class Card {
|
|
|
13995
14079
|
render() {
|
|
13996
14080
|
const { shape } = this;
|
|
13997
14081
|
const theme = getIonTheme(this);
|
|
13998
|
-
return (hAsync(Host, { key: '
|
|
14082
|
+
return (hAsync(Host, { key: '085a1c0b5c773d690b95779375ff42bdaad2f34e', class: createColorClasses$1(this.color, {
|
|
13999
14083
|
[theme]: true,
|
|
14000
14084
|
[`card-${shape}`]: shape !== undefined,
|
|
14001
14085
|
'card-disabled': this.disabled,
|
|
@@ -14050,7 +14134,8 @@ const cardContentMdCss = () => `:host{position:relative}:host{display:block}:hos
|
|
|
14050
14134
|
*/
|
|
14051
14135
|
class CardContent {
|
|
14052
14136
|
constructor(hostRef) {
|
|
14053
|
-
|
|
14137
|
+
if (new.target === CardContent)
|
|
14138
|
+
registerInstance(this, hostRef);
|
|
14054
14139
|
}
|
|
14055
14140
|
render() {
|
|
14056
14141
|
const theme = getIonTheme(this);
|
|
@@ -14085,7 +14170,8 @@ const cardHeaderMdCss = () => `:host{--background:transparent;--color:inherit;di
|
|
|
14085
14170
|
*/
|
|
14086
14171
|
class CardHeader {
|
|
14087
14172
|
constructor(hostRef) {
|
|
14088
|
-
|
|
14173
|
+
if (new.target === CardHeader)
|
|
14174
|
+
registerInstance(this, hostRef);
|
|
14089
14175
|
/**
|
|
14090
14176
|
* If `true`, the card header will be translucent.
|
|
14091
14177
|
* Only applies when the theme is `"ios"` and the device supports
|
|
@@ -14131,7 +14217,8 @@ const cardSubtitleMdCss = () => `:host{display:block;position:relative;color:var
|
|
|
14131
14217
|
*/
|
|
14132
14218
|
class CardSubtitle {
|
|
14133
14219
|
constructor(hostRef) {
|
|
14134
|
-
|
|
14220
|
+
if (new.target === CardSubtitle)
|
|
14221
|
+
registerInstance(this, hostRef);
|
|
14135
14222
|
}
|
|
14136
14223
|
render() {
|
|
14137
14224
|
const theme = getIonTheme(this);
|
|
@@ -14169,7 +14256,8 @@ const cardTitleMdCss = () => `:host{display:block;position:relative;color:var(--
|
|
|
14169
14256
|
*/
|
|
14170
14257
|
class CardTitle {
|
|
14171
14258
|
constructor(hostRef) {
|
|
14172
|
-
|
|
14259
|
+
if (new.target === CardTitle)
|
|
14260
|
+
registerInstance(this, hostRef);
|
|
14173
14261
|
}
|
|
14174
14262
|
render() {
|
|
14175
14263
|
const theme = getIonTheme(this);
|
|
@@ -14793,6 +14881,49 @@ const createClearButtonPressController = (onPressChange) => {
|
|
|
14793
14881
|
};
|
|
14794
14882
|
};
|
|
14795
14883
|
|
|
14884
|
+
/**
|
|
14885
|
+
* How long, in milliseconds, the field is checked after a restore. The clear
|
|
14886
|
+
* can land a few frames after `pageshow`, such as when Web Inspector is open.
|
|
14887
|
+
*/
|
|
14888
|
+
const PAGE_RESTORE_CHECK_DURATION = 500;
|
|
14889
|
+
/**
|
|
14890
|
+
* Safari clears password and autocomplete="off" fields after restoring a
|
|
14891
|
+
* page from the back/forward cache, without firing `input`. The clear lands
|
|
14892
|
+
* after `pageshow`, so the field is checked each frame until it differs from
|
|
14893
|
+
* the value or the check duration ends.
|
|
14894
|
+
*
|
|
14895
|
+
* A cleared password field stays cleared, as a native one does, and the
|
|
14896
|
+
* value follows it. Any other field is cleared only because autocomplete
|
|
14897
|
+
* defaults to "off", so its text is put back from the value.
|
|
14898
|
+
*
|
|
14899
|
+
* @param ev The `pageshow` event. Only a restored page (`persisted`) is checked.
|
|
14900
|
+
* @param nativeInput The input whose text is read on each check.
|
|
14901
|
+
* @param getValue Returns the component's value when each check runs.
|
|
14902
|
+
* @param onPasswordCleared Called with the field's text when a password field differs from the value.
|
|
14903
|
+
*/
|
|
14904
|
+
const syncValueOnPageRestore = (ev, nativeInput, getValue, onPasswordCleared) => {
|
|
14905
|
+
if (!ev.persisted || !nativeInput) {
|
|
14906
|
+
return;
|
|
14907
|
+
}
|
|
14908
|
+
const start = Date.now();
|
|
14909
|
+
const check = () => {
|
|
14910
|
+
const value = getValue();
|
|
14911
|
+
if (nativeInput.value !== value) {
|
|
14912
|
+
if (nativeInput.type === 'password') {
|
|
14913
|
+
onPasswordCleared(nativeInput.value);
|
|
14914
|
+
}
|
|
14915
|
+
else {
|
|
14916
|
+
nativeInput.value = value;
|
|
14917
|
+
}
|
|
14918
|
+
return;
|
|
14919
|
+
}
|
|
14920
|
+
if (Date.now() - start < PAGE_RESTORE_CHECK_DURATION) {
|
|
14921
|
+
raf(check);
|
|
14922
|
+
}
|
|
14923
|
+
};
|
|
14924
|
+
raf(check);
|
|
14925
|
+
};
|
|
14926
|
+
|
|
14796
14927
|
const checkboxIonicCss = () => `:host{display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(:focus){outline:none}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}input{display:none}.native-wrapper{border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon{color:var(--checkmark-color);opacity:0}.checkbox-icon svg{width:100%;height:100%}.checkbox-icon path{fill:none;stroke:currentColor;stroke-width:var(--checkmark-width)}.checkbox-bottom{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;white-space:normal}.checkbox-bottom .error-text{display:none}.checkbox-bottom .helper-text{display:block}:host(.ion-touched.ion-invalid) .checkbox-bottom .error-text{display:block}:host(.ion-touched.ion-invalid) .checkbox-bottom .helper-text{display:none}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:start}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column;text-align:center}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-justify-space-between),:host(.checkbox-justify-start),:host(.checkbox-justify-end),:host(.checkbox-alignment-start),:host(.checkbox-alignment-center){display:block}:host(.checkbox-checked) .native-wrapper,:host(.checkbox-indeterminate) .native-wrapper{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-width:var(--token-border-size-025, var(--token-scale-025, 1px));--border-style:solid;--border-color:var(--token-border-input-default, var(--token-primitives-neutral-400, #d0d7df));--checkmark-width:3;--focus-ring-color:var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));--focus-ring-width:var(--token-border-size-050, var(--token-scale-050, 2px));--focus-ring-offset:var(--token-space-050, var(--token-scale-050, 2px));--size:var(--token-scale-600, 24px);--checkbox-background:var(--token-bg-input-default, var(--token-primitives-base-white, #ffffff));--checkbox-background-checked:var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef))));--border-color-checked:var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)));--checkmark-color:var(--token-text-light, var(--token-primitives-base-white, #ffffff));--transition:none;z-index:2}:host::after{right:0;left:0;top:50%;position:absolute;height:100%;min-height:var(--token-scale-1200, 48px);-webkit-transform:translateY(-50%);transform:translateY(-50%);content:"";cursor:pointer;z-index:1}.label-text-wrapper{color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.in-item) .label-text-wrapper{margin-top:var(--token-space-250, var(--token-scale-250, 10px));margin-bottom:var(--token-space-250, var(--token-scale-250, 10px))}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:var(--token-space-250, var(--token-scale-250, 10px));margin-bottom:var(--token-space-400, var(--token-scale-400, 16px))}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:var(--token-space-250, var(--token-scale-250, 10px))}input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-appearance:none;-moz-appearance:none}.native-wrapper{-ms-flex-pack:center;justify-content:center}.checkbox-icon{font-size:calc(var(--size) * 2 / 3)}.checkbox-bottom{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-300, 0.75rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.666667}.checkbox-bottom .error-text{color:var(--token-text-danger, var(--token-semantics-danger-800, var(--token-primitives-red-800, #d2002b)))}.checkbox-bottom .helper-text{color:var(--token-text-subtlest, var(--token-primitives-neutral-800, #6c727a))}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--token-space-400, var(--token-scale-400, 16px));margin-inline-end:var(--token-space-400, var(--token-scale-400, 16px))}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:var(--token-space-400, var(--token-scale-400, 16px));margin-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--token-space-400, var(--token-scale-400, 16px));margin-inline-end:var(--token-space-400, var(--token-scale-400, 16px))}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:var(--token-space-400, var(--token-scale-400, 16px));max-width:133.3333333333%}:host(.checkbox-size-small){--size:var(--token-scale-400, 16px)}:host(.ion-invalid){--focus-ring-color:var(--token-border-danger-default, var(--token-semantics-danger-600, var(--token-primitives-red-600, #ef5264)))}:host(.ion-invalid:not(.checkbox-checked)) .native-wrapper,:host(.ion-invalid:not(.checkbox-checked).checkbox-disabled) .native-wrapper{border-color:var(--token-border-danger-default, var(--token-semantics-danger-600, var(--token-primitives-red-600, #ef5264)))}:host(.checkbox-disabled) .native-wrapper:after{right:0;left:0;top:0;bottom:0;position:absolute;background-color:var(--token-state-disabled, rgba(255, 255, 255, 0.6));content:"";pointer-events:none;right:unset;left:unset;top:unset;bottom:unset;width:inherit;height:inherit}:host(.checkbox-disabled.checkbox-checked) .native-wrapper{border-width:var(--token-border-size-0, var(--token-scale-0, 0px));background-color:var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef))))}@media (any-hover: hover){:host(:hover) .native-wrapper{background-color:var(--token-primitives-neutral-100, #f6f7fa)}:host(:hover.checkbox-checked) .native-wrapper,:host(:hover.checkbox-indeterminate) .native-wrapper{background-color:var(--token-semantics-primary-800, var(--token-primitives-blue-800, #0f54da))}}:host(.ion-focused:not(.checkbox-disabled)) .native-wrapper{outline-offset:var(--focus-ring-width);outline:var(--focus-ring-width) solid var(--focus-ring-color)}:host(.ion-activated) .native-wrapper{background-color:var(--token-bg-input-press, var(--token-primitives-neutral-200, #ebeef2))}:host(.ion-activated.checkbox-checked) .native-wrapper,:host(.ion-activated.checkbox-indeterminate) .native-wrapper{background-color:var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)))}:host(.ion-activated.ion-invalid:not(.checkbox-checked)){background-color:var(--token-bg-input-press, var(--token-primitives-neutral-200, #ebeef2))}:host(.ion-activated.ion-invalid:not(.checkbox-checked)) .native-wrapper{border-color:var(--token-border-danger-press, var(--token-semantics-danger-700, var(--token-primitives-red-700, #e0243a)))}:host(.checkbox-shape-soft){--border-radius:var(--token-border-radius-100, var(--token-scale-100, 4px))}:host(.checkbox-size-small.checkbox-shape-soft){--border-radius:var(--token-border-radius-025, var(--token-scale-050, 2px))}:host(.checkbox-shape-rectangular){--border-radius:var(--token-border-radius-0, var(--token-scale-0, 0px))}.checkbox-wrapper{min-height:var(--token-scale-1200, 48px)}`;
|
|
14797
14928
|
|
|
14798
14929
|
const checkboxIosCss = () => `:host{display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(:focus){outline:none}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}input{display:none}.native-wrapper{border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon{color:var(--checkmark-color);opacity:0}.checkbox-icon svg{width:100%;height:100%}.checkbox-icon path{fill:none;stroke:currentColor;stroke-width:var(--checkmark-width)}.checkbox-bottom{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;white-space:normal}.checkbox-bottom .error-text{display:none}.checkbox-bottom .helper-text{display:block}:host(.ion-touched.ion-invalid) .checkbox-bottom .error-text{display:block}:host(.ion-touched.ion-invalid) .checkbox-bottom .helper-text{display:none}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:start;justify-content:start}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column;text-align:center}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-justify-space-between),:host(.checkbox-justify-start),:host(.checkbox-justify-end),:host(.checkbox-alignment-start),:host(.checkbox-alignment-center){display:block}:host(.checkbox-checked) .native-wrapper,:host(.checkbox-indeterminate) .native-wrapper{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;z-index:2}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.ion-focused) .native-wrapper::after{border-radius:50%;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #1a65eb);content:"";opacity:0.2;pointer-events:none;inset-block-start:calc(50% - 36px / 2);inset-inline-start:calc(50% - 36px / 2)}:host(.in-item) .label-text-wrapper,:host(.in-item:not(.checkbox-label-placement-stacked):not([slot])) .native-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.checkbox-icon{width:100%;height:100%}.checkbox-bottom{padding-top:4px;font-size:0.75rem}:host(.checkbox-label-placement-stacked) .checkbox-bottom{font-size:1rem}.checkbox-bottom .error-text{color:var(--ion-color-danger, #c5000f)}.checkbox-bottom .helper-text{color:var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d))}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host{--border-radius:50%;--border-width:0.125rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.375rem, 55.836px);--checkmark-width:1.5px}:host(.checkbox-disabled){opacity:0.3}`;
|
|
@@ -14815,7 +14946,8 @@ const checkboxMdCss = () => `:host{display:inline-block;position:relative;cursor
|
|
|
14815
14946
|
*/
|
|
14816
14947
|
class Checkbox {
|
|
14817
14948
|
constructor(hostRef) {
|
|
14818
|
-
|
|
14949
|
+
if (new.target === Checkbox)
|
|
14950
|
+
registerInstance(this, hostRef);
|
|
14819
14951
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
14820
14952
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
14821
14953
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -15069,7 +15201,8 @@ const chipMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-font-sm
|
|
|
15069
15201
|
*/
|
|
15070
15202
|
class Chip {
|
|
15071
15203
|
constructor(hostRef) {
|
|
15072
|
-
|
|
15204
|
+
if (new.target === Chip)
|
|
15205
|
+
registerInstance(this, hostRef);
|
|
15073
15206
|
/**
|
|
15074
15207
|
* Display an outline style button.
|
|
15075
15208
|
*/
|
|
@@ -15180,7 +15313,8 @@ const BREAKPOINTS$1 = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
|
15180
15313
|
*/
|
|
15181
15314
|
class Col {
|
|
15182
15315
|
constructor(hostRef) {
|
|
15183
|
-
|
|
15316
|
+
if (new.target === Col)
|
|
15317
|
+
registerInstance(this, hostRef);
|
|
15184
15318
|
}
|
|
15185
15319
|
onResize() {
|
|
15186
15320
|
}
|
|
@@ -15317,7 +15451,8 @@ const contentMdCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--paddi
|
|
|
15317
15451
|
*/
|
|
15318
15452
|
class Content {
|
|
15319
15453
|
constructor(hostRef) {
|
|
15320
|
-
|
|
15454
|
+
if (new.target === Content)
|
|
15455
|
+
registerInstance(this, hostRef);
|
|
15321
15456
|
this.ionScrollStart = createEvent(this, "ionScrollStart", 7);
|
|
15322
15457
|
this.ionScroll = createEvent(this, "ionScroll", 7);
|
|
15323
15458
|
this.ionScrollEnd = createEvent(this, "ionScrollEnd", 7);
|
|
@@ -17711,11 +17846,11 @@ const checkForPresentationFormatMismatch = (el, presentation, formatOptions) =>
|
|
|
17711
17846
|
}
|
|
17712
17847
|
};
|
|
17713
17848
|
|
|
17714
|
-
const datetimeIonicCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible;z-index:0}:host .calendar-day-wrapper:focus-within{z-index:1}:host .calendar-day-wrapper-range-start,:host .calendar-day-wrapper-range-end{z-index:1}.datetime-range-announcement{-webkit-margin-start:-1px;margin-inline-start:-1px;-webkit-margin-end:-1px;margin-inline-end:-1px;margin-top:-1px;margin-bottom:-1px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;width:1px;height:1px;border:0;white-space:nowrap;overflow:hidden;clip:rect(0, 0, 0, 0)}:host .calendar-day-wrapper-in-range::before,:host .calendar-day-wrapper-range-start::before,:host .calendar-day-wrapper-range-end::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;height:var(--range-track-height);-webkit-transform:translateY(-50%);transform:translateY(-50%);background:-webkit-gradient(linear, left top, left bottom, from(var(--range-background)), to(var(--range-background))), -webkit-gradient(linear, left top, left bottom, from(var(--background)), to(var(--background)));background:linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));content:"";z-index:-1}:host .calendar-day-wrapper-range-start::before{inset-inline-start:50%}:host .calendar-day-wrapper-range-end::before{inset-inline-end:50%}:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before{inset-inline-end:-1px}:host .calendar-day-wrapper-in-range:nth-child(7n)::before,:host .calendar-day-wrapper-range-start:nth-child(7n)::before{inset-inline-end:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before{inset-inline-start:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before{display:none}:host(.datetime-disabled.datetime-range) .calendar-month-grid{opacity:0.4}:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled]{opacity:1}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{--background:var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));--focus-ring-color:var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));--focus-ring-width:var(--token-border-size-050, var(--token-scale-050, 2px));--body-opacity:0;--year-opacity:0}:host .calendar-body{opacity:var(--body-opacity)}:host .datetime-year{opacity:var(--year-opacity)}:host(.datetime-ready) .calendar-body{--body-opacity:1}:host(.datetime-ready) .datetime-year{--year-opacity:1}:host .datetime-header{-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-400, var(--token-scale-400, 16px));display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start;-ms-flex-pack:justify;justify-content:space-between;height:var(--token-scale-1400, 56px);margin-bottom:var(--token-space-200, var(--token-scale-200, 8px));border-bottom:solid var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d0d7df)}:host .datetime-header .datetime-title{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-450, 1.125rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.555556;color:var(--token-primitives-neutral-800, #6c727a)}:host .datetime-header .datetime-selected-date{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-regular, 400);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.714286;color:var(--token-primitives-neutral-1000, #383e45)}.calendar-action-buttons{padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-200, var(--token-scale-200, 8px));-ms-flex-align:center;align-items:center;height:var(--token-scale-1400, 56px);-webkit-box-sizing:border-box;box-sizing:border-box}.calendar-month-year{-ms-flex:1 0 0px;flex:1 0 0}.calendar-month-year-toggle{border-radius:var(--token-border-radius-full, 999px);font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-100, 0.01em);line-height:1.5;-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-200, var(--token-scale-200, 8px));min-width:var(--token-scale-1600, 64px);min-height:var(--token-scale-1000, 40px);border:var(--focus-ring-width) solid transparent;color:var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}@media (any-hover: hover){.calendar-month-year-toggle:hover{background:var(--token-primitives-neutral-200, #ebeef2)}}.calendar-month-year-toggle.ion-focused{border-color:var(--focus-ring-color)}.calendar-month-year-toggle.ion-activated{background:var(--token-primitives-neutral-200, #ebeef2)}.calendar-next-prev ion-button.button-has-icon-only{--color:var(--token-primitives-neutral-1000, #383e45);--background-activated:var(--token-primitives-neutral-200, #ebeef2);--background-hover:var(--token-primitives-neutral-200, #ebeef2);--background-hover-opacity:1;min-height:var(--token-scale-1000, 40px)}.calendar-next-prev ion-button.button-has-icon-only.ion-focused::part(native){border:var(--token-border-size-050, var(--token-scale-050, 2px)) solid var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));outline:none}.calendar-days-of-week{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-300, 0.75rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-150, 0.015em);line-height:1.666667;text-transform:uppercase;-ms-flex-line-pack:center;align-content:center;height:var(--token-scale-1200, 48px);color:var(--token-primitives-neutral-800, #6c727a)}.calendar-day{border-radius:var(--token-border-radius-full, 999px);-webkit-padding-start:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-start:var(--token-space-100, var(--token-scale-100, 4px));-webkit-padding-end:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-end:var(--token-space-100, var(--token-scale-100, 4px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px));font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-100, 0.01em);line-height:1.428571;width:var(--token-scale-1200, 48px);min-width:var(--token-scale-1200, 48px);height:var(--token-scale-1200, 48px);color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}.calendar-day[disabled]:not(.calendar-day-constrained){color:var(--token-text-disabled, var(--token-primitives-neutral-500, #9fa5ad))}.calendar-day.calendar-day-today{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active.calendar-day-adjacent-day{background:var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)))}.calendar-day:focus-visible{border:var(--focus-ring-width) solid var(--focus-ring-color)}@media (any-hover: hover){.calendar-day:not([disabled]):not(:active):not(.calendar-day-in-range):hover{background:var(--token-semantics-primary-200, var(--token-primitives-blue-200, #e4e8ff))}}.calendar-day:active,.calendar-day.calendar-day-adjacent-day:active{background:var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa)))}.calendar-day.calendar-day-adjacent-day{color:var(--token-text-subtlest, var(--token-primitives-neutral-800, #6c727a))}.calendar-day.calendar-day-active.calendar-day-adjacent-day{color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-start:var(--token-space-200, var(--token-scale-200, 8px));-webkit-padding-end:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-end:var(--token-space-200, var(--token-scale-200, 8px));padding-top:0;padding-bottom:0}:host{--range-background:var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)));--range-track-height:var(--token-scale-1200, 48px);--range-track-edge-overflow:var(--token-space-200, var(--token-scale-200, 8px))}:host .calendar-day.calendar-day-range-start,:host .calendar-day.calendar-day-range-end{border-radius:var(--token-border-radius-full, 999px);background:var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef))));color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}.calendar-day.calendar-day-in-range{border-radius:0;background:none;color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}.calendar-day.calendar-day-today.calendar-day-in-range{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}:host .calendar-day.calendar-day-today.calendar-day-range-start,:host .calendar-day.calendar-day-today.calendar-day-range-end{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}@media (any-hover: hover){.calendar-day.calendar-day-range-start:not([disabled]):not(:active):hover,.calendar-day.calendar-day-range-end:not([disabled]):not(:active):hover{background:var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)))}}.calendar-day.calendar-day-range-start:active,.calendar-day.calendar-day-range-end:active{background:var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)))}.calendar-day.calendar-day-in-range:active{background:var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa)))}:host(.datetime-disabled.datetime-range) .calendar-day[disabled]:not(.calendar-day-constrained){color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-adjacent-day[disabled]{color:var(--token-text-subtlest, var(--token-primitives-neutral-800, #6c727a))}:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-today[disabled]{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-range-start[disabled],:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-range-end[disabled]{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}:host(.datetime-readonly) .calendar-day.calendar-day-range-start[disabled],:host(.datetime-readonly) .calendar-day.calendar-day-range-end[disabled]{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}:host(.datetime-readonly) .calendar-day.calendar-day-in-range[disabled]{color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-in-range[disabled]{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}:host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-range-start[disabled],:host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-range-end[disabled]{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}:host .datetime-time{-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px))}:host .datetime-time .time-header{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-100, 0.01em);line-height:1.5;color:var(--token-primitives-neutral-800, #6c727a)}:host .datetime-time button{-webkit-padding-start:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-start:var(--token-space-200, var(--token-scale-200, 8px));-webkit-padding-end:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-end:var(--token-space-200, var(--token-scale-200, 8px));padding-top:var(--token-space-0, var(--token-scale-0, 0px));padding-bottom:var(--token-space-0, var(--token-scale-0, 0px));font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.714286;border-radius:var(--token-border-radius-full, 999px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:var(--token-scale-800, 32px);background-color:var(--token-primitives-neutral-100, #f6f7fa);color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host .datetime-footer{padding-left:0;padding-right:0;padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:0;margin-left:0;margin-right:0;margin-top:var(--token-space-200, var(--token-scale-200, 8px));margin-bottom:0;border-left:0;border-right:0;border-top:solid var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d0d7df);border-bottom:0}:host .datetime-buttons .datetime-action-buttons,.datetime-action-buttons .datetime-action-buttons-container,::slotted([slot=buttons]){-ms-flex-flow:column;flex-flow:column;-ms-flex-align:stretch;align-items:stretch;gap:var(--token-space-200, var(--token-scale-200, 8px))}`;
|
|
17849
|
+
const datetimeIonicCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible;z-index:0}:host .calendar-day-wrapper:focus-within{z-index:1}.datetime-range-announcement{-webkit-margin-start:-1px;margin-inline-start:-1px;-webkit-margin-end:-1px;margin-inline-end:-1px;margin-top:-1px;margin-bottom:-1px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;width:1px;height:1px;border:0;white-space:nowrap;overflow:hidden;clip:rect(0, 0, 0, 0)}:host .calendar-day-wrapper-in-range::before,:host .calendar-day-wrapper-range-start::before,:host .calendar-day-wrapper-range-end::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;height:var(--range-track-height);-webkit-transform:translateY(-50%);transform:translateY(-50%);background:-webkit-gradient(linear, left top, left bottom, from(var(--range-background)), to(var(--range-background))), -webkit-gradient(linear, left top, left bottom, from(var(--background)), to(var(--background)));background:linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));content:"";z-index:-1}:host .calendar-day-wrapper-range-start::before{inset-inline-start:50%}:host .calendar-day-wrapper-range-end::before{inset-inline-end:50%}:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before{inset-inline-end:-1px}:host .calendar-day-wrapper-in-range:nth-child(7n)::before,:host .calendar-day-wrapper-range-start:nth-child(7n)::before{inset-inline-end:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before{inset-inline-start:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before{display:none}:host(.datetime-disabled.datetime-range) .calendar-month-grid{opacity:0.4}:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled]{opacity:1}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{--background:var(--token-bg-surface-default, var(--token-primitives-base-white, #ffffff));--focus-ring-color:var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));--focus-ring-width:var(--token-border-size-050, var(--token-scale-050, 2px));--body-opacity:0;--year-opacity:0}:host .calendar-body{opacity:var(--body-opacity)}:host .datetime-year{opacity:var(--year-opacity)}:host(.datetime-ready) .calendar-body{--body-opacity:1}:host(.datetime-ready) .datetime-year{--year-opacity:1}:host .datetime-header{-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-400, var(--token-scale-400, 16px));display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start;-ms-flex-pack:justify;justify-content:space-between;height:var(--token-scale-1400, 56px);margin-bottom:var(--token-space-200, var(--token-scale-200, 8px));border-bottom:solid var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d0d7df)}:host .datetime-header .datetime-title{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-450, 1.125rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.555556;color:var(--token-primitives-neutral-800, #6c727a)}:host .datetime-header .datetime-selected-date{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-regular, 400);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.714286;color:var(--token-primitives-neutral-1000, #383e45)}.calendar-action-buttons{padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-200, var(--token-scale-200, 8px));-ms-flex-align:center;align-items:center;height:var(--token-scale-1400, 56px);-webkit-box-sizing:border-box;box-sizing:border-box}.calendar-month-year{-ms-flex:1 0 0px;flex:1 0 0}.calendar-month-year-toggle{border-radius:var(--token-border-radius-full, 999px);font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-100, 0.01em);line-height:1.5;-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:var(--token-space-200, var(--token-scale-200, 8px));min-width:var(--token-scale-1600, 64px);min-height:var(--token-scale-1000, 40px);border:var(--focus-ring-width) solid transparent;color:var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}@media (any-hover: hover){.calendar-month-year-toggle:hover{background:var(--token-primitives-neutral-200, #ebeef2)}}.calendar-month-year-toggle.ion-focused{border-color:var(--focus-ring-color)}.calendar-month-year-toggle.ion-activated{background:var(--token-primitives-neutral-200, #ebeef2)}.calendar-next-prev ion-button.button-has-icon-only{--color:var(--token-primitives-neutral-1000, #383e45);--background-activated:var(--token-primitives-neutral-200, #ebeef2);--background-hover:var(--token-primitives-neutral-200, #ebeef2);--background-hover-opacity:1;min-height:var(--token-scale-1000, 40px)}.calendar-next-prev ion-button.button-has-icon-only.ion-focused::part(native){border:var(--token-border-size-050, var(--token-scale-050, 2px)) solid var(--token-border-focus-default, var(--token-semantics-primary-400, var(--token-primitives-blue-400, #b5c0f7)));outline:none}.calendar-days-of-week{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-300, 0.75rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-150, 0.015em);line-height:1.666667;text-transform:uppercase;-ms-flex-line-pack:center;align-content:center;height:var(--token-scale-1200, 48px);color:var(--token-primitives-neutral-800, #6c727a)}.calendar-day{border-radius:var(--token-border-radius-full, 999px);-webkit-padding-start:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-start:var(--token-space-100, var(--token-scale-100, 4px));-webkit-padding-end:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-end:var(--token-space-100, var(--token-scale-100, 4px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px));font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-100, 0.01em);line-height:1.428571;width:var(--token-scale-1200, 48px);min-width:var(--token-scale-1200, 48px);height:var(--token-scale-1200, 48px);color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}.calendar-day[disabled]:not(.calendar-day-constrained){color:var(--token-text-disabled, var(--token-primitives-neutral-500, #9fa5ad))}.calendar-day.calendar-day-today{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active.calendar-day-adjacent-day{background:var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)))}.calendar-day:focus-visible{border:var(--focus-ring-width) solid var(--focus-ring-color)}@media (any-hover: hover){.calendar-day:not([disabled]):not(:active):not(.calendar-day-in-range):hover{background:var(--token-semantics-primary-200, var(--token-primitives-blue-200, #e4e8ff))}}.calendar-day:active,.calendar-day.calendar-day-adjacent-day:active{background:var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa)))}.calendar-day.calendar-day-adjacent-day{color:var(--token-text-subtlest, var(--token-primitives-neutral-800, #6c727a))}.calendar-day.calendar-day-active.calendar-day-adjacent-day{color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host{--range-background:var(--token-bg-primary-subtle-default, var(--token-semantics-primary-100, var(--token-primitives-blue-100, #f0f2ff)));--range-track-height:var(--token-scale-1200, 48px)}:host .calendar-day.calendar-day-range-start,:host .calendar-day.calendar-day-range-end{border-radius:var(--token-border-radius-full, 999px);background:var(--token-bg-primary-base-default, var(--token-semantics-primary-base, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef))));color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}.calendar-day.calendar-day-in-range{border-radius:0;background:none;color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}.calendar-day.calendar-day-today.calendar-day-in-range{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}:host .calendar-day.calendar-day-today.calendar-day-range-start,:host .calendar-day.calendar-day-today.calendar-day-range-end{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}@media (any-hover: hover){.calendar-day.calendar-day-range-start:not([disabled]):not(:active):hover,.calendar-day.calendar-day-range-end:not([disabled]):not(:active):hover{background:var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)))}}.calendar-day.calendar-day-range-start:active,.calendar-day.calendar-day-range-end:active{background:var(--token-bg-primary-base-press, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)))}.calendar-day.calendar-day-in-range:active{background:var(--token-bg-primary-subtle-press, var(--token-semantics-primary-300, var(--token-primitives-blue-300, #d0d7fa)))}:host(.datetime-disabled.datetime-range) .calendar-day[disabled]:not(.calendar-day-constrained){color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-adjacent-day[disabled]{color:var(--token-text-subtlest, var(--token-primitives-neutral-800, #6c727a))}:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-today[disabled]{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-range-start[disabled],:host(.datetime-disabled.datetime-range) .calendar-day.calendar-day-range-end[disabled]{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}:host(.datetime-readonly) .calendar-day.calendar-day-range-start[disabled],:host(.datetime-readonly) .calendar-day.calendar-day-range-end[disabled]{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}:host(.datetime-readonly) .calendar-day.calendar-day-in-range[disabled]{color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-in-range[disabled]{color:var(--token-text-select, var(--token-semantics-primary-700, var(--token-primitives-blue-700, #105cef)))}:host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-range-start[disabled],:host(.datetime-readonly) .calendar-day.calendar-day-today.calendar-day-range-end[disabled]{color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}:host .datetime-time{-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px))}:host .datetime-time .time-header{font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-400, 1rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-100, 0.01em);line-height:1.5;color:var(--token-primitives-neutral-800, #6c727a)}:host .datetime-time button{-webkit-padding-start:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-start:var(--token-space-200, var(--token-scale-200, 8px));-webkit-padding-end:var(--token-space-200, var(--token-scale-200, 8px));padding-inline-end:var(--token-space-200, var(--token-scale-200, 8px));padding-top:var(--token-space-0, var(--token-scale-0, 0px));padding-bottom:var(--token-space-0, var(--token-scale-0, 0px));font-family:var(--token-font-family, -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0);line-height:1.714286;border-radius:var(--token-border-radius-full, 999px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:var(--token-scale-800, 32px);background-color:var(--token-primitives-neutral-100, #f6f7fa);color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host .datetime-footer{padding-left:0;padding-right:0;padding-top:var(--token-space-200, var(--token-scale-200, 8px));padding-bottom:0;margin-left:0;margin-right:0;margin-top:var(--token-space-200, var(--token-scale-200, 8px));margin-bottom:0;border-left:0;border-right:0;border-top:solid var(--token-border-size-025, var(--token-scale-025, 1px)) var(--token-primitives-neutral-400, #d0d7df);border-bottom:0}:host .datetime-buttons .datetime-action-buttons,.datetime-action-buttons .datetime-action-buttons-container,::slotted([slot=buttons]){-ms-flex-flow:column;flex-flow:column;-ms-flex-align:stretch;align-items:stretch;gap:var(--token-space-200, var(--token-scale-200, 8px))}`;
|
|
17715
17850
|
|
|
17716
|
-
const datetimeIosCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible;z-index:0}:host .calendar-day-wrapper:focus-within{z-index:1}:host .calendar-day-wrapper-range-start,:host .calendar-day-wrapper-range-end{z-index:1}.datetime-range-announcement{-webkit-margin-start:-1px;margin-inline-start:-1px;-webkit-margin-end:-1px;margin-inline-end:-1px;margin-top:-1px;margin-bottom:-1px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;width:1px;height:1px;border:0;white-space:nowrap;overflow:hidden;clip:rect(0, 0, 0, 0)}:host .calendar-day-wrapper-in-range::before,:host .calendar-day-wrapper-range-start::before,:host .calendar-day-wrapper-range-end::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;height:var(--range-track-height);-webkit-transform:translateY(-50%);transform:translateY(-50%);background:-webkit-gradient(linear, left top, left bottom, from(var(--range-background)), to(var(--range-background))), -webkit-gradient(linear, left top, left bottom, from(var(--background)), to(var(--background)));background:linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));content:"";z-index:-1}:host .calendar-day-wrapper-range-start::before{inset-inline-start:50%}:host .calendar-day-wrapper-range-end::before{inset-inline-end:50%}:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before{inset-inline-end:-1px}:host .calendar-day-wrapper-in-range:nth-child(7n)::before,:host .calendar-day-wrapper-range-start:nth-child(7n)::before{inset-inline-end:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before{inset-inline-start:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before{display:none}:host(.datetime-disabled.datetime-range) .calendar-month-grid{opacity:0.4}:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled]{opacity:1}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host .calendar-body,:host .datetime-year{opacity:0}:host(.datetime-ready) .calendar-body,:host(.datetime-ready) .datetime-year{opacity:1}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2)}:host(.ion-color) .calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-next-prev{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:start}.calendar-next-prev ion-button ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-primary, #0054e9)}:host(.ion-color.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}:host .datetime-action-buttons ion-button{--color:var(--ion-color-primary, #0054e9)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-button{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host(.ion-color) .calendar-action-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-action-buttons .calendar-next-prev{-ms-flex-align:stretch;align-items:stretch}.calendar-next-prev ion-button{--padding-top:0;--padding-bottom:0;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.calendar-next-prev ion-button ion-icon[slot=icon-only]{font-size:1.65em;line-height:0.67}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);font-size:min(1.375rem, 35.2px)}:host(.ion-color) .calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-primary, #0054e9);font-weight:600}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-base)}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-primary, #0054e9);color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3))}:host{--range-background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);--range-track-height:40px;--range-track-edge-overflow:8px}:host(.ion-color){--range-background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.datetime-range) .calendar-day-wrapper{height:auto}:host .calendar-day.calendar-day-range-start,:host .calendar-day.calendar-day-range-end{border-radius:50%;background:var(--ion-color-primary, #0054e9);color:var(--ion-color-primary-contrast, #fff);font-weight:600}:host(.ion-color) .calendar-day.calendar-day-range-start,:host(.ion-color) .calendar-day.calendar-day-range-end{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons,::slotted([slot=buttons]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons,::slotted([slot=buttons]){width:100%}`;
|
|
17851
|
+
const datetimeIosCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible;z-index:0}:host .calendar-day-wrapper:focus-within{z-index:1}.datetime-range-announcement{-webkit-margin-start:-1px;margin-inline-start:-1px;-webkit-margin-end:-1px;margin-inline-end:-1px;margin-top:-1px;margin-bottom:-1px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;width:1px;height:1px;border:0;white-space:nowrap;overflow:hidden;clip:rect(0, 0, 0, 0)}:host .calendar-day-wrapper-in-range::before,:host .calendar-day-wrapper-range-start::before,:host .calendar-day-wrapper-range-end::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;height:var(--range-track-height);-webkit-transform:translateY(-50%);transform:translateY(-50%);background:-webkit-gradient(linear, left top, left bottom, from(var(--range-background)), to(var(--range-background))), -webkit-gradient(linear, left top, left bottom, from(var(--background)), to(var(--background)));background:linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));content:"";z-index:-1}:host .calendar-day-wrapper-range-start::before{inset-inline-start:50%}:host .calendar-day-wrapper-range-end::before{inset-inline-end:50%}:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before{inset-inline-end:-1px}:host .calendar-day-wrapper-in-range:nth-child(7n)::before,:host .calendar-day-wrapper-range-start:nth-child(7n)::before{inset-inline-end:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before{inset-inline-start:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before{display:none}:host(.datetime-disabled.datetime-range) .calendar-month-grid{opacity:0.4}:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled]{opacity:1}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host .calendar-body,:host .datetime-year{opacity:0}:host(.datetime-ready) .calendar-body,:host(.datetime-ready) .datetime-year{opacity:1}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2)}:host(.ion-color) .calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-next-prev{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:start}.calendar-next-prev ion-button ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-primary, #0054e9)}:host(.ion-color.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}:host .datetime-action-buttons ion-button{--color:var(--ion-color-primary, #0054e9)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-light, #f4f5f8);--background-rgb:var(--ion-color-light-rgb, 244, 245, 248);--title-color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc));font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}.calendar-month-year-toggle{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;min-height:44px;font-size:min(1rem, 25.6px);font-weight:600}.calendar-month-year-toggle.ion-focused::after{opacity:0.15}.calendar-month-year-toggle #toggle-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host .calendar-action-buttons ion-button{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-action-buttons .calendar-month-year-toggle ion-icon,:host(.ion-color) .calendar-action-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-action-buttons .calendar-next-prev{-ms-flex-align:stretch;align-items:stretch}.calendar-next-prev ion-button{--padding-top:0;--padding-bottom:0;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.calendar-next-prev ion-button ion-icon[slot=icon-only]{font-size:1.65em;line-height:0.67}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);font-size:min(1.375rem, 35.2px)}:host(.ion-color) .calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-primary, #0054e9);font-weight:600}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-base)}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-primary, #0054e9);color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3))}:host{--range-background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);--range-track-height:40px;--range-track-edge-overflow:8px}:host(.ion-color){--range-background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.datetime-range) .calendar-day-wrapper{height:auto}:host .calendar-day.calendar-day-range-start,:host .calendar-day.calendar-day-range-end{border-radius:50%;background:var(--ion-color-primary, #0054e9);color:var(--ion-color-primary-contrast, #fff);font-weight:600}:host(.ion-color) .calendar-day.calendar-day-range-start,:host(.ion-color) .calendar-day.calendar-day-range-end{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #cccccc))}:host .datetime-buttons,::slotted([slot=buttons]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons,::slotted([slot=buttons]){width:100%}`;
|
|
17717
17852
|
|
|
17718
|
-
const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible;z-index:0}:host .calendar-day-wrapper:focus-within{z-index:1}:host .calendar-day-wrapper-range-start,:host .calendar-day-wrapper-range-end{z-index:1}.datetime-range-announcement{-webkit-margin-start:-1px;margin-inline-start:-1px;-webkit-margin-end:-1px;margin-inline-end:-1px;margin-top:-1px;margin-bottom:-1px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;width:1px;height:1px;border:0;white-space:nowrap;overflow:hidden;clip:rect(0, 0, 0, 0)}:host .calendar-day-wrapper-in-range::before,:host .calendar-day-wrapper-range-start::before,:host .calendar-day-wrapper-range-end::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;height:var(--range-track-height);-webkit-transform:translateY(-50%);transform:translateY(-50%);background:-webkit-gradient(linear, left top, left bottom, from(var(--range-background)), to(var(--range-background))), -webkit-gradient(linear, left top, left bottom, from(var(--background)), to(var(--background)));background:linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));content:"";z-index:-1}:host .calendar-day-wrapper-range-start::before{inset-inline-start:50%}:host .calendar-day-wrapper-range-end::before{inset-inline-end:50%}:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before{inset-inline-end:-1px}:host .calendar-day-wrapper-in-range:nth-child(7n)::before,:host .calendar-day-wrapper-range-start:nth-child(7n)::before{inset-inline-end:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before{inset-inline-start:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before{display:none}:host(.datetime-disabled.datetime-range) .calendar-month-grid{opacity:0.4}:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled]{opacity:1}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host .calendar-body,:host .datetime-year{opacity:0}:host(.datetime-ready) .calendar-body,:host(.datetime-ready) .datetime-year{opacity:1}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2)}:host(.ion-color) .calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-next-prev{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:start}.calendar-next-prev ion-button ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-primary, #0054e9)}:host(.ion-color.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}:host .datetime-action-buttons ion-button{--color:var(--ion-color-primary, #0054e9)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color){--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-primary, #0054e9);color:var(--title-color)}:host(.ion-color) .datetime-header{background:var(--ion-color-base)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-next-prev ion-button{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.calendar-next-prev ion-button ion-icon[slot=icon-only]{font-size:1.8em}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-primary, #0054e9);color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-primary, #0054e9);background:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray))}:host{--range-background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);--range-track-height:42px;--range-track-edge-overflow:10px}:host(.ion-color){--range-background:rgba(var(--ion-color-base-rgb), 0.12)}:host .calendar-day.calendar-day-range-start,:host .calendar-day.calendar-day-range-end{border-radius:50%;background:var(--ion-color-primary, #0054e9);color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-range-start,:host(.ion-color) .calendar-day.calendar-day-range-end{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}`;
|
|
17853
|
+
const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-cover){width:100%}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .datetime-year{display:none}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons,::slotted([slot=buttons]),.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible;z-index:0}:host .calendar-day-wrapper:focus-within{z-index:1}.datetime-range-announcement{-webkit-margin-start:-1px;margin-inline-start:-1px;-webkit-margin-end:-1px;margin-inline-end:-1px;margin-top:-1px;margin-bottom:-1px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;width:1px;height:1px;border:0;white-space:nowrap;overflow:hidden;clip:rect(0, 0, 0, 0)}:host .calendar-day-wrapper-in-range::before,:host .calendar-day-wrapper-range-start::before,:host .calendar-day-wrapper-range-end::before{position:absolute;top:50%;inset-inline-start:0;inset-inline-end:0;height:var(--range-track-height);-webkit-transform:translateY(-50%);transform:translateY(-50%);background:-webkit-gradient(linear, left top, left bottom, from(var(--range-background)), to(var(--range-background))), -webkit-gradient(linear, left top, left bottom, from(var(--background)), to(var(--background)));background:linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));content:"";z-index:-1}:host .calendar-day-wrapper-range-start::before{inset-inline-start:50%}:host .calendar-day-wrapper-range-end::before{inset-inline-end:50%}:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-in-range:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-in-range)::before,:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+.calendar-day-wrapper-range-end)::before{inset-inline-end:-1px}:host .calendar-day-wrapper-in-range:nth-child(7n)::before,:host .calendar-day-wrapper-range-start:nth-child(7n)::before{inset-inline-end:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before{inset-inline-start:calc(var(--range-track-edge-overflow, 0px) * -1)}:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before{display:none}:host(.datetime-disabled.datetime-range) .calendar-month-grid{opacity:0.4}:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled]{opacity:1}.calendar-day{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}.calendar-day[disabled]{pointer-events:none}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{display:-ms-flexbox;display:flex;border:none;font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.in-item){position:static}.calendar-month-year{min-width:0}.calendar-month-year-toggle{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;position:relative;border:0;outline:none;background:transparent;cursor:pointer;z-index:1}.calendar-month-year-toggle ion-icon{-ms-flex-negative:0;flex-shrink:0}.calendar-month-year-toggle #toggle-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}:host{}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host .calendar-body,:host .datetime-year{opacity:0}:host(.datetime-ready) .calendar-body,:host(.datetime-ready) .datetime-year{opacity:1}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .calendar-action-buttons ion-button{--background:transparent}.calendar-day{border-radius:50%;font-family:var(--ion-font-family, inherit)}:host .calendar-day[disabled]{opacity:0.4}.calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2)}:host(.ion-color) .calendar-day:not(.calendar-day-adjacent-day):focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-next-prev{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:start}.calendar-next-prev ion-button ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000)}:host .time-body-active{color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .time-body-active{color:var(--ion-color-base)}:host(.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-primary, #0054e9)}:host(.ion-color.show-month-and-year) .calendar-action-buttons .calendar-month-year-toggle{color:var(--ion-color-base)}:host .datetime-action-buttons ion-button{--color:var(--ion-color-primary, #0054e9)}.calendar-month-year-toggle::after{right:0;left:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:opacity 15ms linear, background-color 15ms linear;transition:opacity 15ms linear, background-color 15ms linear;z-index:-1}.calendar-month-year-toggle.ion-focused::after{background:currentColor}.calendar-month-year-toggle:disabled{opacity:0.3;pointer-events:none}.calendar-month-year-toggle ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}ion-picker{--highlight-background:var(--wheel-highlight-background);--highlight-border-radius:var(--wheel-highlight-border-radius);--fade-background-rgb:var(--wheel-fade-background-rgb)}:host .datetime-action-buttons{-ms-flex-pack:justify;justify-content:space-between}:host{--background:var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));--title-color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color){--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-primary, #0054e9);color:var(--title-color)}:host(.ion-color) .datetime-header{background:var(--ion-color-base)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}.calendar-next-prev ion-button{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.calendar-next-prev ion-button ion-icon[slot=icon-only]{font-size:1.8em}.calendar-month-year-toggle{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;min-height:48px;background:transparent;color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959));z-index:1}.calendar-month-year-toggle.ion-focused::after{opacity:0.04}.calendar-month-year-toggle ion-ripple-effect{color:currentColor}@media (any-hover: hover){.calendar-month-year-toggle.ion-activatable:not(.ion-focused):hover::after{background:currentColor;opacity:0.04}}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray));font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-primary, #0054e9);color:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active,:host .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-adjacent-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active,.calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-primary, #0054e9);background:var(--ion-color-primary, #0054e9)}:host(.ion-color) .calendar-day.calendar-day-active,:host(.ion-color) .calendar-day.calendar-day-active:focus{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .calendar-day.calendar-day-adjacent-day{color:var(--ion-color-step-500, var(--ion-text-color-step-500, gray))}:host{--range-background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);--range-track-height:42px;--range-track-edge-overflow:10px}:host(.ion-color){--range-background:rgba(var(--ion-color-base-rgb), 0.12)}:host .calendar-day.calendar-day-range-start,:host .calendar-day.calendar-day-range-end{border-radius:50%;background:var(--ion-color-primary, #0054e9);color:var(--ion-color-primary-contrast, #fff)}:host(.ion-color) .calendar-day.calendar-day-range-start,:host(.ion-color) .calendar-day.calendar-day-range-end{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, var(--ion-text-color-step-350, #595959))}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}`;
|
|
17719
17854
|
|
|
17720
17855
|
/**
|
|
17721
17856
|
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
@@ -17759,7 +17894,8 @@ const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flo
|
|
|
17759
17894
|
*/
|
|
17760
17895
|
class Datetime {
|
|
17761
17896
|
constructor(hostRef) {
|
|
17762
|
-
|
|
17897
|
+
if (new.target === Datetime)
|
|
17898
|
+
registerInstance(this, hostRef);
|
|
17763
17899
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
17764
17900
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
17765
17901
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
@@ -18044,13 +18180,15 @@ class Datetime {
|
|
|
18044
18180
|
* Handles range selection logic when a day is clicked.
|
|
18045
18181
|
*
|
|
18046
18182
|
* Creating a new range: first click sets start, second sets end.
|
|
18047
|
-
*
|
|
18048
|
-
*
|
|
18183
|
+
* Modifying an existing range:
|
|
18184
|
+
* - Before range → new start
|
|
18185
|
+
* - Within range → new end
|
|
18186
|
+
* - After range → new end
|
|
18049
18187
|
* If the resulting span contains a disabled date, start a new range instead.
|
|
18050
18188
|
*/
|
|
18051
18189
|
this.setActivePartsRange = (parts) => {
|
|
18052
18190
|
const current = this.rangeParts;
|
|
18053
|
-
if (!current || current.
|
|
18191
|
+
if (!current || isBefore(parts, current.start) || this.rangeContainsDisabledDate(current.start, parts)) {
|
|
18054
18192
|
this.activeParts = { start: parts };
|
|
18055
18193
|
}
|
|
18056
18194
|
else {
|
|
@@ -18492,19 +18630,7 @@ class Datetime {
|
|
|
18492
18630
|
startParts = endParts;
|
|
18493
18631
|
endParts = temp;
|
|
18494
18632
|
}
|
|
18495
|
-
|
|
18496
|
-
// If the entire range falls outside min/max, clear the selection.
|
|
18497
|
-
const clampedStart = clampDate(startParts, minParts, maxParts);
|
|
18498
|
-
const clampedEnd = endParts ? clampDate(endParts, minParts, maxParts) : undefined;
|
|
18499
|
-
const rangeFullyOutOfBounds = clampedEnd && endParts && isSameDay(clampedStart, clampedEnd) && !isSameDay(startParts, endParts);
|
|
18500
|
-
if (rangeFullyOutOfBounds) {
|
|
18501
|
-
this.activeParts = [];
|
|
18502
|
-
}
|
|
18503
|
-
else {
|
|
18504
|
-
startParts = clampedStart;
|
|
18505
|
-
endParts = clampedEnd;
|
|
18506
|
-
this.activeParts = endParts ? { start: startParts, end: endParts } : { start: startParts };
|
|
18507
|
-
}
|
|
18633
|
+
this.activeParts = endParts ? { start: startParts, end: endParts } : { start: startParts };
|
|
18508
18634
|
/**
|
|
18509
18635
|
* Stay on the end date's month when it is already showing, such as
|
|
18510
18636
|
* right after the user picks it, instead of jumping back to the start.
|
|
@@ -19918,7 +20044,7 @@ class Datetime {
|
|
|
19918
20044
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
19919
20045
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
19920
20046
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
19921
|
-
return (hAsync(Host, { key: '
|
|
20047
|
+
return (hAsync(Host, { key: '2510c26c29afd1a34d6ee71a9ffa00b4a7dd716e', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: {
|
|
19922
20048
|
...createColorClasses$1(color, {
|
|
19923
20049
|
[theme]: true,
|
|
19924
20050
|
['datetime-readonly']: readonly,
|
|
@@ -19931,7 +20057,7 @@ class Datetime {
|
|
|
19931
20057
|
[`datetime-grid`]: isGridStyle,
|
|
19932
20058
|
[`datetime-range`]: this.isRangeMode,
|
|
19933
20059
|
}),
|
|
19934
|
-
} }, hAsync("div", { key: '
|
|
20060
|
+
} }, hAsync("div", { key: 'b245de6585c7dc5ccfa6f0f8be8474206380acfe', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(theme)));
|
|
19935
20061
|
}
|
|
19936
20062
|
get el() { return getElement(this); }
|
|
19937
20063
|
static get watchers() { return {
|
|
@@ -20051,7 +20177,8 @@ const datetimeButtonMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-fl
|
|
|
20051
20177
|
*/
|
|
20052
20178
|
class DatetimeButton {
|
|
20053
20179
|
constructor(hostRef) {
|
|
20054
|
-
|
|
20180
|
+
if (new.target === DatetimeButton)
|
|
20181
|
+
registerInstance(this, hostRef);
|
|
20055
20182
|
this.datetimeEl = null;
|
|
20056
20183
|
this.overlayEl = null;
|
|
20057
20184
|
this.datetimePresentation = 'date-time';
|
|
@@ -20437,7 +20564,8 @@ const dividerMdCss = () => `:host{--margin-top:0px;--margin-bottom:0px;--padding
|
|
|
20437
20564
|
|
|
20438
20565
|
class Divider {
|
|
20439
20566
|
constructor(hostRef) {
|
|
20440
|
-
|
|
20567
|
+
if (new.target === Divider)
|
|
20568
|
+
registerInstance(this, hostRef);
|
|
20441
20569
|
/**
|
|
20442
20570
|
* Set to `"xxsmall"` for the smallest spacing.
|
|
20443
20571
|
* Set to "xsmall" for very small spacing.
|
|
@@ -20490,7 +20618,8 @@ const fabCss = () => `:host{position:absolute;width:-webkit-fit-content;width:-m
|
|
|
20490
20618
|
*/
|
|
20491
20619
|
class Fab {
|
|
20492
20620
|
constructor(hostRef) {
|
|
20493
|
-
|
|
20621
|
+
if (new.target === Fab)
|
|
20622
|
+
registerInstance(this, hostRef);
|
|
20494
20623
|
/**
|
|
20495
20624
|
* If `true`, the fab will display on the edge of the header if
|
|
20496
20625
|
* `vertical` is `"top"`, and on the edge of the footer if
|
|
@@ -20586,7 +20715,8 @@ const fabButtonMdCss = () => `:host{--color-activated:var(--color);--color-focus
|
|
|
20586
20715
|
*/
|
|
20587
20716
|
class FabButton {
|
|
20588
20717
|
constructor(hostRef) {
|
|
20589
|
-
|
|
20718
|
+
if (new.target === FabButton)
|
|
20719
|
+
registerInstance(this, hostRef);
|
|
20590
20720
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
20591
20721
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
20592
20722
|
this.fab = null;
|
|
@@ -20801,7 +20931,8 @@ const fabListCss = () => `:host{margin-left:0;margin-right:0;margin-top:calc(100
|
|
|
20801
20931
|
*/
|
|
20802
20932
|
class FabList {
|
|
20803
20933
|
constructor(hostRef) {
|
|
20804
|
-
|
|
20934
|
+
if (new.target === FabList)
|
|
20935
|
+
registerInstance(this, hostRef);
|
|
20805
20936
|
this.activateTimeouts = [];
|
|
20806
20937
|
/**
|
|
20807
20938
|
* If `true`, the fab list will show all fab buttons in the list.
|
|
@@ -21422,7 +21553,8 @@ const footerMdCss = () => `ion-footer{display:block;position:relative;-ms-flex-o
|
|
|
21422
21553
|
*/
|
|
21423
21554
|
class Footer {
|
|
21424
21555
|
constructor(hostRef) {
|
|
21425
|
-
|
|
21556
|
+
if (new.target === Footer)
|
|
21557
|
+
registerInstance(this, hostRef);
|
|
21426
21558
|
this.keyboardCtrl = null;
|
|
21427
21559
|
this.keyboardCtrlPromise = null;
|
|
21428
21560
|
this.scrollHideCtrlPromise = null;
|
|
@@ -21679,7 +21811,8 @@ const GALLERY_ITEM_SELECTOR = 'ion-gallery-item';
|
|
|
21679
21811
|
*/
|
|
21680
21812
|
class Gallery {
|
|
21681
21813
|
constructor(hostRef) {
|
|
21682
|
-
|
|
21814
|
+
if (new.target === Gallery)
|
|
21815
|
+
registerInstance(this, hostRef);
|
|
21683
21816
|
// Keep track of whether we've warned about invalid columns, invalid gap,
|
|
21684
21817
|
// and unused order properties to avoid duplicate warnings on screen resize.
|
|
21685
21818
|
this.hasWarnedInvalidColumns = false;
|
|
@@ -22233,7 +22366,8 @@ const galleryItemCss = () => `:host{display:block;width:100%}::slotted(*){margin
|
|
|
22233
22366
|
*/
|
|
22234
22367
|
class GalleryItem {
|
|
22235
22368
|
constructor(hostRef) {
|
|
22236
|
-
|
|
22369
|
+
if (new.target === GalleryItem)
|
|
22370
|
+
registerInstance(this, hostRef);
|
|
22237
22371
|
this.hasWarnedInvalidParent = false;
|
|
22238
22372
|
this.onSlotChange = () => {
|
|
22239
22373
|
this.warnInvalidParent();
|
|
@@ -22297,7 +22431,8 @@ const gridCss = () => `:host{-webkit-padding-start:var(--ion-grid-padding-xs, va
|
|
|
22297
22431
|
*/
|
|
22298
22432
|
class Grid {
|
|
22299
22433
|
constructor(hostRef) {
|
|
22300
|
-
|
|
22434
|
+
if (new.target === Grid)
|
|
22435
|
+
registerInstance(this, hostRef);
|
|
22301
22436
|
/**
|
|
22302
22437
|
* If `true`, the grid will have a fixed width based on the screen size.
|
|
22303
22438
|
*/
|
|
@@ -22559,7 +22694,8 @@ const headerMdCss = () => `ion-header{display:block;position:relative;-ms-flex-o
|
|
|
22559
22694
|
*/
|
|
22560
22695
|
class Header {
|
|
22561
22696
|
constructor(hostRef) {
|
|
22562
|
-
|
|
22697
|
+
if (new.target === Header)
|
|
22698
|
+
registerInstance(this, hostRef);
|
|
22563
22699
|
this.inheritedAttributes = {};
|
|
22564
22700
|
this.scrollHideCtrlPromise = null;
|
|
22565
22701
|
this.hasWarnedCollapse = false;
|
|
@@ -22885,7 +23021,8 @@ const iconCss = () => `:host{display:inline-block;width:1em;height:1em;font-size
|
|
|
22885
23021
|
|
|
22886
23022
|
class Icon {
|
|
22887
23023
|
constructor(hostRef) {
|
|
22888
|
-
|
|
23024
|
+
if (new.target === Icon)
|
|
23025
|
+
registerInstance(this, hostRef);
|
|
22889
23026
|
this.iconName = null;
|
|
22890
23027
|
this.inheritedAttributes = {};
|
|
22891
23028
|
this.didLoadIcon = false;
|
|
@@ -23070,7 +23207,8 @@ const imgCss = () => `:host{display:block;-o-object-fit:contain;object-fit:conta
|
|
|
23070
23207
|
*/
|
|
23071
23208
|
class Img {
|
|
23072
23209
|
constructor(hostRef) {
|
|
23073
|
-
|
|
23210
|
+
if (new.target === Img)
|
|
23211
|
+
registerInstance(this, hostRef);
|
|
23074
23212
|
this.ionImgWillLoad = createEvent(this, "ionImgWillLoad", 7);
|
|
23075
23213
|
this.ionImgDidLoad = createEvent(this, "ionImgDidLoad", 7);
|
|
23076
23214
|
this.ionError = createEvent(this, "ionError", 7);
|
|
@@ -23195,7 +23333,8 @@ const infiniteScrollCss = () => `ion-infinite-scroll{display:none;width:100%}.in
|
|
|
23195
23333
|
*/
|
|
23196
23334
|
class InfiniteScroll {
|
|
23197
23335
|
constructor(hostRef) {
|
|
23198
|
-
|
|
23336
|
+
if (new.target === InfiniteScroll)
|
|
23337
|
+
registerInstance(this, hostRef);
|
|
23199
23338
|
this.ionInfinite = createEvent(this, "ionInfinite", 7);
|
|
23200
23339
|
this.thrPx = 0;
|
|
23201
23340
|
this.thrPc = 0;
|
|
@@ -23495,7 +23634,8 @@ const infiniteScrollContentMdCss = () => `ion-infinite-scroll-content{display:-m
|
|
|
23495
23634
|
*/
|
|
23496
23635
|
class InfiniteScrollContent {
|
|
23497
23636
|
constructor(hostRef) {
|
|
23498
|
-
|
|
23637
|
+
if (new.target === InfiniteScrollContent)
|
|
23638
|
+
registerInstance(this, hostRef);
|
|
23499
23639
|
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
23500
23640
|
}
|
|
23501
23641
|
componentDidLoad() {
|
|
@@ -23691,7 +23831,8 @@ const inputMdCss = () => `.sc-ion-input-md-h{--placeholder-color:initial;--place
|
|
|
23691
23831
|
*/
|
|
23692
23832
|
class Input {
|
|
23693
23833
|
constructor(hostRef) {
|
|
23694
|
-
|
|
23834
|
+
if (new.target === Input)
|
|
23835
|
+
registerInstance(this, hostRef);
|
|
23695
23836
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
23696
23837
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
23697
23838
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -23906,6 +24047,15 @@ class Input {
|
|
|
23906
24047
|
onClickCapture(ev) {
|
|
23907
24048
|
this.clickController?.handleClickCapture(ev);
|
|
23908
24049
|
}
|
|
24050
|
+
/**
|
|
24051
|
+
* Safari clears the field when it restores the page from the back/forward cache.
|
|
24052
|
+
*/
|
|
24053
|
+
onPageShow(ev) {
|
|
24054
|
+
syncValueOnPageRestore(ev, this.nativeInput, () => this.getValue(), (value) => {
|
|
24055
|
+
this.value = value;
|
|
24056
|
+
this.emitInputChange();
|
|
24057
|
+
});
|
|
24058
|
+
}
|
|
23909
24059
|
componentWillLoad() {
|
|
23910
24060
|
this.inheritedAttributes = {
|
|
23911
24061
|
...inheritAriaAttributes(this.el),
|
|
@@ -24282,7 +24432,7 @@ class Input {
|
|
|
24282
24432
|
* the input has a value or is focused.
|
|
24283
24433
|
*/
|
|
24284
24434
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
|
|
24285
|
-
return (hAsync(Host, { key: '
|
|
24435
|
+
return (hAsync(Host, { key: '2792536365fe763b06650c3a1fb1bd4b64af40d2', class: createColorClasses$1(this.color, {
|
|
24286
24436
|
[theme]: true,
|
|
24287
24437
|
'has-value': hasValue,
|
|
24288
24438
|
'has-focus': hasFocus,
|
|
@@ -24295,7 +24445,7 @@ class Input {
|
|
|
24295
24445
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
24296
24446
|
'input-disabled': disabled,
|
|
24297
24447
|
'input-readonly': readonly,
|
|
24298
|
-
}) }, hAsync("label", { key: '
|
|
24448
|
+
}) }, hAsync("label", { key: '413db7526cd69ee1b187fa5a2d296f27255db118', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderField(), shouldRenderHighlight && hAsync("div", { key: '643b9b2a4d13f53b57c4af3c745b656e44c8a36a', class: "input-highlight" })), this.renderBottomContent()));
|
|
24299
24449
|
}
|
|
24300
24450
|
get el() { return getElement(this); }
|
|
24301
24451
|
static get watchers() { return {
|
|
@@ -24362,7 +24512,7 @@ class Input {
|
|
|
24362
24512
|
"setFocus": [64],
|
|
24363
24513
|
"getInputElement": [64]
|
|
24364
24514
|
},
|
|
24365
|
-
"$listeners$": [[2, "click", "onClickCapture"]],
|
|
24515
|
+
"$listeners$": [[2, "click", "onClickCapture"], [8, "pageshow", "onPageShow"]],
|
|
24366
24516
|
"$lazyBundleId$": "-",
|
|
24367
24517
|
"$attrsToReflect$": [["color", "color"], ["disabled", "disabled"], ["readonly", "readonly"]]
|
|
24368
24518
|
}; }
|
|
@@ -24388,7 +24538,8 @@ const inputOtpMdCss = () => `:host{--margin-top:0;--margin-end:0;--margin-bottom
|
|
|
24388
24538
|
*/
|
|
24389
24539
|
class InputOTP {
|
|
24390
24540
|
constructor(hostRef) {
|
|
24391
|
-
|
|
24541
|
+
if (new.target === InputOTP)
|
|
24542
|
+
registerInstance(this, hostRef);
|
|
24392
24543
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
24393
24544
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
24394
24545
|
this.ionComplete = createEvent(this, "ionComplete", 7);
|
|
@@ -25150,7 +25301,8 @@ const mdInputPasswordToggleNativeCss = () => ``;
|
|
|
25150
25301
|
*/
|
|
25151
25302
|
class InputPasswordToggle {
|
|
25152
25303
|
constructor(hostRef) {
|
|
25153
|
-
|
|
25304
|
+
if (new.target === InputPasswordToggle)
|
|
25305
|
+
registerInstance(this, hostRef);
|
|
25154
25306
|
/**
|
|
25155
25307
|
* @internal
|
|
25156
25308
|
*/
|
|
@@ -25282,7 +25434,8 @@ const INDICATOR_CONTROL_SELECTOR = 'ion-checkbox, ion-radio, ion-toggle';
|
|
|
25282
25434
|
*/
|
|
25283
25435
|
class Item {
|
|
25284
25436
|
constructor(hostRef) {
|
|
25285
|
-
|
|
25437
|
+
if (new.target === Item)
|
|
25438
|
+
registerInstance(this, hostRef);
|
|
25286
25439
|
this.labelColorStyles = {};
|
|
25287
25440
|
this.itemStyles = new Map();
|
|
25288
25441
|
this.didLoad = false;
|
|
@@ -25317,13 +25470,15 @@ class Item {
|
|
|
25317
25470
|
buttonChanged() {
|
|
25318
25471
|
// Update the focusable option when the button option is changed
|
|
25319
25472
|
this.focusable = this.isFocusable();
|
|
25473
|
+
this.ariaController?.refresh();
|
|
25320
25474
|
this.tabindexController?.refresh();
|
|
25321
25475
|
}
|
|
25322
25476
|
/**
|
|
25323
|
-
* Adding or removing `href` adds or removes the native element, so `tabindex`
|
|
25324
|
-
* with it. The same goes for `button` in `buttonChanged`.
|
|
25477
|
+
* Adding or removing `href` adds or removes the native element, so `tabindex` and a label
|
|
25478
|
+
* written after load have to move with it. The same goes for `button` in `buttonChanged`.
|
|
25325
25479
|
*/
|
|
25326
25480
|
hrefChanged() {
|
|
25481
|
+
this.ariaController?.refresh();
|
|
25327
25482
|
this.tabindexController?.refresh();
|
|
25328
25483
|
}
|
|
25329
25484
|
labelColorChanged(ev) {
|
|
@@ -25373,12 +25528,11 @@ class Item {
|
|
|
25373
25528
|
}
|
|
25374
25529
|
componentWillLoad() {
|
|
25375
25530
|
/**
|
|
25376
|
-
*
|
|
25377
|
-
* after load
|
|
25378
|
-
* the item is in an `ion-list`.
|
|
25379
|
-
* reads it twice.
|
|
25531
|
+
* A non-clickable item renders a `div`, which ARIA doesn't allow a name on, so an
|
|
25532
|
+
* `aria-label` written after load also stays on the Host, which is a `listitem`
|
|
25533
|
+
* when the item is in an `ion-list`.
|
|
25380
25534
|
*/
|
|
25381
|
-
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
|
|
25535
|
+
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(), [], undefined, () => !this.isClickable());
|
|
25382
25536
|
// An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
25383
25537
|
this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
|
|
25384
25538
|
}
|
|
@@ -25604,7 +25758,7 @@ class Item {
|
|
|
25604
25758
|
* multi-input item, and in a clickable item, which is a second tab stop.
|
|
25605
25759
|
*/
|
|
25606
25760
|
const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
|
|
25607
|
-
return (hAsync(Host, { key: '
|
|
25761
|
+
return (hAsync(Host, { key: 'd061f93463e9745ad581d4ecab550ff8ccd511a9', "aria-disabled": ariaDisabled, class: {
|
|
25608
25762
|
...childStyles,
|
|
25609
25763
|
...labelColorStyles,
|
|
25610
25764
|
...createColorClasses$1(this.color, {
|
|
@@ -25621,7 +25775,7 @@ class Item {
|
|
|
25621
25775
|
'ion-focusable': this.focusable,
|
|
25622
25776
|
'item-rtl': isRTL$1(el),
|
|
25623
25777
|
}),
|
|
25624
|
-
}, role: inList ? 'listitem' : null }, hAsync(TagType, { key: '
|
|
25778
|
+
}, role: inList ? 'listitem' : null }, hAsync(TagType, { key: '4e4c0982c26cf2d6ab40bede7b8fadf3bfe2ead4', ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, hAsync("slot", { key: 'df9c532cf3cd1474b60a4f5d12dae5a895ce2ee9', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), hAsync("div", { key: 'bd501bf6aac4cd402db009bb760022830dac4192', class: "item-inner", part: "inner" }, hAsync("div", { key: '27d307c0180d5a7365ad8408a515509c37944d76', class: "input-wrapper", part: "container" }, hAsync("slot", { key: '11a99619fff888acbe9a81641e62d1d6af7b23c8', onSlotchange: this.updateInteractivityOnSlotChange })), hAsync("slot", { key: '7f4403adfcaa75d50eb75355c595ee079fa09cc3', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (hAsync("ion-icon", { key: '1125905813ba10513e0eb019b23901fb22114155', icon: itemDetailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": shouldFlipIcon }))), canActivate && theme === 'md' && hAsync("ion-ripple-effect", { key: 'd53f59912defccfb7bae0c97781e2089a1676693' }))));
|
|
25625
25779
|
}
|
|
25626
25780
|
get el() { return getElement(this); }
|
|
25627
25781
|
static get watchers() { return {
|
|
@@ -25684,7 +25838,8 @@ const itemDividerMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padd
|
|
|
25684
25838
|
*/
|
|
25685
25839
|
class ItemDivider {
|
|
25686
25840
|
constructor(hostRef) {
|
|
25687
|
-
|
|
25841
|
+
if (new.target === ItemDivider)
|
|
25842
|
+
registerInstance(this, hostRef);
|
|
25688
25843
|
/**
|
|
25689
25844
|
* When it's set to `true`, the item-divider will stay visible when it reaches the top
|
|
25690
25845
|
* of the viewport until the next `ion-item-divider` replaces it.
|
|
@@ -25733,7 +25888,8 @@ const itemGroupMdCss = () => `ion-item-group{display:block}`;
|
|
|
25733
25888
|
*/
|
|
25734
25889
|
class ItemGroup {
|
|
25735
25890
|
constructor(hostRef) {
|
|
25736
|
-
|
|
25891
|
+
if (new.target === ItemGroup)
|
|
25892
|
+
registerInstance(this, hostRef);
|
|
25737
25893
|
}
|
|
25738
25894
|
render() {
|
|
25739
25895
|
const theme = getIonTheme(this);
|
|
@@ -25782,7 +25938,8 @@ const itemOptionMdCss = () => `:host{background:var(--background);color:var(--co
|
|
|
25782
25938
|
*/
|
|
25783
25939
|
class ItemOption {
|
|
25784
25940
|
constructor(hostRef) {
|
|
25785
|
-
|
|
25941
|
+
if (new.target === ItemOption)
|
|
25942
|
+
registerInstance(this, hostRef);
|
|
25786
25943
|
/**
|
|
25787
25944
|
* If `true`, the user cannot interact with the item option.
|
|
25788
25945
|
*/
|
|
@@ -25891,7 +26048,8 @@ const itemOptionsMdCss = () => `ion-item-options{top:0;right:0;-ms-flex-pack:end
|
|
|
25891
26048
|
*/
|
|
25892
26049
|
class ItemOptions {
|
|
25893
26050
|
constructor(hostRef) {
|
|
25894
|
-
|
|
26051
|
+
if (new.target === ItemOptions)
|
|
26052
|
+
registerInstance(this, hostRef);
|
|
25895
26053
|
this.ionSwipe = createEvent(this, "ionSwipe", 7);
|
|
25896
26054
|
/**
|
|
25897
26055
|
* 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.
|
|
@@ -26013,7 +26171,8 @@ let openSlidingItem;
|
|
|
26013
26171
|
*/
|
|
26014
26172
|
class ItemSliding {
|
|
26015
26173
|
constructor(hostRef) {
|
|
26016
|
-
|
|
26174
|
+
if (new.target === ItemSliding)
|
|
26175
|
+
registerInstance(this, hostRef);
|
|
26017
26176
|
this.ionDrag = createEvent(this, "ionDrag", 7);
|
|
26018
26177
|
this.item = null;
|
|
26019
26178
|
this.openAmount = 0;
|
|
@@ -26821,7 +26980,8 @@ const labelMdCss = () => `:host(.in-item){--color:initial;display:block;color:va
|
|
|
26821
26980
|
*/
|
|
26822
26981
|
class Label {
|
|
26823
26982
|
constructor(hostRef) {
|
|
26824
|
-
|
|
26983
|
+
if (new.target === Label)
|
|
26984
|
+
registerInstance(this, hostRef);
|
|
26825
26985
|
this.ionColor = createEvent(this, "ionColor", 7);
|
|
26826
26986
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
26827
26987
|
this.inRange = false;
|
|
@@ -26921,7 +27081,8 @@ const listMdCss = () => `ion-list{margin-left:0;margin-right:0;margin-top:0;marg
|
|
|
26921
27081
|
*/
|
|
26922
27082
|
class List {
|
|
26923
27083
|
constructor(hostRef) {
|
|
26924
|
-
|
|
27084
|
+
if (new.target === List)
|
|
27085
|
+
registerInstance(this, hostRef);
|
|
26925
27086
|
/**
|
|
26926
27087
|
* If `true`, the list will have margin around it and rounded corners.
|
|
26927
27088
|
*/
|
|
@@ -27004,7 +27165,8 @@ const listHeaderMdCss = () => `:host{--border-style:solid;--border-width:0;--inn
|
|
|
27004
27165
|
*/
|
|
27005
27166
|
class ListHeader {
|
|
27006
27167
|
constructor(hostRef) {
|
|
27007
|
-
|
|
27168
|
+
if (new.target === ListHeader)
|
|
27169
|
+
registerInstance(this, hostRef);
|
|
27008
27170
|
}
|
|
27009
27171
|
render() {
|
|
27010
27172
|
const { lines } = this;
|
|
@@ -27133,7 +27295,8 @@ const loadingMdCss = () => `.sc-ion-loading-md-h{--min-width:auto;--width:auto;-
|
|
|
27133
27295
|
*/
|
|
27134
27296
|
class Loading {
|
|
27135
27297
|
constructor(hostRef) {
|
|
27136
|
-
|
|
27298
|
+
if (new.target === Loading)
|
|
27299
|
+
registerInstance(this, hostRef);
|
|
27137
27300
|
this.didPresent = createEvent(this, "ionLoadingDidPresent", 7);
|
|
27138
27301
|
this.willPresent = createEvent(this, "ionLoadingWillPresent", 7);
|
|
27139
27302
|
this.willDismiss = createEvent(this, "ionLoadingWillDismiss", 7);
|
|
@@ -27308,14 +27471,14 @@ class Loading {
|
|
|
27308
27471
|
* Otherwise, don't set aria-labelledby.
|
|
27309
27472
|
*/
|
|
27310
27473
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
27311
|
-
return (hAsync(Host, { key: '
|
|
27474
|
+
return (hAsync(Host, { key: '6bb4757eb4f4105847cbe7330a1952a98f05429e', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1", ...htmlAttributes, style: {
|
|
27312
27475
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
27313
27476
|
}, onIonBackdropTap: this.onBackdropTap, class: {
|
|
27314
27477
|
...getClassMap(this.cssClass),
|
|
27315
27478
|
[theme]: true,
|
|
27316
27479
|
'overlay-hidden': true,
|
|
27317
27480
|
'loading-translucent': this.translucent,
|
|
27318
|
-
} }, hAsync("ion-backdrop", { key: '
|
|
27481
|
+
} }, hAsync("ion-backdrop", { key: '328f7f50519bd81fa1b1358dbdb0e678623a64e7', visible: this.showBackdrop, tappable: this.backdropDismiss }), hAsync(OverlayFocusBoundary, { key: '5e48890d9e805b5a37347c6c4539a3124e412860', overlay: this.el, edge: "start" }), hAsync("div", { key: 'a95bfdaad1483ad7f78a9aeb8384dac00eac635f', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (hAsync("div", { key: '5d1b43ab0f291c8d5cd35082f7bb4a7160cca30d', class: "loading-spinner" }, hAsync("ion-spinner", { key: 'c0adb20c7d748d7a6adaba81d9e5159f19e9f480', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), hAsync(OverlayFocusBoundary, { key: '46b5a0dceb337a8baa2ae9a4be50c46e06218cdc', overlay: this.el, edge: "end" })));
|
|
27319
27482
|
}
|
|
27320
27483
|
get el() { return getElement(this); }
|
|
27321
27484
|
static get watchers() { return {
|
|
@@ -27764,7 +27927,8 @@ const mdEasingReverse = 'cubic-bezier(0.4, 0, 0.6, 1)';
|
|
|
27764
27927
|
*/
|
|
27765
27928
|
class Menu {
|
|
27766
27929
|
constructor(hostRef) {
|
|
27767
|
-
|
|
27930
|
+
if (new.target === Menu)
|
|
27931
|
+
registerInstance(this, hostRef);
|
|
27768
27932
|
this.ionWillOpen = createEvent(this, "ionWillOpen", 7);
|
|
27769
27933
|
this.ionWillClose = createEvent(this, "ionWillClose", 7);
|
|
27770
27934
|
this.ionDidOpen = createEvent(this, "ionDidOpen", 7);
|
|
@@ -28481,7 +28645,8 @@ const menuButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
|
|
|
28481
28645
|
*/
|
|
28482
28646
|
class MenuButton {
|
|
28483
28647
|
constructor(hostRef) {
|
|
28484
|
-
|
|
28648
|
+
if (new.target === MenuButton)
|
|
28649
|
+
registerInstance(this, hostRef);
|
|
28485
28650
|
this.inheritedAttributes = {};
|
|
28486
28651
|
this.visible = false;
|
|
28487
28652
|
/**
|
|
@@ -28580,7 +28745,8 @@ const menuToggleCss = () => `:host(.menu-toggle-hidden){display:none}`;
|
|
|
28580
28745
|
*/
|
|
28581
28746
|
class MenuToggle {
|
|
28582
28747
|
constructor(hostRef) {
|
|
28583
|
-
|
|
28748
|
+
if (new.target === MenuToggle)
|
|
28749
|
+
registerInstance(this, hostRef);
|
|
28584
28750
|
this.visible = false;
|
|
28585
28751
|
/**
|
|
28586
28752
|
* Automatically hides the content when the corresponding menu is not active.
|
|
@@ -30817,7 +30983,8 @@ const onRootSafeAreaTopChange = (callback) => {
|
|
|
30817
30983
|
* corresponding safe-area insets. A modal that does not span an axis reaches
|
|
30818
30984
|
* neither edge on that axis.
|
|
30819
30985
|
*
|
|
30820
|
-
* When both `--width` and `--height` are `fullscreen
|
|
30986
|
+
* When both `--width` and `--height` are `fullscreen` and neither
|
|
30987
|
+
* `--max-width` nor `--max-height` is a definite size, coverage can be
|
|
30821
30988
|
* determined directly. Otherwise, coverage is based on the rendered wrapper,
|
|
30822
30989
|
* including cases where content sizing or `--max-height` causes the modal
|
|
30823
30990
|
* to reach the viewport.
|
|
@@ -30826,7 +30993,13 @@ const getModalCoveredAxes = (hostEl) => {
|
|
|
30826
30993
|
const styles = getComputedStyle(hostEl);
|
|
30827
30994
|
const width = getOverlaySizeType(styles.getPropertyValue('--width'));
|
|
30828
30995
|
const height = getOverlaySizeType(styles.getPropertyValue('--height'));
|
|
30829
|
-
|
|
30996
|
+
// --max-width/--max-height (e.g. the select modal in the Ionic theme
|
|
30997
|
+
// sets --max-height: 45%). When clamped, the modal may not reach the
|
|
30998
|
+
// viewport edges, so we fall through to measure the wrapper instead.
|
|
30999
|
+
const maxWidth = getOverlaySizeType(styles.getPropertyValue('--max-width'));
|
|
31000
|
+
const maxHeight = getOverlaySizeType(styles.getPropertyValue('--max-height'));
|
|
31001
|
+
const isClamped = maxWidth === 'definite' || maxHeight === 'definite';
|
|
31002
|
+
if (width === 'fullscreen' && height === 'fullscreen' && !isClamped) {
|
|
30830
31003
|
return { vertical: true, horizontal: true };
|
|
30831
31004
|
}
|
|
30832
31005
|
return measureCoveredAxes(hostEl);
|
|
@@ -30961,11 +31134,11 @@ const clearSafeAreaOverrides = (hostEl) => {
|
|
|
30961
31134
|
hostEl.style.removeProperty('--ion-safe-area-right');
|
|
30962
31135
|
};
|
|
30963
31136
|
|
|
30964
|
-
const modalIonicCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--token-bg-surface-elevation-3, var(--token-primitives-base-white, #ffffff));--box-shadow:var(--token-elevation-4, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-15, 15px) var(--token-shadow-blur-48, 48px) var(--token-shadow-spread-0, 0px) var(--token-shadow-7, rgba(0, 0, 0, 0.18)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-3, 3px) var(--token-shadow-blur-12, 12px) var(--token-shadow-spread-0, 0px) var(--token-shadow-5, rgba(0, 0, 0, 0.12)));--backdrop-opacity:0.7;color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.modal-round){--border-radius:var(--token-border-radius-1000, var(--token-scale-1000, 40px))}:host(.modal-soft){--border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px))}:host(.modal-rectangular){--border-radius:var(--token-border-radius-0, var(--token-scale-0, 0px))}:host(.select-modal.modal-default){--max-height:45%;--max-width:calc(100% - (var(--token-space-400, var(--token-scale-400, 16px)) * 2));--min-height:340px}.modal-handle{right:0px;left:0px;top:var(--token-space-300, var(--token-scale-300, 12px));border-radius:var(--token-border-radius-100, var(--token-scale-100, 4px));width:var(--token-scale-1100, 44px);height:var(--token-scale-100, 4px);background-color:var(--token-primitives-neutral-300, #e6eaee)}.modal-handle::before{-webkit-padding-start:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-start:var(--token-space-100, var(--token-scale-100, 4px));-webkit-padding-end:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-end:var(--token-space-100, var(--token-scale-100, 4px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px))}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + var(--token-scale-250, 10px)))}`;
|
|
31137
|
+
const modalIonicCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}:host(.ion-disable-focus-trap) .ion-overlay-focus-boundary{display:none}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--token-bg-surface-elevation-3, var(--token-primitives-base-white, #ffffff));--box-shadow:var(--token-elevation-4, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-15, 15px) var(--token-shadow-blur-48, 48px) var(--token-shadow-spread-0, 0px) var(--token-shadow-7, rgba(0, 0, 0, 0.18)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-3, 3px) var(--token-shadow-blur-12, 12px) var(--token-shadow-spread-0, 0px) var(--token-shadow-5, rgba(0, 0, 0, 0.12)));--backdrop-opacity:0.7;color:var(--token-text-default, var(--token-primitives-neutral-1200, #242528))}:host(.modal-round){--border-radius:var(--token-border-radius-1000, var(--token-scale-1000, 40px))}:host(.modal-soft){--border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px))}:host(.modal-rectangular){--border-radius:var(--token-border-radius-0, var(--token-scale-0, 0px))}:host(.select-modal.modal-default){--max-height:45%;--max-width:calc(100% - (var(--token-space-400, var(--token-scale-400, 16px)) * 2));--min-height:340px}.modal-handle{right:0px;left:0px;top:var(--token-space-300, var(--token-scale-300, 12px));border-radius:var(--token-border-radius-100, var(--token-scale-100, 4px));width:var(--token-scale-1100, 44px);height:var(--token-scale-100, 4px);background-color:var(--token-primitives-neutral-300, #e6eaee)}.modal-handle::before{-webkit-padding-start:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-start:var(--token-space-100, var(--token-scale-100, 4px));-webkit-padding-end:var(--token-space-100, var(--token-scale-100, 4px));padding-inline-end:var(--token-space-100, var(--token-scale-100, 4px));padding-top:var(--token-space-100, var(--token-scale-100, 4px));padding-bottom:var(--token-space-100, var(--token-scale-100, 4px))}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + var(--token-scale-250, 10px)))}`;
|
|
30965
31138
|
|
|
30966
|
-
const modalIosCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}`;
|
|
31139
|
+
const modalIosCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}:host(.ion-disable-focus-trap) .ion-overlay-focus-boundary{display:none}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}`;
|
|
30967
31140
|
|
|
30968
|
-
const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}`;
|
|
31141
|
+
const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:100%;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;outline:none}.modal-shadow{position:absolute;background:transparent}:host(.ion-disable-focus-trap) .ion-overlay-focus-boundary{display:none}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host(.modal-sheet.modal-no-expand-scroll) ion-footer{position:absolute;bottom:0;width:var(--width)}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;width:36px;height:5px}:host(.modal-sheet){--height:calc(100% - (var(--ion-modal-offset-top, 0px) + 10px))}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}`;
|
|
30969
31142
|
|
|
30970
31143
|
// TODO(FW-2832): types
|
|
30971
31144
|
/**
|
|
@@ -30980,7 +31153,8 @@ const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;-
|
|
|
30980
31153
|
*/
|
|
30981
31154
|
class Modal {
|
|
30982
31155
|
constructor(hostRef) {
|
|
30983
|
-
|
|
31156
|
+
if (new.target === Modal)
|
|
31157
|
+
registerInstance(this, hostRef);
|
|
30984
31158
|
this.didPresent = createEvent(this, "ionModalDidPresent", 7);
|
|
30985
31159
|
this.willPresent = createEvent(this, "ionModalWillPresent", 7);
|
|
30986
31160
|
this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
|
|
@@ -32229,7 +32403,7 @@ class Modal {
|
|
|
32229
32403
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
32230
32404
|
const shape = this.getShape();
|
|
32231
32405
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
32232
|
-
return (hAsync(Host, { key: '
|
|
32406
|
+
return (hAsync(Host, { key: 'd751a17872485c686c1e281bf21bf09b08a5615a', "no-router": true,
|
|
32233
32407
|
// Allow the modal to be navigable when the handle is focusable
|
|
32234
32408
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1, ...htmlAttributes, style: {
|
|
32235
32409
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
@@ -32243,7 +32417,7 @@ class Modal {
|
|
|
32243
32417
|
'overlay-hidden': true,
|
|
32244
32418
|
[FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false,
|
|
32245
32419
|
...getClassMap(this.cssClass),
|
|
32246
|
-
}, onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }, hAsync("ion-backdrop", { key: '
|
|
32420
|
+
}, onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }, hAsync("ion-backdrop", { key: '40d6ab312a1f9496a87f642e310252329804d791', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), theme === 'ios' && hAsync("div", { key: 'b5e6088f5674862fedc1427b6013455833378c1f', class: "modal-shadow" }), hAsync(OverlayFocusBoundary, { key: 'aae591a0895594c855c7a1ac026fd2c872bc3037', overlay: this.el, edge: "start" }), hAsync("div", { key: '7be6c1f17b03a45b60df3ae8514c49e3e97d746c',
|
|
32247
32421
|
/*
|
|
32248
32422
|
role and aria-modal must be used on the
|
|
32249
32423
|
same element. They must also be set inside the
|
|
@@ -32256,9 +32430,9 @@ class Modal {
|
|
|
32256
32430
|
without the tabindex focus() would be a no-op and screen readers
|
|
32257
32431
|
may not properly announce the dialog and its content when it opens.
|
|
32258
32432
|
*/
|
|
32259
|
-
role: "dialog", ...inheritedAttributes, "aria-modal": "true", tabIndex: -1, class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }, showHandle && (hAsync("button", { key: '
|
|
32433
|
+
role: "dialog", ...inheritedAttributes, "aria-modal": "true", tabIndex: -1, class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }, showHandle && (hAsync("button", { key: '0e3c796f6bcd2d7903203ee5d6d338aa8c950eb7', class: "modal-handle",
|
|
32260
32434
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
32261
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", "data-focus-order": "1", ref: (el) => (this.dragHandleEl = el) })), hAsync("slot", { key: '
|
|
32435
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", "data-focus-order": "1", ref: (el) => (this.dragHandleEl = el) })), hAsync("slot", { key: 'a789eb2fe3fc98979ce6284b87b6f7ca156892d0', onSlotchange: this.onSlotChange })), hAsync(OverlayFocusBoundary, { key: '318a8ad3719d37f858e165f3c2c759dbbdb2955e', overlay: this.el, edge: "end" })));
|
|
32262
32436
|
}
|
|
32263
32437
|
get el() { return getElement(this); }
|
|
32264
32438
|
static get watchers() { return {
|
|
@@ -32394,7 +32568,8 @@ const navCss = () => `:host{right:0;left:0;top:0;bottom:0;position:absolute;cont
|
|
|
32394
32568
|
*/
|
|
32395
32569
|
class Nav {
|
|
32396
32570
|
constructor(hostRef) {
|
|
32397
|
-
|
|
32571
|
+
if (new.target === Nav)
|
|
32572
|
+
registerInstance(this, hostRef);
|
|
32398
32573
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
32399
32574
|
this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
|
|
32400
32575
|
this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
|
|
@@ -33134,7 +33309,7 @@ class Nav {
|
|
|
33134
33309
|
}
|
|
33135
33310
|
}
|
|
33136
33311
|
render() {
|
|
33137
|
-
return hAsync("slot", { key: '
|
|
33312
|
+
return hAsync("slot", { key: '034043c38e28e876fc656e2e54f67ee4d5ce85e3' });
|
|
33138
33313
|
}
|
|
33139
33314
|
get el() { return getElement(this); }
|
|
33140
33315
|
static get watchers() { return {
|
|
@@ -33203,7 +33378,8 @@ const navLink = (el, routerDirection, component, componentProps, routerAnimation
|
|
|
33203
33378
|
*/
|
|
33204
33379
|
class NavLink {
|
|
33205
33380
|
constructor(hostRef) {
|
|
33206
|
-
|
|
33381
|
+
if (new.target === NavLink)
|
|
33382
|
+
registerInstance(this, hostRef);
|
|
33207
33383
|
/**
|
|
33208
33384
|
* The transition direction when navigating to another page.
|
|
33209
33385
|
*/
|
|
@@ -33213,7 +33389,7 @@ class NavLink {
|
|
|
33213
33389
|
};
|
|
33214
33390
|
}
|
|
33215
33391
|
render() {
|
|
33216
|
-
return hAsync(Host, { key: '
|
|
33392
|
+
return hAsync(Host, { key: '10d9404e91c656e008d8c14f48311c3d0c0234fc', onClick: this.onClick });
|
|
33217
33393
|
}
|
|
33218
33394
|
get el() { return getElement(this); }
|
|
33219
33395
|
static get cmpMeta() { return {
|
|
@@ -33243,13 +33419,14 @@ const noteMdCss = () => `:host{color:var(--color);font-family:var(--ion-font-fam
|
|
|
33243
33419
|
*/
|
|
33244
33420
|
class Note {
|
|
33245
33421
|
constructor(hostRef) {
|
|
33246
|
-
|
|
33422
|
+
if (new.target === Note)
|
|
33423
|
+
registerInstance(this, hostRef);
|
|
33247
33424
|
}
|
|
33248
33425
|
render() {
|
|
33249
33426
|
const theme = getIonTheme(this);
|
|
33250
|
-
return (hAsync(Host, { key: '
|
|
33427
|
+
return (hAsync(Host, { key: '683f5da066f10c3899f97d18f97857431538ac85', class: createColorClasses$1(this.color, {
|
|
33251
33428
|
[theme]: true,
|
|
33252
|
-
}) }, hAsync("slot", { key: '
|
|
33429
|
+
}) }, hAsync("slot", { key: 'b3fd619eeda60a03ba60b7202646a2f46f7a26f5' })));
|
|
33253
33430
|
}
|
|
33254
33431
|
static get style() { return {
|
|
33255
33432
|
ionic: ionicNoteMdCss(),
|
|
@@ -33280,7 +33457,8 @@ const pickerMdCss = () => `:host{display:-ms-flexbox;display:flex;position:relat
|
|
|
33280
33457
|
*/
|
|
33281
33458
|
class Picker {
|
|
33282
33459
|
constructor(hostRef) {
|
|
33283
|
-
|
|
33460
|
+
if (new.target === Picker)
|
|
33461
|
+
registerInstance(this, hostRef);
|
|
33284
33462
|
this.ionInputModeChange = createEvent(this, "ionInputModeChange", 7);
|
|
33285
33463
|
this.useInputMode = false;
|
|
33286
33464
|
this.isInHighlightBounds = (ev) => {
|
|
@@ -33770,7 +33948,8 @@ const pickerColumnCss = () => `:host{display:-ms-flexbox;display:flex;position:r
|
|
|
33770
33948
|
*/
|
|
33771
33949
|
class PickerColumn {
|
|
33772
33950
|
constructor(hostRef) {
|
|
33773
|
-
|
|
33951
|
+
if (new.target === PickerColumn)
|
|
33952
|
+
registerInstance(this, hostRef);
|
|
33774
33953
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
33775
33954
|
this.isScrolling = false;
|
|
33776
33955
|
this.isColumnVisible = false;
|
|
@@ -34512,7 +34691,8 @@ const pickerColumnOptionMdCss = () => `.picker-column-option-button{padding-left
|
|
|
34512
34691
|
*/
|
|
34513
34692
|
class PickerColumnOption {
|
|
34514
34693
|
constructor(hostRef) {
|
|
34515
|
-
|
|
34694
|
+
if (new.target === PickerColumnOption)
|
|
34695
|
+
registerInstance(this, hostRef);
|
|
34516
34696
|
/**
|
|
34517
34697
|
* We keep track of the parent picker column
|
|
34518
34698
|
* so we can update the value of it when
|
|
@@ -34591,10 +34771,10 @@ class PickerColumnOption {
|
|
|
34591
34771
|
render() {
|
|
34592
34772
|
const { color, disabled, ariaLabel } = this;
|
|
34593
34773
|
const theme = getIonTheme(this);
|
|
34594
|
-
return (hAsync(Host, { key: '
|
|
34774
|
+
return (hAsync(Host, { key: '4ff52114c63c48798c9f254b1fcd941d6fc6359a', class: createColorClasses$1(color, {
|
|
34595
34775
|
[theme]: true,
|
|
34596
34776
|
['option-disabled']: disabled,
|
|
34597
|
-
}) }, hAsync("div", { key: '
|
|
34777
|
+
}) }, hAsync("div", { key: 'f443e4817e73363248f02fc0a566646990824eef', class: 'picker-column-option-button', role: "button", "aria-label": ariaLabel, onClick: () => this.onClick() }, hAsync("slot", { key: '11b01b7dd45225672dd27c87c0f203147cf76d78' }))));
|
|
34598
34778
|
}
|
|
34599
34779
|
get el() { return getElement(this); }
|
|
34600
34780
|
static get watchers() { return {
|
|
@@ -35771,11 +35951,11 @@ const mdLeaveAnimation$1 = (baseEl) => {
|
|
|
35771
35951
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
35772
35952
|
};
|
|
35773
35953
|
|
|
35774
|
-
const popoverIonicCss = () => `:host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host(.select-popover-rich-content){--width:clamp(250px, calc(100vw - 40px), 400px)}:host{--width:250px;--max-height:90%;--background:var(--token-bg-surface-elevation-3, var(--token-primitives-base-white, #ffffff));--box-shadow:var(--token-elevation-3, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-6, 6px) var(--token-shadow-blur-32, 32px) var(--token-shadow-spread-0, 0px) var(--token-shadow-6, rgba(0, 0, 0, 0.16)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-2, 2px) var(--token-shadow-blur-7, 7px) var(--token-shadow-spread-0, 0px) var(--token-shadow-2, rgba(0, 0, 0, 0.05)));--backdrop-opacity:0.3}.popover-content{border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px));-webkit-transform-origin:left top;transform-origin:left top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}`;
|
|
35954
|
+
const popoverIonicCss = () => `:host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}:host(.ion-disable-focus-trap) .ion-overlay-focus-boundary{display:none}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host(.select-popover-rich-content){--width:clamp(250px, calc(100vw - 40px), 400px)}:host{--width:250px;--max-height:90%;--background:var(--token-bg-surface-elevation-3, var(--token-primitives-base-white, #ffffff));--box-shadow:var(--token-elevation-3, var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-6, 6px) var(--token-shadow-blur-32, 32px) var(--token-shadow-spread-0, 0px) var(--token-shadow-6, rgba(0, 0, 0, 0.16)), var(--token-shadow-offset-0, 0px) var(--token-shadow-offset-2, 2px) var(--token-shadow-blur-7, 7px) var(--token-shadow-spread-0, 0px) var(--token-shadow-2, rgba(0, 0, 0, 0.05)));--backdrop-opacity:0.3}.popover-content{border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px));-webkit-transform-origin:left top;transform-origin:left top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}`;
|
|
35775
35955
|
|
|
35776
|
-
const popoverIosCss = () => `:host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host(.select-popover-rich-content){--width:clamp(250px, calc(100vw - 40px), 400px)}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden;z-index:11}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}.popover-arrow::after{inset-inline-start:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}`;
|
|
35956
|
+
const popoverIosCss = () => `:host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}:host(.ion-disable-focus-trap) .ion-overlay-focus-boundary{display:none}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host(.select-popover-rich-content){--width:clamp(250px, calc(100vw - 40px), 400px)}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden;z-index:11}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}.popover-arrow::after{inset-inline-start:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}`;
|
|
35777
35957
|
|
|
35778
|
-
const popoverMdCss = () => `:host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host(.select-popover-rich-content){--width:clamp(250px, calc(100vw - 40px), 400px)}:host{--width:250px;--max-height:90%;--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);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}`;
|
|
35958
|
+
const popoverMdCss = () => `:host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}:host(.ion-disable-focus-trap) .ion-overlay-focus-boundary{display:none}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}@supports not selector(:dir(rtl)){:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host(.select-popover-rich-content){--width:clamp(250px, calc(100vw - 40px), 400px)}:host{--width:250px;--max-height:90%;--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);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}@supports not selector(:dir(rtl)){:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}`;
|
|
35779
35959
|
|
|
35780
35960
|
// TODO(FW-2832): types
|
|
35781
35961
|
/**
|
|
@@ -35790,7 +35970,8 @@ const popoverMdCss = () => `:host{--background:var(--ion-background-color, #fff)
|
|
|
35790
35970
|
*/
|
|
35791
35971
|
class Popover {
|
|
35792
35972
|
constructor(hostRef) {
|
|
35793
|
-
|
|
35973
|
+
if (new.target === Popover)
|
|
35974
|
+
registerInstance(this, hostRef);
|
|
35794
35975
|
this.didPresent = createEvent(this, "ionPopoverDidPresent", 7);
|
|
35795
35976
|
this.willPresent = createEvent(this, "ionPopoverWillPresent", 7);
|
|
35796
35977
|
this.willDismiss = createEvent(this, "ionPopoverWillDismiss", 7);
|
|
@@ -36266,7 +36447,7 @@ class Popover {
|
|
|
36266
36447
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
36267
36448
|
const desktop = isPlatform('desktop');
|
|
36268
36449
|
const enableArrow = arrow && !parentPopover;
|
|
36269
|
-
return (hAsync(Host, { key: '
|
|
36450
|
+
return (hAsync(Host, { key: '622296253a543188de2c0f63d26351b595490e87', "aria-modal": "true", "no-router": true, tabindex: "-1", ...htmlAttributes, style: {
|
|
36270
36451
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
36271
36452
|
}, class: {
|
|
36272
36453
|
...getClassMap(this.cssClass),
|
|
@@ -36277,7 +36458,7 @@ class Popover {
|
|
|
36277
36458
|
[`popover-side-${side}`]: true,
|
|
36278
36459
|
[FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false,
|
|
36279
36460
|
'popover-nested': !!parentPopover,
|
|
36280
|
-
}, onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }, !parentPopover && hAsync("ion-backdrop", { key: '
|
|
36461
|
+
}, onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }, !parentPopover && hAsync("ion-backdrop", { key: '60f19bfc53c06bd131b24384ca1b6f1b298d41bf', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), hAsync(OverlayFocusBoundary, { key: 'bea9b6f64fff5d473450e8ddd7016ede06fceaa7', overlay: this.el, edge: "start" }), hAsync("div", { key: 'd81f9c032c831a9f0c6a18c692aa5c1474dd0a8c', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && hAsync("div", { key: '43d7fdcf96e994d4bac89d01d6c82f46e6e242fe', class: "popover-arrow", part: "arrow" }), hAsync("div", { key: 'abae7723be6283c79d250830cb4ac3a082e71cc5', class: "popover-content", part: "content" }, hAsync("slot", { key: '557ea2f2e2aa5c7fd80a799959d4ba1c4adf02ac' }))), hAsync(OverlayFocusBoundary, { key: 'eb82c4a705f12d53e23d2255972c1839cb4bb182', overlay: this.el, edge: "end" })));
|
|
36281
36462
|
}
|
|
36282
36463
|
get el() { return getElement(this); }
|
|
36283
36464
|
static get watchers() { return {
|
|
@@ -36364,7 +36545,8 @@ const progressBarMdCss = () => `:host{display:block;position:relative;width:100%
|
|
|
36364
36545
|
*/
|
|
36365
36546
|
class ProgressBar {
|
|
36366
36547
|
constructor(hostRef) {
|
|
36367
|
-
|
|
36548
|
+
if (new.target === ProgressBar)
|
|
36549
|
+
registerInstance(this, hostRef);
|
|
36368
36550
|
/**
|
|
36369
36551
|
* The state of the progress bar, based on if the time the process takes is known or not.
|
|
36370
36552
|
* Default options are: `"determinate"` (no animation), `"indeterminate"` (animate from left to right).
|
|
@@ -36405,7 +36587,7 @@ class ProgressBar {
|
|
|
36405
36587
|
const shape = this.getShape();
|
|
36406
36588
|
// If the progress is displayed as a solid bar.
|
|
36407
36589
|
const progressSolid = buffer === 1;
|
|
36408
|
-
return (hAsync(Host, { key: '
|
|
36590
|
+
return (hAsync(Host, { key: '070dd50f87f88ac405686fbdf804e12780783498', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses$1(color, {
|
|
36409
36591
|
[theme]: true,
|
|
36410
36592
|
[`progress-bar-${type}`]: true,
|
|
36411
36593
|
'progress-paused': paused,
|
|
@@ -36475,7 +36657,8 @@ const radioMdCss = () => `:host{--inner-border-radius:50%;display:inline-block;p
|
|
|
36475
36657
|
*/
|
|
36476
36658
|
class Radio {
|
|
36477
36659
|
constructor(hostRef) {
|
|
36478
|
-
|
|
36660
|
+
if (new.target === Radio)
|
|
36661
|
+
registerInstance(this, hostRef);
|
|
36479
36662
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
36480
36663
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
36481
36664
|
this.inputId = `ion-rb-${radioButtonIds++}`;
|
|
@@ -36673,7 +36856,8 @@ const radioGroupMdCss = () => `:host{display:block}.radio-group-top .error-text{
|
|
|
36673
36856
|
*/
|
|
36674
36857
|
class RadioGroup {
|
|
36675
36858
|
constructor(hostRef) {
|
|
36676
|
-
|
|
36859
|
+
if (new.target === RadioGroup)
|
|
36860
|
+
registerInstance(this, hostRef);
|
|
36677
36861
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
36678
36862
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
36679
36863
|
this.inputId = `ion-rg-${radioGroupIds++}`;
|
|
@@ -37017,7 +37201,8 @@ const rangeMdCss = () => `:host{display:-ms-flexbox;display:flex;position:relati
|
|
|
37017
37201
|
*/
|
|
37018
37202
|
class Range {
|
|
37019
37203
|
constructor(hostRef) {
|
|
37020
|
-
|
|
37204
|
+
if (new.target === Range)
|
|
37205
|
+
registerInstance(this, hostRef);
|
|
37021
37206
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
37022
37207
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
37023
37208
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
@@ -37746,7 +37931,7 @@ class Range {
|
|
|
37746
37931
|
const valueAtMin = dualKnobs ? this.valA === min || this.valB === min : this.valA === min;
|
|
37747
37932
|
const valueAtMax = dualKnobs ? this.valA === max || this.valB === max : this.valA === max;
|
|
37748
37933
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
37749
|
-
return (hAsync(Host, { key: '
|
|
37934
|
+
return (hAsync(Host, { key: '454a2ebded7c6372134a374121d42308f0fd00c6', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
37750
37935
|
[theme]: true,
|
|
37751
37936
|
'in-item': inItem,
|
|
37752
37937
|
'range-disabled': disabled,
|
|
@@ -37760,10 +37945,10 @@ class Range {
|
|
|
37760
37945
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
37761
37946
|
'range-value-min': valueAtMin,
|
|
37762
37947
|
'range-value-max': valueAtMax,
|
|
37763
|
-
}) }, hAsync("label", { key: '
|
|
37948
|
+
}) }, hAsync("label", { key: '487647cdcd054245f03a251e36973eafbae24682', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: 'fefabb9245ab7595629c66dfb351035e535e24a5', class: {
|
|
37764
37949
|
'label-text-wrapper': true,
|
|
37765
37950
|
'label-text-wrapper-hidden': !hasLabel,
|
|
37766
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
37951
|
+
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '16e95ea3159662160230cf55838b9d3c60144d00', class: "native-wrapper" }, hAsync("slot", { key: 'd5226b753ce7489899afdd394fd2bb579d9e702a', name: "start" }), this.renderRangeSlider(), hAsync("slot", { key: '8cfaa7b7c03f70db81a1a7b15e8cb5e99fe69d30', name: "end" })))));
|
|
37767
37952
|
}
|
|
37768
37953
|
get el() { return getElement(this); }
|
|
37769
37954
|
static get watchers() { return {
|
|
@@ -38133,7 +38318,8 @@ const refresherMdCss = () => `ion-refresher{top:0;display:none;position:absolute
|
|
|
38133
38318
|
*/
|
|
38134
38319
|
class Refresher {
|
|
38135
38320
|
constructor(hostRef) {
|
|
38136
|
-
|
|
38321
|
+
if (new.target === Refresher)
|
|
38322
|
+
registerInstance(this, hostRef);
|
|
38137
38323
|
this.ionRefresh = createEvent(this, "ionRefresh", 7);
|
|
38138
38324
|
this.ionPull = createEvent(this, "ionPull", 7);
|
|
38139
38325
|
this.ionStart = createEvent(this, "ionStart", 7);
|
|
@@ -38874,7 +39060,7 @@ class Refresher {
|
|
|
38874
39060
|
}
|
|
38875
39061
|
render() {
|
|
38876
39062
|
const theme = getIonTheme(this);
|
|
38877
|
-
return (hAsync(Host, { key: '
|
|
39063
|
+
return (hAsync(Host, { key: 'a22f9cebf374cf266bf24fbc21af9612f350f5ca', slot: "fixed", class: {
|
|
38878
39064
|
[theme]: true,
|
|
38879
39065
|
// Used internally for styling
|
|
38880
39066
|
[`refresher-${theme}`]: true,
|
|
@@ -39073,7 +39259,8 @@ const mdRefresherContentCss = () => ``;
|
|
|
39073
39259
|
*/
|
|
39074
39260
|
class RefresherContent {
|
|
39075
39261
|
constructor(hostRef) {
|
|
39076
|
-
|
|
39262
|
+
if (new.target === RefresherContent)
|
|
39263
|
+
registerInstance(this, hostRef);
|
|
39077
39264
|
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
39078
39265
|
}
|
|
39079
39266
|
componentWillLoad() {
|
|
@@ -39118,9 +39305,9 @@ class RefresherContent {
|
|
|
39118
39305
|
const pullingIcon = this.pullingIcon;
|
|
39119
39306
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
39120
39307
|
const theme = getIonTheme(this);
|
|
39121
|
-
return (hAsync(Host, { key: '
|
|
39308
|
+
return (hAsync(Host, { key: '0350fdfa30ec5174f3da073f688cf015df7d19de', class: {
|
|
39122
39309
|
[theme]: true,
|
|
39123
|
-
} }, hAsync("div", { key: '
|
|
39310
|
+
} }, hAsync("div", { key: '2dbe3af1f7b1c0950c04a110ca3e64945fc7a10a', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (hAsync("div", { key: '9d0e46a50491a219eafce3b2161dbcffd6950f05', class: "refresher-pulling-icon" }, hAsync("div", { key: '4f916574f07128b79aa1f4887e92718368fa0c38', class: "spinner-arrow-container" }, hAsync("ion-spinner", { key: 'c996523c57ed7d45bead05c77af139d23e6755c9', name: this.pullingIcon, paused: true }), (theme === 'md' || theme === 'ionic') && this.pullingIcon === 'circular' && (hAsync("div", { key: '602a3cab0b29a239b0ae03bd2224437620a0ac63', class: "arrow-container" }, hAsync("ion-icon", { key: 'd944fc61c883e88d85e5f478f612810bda0a4f27', icon: this.refresherArrowIcon, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (hAsync("div", { key: '1de0d69dc97809919853a405fbcd5f61cb336aeb', class: "refresher-pulling-icon" }, hAsync("ion-icon", { key: 'fa06014c8f6c831997ab09f89415efb78f864937', icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), hAsync("div", { key: '7038cd984e54c782f23e62e44b4448b303c2e542', class: "refresher-refreshing" }, this.refreshingSpinner && (hAsync("div", { key: '97f6ea74c9c6bfc562de6d8d97f7dee871543cbd', class: "refresher-refreshing-icon" }, hAsync("ion-spinner", { key: 'e6a741382928f0cff8aa695defbcec5efd1acf3f', name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
39124
39311
|
}
|
|
39125
39312
|
get el() { return getElement(this); }
|
|
39126
39313
|
static get style() { return {
|
|
@@ -39157,7 +39344,8 @@ const reorderMdCss = () => `:host([slot]){display:none;line-height:0;z-index:100
|
|
|
39157
39344
|
*/
|
|
39158
39345
|
class Reorder {
|
|
39159
39346
|
constructor(hostRef) {
|
|
39160
|
-
|
|
39347
|
+
if (new.target === Reorder)
|
|
39348
|
+
registerInstance(this, hostRef);
|
|
39161
39349
|
}
|
|
39162
39350
|
onClick(ev) {
|
|
39163
39351
|
const reorderGroup = this.el.closest('ion-reorder-group');
|
|
@@ -39182,9 +39370,9 @@ class Reorder {
|
|
|
39182
39370
|
render() {
|
|
39183
39371
|
const { reorderHandleIcon } = this;
|
|
39184
39372
|
const theme = getIonTheme(this);
|
|
39185
|
-
return (hAsync(Host, { key: '
|
|
39373
|
+
return (hAsync(Host, { key: '27d5f2d7d58f82f63556cd4b5d677783b3da531e', class: {
|
|
39186
39374
|
[theme]: true,
|
|
39187
|
-
} }, hAsync("slot", { key: '
|
|
39375
|
+
} }, hAsync("slot", { key: '9107ed9511c0a5bcfbeb2bd434c5aa7cb202ee7d' }, hAsync("ion-icon", { key: '95a9cccca2fea267fbe3bc89f4e02e6589a601c9', icon: reorderHandleIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
39188
39376
|
}
|
|
39189
39377
|
get el() { return getElement(this); }
|
|
39190
39378
|
static get style() { return {
|
|
@@ -39210,7 +39398,8 @@ const reorderGroupCss = () => `.reorder-list-active>*{display:block;-webkit-tran
|
|
|
39210
39398
|
*/
|
|
39211
39399
|
class ReorderGroup {
|
|
39212
39400
|
constructor(hostRef) {
|
|
39213
|
-
|
|
39401
|
+
if (new.target === ReorderGroup)
|
|
39402
|
+
registerInstance(this, hostRef);
|
|
39214
39403
|
this.ionItemReorder = createEvent(this, "ionItemReorder", 7);
|
|
39215
39404
|
this.ionReorderStart = createEvent(this, "ionReorderStart", 7);
|
|
39216
39405
|
this.ionReorderMove = createEvent(this, "ionReorderMove", 7);
|
|
@@ -39460,7 +39649,7 @@ class ReorderGroup {
|
|
|
39460
39649
|
}
|
|
39461
39650
|
render() {
|
|
39462
39651
|
const theme = getIonTheme(this);
|
|
39463
|
-
return (hAsync(Host, { key: '
|
|
39652
|
+
return (hAsync(Host, { key: '5aabf1cd3750fc9c6708ef1940014df4c009d430', class: {
|
|
39464
39653
|
[theme]: true,
|
|
39465
39654
|
'reorder-enabled': !this.disabled,
|
|
39466
39655
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -39522,7 +39711,8 @@ const mdRippleEffectCommonCss = () => `:host{right:0;left:0;top:0;bottom:0;posit
|
|
|
39522
39711
|
*/
|
|
39523
39712
|
class RippleEffect {
|
|
39524
39713
|
constructor(hostRef) {
|
|
39525
|
-
|
|
39714
|
+
if (new.target === RippleEffect)
|
|
39715
|
+
registerInstance(this, hostRef);
|
|
39526
39716
|
/**
|
|
39527
39717
|
* Sets the type of ripple-effect:
|
|
39528
39718
|
*
|
|
@@ -39586,7 +39776,7 @@ class RippleEffect {
|
|
|
39586
39776
|
}
|
|
39587
39777
|
render() {
|
|
39588
39778
|
const theme = getIonTheme(this);
|
|
39589
|
-
return (hAsync(Host, { key: '
|
|
39779
|
+
return (hAsync(Host, { key: '77488fb7e6f25d989d9b643489f704284279a986', role: "presentation", class: {
|
|
39590
39780
|
[theme]: true,
|
|
39591
39781
|
unbounded: this.unbounded,
|
|
39592
39782
|
} }));
|
|
@@ -39625,7 +39815,8 @@ const INITIAL_ORIGIN_SCALE = 0.5;
|
|
|
39625
39815
|
*/
|
|
39626
39816
|
class Route {
|
|
39627
39817
|
constructor(hostRef) {
|
|
39628
|
-
|
|
39818
|
+
if (new.target === Route)
|
|
39819
|
+
registerInstance(this, hostRef);
|
|
39629
39820
|
this.ionRouteDataChanged = createEvent(this, "ionRouteDataChanged", 7);
|
|
39630
39821
|
/**
|
|
39631
39822
|
* Relative path that needs to match in order for this route to apply.
|
|
@@ -39687,7 +39878,8 @@ class Route {
|
|
|
39687
39878
|
|
|
39688
39879
|
class RouteRedirect {
|
|
39689
39880
|
constructor(hostRef) {
|
|
39690
|
-
|
|
39881
|
+
if (new.target === RouteRedirect)
|
|
39882
|
+
registerInstance(this, hostRef);
|
|
39691
39883
|
this.ionRouteRedirectChanged = createEvent(this, "ionRouteRedirectChanged", 7);
|
|
39692
39884
|
}
|
|
39693
39885
|
propDidChange() {
|
|
@@ -40379,7 +40571,8 @@ const flattenNode = (chain, chains, node) => {
|
|
|
40379
40571
|
*/
|
|
40380
40572
|
class Router {
|
|
40381
40573
|
constructor(hostRef) {
|
|
40382
|
-
|
|
40574
|
+
if (new.target === Router)
|
|
40575
|
+
registerInstance(this, hostRef);
|
|
40383
40576
|
this.ionRouteWillChange = createEvent(this, "ionRouteWillChange", 7);
|
|
40384
40577
|
this.ionRouteDidChange = createEvent(this, "ionRouteDidChange", 7);
|
|
40385
40578
|
this.previousPath = null;
|
|
@@ -40724,7 +40917,8 @@ const routerLinkCss = () => `:host{--background:transparent;--color:var(--ion-co
|
|
|
40724
40917
|
*/
|
|
40725
40918
|
class RouterLink {
|
|
40726
40919
|
constructor(hostRef) {
|
|
40727
|
-
|
|
40920
|
+
if (new.target === RouterLink)
|
|
40921
|
+
registerInstance(this, hostRef);
|
|
40728
40922
|
/**
|
|
40729
40923
|
* When using a router, it specifies the transition direction when navigating to
|
|
40730
40924
|
* another page using `href`.
|
|
@@ -40751,10 +40945,10 @@ class RouterLink {
|
|
|
40751
40945
|
rel: this.rel,
|
|
40752
40946
|
target: this.target,
|
|
40753
40947
|
};
|
|
40754
|
-
return (hAsync(Host, { key: '
|
|
40948
|
+
return (hAsync(Host, { key: '2b26c1ff94c11c0d231c9384afd301d355700a3a', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
40755
40949
|
[theme]: true,
|
|
40756
40950
|
'ion-activatable': true,
|
|
40757
|
-
}) }, hAsync("a", { key: '
|
|
40951
|
+
}) }, hAsync("a", { key: 'ad53c2663f25beceea6f49ede859eb36c27d7f64', ...attrs, ...tabindexAttributes }, hAsync("slot", { key: 'cabe77eb4d2473712e53a7ab8534ec475a6c469e' }))));
|
|
40758
40952
|
}
|
|
40759
40953
|
get el() { return getElement(this); }
|
|
40760
40954
|
static get style() { return routerLinkCss(); }
|
|
@@ -40782,7 +40976,8 @@ const routerOutletCss = () => `:host{right:0;left:0;top:0;bottom:0;position:abso
|
|
|
40782
40976
|
*/
|
|
40783
40977
|
class RouterOutlet {
|
|
40784
40978
|
constructor(hostRef) {
|
|
40785
|
-
|
|
40979
|
+
if (new.target === RouterOutlet)
|
|
40980
|
+
registerInstance(this, hostRef);
|
|
40786
40981
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
40787
40982
|
this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
|
|
40788
40983
|
this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
|
|
@@ -41000,7 +41195,7 @@ class RouterOutlet {
|
|
|
41000
41195
|
return true;
|
|
41001
41196
|
}
|
|
41002
41197
|
render() {
|
|
41003
|
-
return hAsync("slot", { key: '
|
|
41198
|
+
return hAsync("slot", { key: 'bc08bb5b5a8d5f8b24d491b1ca00e37d7a765f70' });
|
|
41004
41199
|
}
|
|
41005
41200
|
get el() { return getElement(this); }
|
|
41006
41201
|
static get watchers() { return {
|
|
@@ -41040,13 +41235,14 @@ const rowCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;
|
|
|
41040
41235
|
*/
|
|
41041
41236
|
class Row {
|
|
41042
41237
|
constructor(hostRef) {
|
|
41043
|
-
|
|
41238
|
+
if (new.target === Row)
|
|
41239
|
+
registerInstance(this, hostRef);
|
|
41044
41240
|
}
|
|
41045
41241
|
render() {
|
|
41046
41242
|
const theme = getIonTheme(this);
|
|
41047
|
-
return (hAsync(Host, { key: '
|
|
41243
|
+
return (hAsync(Host, { key: '7004407e649f3b5855bd262c5204f4864580096b', class: {
|
|
41048
41244
|
[theme]: true,
|
|
41049
|
-
} }, hAsync("slot", { key: '
|
|
41245
|
+
} }, hAsync("slot", { key: 'afa6d1036796041447ab497abc7e66e3e96fcad5' })));
|
|
41050
41246
|
}
|
|
41051
41247
|
static get style() { return rowCss(); }
|
|
41052
41248
|
static get cmpMeta() { return {
|
|
@@ -41071,7 +41267,8 @@ const searchbarMdCss = () => `.sc-ion-searchbar-md-h{--placeholder-color:initial
|
|
|
41071
41267
|
*/
|
|
41072
41268
|
class Searchbar {
|
|
41073
41269
|
constructor(hostRef) {
|
|
41074
|
-
|
|
41270
|
+
if (new.target === Searchbar)
|
|
41271
|
+
registerInstance(this, hostRef);
|
|
41075
41272
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
41076
41273
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
41077
41274
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
@@ -41296,6 +41493,15 @@ class Searchbar {
|
|
|
41296
41493
|
this.positionElements();
|
|
41297
41494
|
});
|
|
41298
41495
|
}
|
|
41496
|
+
/**
|
|
41497
|
+
* Safari clears the field when it restores the page from the back/forward cache.
|
|
41498
|
+
*/
|
|
41499
|
+
onPageShow(ev) {
|
|
41500
|
+
syncValueOnPageRestore(ev, this.nativeInput, () => this.getValue(), (value) => {
|
|
41501
|
+
this.value = value;
|
|
41502
|
+
this.emitInputChange();
|
|
41503
|
+
});
|
|
41504
|
+
}
|
|
41299
41505
|
connectedCallback() {
|
|
41300
41506
|
this.emitStyle();
|
|
41301
41507
|
}
|
|
@@ -41610,8 +41816,8 @@ class Searchbar {
|
|
|
41610
41816
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
41611
41817
|
const shape = this.getShape();
|
|
41612
41818
|
const size = this.getSize();
|
|
41613
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
41614
|
-
return (hAsync(Host, { key: '
|
|
41819
|
+
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '749a870bd65c9811aa376cd0a1fe5e4c3b914ebb', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: theme === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, hAsync("div", { key: '5bbc081ce2e2560c862304eed92b6cd7beea89cc', "aria-hidden": "true" }, theme === 'md' || theme === 'ionic' ? (hAsync("ion-icon", { "aria-hidden": "true", icon: searchbarCancelIcon, lazy: false })) : (cancelButtonText))));
|
|
41820
|
+
return (hAsync(Host, { key: 'e1962f16f8e3ae8d3468fe4cb412adc6793ede6d', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
41615
41821
|
[theme]: true,
|
|
41616
41822
|
'searchbar-animated': animated,
|
|
41617
41823
|
'searchbar-disabled': this.disabled,
|
|
@@ -41625,7 +41831,7 @@ class Searchbar {
|
|
|
41625
41831
|
[`searchbar-shape-${shape}`]: shape !== undefined,
|
|
41626
41832
|
[`searchbar-size-${size}`]: size !== undefined,
|
|
41627
41833
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
41628
|
-
}) }, hAsync("div", { key: '
|
|
41834
|
+
}) }, hAsync("div", { key: '88d274967055247dc149713e9646b1d5d735ce2a', class: "searchbar-input-container" }, hAsync("input", { key: 'a2bae68fb51fada09f5373724c701e4d8135554e', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect ? 'on' : 'off', spellcheck: this.spellcheck, ...this.inheritedAttributes }), (theme === 'md' || theme === 'ionic') && cancelButton, this.shouldShowSearchIcon() && (hAsync("ion-icon", { key: '0e69c8f41d759981b825a0dce4d1227271fadedd', "aria-hidden": "true", icon: searchbarSearchIcon, lazy: false, class: "searchbar-search-icon" })), this.shouldShowClearButton() && (hAsync("button", { key: '8b71a1b6ed45977815263f02a3d4352494bc4285', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: this.clearButtonPressController.onPointerDown, onPointerCancel: this.clearButtonPressController.release, onClick: () => this.onClearInput(true) }, hAsync("ion-icon", { key: 'b8b23301ea3e4105696be801c6b31809da29dc82', "aria-hidden": "true", icon: searchbarClearIcon, lazy: false, class: "searchbar-clear-icon" })))), theme === 'ios' && cancelButton));
|
|
41629
41835
|
}
|
|
41630
41836
|
get el() { return getElement(this); }
|
|
41631
41837
|
static get watchers() { return {
|
|
@@ -41684,7 +41890,7 @@ class Searchbar {
|
|
|
41684
41890
|
"setFocus": [64],
|
|
41685
41891
|
"getInputElement": [64]
|
|
41686
41892
|
},
|
|
41687
|
-
"$listeners$":
|
|
41893
|
+
"$listeners$": [[8, "pageshow", "onPageShow"]],
|
|
41688
41894
|
"$lazyBundleId$": "-",
|
|
41689
41895
|
"$attrsToReflect$": [["color", "color"]]
|
|
41690
41896
|
}; }
|
|
@@ -41703,7 +41909,8 @@ const segmentMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-font
|
|
|
41703
41909
|
*/
|
|
41704
41910
|
class Segment {
|
|
41705
41911
|
constructor(hostRef) {
|
|
41706
|
-
|
|
41912
|
+
if (new.target === Segment)
|
|
41913
|
+
registerInstance(this, hostRef);
|
|
41707
41914
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
41708
41915
|
this.ionSelect = createEvent(this, "ionSelect", 7);
|
|
41709
41916
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
@@ -42239,14 +42446,14 @@ class Segment {
|
|
|
42239
42446
|
}
|
|
42240
42447
|
render() {
|
|
42241
42448
|
const theme = getIonTheme(this);
|
|
42242
|
-
return (hAsync(Host, { key: '
|
|
42449
|
+
return (hAsync(Host, { key: '4ec0851cf97a626ee5eff118cfc25d337be9a7b7', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
42243
42450
|
[theme]: true,
|
|
42244
42451
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
42245
42452
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
42246
42453
|
'segment-activated': this.activated,
|
|
42247
42454
|
'segment-disabled': this.disabled,
|
|
42248
42455
|
'segment-scrollable': this.scrollable,
|
|
42249
|
-
}) }, hAsync("slot", { key: '
|
|
42456
|
+
}) }, hAsync("slot", { key: '1150ef0e6f7e9f07f4b8fd29b9e53084f58a7c49', onSlotchange: this.onSlottedItemsChange })));
|
|
42250
42457
|
}
|
|
42251
42458
|
get el() { return getElement(this); }
|
|
42252
42459
|
static get watchers() { return {
|
|
@@ -42303,7 +42510,8 @@ let ids = 0;
|
|
|
42303
42510
|
*/
|
|
42304
42511
|
class SegmentButton {
|
|
42305
42512
|
constructor(hostRef) {
|
|
42306
|
-
|
|
42513
|
+
if (new.target === SegmentButton)
|
|
42514
|
+
registerInstance(this, hostRef);
|
|
42307
42515
|
this.segmentEl = null;
|
|
42308
42516
|
this.inheritedAttributes = {};
|
|
42309
42517
|
this.checked = false;
|
|
@@ -42408,7 +42616,7 @@ class SegmentButton {
|
|
|
42408
42616
|
const theme = getIonTheme(this);
|
|
42409
42617
|
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
42410
42618
|
const hasSegmentColor = () => segmentEl?.color !== undefined;
|
|
42411
|
-
return (hAsync(Host, { key: '
|
|
42619
|
+
return (hAsync(Host, { key: 'dc32817bd4d0923bb3bf5f2f410f2cbd8b7e2234', class: {
|
|
42412
42620
|
[theme]: true,
|
|
42413
42621
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
42414
42622
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -42424,7 +42632,7 @@ class SegmentButton {
|
|
|
42424
42632
|
'ion-activatable': true,
|
|
42425
42633
|
'ion-activatable-instant': true,
|
|
42426
42634
|
'ion-focusable': true,
|
|
42427
|
-
} }, hAsync("button", { key: '
|
|
42635
|
+
} }, hAsync("button", { key: '5b96dffc33961df0074b77d2284c228638044859', "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: '3fc1c7751cd68d79bc95f592b7e87fc573bfd68c', class: "button-inner" }, hAsync("slot", { key: 'f2a0f4f95fec17da24e9f4c133542688f63943bc' })), theme === 'md' && hAsync("ion-ripple-effect", { key: '14750d5666ce574612fd13ae52993dbe9c47e162' })), hAsync("div", { key: 'dd60a578385000ca680d6b07158c759dc39e1ca2', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: 'deaa16aa7fd437bdc443151f08e15977ec982ae4', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
42428
42636
|
}
|
|
42429
42637
|
get el() { return getElement(this); }
|
|
42430
42638
|
static get watchers() { return {
|
|
@@ -42459,10 +42667,11 @@ const segmentContentCss = () => `:host{scroll-snap-align:center;scroll-snap-stop
|
|
|
42459
42667
|
|
|
42460
42668
|
class SegmentContent {
|
|
42461
42669
|
constructor(hostRef) {
|
|
42462
|
-
|
|
42670
|
+
if (new.target === SegmentContent)
|
|
42671
|
+
registerInstance(this, hostRef);
|
|
42463
42672
|
}
|
|
42464
42673
|
render() {
|
|
42465
|
-
return (hAsync(Host, { key: '
|
|
42674
|
+
return (hAsync(Host, { key: '665f41a854621f898eaf7ba9a49e77cc9326501e' }, hAsync("slot", { key: '635aa57fbf6167dcd36fe8dc5dfc1c313637ac04' })));
|
|
42466
42675
|
}
|
|
42467
42676
|
static get style() { return segmentContentCss(); }
|
|
42468
42677
|
static get cmpMeta() { return {
|
|
@@ -42483,7 +42692,8 @@ const segmentViewMdCss = () => `:host{display:-ms-flexbox;display:flex;height:10
|
|
|
42483
42692
|
|
|
42484
42693
|
class SegmentView {
|
|
42485
42694
|
constructor(hostRef) {
|
|
42486
|
-
|
|
42695
|
+
if (new.target === SegmentView)
|
|
42696
|
+
registerInstance(this, hostRef);
|
|
42487
42697
|
this.ionSegmentViewScroll = createEvent(this, "ionSegmentViewScroll", 7);
|
|
42488
42698
|
this.scrollEndTimeout = null;
|
|
42489
42699
|
this.isTouching = false;
|
|
@@ -42589,11 +42799,11 @@ class SegmentView {
|
|
|
42589
42799
|
}
|
|
42590
42800
|
render() {
|
|
42591
42801
|
const { disabled, isManualScroll, swipeGesture } = this;
|
|
42592
|
-
return (hAsync(Host, { key: '
|
|
42802
|
+
return (hAsync(Host, { key: '47551948817a9d875b9f883272bfe7c0c4f2bf3d', class: {
|
|
42593
42803
|
'segment-view-disabled': disabled,
|
|
42594
42804
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
42595
42805
|
'segment-view-swipe-disabled': swipeGesture === false,
|
|
42596
|
-
} }, hAsync("slot", { key: '
|
|
42806
|
+
} }, hAsync("slot", { key: '2b19a10a776fd6ff147a1e749bc80d646a432f26' })));
|
|
42597
42807
|
}
|
|
42598
42808
|
get el() { return getElement(this); }
|
|
42599
42809
|
static get style() { return {
|
|
@@ -42647,7 +42857,8 @@ const selectMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padding-b
|
|
|
42647
42857
|
*/
|
|
42648
42858
|
class Select {
|
|
42649
42859
|
constructor(hostRef) {
|
|
42650
|
-
|
|
42860
|
+
if (new.target === Select)
|
|
42861
|
+
registerInstance(this, hostRef);
|
|
42651
42862
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
42652
42863
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
42653
42864
|
this.ionDismiss = createEvent(this, "ionDismiss", 7);
|
|
@@ -43585,7 +43796,7 @@ class Select {
|
|
|
43585
43796
|
const hasValue = this.hasValue();
|
|
43586
43797
|
renderHiddenInput(true, el, name, parseValue(value), disabled);
|
|
43587
43798
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
|
|
43588
|
-
return (hAsync(Host, { key: '
|
|
43799
|
+
return (hAsync(Host, { key: '868a057d230b811066a8583ccdd2145d3c610100', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
43589
43800
|
[theme]: true,
|
|
43590
43801
|
'in-item': inItem,
|
|
43591
43802
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -43605,7 +43816,7 @@ class Select {
|
|
|
43605
43816
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
43606
43817
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
43607
43818
|
[`select-size-${size}`]: size !== undefined,
|
|
43608
|
-
}) }, hAsync("label", { key: '
|
|
43819
|
+
}) }, hAsync("label", { key: '9f61a52a4f6a9587220b988578679ab8cfad66df', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, this.renderField(), shouldRenderHighlight && hAsync("div", { key: 'cd10ecaf4e23e6629ec4aa881ee23e87431fe0ff', class: "select-highlight" })), this.renderBottomContent()));
|
|
43609
43820
|
}
|
|
43610
43821
|
get el() { return getElement(this); }
|
|
43611
43822
|
static get watchers() { return {
|
|
@@ -43941,7 +44152,8 @@ const selectModalMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
|
|
|
43941
44152
|
|
|
43942
44153
|
class SelectModal {
|
|
43943
44154
|
constructor(hostRef) {
|
|
43944
|
-
|
|
44155
|
+
if (new.target === SelectModal)
|
|
44156
|
+
registerInstance(this, hostRef);
|
|
43945
44157
|
// Tracks the option that received Enter-keydown so keyup only
|
|
43946
44158
|
// dismisses when the press started on the same option. Prevents
|
|
43947
44159
|
// Enter on the triggering ion-select from auto-dismissing.
|
|
@@ -44097,10 +44309,10 @@ class SelectModal {
|
|
|
44097
44309
|
});
|
|
44098
44310
|
}
|
|
44099
44311
|
render() {
|
|
44100
|
-
return (hAsync(Host, { key: '
|
|
44312
|
+
return (hAsync(Host, { key: 'cb157690a608301f1816b546d5739d976fc1086a', class: {
|
|
44101
44313
|
[getIonMode$1(this)]: true,
|
|
44102
44314
|
...this.getModalContextClasses(),
|
|
44103
|
-
} }, hAsync("ion-header", { key: '
|
|
44315
|
+
} }, hAsync("ion-header", { key: '08b5815ae6fc26f1641346fc2dfa7f4e3ca1d0ea' }, hAsync("ion-toolbar", { key: '109daa28d83f0e6196f5462e5bcc19f0d494ffe2' }, this.header !== undefined && hAsync("ion-title", { key: '62b5469702521a9108b9bb333781647240efc96b' }, this.header), hAsync("ion-buttons", { key: '9a373ea1acb083302932515c854d437e19c562ac', slot: "end" }, hAsync("ion-button", { key: '715673985d97d3486f45e7fd858dc9a889b0d86b', "aria-label": this.cancelIcon ? this.cancelText : undefined, "data-focus-order": "2", onClick: () => this.closeModal() }, this.cancelIcon ? (hAsync("ion-icon", { "aria-hidden": "true", slot: "icon-only", icon: this.selectModalCancelIcon })) : (this.cancelText))))), hAsync("ion-content", { key: 'c0e42d240e01d70362b05ca7e2a763ee191342ed' }, hAsync("ion-list", { key: 'a79146394495fee9ac850f3bb6b9f255d8ede465' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
44104
44316
|
}
|
|
44105
44317
|
get el() { return getElement(this); }
|
|
44106
44318
|
static get style() { return {
|
|
@@ -44136,7 +44348,8 @@ const selectOptionCss = () => `:host{display:none}`;
|
|
|
44136
44348
|
*/
|
|
44137
44349
|
class SelectOption {
|
|
44138
44350
|
constructor(hostRef) {
|
|
44139
|
-
|
|
44351
|
+
if (new.target === SelectOption)
|
|
44352
|
+
registerInstance(this, hostRef);
|
|
44140
44353
|
this.inputId = `ion-selopt-${selectOptionIds++}`;
|
|
44141
44354
|
/**
|
|
44142
44355
|
* If `true`, the user cannot interact with the select option.
|
|
@@ -44145,7 +44358,7 @@ class SelectOption {
|
|
|
44145
44358
|
}
|
|
44146
44359
|
render() {
|
|
44147
44360
|
const theme = getIonTheme(this);
|
|
44148
|
-
return (hAsync(Host, { key: '
|
|
44361
|
+
return (hAsync(Host, { key: 'bc914d45a48e4f47270276d131a69386394e8f15', class: {
|
|
44149
44362
|
[theme]: true,
|
|
44150
44363
|
}, role: "option", id: this.inputId }));
|
|
44151
44364
|
}
|
|
@@ -44182,7 +44395,8 @@ const selectPopoverMdCss = () => `.action-sheet-button-label-has-rich-content.sc
|
|
|
44182
44395
|
*/
|
|
44183
44396
|
class SelectPopover {
|
|
44184
44397
|
constructor(hostRef) {
|
|
44185
|
-
|
|
44398
|
+
if (new.target === SelectPopover)
|
|
44399
|
+
registerInstance(this, hostRef);
|
|
44186
44400
|
// Tracks the option that received Enter-keydown so keyup only
|
|
44187
44401
|
// dismisses when the press started on the same option. Prevents
|
|
44188
44402
|
// Enter on the triggering ion-select from auto-dismissing.
|
|
@@ -44334,9 +44548,9 @@ class SelectPopover {
|
|
|
44334
44548
|
const { header, message, options, subHeader } = this;
|
|
44335
44549
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
44336
44550
|
const theme = getIonTheme(this);
|
|
44337
|
-
return (hAsync(Host, { key: '
|
|
44551
|
+
return (hAsync(Host, { key: '79006f1f11e1dcf97a73793e6c58a91e12a0ba3e', class: {
|
|
44338
44552
|
[theme]: true,
|
|
44339
|
-
} }, hAsync("ion-list", { key: '
|
|
44553
|
+
} }, hAsync("ion-list", { key: '4d944920de24191f278401ad99c7e10bd6b84b5f' }, header !== undefined && hAsync("ion-list-header", { key: 'a5ba99260429f7cf8837c1b71aba3a4d2f9928ed' }, header), hasSubHeaderOrMessage && (hAsync("ion-item", { key: 'ba3413263b5b5b094bee50a6bd8822da0e46c11c' }, hAsync("ion-label", { key: 'ce2ca00532f4367ba72ecc87aca1036a1b963f68', class: "ion-text-wrap" }, subHeader !== undefined && hAsync("h3", { key: '7aab9490c7cb1ad9a5ebd3928fe218e464b53563' }, subHeader), message !== undefined && hAsync("p", { key: 'a43d610735ae6d02ee14411798b21ee0786f446e' }, message)))), this.renderOptions(options))));
|
|
44340
44554
|
}
|
|
44341
44555
|
get el() { return getElement(this); }
|
|
44342
44556
|
static get style() { return {
|
|
@@ -44368,7 +44582,8 @@ const skeletonTextCss = () => `:host{--background:rgba(var(--background-rgb, var
|
|
|
44368
44582
|
*/
|
|
44369
44583
|
class SkeletonText {
|
|
44370
44584
|
constructor(hostRef) {
|
|
44371
|
-
|
|
44585
|
+
if (new.target === SkeletonText)
|
|
44586
|
+
registerInstance(this, hostRef);
|
|
44372
44587
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
44373
44588
|
/**
|
|
44374
44589
|
* If `true`, the skeleton text will animate.
|
|
@@ -44391,11 +44606,11 @@ class SkeletonText {
|
|
|
44391
44606
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
44392
44607
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
44393
44608
|
const theme = getIonTheme(this);
|
|
44394
|
-
return (hAsync(Host, { key: '
|
|
44609
|
+
return (hAsync(Host, { key: '70efd9086ef58705a965a63aa3e5ac775757dc85', class: {
|
|
44395
44610
|
[theme]: true,
|
|
44396
44611
|
'skeleton-text-animated': animated,
|
|
44397
44612
|
'in-media': inMedia,
|
|
44398
|
-
} }, hAsync("span", { key: '
|
|
44613
|
+
} }, hAsync("span", { key: '296246a88e33e0106045bec2f64738f48593ba12' }, "\u00A0")));
|
|
44399
44614
|
}
|
|
44400
44615
|
get el() { return getElement(this); }
|
|
44401
44616
|
static get style() { return skeletonTextCss(); }
|
|
@@ -44423,7 +44638,8 @@ const mdSpinnerNativeCss = () => `:host{display:inline-block;position:relative;w
|
|
|
44423
44638
|
*/
|
|
44424
44639
|
class Spinner {
|
|
44425
44640
|
constructor(hostRef) {
|
|
44426
|
-
|
|
44641
|
+
if (new.target === Spinner)
|
|
44642
|
+
registerInstance(this, hostRef);
|
|
44427
44643
|
/**
|
|
44428
44644
|
* If `true`, the spinner's animation will be paused.
|
|
44429
44645
|
*/
|
|
@@ -44467,7 +44683,7 @@ class Spinner {
|
|
|
44467
44683
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
44468
44684
|
}
|
|
44469
44685
|
}
|
|
44470
|
-
return (hAsync(Host, { key: '
|
|
44686
|
+
return (hAsync(Host, { key: 'e6d6c81972147b610b468cfb8535d4c4acd0911c', class: createColorClasses$1(self.color, {
|
|
44471
44687
|
[theme]: true,
|
|
44472
44688
|
[`spinner-${spinnerName}`]: true,
|
|
44473
44689
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -44520,7 +44736,8 @@ const QUERY = {
|
|
|
44520
44736
|
*/
|
|
44521
44737
|
class SplitPane {
|
|
44522
44738
|
constructor(hostRef) {
|
|
44523
|
-
|
|
44739
|
+
if (new.target === SplitPane)
|
|
44740
|
+
registerInstance(this, hostRef);
|
|
44524
44741
|
this.ionSplitPaneVisible = createEvent(this, "ionSplitPaneVisible", 7);
|
|
44525
44742
|
this.visible = false;
|
|
44526
44743
|
/**
|
|
@@ -44579,12 +44796,12 @@ class SplitPane {
|
|
|
44579
44796
|
}
|
|
44580
44797
|
render() {
|
|
44581
44798
|
const theme = getIonTheme(this);
|
|
44582
|
-
return (hAsync(Host, { key: '
|
|
44799
|
+
return (hAsync(Host, { key: '61ea2d0f8dce9aa532f6f42c1875df77ab31a76e', class: {
|
|
44583
44800
|
[theme]: true,
|
|
44584
44801
|
// Used internally for styling
|
|
44585
44802
|
[`split-pane-${theme}`]: true,
|
|
44586
44803
|
'split-pane-visible': this.visible,
|
|
44587
|
-
} }, hAsync("slot", { key: '
|
|
44804
|
+
} }, hAsync("slot", { key: 'abf4d7ff27c218c0ddd055795520ad2b0fc614e9' })));
|
|
44588
44805
|
}
|
|
44589
44806
|
get el() { return getElement(this); }
|
|
44590
44807
|
static get watchers() { return {
|
|
@@ -44627,7 +44844,8 @@ const tabCss = () => `:host(.tab-hidden){display:none !important}`;
|
|
|
44627
44844
|
*/
|
|
44628
44845
|
class Tab {
|
|
44629
44846
|
constructor(hostRef) {
|
|
44630
|
-
|
|
44847
|
+
if (new.target === Tab)
|
|
44848
|
+
registerInstance(this, hostRef);
|
|
44631
44849
|
/** @internal */
|
|
44632
44850
|
this.active = false;
|
|
44633
44851
|
}
|
|
@@ -44668,10 +44886,10 @@ class Tab {
|
|
|
44668
44886
|
}
|
|
44669
44887
|
render() {
|
|
44670
44888
|
const { tab, active, component } = this;
|
|
44671
|
-
return (hAsync(Host, { key: '
|
|
44889
|
+
return (hAsync(Host, { key: '11639899dcc05d784d332536e21f2e0143978fc3', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
44672
44890
|
'ion-page': component === undefined,
|
|
44673
44891
|
'tab-hidden': !active,
|
|
44674
|
-
} }, hAsync("slot", { key: '
|
|
44892
|
+
} }, hAsync("slot", { key: '064d9c741068982233724827906472f6e70223d7' })));
|
|
44675
44893
|
}
|
|
44676
44894
|
get el() { return getElement(this); }
|
|
44677
44895
|
static get watchers() { return {
|
|
@@ -44708,7 +44926,8 @@ const tabBarMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-align
|
|
|
44708
44926
|
*/
|
|
44709
44927
|
class TabBar {
|
|
44710
44928
|
constructor(hostRef) {
|
|
44711
|
-
|
|
44929
|
+
if (new.target === TabBar)
|
|
44930
|
+
registerInstance(this, hostRef);
|
|
44712
44931
|
this.ionTabBarChanged = createEvent(this, "ionTabBarChanged", 7);
|
|
44713
44932
|
this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
|
|
44714
44933
|
this.keyboardCtrl = null;
|
|
@@ -44873,14 +45092,14 @@ class TabBar {
|
|
|
44873
45092
|
const theme = getIonTheme(this);
|
|
44874
45093
|
const shape = this.getShape();
|
|
44875
45094
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
44876
|
-
return (hAsync(Host, { key: '
|
|
45095
|
+
return (hAsync(Host, { key: '40641198ffe27dd45976cdb53c6a588a2084d9b6', role: "tablist", class: createColorClasses$1(color, {
|
|
44877
45096
|
[theme]: true,
|
|
44878
45097
|
'tab-bar-translucent': translucent,
|
|
44879
45098
|
'tab-bar-hidden': shouldHide,
|
|
44880
45099
|
'tab-bar-scroll-effect-hide': scrollEffect === 'hide',
|
|
44881
45100
|
[`tab-bar-${expand}`]: true,
|
|
44882
45101
|
[`tab-bar-${shape}`]: shape !== undefined,
|
|
44883
|
-
}) }, hAsync("slot", { key: '
|
|
45102
|
+
}) }, hAsync("slot", { key: '5c23e329b0a689afe2abdc54704b2d071e20d7bc' })));
|
|
44884
45103
|
}
|
|
44885
45104
|
get el() { return getElement(this); }
|
|
44886
45105
|
static get watchers() { return {
|
|
@@ -44928,7 +45147,8 @@ const tabButtonMdCss = () => `:host{--ripple-color:var(--color-selected);--backg
|
|
|
44928
45147
|
*/
|
|
44929
45148
|
class TabButton {
|
|
44930
45149
|
constructor(hostRef) {
|
|
44931
|
-
|
|
45150
|
+
if (new.target === TabButton)
|
|
45151
|
+
registerInstance(this, hostRef);
|
|
44932
45152
|
this.ionTabButtonClick = createEvent(this, "ionTabButtonClick", 7);
|
|
44933
45153
|
this.inheritedAttributes = {};
|
|
44934
45154
|
/**
|
|
@@ -45020,7 +45240,7 @@ class TabButton {
|
|
|
45020
45240
|
rel,
|
|
45021
45241
|
target,
|
|
45022
45242
|
};
|
|
45023
|
-
return (hAsync(Host, { key: '
|
|
45243
|
+
return (hAsync(Host, { key: 'da6047b4b6145ac6fd7ff268149c0be68986d5db', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
45024
45244
|
[theme]: true,
|
|
45025
45245
|
'tab-selected': selected,
|
|
45026
45246
|
'tab-disabled': disabled,
|
|
@@ -45033,7 +45253,7 @@ class TabButton {
|
|
|
45033
45253
|
'ion-selectable': true,
|
|
45034
45254
|
[`tab-button-shape-${shape}`]: shape !== undefined,
|
|
45035
45255
|
'ion-focusable': true,
|
|
45036
|
-
} }, hAsync("a", { key: '
|
|
45256
|
+
} }, hAsync("a", { key: '70fa238698f3580aba3f4a18e416e8bc25e4c6aa', ...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: '0fb97dd1aaf795846bf850d8b2c2ccb880a1609c', class: "button-inner" }, hAsync("slot", { key: '7e596fbb243b9270d21c85dc9d55780ad753edc0' })), theme === 'md' && hAsync("ion-ripple-effect", { key: '0694d8f901545d31534293497424bf12c0c5bd2f', type: "unbounded" }))));
|
|
45037
45257
|
}
|
|
45038
45258
|
get el() { return getElement(this); }
|
|
45039
45259
|
static get style() { return {
|
|
@@ -45073,7 +45293,8 @@ const tabsCss = () => `:host{right:0;left:0;top:0;bottom:0;display:-ms-flexbox;d
|
|
|
45073
45293
|
*/
|
|
45074
45294
|
class Tabs {
|
|
45075
45295
|
constructor(hostRef) {
|
|
45076
|
-
|
|
45296
|
+
if (new.target === Tabs)
|
|
45297
|
+
registerInstance(this, hostRef);
|
|
45077
45298
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
45078
45299
|
this.ionTabsWillChange = createEvent(this, "ionTabsWillChange", 3);
|
|
45079
45300
|
this.ionTabsDidChange = createEvent(this, "ionTabsDidChange", 3);
|
|
@@ -45228,7 +45449,7 @@ class Tabs {
|
|
|
45228
45449
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
45229
45450
|
}
|
|
45230
45451
|
render() {
|
|
45231
|
-
return (hAsync(Host, { key: '
|
|
45452
|
+
return (hAsync(Host, { key: 'c3820e38d32b1d0f31288c38ba924b31ebc70ed1', onIonTabButtonClick: this.onTabClicked }, hAsync("slot", { key: '0b63e8bfbb773f4531c9a194e29f75017694a474', name: "top" }), hAsync("div", { key: '30e47f900e466bcebb04b667c458ee52995f2aed', class: "tabs-inner" }, hAsync("slot", { key: 'dfc75ea3ba9064ae668e76e96f5ebfb6b08a33a3' })), hAsync("slot", { key: 'aa5db10153b9ca6f1c8f291a025cc4f751cb8feb', name: "bottom" })));
|
|
45232
45453
|
}
|
|
45233
45454
|
get el() { return getElement(this); }
|
|
45234
45455
|
static get style() { return tabsCss(); }
|
|
@@ -45265,13 +45486,14 @@ const textCss = () => `:host(.ion-color){color:var(--ion-color-base)}`;
|
|
|
45265
45486
|
*/
|
|
45266
45487
|
class Text {
|
|
45267
45488
|
constructor(hostRef) {
|
|
45268
|
-
|
|
45489
|
+
if (new.target === Text)
|
|
45490
|
+
registerInstance(this, hostRef);
|
|
45269
45491
|
}
|
|
45270
45492
|
render() {
|
|
45271
45493
|
const theme = getIonTheme(this);
|
|
45272
|
-
return (hAsync(Host, { key: '
|
|
45494
|
+
return (hAsync(Host, { key: '7bf3aa9197541d2da1d40a361bc1bd9206a5223e', class: createColorClasses$1(this.color, {
|
|
45273
45495
|
[theme]: true,
|
|
45274
|
-
}) }, hAsync("slot", { key: '
|
|
45496
|
+
}) }, hAsync("slot", { key: '5dc6e3ce051f0d26459847c2bc5895edf9d08ca9' })));
|
|
45275
45497
|
}
|
|
45276
45498
|
static get style() { return textCss(); }
|
|
45277
45499
|
static get cmpMeta() { return {
|
|
@@ -45315,7 +45537,8 @@ const textareaMdCss = () => `:host{--background:initial;--color:initial;--placeh
|
|
|
45315
45537
|
*/
|
|
45316
45538
|
class Textarea {
|
|
45317
45539
|
constructor(hostRef) {
|
|
45318
|
-
|
|
45540
|
+
if (new.target === Textarea)
|
|
45541
|
+
registerInstance(this, hostRef);
|
|
45319
45542
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
45320
45543
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
45321
45544
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -45855,7 +46078,7 @@ class Textarea {
|
|
|
45855
46078
|
* the textarea has a value or is focused.
|
|
45856
46079
|
*/
|
|
45857
46080
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
|
|
45858
|
-
return (hAsync(Host, { key: '
|
|
46081
|
+
return (hAsync(Host, { key: 'bf0000df4ad04e29becbca9490c9175fa5f1b86f', class: createColorClasses$1(this.color, {
|
|
45859
46082
|
[theme]: true,
|
|
45860
46083
|
'has-value': hasValue,
|
|
45861
46084
|
'has-focus': hasFocus,
|
|
@@ -45867,7 +46090,7 @@ class Textarea {
|
|
|
45867
46090
|
'in-item': inItem,
|
|
45868
46091
|
'textarea-disabled': disabled,
|
|
45869
46092
|
'textarea-readonly': readonly,
|
|
45870
|
-
}) }, hAsync("label", { key: '
|
|
46093
|
+
}) }, hAsync("label", { key: '0badb4d70297db37a299e232e3ad161bd526b5d9', class: "textarea-wrapper", htmlFor: inputId, onMouseDown: this.onLabelMouseDown, onClick: this.onLabelClick, part: "wrapper" }, this.renderField(), shouldRenderHighlight && hAsync("div", { key: '472b4c3517e90aa13fc1cf571dccb16430c51049', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
45871
46094
|
}
|
|
45872
46095
|
static get delegatesFocus() { return true; }
|
|
45873
46096
|
static get formAssociated() { return true; }
|
|
@@ -45947,13 +46170,14 @@ const thumbnailCss = () => `:host{--size:48px;--border-radius:0;border-radius:va
|
|
|
45947
46170
|
*/
|
|
45948
46171
|
class Thumbnail {
|
|
45949
46172
|
constructor(hostRef) {
|
|
45950
|
-
|
|
46173
|
+
if (new.target === Thumbnail)
|
|
46174
|
+
registerInstance(this, hostRef);
|
|
45951
46175
|
}
|
|
45952
46176
|
render() {
|
|
45953
46177
|
const theme = getIonTheme(this);
|
|
45954
|
-
return (hAsync(Host, { key: '
|
|
46178
|
+
return (hAsync(Host, { key: '723d3bdf4dfa5847abe659f701519dd8f56af1b8', class: {
|
|
45955
46179
|
[theme]: true,
|
|
45956
|
-
} }, hAsync("slot", { key: '
|
|
46180
|
+
} }, hAsync("slot", { key: 'd24893ec6f6b29f16ddf9fd1cabaa8b298485d4c' })));
|
|
45957
46181
|
}
|
|
45958
46182
|
static get style() { return thumbnailCss(); }
|
|
45959
46183
|
static get cmpMeta() { return {
|
|
@@ -46422,7 +46646,8 @@ const toastMdCss = () => `:host{--border-width:0;--border-style:none;--border-co
|
|
|
46422
46646
|
*/
|
|
46423
46647
|
class Toast {
|
|
46424
46648
|
constructor(hostRef) {
|
|
46425
|
-
|
|
46649
|
+
if (new.target === Toast)
|
|
46650
|
+
registerInstance(this, hostRef);
|
|
46426
46651
|
this.didPresent = createEvent(this, "ionToastDidPresent", 7);
|
|
46427
46652
|
this.willPresent = createEvent(this, "ionToastWillPresent", 7);
|
|
46428
46653
|
this.willDismiss = createEvent(this, "ionToastWillDismiss", 7);
|
|
@@ -46835,7 +47060,7 @@ class Toast {
|
|
|
46835
47060
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
46836
47061
|
printIonWarning('[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
46837
47062
|
}
|
|
46838
|
-
return (hAsync(Host, { key: '
|
|
47063
|
+
return (hAsync(Host, { key: '14af37cbc4e429544109910b86d19f1d4464c6bd', tabindex: "-1", ...this.htmlAttributes, style: {
|
|
46839
47064
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
46840
47065
|
}, class: createColorClasses$1(this.color, {
|
|
46841
47066
|
[mode]: true,
|
|
@@ -46845,7 +47070,7 @@ class Toast {
|
|
|
46845
47070
|
'toast-translucent': this.translucent,
|
|
46846
47071
|
[`toast-shape-${shape}`]: shape !== undefined,
|
|
46847
47072
|
[`toast-hue-${hue}`]: hue !== undefined,
|
|
46848
|
-
}), onIonToastWillDismiss: this.dispatchCancelHandler }, hAsync("div", { key: '
|
|
47073
|
+
}), onIonToastWillDismiss: this.dispatchCancelHandler }, hAsync("div", { key: '5697bed9483ded1c79546d6386996dc587b876e4', class: wrapperClass, part: "wrapper" }, hAsync("div", { key: '2833e379960daed4876a61d11ae0bc9e8a8266ce', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (hAsync("ion-icon", { key: '7a86acdc47294ac702c2f19b142c56bfa9bf0e01', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), hAsync("div", { key: 'bcddc6f7a3fba41ff76568b857767f3c9070dd7f', class: "toast-content", part: "content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
46849
47074
|
}
|
|
46850
47075
|
get el() { return getElement(this); }
|
|
46851
47076
|
static get watchers() { return {
|
|
@@ -46937,7 +47162,8 @@ const toggleMdCss = () => `:host{-webkit-box-sizing:content-box !important;box-s
|
|
|
46937
47162
|
*/
|
|
46938
47163
|
class Toggle {
|
|
46939
47164
|
constructor(hostRef) {
|
|
46940
|
-
|
|
47165
|
+
if (new.target === Toggle)
|
|
47166
|
+
registerInstance(this, hostRef);
|
|
46941
47167
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
46942
47168
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
46943
47169
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -47221,7 +47447,7 @@ class Toggle {
|
|
|
47221
47447
|
// The attributes are matched too because the class needs the item to render.
|
|
47222
47448
|
const inClickableItem = hostContext('ion-item.ion-activatable, ion-item[button], ion-item[href]', el);
|
|
47223
47449
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
47224
|
-
return (hAsync(Host, { key: '
|
|
47450
|
+
return (hAsync(Host, { key: '5847901924c9f333e261efc1f416454ff552de72', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, "aria-required": required ? 'true' : undefined, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, class: createColorClasses$1(color, {
|
|
47225
47451
|
[theme]: true,
|
|
47226
47452
|
'in-item': inItem,
|
|
47227
47453
|
// `ion-focusable` has to stay on because it is what makes the item focusable.
|
|
@@ -47236,10 +47462,10 @@ class Toggle {
|
|
|
47236
47462
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
47237
47463
|
[`toggle-${rtl}`]: true,
|
|
47238
47464
|
'ion-activatable': isIonicTheme,
|
|
47239
|
-
}) }, hAsync("label", { key: '
|
|
47465
|
+
}) }, hAsync("label", { key: '2485057310854ccbc4ce9f28e1a9d7abe22296ee', class: "toggle-wrapper", htmlFor: inputId }, hAsync("input", { key: '0828f9a5d80439d24156c0e92dd1055918bbdf80', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, required: required, ...inheritedAttributes }), hAsync("div", { key: 'd0532798cb39ef5a22458fbd199ccf9c5771880e', class: {
|
|
47240
47466
|
'label-text-wrapper': true,
|
|
47241
47467
|
'label-text-wrapper-hidden': !hasLabel,
|
|
47242
|
-
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '
|
|
47468
|
+
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '82e3981d99821bb7a9bb29117fafcc82164863c7' }), this.renderHintText()), hAsync("div", { key: '9f4cd1e855818797411b622aef3a3c12bd20b271', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
47243
47469
|
}
|
|
47244
47470
|
get el() { return getElement(this); }
|
|
47245
47471
|
static get watchers() { return {
|
|
@@ -47309,7 +47535,8 @@ const toolbarMdCss = () => `:host{--border-width:0;--border-style:solid;--opacit
|
|
|
47309
47535
|
*/
|
|
47310
47536
|
class Toolbar {
|
|
47311
47537
|
constructor(hostRef) {
|
|
47312
|
-
|
|
47538
|
+
if (new.target === Toolbar)
|
|
47539
|
+
registerInstance(this, hostRef);
|
|
47313
47540
|
this.childrenStyles = new Map();
|
|
47314
47541
|
this.slotNames = ['start', 'end', 'primary', 'secondary'];
|
|
47315
47542
|
this.slotClasses = [
|
|
@@ -47583,14 +47810,14 @@ class Toolbar {
|
|
|
47583
47810
|
Object.assign(childStyles, style);
|
|
47584
47811
|
});
|
|
47585
47812
|
const titlePlacement = this.getTitlePlacement();
|
|
47586
|
-
return (hAsync(Host, { key: '
|
|
47813
|
+
return (hAsync(Host, { key: '2860071de9b3ea484e3c0f91f8be9f669df5eb41', class: {
|
|
47587
47814
|
...createColorClasses$1(this.color, {
|
|
47588
47815
|
[theme]: true,
|
|
47589
47816
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
47590
47817
|
[`toolbar-title-placement-${titlePlacement}`]: true,
|
|
47591
47818
|
}),
|
|
47592
47819
|
...childStyles,
|
|
47593
|
-
} }, hAsync("div", { key: '
|
|
47820
|
+
} }, hAsync("div", { key: 'd6bea29b2fe38ff95c9b8c251d551fb3609aca71', class: "toolbar-background", part: "background" }), hAsync("div", { key: 'e416703fe3a9b0bd994ddf7033a2b96fbed1f92f', class: "toolbar-container", part: "container" }, hAsync("slot", { key: 'abea8b36c5566ee63a62673769c99f663cc3a8c0', name: "start", onSlotchange: () => this.updateSlotClasses() }), hAsync("slot", { key: '4c4abf28bb723b2559ebb47cf6f99e8237d390e5', name: "secondary", onSlotchange: () => this.updateSlotClasses() }), hAsync("div", { key: '63846794c93ec437cbae8f276906ea30dc966eec', class: "toolbar-content", part: "content" }, hAsync("slot", { key: '9736ea37c79608ea9278c0520df154fd65835576' })), hAsync("slot", { key: '7c3bdd204b1ff7f8a9e27f63618cd89d9cabd3d7', name: "primary", onSlotchange: () => this.updateSlotClasses() }), hAsync("slot", { key: 'e5b8e802487438abd0c3d34153e1fe8b52d72464', name: "end", onSlotchange: () => this.updateSlotClasses() }))));
|
|
47594
47821
|
}
|
|
47595
47822
|
get el() { return getElement(this); }
|
|
47596
47823
|
static get watchers() { return {
|
|
@@ -47628,7 +47855,8 @@ const titleMdCss = () => `:host{--color:initial;display:-ms-flexbox;display:flex
|
|
|
47628
47855
|
*/
|
|
47629
47856
|
class ToolbarTitle {
|
|
47630
47857
|
constructor(hostRef) {
|
|
47631
|
-
|
|
47858
|
+
if (new.target === ToolbarTitle)
|
|
47859
|
+
registerInstance(this, hostRef);
|
|
47632
47860
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
47633
47861
|
}
|
|
47634
47862
|
sizeChanged() {
|
|
@@ -47649,11 +47877,11 @@ class ToolbarTitle {
|
|
|
47649
47877
|
render() {
|
|
47650
47878
|
const theme = getIonTheme(this);
|
|
47651
47879
|
const size = this.getSize();
|
|
47652
|
-
return (hAsync(Host, { key: '
|
|
47880
|
+
return (hAsync(Host, { key: 'c2b6048508e64b0b706d59104f6a26436dcdc875', class: createColorClasses$1(this.color, {
|
|
47653
47881
|
[theme]: true,
|
|
47654
47882
|
[`title-${size}`]: true,
|
|
47655
47883
|
'title-rtl': isRTL$1(this.el),
|
|
47656
|
-
}) }, hAsync("div", { key: '
|
|
47884
|
+
}) }, hAsync("div", { key: '85dd87da708c7b831c0c09ce00708c9aaae2c673', class: "toolbar-title" }, hAsync("slot", { key: 'c69a1d7c9306a07f44b2ae41d49b096dea70ebb2' }))));
|
|
47657
47885
|
}
|
|
47658
47886
|
get el() { return getElement(this); }
|
|
47659
47887
|
static get watchers() { return {
|
|
@@ -48677,7 +48905,7 @@ var NAMESPACE = (
|
|
|
48677
48905
|
);
|
|
48678
48906
|
|
|
48679
48907
|
/*
|
|
48680
|
-
Stencil Hydrate Runner v4.45.
|
|
48908
|
+
Stencil Hydrate Runner v4.45.4 | MIT Licensed | https://stenciljs.com
|
|
48681
48909
|
*/
|
|
48682
48910
|
var __create = Object.create;
|
|
48683
48911
|
var __defProp = Object.defineProperty;
|
|
@@ -59966,22 +60194,26 @@ var MockNodeList = class {
|
|
|
59966
60194
|
this.length = length;
|
|
59967
60195
|
}
|
|
59968
60196
|
};
|
|
60197
|
+
var MockElementInternals = class {
|
|
60198
|
+
states = /* @__PURE__ */ new Set();
|
|
60199
|
+
setFormValue() {
|
|
60200
|
+
}
|
|
60201
|
+
setValidity() {
|
|
60202
|
+
}
|
|
60203
|
+
checkValidity() {
|
|
60204
|
+
return true;
|
|
60205
|
+
}
|
|
60206
|
+
reportValidity() {
|
|
60207
|
+
return true;
|
|
60208
|
+
}
|
|
60209
|
+
};
|
|
59969
60210
|
var MockElement = class extends MockNode2 {
|
|
59970
60211
|
__namespaceURI;
|
|
59971
60212
|
__attributeMap;
|
|
59972
60213
|
__shadowRoot;
|
|
59973
60214
|
__style;
|
|
59974
60215
|
attachInternals() {
|
|
59975
|
-
return new
|
|
59976
|
-
get: function(_target, prop, _receiver) {
|
|
59977
|
-
if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
|
|
59978
|
-
console.error(
|
|
59979
|
-
`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
59980
|
-
Testing components with ElementInternals is fully supported in e2e tests.`
|
|
59981
|
-
);
|
|
59982
|
-
}
|
|
59983
|
-
}
|
|
59984
|
-
});
|
|
60216
|
+
return new MockElementInternals();
|
|
59985
60217
|
}
|
|
59986
60218
|
constructor(ownerDocument, nodeName, namespaceURI = null) {
|
|
59987
60219
|
super(ownerDocument, 1 /* ELEMENT_NODE */, typeof nodeName === "string" ? nodeName : null, null);
|
|
@@ -60255,7 +60487,9 @@ var MockElement = class extends MockNode2 {
|
|
|
60255
60487
|
return this.hasAttributeNS(null, "hidden");
|
|
60256
60488
|
}
|
|
60257
60489
|
set hidden(isHidden) {
|
|
60258
|
-
if (isHidden ===
|
|
60490
|
+
if (isHidden === "until-found") {
|
|
60491
|
+
this.setAttributeNS(null, "hidden", "until-found");
|
|
60492
|
+
} else if (isHidden === true) {
|
|
60259
60493
|
this.setAttributeNS(null, "hidden", "");
|
|
60260
60494
|
} else {
|
|
60261
60495
|
this.removeAttributeNS(null, "hidden");
|