@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.
Files changed (574) hide show
  1. package/components/index.js +1 -1
  2. package/components/ion-accordion-group.js +1 -1
  3. package/components/ion-accordion.js +1 -1
  4. package/components/ion-action-sheet.js +1 -1
  5. package/components/ion-alert.js +1 -1
  6. package/components/ion-app.js +1 -1
  7. package/components/ion-avatar.js +1 -1
  8. package/components/ion-back-button.js +1 -1
  9. package/components/ion-backdrop.js +1 -1
  10. package/components/ion-badge.js +1 -1
  11. package/components/ion-breadcrumb.js +1 -1
  12. package/components/ion-breadcrumbs.js +1 -1
  13. package/components/ion-button.js +1 -1
  14. package/components/ion-buttons.js +1 -1
  15. package/components/ion-card-content.js +1 -1
  16. package/components/ion-card-header.js +1 -1
  17. package/components/ion-card-subtitle.js +1 -1
  18. package/components/ion-card-title.js +1 -1
  19. package/components/ion-card.js +1 -1
  20. package/components/ion-checkbox.js +1 -1
  21. package/components/ion-chip.js +1 -1
  22. package/components/ion-col.js +1 -1
  23. package/components/ion-content.js +1 -1
  24. package/components/ion-datetime-button.js +1 -1
  25. package/components/ion-datetime.js +1 -1
  26. package/components/ion-divider.js +1 -1
  27. package/components/ion-fab-button.js +1 -1
  28. package/components/ion-fab-list.js +1 -1
  29. package/components/ion-fab.js +1 -1
  30. package/components/ion-footer.js +1 -1
  31. package/components/ion-gallery-item.js +1 -1
  32. package/components/ion-gallery.js +1 -1
  33. package/components/ion-grid.js +1 -1
  34. package/components/ion-header.js +1 -1
  35. package/components/ion-icon.js +1 -1
  36. package/components/ion-img.js +1 -1
  37. package/components/ion-infinite-scroll-content.js +1 -1
  38. package/components/ion-infinite-scroll.js +1 -1
  39. package/components/ion-input-otp.js +1 -1
  40. package/components/ion-input-password-toggle.js +1 -1
  41. package/components/ion-input.js +1 -1
  42. package/components/ion-item-divider.js +1 -1
  43. package/components/ion-item-group.js +1 -1
  44. package/components/ion-item-option.js +1 -1
  45. package/components/ion-item-options.js +1 -1
  46. package/components/ion-item-sliding.js +1 -1
  47. package/components/ion-item.js +1 -1
  48. package/components/ion-label.js +1 -1
  49. package/components/ion-list-header.js +1 -1
  50. package/components/ion-list.js +1 -1
  51. package/components/ion-loading.js +1 -1
  52. package/components/ion-menu-button.js +1 -1
  53. package/components/ion-menu-toggle.js +1 -1
  54. package/components/ion-menu.js +1 -1
  55. package/components/ion-modal.js +1 -1
  56. package/components/ion-nav-link.js +1 -1
  57. package/components/ion-nav.js +1 -1
  58. package/components/ion-note.js +1 -1
  59. package/components/ion-picker-column-option.js +1 -1
  60. package/components/ion-picker-column.js +1 -1
  61. package/components/ion-picker.js +1 -1
  62. package/components/ion-popover.js +1 -1
  63. package/components/ion-progress-bar.js +1 -1
  64. package/components/ion-radio-group.js +1 -1
  65. package/components/ion-radio.js +1 -1
  66. package/components/ion-range.js +1 -1
  67. package/components/ion-refresher-content.js +1 -1
  68. package/components/ion-refresher.js +1 -1
  69. package/components/ion-reorder-group.js +1 -1
  70. package/components/ion-reorder.js +1 -1
  71. package/components/ion-ripple-effect.js +1 -1
  72. package/components/ion-route-redirect.js +1 -1
  73. package/components/ion-route.js +1 -1
  74. package/components/ion-router-link.js +1 -1
  75. package/components/ion-router-outlet.js +1 -1
  76. package/components/ion-router.js +1 -1
  77. package/components/ion-row.js +1 -1
  78. package/components/ion-searchbar.js +1 -1
  79. package/components/ion-segment-button.js +1 -1
  80. package/components/ion-segment-content.js +1 -1
  81. package/components/ion-segment-view.js +1 -1
  82. package/components/ion-segment.js +1 -1
  83. package/components/ion-select-modal.js +1 -1
  84. package/components/ion-select-option.js +1 -1
  85. package/components/ion-select-popover.js +1 -1
  86. package/components/ion-select.js +1 -1
  87. package/components/ion-skeleton-text.js +1 -1
  88. package/components/ion-spinner.js +1 -1
  89. package/components/ion-split-pane.js +1 -1
  90. package/components/ion-tab-bar.js +1 -1
  91. package/components/ion-tab-button.js +1 -1
  92. package/components/ion-tab.js +1 -1
  93. package/components/ion-tabs.js +1 -1
  94. package/components/ion-text.js +1 -1
  95. package/components/ion-textarea.js +1 -1
  96. package/components/ion-thumbnail.js +1 -1
  97. package/components/ion-title.js +1 -1
  98. package/components/ion-toast.js +1 -1
  99. package/components/ion-toggle.js +1 -1
  100. package/components/ion-toolbar.js +1 -1
  101. package/components/{p-CE7N7-7s.js → p-2sLD_xu6.js} +1 -1
  102. package/components/{p-DFjX2uxL.js → p-8bQyQ-A-.js} +1 -1
  103. package/components/p-9SIQ7h0a.js +4 -0
  104. package/{dist/ionic/p-BPA4-c6T.js → components/p-B5xGjUrw.js} +1 -1
  105. package/components/{p-cm7z1a2E.js → p-BGbQbTAV.js} +1 -1
  106. package/components/p-BIe4HWHT.js +4 -0
  107. package/components/p-BPVr2bEi.js +4 -0
  108. package/components/{p-BYyhRtNC.js → p-BRLifC9t.js} +1 -1
  109. package/components/{p-CyvtM0H1.js → p-BTu2WI4z.js} +1 -1
  110. package/components/p-BX622giM.js +4 -0
  111. package/components/{p-CiEBXUnh.js → p-BXM-paQi.js} +1 -1
  112. package/components/p-Ba0pOoA8.js +4 -0
  113. package/components/p-BjjY6jOq.js +4 -0
  114. package/components/{p-B8TMb1l1.js → p-BpPHtMLg.js} +1 -1
  115. package/components/{p-LoXpKVmq.js → p-BrfOWAVf.js} +1 -1
  116. package/components/p-BsCaQNrX.js +4 -0
  117. package/components/p-BzAhIYXH.js +4 -0
  118. package/components/p-CDyvJnTO.js +4 -0
  119. package/components/p-CJawym4B.js +4 -0
  120. package/components/{p-DbKRl9BQ.js → p-CZtEtGGD.js} +1 -1
  121. package/components/{p-Dce65ayP.js → p-CajBjgLi.js} +1 -1
  122. package/components/{p-7-zF1amS.js → p-CdHuHArh.js} +1 -1
  123. package/components/{p-Ce7LvQXN.js → p-CgQ7_O5k.js} +1 -1
  124. package/components/{p-aC2BXYlR.js → p-Cq-9cyXX.js} +1 -1
  125. package/components/p-D1m8Yjhz.js +4 -0
  126. package/components/{p-CvxND1-3.js → p-D6f0xBGY.js} +1 -1
  127. package/components/{p-BHiggB_l.js → p-DAWK42bz.js} +1 -1
  128. package/{dist/ionic/p-DRbid4Vh.js → components/p-DCRjYLov.js} +1 -1
  129. package/components/{p-65JoU6_J.js → p-DDKsXI3n.js} +1 -1
  130. package/components/{p-Fvw018Ly.js → p-DFHZOMhQ.js} +1 -1
  131. package/components/{p-B7ExaLVL.js → p-DIyhmuo-.js} +1 -1
  132. package/components/{p-CehdCO1m.js → p-DL3uscQR.js} +1 -1
  133. package/components/{p-C2UFZTSU.js → p-DNAlvIsW.js} +1 -1
  134. package/components/{p-3Qs1sQxU.js → p-DO17TLK9.js} +1 -1
  135. package/components/{p-B_o50gvn.js → p-DSEHMF7Y.js} +1 -1
  136. package/components/{p-Bslbwrtt.js → p-DSxRYE_f.js} +1 -1
  137. package/{dist/ionic/p-B7XMQegr.js → components/p-DVDuYWYf.js} +1 -1
  138. package/components/{p-iNIvlAGo.js → p-DVoIsLVC.js} +1 -1
  139. package/components/{p-DggDKmuZ.js → p-DXn1957M.js} +1 -1
  140. package/components/p-DZaKOMM7.js +4 -0
  141. package/components/p-DgL3phdm.js +4 -0
  142. package/components/p-DmlpWO08.js +4 -0
  143. package/components/{p-DRIPgese.js → p-Dq9hq9j2.js} +1 -1
  144. package/{dist/ionic/p-2gcJ-f11.js → components/p-Dqy0AJBg.js} +1 -1
  145. package/components/{p-3SVb97od.js → p-EPCb6-n7.js} +1 -1
  146. package/components/{p-Da8LCPwo.js → p-H6H02QKs.js} +1 -1
  147. package/components/{p-CAekGbOf.js → p-JGQZIl_3.js} +1 -1
  148. package/components/{p-HbJahPGd.js → p-K0l20Iqs.js} +1 -1
  149. package/components/p-V4Qnwbju.js +4 -0
  150. package/components/p-YAbVl27R.js +4 -0
  151. package/components/{p-YAWKbhjV.js → p-f2BL1rLD.js} +1 -1
  152. package/components/{p-DmhWSY74.js → p-lm02RhiY.js} +1 -1
  153. package/components/p-mNz8l7Bc.js +4 -0
  154. package/components/{p-CzDkZh7h.js → p-vLIxxolw.js} +1 -1
  155. package/components/{p-CXzJ234J.js → p-zEYXdQGH.js} +1 -1
  156. package/dist/cjs/{animation-zKIdNEmG.js → animation-CeH2W-qd.js} +1 -1
  157. package/dist/cjs/{app-globals-BDrxn8eR.js → app-globals-f7eomsHa.js} +1 -1
  158. package/dist/cjs/{attribute-controller-23GLe3Vk.js → attribute-controller-mEO_Z0Wr.js} +102 -35
  159. package/dist/cjs/{button-active-CY7cZvH5.js → button-active-PwgL_R0V.js} +1 -1
  160. package/dist/cjs/{format-C6r4Asi4.js → format-PsbNYAbf.js} +1 -1
  161. package/dist/cjs/{framework-delegate-CAdDEnFS.js → framework-delegate-D-XPcdY0.js} +2 -2
  162. package/dist/cjs/{helpers-DHNLF4fD.js → helpers-jmlMCGoQ.js} +1 -1
  163. package/dist/cjs/{index-C6QFfpm5.js → index-B5yv8_lH.js} +2 -2
  164. package/dist/cjs/{index-DhGCo_n8.js → index-CHRTOQP9.js} +2 -2
  165. package/dist/cjs/{index-lD5wTj_b.js → index-Cco7L1eB.js} +4 -4
  166. package/dist/cjs/{index-CB1PuDlX.js → index-Cn0FjjMN.js} +86 -40
  167. package/dist/cjs/{index-B3s1jjBU.js → index-DRLvcDji.js} +1 -1
  168. package/dist/cjs/{index-C3pmpKlo.js → index-R2zOwQVz.js} +4 -4
  169. package/dist/cjs/index.cjs.js +11 -11
  170. package/dist/cjs/{input-shims-CjkWx7ae.js → input-shims-obkB-KvI.js} +3 -3
  171. package/dist/cjs/{input.utils-CD4DNiim.js → input.utils-B_HfgEQx.js} +1 -1
  172. package/dist/cjs/ion-accordion_2.cjs.entry.js +7 -5
  173. package/dist/cjs/ion-action-sheet.cjs.entry.js +15 -13
  174. package/dist/cjs/ion-alert.cjs.entry.js +14 -12
  175. package/dist/cjs/ion-app_8.cjs.entry.js +30 -22
  176. package/dist/cjs/ion-avatar_3.cjs.entry.js +10 -7
  177. package/dist/cjs/ion-back-button.cjs.entry.js +6 -5
  178. package/dist/cjs/ion-backdrop.cjs.entry.js +4 -3
  179. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +8 -6
  180. package/dist/cjs/ion-button_2.cjs.entry.js +12 -12
  181. package/dist/cjs/ion-card_5.cjs.entry.js +21 -16
  182. package/dist/cjs/ion-checkbox.cjs.entry.js +6 -5
  183. package/dist/cjs/ion-chip.cjs.entry.js +4 -3
  184. package/dist/cjs/ion-col_3.cjs.entry.js +10 -7
  185. package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -5
  186. package/dist/cjs/ion-datetime.cjs.entry.js +19 -28
  187. package/dist/cjs/ion-divider.cjs.entry.js +4 -3
  188. package/dist/cjs/ion-fab_3.cjs.entry.js +10 -7
  189. package/dist/cjs/ion-gallery-item.cjs.entry.js +4 -3
  190. package/dist/cjs/ion-gallery.cjs.entry.js +5 -4
  191. package/dist/cjs/ion-img.cjs.entry.js +5 -4
  192. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +9 -7
  193. package/dist/cjs/ion-input-otp.cjs.entry.js +5 -4
  194. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +4 -3
  195. package/dist/cjs/ion-input.cjs.entry.js +20 -10
  196. package/dist/cjs/ion-item-option_3.cjs.entry.js +11 -8
  197. package/dist/cjs/ion-item_8.cjs.entry.js +34 -25
  198. package/dist/cjs/ion-loading.cjs.entry.js +12 -10
  199. package/dist/cjs/ion-menu_3.cjs.entry.js +14 -11
  200. package/dist/cjs/ion-modal.cjs.entry.js +27 -18
  201. package/dist/cjs/ion-nav_2.cjs.entry.js +12 -10
  202. package/dist/cjs/ion-picker-column-option.cjs.entry.js +7 -6
  203. package/dist/cjs/ion-picker-column.cjs.entry.js +5 -4
  204. package/dist/cjs/ion-picker.cjs.entry.js +4 -3
  205. package/dist/cjs/ion-popover.cjs.entry.js +15 -13
  206. package/dist/cjs/ion-progress-bar.cjs.entry.js +6 -5
  207. package/dist/cjs/ion-radio_2.cjs.entry.js +8 -6
  208. package/dist/cjs/ion-range.cjs.entry.js +9 -8
  209. package/dist/cjs/ion-refresher_2.cjs.entry.js +13 -11
  210. package/dist/cjs/ion-reorder_2.cjs.entry.js +11 -9
  211. package/dist/cjs/ion-ripple-effect.cjs.entry.js +5 -4
  212. package/dist/cjs/ion-route_4.cjs.entry.js +15 -11
  213. package/dist/cjs/ion-searchbar.cjs.entry.js +19 -9
  214. package/dist/cjs/ion-segment-content.cjs.entry.js +4 -3
  215. package/dist/cjs/ion-segment-view.cjs.entry.js +5 -4
  216. package/dist/cjs/ion-segment_2.cjs.entry.js +12 -10
  217. package/dist/cjs/ion-select-modal.cjs.entry.js +11 -10
  218. package/dist/cjs/ion-select_3.cjs.entry.js +20 -17
  219. package/dist/cjs/ion-spinner.cjs.entry.js +5 -4
  220. package/dist/cjs/ion-split-pane.cjs.entry.js +6 -5
  221. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +14 -12
  222. package/dist/cjs/ion-tab_2.cjs.entry.js +10 -8
  223. package/dist/cjs/ion-text.cjs.entry.js +6 -5
  224. package/dist/cjs/ion-textarea.cjs.entry.js +9 -8
  225. package/dist/cjs/ion-toast.cjs.entry.js +11 -10
  226. package/dist/cjs/ion-toggle.cjs.entry.js +9 -8
  227. package/dist/cjs/{ionic-global-CZX42KL4.js → ionic-global-BsjzbnZk.js} +4 -4
  228. package/dist/cjs/ionic.cjs.js +5 -5
  229. package/dist/cjs/{ios.transition-BjOYqzH0.js → ios.transition-Chk7LwO2.js} +4 -4
  230. package/dist/cjs/{item-multiple-inputs-D0lzjl68.js → item-multiple-inputs-DRBi1Q76.js} +1 -1
  231. package/dist/cjs/loader.cjs.js +4 -4
  232. package/dist/cjs/{md.transition-C4i7l6ui.js → md.transition-D-k4hn-o.js} +4 -4
  233. package/dist/cjs/overlay-focus-boundary-DCv6Y3fL.js +42 -0
  234. package/dist/cjs/{overlays-DziOxcCT.js → overlays-DMW90-Kg.js} +16 -45
  235. package/dist/cjs/page-restore-Dq2Pkln0.js +90 -0
  236. package/dist/cjs/{scroll-hide-controller-BSVBCkbw.js → scroll-hide-controller-GvReYiKK.js} +2 -2
  237. package/dist/cjs/{select-option-render-X_iZ-xeh.js → select-option-render-nr0lBnYb.js} +2 -2
  238. package/dist/cjs/{slot-mutation-controller-BS-L1szN.js → slot-mutation-controller-DKkmhOKO.js} +1 -1
  239. package/dist/cjs/{status-tap-D5yiKwdj.js → status-tap-oCDuuJng.js} +3 -3
  240. package/dist/cjs/{swipe-back-xM_5R5s-.js → swipe-back-DZZ4EcCX.js} +2 -2
  241. package/dist/collection/collection-manifest.json +1 -1
  242. package/dist/collection/components/action-sheet/action-sheet.js +4 -3
  243. package/dist/collection/components/alert/alert.js +3 -2
  244. package/dist/collection/components/button/button.js +4 -6
  245. package/dist/collection/components/card/card.js +7 -7
  246. package/dist/collection/components/datetime/datetime.ionic.css +0 -20
  247. package/dist/collection/components/datetime/datetime.ios.css +0 -10
  248. package/dist/collection/components/datetime/datetime.js +8 -18
  249. package/dist/collection/components/datetime/datetime.md.css +0 -10
  250. package/dist/collection/components/input/input.js +18 -3
  251. package/dist/collection/components/item/item.js +10 -9
  252. package/dist/collection/components/loading/loading.js +3 -2
  253. package/dist/collection/components/modal/modal.ionic.css +8 -0
  254. package/dist/collection/components/modal/modal.ios.css +8 -0
  255. package/dist/collection/components/modal/modal.js +5 -4
  256. package/dist/collection/components/modal/modal.md.css +8 -0
  257. package/dist/collection/components/modal/safe-area-utils.js +9 -2
  258. package/dist/collection/components/nav/nav.js +1 -1
  259. package/dist/collection/components/nav-link/nav-link.js +1 -1
  260. package/dist/collection/components/note/note.js +2 -2
  261. package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
  262. package/dist/collection/components/popover/popover.ionic.css +8 -0
  263. package/dist/collection/components/popover/popover.ios.css +8 -0
  264. package/dist/collection/components/popover/popover.js +3 -2
  265. package/dist/collection/components/popover/popover.md.css +8 -0
  266. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  267. package/dist/collection/components/range/range.js +3 -3
  268. package/dist/collection/components/refresher/refresher.js +1 -1
  269. package/dist/collection/components/refresher-content/refresher-content.js +2 -2
  270. package/dist/collection/components/reorder/reorder.js +2 -2
  271. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  272. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  273. package/dist/collection/components/router-link/router-link.js +2 -2
  274. package/dist/collection/components/router-outlet/router-outlet.js +1 -1
  275. package/dist/collection/components/row/row.js +2 -2
  276. package/dist/collection/components/searchbar/searchbar.js +22 -4
  277. package/dist/collection/components/segment/segment.js +2 -2
  278. package/dist/collection/components/segment-button/segment-button.js +2 -2
  279. package/dist/collection/components/segment-content/segment-content.js +1 -1
  280. package/dist/collection/components/segment-view/segment-view.js +2 -2
  281. package/dist/collection/components/select/select.js +2 -2
  282. package/dist/collection/components/select-modal/select-modal.js +2 -2
  283. package/dist/collection/components/select-option/select-option.js +1 -1
  284. package/dist/collection/components/select-popover/select-popover.js +2 -2
  285. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  286. package/dist/collection/components/spinner/spinner.js +1 -1
  287. package/dist/collection/components/split-pane/split-pane.js +2 -2
  288. package/dist/collection/components/tab/tab.js +2 -2
  289. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  290. package/dist/collection/components/tab-button/tab-button.js +2 -2
  291. package/dist/collection/components/tabs/tabs.js +1 -1
  292. package/dist/collection/components/text/text.js +2 -2
  293. package/dist/collection/components/textarea/textarea.js +2 -2
  294. package/dist/collection/components/thumbnail/thumbnail.js +2 -2
  295. package/dist/collection/components/title/title.js +2 -2
  296. package/dist/collection/components/toast/toast.js +2 -2
  297. package/dist/collection/components/toggle/toggle.js +3 -3
  298. package/dist/collection/components/toolbar/toolbar.js +2 -2
  299. package/dist/collection/utils/attribute-controller.js +101 -34
  300. package/dist/collection/utils/forms/index.js +1 -0
  301. package/dist/collection/utils/forms/page-restore.js +46 -0
  302. package/dist/collection/utils/overlay-focus-boundary.js +37 -0
  303. package/dist/collection/utils/overlays.js +12 -41
  304. package/dist/docs.json +16 -3
  305. package/dist/esm/{animation-GasMiLY0.js → animation-Cev2GhGs.js} +1 -1
  306. package/dist/esm/{app-globals-DbCTe1Vv.js → app-globals-BocmgK6F.js} +1 -1
  307. package/dist/esm/{attribute-controller-CB-n8m6j.js → attribute-controller-418FdXxR.js} +102 -35
  308. package/dist/esm/{button-active-DLOYzeXl.js → button-active-BhjMt-gU.js} +1 -1
  309. package/dist/esm/{format-DUHrIiJq.js → format-t9SOC1s5.js} +1 -1
  310. package/dist/esm/{framework-delegate-99Ms_INy.js → framework-delegate-DOV97IRE.js} +2 -2
  311. package/dist/esm/{helpers-B_F2b1gy.js → helpers-Bhcp6jft.js} +1 -1
  312. package/dist/esm/{index-hR6kxzTq.js → index-Bas44FS4.js} +86 -40
  313. package/dist/esm/{index-D86Q8ZLS.js → index-BxqNQDQb.js} +4 -4
  314. package/dist/esm/{index-D5lNz-tr.js → index-CSvgU7bD.js} +4 -4
  315. package/dist/esm/{index-BRYliuA-.js → index-DU_8Y0hH.js} +1 -1
  316. package/dist/esm/{index-BeR_5uou.js → index-Dr_h9K1q.js} +2 -2
  317. package/dist/esm/{index-BoEdvSPU.js → index-M3ncuMMO.js} +2 -2
  318. package/dist/esm/index.js +11 -11
  319. package/dist/esm/{input-shims-CJVi9djP.js → input-shims-Q8eQDhGy.js} +3 -3
  320. package/dist/esm/{input.utils-gPgFKve4.js → input.utils-Ca-6biEE.js} +1 -1
  321. package/dist/esm/ion-accordion_2.entry.js +7 -5
  322. package/dist/esm/ion-action-sheet.entry.js +15 -13
  323. package/dist/esm/ion-alert.entry.js +14 -12
  324. package/dist/esm/ion-app_8.entry.js +30 -22
  325. package/dist/esm/ion-avatar_3.entry.js +10 -7
  326. package/dist/esm/ion-back-button.entry.js +6 -5
  327. package/dist/esm/ion-backdrop.entry.js +4 -3
  328. package/dist/esm/ion-breadcrumb_2.entry.js +8 -6
  329. package/dist/esm/ion-button_2.entry.js +12 -12
  330. package/dist/esm/ion-card_5.entry.js +21 -16
  331. package/dist/esm/ion-checkbox.entry.js +6 -5
  332. package/dist/esm/ion-chip.entry.js +4 -3
  333. package/dist/esm/ion-col_3.entry.js +10 -7
  334. package/dist/esm/ion-datetime-button.entry.js +6 -5
  335. package/dist/esm/ion-datetime.entry.js +19 -28
  336. package/dist/esm/ion-divider.entry.js +4 -3
  337. package/dist/esm/ion-fab_3.entry.js +10 -7
  338. package/dist/esm/ion-gallery-item.entry.js +4 -3
  339. package/dist/esm/ion-gallery.entry.js +5 -4
  340. package/dist/esm/ion-img.entry.js +5 -4
  341. package/dist/esm/ion-infinite-scroll_2.entry.js +9 -7
  342. package/dist/esm/ion-input-otp.entry.js +5 -4
  343. package/dist/esm/ion-input-password-toggle.entry.js +4 -3
  344. package/dist/esm/ion-input.entry.js +19 -9
  345. package/dist/esm/ion-item-option_3.entry.js +11 -8
  346. package/dist/esm/ion-item_8.entry.js +34 -25
  347. package/dist/esm/ion-loading.entry.js +12 -10
  348. package/dist/esm/ion-menu_3.entry.js +14 -11
  349. package/dist/esm/ion-modal.entry.js +27 -18
  350. package/dist/esm/ion-nav_2.entry.js +12 -10
  351. package/dist/esm/ion-picker-column-option.entry.js +7 -6
  352. package/dist/esm/ion-picker-column.entry.js +5 -4
  353. package/dist/esm/ion-picker.entry.js +4 -3
  354. package/dist/esm/ion-popover.entry.js +15 -13
  355. package/dist/esm/ion-progress-bar.entry.js +6 -5
  356. package/dist/esm/ion-radio_2.entry.js +8 -6
  357. package/dist/esm/ion-range.entry.js +9 -8
  358. package/dist/esm/ion-refresher_2.entry.js +13 -11
  359. package/dist/esm/ion-reorder_2.entry.js +11 -9
  360. package/dist/esm/ion-ripple-effect.entry.js +5 -4
  361. package/dist/esm/ion-route_4.entry.js +15 -11
  362. package/dist/esm/ion-searchbar.entry.js +18 -8
  363. package/dist/esm/ion-segment-content.entry.js +4 -3
  364. package/dist/esm/ion-segment-view.entry.js +5 -4
  365. package/dist/esm/ion-segment_2.entry.js +12 -10
  366. package/dist/esm/ion-select-modal.entry.js +11 -10
  367. package/dist/esm/ion-select_3.entry.js +20 -17
  368. package/dist/esm/ion-spinner.entry.js +5 -4
  369. package/dist/esm/ion-split-pane.entry.js +6 -5
  370. package/dist/esm/ion-tab-bar_2.entry.js +14 -12
  371. package/dist/esm/ion-tab_2.entry.js +10 -8
  372. package/dist/esm/ion-text.entry.js +6 -5
  373. package/dist/esm/ion-textarea.entry.js +9 -8
  374. package/dist/esm/ion-toast.entry.js +11 -10
  375. package/dist/esm/ion-toggle.entry.js +9 -8
  376. package/dist/esm/{ionic-global-DSbFWXp3.js → ionic-global-BYy_ionO.js} +4 -4
  377. package/dist/esm/ionic.js +6 -6
  378. package/dist/esm/{ios.transition-C9thfQYf.js → ios.transition-MTIekCSs.js} +4 -4
  379. package/dist/esm/{item-multiple-inputs-CSJsB7-I.js → item-multiple-inputs-BrSomT3h.js} +1 -1
  380. package/dist/esm/loader.js +5 -5
  381. package/dist/esm/{md.transition-BEhPsy_z.js → md.transition-CYPyM3Wr.js} +4 -4
  382. package/dist/esm/overlay-focus-boundary-DrYovbKL.js +40 -0
  383. package/dist/esm/{overlays-C8sf7PId.js → overlays-D4jQ_MJ6.js} +17 -46
  384. package/dist/esm/page-restore-9RlWwejf.js +87 -0
  385. package/dist/esm/{scroll-hide-controller-Chts2wJU.js → scroll-hide-controller-Db79zIPS.js} +2 -2
  386. package/dist/esm/{select-option-render-D5kt0cO9.js → select-option-render-szX_tjoT.js} +2 -2
  387. package/dist/esm/{slot-mutation-controller-DanfZTCH.js → slot-mutation-controller-Du2BZesv.js} +1 -1
  388. package/dist/esm/{status-tap-B8UQS38n.js → status-tap-CxG8iM45.js} +3 -3
  389. package/dist/esm/{swipe-back-Bgftkxen.js → swipe-back-CyMa6zSX.js} +2 -2
  390. package/dist/ionic/index.esm.js +1 -1
  391. package/dist/ionic/ionic.esm.js +1 -1
  392. package/dist/ionic/p-0a3b23f0.entry.js +4 -0
  393. package/dist/ionic/p-0c87430e.entry.js +4 -0
  394. package/dist/ionic/p-0eadd747.entry.js +4 -0
  395. package/dist/ionic/p-108c617e.entry.js +4 -0
  396. package/dist/ionic/p-1336380f.entry.js +4 -0
  397. package/dist/ionic/p-16d7a09e.entry.js +4 -0
  398. package/dist/ionic/p-1847d994.entry.js +4 -0
  399. package/dist/ionic/p-1b542120.entry.js +4 -0
  400. package/dist/ionic/p-1d8fc165.entry.js +4 -0
  401. package/dist/ionic/p-20e49521.entry.js +4 -0
  402. package/dist/ionic/p-2c232526.entry.js +4 -0
  403. package/dist/ionic/p-38580367.entry.js +4 -0
  404. package/dist/ionic/p-3b6a9e1f.entry.js +4 -0
  405. package/dist/ionic/p-3fbcf247.entry.js +4 -0
  406. package/dist/ionic/p-404f56fb.entry.js +4 -0
  407. package/dist/ionic/p-4c0d2ea4.entry.js +4 -0
  408. package/dist/ionic/p-4f1773eb.entry.js +4 -0
  409. package/dist/ionic/p-527fa477.entry.js +4 -0
  410. package/dist/ionic/p-544ba9be.entry.js +4 -0
  411. package/dist/ionic/p-5a5408f6.entry.js +4 -0
  412. package/dist/ionic/{p-DOdxt_P_.js → p-5pKYh0QR.js} +1 -1
  413. package/dist/ionic/p-61d17ff8.entry.js +4 -0
  414. package/dist/ionic/p-636b14fb.entry.js +4 -0
  415. package/dist/ionic/p-6806aefe.entry.js +4 -0
  416. package/dist/ionic/p-68650478.entry.js +4 -0
  417. package/dist/ionic/p-6874fc1e.entry.js +4 -0
  418. package/dist/ionic/p-70f777b3.entry.js +4 -0
  419. package/dist/ionic/p-71a9c711.entry.js +4 -0
  420. package/dist/ionic/p-747d4da3.entry.js +4 -0
  421. package/dist/ionic/p-78ee18fb.entry.js +4 -0
  422. package/dist/ionic/p-86103379.entry.js +4 -0
  423. package/dist/ionic/p-9984d163.entry.js +4 -0
  424. package/dist/ionic/p-9b71b044.entry.js +4 -0
  425. package/dist/ionic/p-9d765c69.entry.js +4 -0
  426. package/dist/ionic/p-9e3d4614.entry.js +4 -0
  427. package/dist/ionic/p-9ohDxdgz.js +4 -0
  428. package/{components/p-o89R3aqe.js → dist/ionic/p-BQhyhNHy.js} +1 -1
  429. package/dist/ionic/{p-Bjt84heL.js → p-BSenjX6U.js} +1 -1
  430. package/dist/ionic/p-BSkpb2fc.js +4 -0
  431. package/dist/ionic/{p-CeHcVwSj.js → p-BYTjG6HG.js} +1 -1
  432. package/dist/ionic/p-Bas44FS4.js +6 -0
  433. package/{components/p-DLXAGW46.js → dist/ionic/p-BawJ4_R2.js} +1 -1
  434. package/{components/p-BmfO2-NE.js → dist/ionic/p-BiYkrpCo.js} +1 -1
  435. package/dist/ionic/p-BjBJlURk.js +4 -0
  436. package/dist/ionic/{p-DsBidY1y.js → p-CAdpShMB.js} +1 -1
  437. package/dist/ionic/{p-B36ii-hs.js → p-CFV2lqKP.js} +1 -1
  438. package/dist/ionic/p-CWRBQbEt.js +4 -0
  439. package/dist/ionic/p-C_Z39n1a.js +4 -0
  440. package/dist/ionic/p-D4o1HBsS.js +4 -0
  441. package/dist/ionic/p-D7kZMPgY.js +4 -0
  442. package/dist/ionic/{p-DuxayXEj.js → p-DLK90YxR.js} +1 -1
  443. package/dist/ionic/p-DOFFsd_b.js +4 -0
  444. package/dist/ionic/p-Dbpdrswb.js +4 -0
  445. package/dist/ionic/p-DrOc_uDR.js +4 -0
  446. package/dist/ionic/{p-rwBGNQHN.js → p-FygeMLmO.js} +1 -1
  447. package/dist/ionic/{p-CaOPF8Xt.js → p-XZiK70aS.js} +1 -1
  448. package/dist/ionic/p-a21edb48.entry.js +4 -0
  449. package/dist/ionic/p-a8aaf7e8.entry.js +4 -0
  450. package/dist/ionic/p-ac4b2212.entry.js +4 -0
  451. package/dist/ionic/p-afa43e97.entry.js +4 -0
  452. package/dist/ionic/p-b2e17a18.entry.js +4 -0
  453. package/dist/ionic/p-b7d0d844.entry.js +4 -0
  454. package/dist/ionic/p-b98e482e.entry.js +4 -0
  455. package/dist/ionic/p-bD2UA_Oq.js +4 -0
  456. package/dist/ionic/{p-Co3ilg7B.js → p-bfE6ImVy.js} +1 -1
  457. package/dist/ionic/p-cc724d97.entry.js +4 -0
  458. package/dist/ionic/p-d61c5038.entry.js +4 -0
  459. package/dist/ionic/p-d7d87adb.entry.js +4 -0
  460. package/dist/ionic/p-dd40211d.entry.js +4 -0
  461. package/dist/ionic/p-dde3fe0f.entry.js +4 -0
  462. package/dist/ionic/p-de6ccf04.entry.js +4 -0
  463. package/dist/ionic/p-df337118.entry.js +4 -0
  464. package/dist/ionic/p-e3d754ae.entry.js +4 -0
  465. package/dist/ionic/p-e6a6a075.entry.js +4 -0
  466. package/dist/ionic/p-e7f841d7.entry.js +4 -0
  467. package/dist/ionic/p-eSGmNpTU.js +4 -0
  468. package/dist/ionic/p-ee15d08d.entry.js +4 -0
  469. package/dist/ionic/p-f41ef4cc.entry.js +4 -0
  470. package/dist/ionic/p-f6bd7ca3.entry.js +4 -0
  471. package/dist/ionic/p-fd3ccd0d.entry.js +4 -0
  472. package/dist/ionic/p-rmK71y9P.js +4 -0
  473. package/dist/ionic/p-sQjitIqc.js +4 -0
  474. package/dist/types/components/card/card.d.ts +2 -2
  475. package/dist/types/components/datetime/datetime.d.ts +4 -2
  476. package/dist/types/components/input/input.d.ts +4 -0
  477. package/dist/types/components/item/item.d.ts +2 -2
  478. package/dist/types/components/modal/safe-area-utils.d.ts +2 -1
  479. package/dist/types/components/searchbar/searchbar.d.ts +4 -0
  480. package/dist/types/stencil-public-runtime.d.ts +1 -1
  481. package/dist/types/utils/attribute-controller.d.ts +18 -13
  482. package/dist/types/utils/forms/index.d.ts +1 -0
  483. package/dist/types/utils/forms/page-restore.d.ts +21 -0
  484. package/dist/types/utils/overlay-focus-boundary.d.ts +15 -0
  485. package/hydrate/index.js +558 -324
  486. package/hydrate/index.mjs +558 -324
  487. package/package.json +2 -2
  488. package/components/p-2KnciUsT.js +0 -4
  489. package/components/p-BNBa8_Ls.js +0 -4
  490. package/components/p-BfDzKnZ-.js +0 -4
  491. package/components/p-BmnPbSf3.js +0 -4
  492. package/components/p-C0H1LYQ5.js +0 -4
  493. package/components/p-C93i7QCU.js +0 -4
  494. package/components/p-C9qQ2zBV.js +0 -4
  495. package/components/p-CSSj6cqb.js +0 -4
  496. package/components/p-DDloHP2b.js +0 -4
  497. package/components/p-DFBWAYvo.js +0 -4
  498. package/components/p-DTIqfsbw.js +0 -4
  499. package/components/p-DibGn4gb.js +0 -4
  500. package/components/p-DmdTkb5k.js +0 -4
  501. package/components/p-DtZimz8H.js +0 -4
  502. package/components/p-ET0FZop5.js +0 -4
  503. package/components/p-lhYnLiXU.js +0 -4
  504. package/components/p-pSZXoJUW.js +0 -4
  505. package/dist/cjs/clear-button-press-controller-C6PTS3jC.js +0 -45
  506. package/dist/esm/clear-button-press-controller-6ph4kKYn.js +0 -43
  507. package/dist/ionic/p-038465e3.entry.js +0 -4
  508. package/dist/ionic/p-136cdbde.entry.js +0 -4
  509. package/dist/ionic/p-188a2e35.entry.js +0 -4
  510. package/dist/ionic/p-1b045882.entry.js +0 -4
  511. package/dist/ionic/p-2717e0fc.entry.js +0 -4
  512. package/dist/ionic/p-29c1176f.entry.js +0 -4
  513. package/dist/ionic/p-2b1e9500.entry.js +0 -4
  514. package/dist/ionic/p-308f9b89.entry.js +0 -4
  515. package/dist/ionic/p-338cb1e7.entry.js +0 -4
  516. package/dist/ionic/p-344072c8.entry.js +0 -4
  517. package/dist/ionic/p-39303a6a.entry.js +0 -4
  518. package/dist/ionic/p-39bf5990.entry.js +0 -4
  519. package/dist/ionic/p-3b47fdc7.entry.js +0 -4
  520. package/dist/ionic/p-3be131ed.entry.js +0 -4
  521. package/dist/ionic/p-3f15086f.entry.js +0 -4
  522. package/dist/ionic/p-49edfb46.entry.js +0 -4
  523. package/dist/ionic/p-522663a4.entry.js +0 -4
  524. package/dist/ionic/p-561cfcc1.entry.js +0 -4
  525. package/dist/ionic/p-65ad8502.entry.js +0 -4
  526. package/dist/ionic/p-6a3ff87c.entry.js +0 -4
  527. package/dist/ionic/p-6fb60223.entry.js +0 -4
  528. package/dist/ionic/p-764f4282.entry.js +0 -4
  529. package/dist/ionic/p-7de26931.entry.js +0 -4
  530. package/dist/ionic/p-8183df6b.entry.js +0 -4
  531. package/dist/ionic/p-81b5d87c.entry.js +0 -4
  532. package/dist/ionic/p-85cbc8c5.entry.js +0 -4
  533. package/dist/ionic/p-86bf24f4.entry.js +0 -4
  534. package/dist/ionic/p-8ecb459a.entry.js +0 -4
  535. package/dist/ionic/p-8ff4bf6c.entry.js +0 -4
  536. package/dist/ionic/p-905c8b38.entry.js +0 -4
  537. package/dist/ionic/p-9613f2c3.entry.js +0 -4
  538. package/dist/ionic/p-9c9a8e34.entry.js +0 -4
  539. package/dist/ionic/p-9d6e569d.entry.js +0 -4
  540. package/dist/ionic/p-BXRdzJMJ.js +0 -4
  541. package/dist/ionic/p-BfDzKnZ-.js +0 -4
  542. package/dist/ionic/p-BfUzA1cP.js +0 -4
  543. package/dist/ionic/p-C3TLUO-J.js +0 -4
  544. package/dist/ionic/p-C4WiowQL.js +0 -4
  545. package/dist/ionic/p-CXkgZKSx.js +0 -4
  546. package/dist/ionic/p-D7LiFzrm.js +0 -4
  547. package/dist/ionic/p-D_vm5I9h.js +0 -4
  548. package/dist/ionic/p-DxPRC9Jk.js +0 -4
  549. package/dist/ionic/p-Hb0L-KUN.js +0 -4
  550. package/dist/ionic/p-WdouEyt8.js +0 -4
  551. package/dist/ionic/p-a1555032.entry.js +0 -4
  552. package/dist/ionic/p-a6315f72.entry.js +0 -4
  553. package/dist/ionic/p-a8e51e17.entry.js +0 -4
  554. package/dist/ionic/p-a932c26f.entry.js +0 -4
  555. package/dist/ionic/p-aab54de4.entry.js +0 -4
  556. package/dist/ionic/p-aaf3f84e.entry.js +0 -4
  557. package/dist/ionic/p-b076511a.entry.js +0 -4
  558. package/dist/ionic/p-b1b397cf.entry.js +0 -4
  559. package/dist/ionic/p-b3e2281c.entry.js +0 -4
  560. package/dist/ionic/p-b4de840a.entry.js +0 -4
  561. package/dist/ionic/p-c1fc48c7.entry.js +0 -4
  562. package/dist/ionic/p-c3dc0187.entry.js +0 -4
  563. package/dist/ionic/p-ca2c0598.entry.js +0 -4
  564. package/dist/ionic/p-ce443df7.entry.js +0 -4
  565. package/dist/ionic/p-ce8bea16.entry.js +0 -4
  566. package/dist/ionic/p-ceca04fb.entry.js +0 -4
  567. package/dist/ionic/p-d6cd46ab.entry.js +0 -4
  568. package/dist/ionic/p-db20f98a.entry.js +0 -4
  569. package/dist/ionic/p-dbf53341.entry.js +0 -4
  570. package/dist/ionic/p-de0de6a6.entry.js +0 -4
  571. package/dist/ionic/p-f3057b31.entry.js +0 -4
  572. package/dist/ionic/p-fa74dd94.entry.js +0 -4
  573. package/dist/ionic/p-hR6kxzTq.js +0 -6
  574. 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
