@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.mjs
CHANGED
|
@@ -630,7 +630,7 @@ const appGlobalScript = initialize || (() => {});
|
|
|
630
630
|
const globalScripts = appGlobalScript;
|
|
631
631
|
|
|
632
632
|
/*
|
|
633
|
-
Stencil Hydrate Platform v4.45.
|
|
633
|
+
Stencil Hydrate Platform v4.45.4 | MIT Licensed | https://stenciljs.com
|
|
634
634
|
*/
|
|
635
635
|
var __create = Object.create;
|
|
636
636
|
var __defProp = Object.defineProperty;
|
|
@@ -1123,6 +1123,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
1123
1123
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
1124
1124
|
}
|
|
1125
1125
|
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
1126
|
+
if (typeof slotName !== "undefined" && slottedNodes.length) return slottedNodes;
|
|
1126
1127
|
}
|
|
1127
1128
|
return slottedNodes;
|
|
1128
1129
|
}
|
|
@@ -1276,7 +1277,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1276
1277
|
}
|
|
1277
1278
|
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
1278
1279
|
if (existingStyleElm) {
|
|
1279
|
-
|
|
1280
|
+
appliedStyles.add(scopeId2);
|
|
1280
1281
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
1281
1282
|
styleElm = win.document.createElement("style");
|
|
1282
1283
|
styleElm.textContent = style;
|
|
@@ -1284,7 +1285,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1284
1285
|
if (nonce != null) {
|
|
1285
1286
|
styleElm.setAttribute("nonce", nonce);
|
|
1286
1287
|
}
|
|
1287
|
-
|
|
1288
|
+
{
|
|
1288
1289
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
1289
1290
|
}
|
|
1290
1291
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
@@ -1634,7 +1635,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
|
|
|
1634
1635
|
const scopeId2 = hostElm["s-sc"];
|
|
1635
1636
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
1636
1637
|
childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
|
|
1637
|
-
if (childNodeType) {
|
|
1638
|
+
if (childNodeType && node !== hostElm) {
|
|
1638
1639
|
childIdSplt = childNodeType.split(".");
|
|
1639
1640
|
if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
|
|
1640
1641
|
childVNode = createSimpleVNode({
|
|
@@ -6870,7 +6871,8 @@ const accordionMdCss = () => `:host{display:block;position:relative;width:100%;o
|
|
|
6870
6871
|
*/
|
|
6871
6872
|
class Accordion {
|
|
6872
6873
|
constructor(hostRef) {
|
|
6873
|
-
|
|
6874
|
+
if (new.target === Accordion)
|
|
6875
|
+
registerInstance(this, hostRef);
|
|
6874
6876
|
this.accordionGroupUpdateHandler = () => {
|
|
6875
6877
|
/**
|
|
6876
6878
|
* Determine if this update will cause an actual state change.
|
|
@@ -7314,7 +7316,8 @@ const accordionGroupMdCss = () => `:host{display:block}:host(.accordion-group-ex
|
|
|
7314
7316
|
*/
|
|
7315
7317
|
class AccordionGroup {
|
|
7316
7318
|
constructor(hostRef) {
|
|
7317
|
-
|
|
7319
|
+
if (new.target === AccordionGroup)
|
|
7320
|
+
registerInstance(this, hostRef);
|
|
7318
7321
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
7319
7322
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
7320
7323
|
/**
|
|
@@ -8549,6 +8552,39 @@ const focusElementInContext = (hostToFocus, fallbackElement) => {
|
|
|
8549
8552
|
}
|
|
8550
8553
|
};
|
|
8551
8554
|
|
|
8555
|
+
/**
|
|
8556
|
+
* Moves focus off a boundary. Focus arriving from inside the overlay
|
|
8557
|
+
* wraps to the opposite end. Focus arriving from outside enters at the
|
|
8558
|
+
* nearest end.
|
|
8559
|
+
*/
|
|
8560
|
+
const onBoundaryFocus = (overlay, ev, edge) => {
|
|
8561
|
+
/**
|
|
8562
|
+
* Shadow overlays search their slotted content. Scoped overlays search
|
|
8563
|
+
* their wrapper, since the boundaries are siblings of it in the same
|
|
8564
|
+
* tree and would otherwise be found first.
|
|
8565
|
+
*/
|
|
8566
|
+
const container = overlay.shadowRoot ? overlay : overlay.querySelector('.ion-overlay-wrapper');
|
|
8567
|
+
if (!container) {
|
|
8568
|
+
return;
|
|
8569
|
+
}
|
|
8570
|
+
const from = ev.relatedTarget;
|
|
8571
|
+
const fromInside = from !== null && from !== overlay && (overlay.contains(from) || overlay.shadowRoot?.contains(from) === true);
|
|
8572
|
+
const focusFirst = edge === 'start' ? !fromInside : fromInside;
|
|
8573
|
+
if (focusFirst) {
|
|
8574
|
+
focusFirstDescendant(container, overlay);
|
|
8575
|
+
}
|
|
8576
|
+
else {
|
|
8577
|
+
focusLastDescendant(container, overlay);
|
|
8578
|
+
}
|
|
8579
|
+
};
|
|
8580
|
+
/**
|
|
8581
|
+
* Renders a focusable element before or after an overlay's content that
|
|
8582
|
+
* keeps Tab inside the overlay. The document focus listener in overlays.ts
|
|
8583
|
+
* cannot do this alone, since browsers can move focus past the end of the
|
|
8584
|
+
* page without firing a focus event.
|
|
8585
|
+
*/
|
|
8586
|
+
const OverlayFocusBoundary = ({ overlay, edge }) => (hAsync("div", { class: "ion-overlay-focus-boundary", tabIndex: 0, "aria-hidden": "true", onFocus: (ev) => onBoundaryFocus(overlay, ev, edge) }));
|
|
8587
|
+
|
|
8552
8588
|
// TODO(FW-2832): types
|
|
8553
8589
|
const attachComponent = async (delegate, container, component, cssClasses, componentProps, inline) => {
|
|
8554
8590
|
if (delegate) {
|
|
@@ -8967,18 +9003,10 @@ const trapKeyboardFocus = (ev, doc) => {
|
|
|
8967
9003
|
focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);
|
|
8968
9004
|
/**
|
|
8969
9005
|
* Otherwise, we must be focusing an element
|
|
8970
|
-
* inside of the overlay.
|
|
8971
|
-
* here are an input/button/etc or the ion-focus-trap
|
|
8972
|
-
* element. The focus trap element is used to prevent
|
|
8973
|
-
* the keyboard focus from leaving the overlay when
|
|
8974
|
-
* using Tab or screen assistants.
|
|
9006
|
+
* inside of the overlay.
|
|
8975
9007
|
*/
|
|
8976
9008
|
}
|
|
8977
9009
|
else {
|
|
8978
|
-
/**
|
|
8979
|
-
* We do not want to focus the traps, so get the overlay
|
|
8980
|
-
* wrapper element as the traps live outside of the wrapper.
|
|
8981
|
-
*/
|
|
8982
9010
|
const overlayRoot = getElementRoot(lastOverlay);
|
|
8983
9011
|
if (!overlayRoot.contains(target)) {
|
|
8984
9012
|
return;
|
|
@@ -8993,40 +9021,13 @@ const trapKeyboardFocus = (ev, doc) => {
|
|
|
8993
9021
|
* Additionally, if the backdrop was tapped we should not
|
|
8994
9022
|
* move focus back inside the wrapper as that could cause
|
|
8995
9023
|
* an interactive elements focus state to activate.
|
|
9024
|
+
*
|
|
9025
|
+
* The focus boundaries outside of the wrapper move
|
|
9026
|
+
* focus back inside on their own.
|
|
8996
9027
|
*/
|
|
8997
9028
|
if (overlayWrapper.contains(target) || target === overlayRoot.querySelector('ion-backdrop')) {
|
|
8998
9029
|
lastOverlay.lastFocus = target;
|
|
8999
9030
|
}
|
|
9000
|
-
else {
|
|
9001
|
-
/**
|
|
9002
|
-
* Otherwise, we must have focused one of the focus traps.
|
|
9003
|
-
* We need to wrap the focus to either the first element
|
|
9004
|
-
* or the last element.
|
|
9005
|
-
*/
|
|
9006
|
-
/**
|
|
9007
|
-
* Once we call `focusFirstDescendant` and focus the first
|
|
9008
|
-
* descendant, another focus event will fire which will
|
|
9009
|
-
* cause `lastOverlay.lastFocus` to be updated before
|
|
9010
|
-
* we can run the code after that. We will cache the value
|
|
9011
|
-
* here to avoid that.
|
|
9012
|
-
*/
|
|
9013
|
-
const lastFocus = lastOverlay.lastFocus;
|
|
9014
|
-
// Focus the first element in the overlay wrapper
|
|
9015
|
-
focusFirstDescendant(overlayWrapper, lastOverlay);
|
|
9016
|
-
/**
|
|
9017
|
-
* If the cached last focused element is the
|
|
9018
|
-
* same as the active element, then we need
|
|
9019
|
-
* to wrap focus to the last descendant. This happens
|
|
9020
|
-
* when the first descendant is focused, and the user
|
|
9021
|
-
* presses Shift + Tab. The previous line will focus
|
|
9022
|
-
* the same descendant again (the first one), causing
|
|
9023
|
-
* last focus to equal the active element.
|
|
9024
|
-
*/
|
|
9025
|
-
if (lastFocus === doc.activeElement) {
|
|
9026
|
-
focusLastDescendant(overlayWrapper, lastOverlay);
|
|
9027
|
-
}
|
|
9028
|
-
lastOverlay.lastFocus = doc.activeElement;
|
|
9029
|
-
}
|
|
9030
9031
|
}
|
|
9031
9032
|
};
|
|
9032
9033
|
const trapShadowFocus = () => {
|
|
@@ -9143,10 +9144,16 @@ const connectListeners = (doc) => {
|
|
|
9143
9144
|
: false;
|
|
9144
9145
|
if (!isInsideOverlay)
|
|
9145
9146
|
return;
|
|
9146
|
-
|
|
9147
|
+
/**
|
|
9148
|
+
* Get all focusable elements from both light and shadow DOM.
|
|
9149
|
+
* Focus boundaries in a shadow root are skipped: shadow elements
|
|
9150
|
+
* are listed after the slotted content, so the boundaries would
|
|
9151
|
+
* sit out of order and wrap focus to the wrong end. Boundaries
|
|
9152
|
+
* in scoped overlays stay, since they are in document order.
|
|
9153
|
+
*/
|
|
9147
9154
|
let allFocusable = [
|
|
9148
9155
|
...lastOverlay.querySelectorAll(focusableQueryString),
|
|
9149
|
-
...(lastOverlay.shadowRoot?.querySelectorAll(focusableQueryString)
|
|
9156
|
+
...Array.from(lastOverlay.shadowRoot?.querySelectorAll(focusableQueryString) ?? []).filter((el) => !el.classList.contains('ion-overlay-focus-boundary')),
|
|
9150
9157
|
];
|
|
9151
9158
|
/**
|
|
9152
9159
|
* Some elements match `focusableQueryString` but are not
|
|
@@ -11322,7 +11329,8 @@ const actionSheetMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
|
|
|
11322
11329
|
*/
|
|
11323
11330
|
class ActionSheet {
|
|
11324
11331
|
constructor(hostRef) {
|
|
11325
|
-
|
|
11332
|
+
if (new.target === ActionSheet)
|
|
11333
|
+
registerInstance(this, hostRef);
|
|
11326
11334
|
this.didPresent = createEvent(this, "ionActionSheetDidPresent", 7);
|
|
11327
11335
|
this.willPresent = createEvent(this, "ionActionSheetWillPresent", 7);
|
|
11328
11336
|
this.willDismiss = createEvent(this, "ionActionSheetWillDismiss", 7);
|
|
@@ -11735,17 +11743,17 @@ class ActionSheet {
|
|
|
11735
11743
|
const cancelButton = allButtons.find((b) => b.role === 'cancel');
|
|
11736
11744
|
const buttons = allButtons.filter((b) => b.role !== 'cancel');
|
|
11737
11745
|
const headerID = `action-sheet-${overlayIndex}-header`;
|
|
11738
|
-
return (hAsync(Host, { key: '
|
|
11746
|
+
return (hAsync(Host, { key: 'f126d2b7604330b9ad08656c0599a2857bdce9fd', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1", ...htmlAttributes, style: {
|
|
11739
11747
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
11740
11748
|
}, class: {
|
|
11741
11749
|
[theme]: true,
|
|
11742
11750
|
...getClassMap(this.cssClass),
|
|
11743
11751
|
'overlay-hidden': true,
|
|
11744
11752
|
'action-sheet-translucent': this.translucent,
|
|
11745
|
-
}, onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: '
|
|
11753
|
+
}, 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: {
|
|
11746
11754
|
'action-sheet-title': true,
|
|
11747
11755
|
'action-sheet-has-sub-title': this.subHeader !== undefined,
|
|
11748
|
-
} }, header, this.subHeader && hAsync("div", { key: '
|
|
11756
|
+
} }, 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" })));
|
|
11749
11757
|
}
|
|
11750
11758
|
get el() { return getElement(this); }
|
|
11751
11759
|
static get watchers() { return {
|
|
@@ -11950,7 +11958,8 @@ const alertMdCss = () => `.action-sheet-button-label-has-rich-content.sc-ion-ale
|
|
|
11950
11958
|
*/
|
|
11951
11959
|
class Alert {
|
|
11952
11960
|
constructor(hostRef) {
|
|
11953
|
-
|
|
11961
|
+
if (new.target === Alert)
|
|
11962
|
+
registerInstance(this, hostRef);
|
|
11954
11963
|
this.didPresent = createEvent(this, "ionAlertDidPresent", 7);
|
|
11955
11964
|
this.willPresent = createEvent(this, "ionAlertWillPresent", 7);
|
|
11956
11965
|
this.willDismiss = createEvent(this, "ionAlertWillDismiss", 7);
|
|
@@ -12497,14 +12506,14 @@ class Alert {
|
|
|
12497
12506
|
* If neither are defined, do not set aria-labelledby.
|
|
12498
12507
|
*/
|
|
12499
12508
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
12500
|
-
return (hAsync(Host, { key: '
|
|
12509
|
+
return (hAsync(Host, { key: '332af2f97ef6974a1a525d482f4e9657ac822563', tabindex: "-1", style: {
|
|
12501
12510
|
zIndex: `${20000 + overlayIndex}`,
|
|
12502
12511
|
}, class: {
|
|
12503
12512
|
...getClassMap(this.cssClass),
|
|
12504
12513
|
[theme]: true,
|
|
12505
12514
|
'overlay-hidden': true,
|
|
12506
12515
|
'alert-translucent': this.translucent,
|
|
12507
|
-
}, onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, hAsync("ion-backdrop", { key: '
|
|
12516
|
+
}, 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" })));
|
|
12508
12517
|
}
|
|
12509
12518
|
get el() { return getElement(this); }
|
|
12510
12519
|
static get watchers() { return {
|
|
@@ -12585,7 +12594,8 @@ const appCss = () => `html.plt-mobile ion-app{-webkit-user-select:none;-moz-user
|
|
|
12585
12594
|
*/
|
|
12586
12595
|
class App {
|
|
12587
12596
|
constructor(hostRef) {
|
|
12588
|
-
|
|
12597
|
+
if (new.target === App)
|
|
12598
|
+
registerInstance(this, hostRef);
|
|
12589
12599
|
}
|
|
12590
12600
|
/**
|
|
12591
12601
|
* Used to set focus on an element that uses `ion-focusable`.
|
|
@@ -12639,7 +12649,8 @@ const avatarMdCss = () => `:host{border-radius:var(--border-radius);display:bloc
|
|
|
12639
12649
|
*/
|
|
12640
12650
|
class Avatar {
|
|
12641
12651
|
constructor(hostRef) {
|
|
12642
|
-
|
|
12652
|
+
if (new.target === Avatar)
|
|
12653
|
+
registerInstance(this, hostRef);
|
|
12643
12654
|
/**
|
|
12644
12655
|
* If `true`, the user cannot interact with the avatar.
|
|
12645
12656
|
*/
|
|
@@ -12709,6 +12720,7 @@ class Avatar {
|
|
|
12709
12720
|
}; }
|
|
12710
12721
|
}
|
|
12711
12722
|
|
|
12723
|
+
const hostNamingAttributes = ['aria-label', 'aria-description', 'role'];
|
|
12712
12724
|
/**
|
|
12713
12725
|
* Copies a set of attributes off the host element so they can be applied to an element
|
|
12714
12726
|
* inside the shadow root, then keeps that copy in sync as the host attributes change.
|
|
@@ -12718,13 +12730,15 @@ class Avatar {
|
|
|
12718
12730
|
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
12719
12731
|
* watching right away, so `init()` is only needed to resume after a move.
|
|
12720
12732
|
*
|
|
12721
|
-
*
|
|
12722
|
-
*
|
|
12723
|
-
*
|
|
12724
|
-
*
|
|
12725
|
-
*
|
|
12726
|
-
*
|
|
12727
|
-
*
|
|
12733
|
+
* An `aria-label`, `aria-description` or `role` written after load is copied and then
|
|
12734
|
+
* replaced on the host with an empty string, so the host isn't a second node in the
|
|
12735
|
+
* accessibility tree and a later `removeAttribute` still fires a mutation. Anything else
|
|
12736
|
+
* stays on the host unless `moveFromHost` takes it off, since it leaves the host unnamed
|
|
12737
|
+
* or, like `aria-labelledby`, only resolves from there. A value the initial copy or
|
|
12738
|
+
* `moveFromHost` takes off the host can only be overwritten, since removing an attribute
|
|
12739
|
+
* that isn't there fires no mutation. An empty string works for `aria-label` and friends,
|
|
12740
|
+
* but a token-valued attribute has to be set to its default instead, so
|
|
12741
|
+
* `aria-pressed="false"` rather than empty.
|
|
12728
12742
|
*
|
|
12729
12743
|
* @internal
|
|
12730
12744
|
* @param el The host element to copy from and watch.
|
|
@@ -12732,24 +12746,30 @@ class Avatar {
|
|
|
12732
12746
|
* @param onChange Called after `attributes` changes, so the component can re-render.
|
|
12733
12747
|
* @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
|
|
12734
12748
|
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
12735
|
-
* those is the component's own write
|
|
12736
|
-
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
12749
|
+
* those is the component's own write.
|
|
12737
12750
|
* @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
|
|
12738
12751
|
* a value moves off the host. A rejected value stays on the host and is left out of
|
|
12739
12752
|
* `attributes`. It can read component state, as long as the component calls `refresh()`
|
|
12740
12753
|
* when that state changes.
|
|
12754
|
+
* @param keepOnHost While this returns `true`, a value written after load stays on the
|
|
12755
|
+
* host. It's checked on every write and on `refresh()`. Use it when the component
|
|
12756
|
+
* sometimes renders nothing that can carry the copy.
|
|
12741
12757
|
*/
|
|
12742
|
-
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
|
|
12758
|
+
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost, keepOnHost = () => false) => {
|
|
12743
12759
|
let inherited = inheritAttributes$1(el, attributes);
|
|
12744
12760
|
let observer;
|
|
12745
12761
|
const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
|
|
12746
12762
|
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
12747
12763
|
/**
|
|
12748
|
-
* The names
|
|
12749
|
-
* copy removes what it captures, so a missing attribute
|
|
12750
|
-
* when its name is in here.
|
|
12764
|
+
* The names written to the host after load, including the empty strings we leave in
|
|
12765
|
+
* place of a copy. The initial copy removes what it captures, so a missing attribute
|
|
12766
|
+
* only counts as a removal when its name is in here.
|
|
12751
12767
|
*/
|
|
12752
12768
|
const hostWritten = new Set();
|
|
12769
|
+
/**
|
|
12770
|
+
* The names whose host value is our empty string, not one the developer wrote.
|
|
12771
|
+
*/
|
|
12772
|
+
const replaced = new Set();
|
|
12753
12773
|
const setPresence = (name, value) => {
|
|
12754
12774
|
if (value === null) {
|
|
12755
12775
|
hostWritten.delete(name);
|
|
@@ -12770,6 +12790,27 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12770
12790
|
}
|
|
12771
12791
|
}
|
|
12772
12792
|
};
|
|
12793
|
+
const replaceOnHost = (written) => {
|
|
12794
|
+
const keep = keepOnHost();
|
|
12795
|
+
for (const [name, value] of Object.entries(written)) {
|
|
12796
|
+
// An empty value already gives the host no name, so it can stay as written.
|
|
12797
|
+
if (keep || value === null || value === '' || !hostNamingAttributes.includes(name)) {
|
|
12798
|
+
replaced.delete(name);
|
|
12799
|
+
continue;
|
|
12800
|
+
}
|
|
12801
|
+
el.setAttribute(name, '');
|
|
12802
|
+
replaced.add(name);
|
|
12803
|
+
}
|
|
12804
|
+
// Drain our own writes so the observer doesn't read them as the developer's.
|
|
12805
|
+
observer?.takeRecords();
|
|
12806
|
+
};
|
|
12807
|
+
const restoreOnHost = () => {
|
|
12808
|
+
for (const name of replaced) {
|
|
12809
|
+
el.setAttribute(name, inherited[name]);
|
|
12810
|
+
}
|
|
12811
|
+
replaced.clear();
|
|
12812
|
+
observer?.takeRecords();
|
|
12813
|
+
};
|
|
12773
12814
|
// The initial copy took everything off the host, so put back what has to stay there.
|
|
12774
12815
|
for (const [name, value] of Object.entries(inherited)) {
|
|
12775
12816
|
if (staysOnHost(name, value)) {
|
|
@@ -12783,6 +12824,7 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12783
12824
|
* the host has to be re-read on the way back in.
|
|
12784
12825
|
*/
|
|
12785
12826
|
const readMissedChanges = () => {
|
|
12827
|
+
const written = {};
|
|
12786
12828
|
const changed = {};
|
|
12787
12829
|
for (const name of watchedAttributes) {
|
|
12788
12830
|
const value = el.getAttribute(name);
|
|
@@ -12792,12 +12834,17 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12792
12834
|
* An attribute that was never written to the host is missing because the initial
|
|
12793
12835
|
* copy took it, not because the developer cleared it.
|
|
12794
12836
|
*/
|
|
12795
|
-
if (
|
|
12837
|
+
if (value === null && !wasOnHost) {
|
|
12796
12838
|
continue;
|
|
12797
12839
|
}
|
|
12798
|
-
|
|
12840
|
+
// Even a rewrite of the same value has to be replaced on the host.
|
|
12841
|
+
written[name] = value;
|
|
12842
|
+
if (value !== inherited[name]) {
|
|
12843
|
+
changed[name] = value;
|
|
12844
|
+
}
|
|
12799
12845
|
}
|
|
12800
12846
|
moveOffHost(changed);
|
|
12847
|
+
replaceOnHost(written);
|
|
12801
12848
|
if (Object.keys(changed).length > 0) {
|
|
12802
12849
|
inherited = { ...inherited, ...changed };
|
|
12803
12850
|
onChange();
|
|
@@ -12814,10 +12861,10 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12814
12861
|
changed[name] = value;
|
|
12815
12862
|
}
|
|
12816
12863
|
moveOffHost(changed);
|
|
12817
|
-
// Drop the removals `moveOffHost` just queued, or they'd read back as the developer
|
|
12818
|
-
// clearing the attribute.
|
|
12819
|
-
observer?.takeRecords();
|
|
12820
12864
|
inherited = { ...inherited, ...changed };
|
|
12865
|
+
// This also drops the removals `moveOffHost` just queued, or they'd read back as the
|
|
12866
|
+
// developer clearing the attribute.
|
|
12867
|
+
replaceOnHost(changed);
|
|
12821
12868
|
onChange();
|
|
12822
12869
|
};
|
|
12823
12870
|
const init = () => {
|
|
@@ -12830,24 +12877,21 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12830
12877
|
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
12831
12878
|
};
|
|
12832
12879
|
const destroy = () => {
|
|
12833
|
-
observer
|
|
12834
|
-
observer = undefined;
|
|
12835
|
-
};
|
|
12836
|
-
const refresh = () => {
|
|
12837
|
-
if (moveFromHost === undefined) {
|
|
12880
|
+
if (observer === undefined) {
|
|
12838
12881
|
return;
|
|
12839
12882
|
}
|
|
12840
|
-
//
|
|
12841
|
-
|
|
12842
|
-
if (
|
|
12843
|
-
|
|
12844
|
-
if (pending.length > 0) {
|
|
12845
|
-
handleRecords(pending);
|
|
12846
|
-
}
|
|
12847
|
-
}
|
|
12848
|
-
else {
|
|
12849
|
-
readMissedChanges();
|
|
12883
|
+
// Apply a write made just before the move, since it hasn't been delivered yet.
|
|
12884
|
+
const pending = observer.takeRecords();
|
|
12885
|
+
if (pending.length > 0) {
|
|
12886
|
+
handleRecords(pending);
|
|
12850
12887
|
}
|
|
12888
|
+
observer.disconnect();
|
|
12889
|
+
observer = undefined;
|
|
12890
|
+
// Put the copied values back while detached, or `init()` would read our empty strings
|
|
12891
|
+
// as the developer clearing them.
|
|
12892
|
+
restoreOnHost();
|
|
12893
|
+
};
|
|
12894
|
+
const applyMoveFromHost = () => {
|
|
12851
12895
|
for (const [name, value] of Object.entries(inherited)) {
|
|
12852
12896
|
if (value == null) {
|
|
12853
12897
|
continue;
|
|
@@ -12862,8 +12906,42 @@ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes
|
|
|
12862
12906
|
hostWritten.delete(name);
|
|
12863
12907
|
}
|
|
12864
12908
|
}
|
|
12909
|
+
};
|
|
12910
|
+
const refresh = () => {
|
|
12911
|
+
/**
|
|
12912
|
+
* A detached host already has its replaced values back, and `init()` checks
|
|
12913
|
+
* `keepOnHost` again on reattach, so only `moveFromHost` has work to do here.
|
|
12914
|
+
*/
|
|
12915
|
+
if (observer === undefined) {
|
|
12916
|
+
if (moveFromHost !== undefined) {
|
|
12917
|
+
readMissedChanges();
|
|
12918
|
+
applyMoveFromHost();
|
|
12919
|
+
}
|
|
12920
|
+
return;
|
|
12921
|
+
}
|
|
12922
|
+
// A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
|
|
12923
|
+
// first, or the writes below would act on the old value and drop the new one.
|
|
12924
|
+
const pending = observer.takeRecords();
|
|
12925
|
+
if (pending.length > 0) {
|
|
12926
|
+
handleRecords(pending);
|
|
12927
|
+
}
|
|
12928
|
+
if (moveFromHost !== undefined) {
|
|
12929
|
+
applyMoveFromHost();
|
|
12930
|
+
}
|
|
12931
|
+
if (keepOnHost()) {
|
|
12932
|
+
restoreOnHost();
|
|
12933
|
+
}
|
|
12934
|
+
else {
|
|
12935
|
+
const written = {};
|
|
12936
|
+
for (const name of hostWritten) {
|
|
12937
|
+
if (!replaced.has(name)) {
|
|
12938
|
+
written[name] = el.getAttribute(name);
|
|
12939
|
+
}
|
|
12940
|
+
}
|
|
12941
|
+
replaceOnHost(written);
|
|
12942
|
+
}
|
|
12865
12943
|
// Drop our own writes, or they'd read back as the developer's.
|
|
12866
|
-
observer
|
|
12944
|
+
observer.takeRecords();
|
|
12867
12945
|
};
|
|
12868
12946
|
/**
|
|
12869
12947
|
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
@@ -12934,7 +13012,8 @@ const backButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
|
|
|
12934
13012
|
*/
|
|
12935
13013
|
class BackButton {
|
|
12936
13014
|
constructor(hostRef) {
|
|
12937
|
-
|
|
13015
|
+
if (new.target === BackButton)
|
|
13016
|
+
registerInstance(this, hostRef);
|
|
12938
13017
|
this.inheritedAttributes = {};
|
|
12939
13018
|
/**
|
|
12940
13019
|
* If `true`, the user cannot interact with the button.
|
|
@@ -13051,7 +13130,8 @@ const backdropMdCss = () => `:host{right:0;left:0;top:0;bottom:0;display:block;p
|
|
|
13051
13130
|
*/
|
|
13052
13131
|
class Backdrop {
|
|
13053
13132
|
constructor(hostRef) {
|
|
13054
|
-
|
|
13133
|
+
if (new.target === Backdrop)
|
|
13134
|
+
registerInstance(this, hostRef);
|
|
13055
13135
|
this.ionBackdropTap = createEvent(this, "ionBackdropTap", 7);
|
|
13056
13136
|
/**
|
|
13057
13137
|
* If `true`, the backdrop will be visible.
|
|
@@ -13121,7 +13201,8 @@ const badgeMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-font-s
|
|
|
13121
13201
|
*/
|
|
13122
13202
|
class Badge {
|
|
13123
13203
|
constructor(hostRef) {
|
|
13124
|
-
|
|
13204
|
+
if (new.target === Badge)
|
|
13205
|
+
registerInstance(this, hostRef);
|
|
13125
13206
|
}
|
|
13126
13207
|
getShape() {
|
|
13127
13208
|
const theme = getIonTheme(this);
|
|
@@ -13221,7 +13302,8 @@ const breadcrumbMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex:0
|
|
|
13221
13302
|
*/
|
|
13222
13303
|
class Breadcrumb {
|
|
13223
13304
|
constructor(hostRef) {
|
|
13224
|
-
|
|
13305
|
+
if (new.target === Breadcrumb)
|
|
13306
|
+
registerInstance(this, hostRef);
|
|
13225
13307
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
13226
13308
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
13227
13309
|
this.collapsedClick = createEvent(this, "collapsedClick", 7);
|
|
@@ -13377,7 +13459,8 @@ const breadcrumbsMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-
|
|
|
13377
13459
|
*/
|
|
13378
13460
|
class Breadcrumbs {
|
|
13379
13461
|
constructor(hostRef) {
|
|
13380
|
-
|
|
13462
|
+
if (new.target === Breadcrumbs)
|
|
13463
|
+
registerInstance(this, hostRef);
|
|
13381
13464
|
this.ionCollapsedClick = createEvent(this, "ionCollapsedClick", 7);
|
|
13382
13465
|
/**
|
|
13383
13466
|
* The number of breadcrumbs to show before the collapsed indicator.
|
|
@@ -13540,7 +13623,8 @@ const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;-
|
|
|
13540
13623
|
*/
|
|
13541
13624
|
class Button {
|
|
13542
13625
|
constructor(hostRef) {
|
|
13543
|
-
|
|
13626
|
+
if (new.target === Button)
|
|
13627
|
+
registerInstance(this, hostRef);
|
|
13544
13628
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
13545
13629
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
13546
13630
|
this.inDatetime = false;
|
|
@@ -13649,11 +13733,9 @@ class Button {
|
|
|
13649
13733
|
* The ARIA state has to stay live, since `ion-input-password-toggle` rewrites
|
|
13650
13734
|
* `aria-label` and `aria-pressed` on its `ion-button` on every toggle. We keep
|
|
13651
13735
|
* `aria-disabled` out of the watch because the `<Host>` below renders it from the
|
|
13652
|
-
* `disabled` prop and those writes would clobber a developer's value
|
|
13653
|
-
* because a post-load write stays on the host too, which would put the same role on
|
|
13654
|
-
* two elements in the accessibility tree.
|
|
13736
|
+
* `disabled` prop and those writes would clobber a developer's value.
|
|
13655
13737
|
*/
|
|
13656
|
-
this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled'
|
|
13738
|
+
this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled']);
|
|
13657
13739
|
this.tabindexController = createTabindexController(this.el, () => forceUpdate());
|
|
13658
13740
|
}
|
|
13659
13741
|
connectedCallback() {
|
|
@@ -13795,7 +13877,7 @@ class Button {
|
|
|
13795
13877
|
{
|
|
13796
13878
|
type !== 'button' && this.renderHiddenButton();
|
|
13797
13879
|
}
|
|
13798
|
-
return (hAsync(Host, { key: '
|
|
13880
|
+
return (hAsync(Host, { key: '7b6f8b7fb418d69d7f984191fcc9b7b52a59379b', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
|
|
13799
13881
|
[theme]: true,
|
|
13800
13882
|
[buttonType]: true,
|
|
13801
13883
|
[`${buttonType}-${expand}`]: expand !== undefined,
|
|
@@ -13812,7 +13894,7 @@ class Button {
|
|
|
13812
13894
|
'button-disabled': disabled,
|
|
13813
13895
|
'ion-activatable': true,
|
|
13814
13896
|
'ion-focusable': true,
|
|
13815
|
-
}) }, hAsync(TagType, { key: '
|
|
13897
|
+
}) }, 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 }))));
|
|
13816
13898
|
}
|
|
13817
13899
|
get el() { return getElement(this); }
|
|
13818
13900
|
static get watchers() { return {
|
|
@@ -13865,7 +13947,8 @@ const buttonsMdCss = () => `.sc-ion-buttons-md-h{display:-ms-flexbox;display:fle
|
|
|
13865
13947
|
*/
|
|
13866
13948
|
class Buttons {
|
|
13867
13949
|
constructor(hostRef) {
|
|
13868
|
-
|
|
13950
|
+
if (new.target === Buttons)
|
|
13951
|
+
registerInstance(this, hostRef);
|
|
13869
13952
|
/**
|
|
13870
13953
|
* If true, buttons will disappear when its
|
|
13871
13954
|
* parent toolbar has fully collapsed if the toolbar
|
|
@@ -13918,7 +14001,8 @@ const cardMdCss = () => `:host{--ion-safe-area-left:0px;--ion-safe-area-right:0p
|
|
|
13918
14001
|
*/
|
|
13919
14002
|
class Card {
|
|
13920
14003
|
constructor(hostRef) {
|
|
13921
|
-
|
|
14004
|
+
if (new.target === Card)
|
|
14005
|
+
registerInstance(this, hostRef);
|
|
13922
14006
|
/**
|
|
13923
14007
|
* If `true`, a button tag will be rendered and the card will be tappable.
|
|
13924
14008
|
*/
|
|
@@ -13945,19 +14029,19 @@ class Card {
|
|
|
13945
14029
|
}
|
|
13946
14030
|
componentWillLoad() {
|
|
13947
14031
|
/**
|
|
13948
|
-
*
|
|
13949
|
-
* after load
|
|
13950
|
-
* the card host renders no role of its own, so nothing reads the leftover copy.
|
|
14032
|
+
* A non-clickable card renders no native element to apply the copy to, so an
|
|
14033
|
+
* `aria-label` written after load has to stay on the host.
|
|
13951
14034
|
*/
|
|
13952
|
-
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
|
|
14035
|
+
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(), [], undefined, () => !this.isClickable());
|
|
13953
14036
|
// A card that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
13954
14037
|
this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
|
|
13955
14038
|
}
|
|
13956
14039
|
/**
|
|
13957
|
-
* Changing `href` or `button` adds or removes the native element, so `tabindex`
|
|
13958
|
-
* move with it.
|
|
14040
|
+
* Changing `href` or `button` adds or removes the native element, so `tabindex` and a
|
|
14041
|
+
* label written after load have to move with it.
|
|
13959
14042
|
*/
|
|
13960
14043
|
clickableChanged() {
|
|
14044
|
+
this.ariaController?.refresh();
|
|
13961
14045
|
this.tabindexController?.refresh();
|
|
13962
14046
|
}
|
|
13963
14047
|
connectedCallback() {
|
|
@@ -13993,7 +14077,7 @@ class Card {
|
|
|
13993
14077
|
render() {
|
|
13994
14078
|
const { shape } = this;
|
|
13995
14079
|
const theme = getIonTheme(this);
|
|
13996
|
-
return (hAsync(Host, { key: '
|
|
14080
|
+
return (hAsync(Host, { key: '085a1c0b5c773d690b95779375ff42bdaad2f34e', class: createColorClasses$1(this.color, {
|
|
13997
14081
|
[theme]: true,
|
|
13998
14082
|
[`card-${shape}`]: shape !== undefined,
|
|
13999
14083
|
'card-disabled': this.disabled,
|
|
@@ -14048,7 +14132,8 @@ const cardContentMdCss = () => `:host{position:relative}:host{display:block}:hos
|
|
|
14048
14132
|
*/
|
|
14049
14133
|
class CardContent {
|
|
14050
14134
|
constructor(hostRef) {
|
|
14051
|
-
|
|
14135
|
+
if (new.target === CardContent)
|
|
14136
|
+
registerInstance(this, hostRef);
|
|
14052
14137
|
}
|
|
14053
14138
|
render() {
|
|
14054
14139
|
const theme = getIonTheme(this);
|
|
@@ -14083,7 +14168,8 @@ const cardHeaderMdCss = () => `:host{--background:transparent;--color:inherit;di
|
|
|
14083
14168
|
*/
|
|
14084
14169
|
class CardHeader {
|
|
14085
14170
|
constructor(hostRef) {
|
|
14086
|
-
|
|
14171
|
+
if (new.target === CardHeader)
|
|
14172
|
+
registerInstance(this, hostRef);
|
|
14087
14173
|
/**
|
|
14088
14174
|
* If `true`, the card header will be translucent.
|
|
14089
14175
|
* Only applies when the theme is `"ios"` and the device supports
|
|
@@ -14129,7 +14215,8 @@ const cardSubtitleMdCss = () => `:host{display:block;position:relative;color:var
|
|
|
14129
14215
|
*/
|
|
14130
14216
|
class CardSubtitle {
|
|
14131
14217
|
constructor(hostRef) {
|
|
14132
|
-
|
|
14218
|
+
if (new.target === CardSubtitle)
|
|
14219
|
+
registerInstance(this, hostRef);
|
|
14133
14220
|
}
|
|
14134
14221
|
render() {
|
|
14135
14222
|
const theme = getIonTheme(this);
|
|
@@ -14167,7 +14254,8 @@ const cardTitleMdCss = () => `:host{display:block;position:relative;color:var(--
|
|
|
14167
14254
|
*/
|
|
14168
14255
|
class CardTitle {
|
|
14169
14256
|
constructor(hostRef) {
|
|
14170
|
-
|
|
14257
|
+
if (new.target === CardTitle)
|
|
14258
|
+
registerInstance(this, hostRef);
|
|
14171
14259
|
}
|
|
14172
14260
|
render() {
|
|
14173
14261
|
const theme = getIonTheme(this);
|
|
@@ -14791,6 +14879,49 @@ const createClearButtonPressController = (onPressChange) => {
|
|
|
14791
14879
|
};
|
|
14792
14880
|
};
|
|
14793
14881
|
|
|
14882
|
+
/**
|
|
14883
|
+
* How long, in milliseconds, the field is checked after a restore. The clear
|
|
14884
|
+
* can land a few frames after `pageshow`, such as when Web Inspector is open.
|
|
14885
|
+
*/
|
|
14886
|
+
const PAGE_RESTORE_CHECK_DURATION = 500;
|
|
14887
|
+
/**
|
|
14888
|
+
* Safari clears password and autocomplete="off" fields after restoring a
|
|
14889
|
+
* page from the back/forward cache, without firing `input`. The clear lands
|
|
14890
|
+
* after `pageshow`, so the field is checked each frame until it differs from
|
|
14891
|
+
* the value or the check duration ends.
|
|
14892
|
+
*
|
|
14893
|
+
* A cleared password field stays cleared, as a native one does, and the
|
|
14894
|
+
* value follows it. Any other field is cleared only because autocomplete
|
|
14895
|
+
* defaults to "off", so its text is put back from the value.
|
|
14896
|
+
*
|
|
14897
|
+
* @param ev The `pageshow` event. Only a restored page (`persisted`) is checked.
|
|
14898
|
+
* @param nativeInput The input whose text is read on each check.
|
|
14899
|
+
* @param getValue Returns the component's value when each check runs.
|
|
14900
|
+
* @param onPasswordCleared Called with the field's text when a password field differs from the value.
|
|
14901
|
+
*/
|
|
14902
|
+
const syncValueOnPageRestore = (ev, nativeInput, getValue, onPasswordCleared) => {
|
|
14903
|
+
if (!ev.persisted || !nativeInput) {
|
|
14904
|
+
return;
|
|
14905
|
+
}
|
|
14906
|
+
const start = Date.now();
|
|
14907
|
+
const check = () => {
|
|
14908
|
+
const value = getValue();
|
|
14909
|
+
if (nativeInput.value !== value) {
|
|
14910
|
+
if (nativeInput.type === 'password') {
|
|
14911
|
+
onPasswordCleared(nativeInput.value);
|
|
14912
|
+
}
|
|
14913
|
+
else {
|
|
14914
|
+
nativeInput.value = value;
|
|
14915
|
+
}
|
|
14916
|
+
return;
|
|
14917
|
+
}
|
|
14918
|
+
if (Date.now() - start < PAGE_RESTORE_CHECK_DURATION) {
|
|
14919
|
+
raf(check);
|
|
14920
|
+
}
|
|
14921
|
+
};
|
|
14922
|
+
raf(check);
|
|
14923
|
+
};
|
|
14924
|
+
|
|
14794
14925
|
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)}`;
|
|
14795
14926
|
|
|
14796
14927
|
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}`;
|
|
@@ -14813,7 +14944,8 @@ const checkboxMdCss = () => `:host{display:inline-block;position:relative;cursor
|
|
|
14813
14944
|
*/
|
|
14814
14945
|
class Checkbox {
|
|
14815
14946
|
constructor(hostRef) {
|
|
14816
|
-
|
|
14947
|
+
if (new.target === Checkbox)
|
|
14948
|
+
registerInstance(this, hostRef);
|
|
14817
14949
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
14818
14950
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
14819
14951
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -15067,7 +15199,8 @@ const chipMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-font-sm
|
|
|
15067
15199
|
*/
|
|
15068
15200
|
class Chip {
|
|
15069
15201
|
constructor(hostRef) {
|
|
15070
|
-
|
|
15202
|
+
if (new.target === Chip)
|
|
15203
|
+
registerInstance(this, hostRef);
|
|
15071
15204
|
/**
|
|
15072
15205
|
* Display an outline style button.
|
|
15073
15206
|
*/
|
|
@@ -15178,7 +15311,8 @@ const BREAKPOINTS$1 = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
|
15178
15311
|
*/
|
|
15179
15312
|
class Col {
|
|
15180
15313
|
constructor(hostRef) {
|
|
15181
|
-
|
|
15314
|
+
if (new.target === Col)
|
|
15315
|
+
registerInstance(this, hostRef);
|
|
15182
15316
|
}
|
|
15183
15317
|
onResize() {
|
|
15184
15318
|
}
|
|
@@ -15315,7 +15449,8 @@ const contentMdCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--paddi
|
|
|
15315
15449
|
*/
|
|
15316
15450
|
class Content {
|
|
15317
15451
|
constructor(hostRef) {
|
|
15318
|
-
|
|
15452
|
+
if (new.target === Content)
|
|
15453
|
+
registerInstance(this, hostRef);
|
|
15319
15454
|
this.ionScrollStart = createEvent(this, "ionScrollStart", 7);
|
|
15320
15455
|
this.ionScroll = createEvent(this, "ionScroll", 7);
|
|
15321
15456
|
this.ionScrollEnd = createEvent(this, "ionScrollEnd", 7);
|
|
@@ -17709,11 +17844,11 @@ const checkForPresentationFormatMismatch = (el, presentation, formatOptions) =>
|
|
|
17709
17844
|
}
|
|
17710
17845
|
};
|
|
17711
17846
|
|
|
17712
|
-
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))}`;
|
|
17847
|
+
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))}`;
|
|
17713
17848
|
|
|
17714
|
-
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%}`;
|
|
17849
|
+
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%}`;
|
|
17715
17850
|
|
|
17716
|
-
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}`;
|
|
17851
|
+
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}`;
|
|
17717
17852
|
|
|
17718
17853
|
/**
|
|
17719
17854
|
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
@@ -17757,7 +17892,8 @@ const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flo
|
|
|
17757
17892
|
*/
|
|
17758
17893
|
class Datetime {
|
|
17759
17894
|
constructor(hostRef) {
|
|
17760
|
-
|
|
17895
|
+
if (new.target === Datetime)
|
|
17896
|
+
registerInstance(this, hostRef);
|
|
17761
17897
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
17762
17898
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
17763
17899
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
@@ -18042,13 +18178,15 @@ class Datetime {
|
|
|
18042
18178
|
* Handles range selection logic when a day is clicked.
|
|
18043
18179
|
*
|
|
18044
18180
|
* Creating a new range: first click sets start, second sets end.
|
|
18045
|
-
*
|
|
18046
|
-
*
|
|
18181
|
+
* Modifying an existing range:
|
|
18182
|
+
* - Before range → new start
|
|
18183
|
+
* - Within range → new end
|
|
18184
|
+
* - After range → new end
|
|
18047
18185
|
* If the resulting span contains a disabled date, start a new range instead.
|
|
18048
18186
|
*/
|
|
18049
18187
|
this.setActivePartsRange = (parts) => {
|
|
18050
18188
|
const current = this.rangeParts;
|
|
18051
|
-
if (!current || current.
|
|
18189
|
+
if (!current || isBefore(parts, current.start) || this.rangeContainsDisabledDate(current.start, parts)) {
|
|
18052
18190
|
this.activeParts = { start: parts };
|
|
18053
18191
|
}
|
|
18054
18192
|
else {
|
|
@@ -18490,19 +18628,7 @@ class Datetime {
|
|
|
18490
18628
|
startParts = endParts;
|
|
18491
18629
|
endParts = temp;
|
|
18492
18630
|
}
|
|
18493
|
-
|
|
18494
|
-
// If the entire range falls outside min/max, clear the selection.
|
|
18495
|
-
const clampedStart = clampDate(startParts, minParts, maxParts);
|
|
18496
|
-
const clampedEnd = endParts ? clampDate(endParts, minParts, maxParts) : undefined;
|
|
18497
|
-
const rangeFullyOutOfBounds = clampedEnd && endParts && isSameDay(clampedStart, clampedEnd) && !isSameDay(startParts, endParts);
|
|
18498
|
-
if (rangeFullyOutOfBounds) {
|
|
18499
|
-
this.activeParts = [];
|
|
18500
|
-
}
|
|
18501
|
-
else {
|
|
18502
|
-
startParts = clampedStart;
|
|
18503
|
-
endParts = clampedEnd;
|
|
18504
|
-
this.activeParts = endParts ? { start: startParts, end: endParts } : { start: startParts };
|
|
18505
|
-
}
|
|
18631
|
+
this.activeParts = endParts ? { start: startParts, end: endParts } : { start: startParts };
|
|
18506
18632
|
/**
|
|
18507
18633
|
* Stay on the end date's month when it is already showing, such as
|
|
18508
18634
|
* right after the user picks it, instead of jumping back to the start.
|
|
@@ -19916,7 +20042,7 @@ class Datetime {
|
|
|
19916
20042
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
19917
20043
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
19918
20044
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
19919
|
-
return (hAsync(Host, { key: '
|
|
20045
|
+
return (hAsync(Host, { key: '2510c26c29afd1a34d6ee71a9ffa00b4a7dd716e', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: {
|
|
19920
20046
|
...createColorClasses$1(color, {
|
|
19921
20047
|
[theme]: true,
|
|
19922
20048
|
['datetime-readonly']: readonly,
|
|
@@ -19929,7 +20055,7 @@ class Datetime {
|
|
|
19929
20055
|
[`datetime-grid`]: isGridStyle,
|
|
19930
20056
|
[`datetime-range`]: this.isRangeMode,
|
|
19931
20057
|
}),
|
|
19932
|
-
} }, hAsync("div", { key: '
|
|
20058
|
+
} }, hAsync("div", { key: 'b245de6585c7dc5ccfa6f0f8be8474206380acfe', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(theme)));
|
|
19933
20059
|
}
|
|
19934
20060
|
get el() { return getElement(this); }
|
|
19935
20061
|
static get watchers() { return {
|
|
@@ -20049,7 +20175,8 @@ const datetimeButtonMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-fl
|
|
|
20049
20175
|
*/
|
|
20050
20176
|
class DatetimeButton {
|
|
20051
20177
|
constructor(hostRef) {
|
|
20052
|
-
|
|
20178
|
+
if (new.target === DatetimeButton)
|
|
20179
|
+
registerInstance(this, hostRef);
|
|
20053
20180
|
this.datetimeEl = null;
|
|
20054
20181
|
this.overlayEl = null;
|
|
20055
20182
|
this.datetimePresentation = 'date-time';
|
|
@@ -20435,7 +20562,8 @@ const dividerMdCss = () => `:host{--margin-top:0px;--margin-bottom:0px;--padding
|
|
|
20435
20562
|
|
|
20436
20563
|
class Divider {
|
|
20437
20564
|
constructor(hostRef) {
|
|
20438
|
-
|
|
20565
|
+
if (new.target === Divider)
|
|
20566
|
+
registerInstance(this, hostRef);
|
|
20439
20567
|
/**
|
|
20440
20568
|
* Set to `"xxsmall"` for the smallest spacing.
|
|
20441
20569
|
* Set to "xsmall" for very small spacing.
|
|
@@ -20488,7 +20616,8 @@ const fabCss = () => `:host{position:absolute;width:-webkit-fit-content;width:-m
|
|
|
20488
20616
|
*/
|
|
20489
20617
|
class Fab {
|
|
20490
20618
|
constructor(hostRef) {
|
|
20491
|
-
|
|
20619
|
+
if (new.target === Fab)
|
|
20620
|
+
registerInstance(this, hostRef);
|
|
20492
20621
|
/**
|
|
20493
20622
|
* If `true`, the fab will display on the edge of the header if
|
|
20494
20623
|
* `vertical` is `"top"`, and on the edge of the footer if
|
|
@@ -20584,7 +20713,8 @@ const fabButtonMdCss = () => `:host{--color-activated:var(--color);--color-focus
|
|
|
20584
20713
|
*/
|
|
20585
20714
|
class FabButton {
|
|
20586
20715
|
constructor(hostRef) {
|
|
20587
|
-
|
|
20716
|
+
if (new.target === FabButton)
|
|
20717
|
+
registerInstance(this, hostRef);
|
|
20588
20718
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
20589
20719
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
20590
20720
|
this.fab = null;
|
|
@@ -20799,7 +20929,8 @@ const fabListCss = () => `:host{margin-left:0;margin-right:0;margin-top:calc(100
|
|
|
20799
20929
|
*/
|
|
20800
20930
|
class FabList {
|
|
20801
20931
|
constructor(hostRef) {
|
|
20802
|
-
|
|
20932
|
+
if (new.target === FabList)
|
|
20933
|
+
registerInstance(this, hostRef);
|
|
20803
20934
|
this.activateTimeouts = [];
|
|
20804
20935
|
/**
|
|
20805
20936
|
* If `true`, the fab list will show all fab buttons in the list.
|
|
@@ -21420,7 +21551,8 @@ const footerMdCss = () => `ion-footer{display:block;position:relative;-ms-flex-o
|
|
|
21420
21551
|
*/
|
|
21421
21552
|
class Footer {
|
|
21422
21553
|
constructor(hostRef) {
|
|
21423
|
-
|
|
21554
|
+
if (new.target === Footer)
|
|
21555
|
+
registerInstance(this, hostRef);
|
|
21424
21556
|
this.keyboardCtrl = null;
|
|
21425
21557
|
this.keyboardCtrlPromise = null;
|
|
21426
21558
|
this.scrollHideCtrlPromise = null;
|
|
@@ -21677,7 +21809,8 @@ const GALLERY_ITEM_SELECTOR = 'ion-gallery-item';
|
|
|
21677
21809
|
*/
|
|
21678
21810
|
class Gallery {
|
|
21679
21811
|
constructor(hostRef) {
|
|
21680
|
-
|
|
21812
|
+
if (new.target === Gallery)
|
|
21813
|
+
registerInstance(this, hostRef);
|
|
21681
21814
|
// Keep track of whether we've warned about invalid columns, invalid gap,
|
|
21682
21815
|
// and unused order properties to avoid duplicate warnings on screen resize.
|
|
21683
21816
|
this.hasWarnedInvalidColumns = false;
|
|
@@ -22231,7 +22364,8 @@ const galleryItemCss = () => `:host{display:block;width:100%}::slotted(*){margin
|
|
|
22231
22364
|
*/
|
|
22232
22365
|
class GalleryItem {
|
|
22233
22366
|
constructor(hostRef) {
|
|
22234
|
-
|
|
22367
|
+
if (new.target === GalleryItem)
|
|
22368
|
+
registerInstance(this, hostRef);
|
|
22235
22369
|
this.hasWarnedInvalidParent = false;
|
|
22236
22370
|
this.onSlotChange = () => {
|
|
22237
22371
|
this.warnInvalidParent();
|
|
@@ -22295,7 +22429,8 @@ const gridCss = () => `:host{-webkit-padding-start:var(--ion-grid-padding-xs, va
|
|
|
22295
22429
|
*/
|
|
22296
22430
|
class Grid {
|
|
22297
22431
|
constructor(hostRef) {
|
|
22298
|
-
|
|
22432
|
+
if (new.target === Grid)
|
|
22433
|
+
registerInstance(this, hostRef);
|
|
22299
22434
|
/**
|
|
22300
22435
|
* If `true`, the grid will have a fixed width based on the screen size.
|
|
22301
22436
|
*/
|
|
@@ -22557,7 +22692,8 @@ const headerMdCss = () => `ion-header{display:block;position:relative;-ms-flex-o
|
|
|
22557
22692
|
*/
|
|
22558
22693
|
class Header {
|
|
22559
22694
|
constructor(hostRef) {
|
|
22560
|
-
|
|
22695
|
+
if (new.target === Header)
|
|
22696
|
+
registerInstance(this, hostRef);
|
|
22561
22697
|
this.inheritedAttributes = {};
|
|
22562
22698
|
this.scrollHideCtrlPromise = null;
|
|
22563
22699
|
this.hasWarnedCollapse = false;
|
|
@@ -22883,7 +23019,8 @@ const iconCss = () => `:host{display:inline-block;width:1em;height:1em;font-size
|
|
|
22883
23019
|
|
|
22884
23020
|
class Icon {
|
|
22885
23021
|
constructor(hostRef) {
|
|
22886
|
-
|
|
23022
|
+
if (new.target === Icon)
|
|
23023
|
+
registerInstance(this, hostRef);
|
|
22887
23024
|
this.iconName = null;
|
|
22888
23025
|
this.inheritedAttributes = {};
|
|
22889
23026
|
this.didLoadIcon = false;
|
|
@@ -23068,7 +23205,8 @@ const imgCss = () => `:host{display:block;-o-object-fit:contain;object-fit:conta
|
|
|
23068
23205
|
*/
|
|
23069
23206
|
class Img {
|
|
23070
23207
|
constructor(hostRef) {
|
|
23071
|
-
|
|
23208
|
+
if (new.target === Img)
|
|
23209
|
+
registerInstance(this, hostRef);
|
|
23072
23210
|
this.ionImgWillLoad = createEvent(this, "ionImgWillLoad", 7);
|
|
23073
23211
|
this.ionImgDidLoad = createEvent(this, "ionImgDidLoad", 7);
|
|
23074
23212
|
this.ionError = createEvent(this, "ionError", 7);
|
|
@@ -23193,7 +23331,8 @@ const infiniteScrollCss = () => `ion-infinite-scroll{display:none;width:100%}.in
|
|
|
23193
23331
|
*/
|
|
23194
23332
|
class InfiniteScroll {
|
|
23195
23333
|
constructor(hostRef) {
|
|
23196
|
-
|
|
23334
|
+
if (new.target === InfiniteScroll)
|
|
23335
|
+
registerInstance(this, hostRef);
|
|
23197
23336
|
this.ionInfinite = createEvent(this, "ionInfinite", 7);
|
|
23198
23337
|
this.thrPx = 0;
|
|
23199
23338
|
this.thrPc = 0;
|
|
@@ -23493,7 +23632,8 @@ const infiniteScrollContentMdCss = () => `ion-infinite-scroll-content{display:-m
|
|
|
23493
23632
|
*/
|
|
23494
23633
|
class InfiniteScrollContent {
|
|
23495
23634
|
constructor(hostRef) {
|
|
23496
|
-
|
|
23635
|
+
if (new.target === InfiniteScrollContent)
|
|
23636
|
+
registerInstance(this, hostRef);
|
|
23497
23637
|
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
23498
23638
|
}
|
|
23499
23639
|
componentDidLoad() {
|
|
@@ -23689,7 +23829,8 @@ const inputMdCss = () => `.sc-ion-input-md-h{--placeholder-color:initial;--place
|
|
|
23689
23829
|
*/
|
|
23690
23830
|
class Input {
|
|
23691
23831
|
constructor(hostRef) {
|
|
23692
|
-
|
|
23832
|
+
if (new.target === Input)
|
|
23833
|
+
registerInstance(this, hostRef);
|
|
23693
23834
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
23694
23835
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
23695
23836
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -23904,6 +24045,15 @@ class Input {
|
|
|
23904
24045
|
onClickCapture(ev) {
|
|
23905
24046
|
this.clickController?.handleClickCapture(ev);
|
|
23906
24047
|
}
|
|
24048
|
+
/**
|
|
24049
|
+
* Safari clears the field when it restores the page from the back/forward cache.
|
|
24050
|
+
*/
|
|
24051
|
+
onPageShow(ev) {
|
|
24052
|
+
syncValueOnPageRestore(ev, this.nativeInput, () => this.getValue(), (value) => {
|
|
24053
|
+
this.value = value;
|
|
24054
|
+
this.emitInputChange();
|
|
24055
|
+
});
|
|
24056
|
+
}
|
|
23907
24057
|
componentWillLoad() {
|
|
23908
24058
|
this.inheritedAttributes = {
|
|
23909
24059
|
...inheritAriaAttributes(this.el),
|
|
@@ -24280,7 +24430,7 @@ class Input {
|
|
|
24280
24430
|
* the input has a value or is focused.
|
|
24281
24431
|
*/
|
|
24282
24432
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
|
|
24283
|
-
return (hAsync(Host, { key: '
|
|
24433
|
+
return (hAsync(Host, { key: '2792536365fe763b06650c3a1fb1bd4b64af40d2', class: createColorClasses$1(this.color, {
|
|
24284
24434
|
[theme]: true,
|
|
24285
24435
|
'has-value': hasValue,
|
|
24286
24436
|
'has-focus': hasFocus,
|
|
@@ -24293,7 +24443,7 @@ class Input {
|
|
|
24293
24443
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
24294
24444
|
'input-disabled': disabled,
|
|
24295
24445
|
'input-readonly': readonly,
|
|
24296
|
-
}) }, hAsync("label", { key: '
|
|
24446
|
+
}) }, hAsync("label", { key: '413db7526cd69ee1b187fa5a2d296f27255db118', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderField(), shouldRenderHighlight && hAsync("div", { key: '643b9b2a4d13f53b57c4af3c745b656e44c8a36a', class: "input-highlight" })), this.renderBottomContent()));
|
|
24297
24447
|
}
|
|
24298
24448
|
get el() { return getElement(this); }
|
|
24299
24449
|
static get watchers() { return {
|
|
@@ -24360,7 +24510,7 @@ class Input {
|
|
|
24360
24510
|
"setFocus": [64],
|
|
24361
24511
|
"getInputElement": [64]
|
|
24362
24512
|
},
|
|
24363
|
-
"$listeners$": [[2, "click", "onClickCapture"]],
|
|
24513
|
+
"$listeners$": [[2, "click", "onClickCapture"], [8, "pageshow", "onPageShow"]],
|
|
24364
24514
|
"$lazyBundleId$": "-",
|
|
24365
24515
|
"$attrsToReflect$": [["color", "color"], ["disabled", "disabled"], ["readonly", "readonly"]]
|
|
24366
24516
|
}; }
|
|
@@ -24386,7 +24536,8 @@ const inputOtpMdCss = () => `:host{--margin-top:0;--margin-end:0;--margin-bottom
|
|
|
24386
24536
|
*/
|
|
24387
24537
|
class InputOTP {
|
|
24388
24538
|
constructor(hostRef) {
|
|
24389
|
-
|
|
24539
|
+
if (new.target === InputOTP)
|
|
24540
|
+
registerInstance(this, hostRef);
|
|
24390
24541
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
24391
24542
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
24392
24543
|
this.ionComplete = createEvent(this, "ionComplete", 7);
|
|
@@ -25148,7 +25299,8 @@ const mdInputPasswordToggleNativeCss = () => ``;
|
|
|
25148
25299
|
*/
|
|
25149
25300
|
class InputPasswordToggle {
|
|
25150
25301
|
constructor(hostRef) {
|
|
25151
|
-
|
|
25302
|
+
if (new.target === InputPasswordToggle)
|
|
25303
|
+
registerInstance(this, hostRef);
|
|
25152
25304
|
/**
|
|
25153
25305
|
* @internal
|
|
25154
25306
|
*/
|
|
@@ -25280,7 +25432,8 @@ const INDICATOR_CONTROL_SELECTOR = 'ion-checkbox, ion-radio, ion-toggle';
|
|
|
25280
25432
|
*/
|
|
25281
25433
|
class Item {
|
|
25282
25434
|
constructor(hostRef) {
|
|
25283
|
-
|
|
25435
|
+
if (new.target === Item)
|
|
25436
|
+
registerInstance(this, hostRef);
|
|
25284
25437
|
this.labelColorStyles = {};
|
|
25285
25438
|
this.itemStyles = new Map();
|
|
25286
25439
|
this.didLoad = false;
|
|
@@ -25315,13 +25468,15 @@ class Item {
|
|
|
25315
25468
|
buttonChanged() {
|
|
25316
25469
|
// Update the focusable option when the button option is changed
|
|
25317
25470
|
this.focusable = this.isFocusable();
|
|
25471
|
+
this.ariaController?.refresh();
|
|
25318
25472
|
this.tabindexController?.refresh();
|
|
25319
25473
|
}
|
|
25320
25474
|
/**
|
|
25321
|
-
* Adding or removing `href` adds or removes the native element, so `tabindex`
|
|
25322
|
-
* with it. The same goes for `button` in `buttonChanged`.
|
|
25475
|
+
* Adding or removing `href` adds or removes the native element, so `tabindex` and a label
|
|
25476
|
+
* written after load have to move with it. The same goes for `button` in `buttonChanged`.
|
|
25323
25477
|
*/
|
|
25324
25478
|
hrefChanged() {
|
|
25479
|
+
this.ariaController?.refresh();
|
|
25325
25480
|
this.tabindexController?.refresh();
|
|
25326
25481
|
}
|
|
25327
25482
|
labelColorChanged(ev) {
|
|
@@ -25371,12 +25526,11 @@ class Item {
|
|
|
25371
25526
|
}
|
|
25372
25527
|
componentWillLoad() {
|
|
25373
25528
|
/**
|
|
25374
|
-
*
|
|
25375
|
-
* after load
|
|
25376
|
-
* the item is in an `ion-list`.
|
|
25377
|
-
* reads it twice.
|
|
25529
|
+
* A non-clickable item renders a `div`, which ARIA doesn't allow a name on, so an
|
|
25530
|
+
* `aria-label` written after load also stays on the Host, which is a `listitem`
|
|
25531
|
+
* when the item is in an `ion-list`.
|
|
25378
25532
|
*/
|
|
25379
|
-
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
|
|
25533
|
+
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(), [], undefined, () => !this.isClickable());
|
|
25380
25534
|
// An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
25381
25535
|
this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
|
|
25382
25536
|
}
|
|
@@ -25602,7 +25756,7 @@ class Item {
|
|
|
25602
25756
|
* multi-input item, and in a clickable item, which is a second tab stop.
|
|
25603
25757
|
*/
|
|
25604
25758
|
const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
|
|
25605
|
-
return (hAsync(Host, { key: '
|
|
25759
|
+
return (hAsync(Host, { key: 'd061f93463e9745ad581d4ecab550ff8ccd511a9', "aria-disabled": ariaDisabled, class: {
|
|
25606
25760
|
...childStyles,
|
|
25607
25761
|
...labelColorStyles,
|
|
25608
25762
|
...createColorClasses$1(this.color, {
|
|
@@ -25619,7 +25773,7 @@ class Item {
|
|
|
25619
25773
|
'ion-focusable': this.focusable,
|
|
25620
25774
|
'item-rtl': isRTL$1(el),
|
|
25621
25775
|
}),
|
|
25622
|
-
}, role: inList ? 'listitem' : null }, hAsync(TagType, { key: '
|
|
25776
|
+
}, 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' }))));
|
|
25623
25777
|
}
|
|
25624
25778
|
get el() { return getElement(this); }
|
|
25625
25779
|
static get watchers() { return {
|
|
@@ -25682,7 +25836,8 @@ const itemDividerMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padd
|
|
|
25682
25836
|
*/
|
|
25683
25837
|
class ItemDivider {
|
|
25684
25838
|
constructor(hostRef) {
|
|
25685
|
-
|
|
25839
|
+
if (new.target === ItemDivider)
|
|
25840
|
+
registerInstance(this, hostRef);
|
|
25686
25841
|
/**
|
|
25687
25842
|
* When it's set to `true`, the item-divider will stay visible when it reaches the top
|
|
25688
25843
|
* of the viewport until the next `ion-item-divider` replaces it.
|
|
@@ -25731,7 +25886,8 @@ const itemGroupMdCss = () => `ion-item-group{display:block}`;
|
|
|
25731
25886
|
*/
|
|
25732
25887
|
class ItemGroup {
|
|
25733
25888
|
constructor(hostRef) {
|
|
25734
|
-
|
|
25889
|
+
if (new.target === ItemGroup)
|
|
25890
|
+
registerInstance(this, hostRef);
|
|
25735
25891
|
}
|
|
25736
25892
|
render() {
|
|
25737
25893
|
const theme = getIonTheme(this);
|
|
@@ -25780,7 +25936,8 @@ const itemOptionMdCss = () => `:host{background:var(--background);color:var(--co
|
|
|
25780
25936
|
*/
|
|
25781
25937
|
class ItemOption {
|
|
25782
25938
|
constructor(hostRef) {
|
|
25783
|
-
|
|
25939
|
+
if (new.target === ItemOption)
|
|
25940
|
+
registerInstance(this, hostRef);
|
|
25784
25941
|
/**
|
|
25785
25942
|
* If `true`, the user cannot interact with the item option.
|
|
25786
25943
|
*/
|
|
@@ -25889,7 +26046,8 @@ const itemOptionsMdCss = () => `ion-item-options{top:0;right:0;-ms-flex-pack:end
|
|
|
25889
26046
|
*/
|
|
25890
26047
|
class ItemOptions {
|
|
25891
26048
|
constructor(hostRef) {
|
|
25892
|
-
|
|
26049
|
+
if (new.target === ItemOptions)
|
|
26050
|
+
registerInstance(this, hostRef);
|
|
25893
26051
|
this.ionSwipe = createEvent(this, "ionSwipe", 7);
|
|
25894
26052
|
/**
|
|
25895
26053
|
* 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.
|
|
@@ -26011,7 +26169,8 @@ let openSlidingItem;
|
|
|
26011
26169
|
*/
|
|
26012
26170
|
class ItemSliding {
|
|
26013
26171
|
constructor(hostRef) {
|
|
26014
|
-
|
|
26172
|
+
if (new.target === ItemSliding)
|
|
26173
|
+
registerInstance(this, hostRef);
|
|
26015
26174
|
this.ionDrag = createEvent(this, "ionDrag", 7);
|
|
26016
26175
|
this.item = null;
|
|
26017
26176
|
this.openAmount = 0;
|
|
@@ -26819,7 +26978,8 @@ const labelMdCss = () => `:host(.in-item){--color:initial;display:block;color:va
|
|
|
26819
26978
|
*/
|
|
26820
26979
|
class Label {
|
|
26821
26980
|
constructor(hostRef) {
|
|
26822
|
-
|
|
26981
|
+
if (new.target === Label)
|
|
26982
|
+
registerInstance(this, hostRef);
|
|
26823
26983
|
this.ionColor = createEvent(this, "ionColor", 7);
|
|
26824
26984
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
26825
26985
|
this.inRange = false;
|
|
@@ -26919,7 +27079,8 @@ const listMdCss = () => `ion-list{margin-left:0;margin-right:0;margin-top:0;marg
|
|
|
26919
27079
|
*/
|
|
26920
27080
|
class List {
|
|
26921
27081
|
constructor(hostRef) {
|
|
26922
|
-
|
|
27082
|
+
if (new.target === List)
|
|
27083
|
+
registerInstance(this, hostRef);
|
|
26923
27084
|
/**
|
|
26924
27085
|
* If `true`, the list will have margin around it and rounded corners.
|
|
26925
27086
|
*/
|
|
@@ -27002,7 +27163,8 @@ const listHeaderMdCss = () => `:host{--border-style:solid;--border-width:0;--inn
|
|
|
27002
27163
|
*/
|
|
27003
27164
|
class ListHeader {
|
|
27004
27165
|
constructor(hostRef) {
|
|
27005
|
-
|
|
27166
|
+
if (new.target === ListHeader)
|
|
27167
|
+
registerInstance(this, hostRef);
|
|
27006
27168
|
}
|
|
27007
27169
|
render() {
|
|
27008
27170
|
const { lines } = this;
|
|
@@ -27131,7 +27293,8 @@ const loadingMdCss = () => `.sc-ion-loading-md-h{--min-width:auto;--width:auto;-
|
|
|
27131
27293
|
*/
|
|
27132
27294
|
class Loading {
|
|
27133
27295
|
constructor(hostRef) {
|
|
27134
|
-
|
|
27296
|
+
if (new.target === Loading)
|
|
27297
|
+
registerInstance(this, hostRef);
|
|
27135
27298
|
this.didPresent = createEvent(this, "ionLoadingDidPresent", 7);
|
|
27136
27299
|
this.willPresent = createEvent(this, "ionLoadingWillPresent", 7);
|
|
27137
27300
|
this.willDismiss = createEvent(this, "ionLoadingWillDismiss", 7);
|
|
@@ -27306,14 +27469,14 @@ class Loading {
|
|
|
27306
27469
|
* Otherwise, don't set aria-labelledby.
|
|
27307
27470
|
*/
|
|
27308
27471
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
27309
|
-
return (hAsync(Host, { key: '
|
|
27472
|
+
return (hAsync(Host, { key: '6bb4757eb4f4105847cbe7330a1952a98f05429e', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1", ...htmlAttributes, style: {
|
|
27310
27473
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
27311
27474
|
}, onIonBackdropTap: this.onBackdropTap, class: {
|
|
27312
27475
|
...getClassMap(this.cssClass),
|
|
27313
27476
|
[theme]: true,
|
|
27314
27477
|
'overlay-hidden': true,
|
|
27315
27478
|
'loading-translucent': this.translucent,
|
|
27316
|
-
} }, hAsync("ion-backdrop", { key: '
|
|
27479
|
+
} }, 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" })));
|
|
27317
27480
|
}
|
|
27318
27481
|
get el() { return getElement(this); }
|
|
27319
27482
|
static get watchers() { return {
|
|
@@ -27762,7 +27925,8 @@ const mdEasingReverse = 'cubic-bezier(0.4, 0, 0.6, 1)';
|
|
|
27762
27925
|
*/
|
|
27763
27926
|
class Menu {
|
|
27764
27927
|
constructor(hostRef) {
|
|
27765
|
-
|
|
27928
|
+
if (new.target === Menu)
|
|
27929
|
+
registerInstance(this, hostRef);
|
|
27766
27930
|
this.ionWillOpen = createEvent(this, "ionWillOpen", 7);
|
|
27767
27931
|
this.ionWillClose = createEvent(this, "ionWillClose", 7);
|
|
27768
27932
|
this.ionDidOpen = createEvent(this, "ionDidOpen", 7);
|
|
@@ -28479,7 +28643,8 @@ const menuButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
|
|
|
28479
28643
|
*/
|
|
28480
28644
|
class MenuButton {
|
|
28481
28645
|
constructor(hostRef) {
|
|
28482
|
-
|
|
28646
|
+
if (new.target === MenuButton)
|
|
28647
|
+
registerInstance(this, hostRef);
|
|
28483
28648
|
this.inheritedAttributes = {};
|
|
28484
28649
|
this.visible = false;
|
|
28485
28650
|
/**
|
|
@@ -28578,7 +28743,8 @@ const menuToggleCss = () => `:host(.menu-toggle-hidden){display:none}`;
|
|
|
28578
28743
|
*/
|
|
28579
28744
|
class MenuToggle {
|
|
28580
28745
|
constructor(hostRef) {
|
|
28581
|
-
|
|
28746
|
+
if (new.target === MenuToggle)
|
|
28747
|
+
registerInstance(this, hostRef);
|
|
28582
28748
|
this.visible = false;
|
|
28583
28749
|
/**
|
|
28584
28750
|
* Automatically hides the content when the corresponding menu is not active.
|
|
@@ -30815,7 +30981,8 @@ const onRootSafeAreaTopChange = (callback) => {
|
|
|
30815
30981
|
* corresponding safe-area insets. A modal that does not span an axis reaches
|
|
30816
30982
|
* neither edge on that axis.
|
|
30817
30983
|
*
|
|
30818
|
-
* When both `--width` and `--height` are `fullscreen
|
|
30984
|
+
* When both `--width` and `--height` are `fullscreen` and neither
|
|
30985
|
+
* `--max-width` nor `--max-height` is a definite size, coverage can be
|
|
30819
30986
|
* determined directly. Otherwise, coverage is based on the rendered wrapper,
|
|
30820
30987
|
* including cases where content sizing or `--max-height` causes the modal
|
|
30821
30988
|
* to reach the viewport.
|
|
@@ -30824,7 +30991,13 @@ const getModalCoveredAxes = (hostEl) => {
|
|
|
30824
30991
|
const styles = getComputedStyle(hostEl);
|
|
30825
30992
|
const width = getOverlaySizeType(styles.getPropertyValue('--width'));
|
|
30826
30993
|
const height = getOverlaySizeType(styles.getPropertyValue('--height'));
|
|
30827
|
-
|
|
30994
|
+
// --max-width/--max-height (e.g. the select modal in the Ionic theme
|
|
30995
|
+
// sets --max-height: 45%). When clamped, the modal may not reach the
|
|
30996
|
+
// viewport edges, so we fall through to measure the wrapper instead.
|
|
30997
|
+
const maxWidth = getOverlaySizeType(styles.getPropertyValue('--max-width'));
|
|
30998
|
+
const maxHeight = getOverlaySizeType(styles.getPropertyValue('--max-height'));
|
|
30999
|
+
const isClamped = maxWidth === 'definite' || maxHeight === 'definite';
|
|
31000
|
+
if (width === 'fullscreen' && height === 'fullscreen' && !isClamped) {
|
|
30828
31001
|
return { vertical: true, horizontal: true };
|
|
30829
31002
|
}
|
|
30830
31003
|
return measureCoveredAxes(hostEl);
|
|
@@ -30959,11 +31132,11 @@ const clearSafeAreaOverrides = (hostEl) => {
|
|
|
30959
31132
|
hostEl.style.removeProperty('--ion-safe-area-right');
|
|
30960
31133
|
};
|
|
30961
31134
|
|
|
30962
|
-
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)))}`;
|
|
31135
|
+
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)))}`;
|
|
30963
31136
|
|
|
30964
|
-
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}`;
|
|
31137
|
+
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}`;
|
|
30965
31138
|
|
|
30966
|
-
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}`;
|
|
31139
|
+
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}`;
|
|
30967
31140
|
|
|
30968
31141
|
// TODO(FW-2832): types
|
|
30969
31142
|
/**
|
|
@@ -30978,7 +31151,8 @@ const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;-
|
|
|
30978
31151
|
*/
|
|
30979
31152
|
class Modal {
|
|
30980
31153
|
constructor(hostRef) {
|
|
30981
|
-
|
|
31154
|
+
if (new.target === Modal)
|
|
31155
|
+
registerInstance(this, hostRef);
|
|
30982
31156
|
this.didPresent = createEvent(this, "ionModalDidPresent", 7);
|
|
30983
31157
|
this.willPresent = createEvent(this, "ionModalWillPresent", 7);
|
|
30984
31158
|
this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
|
|
@@ -32227,7 +32401,7 @@ class Modal {
|
|
|
32227
32401
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
32228
32402
|
const shape = this.getShape();
|
|
32229
32403
|
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
32230
|
-
return (hAsync(Host, { key: '
|
|
32404
|
+
return (hAsync(Host, { key: 'd751a17872485c686c1e281bf21bf09b08a5615a', "no-router": true,
|
|
32231
32405
|
// Allow the modal to be navigable when the handle is focusable
|
|
32232
32406
|
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1, ...htmlAttributes, style: {
|
|
32233
32407
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
@@ -32241,7 +32415,7 @@ class Modal {
|
|
|
32241
32415
|
'overlay-hidden': true,
|
|
32242
32416
|
[FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false,
|
|
32243
32417
|
...getClassMap(this.cssClass),
|
|
32244
|
-
}, onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }, hAsync("ion-backdrop", { key: '
|
|
32418
|
+
}, 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',
|
|
32245
32419
|
/*
|
|
32246
32420
|
role and aria-modal must be used on the
|
|
32247
32421
|
same element. They must also be set inside the
|
|
@@ -32254,9 +32428,9 @@ class Modal {
|
|
|
32254
32428
|
without the tabindex focus() would be a no-op and screen readers
|
|
32255
32429
|
may not properly announce the dialog and its content when it opens.
|
|
32256
32430
|
*/
|
|
32257
|
-
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: '
|
|
32431
|
+
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",
|
|
32258
32432
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
32259
|
-
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: '
|
|
32433
|
+
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" })));
|
|
32260
32434
|
}
|
|
32261
32435
|
get el() { return getElement(this); }
|
|
32262
32436
|
static get watchers() { return {
|
|
@@ -32392,7 +32566,8 @@ const navCss = () => `:host{right:0;left:0;top:0;bottom:0;position:absolute;cont
|
|
|
32392
32566
|
*/
|
|
32393
32567
|
class Nav {
|
|
32394
32568
|
constructor(hostRef) {
|
|
32395
|
-
|
|
32569
|
+
if (new.target === Nav)
|
|
32570
|
+
registerInstance(this, hostRef);
|
|
32396
32571
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
32397
32572
|
this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
|
|
32398
32573
|
this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
|
|
@@ -33132,7 +33307,7 @@ class Nav {
|
|
|
33132
33307
|
}
|
|
33133
33308
|
}
|
|
33134
33309
|
render() {
|
|
33135
|
-
return hAsync("slot", { key: '
|
|
33310
|
+
return hAsync("slot", { key: '034043c38e28e876fc656e2e54f67ee4d5ce85e3' });
|
|
33136
33311
|
}
|
|
33137
33312
|
get el() { return getElement(this); }
|
|
33138
33313
|
static get watchers() { return {
|
|
@@ -33201,7 +33376,8 @@ const navLink = (el, routerDirection, component, componentProps, routerAnimation
|
|
|
33201
33376
|
*/
|
|
33202
33377
|
class NavLink {
|
|
33203
33378
|
constructor(hostRef) {
|
|
33204
|
-
|
|
33379
|
+
if (new.target === NavLink)
|
|
33380
|
+
registerInstance(this, hostRef);
|
|
33205
33381
|
/**
|
|
33206
33382
|
* The transition direction when navigating to another page.
|
|
33207
33383
|
*/
|
|
@@ -33211,7 +33387,7 @@ class NavLink {
|
|
|
33211
33387
|
};
|
|
33212
33388
|
}
|
|
33213
33389
|
render() {
|
|
33214
|
-
return hAsync(Host, { key: '
|
|
33390
|
+
return hAsync(Host, { key: '10d9404e91c656e008d8c14f48311c3d0c0234fc', onClick: this.onClick });
|
|
33215
33391
|
}
|
|
33216
33392
|
get el() { return getElement(this); }
|
|
33217
33393
|
static get cmpMeta() { return {
|
|
@@ -33241,13 +33417,14 @@ const noteMdCss = () => `:host{color:var(--color);font-family:var(--ion-font-fam
|
|
|
33241
33417
|
*/
|
|
33242
33418
|
class Note {
|
|
33243
33419
|
constructor(hostRef) {
|
|
33244
|
-
|
|
33420
|
+
if (new.target === Note)
|
|
33421
|
+
registerInstance(this, hostRef);
|
|
33245
33422
|
}
|
|
33246
33423
|
render() {
|
|
33247
33424
|
const theme = getIonTheme(this);
|
|
33248
|
-
return (hAsync(Host, { key: '
|
|
33425
|
+
return (hAsync(Host, { key: '683f5da066f10c3899f97d18f97857431538ac85', class: createColorClasses$1(this.color, {
|
|
33249
33426
|
[theme]: true,
|
|
33250
|
-
}) }, hAsync("slot", { key: '
|
|
33427
|
+
}) }, hAsync("slot", { key: 'b3fd619eeda60a03ba60b7202646a2f46f7a26f5' })));
|
|
33251
33428
|
}
|
|
33252
33429
|
static get style() { return {
|
|
33253
33430
|
ionic: ionicNoteMdCss(),
|
|
@@ -33278,7 +33455,8 @@ const pickerMdCss = () => `:host{display:-ms-flexbox;display:flex;position:relat
|
|
|
33278
33455
|
*/
|
|
33279
33456
|
class Picker {
|
|
33280
33457
|
constructor(hostRef) {
|
|
33281
|
-
|
|
33458
|
+
if (new.target === Picker)
|
|
33459
|
+
registerInstance(this, hostRef);
|
|
33282
33460
|
this.ionInputModeChange = createEvent(this, "ionInputModeChange", 7);
|
|
33283
33461
|
this.useInputMode = false;
|
|
33284
33462
|
this.isInHighlightBounds = (ev) => {
|
|
@@ -33768,7 +33946,8 @@ const pickerColumnCss = () => `:host{display:-ms-flexbox;display:flex;position:r
|
|
|
33768
33946
|
*/
|
|
33769
33947
|
class PickerColumn {
|
|
33770
33948
|
constructor(hostRef) {
|
|
33771
|
-
|
|
33949
|
+
if (new.target === PickerColumn)
|
|
33950
|
+
registerInstance(this, hostRef);
|
|
33772
33951
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
33773
33952
|
this.isScrolling = false;
|
|
33774
33953
|
this.isColumnVisible = false;
|
|
@@ -34510,7 +34689,8 @@ const pickerColumnOptionMdCss = () => `.picker-column-option-button{padding-left
|
|
|
34510
34689
|
*/
|
|
34511
34690
|
class PickerColumnOption {
|
|
34512
34691
|
constructor(hostRef) {
|
|
34513
|
-
|
|
34692
|
+
if (new.target === PickerColumnOption)
|
|
34693
|
+
registerInstance(this, hostRef);
|
|
34514
34694
|
/**
|
|
34515
34695
|
* We keep track of the parent picker column
|
|
34516
34696
|
* so we can update the value of it when
|
|
@@ -34589,10 +34769,10 @@ class PickerColumnOption {
|
|
|
34589
34769
|
render() {
|
|
34590
34770
|
const { color, disabled, ariaLabel } = this;
|
|
34591
34771
|
const theme = getIonTheme(this);
|
|
34592
|
-
return (hAsync(Host, { key: '
|
|
34772
|
+
return (hAsync(Host, { key: '4ff52114c63c48798c9f254b1fcd941d6fc6359a', class: createColorClasses$1(color, {
|
|
34593
34773
|
[theme]: true,
|
|
34594
34774
|
['option-disabled']: disabled,
|
|
34595
|
-
}) }, hAsync("div", { key: '
|
|
34775
|
+
}) }, hAsync("div", { key: 'f443e4817e73363248f02fc0a566646990824eef', class: 'picker-column-option-button', role: "button", "aria-label": ariaLabel, onClick: () => this.onClick() }, hAsync("slot", { key: '11b01b7dd45225672dd27c87c0f203147cf76d78' }))));
|
|
34596
34776
|
}
|
|
34597
34777
|
get el() { return getElement(this); }
|
|
34598
34778
|
static get watchers() { return {
|
|
@@ -35769,11 +35949,11 @@ const mdLeaveAnimation$1 = (baseEl) => {
|
|
|
35769
35949
|
.addAnimation([backdropAnimation, wrapperAnimation]);
|
|
35770
35950
|
};
|
|
35771
35951
|
|
|
35772
|
-
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}`;
|
|
35952
|
+
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}`;
|
|
35773
35953
|
|
|
35774
|
-
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)}}`;
|
|
35954
|
+
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)}}`;
|
|
35775
35955
|
|
|
35776
|
-
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}`;
|
|
35956
|
+
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}`;
|
|
35777
35957
|
|
|
35778
35958
|
// TODO(FW-2832): types
|
|
35779
35959
|
/**
|
|
@@ -35788,7 +35968,8 @@ const popoverMdCss = () => `:host{--background:var(--ion-background-color, #fff)
|
|
|
35788
35968
|
*/
|
|
35789
35969
|
class Popover {
|
|
35790
35970
|
constructor(hostRef) {
|
|
35791
|
-
|
|
35971
|
+
if (new.target === Popover)
|
|
35972
|
+
registerInstance(this, hostRef);
|
|
35792
35973
|
this.didPresent = createEvent(this, "ionPopoverDidPresent", 7);
|
|
35793
35974
|
this.willPresent = createEvent(this, "ionPopoverWillPresent", 7);
|
|
35794
35975
|
this.willDismiss = createEvent(this, "ionPopoverWillDismiss", 7);
|
|
@@ -36264,7 +36445,7 @@ class Popover {
|
|
|
36264
36445
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
36265
36446
|
const desktop = isPlatform('desktop');
|
|
36266
36447
|
const enableArrow = arrow && !parentPopover;
|
|
36267
|
-
return (hAsync(Host, { key: '
|
|
36448
|
+
return (hAsync(Host, { key: '622296253a543188de2c0f63d26351b595490e87', "aria-modal": "true", "no-router": true, tabindex: "-1", ...htmlAttributes, style: {
|
|
36268
36449
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
36269
36450
|
}, class: {
|
|
36270
36451
|
...getClassMap(this.cssClass),
|
|
@@ -36275,7 +36456,7 @@ class Popover {
|
|
|
36275
36456
|
[`popover-side-${side}`]: true,
|
|
36276
36457
|
[FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false,
|
|
36277
36458
|
'popover-nested': !!parentPopover,
|
|
36278
|
-
}, onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }, !parentPopover && hAsync("ion-backdrop", { key: '
|
|
36459
|
+
}, 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" })));
|
|
36279
36460
|
}
|
|
36280
36461
|
get el() { return getElement(this); }
|
|
36281
36462
|
static get watchers() { return {
|
|
@@ -36362,7 +36543,8 @@ const progressBarMdCss = () => `:host{display:block;position:relative;width:100%
|
|
|
36362
36543
|
*/
|
|
36363
36544
|
class ProgressBar {
|
|
36364
36545
|
constructor(hostRef) {
|
|
36365
|
-
|
|
36546
|
+
if (new.target === ProgressBar)
|
|
36547
|
+
registerInstance(this, hostRef);
|
|
36366
36548
|
/**
|
|
36367
36549
|
* The state of the progress bar, based on if the time the process takes is known or not.
|
|
36368
36550
|
* Default options are: `"determinate"` (no animation), `"indeterminate"` (animate from left to right).
|
|
@@ -36403,7 +36585,7 @@ class ProgressBar {
|
|
|
36403
36585
|
const shape = this.getShape();
|
|
36404
36586
|
// If the progress is displayed as a solid bar.
|
|
36405
36587
|
const progressSolid = buffer === 1;
|
|
36406
|
-
return (hAsync(Host, { key: '
|
|
36588
|
+
return (hAsync(Host, { key: '070dd50f87f88ac405686fbdf804e12780783498', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses$1(color, {
|
|
36407
36589
|
[theme]: true,
|
|
36408
36590
|
[`progress-bar-${type}`]: true,
|
|
36409
36591
|
'progress-paused': paused,
|
|
@@ -36473,7 +36655,8 @@ const radioMdCss = () => `:host{--inner-border-radius:50%;display:inline-block;p
|
|
|
36473
36655
|
*/
|
|
36474
36656
|
class Radio {
|
|
36475
36657
|
constructor(hostRef) {
|
|
36476
|
-
|
|
36658
|
+
if (new.target === Radio)
|
|
36659
|
+
registerInstance(this, hostRef);
|
|
36477
36660
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
36478
36661
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
36479
36662
|
this.inputId = `ion-rb-${radioButtonIds++}`;
|
|
@@ -36671,7 +36854,8 @@ const radioGroupMdCss = () => `:host{display:block}.radio-group-top .error-text{
|
|
|
36671
36854
|
*/
|
|
36672
36855
|
class RadioGroup {
|
|
36673
36856
|
constructor(hostRef) {
|
|
36674
|
-
|
|
36857
|
+
if (new.target === RadioGroup)
|
|
36858
|
+
registerInstance(this, hostRef);
|
|
36675
36859
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
36676
36860
|
this.ionValueChange = createEvent(this, "ionValueChange", 7);
|
|
36677
36861
|
this.inputId = `ion-rg-${radioGroupIds++}`;
|
|
@@ -37015,7 +37199,8 @@ const rangeMdCss = () => `:host{display:-ms-flexbox;display:flex;position:relati
|
|
|
37015
37199
|
*/
|
|
37016
37200
|
class Range {
|
|
37017
37201
|
constructor(hostRef) {
|
|
37018
|
-
|
|
37202
|
+
if (new.target === Range)
|
|
37203
|
+
registerInstance(this, hostRef);
|
|
37019
37204
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
37020
37205
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
37021
37206
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
@@ -37744,7 +37929,7 @@ class Range {
|
|
|
37744
37929
|
const valueAtMin = dualKnobs ? this.valA === min || this.valB === min : this.valA === min;
|
|
37745
37930
|
const valueAtMax = dualKnobs ? this.valA === max || this.valB === max : this.valA === max;
|
|
37746
37931
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
37747
|
-
return (hAsync(Host, { key: '
|
|
37932
|
+
return (hAsync(Host, { key: '454a2ebded7c6372134a374121d42308f0fd00c6', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
37748
37933
|
[theme]: true,
|
|
37749
37934
|
'in-item': inItem,
|
|
37750
37935
|
'range-disabled': disabled,
|
|
@@ -37758,10 +37943,10 @@ class Range {
|
|
|
37758
37943
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
37759
37944
|
'range-value-min': valueAtMin,
|
|
37760
37945
|
'range-value-max': valueAtMax,
|
|
37761
|
-
}) }, hAsync("label", { key: '
|
|
37946
|
+
}) }, hAsync("label", { key: '487647cdcd054245f03a251e36973eafbae24682', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: 'fefabb9245ab7595629c66dfb351035e535e24a5', class: {
|
|
37762
37947
|
'label-text-wrapper': true,
|
|
37763
37948
|
'label-text-wrapper-hidden': !hasLabel,
|
|
37764
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
37949
|
+
}, 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" })))));
|
|
37765
37950
|
}
|
|
37766
37951
|
get el() { return getElement(this); }
|
|
37767
37952
|
static get watchers() { return {
|
|
@@ -38131,7 +38316,8 @@ const refresherMdCss = () => `ion-refresher{top:0;display:none;position:absolute
|
|
|
38131
38316
|
*/
|
|
38132
38317
|
class Refresher {
|
|
38133
38318
|
constructor(hostRef) {
|
|
38134
|
-
|
|
38319
|
+
if (new.target === Refresher)
|
|
38320
|
+
registerInstance(this, hostRef);
|
|
38135
38321
|
this.ionRefresh = createEvent(this, "ionRefresh", 7);
|
|
38136
38322
|
this.ionPull = createEvent(this, "ionPull", 7);
|
|
38137
38323
|
this.ionStart = createEvent(this, "ionStart", 7);
|
|
@@ -38872,7 +39058,7 @@ class Refresher {
|
|
|
38872
39058
|
}
|
|
38873
39059
|
render() {
|
|
38874
39060
|
const theme = getIonTheme(this);
|
|
38875
|
-
return (hAsync(Host, { key: '
|
|
39061
|
+
return (hAsync(Host, { key: 'a22f9cebf374cf266bf24fbc21af9612f350f5ca', slot: "fixed", class: {
|
|
38876
39062
|
[theme]: true,
|
|
38877
39063
|
// Used internally for styling
|
|
38878
39064
|
[`refresher-${theme}`]: true,
|
|
@@ -39071,7 +39257,8 @@ const mdRefresherContentCss = () => ``;
|
|
|
39071
39257
|
*/
|
|
39072
39258
|
class RefresherContent {
|
|
39073
39259
|
constructor(hostRef) {
|
|
39074
|
-
|
|
39260
|
+
if (new.target === RefresherContent)
|
|
39261
|
+
registerInstance(this, hostRef);
|
|
39075
39262
|
this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
|
|
39076
39263
|
}
|
|
39077
39264
|
componentWillLoad() {
|
|
@@ -39116,9 +39303,9 @@ class RefresherContent {
|
|
|
39116
39303
|
const pullingIcon = this.pullingIcon;
|
|
39117
39304
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
39118
39305
|
const theme = getIonTheme(this);
|
|
39119
|
-
return (hAsync(Host, { key: '
|
|
39306
|
+
return (hAsync(Host, { key: '0350fdfa30ec5174f3da073f688cf015df7d19de', class: {
|
|
39120
39307
|
[theme]: true,
|
|
39121
|
-
} }, hAsync("div", { key: '
|
|
39308
|
+
} }, 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())));
|
|
39122
39309
|
}
|
|
39123
39310
|
get el() { return getElement(this); }
|
|
39124
39311
|
static get style() { return {
|
|
@@ -39155,7 +39342,8 @@ const reorderMdCss = () => `:host([slot]){display:none;line-height:0;z-index:100
|
|
|
39155
39342
|
*/
|
|
39156
39343
|
class Reorder {
|
|
39157
39344
|
constructor(hostRef) {
|
|
39158
|
-
|
|
39345
|
+
if (new.target === Reorder)
|
|
39346
|
+
registerInstance(this, hostRef);
|
|
39159
39347
|
}
|
|
39160
39348
|
onClick(ev) {
|
|
39161
39349
|
const reorderGroup = this.el.closest('ion-reorder-group');
|
|
@@ -39180,9 +39368,9 @@ class Reorder {
|
|
|
39180
39368
|
render() {
|
|
39181
39369
|
const { reorderHandleIcon } = this;
|
|
39182
39370
|
const theme = getIonTheme(this);
|
|
39183
|
-
return (hAsync(Host, { key: '
|
|
39371
|
+
return (hAsync(Host, { key: '27d5f2d7d58f82f63556cd4b5d677783b3da531e', class: {
|
|
39184
39372
|
[theme]: true,
|
|
39185
|
-
} }, hAsync("slot", { key: '
|
|
39373
|
+
} }, hAsync("slot", { key: '9107ed9511c0a5bcfbeb2bd434c5aa7cb202ee7d' }, hAsync("ion-icon", { key: '95a9cccca2fea267fbe3bc89f4e02e6589a601c9', icon: reorderHandleIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
39186
39374
|
}
|
|
39187
39375
|
get el() { return getElement(this); }
|
|
39188
39376
|
static get style() { return {
|
|
@@ -39208,7 +39396,8 @@ const reorderGroupCss = () => `.reorder-list-active>*{display:block;-webkit-tran
|
|
|
39208
39396
|
*/
|
|
39209
39397
|
class ReorderGroup {
|
|
39210
39398
|
constructor(hostRef) {
|
|
39211
|
-
|
|
39399
|
+
if (new.target === ReorderGroup)
|
|
39400
|
+
registerInstance(this, hostRef);
|
|
39212
39401
|
this.ionItemReorder = createEvent(this, "ionItemReorder", 7);
|
|
39213
39402
|
this.ionReorderStart = createEvent(this, "ionReorderStart", 7);
|
|
39214
39403
|
this.ionReorderMove = createEvent(this, "ionReorderMove", 7);
|
|
@@ -39458,7 +39647,7 @@ class ReorderGroup {
|
|
|
39458
39647
|
}
|
|
39459
39648
|
render() {
|
|
39460
39649
|
const theme = getIonTheme(this);
|
|
39461
|
-
return (hAsync(Host, { key: '
|
|
39650
|
+
return (hAsync(Host, { key: '5aabf1cd3750fc9c6708ef1940014df4c009d430', class: {
|
|
39462
39651
|
[theme]: true,
|
|
39463
39652
|
'reorder-enabled': !this.disabled,
|
|
39464
39653
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -39520,7 +39709,8 @@ const mdRippleEffectCommonCss = () => `:host{right:0;left:0;top:0;bottom:0;posit
|
|
|
39520
39709
|
*/
|
|
39521
39710
|
class RippleEffect {
|
|
39522
39711
|
constructor(hostRef) {
|
|
39523
|
-
|
|
39712
|
+
if (new.target === RippleEffect)
|
|
39713
|
+
registerInstance(this, hostRef);
|
|
39524
39714
|
/**
|
|
39525
39715
|
* Sets the type of ripple-effect:
|
|
39526
39716
|
*
|
|
@@ -39584,7 +39774,7 @@ class RippleEffect {
|
|
|
39584
39774
|
}
|
|
39585
39775
|
render() {
|
|
39586
39776
|
const theme = getIonTheme(this);
|
|
39587
|
-
return (hAsync(Host, { key: '
|
|
39777
|
+
return (hAsync(Host, { key: '77488fb7e6f25d989d9b643489f704284279a986', role: "presentation", class: {
|
|
39588
39778
|
[theme]: true,
|
|
39589
39779
|
unbounded: this.unbounded,
|
|
39590
39780
|
} }));
|
|
@@ -39623,7 +39813,8 @@ const INITIAL_ORIGIN_SCALE = 0.5;
|
|
|
39623
39813
|
*/
|
|
39624
39814
|
class Route {
|
|
39625
39815
|
constructor(hostRef) {
|
|
39626
|
-
|
|
39816
|
+
if (new.target === Route)
|
|
39817
|
+
registerInstance(this, hostRef);
|
|
39627
39818
|
this.ionRouteDataChanged = createEvent(this, "ionRouteDataChanged", 7);
|
|
39628
39819
|
/**
|
|
39629
39820
|
* Relative path that needs to match in order for this route to apply.
|
|
@@ -39685,7 +39876,8 @@ class Route {
|
|
|
39685
39876
|
|
|
39686
39877
|
class RouteRedirect {
|
|
39687
39878
|
constructor(hostRef) {
|
|
39688
|
-
|
|
39879
|
+
if (new.target === RouteRedirect)
|
|
39880
|
+
registerInstance(this, hostRef);
|
|
39689
39881
|
this.ionRouteRedirectChanged = createEvent(this, "ionRouteRedirectChanged", 7);
|
|
39690
39882
|
}
|
|
39691
39883
|
propDidChange() {
|
|
@@ -40377,7 +40569,8 @@ const flattenNode = (chain, chains, node) => {
|
|
|
40377
40569
|
*/
|
|
40378
40570
|
class Router {
|
|
40379
40571
|
constructor(hostRef) {
|
|
40380
|
-
|
|
40572
|
+
if (new.target === Router)
|
|
40573
|
+
registerInstance(this, hostRef);
|
|
40381
40574
|
this.ionRouteWillChange = createEvent(this, "ionRouteWillChange", 7);
|
|
40382
40575
|
this.ionRouteDidChange = createEvent(this, "ionRouteDidChange", 7);
|
|
40383
40576
|
this.previousPath = null;
|
|
@@ -40722,7 +40915,8 @@ const routerLinkCss = () => `:host{--background:transparent;--color:var(--ion-co
|
|
|
40722
40915
|
*/
|
|
40723
40916
|
class RouterLink {
|
|
40724
40917
|
constructor(hostRef) {
|
|
40725
|
-
|
|
40918
|
+
if (new.target === RouterLink)
|
|
40919
|
+
registerInstance(this, hostRef);
|
|
40726
40920
|
/**
|
|
40727
40921
|
* When using a router, it specifies the transition direction when navigating to
|
|
40728
40922
|
* another page using `href`.
|
|
@@ -40749,10 +40943,10 @@ class RouterLink {
|
|
|
40749
40943
|
rel: this.rel,
|
|
40750
40944
|
target: this.target,
|
|
40751
40945
|
};
|
|
40752
|
-
return (hAsync(Host, { key: '
|
|
40946
|
+
return (hAsync(Host, { key: '2b26c1ff94c11c0d231c9384afd301d355700a3a', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
40753
40947
|
[theme]: true,
|
|
40754
40948
|
'ion-activatable': true,
|
|
40755
|
-
}) }, hAsync("a", { key: '
|
|
40949
|
+
}) }, hAsync("a", { key: 'ad53c2663f25beceea6f49ede859eb36c27d7f64', ...attrs, ...tabindexAttributes }, hAsync("slot", { key: 'cabe77eb4d2473712e53a7ab8534ec475a6c469e' }))));
|
|
40756
40950
|
}
|
|
40757
40951
|
get el() { return getElement(this); }
|
|
40758
40952
|
static get style() { return routerLinkCss(); }
|
|
@@ -40780,7 +40974,8 @@ const routerOutletCss = () => `:host{right:0;left:0;top:0;bottom:0;position:abso
|
|
|
40780
40974
|
*/
|
|
40781
40975
|
class RouterOutlet {
|
|
40782
40976
|
constructor(hostRef) {
|
|
40783
|
-
|
|
40977
|
+
if (new.target === RouterOutlet)
|
|
40978
|
+
registerInstance(this, hostRef);
|
|
40784
40979
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
40785
40980
|
this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
|
|
40786
40981
|
this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
|
|
@@ -40998,7 +41193,7 @@ class RouterOutlet {
|
|
|
40998
41193
|
return true;
|
|
40999
41194
|
}
|
|
41000
41195
|
render() {
|
|
41001
|
-
return hAsync("slot", { key: '
|
|
41196
|
+
return hAsync("slot", { key: 'bc08bb5b5a8d5f8b24d491b1ca00e37d7a765f70' });
|
|
41002
41197
|
}
|
|
41003
41198
|
get el() { return getElement(this); }
|
|
41004
41199
|
static get watchers() { return {
|
|
@@ -41038,13 +41233,14 @@ const rowCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;
|
|
|
41038
41233
|
*/
|
|
41039
41234
|
class Row {
|
|
41040
41235
|
constructor(hostRef) {
|
|
41041
|
-
|
|
41236
|
+
if (new.target === Row)
|
|
41237
|
+
registerInstance(this, hostRef);
|
|
41042
41238
|
}
|
|
41043
41239
|
render() {
|
|
41044
41240
|
const theme = getIonTheme(this);
|
|
41045
|
-
return (hAsync(Host, { key: '
|
|
41241
|
+
return (hAsync(Host, { key: '7004407e649f3b5855bd262c5204f4864580096b', class: {
|
|
41046
41242
|
[theme]: true,
|
|
41047
|
-
} }, hAsync("slot", { key: '
|
|
41243
|
+
} }, hAsync("slot", { key: 'afa6d1036796041447ab497abc7e66e3e96fcad5' })));
|
|
41048
41244
|
}
|
|
41049
41245
|
static get style() { return rowCss(); }
|
|
41050
41246
|
static get cmpMeta() { return {
|
|
@@ -41069,7 +41265,8 @@ const searchbarMdCss = () => `.sc-ion-searchbar-md-h{--placeholder-color:initial
|
|
|
41069
41265
|
*/
|
|
41070
41266
|
class Searchbar {
|
|
41071
41267
|
constructor(hostRef) {
|
|
41072
|
-
|
|
41268
|
+
if (new.target === Searchbar)
|
|
41269
|
+
registerInstance(this, hostRef);
|
|
41073
41270
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
41074
41271
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
41075
41272
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
@@ -41294,6 +41491,15 @@ class Searchbar {
|
|
|
41294
41491
|
this.positionElements();
|
|
41295
41492
|
});
|
|
41296
41493
|
}
|
|
41494
|
+
/**
|
|
41495
|
+
* Safari clears the field when it restores the page from the back/forward cache.
|
|
41496
|
+
*/
|
|
41497
|
+
onPageShow(ev) {
|
|
41498
|
+
syncValueOnPageRestore(ev, this.nativeInput, () => this.getValue(), (value) => {
|
|
41499
|
+
this.value = value;
|
|
41500
|
+
this.emitInputChange();
|
|
41501
|
+
});
|
|
41502
|
+
}
|
|
41297
41503
|
connectedCallback() {
|
|
41298
41504
|
this.emitStyle();
|
|
41299
41505
|
}
|
|
@@ -41608,8 +41814,8 @@ class Searchbar {
|
|
|
41608
41814
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
41609
41815
|
const shape = this.getShape();
|
|
41610
41816
|
const size = this.getSize();
|
|
41611
|
-
const cancelButton = this.showCancelButton !== 'never' && (hAsync("button", { key: '
|
|
41612
|
-
return (hAsync(Host, { key: '
|
|
41817
|
+
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))));
|
|
41818
|
+
return (hAsync(Host, { key: 'e1962f16f8e3ae8d3468fe4cb412adc6793ede6d', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses$1(this.color, {
|
|
41613
41819
|
[theme]: true,
|
|
41614
41820
|
'searchbar-animated': animated,
|
|
41615
41821
|
'searchbar-disabled': this.disabled,
|
|
@@ -41623,7 +41829,7 @@ class Searchbar {
|
|
|
41623
41829
|
[`searchbar-shape-${shape}`]: shape !== undefined,
|
|
41624
41830
|
[`searchbar-size-${size}`]: size !== undefined,
|
|
41625
41831
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
41626
|
-
}) }, hAsync("div", { key: '
|
|
41832
|
+
}) }, 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));
|
|
41627
41833
|
}
|
|
41628
41834
|
get el() { return getElement(this); }
|
|
41629
41835
|
static get watchers() { return {
|
|
@@ -41682,7 +41888,7 @@ class Searchbar {
|
|
|
41682
41888
|
"setFocus": [64],
|
|
41683
41889
|
"getInputElement": [64]
|
|
41684
41890
|
},
|
|
41685
|
-
"$listeners$":
|
|
41891
|
+
"$listeners$": [[8, "pageshow", "onPageShow"]],
|
|
41686
41892
|
"$lazyBundleId$": "-",
|
|
41687
41893
|
"$attrsToReflect$": [["color", "color"]]
|
|
41688
41894
|
}; }
|
|
@@ -41701,7 +41907,8 @@ const segmentMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-font
|
|
|
41701
41907
|
*/
|
|
41702
41908
|
class Segment {
|
|
41703
41909
|
constructor(hostRef) {
|
|
41704
|
-
|
|
41910
|
+
if (new.target === Segment)
|
|
41911
|
+
registerInstance(this, hostRef);
|
|
41705
41912
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
41706
41913
|
this.ionSelect = createEvent(this, "ionSelect", 7);
|
|
41707
41914
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
@@ -42237,14 +42444,14 @@ class Segment {
|
|
|
42237
42444
|
}
|
|
42238
42445
|
render() {
|
|
42239
42446
|
const theme = getIonTheme(this);
|
|
42240
|
-
return (hAsync(Host, { key: '
|
|
42447
|
+
return (hAsync(Host, { key: '4ec0851cf97a626ee5eff118cfc25d337be9a7b7', role: "tablist", onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
42241
42448
|
[theme]: true,
|
|
42242
42449
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
42243
42450
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
42244
42451
|
'segment-activated': this.activated,
|
|
42245
42452
|
'segment-disabled': this.disabled,
|
|
42246
42453
|
'segment-scrollable': this.scrollable,
|
|
42247
|
-
}) }, hAsync("slot", { key: '
|
|
42454
|
+
}) }, hAsync("slot", { key: '1150ef0e6f7e9f07f4b8fd29b9e53084f58a7c49', onSlotchange: this.onSlottedItemsChange })));
|
|
42248
42455
|
}
|
|
42249
42456
|
get el() { return getElement(this); }
|
|
42250
42457
|
static get watchers() { return {
|
|
@@ -42301,7 +42508,8 @@ let ids = 0;
|
|
|
42301
42508
|
*/
|
|
42302
42509
|
class SegmentButton {
|
|
42303
42510
|
constructor(hostRef) {
|
|
42304
|
-
|
|
42511
|
+
if (new.target === SegmentButton)
|
|
42512
|
+
registerInstance(this, hostRef);
|
|
42305
42513
|
this.segmentEl = null;
|
|
42306
42514
|
this.inheritedAttributes = {};
|
|
42307
42515
|
this.checked = false;
|
|
@@ -42406,7 +42614,7 @@ class SegmentButton {
|
|
|
42406
42614
|
const theme = getIonTheme(this);
|
|
42407
42615
|
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
42408
42616
|
const hasSegmentColor = () => segmentEl?.color !== undefined;
|
|
42409
|
-
return (hAsync(Host, { key: '
|
|
42617
|
+
return (hAsync(Host, { key: 'dc32817bd4d0923bb3bf5f2f410f2cbd8b7e2234', class: {
|
|
42410
42618
|
[theme]: true,
|
|
42411
42619
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
42412
42620
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -42422,7 +42630,7 @@ class SegmentButton {
|
|
|
42422
42630
|
'ion-activatable': true,
|
|
42423
42631
|
'ion-activatable-instant': true,
|
|
42424
42632
|
'ion-focusable': true,
|
|
42425
|
-
} }, hAsync("button", { key: '
|
|
42633
|
+
} }, 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" }))));
|
|
42426
42634
|
}
|
|
42427
42635
|
get el() { return getElement(this); }
|
|
42428
42636
|
static get watchers() { return {
|
|
@@ -42457,10 +42665,11 @@ const segmentContentCss = () => `:host{scroll-snap-align:center;scroll-snap-stop
|
|
|
42457
42665
|
|
|
42458
42666
|
class SegmentContent {
|
|
42459
42667
|
constructor(hostRef) {
|
|
42460
|
-
|
|
42668
|
+
if (new.target === SegmentContent)
|
|
42669
|
+
registerInstance(this, hostRef);
|
|
42461
42670
|
}
|
|
42462
42671
|
render() {
|
|
42463
|
-
return (hAsync(Host, { key: '
|
|
42672
|
+
return (hAsync(Host, { key: '665f41a854621f898eaf7ba9a49e77cc9326501e' }, hAsync("slot", { key: '635aa57fbf6167dcd36fe8dc5dfc1c313637ac04' })));
|
|
42464
42673
|
}
|
|
42465
42674
|
static get style() { return segmentContentCss(); }
|
|
42466
42675
|
static get cmpMeta() { return {
|
|
@@ -42481,7 +42690,8 @@ const segmentViewMdCss = () => `:host{display:-ms-flexbox;display:flex;height:10
|
|
|
42481
42690
|
|
|
42482
42691
|
class SegmentView {
|
|
42483
42692
|
constructor(hostRef) {
|
|
42484
|
-
|
|
42693
|
+
if (new.target === SegmentView)
|
|
42694
|
+
registerInstance(this, hostRef);
|
|
42485
42695
|
this.ionSegmentViewScroll = createEvent(this, "ionSegmentViewScroll", 7);
|
|
42486
42696
|
this.scrollEndTimeout = null;
|
|
42487
42697
|
this.isTouching = false;
|
|
@@ -42587,11 +42797,11 @@ class SegmentView {
|
|
|
42587
42797
|
}
|
|
42588
42798
|
render() {
|
|
42589
42799
|
const { disabled, isManualScroll, swipeGesture } = this;
|
|
42590
|
-
return (hAsync(Host, { key: '
|
|
42800
|
+
return (hAsync(Host, { key: '47551948817a9d875b9f883272bfe7c0c4f2bf3d', class: {
|
|
42591
42801
|
'segment-view-disabled': disabled,
|
|
42592
42802
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
42593
42803
|
'segment-view-swipe-disabled': swipeGesture === false,
|
|
42594
|
-
} }, hAsync("slot", { key: '
|
|
42804
|
+
} }, hAsync("slot", { key: '2b19a10a776fd6ff147a1e749bc80d646a432f26' })));
|
|
42595
42805
|
}
|
|
42596
42806
|
get el() { return getElement(this); }
|
|
42597
42807
|
static get style() { return {
|
|
@@ -42645,7 +42855,8 @@ const selectMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padding-b
|
|
|
42645
42855
|
*/
|
|
42646
42856
|
class Select {
|
|
42647
42857
|
constructor(hostRef) {
|
|
42648
|
-
|
|
42858
|
+
if (new.target === Select)
|
|
42859
|
+
registerInstance(this, hostRef);
|
|
42649
42860
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
42650
42861
|
this.ionCancel = createEvent(this, "ionCancel", 7);
|
|
42651
42862
|
this.ionDismiss = createEvent(this, "ionDismiss", 7);
|
|
@@ -43583,7 +43794,7 @@ class Select {
|
|
|
43583
43794
|
const hasValue = this.hasValue();
|
|
43584
43795
|
renderHiddenInput(true, el, name, parseValue(value), disabled);
|
|
43585
43796
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
|
|
43586
|
-
return (hAsync(Host, { key: '
|
|
43797
|
+
return (hAsync(Host, { key: '868a057d230b811066a8583ccdd2145d3c610100', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
43587
43798
|
[theme]: true,
|
|
43588
43799
|
'in-item': inItem,
|
|
43589
43800
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -43603,7 +43814,7 @@ class Select {
|
|
|
43603
43814
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
43604
43815
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
43605
43816
|
[`select-size-${size}`]: size !== undefined,
|
|
43606
|
-
}) }, hAsync("label", { key: '
|
|
43817
|
+
}) }, 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()));
|
|
43607
43818
|
}
|
|
43608
43819
|
get el() { return getElement(this); }
|
|
43609
43820
|
static get watchers() { return {
|
|
@@ -43939,7 +44150,8 @@ const selectModalMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
|
|
|
43939
44150
|
|
|
43940
44151
|
class SelectModal {
|
|
43941
44152
|
constructor(hostRef) {
|
|
43942
|
-
|
|
44153
|
+
if (new.target === SelectModal)
|
|
44154
|
+
registerInstance(this, hostRef);
|
|
43943
44155
|
// Tracks the option that received Enter-keydown so keyup only
|
|
43944
44156
|
// dismisses when the press started on the same option. Prevents
|
|
43945
44157
|
// Enter on the triggering ion-select from auto-dismissing.
|
|
@@ -44095,10 +44307,10 @@ class SelectModal {
|
|
|
44095
44307
|
});
|
|
44096
44308
|
}
|
|
44097
44309
|
render() {
|
|
44098
|
-
return (hAsync(Host, { key: '
|
|
44310
|
+
return (hAsync(Host, { key: 'cb157690a608301f1816b546d5739d976fc1086a', class: {
|
|
44099
44311
|
[getIonMode$1(this)]: true,
|
|
44100
44312
|
...this.getModalContextClasses(),
|
|
44101
|
-
} }, hAsync("ion-header", { key: '
|
|
44313
|
+
} }, 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()))));
|
|
44102
44314
|
}
|
|
44103
44315
|
get el() { return getElement(this); }
|
|
44104
44316
|
static get style() { return {
|
|
@@ -44134,7 +44346,8 @@ const selectOptionCss = () => `:host{display:none}`;
|
|
|
44134
44346
|
*/
|
|
44135
44347
|
class SelectOption {
|
|
44136
44348
|
constructor(hostRef) {
|
|
44137
|
-
|
|
44349
|
+
if (new.target === SelectOption)
|
|
44350
|
+
registerInstance(this, hostRef);
|
|
44138
44351
|
this.inputId = `ion-selopt-${selectOptionIds++}`;
|
|
44139
44352
|
/**
|
|
44140
44353
|
* If `true`, the user cannot interact with the select option.
|
|
@@ -44143,7 +44356,7 @@ class SelectOption {
|
|
|
44143
44356
|
}
|
|
44144
44357
|
render() {
|
|
44145
44358
|
const theme = getIonTheme(this);
|
|
44146
|
-
return (hAsync(Host, { key: '
|
|
44359
|
+
return (hAsync(Host, { key: 'bc914d45a48e4f47270276d131a69386394e8f15', class: {
|
|
44147
44360
|
[theme]: true,
|
|
44148
44361
|
}, role: "option", id: this.inputId }));
|
|
44149
44362
|
}
|
|
@@ -44180,7 +44393,8 @@ const selectPopoverMdCss = () => `.action-sheet-button-label-has-rich-content.sc
|
|
|
44180
44393
|
*/
|
|
44181
44394
|
class SelectPopover {
|
|
44182
44395
|
constructor(hostRef) {
|
|
44183
|
-
|
|
44396
|
+
if (new.target === SelectPopover)
|
|
44397
|
+
registerInstance(this, hostRef);
|
|
44184
44398
|
// Tracks the option that received Enter-keydown so keyup only
|
|
44185
44399
|
// dismisses when the press started on the same option. Prevents
|
|
44186
44400
|
// Enter on the triggering ion-select from auto-dismissing.
|
|
@@ -44332,9 +44546,9 @@ class SelectPopover {
|
|
|
44332
44546
|
const { header, message, options, subHeader } = this;
|
|
44333
44547
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
44334
44548
|
const theme = getIonTheme(this);
|
|
44335
|
-
return (hAsync(Host, { key: '
|
|
44549
|
+
return (hAsync(Host, { key: '79006f1f11e1dcf97a73793e6c58a91e12a0ba3e', class: {
|
|
44336
44550
|
[theme]: true,
|
|
44337
|
-
} }, hAsync("ion-list", { key: '
|
|
44551
|
+
} }, 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))));
|
|
44338
44552
|
}
|
|
44339
44553
|
get el() { return getElement(this); }
|
|
44340
44554
|
static get style() { return {
|
|
@@ -44366,7 +44580,8 @@ const skeletonTextCss = () => `:host{--background:rgba(var(--background-rgb, var
|
|
|
44366
44580
|
*/
|
|
44367
44581
|
class SkeletonText {
|
|
44368
44582
|
constructor(hostRef) {
|
|
44369
|
-
|
|
44583
|
+
if (new.target === SkeletonText)
|
|
44584
|
+
registerInstance(this, hostRef);
|
|
44370
44585
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
44371
44586
|
/**
|
|
44372
44587
|
* If `true`, the skeleton text will animate.
|
|
@@ -44389,11 +44604,11 @@ class SkeletonText {
|
|
|
44389
44604
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
44390
44605
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
44391
44606
|
const theme = getIonTheme(this);
|
|
44392
|
-
return (hAsync(Host, { key: '
|
|
44607
|
+
return (hAsync(Host, { key: '70efd9086ef58705a965a63aa3e5ac775757dc85', class: {
|
|
44393
44608
|
[theme]: true,
|
|
44394
44609
|
'skeleton-text-animated': animated,
|
|
44395
44610
|
'in-media': inMedia,
|
|
44396
|
-
} }, hAsync("span", { key: '
|
|
44611
|
+
} }, hAsync("span", { key: '296246a88e33e0106045bec2f64738f48593ba12' }, "\u00A0")));
|
|
44397
44612
|
}
|
|
44398
44613
|
get el() { return getElement(this); }
|
|
44399
44614
|
static get style() { return skeletonTextCss(); }
|
|
@@ -44421,7 +44636,8 @@ const mdSpinnerNativeCss = () => `:host{display:inline-block;position:relative;w
|
|
|
44421
44636
|
*/
|
|
44422
44637
|
class Spinner {
|
|
44423
44638
|
constructor(hostRef) {
|
|
44424
|
-
|
|
44639
|
+
if (new.target === Spinner)
|
|
44640
|
+
registerInstance(this, hostRef);
|
|
44425
44641
|
/**
|
|
44426
44642
|
* If `true`, the spinner's animation will be paused.
|
|
44427
44643
|
*/
|
|
@@ -44465,7 +44681,7 @@ class Spinner {
|
|
|
44465
44681
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
44466
44682
|
}
|
|
44467
44683
|
}
|
|
44468
|
-
return (hAsync(Host, { key: '
|
|
44684
|
+
return (hAsync(Host, { key: 'e6d6c81972147b610b468cfb8535d4c4acd0911c', class: createColorClasses$1(self.color, {
|
|
44469
44685
|
[theme]: true,
|
|
44470
44686
|
[`spinner-${spinnerName}`]: true,
|
|
44471
44687
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -44518,7 +44734,8 @@ const QUERY = {
|
|
|
44518
44734
|
*/
|
|
44519
44735
|
class SplitPane {
|
|
44520
44736
|
constructor(hostRef) {
|
|
44521
|
-
|
|
44737
|
+
if (new.target === SplitPane)
|
|
44738
|
+
registerInstance(this, hostRef);
|
|
44522
44739
|
this.ionSplitPaneVisible = createEvent(this, "ionSplitPaneVisible", 7);
|
|
44523
44740
|
this.visible = false;
|
|
44524
44741
|
/**
|
|
@@ -44577,12 +44794,12 @@ class SplitPane {
|
|
|
44577
44794
|
}
|
|
44578
44795
|
render() {
|
|
44579
44796
|
const theme = getIonTheme(this);
|
|
44580
|
-
return (hAsync(Host, { key: '
|
|
44797
|
+
return (hAsync(Host, { key: '61ea2d0f8dce9aa532f6f42c1875df77ab31a76e', class: {
|
|
44581
44798
|
[theme]: true,
|
|
44582
44799
|
// Used internally for styling
|
|
44583
44800
|
[`split-pane-${theme}`]: true,
|
|
44584
44801
|
'split-pane-visible': this.visible,
|
|
44585
|
-
} }, hAsync("slot", { key: '
|
|
44802
|
+
} }, hAsync("slot", { key: 'abf4d7ff27c218c0ddd055795520ad2b0fc614e9' })));
|
|
44586
44803
|
}
|
|
44587
44804
|
get el() { return getElement(this); }
|
|
44588
44805
|
static get watchers() { return {
|
|
@@ -44625,7 +44842,8 @@ const tabCss = () => `:host(.tab-hidden){display:none !important}`;
|
|
|
44625
44842
|
*/
|
|
44626
44843
|
class Tab {
|
|
44627
44844
|
constructor(hostRef) {
|
|
44628
|
-
|
|
44845
|
+
if (new.target === Tab)
|
|
44846
|
+
registerInstance(this, hostRef);
|
|
44629
44847
|
/** @internal */
|
|
44630
44848
|
this.active = false;
|
|
44631
44849
|
}
|
|
@@ -44666,10 +44884,10 @@ class Tab {
|
|
|
44666
44884
|
}
|
|
44667
44885
|
render() {
|
|
44668
44886
|
const { tab, active, component } = this;
|
|
44669
|
-
return (hAsync(Host, { key: '
|
|
44887
|
+
return (hAsync(Host, { key: '11639899dcc05d784d332536e21f2e0143978fc3', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
44670
44888
|
'ion-page': component === undefined,
|
|
44671
44889
|
'tab-hidden': !active,
|
|
44672
|
-
} }, hAsync("slot", { key: '
|
|
44890
|
+
} }, hAsync("slot", { key: '064d9c741068982233724827906472f6e70223d7' })));
|
|
44673
44891
|
}
|
|
44674
44892
|
get el() { return getElement(this); }
|
|
44675
44893
|
static get watchers() { return {
|
|
@@ -44706,7 +44924,8 @@ const tabBarMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-align
|
|
|
44706
44924
|
*/
|
|
44707
44925
|
class TabBar {
|
|
44708
44926
|
constructor(hostRef) {
|
|
44709
|
-
|
|
44927
|
+
if (new.target === TabBar)
|
|
44928
|
+
registerInstance(this, hostRef);
|
|
44710
44929
|
this.ionTabBarChanged = createEvent(this, "ionTabBarChanged", 7);
|
|
44711
44930
|
this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
|
|
44712
44931
|
this.keyboardCtrl = null;
|
|
@@ -44871,14 +45090,14 @@ class TabBar {
|
|
|
44871
45090
|
const theme = getIonTheme(this);
|
|
44872
45091
|
const shape = this.getShape();
|
|
44873
45092
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
44874
|
-
return (hAsync(Host, { key: '
|
|
45093
|
+
return (hAsync(Host, { key: '40641198ffe27dd45976cdb53c6a588a2084d9b6', role: "tablist", class: createColorClasses$1(color, {
|
|
44875
45094
|
[theme]: true,
|
|
44876
45095
|
'tab-bar-translucent': translucent,
|
|
44877
45096
|
'tab-bar-hidden': shouldHide,
|
|
44878
45097
|
'tab-bar-scroll-effect-hide': scrollEffect === 'hide',
|
|
44879
45098
|
[`tab-bar-${expand}`]: true,
|
|
44880
45099
|
[`tab-bar-${shape}`]: shape !== undefined,
|
|
44881
|
-
}) }, hAsync("slot", { key: '
|
|
45100
|
+
}) }, hAsync("slot", { key: '5c23e329b0a689afe2abdc54704b2d071e20d7bc' })));
|
|
44882
45101
|
}
|
|
44883
45102
|
get el() { return getElement(this); }
|
|
44884
45103
|
static get watchers() { return {
|
|
@@ -44926,7 +45145,8 @@ const tabButtonMdCss = () => `:host{--ripple-color:var(--color-selected);--backg
|
|
|
44926
45145
|
*/
|
|
44927
45146
|
class TabButton {
|
|
44928
45147
|
constructor(hostRef) {
|
|
44929
|
-
|
|
45148
|
+
if (new.target === TabButton)
|
|
45149
|
+
registerInstance(this, hostRef);
|
|
44930
45150
|
this.ionTabButtonClick = createEvent(this, "ionTabButtonClick", 7);
|
|
44931
45151
|
this.inheritedAttributes = {};
|
|
44932
45152
|
/**
|
|
@@ -45018,7 +45238,7 @@ class TabButton {
|
|
|
45018
45238
|
rel,
|
|
45019
45239
|
target,
|
|
45020
45240
|
};
|
|
45021
|
-
return (hAsync(Host, { key: '
|
|
45241
|
+
return (hAsync(Host, { key: 'da6047b4b6145ac6fd7ff268149c0be68986d5db', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
45022
45242
|
[theme]: true,
|
|
45023
45243
|
'tab-selected': selected,
|
|
45024
45244
|
'tab-disabled': disabled,
|
|
@@ -45031,7 +45251,7 @@ class TabButton {
|
|
|
45031
45251
|
'ion-selectable': true,
|
|
45032
45252
|
[`tab-button-shape-${shape}`]: shape !== undefined,
|
|
45033
45253
|
'ion-focusable': true,
|
|
45034
|
-
} }, hAsync("a", { key: '
|
|
45254
|
+
} }, 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" }))));
|
|
45035
45255
|
}
|
|
45036
45256
|
get el() { return getElement(this); }
|
|
45037
45257
|
static get style() { return {
|
|
@@ -45071,7 +45291,8 @@ const tabsCss = () => `:host{right:0;left:0;top:0;bottom:0;display:-ms-flexbox;d
|
|
|
45071
45291
|
*/
|
|
45072
45292
|
class Tabs {
|
|
45073
45293
|
constructor(hostRef) {
|
|
45074
|
-
|
|
45294
|
+
if (new.target === Tabs)
|
|
45295
|
+
registerInstance(this, hostRef);
|
|
45075
45296
|
this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
|
|
45076
45297
|
this.ionTabsWillChange = createEvent(this, "ionTabsWillChange", 3);
|
|
45077
45298
|
this.ionTabsDidChange = createEvent(this, "ionTabsDidChange", 3);
|
|
@@ -45226,7 +45447,7 @@ class Tabs {
|
|
|
45226
45447
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
45227
45448
|
}
|
|
45228
45449
|
render() {
|
|
45229
|
-
return (hAsync(Host, { key: '
|
|
45450
|
+
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" })));
|
|
45230
45451
|
}
|
|
45231
45452
|
get el() { return getElement(this); }
|
|
45232
45453
|
static get style() { return tabsCss(); }
|
|
@@ -45263,13 +45484,14 @@ const textCss = () => `:host(.ion-color){color:var(--ion-color-base)}`;
|
|
|
45263
45484
|
*/
|
|
45264
45485
|
class Text {
|
|
45265
45486
|
constructor(hostRef) {
|
|
45266
|
-
|
|
45487
|
+
if (new.target === Text)
|
|
45488
|
+
registerInstance(this, hostRef);
|
|
45267
45489
|
}
|
|
45268
45490
|
render() {
|
|
45269
45491
|
const theme = getIonTheme(this);
|
|
45270
|
-
return (hAsync(Host, { key: '
|
|
45492
|
+
return (hAsync(Host, { key: '7bf3aa9197541d2da1d40a361bc1bd9206a5223e', class: createColorClasses$1(this.color, {
|
|
45271
45493
|
[theme]: true,
|
|
45272
|
-
}) }, hAsync("slot", { key: '
|
|
45494
|
+
}) }, hAsync("slot", { key: '5dc6e3ce051f0d26459847c2bc5895edf9d08ca9' })));
|
|
45273
45495
|
}
|
|
45274
45496
|
static get style() { return textCss(); }
|
|
45275
45497
|
static get cmpMeta() { return {
|
|
@@ -45313,7 +45535,8 @@ const textareaMdCss = () => `:host{--background:initial;--color:initial;--placeh
|
|
|
45313
45535
|
*/
|
|
45314
45536
|
class Textarea {
|
|
45315
45537
|
constructor(hostRef) {
|
|
45316
|
-
|
|
45538
|
+
if (new.target === Textarea)
|
|
45539
|
+
registerInstance(this, hostRef);
|
|
45317
45540
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
45318
45541
|
this.ionInput = createEvent(this, "ionInput", 7);
|
|
45319
45542
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -45853,7 +46076,7 @@ class Textarea {
|
|
|
45853
46076
|
* the textarea has a value or is focused.
|
|
45854
46077
|
*/
|
|
45855
46078
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus));
|
|
45856
|
-
return (hAsync(Host, { key: '
|
|
46079
|
+
return (hAsync(Host, { key: 'bf0000df4ad04e29becbca9490c9175fa5f1b86f', class: createColorClasses$1(this.color, {
|
|
45857
46080
|
[theme]: true,
|
|
45858
46081
|
'has-value': hasValue,
|
|
45859
46082
|
'has-focus': hasFocus,
|
|
@@ -45865,7 +46088,7 @@ class Textarea {
|
|
|
45865
46088
|
'in-item': inItem,
|
|
45866
46089
|
'textarea-disabled': disabled,
|
|
45867
46090
|
'textarea-readonly': readonly,
|
|
45868
|
-
}) }, hAsync("label", { key: '
|
|
46091
|
+
}) }, 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()));
|
|
45869
46092
|
}
|
|
45870
46093
|
static get delegatesFocus() { return true; }
|
|
45871
46094
|
static get formAssociated() { return true; }
|
|
@@ -45945,13 +46168,14 @@ const thumbnailCss = () => `:host{--size:48px;--border-radius:0;border-radius:va
|
|
|
45945
46168
|
*/
|
|
45946
46169
|
class Thumbnail {
|
|
45947
46170
|
constructor(hostRef) {
|
|
45948
|
-
|
|
46171
|
+
if (new.target === Thumbnail)
|
|
46172
|
+
registerInstance(this, hostRef);
|
|
45949
46173
|
}
|
|
45950
46174
|
render() {
|
|
45951
46175
|
const theme = getIonTheme(this);
|
|
45952
|
-
return (hAsync(Host, { key: '
|
|
46176
|
+
return (hAsync(Host, { key: '723d3bdf4dfa5847abe659f701519dd8f56af1b8', class: {
|
|
45953
46177
|
[theme]: true,
|
|
45954
|
-
} }, hAsync("slot", { key: '
|
|
46178
|
+
} }, hAsync("slot", { key: 'd24893ec6f6b29f16ddf9fd1cabaa8b298485d4c' })));
|
|
45955
46179
|
}
|
|
45956
46180
|
static get style() { return thumbnailCss(); }
|
|
45957
46181
|
static get cmpMeta() { return {
|
|
@@ -46420,7 +46644,8 @@ const toastMdCss = () => `:host{--border-width:0;--border-style:none;--border-co
|
|
|
46420
46644
|
*/
|
|
46421
46645
|
class Toast {
|
|
46422
46646
|
constructor(hostRef) {
|
|
46423
|
-
|
|
46647
|
+
if (new.target === Toast)
|
|
46648
|
+
registerInstance(this, hostRef);
|
|
46424
46649
|
this.didPresent = createEvent(this, "ionToastDidPresent", 7);
|
|
46425
46650
|
this.willPresent = createEvent(this, "ionToastWillPresent", 7);
|
|
46426
46651
|
this.willDismiss = createEvent(this, "ionToastWillDismiss", 7);
|
|
@@ -46833,7 +47058,7 @@ class Toast {
|
|
|
46833
47058
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
46834
47059
|
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);
|
|
46835
47060
|
}
|
|
46836
|
-
return (hAsync(Host, { key: '
|
|
47061
|
+
return (hAsync(Host, { key: '14af37cbc4e429544109910b86d19f1d4464c6bd', tabindex: "-1", ...this.htmlAttributes, style: {
|
|
46837
47062
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
46838
47063
|
}, class: createColorClasses$1(this.color, {
|
|
46839
47064
|
[mode]: true,
|
|
@@ -46843,7 +47068,7 @@ class Toast {
|
|
|
46843
47068
|
'toast-translucent': this.translucent,
|
|
46844
47069
|
[`toast-shape-${shape}`]: shape !== undefined,
|
|
46845
47070
|
[`toast-hue-${hue}`]: hue !== undefined,
|
|
46846
|
-
}), onIonToastWillDismiss: this.dispatchCancelHandler }, hAsync("div", { key: '
|
|
47071
|
+
}), 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')))));
|
|
46847
47072
|
}
|
|
46848
47073
|
get el() { return getElement(this); }
|
|
46849
47074
|
static get watchers() { return {
|
|
@@ -46935,7 +47160,8 @@ const toggleMdCss = () => `:host{-webkit-box-sizing:content-box !important;box-s
|
|
|
46935
47160
|
*/
|
|
46936
47161
|
class Toggle {
|
|
46937
47162
|
constructor(hostRef) {
|
|
46938
|
-
|
|
47163
|
+
if (new.target === Toggle)
|
|
47164
|
+
registerInstance(this, hostRef);
|
|
46939
47165
|
this.ionChange = createEvent(this, "ionChange", 7);
|
|
46940
47166
|
this.ionFocus = createEvent(this, "ionFocus", 7);
|
|
46941
47167
|
this.ionBlur = createEvent(this, "ionBlur", 7);
|
|
@@ -47219,7 +47445,7 @@ class Toggle {
|
|
|
47219
47445
|
// The attributes are matched too because the class needs the item to render.
|
|
47220
47446
|
const inClickableItem = hostContext('ion-item.ion-activatable, ion-item[button], ion-item[href]', el);
|
|
47221
47447
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
47222
|
-
return (hAsync(Host, { key: '
|
|
47448
|
+
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, {
|
|
47223
47449
|
[theme]: true,
|
|
47224
47450
|
'in-item': inItem,
|
|
47225
47451
|
// `ion-focusable` has to stay on because it is what makes the item focusable.
|
|
@@ -47234,10 +47460,10 @@ class Toggle {
|
|
|
47234
47460
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
47235
47461
|
[`toggle-${rtl}`]: true,
|
|
47236
47462
|
'ion-activatable': isIonicTheme,
|
|
47237
|
-
}) }, hAsync("label", { key: '
|
|
47463
|
+
}) }, 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: {
|
|
47238
47464
|
'label-text-wrapper': true,
|
|
47239
47465
|
'label-text-wrapper-hidden': !hasLabel,
|
|
47240
|
-
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '
|
|
47466
|
+
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, hAsync("slot", { key: '82e3981d99821bb7a9bb29117fafcc82164863c7' }), this.renderHintText()), hAsync("div", { key: '9f4cd1e855818797411b622aef3a3c12bd20b271', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
47241
47467
|
}
|
|
47242
47468
|
get el() { return getElement(this); }
|
|
47243
47469
|
static get watchers() { return {
|
|
@@ -47307,7 +47533,8 @@ const toolbarMdCss = () => `:host{--border-width:0;--border-style:solid;--opacit
|
|
|
47307
47533
|
*/
|
|
47308
47534
|
class Toolbar {
|
|
47309
47535
|
constructor(hostRef) {
|
|
47310
|
-
|
|
47536
|
+
if (new.target === Toolbar)
|
|
47537
|
+
registerInstance(this, hostRef);
|
|
47311
47538
|
this.childrenStyles = new Map();
|
|
47312
47539
|
this.slotNames = ['start', 'end', 'primary', 'secondary'];
|
|
47313
47540
|
this.slotClasses = [
|
|
@@ -47581,14 +47808,14 @@ class Toolbar {
|
|
|
47581
47808
|
Object.assign(childStyles, style);
|
|
47582
47809
|
});
|
|
47583
47810
|
const titlePlacement = this.getTitlePlacement();
|
|
47584
|
-
return (hAsync(Host, { key: '
|
|
47811
|
+
return (hAsync(Host, { key: '2860071de9b3ea484e3c0f91f8be9f669df5eb41', class: {
|
|
47585
47812
|
...createColorClasses$1(this.color, {
|
|
47586
47813
|
[theme]: true,
|
|
47587
47814
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
47588
47815
|
[`toolbar-title-placement-${titlePlacement}`]: true,
|
|
47589
47816
|
}),
|
|
47590
47817
|
...childStyles,
|
|
47591
|
-
} }, hAsync("div", { key: '
|
|
47818
|
+
} }, 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() }))));
|
|
47592
47819
|
}
|
|
47593
47820
|
get el() { return getElement(this); }
|
|
47594
47821
|
static get watchers() { return {
|
|
@@ -47626,7 +47853,8 @@ const titleMdCss = () => `:host{--color:initial;display:-ms-flexbox;display:flex
|
|
|
47626
47853
|
*/
|
|
47627
47854
|
class ToolbarTitle {
|
|
47628
47855
|
constructor(hostRef) {
|
|
47629
|
-
|
|
47856
|
+
if (new.target === ToolbarTitle)
|
|
47857
|
+
registerInstance(this, hostRef);
|
|
47630
47858
|
this.ionStyle = createEvent(this, "ionStyle", 7);
|
|
47631
47859
|
}
|
|
47632
47860
|
sizeChanged() {
|
|
@@ -47647,11 +47875,11 @@ class ToolbarTitle {
|
|
|
47647
47875
|
render() {
|
|
47648
47876
|
const theme = getIonTheme(this);
|
|
47649
47877
|
const size = this.getSize();
|
|
47650
|
-
return (hAsync(Host, { key: '
|
|
47878
|
+
return (hAsync(Host, { key: 'c2b6048508e64b0b706d59104f6a26436dcdc875', class: createColorClasses$1(this.color, {
|
|
47651
47879
|
[theme]: true,
|
|
47652
47880
|
[`title-${size}`]: true,
|
|
47653
47881
|
'title-rtl': isRTL$1(this.el),
|
|
47654
|
-
}) }, hAsync("div", { key: '
|
|
47882
|
+
}) }, hAsync("div", { key: '85dd87da708c7b831c0c09ce00708c9aaae2c673', class: "toolbar-title" }, hAsync("slot", { key: 'c69a1d7c9306a07f44b2ae41d49b096dea70ebb2' }))));
|
|
47655
47883
|
}
|
|
47656
47884
|
get el() { return getElement(this); }
|
|
47657
47885
|
static get watchers() { return {
|
|
@@ -48675,7 +48903,7 @@ var NAMESPACE = (
|
|
|
48675
48903
|
);
|
|
48676
48904
|
|
|
48677
48905
|
/*
|
|
48678
|
-
Stencil Hydrate Runner v4.45.
|
|
48906
|
+
Stencil Hydrate Runner v4.45.4 | MIT Licensed | https://stenciljs.com
|
|
48679
48907
|
*/
|
|
48680
48908
|
var __create = Object.create;
|
|
48681
48909
|
var __defProp = Object.defineProperty;
|
|
@@ -59964,22 +60192,26 @@ var MockNodeList = class {
|
|
|
59964
60192
|
this.length = length;
|
|
59965
60193
|
}
|
|
59966
60194
|
};
|
|
60195
|
+
var MockElementInternals = class {
|
|
60196
|
+
states = /* @__PURE__ */ new Set();
|
|
60197
|
+
setFormValue() {
|
|
60198
|
+
}
|
|
60199
|
+
setValidity() {
|
|
60200
|
+
}
|
|
60201
|
+
checkValidity() {
|
|
60202
|
+
return true;
|
|
60203
|
+
}
|
|
60204
|
+
reportValidity() {
|
|
60205
|
+
return true;
|
|
60206
|
+
}
|
|
60207
|
+
};
|
|
59967
60208
|
var MockElement = class extends MockNode2 {
|
|
59968
60209
|
__namespaceURI;
|
|
59969
60210
|
__attributeMap;
|
|
59970
60211
|
__shadowRoot;
|
|
59971
60212
|
__style;
|
|
59972
60213
|
attachInternals() {
|
|
59973
|
-
return new
|
|
59974
|
-
get: function(_target, prop, _receiver) {
|
|
59975
|
-
if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
|
|
59976
|
-
console.error(
|
|
59977
|
-
`NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
|
|
59978
|
-
Testing components with ElementInternals is fully supported in e2e tests.`
|
|
59979
|
-
);
|
|
59980
|
-
}
|
|
59981
|
-
}
|
|
59982
|
-
});
|
|
60214
|
+
return new MockElementInternals();
|
|
59983
60215
|
}
|
|
59984
60216
|
constructor(ownerDocument, nodeName, namespaceURI = null) {
|
|
59985
60217
|
super(ownerDocument, 1 /* ELEMENT_NODE */, typeof nodeName === "string" ? nodeName : null, null);
|
|
@@ -60253,7 +60485,9 @@ var MockElement = class extends MockNode2 {
|
|
|
60253
60485
|
return this.hasAttributeNS(null, "hidden");
|
|
60254
60486
|
}
|
|
60255
60487
|
set hidden(isHidden) {
|
|
60256
|
-
if (isHidden ===
|
|
60488
|
+
if (isHidden === "until-found") {
|
|
60489
|
+
this.setAttributeNS(null, "hidden", "until-found");
|
|
60490
|
+
} else if (isHidden === true) {
|
|
60257
60491
|
this.setAttributeNS(null, "hidden", "");
|
|
60258
60492
|
} else {
|
|
60259
60493
|
this.removeAttributeNS(null, "hidden");
|