@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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { win } from "./browser/index";
|
|
5
5
|
import { ariaAttributes, inheritAttributes } from "./helpers";
|
|
6
|
+
const hostNamingAttributes = ['aria-label', 'aria-description', 'role'];
|
|
6
7
|
/**
|
|
7
8
|
* Copies a set of attributes off the host element so they can be applied to an element
|
|
8
9
|
* inside the shadow root, then keeps that copy in sync as the host attributes change.
|
|
@@ -12,13 +13,15 @@ import { ariaAttributes, inheritAttributes } from "./helpers";
|
|
|
12
13
|
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
13
14
|
* watching right away, so `init()` is only needed to resume after a move.
|
|
14
15
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
16
|
+
* An `aria-label`, `aria-description` or `role` written after load is copied and then
|
|
17
|
+
* replaced on the host with an empty string, so the host isn't a second node in the
|
|
18
|
+
* accessibility tree and a later `removeAttribute` still fires a mutation. Anything else
|
|
19
|
+
* stays on the host unless `moveFromHost` takes it off, since it leaves the host unnamed
|
|
20
|
+
* or, like `aria-labelledby`, only resolves from there. A value the initial copy or
|
|
21
|
+
* `moveFromHost` takes off the host can only be overwritten, since removing an attribute
|
|
22
|
+
* that isn't there fires no mutation. An empty string works for `aria-label` and friends,
|
|
23
|
+
* but a token-valued attribute has to be set to its default instead, so
|
|
24
|
+
* `aria-pressed="false"` rather than empty.
|
|
22
25
|
*
|
|
23
26
|
* @internal
|
|
24
27
|
* @param el The host element to copy from and watch.
|
|
@@ -26,24 +29,30 @@ import { ariaAttributes, inheritAttributes } from "./helpers";
|
|
|
26
29
|
* @param onChange Called after `attributes` changes, so the component can re-render.
|
|
27
30
|
* @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
|
|
28
31
|
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
29
|
-
* those is the component's own write
|
|
30
|
-
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
32
|
+
* those is the component's own write.
|
|
31
33
|
* @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
|
|
32
34
|
* a value moves off the host. A rejected value stays on the host and is left out of
|
|
33
35
|
* `attributes`. It can read component state, as long as the component calls `refresh()`
|
|
34
36
|
* when that state changes.
|
|
37
|
+
* @param keepOnHost While this returns `true`, a value written after load stays on the
|
|
38
|
+
* host. It's checked on every write and on `refresh()`. Use it when the component
|
|
39
|
+
* sometimes renders nothing that can carry the copy.
|
|
35
40
|
*/
|
|
36
|
-
export const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
|
|
41
|
+
export const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost, keepOnHost = () => false) => {
|
|
37
42
|
let inherited = inheritAttributes(el, attributes);
|
|
38
43
|
let observer;
|
|
39
44
|
const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
|
|
40
45
|
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
41
46
|
/**
|
|
42
|
-
* The names
|
|
43
|
-
* copy removes what it captures, so a missing attribute
|
|
44
|
-
* when its name is in here.
|
|
47
|
+
* The names written to the host after load, including the empty strings we leave in
|
|
48
|
+
* place of a copy. The initial copy removes what it captures, so a missing attribute
|
|
49
|
+
* only counts as a removal when its name is in here.
|
|
45
50
|
*/
|
|
46
51
|
const hostWritten = new Set();
|
|
52
|
+
/**
|
|
53
|
+
* The names whose host value is our empty string, not one the developer wrote.
|
|
54
|
+
*/
|
|
55
|
+
const replaced = new Set();
|
|
47
56
|
const setPresence = (name, value) => {
|
|
48
57
|
if (value === null) {
|
|
49
58
|
hostWritten.delete(name);
|
|
@@ -64,6 +73,27 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
64
73
|
}
|
|
65
74
|
}
|
|
66
75
|
};
|
|
76
|
+
const replaceOnHost = (written) => {
|
|
77
|
+
const keep = keepOnHost();
|
|
78
|
+
for (const [name, value] of Object.entries(written)) {
|
|
79
|
+
// An empty value already gives the host no name, so it can stay as written.
|
|
80
|
+
if (keep || value === null || value === '' || !hostNamingAttributes.includes(name)) {
|
|
81
|
+
replaced.delete(name);
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
el.setAttribute(name, '');
|
|
85
|
+
replaced.add(name);
|
|
86
|
+
}
|
|
87
|
+
// Drain our own writes so the observer doesn't read them as the developer's.
|
|
88
|
+
observer?.takeRecords();
|
|
89
|
+
};
|
|
90
|
+
const restoreOnHost = () => {
|
|
91
|
+
for (const name of replaced) {
|
|
92
|
+
el.setAttribute(name, inherited[name]);
|
|
93
|
+
}
|
|
94
|
+
replaced.clear();
|
|
95
|
+
observer?.takeRecords();
|
|
96
|
+
};
|
|
67
97
|
// The initial copy took everything off the host, so put back what has to stay there.
|
|
68
98
|
for (const [name, value] of Object.entries(inherited)) {
|
|
69
99
|
if (staysOnHost(name, value)) {
|
|
@@ -77,6 +107,7 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
77
107
|
* the host has to be re-read on the way back in.
|
|
78
108
|
*/
|
|
79
109
|
const readMissedChanges = () => {
|
|
110
|
+
const written = {};
|
|
80
111
|
const changed = {};
|
|
81
112
|
for (const name of watchedAttributes) {
|
|
82
113
|
const value = el.getAttribute(name);
|
|
@@ -86,12 +117,17 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
86
117
|
* An attribute that was never written to the host is missing because the initial
|
|
87
118
|
* copy took it, not because the developer cleared it.
|
|
88
119
|
*/
|
|
89
|
-
if (
|
|
120
|
+
if (value === null && !wasOnHost) {
|
|
90
121
|
continue;
|
|
91
122
|
}
|
|
92
|
-
|
|
123
|
+
// Even a rewrite of the same value has to be replaced on the host.
|
|
124
|
+
written[name] = value;
|
|
125
|
+
if (value !== inherited[name]) {
|
|
126
|
+
changed[name] = value;
|
|
127
|
+
}
|
|
93
128
|
}
|
|
94
129
|
moveOffHost(changed);
|
|
130
|
+
replaceOnHost(written);
|
|
95
131
|
if (Object.keys(changed).length > 0) {
|
|
96
132
|
inherited = { ...inherited, ...changed };
|
|
97
133
|
onChange();
|
|
@@ -108,10 +144,10 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
108
144
|
changed[name] = value;
|
|
109
145
|
}
|
|
110
146
|
moveOffHost(changed);
|
|
111
|
-
// Drop the removals `moveOffHost` just queued, or they'd read back as the developer
|
|
112
|
-
// clearing the attribute.
|
|
113
|
-
observer?.takeRecords();
|
|
114
147
|
inherited = { ...inherited, ...changed };
|
|
148
|
+
// This also drops the removals `moveOffHost` just queued, or they'd read back as the
|
|
149
|
+
// developer clearing the attribute.
|
|
150
|
+
replaceOnHost(changed);
|
|
115
151
|
onChange();
|
|
116
152
|
};
|
|
117
153
|
const init = () => {
|
|
@@ -124,24 +160,21 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
124
160
|
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
125
161
|
};
|
|
126
162
|
const destroy = () => {
|
|
127
|
-
observer
|
|
128
|
-
observer = undefined;
|
|
129
|
-
};
|
|
130
|
-
const refresh = () => {
|
|
131
|
-
if (moveFromHost === undefined) {
|
|
163
|
+
if (observer === undefined) {
|
|
132
164
|
return;
|
|
133
165
|
}
|
|
134
|
-
//
|
|
135
|
-
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
if (pending.length > 0) {
|
|
139
|
-
handleRecords(pending);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
readMissedChanges();
|
|
166
|
+
// Apply a write made just before the move, since it hasn't been delivered yet.
|
|
167
|
+
const pending = observer.takeRecords();
|
|
168
|
+
if (pending.length > 0) {
|
|
169
|
+
handleRecords(pending);
|
|
144
170
|
}
|
|
171
|
+
observer.disconnect();
|
|
172
|
+
observer = undefined;
|
|
173
|
+
// Put the copied values back while detached, or `init()` would read our empty strings
|
|
174
|
+
// as the developer clearing them.
|
|
175
|
+
restoreOnHost();
|
|
176
|
+
};
|
|
177
|
+
const applyMoveFromHost = () => {
|
|
145
178
|
for (const [name, value] of Object.entries(inherited)) {
|
|
146
179
|
if (value == null) {
|
|
147
180
|
continue;
|
|
@@ -156,8 +189,42 @@ export const createAttributeController = (el, attributes, onChange, hostOwnedAtt
|
|
|
156
189
|
hostWritten.delete(name);
|
|
157
190
|
}
|
|
158
191
|
}
|
|
192
|
+
};
|
|
193
|
+
const refresh = () => {
|
|
194
|
+
/**
|
|
195
|
+
* A detached host already has its replaced values back, and `init()` checks
|
|
196
|
+
* `keepOnHost` again on reattach, so only `moveFromHost` has work to do here.
|
|
197
|
+
*/
|
|
198
|
+
if (observer === undefined) {
|
|
199
|
+
if (moveFromHost !== undefined) {
|
|
200
|
+
readMissedChanges();
|
|
201
|
+
applyMoveFromHost();
|
|
202
|
+
}
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
// A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
|
|
206
|
+
// first, or the writes below would act on the old value and drop the new one.
|
|
207
|
+
const pending = observer.takeRecords();
|
|
208
|
+
if (pending.length > 0) {
|
|
209
|
+
handleRecords(pending);
|
|
210
|
+
}
|
|
211
|
+
if (moveFromHost !== undefined) {
|
|
212
|
+
applyMoveFromHost();
|
|
213
|
+
}
|
|
214
|
+
if (keepOnHost()) {
|
|
215
|
+
restoreOnHost();
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
const written = {};
|
|
219
|
+
for (const name of hostWritten) {
|
|
220
|
+
if (!replaced.has(name)) {
|
|
221
|
+
written[name] = el.getAttribute(name);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
replaceOnHost(written);
|
|
225
|
+
}
|
|
159
226
|
// Drop our own writes, or they'd read back as the developer's.
|
|
160
|
-
observer
|
|
227
|
+
observer.takeRecords();
|
|
161
228
|
};
|
|
162
229
|
/**
|
|
163
230
|
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { raf } from "../helpers";
|
|
5
|
+
/**
|
|
6
|
+
* How long, in milliseconds, the field is checked after a restore. The clear
|
|
7
|
+
* can land a few frames after `pageshow`, such as when Web Inspector is open.
|
|
8
|
+
*/
|
|
9
|
+
export const PAGE_RESTORE_CHECK_DURATION = 500;
|
|
10
|
+
/**
|
|
11
|
+
* Safari clears password and autocomplete="off" fields after restoring a
|
|
12
|
+
* page from the back/forward cache, without firing `input`. The clear lands
|
|
13
|
+
* after `pageshow`, so the field is checked each frame until it differs from
|
|
14
|
+
* the value or the check duration ends.
|
|
15
|
+
*
|
|
16
|
+
* A cleared password field stays cleared, as a native one does, and the
|
|
17
|
+
* value follows it. Any other field is cleared only because autocomplete
|
|
18
|
+
* defaults to "off", so its text is put back from the value.
|
|
19
|
+
*
|
|
20
|
+
* @param ev The `pageshow` event. Only a restored page (`persisted`) is checked.
|
|
21
|
+
* @param nativeInput The input whose text is read on each check.
|
|
22
|
+
* @param getValue Returns the component's value when each check runs.
|
|
23
|
+
* @param onPasswordCleared Called with the field's text when a password field differs from the value.
|
|
24
|
+
*/
|
|
25
|
+
export const syncValueOnPageRestore = (ev, nativeInput, getValue, onPasswordCleared) => {
|
|
26
|
+
if (!ev.persisted || !nativeInput) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const start = Date.now();
|
|
30
|
+
const check = () => {
|
|
31
|
+
const value = getValue();
|
|
32
|
+
if (nativeInput.value !== value) {
|
|
33
|
+
if (nativeInput.type === 'password') {
|
|
34
|
+
onPasswordCleared(nativeInput.value);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
nativeInput.value = value;
|
|
38
|
+
}
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (Date.now() - start < PAGE_RESTORE_CHECK_DURATION) {
|
|
42
|
+
raf(check);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
raf(check);
|
|
46
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
|
+
import { focusFirstDescendant, focusLastDescendant } from "./focus-trap";
|
|
6
|
+
/**
|
|
7
|
+
* Moves focus off a boundary. Focus arriving from inside the overlay
|
|
8
|
+
* wraps to the opposite end. Focus arriving from outside enters at the
|
|
9
|
+
* nearest end.
|
|
10
|
+
*/
|
|
11
|
+
const onBoundaryFocus = (overlay, ev, edge) => {
|
|
12
|
+
/**
|
|
13
|
+
* Shadow overlays search their slotted content. Scoped overlays search
|
|
14
|
+
* their wrapper, since the boundaries are siblings of it in the same
|
|
15
|
+
* tree and would otherwise be found first.
|
|
16
|
+
*/
|
|
17
|
+
const container = overlay.shadowRoot ? overlay : overlay.querySelector('.ion-overlay-wrapper');
|
|
18
|
+
if (!container) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const from = ev.relatedTarget;
|
|
22
|
+
const fromInside = from !== null && from !== overlay && (overlay.contains(from) || overlay.shadowRoot?.contains(from) === true);
|
|
23
|
+
const focusFirst = edge === 'start' ? !fromInside : fromInside;
|
|
24
|
+
if (focusFirst) {
|
|
25
|
+
focusFirstDescendant(container, overlay);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
focusLastDescendant(container, overlay);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Renders a focusable element before or after an overlay's content that
|
|
33
|
+
* keeps Tab inside the overlay. The document focus listener in overlays.ts
|
|
34
|
+
* cannot do this alone, since browsers can move focus past the end of the
|
|
35
|
+
* page without firing a focus event.
|
|
36
|
+
*/
|
|
37
|
+
export const OverlayFocusBoundary = ({ overlay, edge }) => (h("div", { class: "ion-overlay-focus-boundary", tabIndex: 0, "aria-hidden": "true", onFocus: (ev) => onBoundaryFocus(overlay, ev, edge) }));
|
|
@@ -303,18 +303,10 @@ const trapKeyboardFocus = (ev, doc) => {
|
|
|
303
303
|
focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);
|
|
304
304
|
/**
|
|
305
305
|
* Otherwise, we must be focusing an element
|
|
306
|
-
* inside of the overlay.
|
|
307
|
-
* here are an input/button/etc or the ion-focus-trap
|
|
308
|
-
* element. The focus trap element is used to prevent
|
|
309
|
-
* the keyboard focus from leaving the overlay when
|
|
310
|
-
* using Tab or screen assistants.
|
|
306
|
+
* inside of the overlay.
|
|
311
307
|
*/
|
|
312
308
|
}
|
|
313
309
|
else {
|
|
314
|
-
/**
|
|
315
|
-
* We do not want to focus the traps, so get the overlay
|
|
316
|
-
* wrapper element as the traps live outside of the wrapper.
|
|
317
|
-
*/
|
|
318
310
|
const overlayRoot = getElementRoot(lastOverlay);
|
|
319
311
|
if (!overlayRoot.contains(target)) {
|
|
320
312
|
return;
|
|
@@ -329,40 +321,13 @@ const trapKeyboardFocus = (ev, doc) => {
|
|
|
329
321
|
* Additionally, if the backdrop was tapped we should not
|
|
330
322
|
* move focus back inside the wrapper as that could cause
|
|
331
323
|
* an interactive elements focus state to activate.
|
|
324
|
+
*
|
|
325
|
+
* The focus boundaries outside of the wrapper move
|
|
326
|
+
* focus back inside on their own.
|
|
332
327
|
*/
|
|
333
328
|
if (overlayWrapper.contains(target) || target === overlayRoot.querySelector('ion-backdrop')) {
|
|
334
329
|
lastOverlay.lastFocus = target;
|
|
335
330
|
}
|
|
336
|
-
else {
|
|
337
|
-
/**
|
|
338
|
-
* Otherwise, we must have focused one of the focus traps.
|
|
339
|
-
* We need to wrap the focus to either the first element
|
|
340
|
-
* or the last element.
|
|
341
|
-
*/
|
|
342
|
-
/**
|
|
343
|
-
* Once we call `focusFirstDescendant` and focus the first
|
|
344
|
-
* descendant, another focus event will fire which will
|
|
345
|
-
* cause `lastOverlay.lastFocus` to be updated before
|
|
346
|
-
* we can run the code after that. We will cache the value
|
|
347
|
-
* here to avoid that.
|
|
348
|
-
*/
|
|
349
|
-
const lastFocus = lastOverlay.lastFocus;
|
|
350
|
-
// Focus the first element in the overlay wrapper
|
|
351
|
-
focusFirstDescendant(overlayWrapper, lastOverlay);
|
|
352
|
-
/**
|
|
353
|
-
* If the cached last focused element is the
|
|
354
|
-
* same as the active element, then we need
|
|
355
|
-
* to wrap focus to the last descendant. This happens
|
|
356
|
-
* when the first descendant is focused, and the user
|
|
357
|
-
* presses Shift + Tab. The previous line will focus
|
|
358
|
-
* the same descendant again (the first one), causing
|
|
359
|
-
* last focus to equal the active element.
|
|
360
|
-
*/
|
|
361
|
-
if (lastFocus === doc.activeElement) {
|
|
362
|
-
focusLastDescendant(overlayWrapper, lastOverlay);
|
|
363
|
-
}
|
|
364
|
-
lastOverlay.lastFocus = doc.activeElement;
|
|
365
|
-
}
|
|
366
331
|
}
|
|
367
332
|
};
|
|
368
333
|
const trapShadowFocus = () => {
|
|
@@ -479,10 +444,16 @@ const connectListeners = (doc) => {
|
|
|
479
444
|
: false;
|
|
480
445
|
if (!isInsideOverlay)
|
|
481
446
|
return;
|
|
482
|
-
|
|
447
|
+
/**
|
|
448
|
+
* Get all focusable elements from both light and shadow DOM.
|
|
449
|
+
* Focus boundaries in a shadow root are skipped: shadow elements
|
|
450
|
+
* are listed after the slotted content, so the boundaries would
|
|
451
|
+
* sit out of order and wrap focus to the wrong end. Boundaries
|
|
452
|
+
* in scoped overlays stay, since they are in document order.
|
|
453
|
+
*/
|
|
483
454
|
let allFocusable = [
|
|
484
455
|
...lastOverlay.querySelectorAll(focusableQueryString),
|
|
485
|
-
...(lastOverlay.shadowRoot?.querySelectorAll(focusableQueryString)
|
|
456
|
+
...Array.from(lastOverlay.shadowRoot?.querySelectorAll(focusableQueryString) ?? []).filter((el) => !el.classList.contains('ion-overlay-focus-boundary')),
|
|
486
457
|
];
|
|
487
458
|
/**
|
|
488
459
|
* Some elements match `focusableQueryString` but are not
|
package/dist/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-11-
|
|
2
|
+
"timestamp": "2026-11-17T18:02:54",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.45.
|
|
5
|
+
"version": "4.45.4",
|
|
6
6
|
"typescriptVersion": "5.8.3"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -17579,6 +17579,12 @@
|
|
|
17579
17579
|
"event": "click",
|
|
17580
17580
|
"capture": true,
|
|
17581
17581
|
"passive": false
|
|
17582
|
+
},
|
|
17583
|
+
{
|
|
17584
|
+
"event": "pageshow",
|
|
17585
|
+
"target": "window",
|
|
17586
|
+
"capture": false,
|
|
17587
|
+
"passive": false
|
|
17582
17588
|
}
|
|
17583
17589
|
],
|
|
17584
17590
|
"styles": [
|
|
@@ -36047,7 +36053,14 @@
|
|
|
36047
36053
|
"docsTags": []
|
|
36048
36054
|
}
|
|
36049
36055
|
],
|
|
36050
|
-
"listeners": [
|
|
36056
|
+
"listeners": [
|
|
36057
|
+
{
|
|
36058
|
+
"event": "pageshow",
|
|
36059
|
+
"target": "window",
|
|
36060
|
+
"capture": false,
|
|
36061
|
+
"passive": false
|
|
36062
|
+
}
|
|
36063
|
+
],
|
|
36051
36064
|
"styles": [
|
|
36052
36065
|
{
|
|
36053
36066
|
"name": "--background",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { i as initialize } from './ionic-global-
|
|
4
|
+
import { i as initialize } from './ionic-global-BYy_ionO.js';
|
|
5
5
|
|
|
6
6
|
const appGlobalScript = initialize || (() => {});
|
|
7
7
|
const globalScripts = appGlobalScript;
|