- * Two things to know before adopting it. Unless `moveFromHost` says otherwise, only the
16
- * initial copy removes the attributes from the host, so a value written after load sits
17
- * on the host as well as on the element it is applied to, which matters if the host has
18
- * a role of its own. And an attribute moved off the host can never be removed, only
19
- * overwritten, since removing it from the host doesn't fire a mutation.
20
- * An empty string works for `aria-label` and friends, but a token-valued attribute
21
- * has to be set to its default instead, so `aria-pressed="false"` rather than empty.
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, and for attributes that would put a second node in
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 still on the host, which is everything written after load. The initial
43
- * copy removes what it captures, so a missing attribute only counts as a removal
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 ((value === null && !wasOnHost) || value === inherited[name]) {
120
+ if (value === null && !wasOnHost) {
90
121
  continue;
91
122
  }
92
- changed[name] = value;
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?.disconnect();
128
- observer = undefined;
129
- };
130
- const refresh = () => {
131
- if (moveFromHost === undefined) {
163
+ if (observer === undefined) {
132
164
  return;
133
165
  }
134
- // A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
135
- // first, or the loop below would act on the old value and drop the new one.
136
- if (observer !== undefined) {
137
- const pending = observer.takeRecords();
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?.takeRecords();
227
+ observer.takeRecords();
161
228
  };
162
229
  /**
163
230
  * Has to run after the initial copy, because that copy removes the attributes from the
@@ -8,3 +8,4 @@ export * from './item-multiple-inputs';
8
8
  export * from './click-controller';
9
9
  export * from './validity';
10
10
  export * from './clear-button-press-controller';
11
+ export * from './page-restore';
@@ -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. The two possible options
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
- // Get all focusable elements from both light and shadow DOM
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-16T21:06:14",
2
+ "timestamp": "2026-11-17T18:02:54",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.45.2",
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 { c as printIonError } from './index-hR6kxzTq.js';
4
+ import { c as printIonError } from './index-Bas44FS4.js';
5
5
  import { w as win } from './index-ZjP4CjeZ.js';
6
6
 
7
7
  let animationPrefix;
@@ -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-DSbFWXp3.js';
4
+ import { i as initialize } from './ionic-global-BYy_ionO.js';
5
5
 
6
6
  const appGlobalScript = initialize || (() => {});
7
7
  const globalScripts = appGlobalScript;