@ionic/core 9.0.11-nightly.20261111 → 9.0.12-dev.11794435138.1d5cadc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (508) 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-fab-button.js +1 -1
  27. package/components/ion-fab-list.js +1 -1
  28. package/components/ion-fab.js +1 -1
  29. package/components/ion-footer.js +1 -1
  30. package/components/ion-grid.js +1 -1
  31. package/components/ion-header.js +1 -1
  32. package/components/ion-icon.js +1 -1
  33. package/components/ion-img.js +1 -1
  34. package/components/ion-infinite-scroll-content.js +1 -1
  35. package/components/ion-infinite-scroll.js +1 -1
  36. package/components/ion-input-otp.js +1 -1
  37. package/components/ion-input-password-toggle.js +1 -1
  38. package/components/ion-input.js +1 -1
  39. package/components/ion-item-divider.js +1 -1
  40. package/components/ion-item-group.js +1 -1
  41. package/components/ion-item-option.js +1 -1
  42. package/components/ion-item-options.js +1 -1
  43. package/components/ion-item-sliding.js +1 -1
  44. package/components/ion-item.js +1 -1
  45. package/components/ion-label.js +1 -1
  46. package/components/ion-list-header.js +1 -1
  47. package/components/ion-list.js +1 -1
  48. package/components/ion-loading.js +1 -1
  49. package/components/ion-menu-button.js +1 -1
  50. package/components/ion-menu-toggle.js +1 -1
  51. package/components/ion-menu.js +1 -1
  52. package/components/ion-modal.js +1 -1
  53. package/components/ion-nav-link.js +1 -1
  54. package/components/ion-nav.js +1 -1
  55. package/components/ion-note.js +1 -1
  56. package/components/ion-picker-column-option.js +1 -1
  57. package/components/ion-picker-column.js +1 -1
  58. package/components/ion-picker.js +1 -1
  59. package/components/ion-popover.js +1 -1
  60. package/components/ion-progress-bar.js +1 -1
  61. package/components/ion-radio-group.js +1 -1
  62. package/components/ion-radio.js +1 -1
  63. package/components/ion-range.js +1 -1
  64. package/components/ion-refresher-content.js +1 -1
  65. package/components/ion-refresher.js +1 -1
  66. package/components/ion-reorder-group.js +1 -1
  67. package/components/ion-reorder.js +1 -1
  68. package/components/ion-ripple-effect.js +1 -1
  69. package/components/ion-route-redirect.js +1 -1
  70. package/components/ion-route.js +1 -1
  71. package/components/ion-router-link.js +1 -1
  72. package/components/ion-router-outlet.js +1 -1
  73. package/components/ion-router.js +1 -1
  74. package/components/ion-row.js +1 -1
  75. package/components/ion-searchbar.js +1 -1
  76. package/components/ion-segment-button.js +1 -1
  77. package/components/ion-segment-content.js +1 -1
  78. package/components/ion-segment-view.js +1 -1
  79. package/components/ion-segment.js +1 -1
  80. package/components/ion-select-modal.js +1 -1
  81. package/components/ion-select-option.js +1 -1
  82. package/components/ion-select-popover.js +1 -1
  83. package/components/ion-select.js +1 -1
  84. package/components/ion-skeleton-text.js +1 -1
  85. package/components/ion-spinner.js +1 -1
  86. package/components/ion-split-pane.js +1 -1
  87. package/components/ion-tab-bar.js +1 -1
  88. package/components/ion-tab-button.js +1 -1
  89. package/components/ion-tab.js +1 -1
  90. package/components/ion-tabs.js +1 -1
  91. package/components/ion-text.js +1 -1
  92. package/components/ion-textarea.js +1 -1
  93. package/components/ion-thumbnail.js +1 -1
  94. package/components/ion-title.js +1 -1
  95. package/components/ion-toast.js +1 -1
  96. package/components/ion-toggle.js +1 -1
  97. package/components/ion-toolbar.js +1 -1
  98. package/components/{p-D8FyR2IB.js → p-28_KCxSf.js} +1 -1
  99. package/components/{p-PkD1iLNN.js → p-2r7QpBW2.js} +1 -1
  100. package/components/{p-CW84OFQa.js → p-5LnxYgt7.js} +1 -1
  101. package/components/{p-CvyvLbPe.js → p-B89FqNe7.js} +1 -1
  102. package/components/p-BAAtTHkh.js +4 -0
  103. package/components/{p-CjPRDxby.js → p-BE1iSZxK.js} +1 -1
  104. package/components/p-BEN_dW38.js +4 -0
  105. package/components/{p-Dy7x-KDF.js → p-BFhqMUFJ.js} +1 -1
  106. package/components/{p-DRm4t-by.js → p-BKzm8GnQ.js} +1 -1
  107. package/components/{p-DHo45oj7.js → p-BPW1yhC5.js} +1 -1
  108. package/components/{p-HthJZjZ6.js → p-BRwclc4v.js} +1 -1
  109. package/components/{p-ChkSQqfP.js → p-BU1um0go.js} +1 -1
  110. package/components/{p-DaW9OZ6S.js → p-BaD2k7-g.js} +1 -1
  111. package/components/{p-RhI78AKb.js → p-Bl36leJI.js} +1 -1
  112. package/components/{p-B3dSuofL.js → p-Bp-vRdq-.js} +1 -1
  113. package/components/{p-DnBabjgY.js → p-BqRR1T5F.js} +1 -1
  114. package/components/{p-BT2InaHz.js → p-By_XQw23.js} +1 -1
  115. package/components/{p-07wRJfkt.js → p-C6Eoe8TE.js} +1 -1
  116. package/components/p-C6mx0RsH.js +4 -0
  117. package/components/{p-7KepMw9O.js → p-C7PoQnxN.js} +1 -1
  118. package/components/{p-C8BAigo3.js → p-CApfTEZu.js} +1 -1
  119. package/components/{p-D5_mEbGJ.js → p-CHtaS-1H.js} +1 -1
  120. package/components/{p-D_U0pDe5.js → p-CHw0oDIX.js} +1 -1
  121. package/components/p-CVWleXIL.js +4 -0
  122. package/components/p-CeRIYiar.js +4 -0
  123. package/components/{p-BBsseItU.js → p-CekDicbC.js} +1 -1
  124. package/components/p-Cjd_foSx.js +4 -0
  125. package/components/{p-z-EWo6r-.js → p-Cs66-da5.js} +1 -1
  126. package/components/{p-DTGCMApY.js → p-CsEqD5L_.js} +1 -1
  127. package/components/p-CxYMGJTr.js +4 -0
  128. package/components/{p-hLu-eIbb.js → p-CyOxaozL.js} +1 -1
  129. package/{dist/ionic/p-CJmyfI8x.js → components/p-D2CH_C1y.js} +1 -1
  130. package/components/{p-BrrMFd9K.js → p-D3Kil3Ox.js} +1 -1
  131. package/components/{p-BWbz71uB.js → p-D7J-iv5T.js} +1 -1
  132. package/{dist/ionic/p-e1haAYzm.js → components/p-DBdOjgB_.js} +1 -1
  133. package/{dist/ionic/p-BO10QT9r.js → components/p-DDML-XXM.js} +1 -1
  134. package/components/{p-ChsJlFCQ.js → p-DPypH5J1.js} +1 -1
  135. package/components/{p-CqvARtmt.js → p-DSGxE4YQ.js} +1 -1
  136. package/components/{p-KbMCbGRA.js → p-DVRS13xd.js} +1 -1
  137. package/components/p-DVa8nma_.js +4 -0
  138. package/components/{p-7NbIvzb4.js → p-DX2WL1Da.js} +1 -1
  139. package/components/p-Dhhot0Wu.js +4 -0
  140. package/components/{p-Dbi3KqKm.js → p-Di_8hcJD.js} +1 -1
  141. package/components/{p-C-SO5kIs.js → p-Dkw9q24a.js} +1 -1
  142. package/components/{p-BMHdI-wb.js → p-DrXp7JFH.js} +1 -1
  143. package/components/{p-3avHDbEF.js → p-Dt1Xl4fS.js} +1 -1
  144. package/components/p-DuG_CBXq.js +4 -0
  145. package/components/p-HIqLOae3.js +4 -0
  146. package/components/{p-BZ1k9WL7.js → p-Zt5D5E38.js} +1 -1
  147. package/components/p-dgUknkY4.js +4 -0
  148. package/components/{p-DwTzX8Vi.js → p-fCziDtBc.js} +1 -1
  149. package/components/{p-CUQjkOdi.js → p-oTJGwohD.js} +1 -1
  150. package/dist/cjs/{animation-UiXhXV49.js → animation-B7oGwLLy.js} +2 -2
  151. package/dist/cjs/{app-globals-BoFCZq0K.js → app-globals-CIBBAkMv.js} +1 -1
  152. package/dist/cjs/attribute-controller-bNeK5E15.js +219 -0
  153. package/dist/cjs/{button-active-DzN1aPt-.js → button-active-B9Tkc4mf.js} +2 -2
  154. package/dist/cjs/{capacitor-BTjfXFlK.js → capacitor-MxFQgshb.js} +1 -1
  155. package/dist/cjs/{format-CVjpvAl1.js → format-CqApCy46.js} +1 -1
  156. package/dist/cjs/{framework-delegate-hNMKEiQC.js → framework-delegate-DAKg2Azt.js} +1 -1
  157. package/dist/cjs/{haptic-BD5qPgy8.js → haptic-CRRCyhfL.js} +1 -1
  158. package/dist/cjs/{helpers-BrETKUUX.js → helpers-BDvjDsXt.js} +1 -1
  159. package/dist/cjs/{index-BTc0Jnhx.js → index-BUIZTwKD.js} +5 -5
  160. package/dist/cjs/{index-DNBYnlrc.js → index-BashZvQB.js} +4 -4
  161. package/dist/cjs/{index-bwclzjks.js → index-BecWuzkK.js} +2 -2
  162. package/dist/cjs/{index-BiQyIvoc.js → index-CKee8md4.js} +71 -35
  163. package/dist/cjs/{index-DMz2Eyis.js → index-D02LHDVd.js} +2 -2
  164. package/dist/cjs/{index-B4ONUQRp.js → index-DJX-8rkB.js} +1 -1
  165. package/dist/cjs/index.cjs.js +11 -11
  166. package/dist/cjs/{input-shims-CRmdShL9.js → input-shims-ClPpap7E.js} +5 -5
  167. package/dist/cjs/{input.utils-Becpo0ax.js → input.utils-DXw7l7p9.js} +1 -1
  168. package/dist/cjs/ion-accordion_2.cjs.entry.js +7 -5
  169. package/dist/cjs/ion-action-sheet.cjs.entry.js +13 -12
  170. package/dist/cjs/ion-alert.cjs.entry.js +13 -12
  171. package/dist/cjs/ion-app_8.cjs.entry.js +32 -24
  172. package/dist/cjs/ion-avatar_3.cjs.entry.js +8 -5
  173. package/dist/cjs/ion-back-button.cjs.entry.js +16 -6
  174. package/dist/cjs/ion-backdrop.cjs.entry.js +4 -3
  175. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +33 -9
  176. package/dist/cjs/ion-button_2.cjs.entry.js +17 -9
  177. package/dist/cjs/ion-card_5.cjs.entry.js +36 -11
  178. package/dist/cjs/ion-checkbox.cjs.entry.js +6 -5
  179. package/dist/cjs/ion-chip.cjs.entry.js +4 -3
  180. package/dist/cjs/ion-col_3.cjs.entry.js +8 -5
  181. package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -5
  182. package/dist/cjs/ion-datetime.cjs.entry.js +8 -7
  183. package/dist/cjs/ion-fab_3.cjs.entry.js +18 -8
  184. package/dist/cjs/ion-img.cjs.entry.js +5 -4
  185. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +9 -7
  186. package/dist/cjs/ion-input-otp.cjs.entry.js +5 -4
  187. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +4 -3
  188. package/dist/cjs/ion-input.cjs.entry.js +7 -6
  189. package/dist/cjs/ion-item-option_3.cjs.entry.js +23 -9
  190. package/dist/cjs/ion-item_8.cjs.entry.js +38 -14
  191. package/dist/cjs/ion-loading.cjs.entry.js +9 -8
  192. package/dist/cjs/ion-menu_3.cjs.entry.js +24 -12
  193. package/dist/cjs/ion-modal.cjs.entry.js +13 -12
  194. package/dist/cjs/ion-nav_2.cjs.entry.js +10 -8
  195. package/dist/cjs/ion-picker-column-option.cjs.entry.js +5 -4
  196. package/dist/cjs/ion-picker-column.cjs.entry.js +7 -6
  197. package/dist/cjs/ion-picker.cjs.entry.js +4 -3
  198. package/dist/cjs/ion-popover.cjs.entry.js +9 -8
  199. package/dist/cjs/ion-progress-bar.cjs.entry.js +5 -4
  200. package/dist/cjs/ion-radio_2.cjs.entry.js +8 -6
  201. package/dist/cjs/ion-range.cjs.entry.js +6 -5
  202. package/dist/cjs/ion-refresher_2.cjs.entry.js +12 -10
  203. package/dist/cjs/ion-reorder_2.cjs.entry.js +10 -8
  204. package/dist/cjs/ion-ripple-effect.cjs.entry.js +4 -3
  205. package/dist/cjs/ion-route_4.cjs.entry.js +26 -10
  206. package/dist/cjs/ion-searchbar.cjs.entry.js +5 -4
  207. package/dist/cjs/ion-segment-content.cjs.entry.js +3 -2
  208. package/dist/cjs/ion-segment-view.cjs.entry.js +3 -2
  209. package/dist/cjs/ion-segment_2.cjs.entry.js +14 -7
  210. package/dist/cjs/ion-select-modal.cjs.entry.js +9 -8
  211. package/dist/cjs/ion-select_3.cjs.entry.js +22 -14
  212. package/dist/cjs/ion-spinner.cjs.entry.js +4 -3
  213. package/dist/cjs/ion-split-pane.cjs.entry.js +4 -3
  214. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +21 -10
  215. package/dist/cjs/ion-tab_2.cjs.entry.js +7 -5
  216. package/dist/cjs/ion-text.cjs.entry.js +4 -3
  217. package/dist/cjs/ion-textarea.cjs.entry.js +7 -6
  218. package/dist/cjs/ion-toast.cjs.entry.js +9 -8
  219. package/dist/cjs/ion-toggle.cjs.entry.js +8 -7
  220. package/dist/cjs/{ionic-global-48ceLiJ6.js → ionic-global-Bt1gOF3y.js} +1 -1
  221. package/dist/cjs/ionic.cjs.js +5 -5
  222. package/dist/cjs/{ios.transition-CN092Fh6.js → ios.transition-CExZyoOI.js} +4 -4
  223. package/dist/cjs/{item-multiple-inputs-C-hz7xrh.js → item-multiple-inputs-DCadv5DD.js} +1 -1
  224. package/dist/cjs/{keyboard-4OBzkjOG.js → keyboard-DcLeJI_8.js} +4 -4
  225. package/dist/cjs/{keyboard-BMpscicm.js → keyboard-OOIuCa13.js} +1 -1
  226. package/dist/cjs/{keyboard-controller-DZE97OtR.js → keyboard-controller-BMyz0P1a.js} +2 -2
  227. package/dist/cjs/loader.cjs.js +4 -4
  228. package/dist/cjs/{md.transition-B6961Ny9.js → md.transition-DaAVTRvs.js} +4 -4
  229. package/dist/cjs/{overlays-BbVQG3UT.js → overlays-D4y6dLkd.js} +4 -4
  230. package/dist/cjs/{select-option-render-CzyhrkOu.js → select-option-render-XNNDfPjV.js} +2 -2
  231. package/dist/cjs/{slot-mutation-controller-CRa_cKOh.js → slot-mutation-controller-DPIgf5CF.js} +1 -1
  232. package/dist/cjs/{status-tap-hRIvObiJ.js → status-tap-DsMxsZJD.js} +3 -3
  233. package/dist/cjs/{swipe-back-C-aigThB.js → swipe-back-DTBGxsBq.js} +2 -2
  234. package/dist/collection/collection-manifest.json +1 -1
  235. package/dist/collection/components/back-button/back-button.js +12 -3
  236. package/dist/collection/components/breadcrumb/breadcrumb.js +28 -5
  237. package/dist/collection/components/button/button.js +10 -4
  238. package/dist/collection/components/card/card.js +24 -3
  239. package/dist/collection/components/fab-button/fab-button.js +10 -3
  240. package/dist/collection/components/item/item.js +19 -3
  241. package/dist/collection/components/item-option/item-option.js +14 -3
  242. package/dist/collection/components/menu-button/menu-button.js +12 -3
  243. package/dist/collection/components/router-link/router-link.js +15 -3
  244. package/dist/collection/components/segment-button/segment-button.js +7 -2
  245. package/dist/collection/components/select/select.js +8 -3
  246. package/dist/collection/components/tab-button/tab-button.js +12 -3
  247. package/dist/collection/utils/attribute-controller.js +107 -20
  248. package/dist/docs.json +2 -2
  249. package/dist/esm/{animation-C_V9lXzL.js → animation-DC5AcIYI.js} +2 -2
  250. package/dist/esm/{app-globals-CNfpAPW6.js → app-globals-BFed4dT0.js} +1 -1
  251. package/dist/esm/attribute-controller-ClTQeZiJ.js +215 -0
  252. package/dist/esm/{button-active-rB-Ct9KZ.js → button-active-C2jz6R8a.js} +2 -2
  253. package/dist/esm/{capacitor-BY7l8HgR.js → capacitor-Bt0eJ0hM.js} +1 -1
  254. package/dist/esm/{format-Ck1cw5z7.js → format-C833IXB1.js} +1 -1
  255. package/dist/esm/{framework-delegate-CW5_kWfc.js → framework-delegate-DnTzYR1W.js} +1 -1
  256. package/dist/esm/{haptic-ES_sSPLn.js → haptic-ChR8my2M.js} +1 -1
  257. package/dist/esm/{helpers-p94IkmEA.js → helpers-BvbUHGGm.js} +1 -1
  258. package/dist/esm/{index-BpRUsN_W.js → index-BGtO2Fhf.js} +71 -35
  259. package/dist/esm/{index-CBkVO5D0.js → index-BObCPR8a.js} +2 -2
  260. package/dist/esm/{index-txcXIB3P.js → index-BXaoLxIE.js} +5 -5
  261. package/dist/esm/{index-DLDbwWW7.js → index-DFG3GaUN.js} +2 -2
  262. package/dist/esm/{index-CK8uF0iB.js → index-I3r9qsv0.js} +1 -1
  263. package/dist/esm/{index-vgPixHgF.js → index-MGm9Sl6h.js} +4 -4
  264. package/dist/esm/index.js +11 -11
  265. package/dist/esm/{input-shims-KNXj3DAv.js → input-shims-DmHorap3.js} +5 -5
  266. package/dist/esm/{input.utils-DZY_K8Po.js → input.utils-CBbgDLtb.js} +1 -1
  267. package/dist/esm/ion-accordion_2.entry.js +7 -5
  268. package/dist/esm/ion-action-sheet.entry.js +13 -12
  269. package/dist/esm/ion-alert.entry.js +13 -12
  270. package/dist/esm/ion-app_8.entry.js +32 -24
  271. package/dist/esm/ion-avatar_3.entry.js +8 -5
  272. package/dist/esm/ion-back-button.entry.js +16 -6
  273. package/dist/esm/ion-backdrop.entry.js +4 -3
  274. package/dist/esm/ion-breadcrumb_2.entry.js +33 -9
  275. package/dist/esm/ion-button_2.entry.js +17 -9
  276. package/dist/esm/ion-card_5.entry.js +36 -11
  277. package/dist/esm/ion-checkbox.entry.js +6 -5
  278. package/dist/esm/ion-chip.entry.js +4 -3
  279. package/dist/esm/ion-col_3.entry.js +8 -5
  280. package/dist/esm/ion-datetime-button.entry.js +6 -5
  281. package/dist/esm/ion-datetime.entry.js +8 -7
  282. package/dist/esm/ion-fab_3.entry.js +18 -8
  283. package/dist/esm/ion-img.entry.js +5 -4
  284. package/dist/esm/ion-infinite-scroll_2.entry.js +9 -7
  285. package/dist/esm/ion-input-otp.entry.js +5 -4
  286. package/dist/esm/ion-input-password-toggle.entry.js +4 -3
  287. package/dist/esm/ion-input.entry.js +7 -6
  288. package/dist/esm/ion-item-option_3.entry.js +23 -9
  289. package/dist/esm/ion-item_8.entry.js +38 -14
  290. package/dist/esm/ion-loading.entry.js +9 -8
  291. package/dist/esm/ion-menu_3.entry.js +24 -12
  292. package/dist/esm/ion-modal.entry.js +13 -12
  293. package/dist/esm/ion-nav_2.entry.js +10 -8
  294. package/dist/esm/ion-picker-column-option.entry.js +5 -4
  295. package/dist/esm/ion-picker-column.entry.js +7 -6
  296. package/dist/esm/ion-picker.entry.js +4 -3
  297. package/dist/esm/ion-popover.entry.js +9 -8
  298. package/dist/esm/ion-progress-bar.entry.js +5 -4
  299. package/dist/esm/ion-radio_2.entry.js +8 -6
  300. package/dist/esm/ion-range.entry.js +6 -5
  301. package/dist/esm/ion-refresher_2.entry.js +12 -10
  302. package/dist/esm/ion-reorder_2.entry.js +10 -8
  303. package/dist/esm/ion-ripple-effect.entry.js +4 -3
  304. package/dist/esm/ion-route_4.entry.js +26 -10
  305. package/dist/esm/ion-searchbar.entry.js +5 -4
  306. package/dist/esm/ion-segment-content.entry.js +3 -2
  307. package/dist/esm/ion-segment-view.entry.js +3 -2
  308. package/dist/esm/ion-segment_2.entry.js +14 -7
  309. package/dist/esm/ion-select-modal.entry.js +9 -8
  310. package/dist/esm/ion-select_3.entry.js +22 -14
  311. package/dist/esm/ion-spinner.entry.js +4 -3
  312. package/dist/esm/ion-split-pane.entry.js +4 -3
  313. package/dist/esm/ion-tab-bar_2.entry.js +21 -10
  314. package/dist/esm/ion-tab_2.entry.js +7 -5
  315. package/dist/esm/ion-text.entry.js +4 -3
  316. package/dist/esm/ion-textarea.entry.js +7 -6
  317. package/dist/esm/ion-toast.entry.js +9 -8
  318. package/dist/esm/ion-toggle.entry.js +8 -7
  319. package/dist/esm/{ionic-global-Cep6oYzK.js → ionic-global-BDyJ_8I-.js} +1 -1
  320. package/dist/esm/ionic.js +6 -6
  321. package/dist/esm/{ios.transition-CW92wRDL.js → ios.transition-BRRzMHfK.js} +4 -4
  322. package/dist/esm/{item-multiple-inputs-Bd2LO7qK.js → item-multiple-inputs-IPlsPhUJ.js} +1 -1
  323. package/dist/esm/{keyboard-CutS8BPd.js → keyboard-BFjnkNMv.js} +1 -1
  324. package/dist/esm/{keyboard-BumguZrM.js → keyboard-DUoJXTRE.js} +4 -4
  325. package/dist/esm/{keyboard-controller-DqohyEsZ.js → keyboard-controller-BA84p4ML.js} +2 -2
  326. package/dist/esm/loader.js +5 -5
  327. package/dist/esm/{md.transition-yhfkYX1P.js → md.transition-BlNVIP5o.js} +4 -4
  328. package/dist/esm/{overlays-BBgMM61s.js → overlays-DR4E-YYD.js} +4 -4
  329. package/dist/esm/{select-option-render-BSDT9oSA.js → select-option-render-BUBAvw2_.js} +2 -2
  330. package/dist/esm/{slot-mutation-controller-uKdPbY9K.js → slot-mutation-controller-DBmgz_0k.js} +1 -1
  331. package/dist/esm/{status-tap-BskkGI4e.js → status-tap-z4LuyVUt.js} +3 -3
  332. package/dist/esm/{swipe-back-BZdyM2Q-.js → swipe-back-C1eBKfiK.js} +2 -2
  333. package/dist/ionic/index.esm.js +1 -1
  334. package/dist/ionic/ionic.esm.js +1 -1
  335. package/dist/ionic/p-03bb02b6.entry.js +4 -0
  336. package/dist/ionic/p-05a057fb.entry.js +4 -0
  337. package/dist/ionic/p-1238548e.entry.js +4 -0
  338. package/dist/ionic/p-1274e8e0.entry.js +4 -0
  339. package/dist/ionic/p-1419107d.entry.js +4 -0
  340. package/dist/ionic/p-1616c2e3.entry.js +4 -0
  341. package/dist/ionic/p-1a4d6cf3.entry.js +4 -0
  342. package/dist/ionic/p-1ae4b282.entry.js +4 -0
  343. package/dist/ionic/p-1b7a15d4.entry.js +4 -0
  344. package/dist/ionic/{p-BWKtcudz.js → p-1feuPAQy.js} +1 -1
  345. package/dist/ionic/p-2090c9dd.entry.js +4 -0
  346. package/dist/ionic/p-26aa0bea.entry.js +4 -0
  347. package/dist/ionic/p-2f68b3c0.entry.js +4 -0
  348. package/dist/ionic/p-2fab8bf5.entry.js +4 -0
  349. package/dist/ionic/p-333b8225.entry.js +4 -0
  350. package/dist/ionic/p-33c41604.entry.js +4 -0
  351. package/dist/ionic/p-46f2c59f.entry.js +4 -0
  352. package/dist/ionic/p-4ecf0d94.entry.js +4 -0
  353. package/dist/ionic/p-4f02f020.entry.js +4 -0
  354. package/dist/ionic/p-52186d6b.entry.js +4 -0
  355. package/dist/ionic/p-53b6ab69.entry.js +4 -0
  356. package/dist/ionic/p-605d5a7e.entry.js +4 -0
  357. package/dist/ionic/p-66adc5a1.entry.js +4 -0
  358. package/dist/ionic/p-6a746af4.entry.js +4 -0
  359. package/dist/ionic/p-6e7d46fa.entry.js +4 -0
  360. package/dist/ionic/p-736344e9.entry.js +4 -0
  361. package/dist/ionic/p-74dda4e5.entry.js +4 -0
  362. package/dist/ionic/p-79e645bd.entry.js +4 -0
  363. package/dist/ionic/p-7hQRImkK.js +4 -0
  364. package/dist/ionic/p-88cf20d2.entry.js +4 -0
  365. package/dist/ionic/p-98d3a2be.entry.js +4 -0
  366. package/dist/ionic/p-9e3b3263.entry.js +4 -0
  367. package/dist/ionic/{p-8B39TMv-.js → p-B9cO-kYV.js} +1 -1
  368. package/dist/ionic/p-BGtO2Fhf.js +6 -0
  369. package/dist/ionic/{p-C4SpVvhx.js → p-BNupGwtk.js} +1 -1
  370. package/dist/ionic/{p-DArnNWiu.js → p-BkcYeWXi.js} +1 -1
  371. package/dist/ionic/p-Bl_jKJLv.js +4 -0
  372. package/dist/ionic/p-BmeHOspf.js +4 -0
  373. package/dist/ionic/{p-5a3UxQAh.js → p-C7A9OQcL.js} +1 -1
  374. package/{components/p-R4UxBukQ.js → dist/ionic/p-CBq1CZwb.js} +1 -1
  375. package/dist/ionic/{p-DxftXYZp.js → p-CNyAVKal.js} +1 -1
  376. package/dist/ionic/p-CRgN46qV.js +4 -0
  377. package/dist/ionic/p-CYKfkI6i.js +4 -0
  378. package/dist/ionic/{p-BBZQUbCq.js → p-C_0lvVN_.js} +1 -1
  379. package/{components/p-CdrNHfZl.js → dist/ionic/p-Ci4965j8.js} +1 -1
  380. package/dist/ionic/{p-SEecsUh7.js → p-CjUT_VTP.js} +1 -1
  381. package/{components/p-LkEGRiq0.js → dist/ionic/p-Cw2UdaY3.js} +1 -1
  382. package/dist/ionic/{p-DFPZa_No.js → p-D0_5-Ckh.js} +1 -1
  383. package/dist/ionic/p-D5TRCRie.js +4 -0
  384. package/dist/ionic/p-DCzujr0Q.js +4 -0
  385. package/dist/ionic/{p-B2JD8_LP.js → p-DJqMQDf-.js} +1 -1
  386. package/dist/ionic/{p-CfccUand.js → p-DRGrDfWv.js} +1 -1
  387. package/dist/ionic/p-Dqz9qh-H.js +4 -0
  388. package/dist/ionic/{p-Cf6KtUnA.js → p-RJtRqfIz.js} +1 -1
  389. package/dist/ionic/p-SfKXFiOB.js +4 -0
  390. package/dist/ionic/{p-CNdt1FPc.js → p-UUJgswAN.js} +1 -1
  391. package/dist/ionic/p-a4df0e91.entry.js +4 -0
  392. package/dist/ionic/p-a992a35b.entry.js +4 -0
  393. package/dist/ionic/p-b5e6edf6.entry.js +4 -0
  394. package/dist/ionic/p-b872f43e.entry.js +4 -0
  395. package/dist/ionic/p-b922806b.entry.js +4 -0
  396. package/dist/ionic/p-bf720fd6.entry.js +4 -0
  397. package/dist/ionic/p-c1209b84.entry.js +4 -0
  398. package/dist/ionic/p-c394744f.entry.js +4 -0
  399. package/dist/ionic/p-c7315410.entry.js +4 -0
  400. package/dist/ionic/p-ca4a06e6.entry.js +4 -0
  401. package/dist/ionic/p-ca608663.entry.js +4 -0
  402. package/dist/ionic/p-d0d4482d.entry.js +4 -0
  403. package/dist/ionic/p-d4afa00a.entry.js +4 -0
  404. package/dist/ionic/p-d7749f70.entry.js +4 -0
  405. package/dist/ionic/p-db93830d.entry.js +4 -0
  406. package/dist/ionic/p-dd3d4a4f.entry.js +4 -0
  407. package/dist/ionic/{p-B2y1T0dN.js → p-de2BC0yO.js} +1 -1
  408. package/dist/ionic/p-df8a4ddd.entry.js +4 -0
  409. package/dist/ionic/p-df9ebba7.entry.js +4 -0
  410. package/dist/ionic/p-eb93c676.entry.js +4 -0
  411. package/dist/ionic/p-ec4dbb45.entry.js +4 -0
  412. package/dist/ionic/p-f0206bd7.entry.js +4 -0
  413. package/dist/ionic/{p-96d040b0.entry.js → p-fcc5b886.entry.js} +1 -1
  414. package/dist/ionic/p-rXvVaOP9.js +4 -0
  415. package/dist/ionic/{p-DCmOKz8e.js → p-ynrl9u5l.js} +1 -1
  416. package/dist/types/components/back-button/back-button.d.ts +3 -0
  417. package/dist/types/components/breadcrumb/breadcrumb.d.ts +8 -0
  418. package/dist/types/components/button/button.d.ts +1 -0
  419. package/dist/types/components/card/card.d.ts +6 -0
  420. package/dist/types/components/fab-button/fab-button.d.ts +2 -0
  421. package/dist/types/components/item/item.d.ts +6 -0
  422. package/dist/types/components/item-option/item-option.d.ts +4 -0
  423. package/dist/types/components/menu-button/menu-button.d.ts +3 -0
  424. package/dist/types/components/router-link/router-link.d.ts +5 -0
  425. package/dist/types/components/segment-button/segment-button.d.ts +1 -0
  426. package/dist/types/components/select/select.d.ts +1 -0
  427. package/dist/types/components/tab-button/tab-button.d.ts +3 -0
  428. package/dist/types/stencil-public-runtime.d.ts +1 -1
  429. package/dist/types/utils/attribute-controller.d.ts +28 -6
  430. package/hydrate/index.js +574 -262
  431. package/hydrate/index.mjs +574 -262
  432. package/package.json +2 -2
  433. package/components/p-C0TdbIVo.js +0 -4
  434. package/components/p-C6Y0cCH_.js +0 -4
  435. package/components/p-CCFj0kgH.js +0 -4
  436. package/components/p-CRb2xRCz.js +0 -4
  437. package/components/p-CohRJRIu.js +0 -4
  438. package/components/p-Ct2aBEue.js +0 -4
  439. package/components/p-CwEis84J.js +0 -4
  440. package/components/p-DLEJ61lJ.js +0 -4
  441. package/components/p-Dah8BCNg.js +0 -4
  442. package/components/p-DaojW_d_.js +0 -4
  443. package/components/p-Ds5vN3iu.js +0 -4
  444. package/components/p-kKGBuIkf.js +0 -4
  445. package/dist/cjs/attribute-controller-0-lwbVEj.js +0 -131
  446. package/dist/esm/attribute-controller-ItNOXNp9.js +0 -128
  447. package/dist/ionic/p-00cd107d.entry.js +0 -4
  448. package/dist/ionic/p-013b9aba.entry.js +0 -4
  449. package/dist/ionic/p-014c3633.entry.js +0 -4
  450. package/dist/ionic/p-0562139b.entry.js +0 -4
  451. package/dist/ionic/p-0a789930.entry.js +0 -4
  452. package/dist/ionic/p-0f1613f2.entry.js +0 -4
  453. package/dist/ionic/p-1252621e.entry.js +0 -4
  454. package/dist/ionic/p-129f7b95.entry.js +0 -4
  455. package/dist/ionic/p-16de8fd9.entry.js +0 -4
  456. package/dist/ionic/p-1bb1be7e.entry.js +0 -4
  457. package/dist/ionic/p-1f342c2d.entry.js +0 -4
  458. package/dist/ionic/p-1ffa5577.entry.js +0 -4
  459. package/dist/ionic/p-210f906e.entry.js +0 -4
  460. package/dist/ionic/p-27960f65.entry.js +0 -4
  461. package/dist/ionic/p-3c6fc2e8.entry.js +0 -4
  462. package/dist/ionic/p-436d4ac8.entry.js +0 -4
  463. package/dist/ionic/p-43729675.entry.js +0 -4
  464. package/dist/ionic/p-4468e439.entry.js +0 -4
  465. package/dist/ionic/p-4e4e5919.entry.js +0 -4
  466. package/dist/ionic/p-51af4728.entry.js +0 -4
  467. package/dist/ionic/p-59e4b521.entry.js +0 -4
  468. package/dist/ionic/p-5b47b8d5.entry.js +0 -4
  469. package/dist/ionic/p-5dcddfd5.entry.js +0 -4
  470. package/dist/ionic/p-694f3e78.entry.js +0 -4
  471. package/dist/ionic/p-76c189e7.entry.js +0 -4
  472. package/dist/ionic/p-77252596.entry.js +0 -4
  473. package/dist/ionic/p-77540bcb.entry.js +0 -4
  474. package/dist/ionic/p-77e7b612.entry.js +0 -4
  475. package/dist/ionic/p-7868eb92.entry.js +0 -4
  476. package/dist/ionic/p-800ce1e0.entry.js +0 -4
  477. package/dist/ionic/p-84470714.entry.js +0 -4
  478. package/dist/ionic/p-87fb6d59.entry.js +0 -4
  479. package/dist/ionic/p-8af85fa8.entry.js +0 -4
  480. package/dist/ionic/p-8c85e250.entry.js +0 -4
  481. package/dist/ionic/p-8dQB1sG_.js +0 -4
  482. package/dist/ionic/p-9515f840.entry.js +0 -4
  483. package/dist/ionic/p-9d7e5a0b.entry.js +0 -4
  484. package/dist/ionic/p-B0afqOUt.js +0 -4
  485. package/dist/ionic/p-BHBb21Hp.js +0 -4
  486. package/dist/ionic/p-BexAj0yw.js +0 -4
  487. package/dist/ionic/p-BgkRGRO3.js +0 -4
  488. package/dist/ionic/p-BpRUsN_W.js +0 -6
  489. package/dist/ionic/p-DBFcFCH5.js +0 -4
  490. package/dist/ionic/p-DYKDWM2f.js +0 -4
  491. package/dist/ionic/p-DfvWlTdB.js +0 -4
  492. package/dist/ionic/p-DriE1ZAo.js +0 -4
  493. package/dist/ionic/p-DzQk7Lu8.js +0 -4
  494. package/dist/ionic/p-a45caa30.entry.js +0 -4
  495. package/dist/ionic/p-af15fc5d.entry.js +0 -4
  496. package/dist/ionic/p-af4b4719.entry.js +0 -4
  497. package/dist/ionic/p-b0faaae2.entry.js +0 -4
  498. package/dist/ionic/p-b3aadfe8.entry.js +0 -4
  499. package/dist/ionic/p-b5bcbbc1.entry.js +0 -4
  500. package/dist/ionic/p-c293f854.entry.js +0 -4
  501. package/dist/ionic/p-c56c23b6.entry.js +0 -4
  502. package/dist/ionic/p-c7ea2647.entry.js +0 -4
  503. package/dist/ionic/p-c8c77f7b.entry.js +0 -4
  504. package/dist/ionic/p-cbc73380.entry.js +0 -4
  505. package/dist/ionic/p-d58e9da3.entry.js +0 -4
  506. package/dist/ionic/p-ec08a7e6.entry.js +0 -4
  507. package/dist/ionic/p-f37e6ed2.entry.js +0 -4
  508. package/dist/ionic/p-f6a1ab48.entry.js +0 -4
package/hydrate/index.js CHANGED
@@ -468,7 +468,7 @@ const appGlobalScript = initialize || (() => {});
468
468
  const globalScripts = appGlobalScript;
469
469
 
470
470
  /*
471
- Stencil Hydrate Platform v4.45.2 | MIT Licensed | https://stenciljs.com
471
+ Stencil Hydrate Platform v4.45.3 | MIT Licensed | https://stenciljs.com
472
472
  */
473
473
  var __create = Object.create;
474
474
  var __defProp = Object.defineProperty;
@@ -961,6 +961,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
961
961
  if (typeof slotName !== "undefined") return slottedNodes;
962
962
  }
963
963
  slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
964
+ if (typeof slotName !== "undefined" && slottedNodes.length) return slottedNodes;
964
965
  }
965
966
  return slottedNodes;
966
967
  }
@@ -1114,7 +1115,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1114
1115
  }
1115
1116
  const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
1116
1117
  if (existingStyleElm) {
1117
- existingStyleElm.textContent = style;
1118
+ appliedStyles.add(scopeId2);
1118
1119
  } else if (!appliedStyles.has(scopeId2)) {
1119
1120
  styleElm = win$2.document.createElement("style");
1120
1121
  styleElm.textContent = style;
@@ -1122,7 +1123,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1122
1123
  if (nonce != null) {
1123
1124
  styleElm.setAttribute("nonce", nonce);
1124
1125
  }
1125
- if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */ || cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1126
+ {
1126
1127
  styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
1127
1128
  }
1128
1129
  if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
@@ -1472,7 +1473,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
1472
1473
  const scopeId2 = hostElm["s-sc"];
1473
1474
  if (node.nodeType === 1 /* ElementNode */) {
1474
1475
  childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
1475
- if (childNodeType) {
1476
+ if (childNodeType && node !== hostElm) {
1476
1477
  childIdSplt = childNodeType.split(".");
1477
1478
  if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
1478
1479
  childVNode = createSimpleVNode({
@@ -6412,7 +6413,8 @@ const accordionMdCss = () => `:host{display:block;position:relative;width:100%;b
6412
6413
  */
6413
6414
  class Accordion {
6414
6415
  constructor(hostRef) {
6415
- registerInstance(this, hostRef);
6416
+ if (new.target === Accordion)
6417
+ registerInstance(this, hostRef);
6416
6418
  this.accordionGroupUpdateHandler = () => {
6417
6419
  /**
6418
6420
  * Determine if this update will cause an actual state change.
@@ -6846,7 +6848,8 @@ const accordionGroupMdCss = () => `:host{display:block}:host(.accordion-group-ex
6846
6848
  */
6847
6849
  class AccordionGroup {
6848
6850
  constructor(hostRef) {
6849
- registerInstance(this, hostRef);
6851
+ if (new.target === AccordionGroup)
6852
+ registerInstance(this, hostRef);
6850
6853
  this.ionChange = createEvent(this, "ionChange", 7);
6851
6854
  this.ionValueChange = createEvent(this, "ionValueChange", 7);
6852
6855
  /**
@@ -10609,7 +10612,8 @@ const actionSheetMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
10609
10612
  */
10610
10613
  class ActionSheet {
10611
10614
  constructor(hostRef) {
10612
- registerInstance(this, hostRef);
10615
+ if (new.target === ActionSheet)
10616
+ registerInstance(this, hostRef);
10613
10617
  this.didPresent = createEvent(this, "ionActionSheetDidPresent", 7);
10614
10618
  this.willPresent = createEvent(this, "ionActionSheetWillPresent", 7);
10615
10619
  this.willDismiss = createEvent(this, "ionActionSheetWillDismiss", 7);
@@ -11231,7 +11235,8 @@ const alertMdCss = () => `.action-sheet-button-label-has-rich-content.sc-ion-ale
11231
11235
  */
11232
11236
  class Alert {
11233
11237
  constructor(hostRef) {
11234
- registerInstance(this, hostRef);
11238
+ if (new.target === Alert)
11239
+ registerInstance(this, hostRef);
11235
11240
  this.didPresent = createEvent(this, "ionAlertDidPresent", 7);
11236
11241
  this.willPresent = createEvent(this, "ionAlertWillPresent", 7);
11237
11242
  this.willDismiss = createEvent(this, "ionAlertWillDismiss", 7);
@@ -11861,7 +11866,8 @@ const appCss = () => `html.plt-mobile ion-app{-webkit-user-select:none;-moz-user
11861
11866
 
11862
11867
  class App {
11863
11868
  constructor(hostRef) {
11864
- registerInstance(this, hostRef);
11869
+ if (new.target === App)
11870
+ registerInstance(this, hostRef);
11865
11871
  }
11866
11872
  componentDidLoad() {
11867
11873
  }
@@ -11922,7 +11928,8 @@ const avatarMdCss = () => `:host{border-radius:var(--border-radius);display:bloc
11922
11928
 
11923
11929
  class Avatar {
11924
11930
  constructor(hostRef) {
11925
- registerInstance(this, hostRef);
11931
+ if (new.target === Avatar)
11932
+ registerInstance(this, hostRef);
11926
11933
  }
11927
11934
  render() {
11928
11935
  return (hAsync(Host, { key: '998217066084f966bf5d356fed85bcbd451f675a', class: getIonMode$1(this) }, hAsync("slot", { key: '1a6f7c9d4dc6a875f86b5b3cda6d59cb39587f22' })));
@@ -11941,6 +11948,215 @@ class Avatar {
11941
11948
  }; }
11942
11949
  }
11943
11950
 
11951
+ /**
11952
+ * Copies a set of attributes off the host element so they can be applied to an element
11953
+ * inside the shadow root, then keeps that copy in sync as the host attributes change.
11954
+ * Using `inheritAttributes` alone copies once at load, so anything written to the host
11955
+ * afterwards never reaches the element the assistive technology reads.
11956
+ *
11957
+ * Create the controller in `componentWillLoad`. It takes the initial copy and starts
11958
+ * watching right away, so `init()` is only needed to resume after a move.
11959
+ *
11960
+ * Two things to know before adopting it. Unless `moveFromHost` says otherwise, only the
11961
+ * initial copy removes the attributes from the host, so a value written after load sits
11962
+ * on the host as well as on the element it is applied to, which matters if the host has
11963
+ * a role of its own. And an attribute moved off the host can never be removed, only
11964
+ * overwritten, since removing it from the host doesn't fire a mutation.
11965
+ * An empty string works for `aria-label` and friends, but a token-valued attribute
11966
+ * has to be set to its default instead, so `aria-pressed="false"` rather than empty.
11967
+ *
11968
+ * @internal
11969
+ * @param el The host element to copy from and watch.
11970
+ * @param attributes The attributes to copy and watch.
11971
+ * @param onChange Called after `attributes` changes, so the component can re-render.
11972
+ * @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
11973
+ * attributes the component renders on its own `<Host>`, since a later change to one of
11974
+ * those is the component's own write, and for attributes that would put a second node in
11975
+ * the accessibility tree if the host kept a copy alongside the one we apply.
11976
+ * @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
11977
+ * a value moves off the host. A rejected value stays on the host and is left out of
11978
+ * `attributes`. It can read component state, as long as the component calls `refresh()`
11979
+ * when that state changes.
11980
+ */
11981
+ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
11982
+ let inherited = inheritAttributes$1(el, attributes);
11983
+ let observer;
11984
+ const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
11985
+ const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
11986
+ /**
11987
+ * The names still on the host, which is everything written after load. The initial
11988
+ * copy removes what it captures, so a missing attribute only counts as a removal
11989
+ * when its name is in here.
11990
+ */
11991
+ const hostWritten = new Set();
11992
+ const setPresence = (name, value) => {
11993
+ if (value === null) {
11994
+ hostWritten.delete(name);
11995
+ }
11996
+ else {
11997
+ hostWritten.add(name);
11998
+ }
11999
+ };
12000
+ const moveOffHost = (changed) => {
12001
+ if (moveFromHost === undefined) {
12002
+ return;
12003
+ }
12004
+ for (const [name, value] of Object.entries(changed)) {
12005
+ if (value != null && !staysOnHost(name, value)) {
12006
+ el.removeAttribute(name);
12007
+ // Without this, the missing attribute would read as a developer removal later.
12008
+ hostWritten.delete(name);
12009
+ }
12010
+ }
12011
+ };
12012
+ // The initial copy took everything off the host, so put back what has to stay there.
12013
+ for (const [name, value] of Object.entries(inherited)) {
12014
+ if (staysOnHost(name, value)) {
12015
+ el.setAttribute(name, value);
12016
+ hostWritten.add(name);
12017
+ }
12018
+ }
12019
+ /**
12020
+ * Nothing is watching while the host is out of the tree, since `disconnectedCallback`
12021
+ * calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
12022
+ * the host has to be re-read on the way back in.
12023
+ */
12024
+ const readMissedChanges = () => {
12025
+ const changed = {};
12026
+ for (const name of watchedAttributes) {
12027
+ const value = el.getAttribute(name);
12028
+ const wasOnHost = hostWritten.has(name);
12029
+ setPresence(name, value);
12030
+ /**
12031
+ * An attribute that was never written to the host is missing because the initial
12032
+ * copy took it, not because the developer cleared it.
12033
+ */
12034
+ if ((value === null && !wasOnHost) || value === inherited[name]) {
12035
+ continue;
12036
+ }
12037
+ changed[name] = value;
12038
+ }
12039
+ moveOffHost(changed);
12040
+ if (Object.keys(changed).length > 0) {
12041
+ inherited = { ...inherited, ...changed };
12042
+ onChange();
12043
+ }
12044
+ };
12045
+ const handleRecords = (mutations) => {
12046
+ const changed = {};
12047
+ for (const mutation of mutations) {
12048
+ const name = mutation.attributeName;
12049
+ // A removed attribute reads back as null, which clears it from the element the
12050
+ // values are spread onto.
12051
+ const value = el.getAttribute(name);
12052
+ setPresence(name, value);
12053
+ changed[name] = value;
12054
+ }
12055
+ moveOffHost(changed);
12056
+ // Drop the removals `moveOffHost` just queued, or they'd read back as the developer
12057
+ // clearing the attribute.
12058
+ observer?.takeRecords();
12059
+ inherited = { ...inherited, ...changed };
12060
+ onChange();
12061
+ };
12062
+ const init = () => {
12063
+ // There is no MutationObserver in SSR or the hydrate build.
12064
+ if (observer !== undefined || watchedAttributes.length === 0 || win$1 === undefined || !('MutationObserver' in win$1)) {
12065
+ return;
12066
+ }
12067
+ readMissedChanges();
12068
+ observer = new MutationObserver(handleRecords);
12069
+ observer.observe(el, { attributeFilter: watchedAttributes });
12070
+ };
12071
+ const destroy = () => {
12072
+ observer?.disconnect();
12073
+ observer = undefined;
12074
+ };
12075
+ const refresh = () => {
12076
+ if (moveFromHost === undefined) {
12077
+ return;
12078
+ }
12079
+ // A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
12080
+ // first, or the loop below would act on the old value and drop the new one.
12081
+ if (observer !== undefined) {
12082
+ const pending = observer.takeRecords();
12083
+ if (pending.length > 0) {
12084
+ handleRecords(pending);
12085
+ }
12086
+ }
12087
+ else {
12088
+ readMissedChanges();
12089
+ }
12090
+ for (const [name, value] of Object.entries(inherited)) {
12091
+ if (value == null) {
12092
+ continue;
12093
+ }
12094
+ const onHost = el.hasAttribute(name);
12095
+ if (staysOnHost(name, value) && !onHost) {
12096
+ el.setAttribute(name, value);
12097
+ hostWritten.add(name);
12098
+ }
12099
+ else if (!staysOnHost(name, value) && onHost) {
12100
+ el.removeAttribute(name);
12101
+ hostWritten.delete(name);
12102
+ }
12103
+ }
12104
+ // Drop our own writes, or they'd read back as the developer's.
12105
+ observer?.takeRecords();
12106
+ };
12107
+ /**
12108
+ * Has to run after the initial copy, because that copy removes the attributes from the
12109
+ * host and an observer armed any earlier would read the removal as a developer clearing
12110
+ * them.
12111
+ */
12112
+ init();
12113
+ return {
12114
+ get attributes() {
12115
+ if (moveFromHost === undefined) {
12116
+ return inherited;
12117
+ }
12118
+ const moved = {};
12119
+ for (const [name, value] of Object.entries(inherited)) {
12120
+ if (!staysOnHost(name, value)) {
12121
+ moved[name] = value;
12122
+ }
12123
+ }
12124
+ return moved;
12125
+ },
12126
+ init,
12127
+ destroy,
12128
+ refresh,
12129
+ };
12130
+ };
12131
+ /**
12132
+ * The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
12133
+ * watches every ARIA attribute plus `role`.
12134
+ *
12135
+ * @internal
12136
+ * @param el The host element to copy from and watch.
12137
+ * @param onChange Called after the attributes change, so the component can re-render.
12138
+ * @param hostOwnedAttributes Attributes copied at load but not watched. See
12139
+ * `createAttributeController`.
12140
+ */
12141
+ const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
12142
+ return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
12143
+ };
12144
+ /**
12145
+ * Moves `tabindex` from the host to the native element in the shadow root, including later
12146
+ * writes, since a host with a `tabindex` is an extra tab stop with no name. A negative
12147
+ * `tabindex` stays on the host, where it already skips the shadow root and the focus
12148
+ * utilities expect to find it.
12149
+ *
12150
+ * @internal
12151
+ * @param el The host element to copy from and watch.
12152
+ * @param onChange Called after `tabindex` changes, so the component can re-render.
12153
+ * @param hasNativeElement Whether the component renders a native element to move `tabindex`
12154
+ * to. Call `refresh()` when the answer changes.
12155
+ */
12156
+ const createTabindexController = (el, onChange, hasNativeElement = () => true) => {
12157
+ return createAttributeController(el, ['tabindex'], onChange, [], (_, value) => hasNativeElement() && parseInt(value, 10) >= 0);
12158
+ };
12159
+
11944
12160
  const backButtonIosCss = () => `:host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}`;
11945
12161
 
11946
12162
  const backButtonMdCss = () => `:host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}`;
@@ -11954,7 +12170,8 @@ const backButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
11954
12170
  */
11955
12171
  class BackButton {
11956
12172
  constructor(hostRef) {
11957
- registerInstance(this, hostRef);
12173
+ if (new.target === BackButton)
12174
+ registerInstance(this, hostRef);
11958
12175
  this.inheritedAttributes = {};
11959
12176
  /**
11960
12177
  * If `true`, the user cannot interact with the button.
@@ -11975,10 +12192,17 @@ class BackButton {
11975
12192
  }
11976
12193
  componentWillLoad() {
11977
12194
  this.inheritedAttributes = inheritAriaAttributes(this.el);
12195
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
11978
12196
  if (this.defaultHref === undefined) {
11979
12197
  this.defaultHref = config.get('backButtonDefaultHref');
11980
12198
  }
11981
12199
  }
12200
+ connectedCallback() {
12201
+ this.tabindexController?.init();
12202
+ }
12203
+ disconnectedCallback() {
12204
+ this.tabindexController?.destroy();
12205
+ }
11982
12206
  get backButtonIcon() {
11983
12207
  const icon = this.icon;
11984
12208
  if (icon != null) {
@@ -12012,7 +12236,8 @@ class BackButton {
12012
12236
  const showBackButton = defaultHref !== undefined;
12013
12237
  const mode = getIonMode$1(this);
12014
12238
  const ariaLabel = inheritedAttributes['aria-label'] || backButtonText || 'back';
12015
- return (hAsync(Host, { key: '5466624a10f1ab56f5469e6dc07080303880f2fe', onClick: this.onClick, class: createColorClasses$1(color, {
12239
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
12240
+ return (hAsync(Host, { key: '0b7d30b4421e69c01041819a242bb4d57ee08cdd', onClick: this.onClick, class: createColorClasses$1(color, {
12016
12241
  [mode]: true,
12017
12242
  button: true, // ion-buttons target .button
12018
12243
  'back-button-disabled': disabled,
@@ -12022,7 +12247,7 @@ class BackButton {
12022
12247
  'ion-activatable': true,
12023
12248
  'ion-focusable': true,
12024
12249
  'show-back-button': showBackButton,
12025
- }) }, hAsync("button", { key: '63bc75ef0ad7cc9fb79e58217a3314b20acd73e3', type: type, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }, hAsync("span", { key: '5d3eacbd11af2245c6e1151cab446a0d96559ad8', class: "button-inner" }, backButtonIcon && (hAsync("ion-icon", { key: '6439af0ae463764174e7d3207f02267811df666d', part: "icon", icon: backButtonIcon, "aria-hidden": "true", lazy: false, "flip-rtl": icon === undefined })), backButtonText && (hAsync("span", { key: '8ee89fb18dfdb5b75948a8b197ff4cdbc008742f', part: "text", "aria-hidden": "true", class: "button-text" }, backButtonText))), mode === 'md' && hAsync("ion-ripple-effect", { key: '63803a884998bc73bea5afe0b2a0a14e3fa4d6bf', type: this.rippleType }))));
12250
+ }) }, hAsync("button", { key: '20bf90c1b19af213eb7db6fb105423b1d5552cc7', type: type, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, hAsync("span", { key: '1472b6bac0ae85a040f8de0a505cc6479e96b672', class: "button-inner" }, backButtonIcon && (hAsync("ion-icon", { key: '223376e1501ca203b9f6d004707dd1d18b5fc076', part: "icon", icon: backButtonIcon, "aria-hidden": "true", lazy: false, "flip-rtl": icon === undefined })), backButtonText && (hAsync("span", { key: '0e94d0b6c930193ed3762946731cf9f4ae626b72', part: "text", "aria-hidden": "true", class: "button-text" }, backButtonText))), mode === 'md' && hAsync("ion-ripple-effect", { key: '7ef5b94fbbca517f333d1ae55198b373d843fec4', type: this.rippleType }))));
12026
12251
  }
12027
12252
  get el() { return getElement(this); }
12028
12253
  static get style() { return {
@@ -12053,7 +12278,8 @@ const backdropMdCss = () => `:host{left:0;right:0;top:0;bottom:0;display:block;p
12053
12278
 
12054
12279
  class Backdrop {
12055
12280
  constructor(hostRef) {
12056
- registerInstance(this, hostRef);
12281
+ if (new.target === Backdrop)
12282
+ registerInstance(this, hostRef);
12057
12283
  this.ionBackdropTap = createEvent(this, "ionBackdropTap", 7);
12058
12284
  /**
12059
12285
  * If `true`, the backdrop will be visible.
@@ -12119,7 +12345,8 @@ const badgeMdCss = () => `:host{--background:var(--ion-color-primary, #0054e9);-
12119
12345
  */
12120
12346
  class Badge {
12121
12347
  constructor(hostRef) {
12122
- registerInstance(this, hostRef);
12348
+ if (new.target === Badge)
12349
+ registerInstance(this, hostRef);
12123
12350
  }
12124
12351
  render() {
12125
12352
  const mode = getIonMode$1(this);
@@ -12156,7 +12383,8 @@ const breadcrumbMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex:0
12156
12383
  */
12157
12384
  class Breadcrumb {
12158
12385
  constructor(hostRef) {
12159
- registerInstance(this, hostRef);
12386
+ if (new.target === Breadcrumb)
12387
+ registerInstance(this, hostRef);
12160
12388
  this.ionFocus = createEvent(this, "ionFocus", 7);
12161
12389
  this.ionBlur = createEvent(this, "ionBlur", 7);
12162
12390
  this.collapsedClick = createEvent(this, "collapsedClick", 7);
@@ -12190,6 +12418,21 @@ class Breadcrumb {
12190
12418
  }
12191
12419
  componentWillLoad() {
12192
12420
  this.inheritedAttributes = inheritAriaAttributes(this.el);
12421
+ // A breadcrumb without an `href` has no native link, so `tabindex` stays on the host.
12422
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
12423
+ }
12424
+ /**
12425
+ * Adding or removing `href` adds or removes the native link, so `tabindex` has to move
12426
+ * with it.
12427
+ */
12428
+ hrefChanged() {
12429
+ this.tabindexController?.refresh();
12430
+ }
12431
+ connectedCallback() {
12432
+ this.tabindexController?.init();
12433
+ }
12434
+ disconnectedCallback() {
12435
+ this.tabindexController?.destroy();
12193
12436
  }
12194
12437
  isClickable() {
12195
12438
  return this.href !== undefined;
@@ -12197,6 +12440,7 @@ class Breadcrumb {
12197
12440
  render() {
12198
12441
  const { color, active, collapsed, disabled, download, el, inheritedAttributes, last, routerAnimation, routerDirection, separator, showCollapsedIndicator, target, } = this;
12199
12442
  const clickable = this.isClickable();
12443
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
12200
12444
  const TagType = this.href === undefined ? 'span' : 'a';
12201
12445
  // Links can still be tabbed to when set to disabled if they have an href
12202
12446
  // in order to truly disable them we can keep it as an anchor but remove the href
@@ -12213,7 +12457,7 @@ class Breadcrumb {
12213
12457
  // to show the separator as long as it isn't also the last breadcrumb
12214
12458
  // otherwise if not collapsed use the value in separator
12215
12459
  const showSeparator = last ? false : collapsed ? (showCollapsedIndicator && !last ? true : false) : separator;
12216
- return (hAsync(Host, { key: '32ca61c83721dff52b5e97171ed449dce3584a55', onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation), "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12460
+ return (hAsync(Host, { key: '6f50e8b42045b81771ffd123a3cb708c603c1541', onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation), "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12217
12461
  [mode]: true,
12218
12462
  'breadcrumb-active': active,
12219
12463
  'breadcrumb-collapsed': collapsed,
@@ -12223,17 +12467,22 @@ class Breadcrumb {
12223
12467
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
12224
12468
  'ion-activatable': clickable,
12225
12469
  'ion-focusable': clickable,
12226
- }) }, hAsync(TagType, { key: '479feb845f4a6d8009d5422b33eb423730b9722b', ...attrs, class: "breadcrumb-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("slot", { key: '3c5dcaeb0d258235d1b7707868026ff1d1404099', name: "start" }), hAsync("slot", { key: 'f1cfb934443cd97dc220882c5e3596ea879d66cf' }), hAsync("slot", { key: '539710121b5b1f3ee8d4c24a9651b67c2ae08add', name: "end" })), showCollapsedIndicator && (hAsync("button", { key: 'ed53a95ccd89022c8b7bee0658a221ec62a5c73b', part: "collapsed-indicator", "aria-label": "Show more breadcrumbs", onClick: () => this.collapsedIndicatorClick(), ref: (collapsedEl) => (this.collapsedRef = collapsedEl), class: {
12470
+ }) }, hAsync(TagType, { key: '4ac14d323e1d35e987862aa9b875d30be2310a71', ...attrs, class: "breadcrumb-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes, ...tabindexAttributes }, hAsync("slot", { key: 'a3598ed5bc506acc4f5bef525cd2404b00228620', name: "start" }), hAsync("slot", { key: '0696a0ffd1513c1d93deb269fdf600e9ef434f17' }), hAsync("slot", { key: 'bf315bd49788604c27b8ba354796250b56f2fcb0', name: "end" })), showCollapsedIndicator && (hAsync("button", { key: 'b130482d7ed16e3c452fa779b0696d1f8687e379', part: "collapsed-indicator", "aria-label": "Show more breadcrumbs", onClick: () => this.collapsedIndicatorClick(), ref: (collapsedEl) => (this.collapsedRef = collapsedEl), class: {
12227
12471
  'breadcrumbs-collapsed-indicator': true,
12228
- } }, hAsync("ion-icon", { key: 'a849e1142a86f06f207cf11662fa2a560ab7fc6a', "aria-hidden": "true", icon: ellipsisHorizontal, lazy: false }))), showSeparator && (
12472
+ } }, hAsync("ion-icon", { key: 'd5094d69a6477b390afaa230f76011bef97f386f', "aria-hidden": "true", icon: ellipsisHorizontal, lazy: false }))), showSeparator && (
12229
12473
  /**
12230
12474
  * Separators should not be announced by narrators.
12231
12475
  * We add aria-hidden on the span so that this applies
12232
12476
  * to any custom separators too.
12233
12477
  */
12234
- hAsync("span", { key: 'fc3c741cb01fafef8b26046c7ee5b190efc69a7c', class: "breadcrumb-separator", part: "separator", "aria-hidden": "true" }, hAsync("slot", { key: '4871932ae1dae520767e0713e7cee2d11b0bba6d', name: "separator" }, mode === 'ios' ? (hAsync("ion-icon", { icon: chevronForwardOutline, lazy: false, "flip-rtl": true })) : (hAsync("span", null, "/")))))));
12478
+ hAsync("span", { key: '98421acb32aa73507ea1ab078555c20f4bdef6cd', class: "breadcrumb-separator", part: "separator", "aria-hidden": "true" }, hAsync("slot", { key: '8b37779f2003554631a923a8d7ce2436238d1b05', name: "separator" }, mode === 'ios' ? (hAsync("ion-icon", { icon: chevronForwardOutline, lazy: false, "flip-rtl": true })) : (hAsync("span", null, "/")))))));
12235
12479
  }
12236
12480
  get el() { return getElement(this); }
12481
+ static get watchers() { return {
12482
+ "href": [{
12483
+ "hrefChanged": 0
12484
+ }]
12485
+ }; }
12237
12486
  static get style() { return {
12238
12487
  ios: breadcrumbIosCss(),
12239
12488
  md: breadcrumbMdCss()
@@ -12272,7 +12521,8 @@ const breadcrumbsMdCss = () => `:host{-moz-osx-font-smoothing:grayscale;-webkit-
12272
12521
  */
12273
12522
  class Breadcrumbs {
12274
12523
  constructor(hostRef) {
12275
- registerInstance(this, hostRef);
12524
+ if (new.target === Breadcrumbs)
12525
+ registerInstance(this, hostRef);
12276
12526
  this.ionCollapsedClick = createEvent(this, "ionCollapsedClick", 7);
12277
12527
  /**
12278
12528
  * The number of breadcrumbs to show before the collapsed indicator.
@@ -12415,128 +12665,6 @@ class Breadcrumbs {
12415
12665
  }; }
12416
12666
  }
12417
12667
 
12418
- /**
12419
- * Copies a set of attributes off the host element so they can be applied to an element
12420
- * inside the shadow root, then keeps that copy in sync as the host attributes change.
12421
- * Using `inheritAttributes` alone copies once at load, so anything written to the host
12422
- * afterwards never reaches the element the assistive technology reads.
12423
- *
12424
- * Create the controller in `componentWillLoad`. It takes the initial copy and starts
12425
- * watching right away, so `init()` is only needed to resume after a move.
12426
- *
12427
- * Two things to know before adopting it. Only the initial copy removes the attributes
12428
- * from the host, so a value written after load sits on the host as well as on the
12429
- * element it is applied to, which matters if the host has a role of its own. And an
12430
- * attribute from the initial markup can never be removed, only overwritten, since the
12431
- * copy already took it off the host and a `removeAttribute` there fires no mutation.
12432
- * An empty string works for `aria-label` and friends, but a token-valued attribute
12433
- * has to be set to its default instead, so `aria-pressed="false"` rather than empty.
12434
- *
12435
- * @internal
12436
- * @param el The host element to copy from and watch.
12437
- * @param attributes The attributes to copy and watch.
12438
- * @param onChange Called after `attributes` changes, so the component can re-render.
12439
- * @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
12440
- * attributes the component renders on its own `<Host>`, since a later change to one of
12441
- * those is the component's own write, and for attributes that would put a second node in
12442
- * the accessibility tree if the host kept a copy alongside the one we apply.
12443
- */
12444
- const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = []) => {
12445
- let inherited = inheritAttributes$1(el, attributes);
12446
- let observer;
12447
- const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
12448
- /**
12449
- * The names still on the host, which is everything written after load. The initial
12450
- * copy removes what it captures, so a missing attribute only counts as a removal
12451
- * when its name is in here.
12452
- */
12453
- const hostWritten = new Set();
12454
- const setPresence = (name, value) => {
12455
- if (value === null) {
12456
- hostWritten.delete(name);
12457
- }
12458
- else {
12459
- hostWritten.add(name);
12460
- }
12461
- };
12462
- /**
12463
- * Nothing is watching while the host is out of the tree, since `disconnectedCallback`
12464
- * calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
12465
- * the host has to be re-read on the way back in.
12466
- */
12467
- const readMissedChanges = () => {
12468
- const changed = {};
12469
- for (const name of watchedAttributes) {
12470
- const value = el.getAttribute(name);
12471
- const wasOnHost = hostWritten.has(name);
12472
- setPresence(name, value);
12473
- /**
12474
- * An attribute that was never written to the host is missing because the initial
12475
- * copy took it, not because the developer cleared it.
12476
- */
12477
- if ((value === null && !wasOnHost) || value === inherited[name]) {
12478
- continue;
12479
- }
12480
- changed[name] = value;
12481
- }
12482
- if (Object.keys(changed).length > 0) {
12483
- inherited = { ...inherited, ...changed };
12484
- onChange();
12485
- }
12486
- };
12487
- const init = () => {
12488
- // There is no MutationObserver in SSR or the hydrate build.
12489
- if (observer !== undefined || watchedAttributes.length === 0 || win$1 === undefined || !('MutationObserver' in win$1)) {
12490
- return;
12491
- }
12492
- readMissedChanges();
12493
- observer = new MutationObserver((mutations) => {
12494
- const changed = {};
12495
- for (const mutation of mutations) {
12496
- const name = mutation.attributeName;
12497
- // A removed attribute reads back as null, which clears it from the element the
12498
- // values are spread onto.
12499
- const value = el.getAttribute(name);
12500
- setPresence(name, value);
12501
- changed[name] = value;
12502
- }
12503
- inherited = { ...inherited, ...changed };
12504
- onChange();
12505
- });
12506
- observer.observe(el, { attributeFilter: watchedAttributes });
12507
- };
12508
- const destroy = () => {
12509
- observer?.disconnect();
12510
- observer = undefined;
12511
- };
12512
- /**
12513
- * Has to run after the initial copy, because that copy removes the attributes from the
12514
- * host and an observer armed any earlier would read the removal as a developer clearing
12515
- * them.
12516
- */
12517
- init();
12518
- return {
12519
- get attributes() {
12520
- return inherited;
12521
- },
12522
- init,
12523
- destroy,
12524
- };
12525
- };
12526
- /**
12527
- * The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
12528
- * watches every ARIA attribute plus `role`.
12529
- *
12530
- * @internal
12531
- * @param el The host element to copy from and watch.
12532
- * @param onChange Called after the attributes change, so the component can re-render.
12533
- * @param hostOwnedAttributes Attributes copied at load but not watched. See
12534
- * `createAttributeController`.
12535
- */
12536
- const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
12537
- return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
12538
- };
12539
-
12540
12668
  const buttonIosCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #0054e9);--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.125em, 60px);min-height:clamp(30px, 2.125em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 1.125em, 43.02px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(12.1394px, 1.308125em, 40.1856px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 0.9em, 43.056px)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}`;
12541
12669
 
12542
12670
  const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1), background-color 15ms linear, color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-strong){font-weight:bold}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.86em, 60px);min-height:clamp(30px, 2.86em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.104px, 1.6em, 43.008px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(13.002px, 1.23125em, 40.385px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.008px, 1.4em, 43.008px)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-background, var(--color));color:var(--ion-toolbar-color, var(--background), var(--ion-color-primary-contrast, #fff))}`;
@@ -12553,7 +12681,8 @@ const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;-
12553
12681
  */
12554
12682
  class Button {
12555
12683
  constructor(hostRef) {
12556
- registerInstance(this, hostRef);
12684
+ if (new.target === Button)
12685
+ registerInstance(this, hostRef);
12557
12686
  this.ionFocus = createEvent(this, "ionFocus", 7);
12558
12687
  this.ionBlur = createEvent(this, "ionBlur", 7);
12559
12688
  this.inItem = false;
@@ -12665,12 +12794,15 @@ class Button {
12665
12794
  * two elements in the accessibility tree.
12666
12795
  */
12667
12796
  this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled', 'role']);
12797
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
12668
12798
  }
12669
12799
  connectedCallback() {
12670
12800
  this.ariaController?.init();
12801
+ this.tabindexController?.init();
12671
12802
  }
12672
12803
  disconnectedCallback() {
12673
12804
  this.ariaController?.destroy();
12805
+ this.tabindexController?.destroy();
12674
12806
  }
12675
12807
  get hasIconOnly() {
12676
12808
  return !!this.el.querySelector('[slot="icon-only"]');
@@ -12746,7 +12878,10 @@ class Button {
12746
12878
  render() {
12747
12879
  const mode = getIonMode$1(this);
12748
12880
  const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong } = this;
12749
- const inheritedAttributes = this.ariaController?.attributes ?? {};
12881
+ const inheritedAttributes = {
12882
+ ...this.ariaController?.attributes,
12883
+ ...this.tabindexController?.attributes,
12884
+ };
12750
12885
  const finalSize = size === undefined && this.inItem ? 'small' : size;
12751
12886
  const TagType = href === undefined ? 'button' : 'a';
12752
12887
  const attrs = TagType === 'button'
@@ -12771,7 +12906,7 @@ class Button {
12771
12906
  {
12772
12907
  type !== 'button' && this.renderHiddenButton();
12773
12908
  }
12774
- return (hAsync(Host, { key: 'fd42d1a5836c148cddd6c474c130ce4bb36286ea', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12909
+ return (hAsync(Host, { key: '9676cd8eb88ff0ff0582eeaa8b87ed4525a4dbee', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12775
12910
  [mode]: true,
12776
12911
  [buttonType]: true,
12777
12912
  [`${buttonType}-${expand}`]: expand !== undefined,
@@ -12786,7 +12921,7 @@ class Button {
12786
12921
  'button-disabled': disabled,
12787
12922
  'ion-activatable': true,
12788
12923
  'ion-focusable': true,
12789
- }) }, hAsync(TagType, { key: '97dbf689ea912aed38182dbe0097a2bf5b768816', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("span", { key: '0f1ff4c667e95a8e3dc787fee43fe529b95477b7', class: "button-inner" }, hAsync("slot", { key: 'fc1e8b8080d02828c392e9edd6a70e0255435f82', name: "icon-only", onSlotchange: this.slotChanged }), hAsync("slot", { key: 'c1ece4c0d935f4d023d38fee4cf529dd4123d487', name: "start" }), hAsync("slot", { key: '970db0ee1e3633bc9cbff52eca446e4891ff6851' }), hAsync("slot", { key: 'ef8d7d894f01dbe881f381b985620c2a482e55fe', name: "end" })), mode === 'md' && hAsync("ion-ripple-effect", { key: 'fea5e49a54b0efd07b1bd35d9fd5d2d862a2bac1', type: this.rippleType }))));
12924
+ }) }, hAsync(TagType, { key: '42609eab7e854c1e1ddf678c7dc83c7ec81e560e', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("span", { key: 'a212acc720c9312b3ac35345333df7a7175ace92', class: "button-inner" }, hAsync("slot", { key: '05986b525272c768a37c274748f15aeb2fce313e', name: "icon-only", onSlotchange: this.slotChanged }), hAsync("slot", { key: '4b6951f7b201c19714e97e2075f517f88642a169', name: "start" }), hAsync("slot", { key: 'fa2d5ca4551a14ebfafe5399683e239566571398' }), hAsync("slot", { key: 'ca8edc225165824f535177b99bb39adc1fea5fd2', name: "end" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '01c38cc6c230bb35861bbcc1472f4a2f18522e93', type: this.rippleType }))));
12790
12925
  }
12791
12926
  get el() { return getElement(this); }
12792
12927
  static get watchers() { return {
@@ -12832,7 +12967,8 @@ const buttonsMdCss = () => `.sc-ion-buttons-md-h{display:-ms-flexbox;display:fle
12832
12967
 
12833
12968
  class Buttons {
12834
12969
  constructor(hostRef) {
12835
- registerInstance(this, hostRef);
12970
+ if (new.target === Buttons)
12971
+ registerInstance(this, hostRef);
12836
12972
  /**
12837
12973
  * If true, buttons will disappear when its
12838
12974
  * parent toolbar has fully collapsed if the toolbar
@@ -12881,7 +13017,8 @@ const cardMdCss = () => `:host{--ion-safe-area-left:0px;--ion-safe-area-right:0p
12881
13017
  */
12882
13018
  class Card {
12883
13019
  constructor(hostRef) {
12884
- registerInstance(this, hostRef);
13020
+ if (new.target === Card)
13021
+ registerInstance(this, hostRef);
12885
13022
  /**
12886
13023
  * If `true`, a button tag will be rendered and the card will be tappable.
12887
13024
  */
@@ -12907,12 +13044,23 @@ class Card {
12907
13044
  * the card host renders no role of its own, so nothing reads the leftover copy.
12908
13045
  */
12909
13046
  this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
13047
+ // A card that isn't clickable has no native button or link, so `tabindex` stays on the host.
13048
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
13049
+ }
13050
+ /**
13051
+ * Changing `href` or `button` adds or removes the native element, so `tabindex` has to
13052
+ * move with it.
13053
+ */
13054
+ clickableChanged() {
13055
+ this.tabindexController?.refresh();
12910
13056
  }
12911
13057
  connectedCallback() {
12912
13058
  this.ariaController?.init();
13059
+ this.tabindexController?.init();
12913
13060
  }
12914
13061
  disconnectedCallback() {
12915
13062
  this.ariaController?.destroy();
13063
+ this.tabindexController?.destroy();
12916
13064
  }
12917
13065
  isClickable() {
12918
13066
  return this.href !== undefined || this.button;
@@ -12924,6 +13072,7 @@ class Card {
12924
13072
  }
12925
13073
  const { href, routerAnimation, routerDirection } = this;
12926
13074
  const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
13075
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
12927
13076
  const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
12928
13077
  const attrs = TagType === 'button'
12929
13078
  ? { type: this.type }
@@ -12933,17 +13082,25 @@ class Card {
12933
13082
  rel: this.rel,
12934
13083
  target: this.target,
12935
13084
  };
12936
- return (hAsync(TagType, { ...attrs, ...inheritedAriaAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, hAsync("slot", null), clickable && mode === 'md' && hAsync("ion-ripple-effect", null)));
13085
+ return (hAsync(TagType, { ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, hAsync("slot", null), clickable && mode === 'md' && hAsync("ion-ripple-effect", null)));
12937
13086
  }
12938
13087
  render() {
12939
13088
  const mode = getIonMode$1(this);
12940
- return (hAsync(Host, { key: '104412c26f53cce36432c3bb4d9e38bbe00c5816', class: createColorClasses$1(this.color, {
13089
+ return (hAsync(Host, { key: 'a50cd4e11f563acefeadc4c8f67536276593384a', class: createColorClasses$1(this.color, {
12941
13090
  [mode]: true,
12942
13091
  'card-disabled': this.disabled,
12943
13092
  'ion-activatable': this.isClickable(),
12944
13093
  }) }, this.renderCard(mode)));
12945
13094
  }
12946
13095
  get el() { return getElement(this); }
13096
+ static get watchers() { return {
13097
+ "href": [{
13098
+ "clickableChanged": 0
13099
+ }],
13100
+ "button": [{
13101
+ "clickableChanged": 0
13102
+ }]
13103
+ }; }
12947
13104
  static get style() { return {
12948
13105
  ios: cardIosCss(),
12949
13106
  md: cardMdCss()
@@ -12978,7 +13135,8 @@ const cardContentMdCss = () => `ion-card-content{display:block;position:relative
12978
13135
  */
12979
13136
  class CardContent {
12980
13137
  constructor(hostRef) {
12981
- registerInstance(this, hostRef);
13138
+ if (new.target === CardContent)
13139
+ registerInstance(this, hostRef);
12982
13140
  }
12983
13141
  render() {
12984
13142
  const mode = getIonMode$1(this);
@@ -13011,7 +13169,8 @@ const cardHeaderMdCss = () => `:host{--background:transparent;--color:inherit;di
13011
13169
  */
13012
13170
  class CardHeader {
13013
13171
  constructor(hostRef) {
13014
- registerInstance(this, hostRef);
13172
+ if (new.target === CardHeader)
13173
+ registerInstance(this, hostRef);
13015
13174
  /**
13016
13175
  * If `true`, the card header will be translucent.
13017
13176
  * Only applies when the mode is `"ios"` and the device supports
@@ -13053,7 +13212,8 @@ const cardSubtitleMdCss = () => `:host{display:block;position:relative;color:var
13053
13212
  */
13054
13213
  class CardSubtitle {
13055
13214
  constructor(hostRef) {
13056
- registerInstance(this, hostRef);
13215
+ if (new.target === CardSubtitle)
13216
+ registerInstance(this, hostRef);
13057
13217
  }
13058
13218
  render() {
13059
13219
  const mode = getIonMode$1(this);
@@ -13087,7 +13247,8 @@ const cardTitleMdCss = () => `:host{display:block;position:relative;color:var(--
13087
13247
  */
13088
13248
  class CardTitle {
13089
13249
  constructor(hostRef) {
13090
- registerInstance(this, hostRef);
13250
+ if (new.target === CardTitle)
13251
+ registerInstance(this, hostRef);
13091
13252
  }
13092
13253
  render() {
13093
13254
  const mode = getIonMode$1(this);
@@ -13574,7 +13735,8 @@ const checkboxMdCss = () => `:host{--checkbox-background-checked:var(--ion-color
13574
13735
  */
13575
13736
  class Checkbox {
13576
13737
  constructor(hostRef) {
13577
- registerInstance(this, hostRef);
13738
+ if (new.target === Checkbox)
13739
+ registerInstance(this, hostRef);
13578
13740
  this.ionChange = createEvent(this, "ionChange", 7);
13579
13741
  this.ionFocus = createEvent(this, "ionFocus", 7);
13580
13742
  this.ionBlur = createEvent(this, "ionBlur", 7);
@@ -13801,7 +13963,8 @@ const chipMdCss = () => `:host{--background:rgba(var(--ion-text-color-rgb, 0, 0,
13801
13963
  */
13802
13964
  class Chip {
13803
13965
  constructor(hostRef) {
13804
- registerInstance(this, hostRef);
13966
+ if (new.target === Chip)
13967
+ registerInstance(this, hostRef);
13805
13968
  /**
13806
13969
  * Display an outline style button.
13807
13970
  */
@@ -13866,7 +14029,8 @@ const SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports(
13866
14029
  const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
13867
14030
  class Col {
13868
14031
  constructor(hostRef) {
13869
- registerInstance(this, hostRef);
14032
+ if (new.target === Col)
14033
+ registerInstance(this, hostRef);
13870
14034
  }
13871
14035
  onResize() {
13872
14036
  }
@@ -14000,7 +14164,8 @@ const contentCss = () => `:host{--background:var(--ion-background-color, #fff);-
14000
14164
  */
14001
14165
  class Content {
14002
14166
  constructor(hostRef) {
14003
- registerInstance(this, hostRef);
14167
+ if (new.target === Content)
14168
+ registerInstance(this, hostRef);
14004
14169
  this.ionScrollStart = createEvent(this, "ionScrollStart", 7);
14005
14170
  this.ionScroll = createEvent(this, "ionScroll", 7);
14006
14171
  this.ionScrollEnd = createEvent(this, "ionScrollEnd", 7);
@@ -16483,7 +16648,8 @@ const datetimeMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-flo
16483
16648
  */
16484
16649
  class Datetime {
16485
16650
  constructor(hostRef) {
16486
- registerInstance(this, hostRef);
16651
+ if (new.target === Datetime)
16652
+ registerInstance(this, hostRef);
16487
16653
  this.ionCancel = createEvent(this, "ionCancel", 7);
16488
16654
  this.ionChange = createEvent(this, "ionChange", 7);
16489
16655
  this.ionValueChange = createEvent(this, "ionValueChange", 7);
@@ -18435,7 +18601,8 @@ const datetimeButtonMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-fl
18435
18601
  */
18436
18602
  class DatetimeButton {
18437
18603
  constructor(hostRef) {
18438
- registerInstance(this, hostRef);
18604
+ if (new.target === DatetimeButton)
18605
+ registerInstance(this, hostRef);
18439
18606
  this.datetimeEl = null;
18440
18607
  this.overlayEl = null;
18441
18608
  this.datetimePresentation = 'date-time';
@@ -18789,7 +18956,8 @@ const fabCss = () => `:host{position:absolute;width:-webkit-fit-content;width:-m
18789
18956
 
18790
18957
  class Fab {
18791
18958
  constructor(hostRef) {
18792
- registerInstance(this, hostRef);
18959
+ if (new.target === Fab)
18960
+ registerInstance(this, hostRef);
18793
18961
  /**
18794
18962
  * If `true`, the fab will display on the edge of the header if
18795
18963
  * `vertical` is `"top"`, and on the edge of the footer if
@@ -18882,7 +19050,8 @@ const fabButtonMdCss = () => `:host{--color-activated:var(--color);--color-focus
18882
19050
  */
18883
19051
  class FabButton {
18884
19052
  constructor(hostRef) {
18885
- registerInstance(this, hostRef);
19053
+ if (new.target === FabButton)
19054
+ registerInstance(this, hostRef);
18886
19055
  this.ionFocus = createEvent(this, "ionFocus", 7);
18887
19056
  this.ionBlur = createEvent(this, "ionBlur", 7);
18888
19057
  this.fab = null;
@@ -18946,6 +19115,10 @@ class FabButton {
18946
19115
  }
18947
19116
  connectedCallback() {
18948
19117
  this.fab = this.el.closest('ion-fab');
19118
+ this.tabindexController?.init();
19119
+ }
19120
+ disconnectedCallback() {
19121
+ this.tabindexController?.destroy();
18949
19122
  }
18950
19123
  /**
18951
19124
  * The native button rendered inside `ion-fab-button` is in the Shadow DOM and
@@ -19005,11 +19178,13 @@ class FabButton {
19005
19178
  }
19006
19179
  componentWillLoad() {
19007
19180
  this.inheritedAttributes = inheritAriaAttributes(this.el);
19181
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
19008
19182
  }
19009
19183
  render() {
19010
19184
  const { el, disabled, color, href, activated, show, translucent, size, inheritedAttributes, type } = this;
19011
19185
  const inList = hostContext('ion-fab-list', el);
19012
19186
  const mode = getIonMode$1(this);
19187
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
19013
19188
  const TagType = href === undefined ? 'button' : 'a';
19014
19189
  const attrs = TagType === 'button'
19015
19190
  ? { type }
@@ -19026,7 +19201,7 @@ class FabButton {
19026
19201
  if (type !== 'button') {
19027
19202
  this.renderHiddenButton();
19028
19203
  }
19029
- return (hAsync(Host, { key: '89e8f2564f12f8c1cd8509a40359202347948846', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
19204
+ return (hAsync(Host, { key: '95594de6a6509d29799ba4f5b54a14632bca1c83', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
19030
19205
  [mode]: true,
19031
19206
  'fab-button-in-list': inList,
19032
19207
  'fab-button-translucent-in-list': inList && translucent,
@@ -19037,7 +19212,7 @@ class FabButton {
19037
19212
  'ion-activatable': true,
19038
19213
  'ion-focusable': true,
19039
19214
  [`fab-button-${size}`]: size !== undefined,
19040
- }) }, hAsync(TagType, { key: '9e2fd462316e1aec50f53fa1b7ad7f02fd399592', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => type === 'button' && openURL(href, ev, this.routerDirection, this.routerAnimation), ...inheritedAttributes }, hAsync("ion-icon", { key: 'c3bdb8614eb249297afc963810066658dc85efd6', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), hAsync("span", { key: 'a6a505b24d21cc716d2e3351ad4c380b95c768d7', class: "button-inner" }, hAsync("slot", { key: 'f44fc1e95533438ee3adc8cc5bdd9e1e85849fd6' })), mode === 'md' && hAsync("ion-ripple-effect", { key: 'b7c7dc7fceb0bb5613239608225f040010b7b2bd' }))));
19215
+ }) }, hAsync(TagType, { key: '0f9dd1984d646dc3784a1c701db068e48c9155e3', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => type === 'button' && openURL(href, ev, this.routerDirection, this.routerAnimation), ...inheritedAttributes, ...tabindexAttributes }, hAsync("ion-icon", { key: '6ba981ded86087506dfc115124d4f69bb4c8d03c', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), hAsync("span", { key: '54efdabe98164f3575641c104f8a9e82ec2a42c7', class: "button-inner" }, hAsync("slot", { key: '23c0809c2371454c27cb8dd55d0c81bbf062a238' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '7aacc6325bbc990e496378eef0d5af2697b2edce' }))));
19041
19216
  }
19042
19217
  get el() { return getElement(this); }
19043
19218
  static get watchers() { return {
@@ -19079,7 +19254,8 @@ const fabListCss = () => `:host{margin-left:0;margin-right:0;margin-top:calc(100
19079
19254
 
19080
19255
  class FabList {
19081
19256
  constructor(hostRef) {
19082
- registerInstance(this, hostRef);
19257
+ if (new.target === FabList)
19258
+ registerInstance(this, hostRef);
19083
19259
  this.activateTimeouts = [];
19084
19260
  /**
19085
19261
  * If `true`, the fab list will show all fab buttons in the list.
@@ -19522,7 +19698,8 @@ const footerMdCss = () => `ion-footer{display:block;position:relative;-ms-flex-o
19522
19698
  */
19523
19699
  class Footer {
19524
19700
  constructor(hostRef) {
19525
- registerInstance(this, hostRef);
19701
+ if (new.target === Footer)
19702
+ registerInstance(this, hostRef);
19526
19703
  this.keyboardCtrl = null;
19527
19704
  this.keyboardCtrlPromise = null;
19528
19705
  this.keyboardVisible = false;
@@ -19652,7 +19829,8 @@ const gridCss = () => `:host{-webkit-padding-start:var(--ion-grid-padding-xs, va
19652
19829
 
19653
19830
  class Grid {
19654
19831
  constructor(hostRef) {
19655
- registerInstance(this, hostRef);
19832
+ if (new.target === Grid)
19833
+ registerInstance(this, hostRef);
19656
19834
  /**
19657
19835
  * If `true`, the grid will have a fixed width based on the screen size.
19658
19836
  */
@@ -19919,7 +20097,8 @@ const headerMdCss = () => `ion-header{display:block;position:relative;-ms-flex-o
19919
20097
  */
19920
20098
  class Header {
19921
20099
  constructor(hostRef) {
19922
- registerInstance(this, hostRef);
20100
+ if (new.target === Header)
20101
+ registerInstance(this, hostRef);
19923
20102
  this.inheritedAttributes = {};
19924
20103
  /**
19925
20104
  * If `true`, the header will be translucent.
@@ -20156,7 +20335,8 @@ const iconCss = () => `:host{display:inline-block;width:1em;height:1em;font-size
20156
20335
 
20157
20336
  class Icon {
20158
20337
  constructor(hostRef) {
20159
- registerInstance(this, hostRef);
20338
+ if (new.target === Icon)
20339
+ registerInstance(this, hostRef);
20160
20340
  this.iconName = null;
20161
20341
  this.inheritedAttributes = {};
20162
20342
  this.didLoadIcon = false;
@@ -20339,7 +20519,8 @@ const imgCss = () => `:host{display:block;-o-object-fit:contain;object-fit:conta
20339
20519
  */
20340
20520
  class Img {
20341
20521
  constructor(hostRef) {
20342
- registerInstance(this, hostRef);
20522
+ if (new.target === Img)
20523
+ registerInstance(this, hostRef);
20343
20524
  this.ionImgWillLoad = createEvent(this, "ionImgWillLoad", 7);
20344
20525
  this.ionImgDidLoad = createEvent(this, "ionImgDidLoad", 7);
20345
20526
  this.ionError = createEvent(this, "ionError", 7);
@@ -20457,7 +20638,8 @@ const infiniteScrollCss = () => `ion-infinite-scroll{display:none;width:100%}.in
20457
20638
 
20458
20639
  class InfiniteScroll {
20459
20640
  constructor(hostRef) {
20460
- registerInstance(this, hostRef);
20641
+ if (new.target === InfiniteScroll)
20642
+ registerInstance(this, hostRef);
20461
20643
  this.ionInfinite = createEvent(this, "ionInfinite", 7);
20462
20644
  this.thrPx = 0;
20463
20645
  this.thrPc = 0;
@@ -20680,7 +20862,8 @@ const infiniteScrollContentMdCss = () => `ion-infinite-scroll-content{display:-m
20680
20862
 
20681
20863
  class InfiniteScrollContent {
20682
20864
  constructor(hostRef) {
20683
- registerInstance(this, hostRef);
20865
+ if (new.target === InfiniteScrollContent)
20866
+ registerInstance(this, hostRef);
20684
20867
  this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
20685
20868
  }
20686
20869
  componentDidLoad() {
@@ -20872,7 +21055,8 @@ const inputMdCss = () => `.sc-ion-input-md-h{--placeholder-color:initial;--place
20872
21055
  */
20873
21056
  class Input {
20874
21057
  constructor(hostRef) {
20875
- registerInstance(this, hostRef);
21058
+ if (new.target === Input)
21059
+ registerInstance(this, hostRef);
20876
21060
  this.ionInput = createEvent(this, "ionInput", 7);
20877
21061
  this.ionChange = createEvent(this, "ionChange", 7);
20878
21062
  this.ionBlur = createEvent(this, "ionBlur", 7);
@@ -21451,7 +21635,8 @@ const inputOtpMdCss = () => `.sc-ion-input-otp-md-h{--margin-top:0;--margin-end:
21451
21635
 
21452
21636
  class InputOTP {
21453
21637
  constructor(hostRef) {
21454
- registerInstance(this, hostRef);
21638
+ if (new.target === InputOTP)
21639
+ registerInstance(this, hostRef);
21455
21640
  this.ionInput = createEvent(this, "ionInput", 7);
21456
21641
  this.ionChange = createEvent(this, "ionChange", 7);
21457
21642
  this.ionComplete = createEvent(this, "ionComplete", 7);
@@ -22151,7 +22336,8 @@ const mdInputPasswordToggleCss = () => ``;
22151
22336
  */
22152
22337
  class InputPasswordToggle {
22153
22338
  constructor(hostRef) {
22154
- registerInstance(this, hostRef);
22339
+ if (new.target === InputPasswordToggle)
22340
+ registerInstance(this, hostRef);
22155
22341
  /**
22156
22342
  * @internal
22157
22343
  */
@@ -22255,7 +22441,8 @@ const INDICATOR_CONTROL_SELECTOR = 'ion-checkbox, ion-radio, ion-toggle';
22255
22441
  */
22256
22442
  class Item {
22257
22443
  constructor(hostRef) {
22258
- registerInstance(this, hostRef);
22444
+ if (new.target === Item)
22445
+ registerInstance(this, hostRef);
22259
22446
  this.labelColorStyles = {};
22260
22447
  this.itemStyles = new Map();
22261
22448
  this.didLoad = false;
@@ -22294,6 +22481,14 @@ class Item {
22294
22481
  buttonChanged() {
22295
22482
  // Update the focusable option when the button option is changed
22296
22483
  this.focusable = this.isFocusable();
22484
+ this.tabindexController?.refresh();
22485
+ }
22486
+ /**
22487
+ * Adding or removing `href` adds or removes the native element, so `tabindex` has to move
22488
+ * with it. The same goes for `button` in `buttonChanged`.
22489
+ */
22490
+ hrefChanged() {
22491
+ this.tabindexController?.refresh();
22297
22492
  }
22298
22493
  labelColorChanged(ev) {
22299
22494
  const { color } = this;
@@ -22338,6 +22533,7 @@ class Item {
22338
22533
  this.updateInteractivityOnSlotChange();
22339
22534
  }
22340
22535
  this.ariaController?.init();
22536
+ this.tabindexController?.init();
22341
22537
  }
22342
22538
  componentWillLoad() {
22343
22539
  /**
@@ -22347,6 +22543,8 @@ class Item {
22347
22543
  * reads it twice.
22348
22544
  */
22349
22545
  this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
22546
+ // An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
22547
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
22350
22548
  }
22351
22549
  componentDidLoad() {
22352
22550
  raf(() => {
@@ -22364,6 +22562,7 @@ class Item {
22364
22562
  this.indicatorControlObserver = undefined;
22365
22563
  }
22366
22564
  this.ariaController?.destroy();
22565
+ this.tabindexController?.destroy();
22367
22566
  }
22368
22567
  totalNestedInputs() {
22369
22568
  // The following elements have a clickable cover that is relative to the entire item
@@ -22467,6 +22666,7 @@ class Item {
22467
22666
  const clickable = this.isClickable();
22468
22667
  const canActivate = this.canActivate();
22469
22668
  const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
22669
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
22470
22670
  const attrs = TagType === 'button'
22471
22671
  ? { type: this.type }
22472
22672
  : {
@@ -22537,7 +22737,7 @@ class Item {
22537
22737
  * multi-input item, and in a clickable item, which is a second tab stop.
22538
22738
  */
22539
22739
  const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
22540
- return (hAsync(Host, { key: 'dedd4fbc4f9e4db557c6f8bd91299778af9aba1c', "aria-disabled": ariaDisabled, class: {
22740
+ return (hAsync(Host, { key: 'b9de79c9d6fbe11a19c8e507d1c34af9f9068cfa', "aria-disabled": ariaDisabled, class: {
22541
22741
  ...childStyles,
22542
22742
  ...labelColorStyles,
22543
22743
  ...createColorClasses$1(this.color, {
@@ -22554,12 +22754,15 @@ class Item {
22554
22754
  'ion-focusable': this.focusable,
22555
22755
  'item-rtl': isRTL$1(el),
22556
22756
  }),
22557
- }, role: inList ? 'listitem' : null }, hAsync(TagType, { key: '949000f555bbc8b76a227d84a2442defc3577a4e', ...attrs, ...inheritedAriaAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, hAsync("slot", { key: '9fde070c0f830cfed9c7e25ea4d1f1d7ab710d07', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), hAsync("div", { key: 'd7ab19b4d7e5d4a7fec2d66e1cb865ff30c609f0', class: "item-inner", part: "inner" }, hAsync("div", { key: 'fdf3f306b98ab6af536e320341985fb34d50ef35', class: "input-wrapper", part: "container" }, hAsync("slot", { key: '06ecb3817c2bdf171f806e2b3e8701d3eb52897e', onSlotchange: this.updateInteractivityOnSlotChange })), hAsync("slot", { key: '7e401db776cd19b0399004e77920b23e526c551a', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (hAsync("ion-icon", { key: '1dac0a6d5a1ce811731fd5b81b92440de8725989', icon: detailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": detailIcon === chevronForward }))), canActivate && mode === 'md' && hAsync("ion-ripple-effect", { key: '7a782fa9c7e74e600191c41c7dd90a4a499de64e' }))));
22757
+ }, role: inList ? 'listitem' : null }, hAsync(TagType, { key: 'c52faccd0d44784e300e55c90b4456c491513c3c', ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, hAsync("slot", { key: '11cc95e796b494cf87db7b810846cb2c18186577', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), hAsync("div", { key: '6c94a9dd570f4e6e65924fdde6bcbb840c9b424d', class: "item-inner", part: "inner" }, hAsync("div", { key: '06c490d6f3e15fa811c72d5cd2b7936f99dd8430', class: "input-wrapper", part: "container" }, hAsync("slot", { key: '4487a6cf30f3b26455c96726733f57b1dbcab694', onSlotchange: this.updateInteractivityOnSlotChange })), hAsync("slot", { key: '16d6e70fa22f43b11bc63304dae9900f4a41b703', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (hAsync("ion-icon", { key: 'b24443f5753b67f9021b8127cebf47d329e0b03d', icon: detailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": detailIcon === chevronForward }))), canActivate && mode === 'md' && hAsync("ion-ripple-effect", { key: 'a9b081a6ebe870d057b775cfae2e7a4de6679155' }))));
22558
22758
  }
22559
22759
  get el() { return getElement(this); }
22560
22760
  static get watchers() { return {
22561
22761
  "button": [{
22562
22762
  "buttonChanged": 0
22763
+ }],
22764
+ "href": [{
22765
+ "hrefChanged": 0
22563
22766
  }]
22564
22767
  }; }
22565
22768
  static get style() { return {
@@ -22610,7 +22813,8 @@ const itemDividerMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padd
22610
22813
  */
22611
22814
  class ItemDivider {
22612
22815
  constructor(hostRef) {
22613
- registerInstance(this, hostRef);
22816
+ if (new.target === ItemDivider)
22817
+ registerInstance(this, hostRef);
22614
22818
  /**
22615
22819
  * When it's set to `true`, the item-divider will stay visible when it reaches the top
22616
22820
  * of the viewport until the next `ion-item-divider` replaces it.
@@ -22652,7 +22856,8 @@ const itemGroupMdCss = () => `ion-item-group{display:block}`;
22652
22856
 
22653
22857
  class ItemGroup {
22654
22858
  constructor(hostRef) {
22655
- registerInstance(this, hostRef);
22859
+ if (new.target === ItemGroup)
22860
+ registerInstance(this, hostRef);
22656
22861
  }
22657
22862
  render() {
22658
22863
  const mode = getIonMode$1(this);
@@ -22697,7 +22902,8 @@ const itemOptionMdCss = () => `:host{--background:var(--ion-color-primary, #0054
22697
22902
  */
22698
22903
  class ItemOption {
22699
22904
  constructor(hostRef) {
22700
- registerInstance(this, hostRef);
22905
+ if (new.target === ItemOption)
22906
+ registerInstance(this, hostRef);
22701
22907
  /**
22702
22908
  * If `true`, the user cannot interact with the item option.
22703
22909
  */
@@ -22717,8 +22923,18 @@ class ItemOption {
22717
22923
  }
22718
22924
  };
22719
22925
  }
22926
+ componentWillLoad() {
22927
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
22928
+ }
22929
+ connectedCallback() {
22930
+ this.tabindexController?.init();
22931
+ }
22932
+ disconnectedCallback() {
22933
+ this.tabindexController?.destroy();
22934
+ }
22720
22935
  render() {
22721
22936
  const { disabled, expandable, href } = this;
22937
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
22722
22938
  const TagType = href === undefined ? 'button' : 'a';
22723
22939
  const mode = getIonMode$1(this);
22724
22940
  const attrs = TagType === 'button'
@@ -22728,12 +22944,12 @@ class ItemOption {
22728
22944
  href: this.href,
22729
22945
  target: this.target,
22730
22946
  };
22731
- return (hAsync(Host, { key: 'a10d36e60d61865141c57c03a114e4845b400a55', onClick: this.onClick, class: createColorClasses$1(this.color, {
22947
+ return (hAsync(Host, { key: 'b9d323be73e0ac6408aa56a05eeb67076e35daf8', onClick: this.onClick, class: createColorClasses$1(this.color, {
22732
22948
  [mode]: true,
22733
22949
  'item-option-disabled': disabled,
22734
22950
  'item-option-expandable': expandable,
22735
22951
  'ion-activatable': true,
22736
- }) }, hAsync(TagType, { key: '5cc49ef73318213f6202d1d0f460f629ea65f17f', ...attrs, class: "button-native", part: "native", disabled: disabled }, hAsync("span", { key: '0643b16660b4ca00b0f3b4dbe2739e9ce076abea', class: "button-inner", part: "inner" }, hAsync("slot", { key: '8778d6d09aa9e0db278ce00c5456a1acfe82c15f', name: "top" }), hAsync("div", { key: '4fc849494c8cb2380015161e096b5c61cf517d90', class: "horizontal-wrapper", part: "container" }, hAsync("slot", { key: '9d0c0a5a63d8ec636df9c85d48bbdb39fb63af5e', name: "start" }), hAsync("slot", { key: 'a40561497c7e7d73173edd24ed335230e6eebb2b', name: "icon-only" }), hAsync("slot", { key: 'b94f2a4aa5bf4a1104497ced1920d6ee43d33659' }), hAsync("slot", { key: '91713dbb3e6a617c00f950857f2ed5e5ffceaa9a', name: "end" })), hAsync("slot", { key: 'f5af33c3bfb50fc629a06e1120bba55da07b2afb', name: "bottom" })), mode === 'md' && hAsync("ion-ripple-effect", { key: 'fc56e1644ef9c5b2e1e66683465a7fd09c05215c' }))));
22952
+ }) }, hAsync(TagType, { key: '6a59ebaa090613f42fca1fe51eff7863a69526ac', ...attrs, ...tabindexAttributes, class: "button-native", part: "native", disabled: disabled }, hAsync("span", { key: '9a5709f3b6d6bccdf0d60345f6171ca5439d54f4', class: "button-inner", part: "inner" }, hAsync("slot", { key: '9d76f6239d4c50cb785142a89bba26702a79c1f8', name: "top" }), hAsync("div", { key: 'b2aecda5dbfa5e3279d49b6dab6cb14c0b5df697', class: "horizontal-wrapper", part: "container" }, hAsync("slot", { key: '40d56d38d7a73a55f5ea4f6cdd6bc62dcfaa8dae', name: "start" }), hAsync("slot", { key: 'e531ca665546752bde34525cc6630a5ea2ac2575', name: "icon-only" }), hAsync("slot", { key: '2b7a78f6a4776eeb0720f79a81d075f75c63f4ff' }), hAsync("slot", { key: 'b296120a461d3b330ec05a97524b8ce5d3250a07', name: "end" })), hAsync("slot", { key: '5ebdf7af5acb29cc1b728f812d7f0c4d952512cc', name: "bottom" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '538f3e7d90a17ddbcc72ad227a0711573d3f7aac' }))));
22737
22953
  }
22738
22954
  get el() { return getElement(this); }
22739
22955
  static get style() { return {
@@ -22765,7 +22981,8 @@ const itemOptionsMdCss = () => `ion-item-options{top:0;right:0;-ms-flex-pack:end
22765
22981
 
22766
22982
  class ItemOptions {
22767
22983
  constructor(hostRef) {
22768
- registerInstance(this, hostRef);
22984
+ if (new.target === ItemOptions)
22985
+ registerInstance(this, hostRef);
22769
22986
  this.ionSwipe = createEvent(this, "ionSwipe", 7);
22770
22987
  /**
22771
22988
  * The side the option button should be on. Possible values: `"start"` and `"end"`. If you have multiple `ion-item-options`, a side must be provided for each.
@@ -22866,7 +23083,8 @@ const ELASTIC_FACTOR = 0.55;
22866
23083
  let openSlidingItem;
22867
23084
  class ItemSliding {
22868
23085
  constructor(hostRef) {
22869
- registerInstance(this, hostRef);
23086
+ if (new.target === ItemSliding)
23087
+ registerInstance(this, hostRef);
22870
23088
  this.ionDrag = createEvent(this, "ionDrag", 7);
22871
23089
  this.item = null;
22872
23090
  this.openAmount = 0;
@@ -23303,7 +23521,8 @@ const labelMdCss = () => `.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--col
23303
23521
  */
23304
23522
  class Label {
23305
23523
  constructor(hostRef) {
23306
- registerInstance(this, hostRef);
23524
+ if (new.target === Label)
23525
+ registerInstance(this, hostRef);
23307
23526
  this.ionColor = createEvent(this, "ionColor", 7);
23308
23527
  this.ionStyle = createEvent(this, "ionStyle", 7);
23309
23528
  this.inRange = false;
@@ -23399,7 +23618,8 @@ const listMdCss = () => `ion-list{margin-left:0;margin-right:0;margin-top:0;marg
23399
23618
  */
23400
23619
  class List {
23401
23620
  constructor(hostRef) {
23402
- registerInstance(this, hostRef);
23621
+ if (new.target === List)
23622
+ registerInstance(this, hostRef);
23403
23623
  /**
23404
23624
  * If `true`, the list will have margin around it and rounded corners.
23405
23625
  */
@@ -23460,7 +23680,8 @@ const listHeaderMdCss = () => `:host{--border-style:solid;--border-width:0;--inn
23460
23680
  */
23461
23681
  class ListHeader {
23462
23682
  constructor(hostRef) {
23463
- registerInstance(this, hostRef);
23683
+ if (new.target === ListHeader)
23684
+ registerInstance(this, hostRef);
23464
23685
  }
23465
23686
  render() {
23466
23687
  const { lines } = this;
@@ -23585,7 +23806,8 @@ const loadingMdCss = () => `.sc-ion-loading-md-h{--min-width:auto;--width:auto;-
23585
23806
  */
23586
23807
  class Loading {
23587
23808
  constructor(hostRef) {
23588
- registerInstance(this, hostRef);
23809
+ if (new.target === Loading)
23810
+ registerInstance(this, hostRef);
23589
23811
  this.didPresent = createEvent(this, "ionLoadingDidPresent", 7);
23590
23812
  this.willPresent = createEvent(this, "ionLoadingWillPresent", 7);
23591
23813
  this.willDismiss = createEvent(this, "ionLoadingWillDismiss", 7);
@@ -24208,7 +24430,8 @@ const mdEasingReverse = 'cubic-bezier(0.4, 0, 0.6, 1)';
24208
24430
  */
24209
24431
  class Menu {
24210
24432
  constructor(hostRef) {
24211
- registerInstance(this, hostRef);
24433
+ if (new.target === Menu)
24434
+ registerInstance(this, hostRef);
24212
24435
  this.ionWillOpen = createEvent(this, "ionWillOpen", 7);
24213
24436
  this.ionWillClose = createEvent(this, "ionWillClose", 7);
24214
24437
  this.ionDidOpen = createEvent(this, "ionDidOpen", 7);
@@ -24921,7 +25144,8 @@ const menuButtonMdCss = () => `:host{--background:transparent;--color-focused:cu
24921
25144
  */
24922
25145
  class MenuButton {
24923
25146
  constructor(hostRef) {
24924
- registerInstance(this, hostRef);
25147
+ if (new.target === MenuButton)
25148
+ registerInstance(this, hostRef);
24925
25149
  this.inheritedAttributes = {};
24926
25150
  this.visible = false;
24927
25151
  /**
@@ -24942,6 +25166,13 @@ class MenuButton {
24942
25166
  }
24943
25167
  componentWillLoad() {
24944
25168
  this.inheritedAttributes = inheritAriaAttributes(this.el);
25169
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
25170
+ }
25171
+ connectedCallback() {
25172
+ this.tabindexController?.init();
25173
+ }
25174
+ disconnectedCallback() {
25175
+ this.tabindexController?.destroy();
24945
25176
  }
24946
25177
  componentDidLoad() {
24947
25178
  this.visibilityChanged();
@@ -24951,6 +25182,7 @@ class MenuButton {
24951
25182
  }
24952
25183
  render() {
24953
25184
  const { color, disabled, inheritedAttributes } = this;
25185
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
24954
25186
  const mode = getIonMode$1(this);
24955
25187
  const menuIcon = config.get('menuIcon', mode === 'ios' ? menuOutline : menuSharp);
24956
25188
  const hidden = this.autoHide && !this.visible;
@@ -24958,7 +25190,7 @@ class MenuButton {
24958
25190
  type: this.type,
24959
25191
  };
24960
25192
  const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
24961
- return (hAsync(Host, { key: 'b8869377822b082c6c4d3f16135b50b733eabf65', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
25193
+ return (hAsync(Host, { key: 'bccc30d2a1e67e484f493211f950391c82f28b00', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
24962
25194
  [mode]: true,
24963
25195
  button: true, // ion-buttons target .button
24964
25196
  'menu-button-hidden': hidden,
@@ -24967,7 +25199,7 @@ class MenuButton {
24967
25199
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
24968
25200
  'ion-activatable': true,
24969
25201
  'ion-focusable': true,
24970
- }) }, hAsync("button", { key: '48fc0a7011414b60dd7d5136f247e937ae4bb8c8', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }, hAsync("span", { key: '8c712f28c5afd345e403a9afc525931112852708', class: "button-inner" }, hAsync("slot", { key: 'dd872325e42baf435188478c8d1cfc416075089d' }, hAsync("ion-icon", { key: 'a4f02bdb715b07792c17e12c7837873d70171f88', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && hAsync("ion-ripple-effect", { key: '564e2a8a804e14d1135502f7b17d8b7b9862e81b', type: "unbounded" }))));
25202
+ }) }, hAsync("button", { key: 'c2479290c5fee434c12c75fe47b2a10c58908bcb', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, hAsync("span", { key: 'ab2a5aa0aced1e551f5571dbfd3dabe8b3558370', class: "button-inner" }, hAsync("slot", { key: '7e7f827910287e11ffe716639c069e977df64d6a' }, hAsync("ion-icon", { key: 'ec4677e9b71d4b2167c64aebef269a58994262d1', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && hAsync("ion-ripple-effect", { key: '5b88e62b6cb4530f7b63dde0352cb0b7ef73cbff', type: "unbounded" }))));
24971
25203
  }
24972
25204
  get el() { return getElement(this); }
24973
25205
  static get style() { return {
@@ -24998,7 +25230,8 @@ const menuToggleCss = () => `:host(.menu-toggle-hidden){display:none}`;
24998
25230
  */
24999
25231
  class MenuToggle {
25000
25232
  constructor(hostRef) {
25001
- registerInstance(this, hostRef);
25233
+ if (new.target === MenuToggle)
25234
+ registerInstance(this, hostRef);
25002
25235
  this.visible = false;
25003
25236
  /**
25004
25237
  * Automatically hides the content when the corresponding menu is not active.
@@ -27267,7 +27500,8 @@ const modalMdCss = () => `:host{--width:100%;--min-width:auto;--max-width:auto;-
27267
27500
  */
27268
27501
  class Modal {
27269
27502
  constructor(hostRef) {
27270
- registerInstance(this, hostRef);
27503
+ if (new.target === Modal)
27504
+ registerInstance(this, hostRef);
27271
27505
  this.didPresent = createEvent(this, "ionModalDidPresent", 7);
27272
27506
  this.willPresent = createEvent(this, "ionModalWillPresent", 7);
27273
27507
  this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
@@ -28659,7 +28893,8 @@ const navCss = () => `:host{left:0;right:0;top:0;bottom:0;position:absolute;cont
28659
28893
 
28660
28894
  class Nav {
28661
28895
  constructor(hostRef) {
28662
- registerInstance(this, hostRef);
28896
+ if (new.target === Nav)
28897
+ registerInstance(this, hostRef);
28663
28898
  this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
28664
28899
  this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
28665
28900
  this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
@@ -29462,7 +29697,8 @@ const navLink = (el, routerDirection, component, componentProps, routerAnimation
29462
29697
 
29463
29698
  class NavLink {
29464
29699
  constructor(hostRef) {
29465
- registerInstance(this, hostRef);
29700
+ if (new.target === NavLink)
29701
+ registerInstance(this, hostRef);
29466
29702
  /**
29467
29703
  * The transition direction when navigating to another page.
29468
29704
  */
@@ -29499,7 +29735,8 @@ const noteMdCss = () => `:host{color:var(--color);font-family:var(--ion-font-fam
29499
29735
  */
29500
29736
  class Note {
29501
29737
  constructor(hostRef) {
29502
- registerInstance(this, hostRef);
29738
+ if (new.target === Note)
29739
+ registerInstance(this, hostRef);
29503
29740
  }
29504
29741
  render() {
29505
29742
  const mode = getIonMode$1(this);
@@ -29532,7 +29769,8 @@ const pickerMdCss = () => `:host{display:-ms-flexbox;display:flex;position:relat
29532
29769
  */
29533
29770
  class Picker {
29534
29771
  constructor(hostRef) {
29535
- registerInstance(this, hostRef);
29772
+ if (new.target === Picker)
29773
+ registerInstance(this, hostRef);
29536
29774
  this.ionInputModeChange = createEvent(this, "ionInputModeChange", 7);
29537
29775
  this.useInputMode = false;
29538
29776
  this.isInHighlightBounds = (ev) => {
@@ -30020,7 +30258,8 @@ const pickerColumnCss = () => `:host{display:-ms-flexbox;display:flex;position:r
30020
30258
  */
30021
30259
  class PickerColumn {
30022
30260
  constructor(hostRef) {
30023
- registerInstance(this, hostRef);
30261
+ if (new.target === PickerColumn)
30262
+ registerInstance(this, hostRef);
30024
30263
  this.ionChange = createEvent(this, "ionChange", 7);
30025
30264
  this.isScrolling = false;
30026
30265
  this.isColumnVisible = false;
@@ -30756,7 +30995,8 @@ const pickerColumnOptionMdCss = () => `.picker-column-option-button{padding-left
30756
30995
 
30757
30996
  class PickerColumnOption {
30758
30997
  constructor(hostRef) {
30759
- registerInstance(this, hostRef);
30998
+ if (new.target === PickerColumnOption)
30999
+ registerInstance(this, hostRef);
30760
31000
  /**
30761
31001
  * We keep track of the parent picker column
30762
31002
  * so we can update the value of it when
@@ -32030,7 +32270,8 @@ const popoverMdCss = () => `:host{--background:var(--ion-background-color, #fff)
32030
32270
  */
32031
32271
  class Popover {
32032
32272
  constructor(hostRef) {
32033
- registerInstance(this, hostRef);
32273
+ if (new.target === Popover)
32274
+ registerInstance(this, hostRef);
32034
32275
  this.didPresent = createEvent(this, "ionPopoverDidPresent", 7);
32035
32276
  this.willPresent = createEvent(this, "ionPopoverWillPresent", 7);
32036
32277
  this.willDismiss = createEvent(this, "ionPopoverWillDismiss", 7);
@@ -32600,7 +32841,8 @@ const progressBarMdCss = () => `:host{--background:rgba(var(--ion-color-primary-
32600
32841
  */
32601
32842
  class ProgressBar {
32602
32843
  constructor(hostRef) {
32603
- registerInstance(this, hostRef);
32844
+ if (new.target === ProgressBar)
32845
+ registerInstance(this, hostRef);
32604
32846
  /**
32605
32847
  * The state of the progress bar, based on if the time the process takes is known or not.
32606
32848
  * Default options are: `"determinate"` (no animation), `"indeterminate"` (animate from left to right).
@@ -32692,7 +32934,8 @@ const radioMdCss = () => `:host{--inner-border-radius:50%;display:inline-block;p
32692
32934
  */
32693
32935
  class Radio {
32694
32936
  constructor(hostRef) {
32695
- registerInstance(this, hostRef);
32937
+ if (new.target === Radio)
32938
+ registerInstance(this, hostRef);
32696
32939
  this.ionFocus = createEvent(this, "ionFocus", 7);
32697
32940
  this.ionBlur = createEvent(this, "ionBlur", 7);
32698
32941
  this.inputId = `ion-rb-${radioButtonIds++}`;
@@ -32877,7 +33120,8 @@ const radioGroupMdCss = () => `ion-radio-group{vertical-align:top}.radio-group-t
32877
33120
 
32878
33121
  class RadioGroup {
32879
33122
  constructor(hostRef) {
32880
- registerInstance(this, hostRef);
33123
+ if (new.target === RadioGroup)
33124
+ registerInstance(this, hostRef);
32881
33125
  this.ionChange = createEvent(this, "ionChange", 7);
32882
33126
  this.ionValueChange = createEvent(this, "ionValueChange", 7);
32883
33127
  this.inputId = `ion-rg-${radioGroupIds++}`;
@@ -33207,7 +33451,8 @@ const rangeMdCss = () => `:host{--knob-handle-size:calc(var(--knob-size) * 2);di
33207
33451
  */
33208
33452
  class Range {
33209
33453
  constructor(hostRef) {
33210
- registerInstance(this, hostRef);
33454
+ if (new.target === Range)
33455
+ registerInstance(this, hostRef);
33211
33456
  this.ionChange = createEvent(this, "ionChange", 7);
33212
33457
  this.ionInput = createEvent(this, "ionInput", 7);
33213
33458
  this.ionFocus = createEvent(this, "ionFocus", 7);
@@ -34316,7 +34561,8 @@ const refresherMdCss = () => `ion-refresher{top:0;display:none;position:absolute
34316
34561
  */
34317
34562
  class Refresher {
34318
34563
  constructor(hostRef) {
34319
- registerInstance(this, hostRef);
34564
+ if (new.target === Refresher)
34565
+ registerInstance(this, hostRef);
34320
34566
  this.ionRefresh = createEvent(this, "ionRefresh", 7);
34321
34567
  this.ionPull = createEvent(this, "ionPull", 7);
34322
34568
  this.ionStart = createEvent(this, "ionStart", 7);
@@ -35245,7 +35491,8 @@ const SPINNERS = spinners;
35245
35491
 
35246
35492
  class RefresherContent {
35247
35493
  constructor(hostRef) {
35248
- registerInstance(this, hostRef);
35494
+ if (new.target === RefresherContent)
35495
+ registerInstance(this, hostRef);
35249
35496
  this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
35250
35497
  }
35251
35498
  componentWillLoad() {
@@ -35310,7 +35557,8 @@ const reorderMdCss = () => `:host([slot]){display:none;line-height:0;z-index:100
35310
35557
  */
35311
35558
  class Reorder {
35312
35559
  constructor(hostRef) {
35313
- registerInstance(this, hostRef);
35560
+ if (new.target === Reorder)
35561
+ registerInstance(this, hostRef);
35314
35562
  }
35315
35563
  onClick(ev) {
35316
35564
  const reorderGroup = this.el.closest('ion-reorder-group');
@@ -35345,7 +35593,8 @@ const reorderGroupCss = () => `.reorder-list-active>*{display:block;-webkit-tran
35345
35593
 
35346
35594
  class ReorderGroup {
35347
35595
  constructor(hostRef) {
35348
- registerInstance(this, hostRef);
35596
+ if (new.target === ReorderGroup)
35597
+ registerInstance(this, hostRef);
35349
35598
  this.ionItemReorder = createEvent(this, "ionItemReorder", 7);
35350
35599
  this.ionReorderStart = createEvent(this, "ionReorderStart", 7);
35351
35600
  this.ionReorderMove = createEvent(this, "ionReorderMove", 7);
@@ -35649,7 +35898,8 @@ const rippleEffectCss = () => `:host{left:0;right:0;top:0;bottom:0;position:abso
35649
35898
 
35650
35899
  class RippleEffect {
35651
35900
  constructor(hostRef) {
35652
- registerInstance(this, hostRef);
35901
+ if (new.target === RippleEffect)
35902
+ registerInstance(this, hostRef);
35653
35903
  /**
35654
35904
  * Sets the type of ripple-effect:
35655
35905
  *
@@ -35744,7 +35994,8 @@ const INITIAL_ORIGIN_SCALE = 0.5;
35744
35994
  // TODO(FW-2832): types
35745
35995
  class Route {
35746
35996
  constructor(hostRef) {
35747
- registerInstance(this, hostRef);
35997
+ if (new.target === Route)
35998
+ registerInstance(this, hostRef);
35748
35999
  this.ionRouteDataChanged = createEvent(this, "ionRouteDataChanged", 7);
35749
36000
  /**
35750
36001
  * Relative path that needs to match in order for this route to apply.
@@ -35806,7 +36057,8 @@ class Route {
35806
36057
 
35807
36058
  class RouteRedirect {
35808
36059
  constructor(hostRef) {
35809
- registerInstance(this, hostRef);
36060
+ if (new.target === RouteRedirect)
36061
+ registerInstance(this, hostRef);
35810
36062
  this.ionRouteRedirectChanged = createEvent(this, "ionRouteRedirectChanged", 7);
35811
36063
  }
35812
36064
  propDidChange() {
@@ -36494,7 +36746,8 @@ const flattenNode = (chain, chains, node) => {
36494
36746
 
36495
36747
  class Router {
36496
36748
  constructor(hostRef) {
36497
- registerInstance(this, hostRef);
36749
+ if (new.target === Router)
36750
+ registerInstance(this, hostRef);
36498
36751
  this.ionRouteWillChange = createEvent(this, "ionRouteWillChange", 7);
36499
36752
  this.ionRouteDidChange = createEvent(this, "ionRouteDidChange", 7);
36500
36753
  this.previousPath = null;
@@ -36835,7 +37088,8 @@ const routerLinkCss = () => `:host{--background:transparent;--color:var(--ion-co
36835
37088
 
36836
37089
  class RouterLink {
36837
37090
  constructor(hostRef) {
36838
- registerInstance(this, hostRef);
37091
+ if (new.target === RouterLink)
37092
+ registerInstance(this, hostRef);
36839
37093
  /**
36840
37094
  * When using a router, it specifies the transition direction when navigating to
36841
37095
  * another page using `href`.
@@ -36845,18 +37099,29 @@ class RouterLink {
36845
37099
  openURL(this.href, ev, this.routerDirection, this.routerAnimation);
36846
37100
  };
36847
37101
  }
37102
+ componentWillLoad() {
37103
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
37104
+ }
37105
+ connectedCallback() {
37106
+ this.tabindexController?.init();
37107
+ }
37108
+ disconnectedCallback() {
37109
+ this.tabindexController?.destroy();
37110
+ }
36848
37111
  render() {
36849
37112
  const mode = getIonMode$1(this);
37113
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
36850
37114
  const attrs = {
36851
37115
  href: this.href,
36852
37116
  rel: this.rel,
36853
37117
  target: this.target,
36854
37118
  };
36855
- return (hAsync(Host, { key: '8aaf732d8f5cc4ced351e2b3164605c10bd90cad', onClick: this.onClick, class: createColorClasses$1(this.color, {
37119
+ return (hAsync(Host, { key: '51d8c563858a89c274f4b3778b937e545f4626df', onClick: this.onClick, class: createColorClasses$1(this.color, {
36856
37120
  [mode]: true,
36857
37121
  'ion-activatable': true,
36858
- }) }, hAsync("a", { key: '8f291ffbbce5b08dd10720d855eb020880bf1be1', ...attrs }, hAsync("slot", { key: '24dc388a49204011e1c1f0a1131c9a1b0a4ae4da' }))));
37122
+ }) }, hAsync("a", { key: '2f806b3036d648cf01ff69739c7f422c9a554c7d', ...attrs, ...tabindexAttributes }, hAsync("slot", { key: '43a2ee8b80574b120d80a8d65e8615921eb36afb' }))));
36859
37123
  }
37124
+ get el() { return getElement(this); }
36860
37125
  static get style() { return routerLinkCss(); }
36861
37126
  static get cmpMeta() { return {
36862
37127
  "$flags$": 265,
@@ -36879,7 +37144,8 @@ const routerOutletCss = () => `:host{left:0;right:0;top:0;bottom:0;position:abso
36879
37144
 
36880
37145
  class RouterOutlet {
36881
37146
  constructor(hostRef) {
36882
- registerInstance(this, hostRef);
37147
+ if (new.target === RouterOutlet)
37148
+ registerInstance(this, hostRef);
36883
37149
  this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
36884
37150
  this.ionNavWillChange = createEvent(this, "ionNavWillChange", 3);
36885
37151
  this.ionNavDidChange = createEvent(this, "ionNavDidChange", 3);
@@ -37133,7 +37399,8 @@ const rowCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;
37133
37399
 
37134
37400
  class Row {
37135
37401
  constructor(hostRef) {
37136
- registerInstance(this, hostRef);
37402
+ if (new.target === Row)
37403
+ registerInstance(this, hostRef);
37137
37404
  }
37138
37405
  render() {
37139
37406
  return (hAsync(Host, { key: '12b7419dd67ff18dd00e1bf5093299bd94c75503', class: getIonMode$1(this) }, hAsync("slot", { key: '43fc76a289ecaf398a77a90034ee576003a826fd' })));
@@ -37158,7 +37425,8 @@ const searchbarMdCss = () => `.sc-ion-searchbar-md-h{--placeholder-color:initial
37158
37425
  */
37159
37426
  class Searchbar {
37160
37427
  constructor(hostRef) {
37161
- registerInstance(this, hostRef);
37428
+ if (new.target === Searchbar)
37429
+ registerInstance(this, hostRef);
37162
37430
  this.ionInput = createEvent(this, "ionInput", 7);
37163
37431
  this.ionChange = createEvent(this, "ionChange", 7);
37164
37432
  this.ionCancel = createEvent(this, "ionCancel", 7);
@@ -37703,7 +37971,8 @@ const segmentMdCss = () => `:host{--ripple-color:currentColor;-moz-osx-font-smoo
37703
37971
  */
37704
37972
  class Segment {
37705
37973
  constructor(hostRef) {
37706
- registerInstance(this, hostRef);
37974
+ if (new.target === Segment)
37975
+ registerInstance(this, hostRef);
37707
37976
  this.ionChange = createEvent(this, "ionChange", 7);
37708
37977
  this.ionSelect = createEvent(this, "ionSelect", 7);
37709
37978
  this.ionStyle = createEvent(this, "ionStyle", 7);
@@ -38299,7 +38568,8 @@ let ids = 0;
38299
38568
  */
38300
38569
  class SegmentButton {
38301
38570
  constructor(hostRef) {
38302
- registerInstance(this, hostRef);
38571
+ if (new.target === SegmentButton)
38572
+ registerInstance(this, hostRef);
38303
38573
  this.segmentEl = null;
38304
38574
  this.inheritedAttributes = {};
38305
38575
  this.checked = false;
@@ -38335,6 +38605,7 @@ class SegmentButton {
38335
38605
  this.updateState();
38336
38606
  }
38337
38607
  connectedCallback() {
38608
+ this.tabindexController?.init();
38338
38609
  const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
38339
38610
  if (segmentEl) {
38340
38611
  this.updateState();
@@ -38343,6 +38614,7 @@ class SegmentButton {
38343
38614
  }
38344
38615
  }
38345
38616
  disconnectedCallback() {
38617
+ this.tabindexController?.destroy();
38346
38618
  const segmentEl = this.segmentEl;
38347
38619
  if (segmentEl) {
38348
38620
  removeEventListener(segmentEl, 'ionSelect', this.updateState);
@@ -38354,6 +38626,7 @@ class SegmentButton {
38354
38626
  this.inheritedAttributes = {
38355
38627
  ...inheritAttributes$1(this.el, ['aria-label']),
38356
38628
  };
38629
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
38357
38630
  // Return if there is no contentId defined
38358
38631
  if (!this.contentId)
38359
38632
  return;
@@ -38399,8 +38672,9 @@ class SegmentButton {
38399
38672
  render() {
38400
38673
  const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
38401
38674
  const mode = getIonMode$1(this);
38675
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
38402
38676
  const hasSegmentColor = () => segmentEl?.color !== undefined;
38403
- return (hAsync(Host, { key: 'd8acc71d87e26b32f20b2d0f9a6acc9f0dab0dee', class: {
38677
+ return (hAsync(Host, { key: 'd0d37d00f921193edd3a3670363583d9ee1cfb39', class: {
38404
38678
  [mode]: true,
38405
38679
  'in-toolbar': hostContext('ion-toolbar', this.el),
38406
38680
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
@@ -38416,7 +38690,7 @@ class SegmentButton {
38416
38690
  'ion-activatable': true,
38417
38691
  'ion-activatable-instant': true,
38418
38692
  'ion-focusable': true,
38419
- } }, hAsync("button", { key: 'ce65da07b1a012bce353b3c6c24eecfbd4071d54', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled, ...this.inheritedAttributes }, hAsync("span", { key: '6c4b4dcd20e407e5dc31674bea23633d8a09187a', class: "button-inner" }, hAsync("slot", { key: '817145ae77a3c5ada88ab95723d881f1bde96b2a' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '054d7e5e2a13013914fac6bbde8efdb28d9b459e' })), hAsync("div", { key: 'c48074881a302510ad4752eeb9383222cd3a54cb', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: '7672a6b10ee18ad026b798fbd8207dc3cd5683f9', part: "indicator-background", class: "segment-button-indicator-background" }))));
38693
+ } }, hAsync("button", { key: '0927611d352e2ed4df5d2a72768d504f5d4c4baf', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled, ...this.inheritedAttributes, ...tabindexAttributes }, hAsync("span", { key: '0fdf337f0ba7fa08143124091a580418f7b94a7c', class: "button-inner" }, hAsync("slot", { key: 'bce39283cdbe68cffbece870296fecff6f214345' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '2653c7c6d50bc00540d249ed98c6c6a5d93672d6' })), hAsync("div", { key: 'de0dbdd9f531158cc77ba04e78f4e96e32b6fb02', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: '2006cb914692ae1d5659828e36c502f9747adede', part: "indicator-background", class: "segment-button-indicator-background" }))));
38420
38694
  }
38421
38695
  get el() { return getElement(this); }
38422
38696
  static get watchers() { return {
@@ -38450,7 +38724,8 @@ const segmentContentCss = () => `:host{scroll-snap-align:center;scroll-snap-stop
38450
38724
 
38451
38725
  class SegmentContent {
38452
38726
  constructor(hostRef) {
38453
- registerInstance(this, hostRef);
38727
+ if (new.target === SegmentContent)
38728
+ registerInstance(this, hostRef);
38454
38729
  }
38455
38730
  render() {
38456
38731
  return (hAsync(Host, { key: 'b03079d7cfd78724828a4f42d7a7030457682b25' }, hAsync("slot", { key: 'c4c86280e5e577ee31a181758fea27a788fd87fa' })));
@@ -38472,7 +38747,8 @@ const segmentViewMdCss = () => `:host{display:-ms-flexbox;display:flex;height:10
38472
38747
 
38473
38748
  class SegmentView {
38474
38749
  constructor(hostRef) {
38475
- registerInstance(this, hostRef);
38750
+ if (new.target === SegmentView)
38751
+ registerInstance(this, hostRef);
38476
38752
  this.ionSegmentViewScroll = createEvent(this, "ionSegmentViewScroll", 7);
38477
38753
  this.scrollEndTimeout = null;
38478
38754
  this.isTouching = false;
@@ -38625,7 +38901,8 @@ const selectMdCss = () => `:host{--padding-top:0px;--padding-end:0px;--padding-b
38625
38901
  */
38626
38902
  class Select {
38627
38903
  constructor(hostRef) {
38628
- registerInstance(this, hostRef);
38904
+ if (new.target === Select)
38905
+ registerInstance(this, hostRef);
38629
38906
  this.ionChange = createEvent(this, "ionChange", 7);
38630
38907
  this.ionCancel = createEvent(this, "ionCancel", 7);
38631
38908
  this.ionDismiss = createEvent(this, "ionDismiss", 7);
@@ -38778,6 +39055,7 @@ class Select {
38778
39055
  }
38779
39056
  async connectedCallback() {
38780
39057
  const { el } = this;
39058
+ this.tabindexController?.init();
38781
39059
  this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
38782
39060
  this.startEndContainerController?.calculateContainerWidths();
38783
39061
  });
@@ -38797,6 +39075,7 @@ class Select {
38797
39075
  }
38798
39076
  componentWillLoad() {
38799
39077
  this.inheritedAttributes = inheritAttributes$1(this.el, ['aria-label']);
39078
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
38800
39079
  this.hintTextId = this.getHintTextId();
38801
39080
  }
38802
39081
  componentDidLoad() {
@@ -38813,6 +39092,7 @@ class Select {
38813
39092
  this.emitStyle();
38814
39093
  }
38815
39094
  disconnectedCallback() {
39095
+ this.tabindexController?.destroy();
38816
39096
  if (this.mutationO) {
38817
39097
  this.mutationO.disconnect();
38818
39098
  this.mutationO = undefined;
@@ -39403,7 +39683,8 @@ class Select {
39403
39683
  }
39404
39684
  renderListbox() {
39405
39685
  const { disabled, inputId, isExpanded, required } = this;
39406
- return (hAsync("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-required": `${required}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl) }));
39686
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
39687
+ return (hAsync("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-required": `${required}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl), ...tabindexAttributes }));
39407
39688
  }
39408
39689
  getHintTextId() {
39409
39690
  const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
@@ -39453,7 +39734,7 @@ class Select {
39453
39734
  const hasOutlineFill = mode === 'md' && fill === 'outline';
39454
39735
  renderHiddenInput(true, el, name, parseValue(value), disabled);
39455
39736
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
39456
- return (hAsync(Host, { key: 'c1949b8a58c5bde1cc7627d3b32c54bcb46a4752', onClick: this.onClick, class: createColorClasses$1(this.color, {
39737
+ return (hAsync(Host, { key: '33b9006ae4d0190621c3ec6241db4507ef08e891', onClick: this.onClick, class: createColorClasses$1(this.color, {
39457
39738
  [mode]: true,
39458
39739
  'in-item': inItem,
39459
39740
  'in-item-color': hostContext('ion-item.ion-color', el),
@@ -39471,7 +39752,7 @@ class Select {
39471
39752
  [`select-justify-${justify}`]: justifyEnabled,
39472
39753
  [`select-shape-${shape}`]: shape !== undefined,
39473
39754
  [`select-label-placement-${labelPlacement}`]: true,
39474
- }) }, hAsync("label", { key: 'af4521a3679d9e4e08511e205f53663d8d5b6701', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), hAsync("div", { key: '73e13f28ed4c2b0e9115f3d1b86934b84f8c5bc0', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, hAsync("slot", { key: 'ce88e5bbb15a4cde6a5f8580a35d7099e315e9e6', name: "start" })), hAsync("div", { key: 'd1557c3d0ff41f5070a27b719fbfaf18eafa9052', class: "select-control", part: "control" }, this.renderLabel(), hAsync("div", { key: 'bcd03ac6c6d72ab76a4344069d83c29a2cdaabf0', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), hAsync("div", { key: '9be05035c1efb5c332a0044c81e032215c81278b', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), hAsync("slot", { key: '551ab0cf3594805caaf14f36197f9cc56b9ee46a', name: "end" })), shouldRenderHighlight && hAsync("div", { key: 'dd500fb4ae7d91d1733fec521dac9baaef6654a0', class: "select-highlight" })), this.renderBottomContent()));
39755
+ }) }, hAsync("label", { key: 'c123702d69e5a7dece801b9765ce52777d4a376c', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), hAsync("div", { key: '9cbac0085afa03e9b5d777b028d7a837ddfc8212', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, hAsync("slot", { key: '179f1454e56c7dc50637b6149c6916a28fc2cf4a', name: "start" })), hAsync("div", { key: 'bb492a41a762d8fc4199561967f688284e4b6e1f', class: "select-control", part: "control" }, this.renderLabel(), hAsync("div", { key: 'e0f889c0f02e16fe1a47c4ddfeba7a262341a72d', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), hAsync("div", { key: 'bb5e5e117d786e02d6ac9d0514c5f54c240388ab', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), hAsync("slot", { key: '07df73fde0d7413e7d28af0d0b25a04593ea77dc', name: "end" })), shouldRenderHighlight && hAsync("div", { key: '753762d7c94c48d89e3c727fefbb5c9fdd981ad2', class: "select-highlight" })), this.renderBottomContent()));
39475
39756
  }
39476
39757
  get el() { return getElement(this); }
39477
39758
  static get watchers() { return {
@@ -39804,7 +40085,8 @@ const selectModalMdCss = () => `.action-sheet-button-label-has-rich-content.sc-i
39804
40085
 
39805
40086
  class SelectModal {
39806
40087
  constructor(hostRef) {
39807
- registerInstance(this, hostRef);
40088
+ if (new.target === SelectModal)
40089
+ registerInstance(this, hostRef);
39808
40090
  // Tracks the option that received Enter-keydown so keyup only
39809
40091
  // dismisses when the press started on the same option. Prevents
39810
40092
  // Enter on the triggering ion-select from auto-dismissing.
@@ -39971,7 +40253,8 @@ const selectOptionCss = () => `:host{display:none}`;
39971
40253
  */
39972
40254
  class SelectOption {
39973
40255
  constructor(hostRef) {
39974
- registerInstance(this, hostRef);
40256
+ if (new.target === SelectOption)
40257
+ registerInstance(this, hostRef);
39975
40258
  this.inputId = `ion-selopt-${selectOptionIds++}`;
39976
40259
  /**
39977
40260
  * If `true`, the user cannot interact with the select option.
@@ -40009,7 +40292,8 @@ const selectPopoverMdCss = () => `.action-sheet-button-label-has-rich-content.sc
40009
40292
  */
40010
40293
  class SelectPopover {
40011
40294
  constructor(hostRef) {
40012
- registerInstance(this, hostRef);
40295
+ if (new.target === SelectPopover)
40296
+ registerInstance(this, hostRef);
40013
40297
  // Tracks the option that received Enter-keydown so keyup only
40014
40298
  // dismisses when the press started on the same option. Prevents
40015
40299
  // Enter on the triggering ion-select from auto-dismissing.
@@ -40187,7 +40471,8 @@ const skeletonTextCss = () => `:host{--background:rgba(var(--background-rgb, var
40187
40471
 
40188
40472
  class SkeletonText {
40189
40473
  constructor(hostRef) {
40190
- registerInstance(this, hostRef);
40474
+ if (new.target === SkeletonText)
40475
+ registerInstance(this, hostRef);
40191
40476
  this.ionStyle = createEvent(this, "ionStyle", 7);
40192
40477
  /**
40193
40478
  * If `true`, the skeleton text will animate.
@@ -40234,7 +40519,8 @@ const spinnerCss = () => `:host{display:inline-block;position:relative;width:28p
40234
40519
 
40235
40520
  class Spinner {
40236
40521
  constructor(hostRef) {
40237
- registerInstance(this, hostRef);
40522
+ if (new.target === Spinner)
40523
+ registerInstance(this, hostRef);
40238
40524
  /**
40239
40525
  * If `true`, the spinner's animation will be paused.
40240
40526
  */
@@ -40305,7 +40591,8 @@ const QUERY = {
40305
40591
  lg: '(min-width: 992px)'};
40306
40592
  class SplitPane {
40307
40593
  constructor(hostRef) {
40308
- registerInstance(this, hostRef);
40594
+ if (new.target === SplitPane)
40595
+ registerInstance(this, hostRef);
40309
40596
  this.ionSplitPaneVisible = createEvent(this, "ionSplitPaneVisible", 7);
40310
40597
  this.visible = false;
40311
40598
  /**
@@ -40407,7 +40694,8 @@ const tabCss = () => `:host(.tab-hidden){display:none !important}`;
40407
40694
 
40408
40695
  class Tab {
40409
40696
  constructor(hostRef) {
40410
- registerInstance(this, hostRef);
40697
+ if (new.target === Tab)
40698
+ registerInstance(this, hostRef);
40411
40699
  /** @internal */
40412
40700
  this.active = false;
40413
40701
  }
@@ -40485,7 +40773,8 @@ const tabBarMdCss = () => `:host{display:-ms-flexbox;display:flex;-ms-flex-align
40485
40773
  */
40486
40774
  class TabBar {
40487
40775
  constructor(hostRef) {
40488
- registerInstance(this, hostRef);
40776
+ if (new.target === TabBar)
40777
+ registerInstance(this, hostRef);
40489
40778
  this.ionTabBarChanged = createEvent(this, "ionTabBarChanged", 7);
40490
40779
  this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
40491
40780
  this.keyboardCtrl = null;
@@ -40607,7 +40896,8 @@ const tabButtonMdCss = () => `:host{--ripple-color:var(--color-selected);--backg
40607
40896
  */
40608
40897
  class TabButton {
40609
40898
  constructor(hostRef) {
40610
- registerInstance(this, hostRef);
40899
+ if (new.target === TabButton)
40900
+ registerInstance(this, hostRef);
40611
40901
  this.ionTabButtonClick = createEvent(this, "ionTabButtonClick", 7);
40612
40902
  this.inheritedAttributes = {};
40613
40903
  /**
@@ -40638,10 +40928,17 @@ class TabButton {
40638
40928
  this.inheritedAttributes = {
40639
40929
  ...inheritAttributes$1(this.el, ['aria-label']),
40640
40930
  };
40931
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
40641
40932
  if (this.layout === undefined) {
40642
40933
  this.layout = config.get('tabButtonLayout', 'icon-top');
40643
40934
  }
40644
40935
  }
40936
+ connectedCallback() {
40937
+ this.tabindexController?.init();
40938
+ }
40939
+ disconnectedCallback() {
40940
+ this.tabindexController?.destroy();
40941
+ }
40645
40942
  selectTab(ev) {
40646
40943
  if (this.tab !== undefined) {
40647
40944
  if (!this.disabled) {
@@ -40663,13 +40960,14 @@ class TabButton {
40663
40960
  render() {
40664
40961
  const { disabled, hasIcon, hasLabel, href, rel, target, layout, selected, tab, inheritedAttributes } = this;
40665
40962
  const mode = getIonMode$1(this);
40963
+ const tabindex = this.tabindexController?.attributes.tabindex;
40666
40964
  const attrs = {
40667
40965
  download: this.download,
40668
40966
  href,
40669
40967
  rel,
40670
40968
  target,
40671
40969
  };
40672
- return (hAsync(Host, { key: '45bb7ffa6d8764202adc2c5c393748d4003e86fe', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
40970
+ return (hAsync(Host, { key: '177c6c12cbee6e5e0b54375edb62d2a05b51b27b', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
40673
40971
  [mode]: true,
40674
40972
  'tab-selected': selected,
40675
40973
  'tab-disabled': disabled,
@@ -40681,7 +40979,7 @@ class TabButton {
40681
40979
  'ion-activatable': true,
40682
40980
  'ion-selectable': true,
40683
40981
  'ion-focusable': true,
40684
- } }, hAsync("a", { key: '78c416609a2b86a6e7c5f217ffd2a6b9f80a5103', ...attrs, class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined, ...inheritedAttributes }, hAsync("span", { key: '62934156439ffd0ab86674b9cf89d9cfa0d3589c', class: "button-inner" }, hAsync("slot", { key: '293ba8f5ef50373c4e6e492dcaa55b3d2aae8d2f' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '360b010afedcf17fc1f3ab6d192f0f8c7b1cf112', type: "unbounded" }))));
40982
+ } }, hAsync("a", { key: '16289c599d9be6f4c90ddded302c46aa905633e3', ...attrs, class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : tabindex, ...inheritedAttributes }, hAsync("span", { key: 'cef69478ddc3fc9144acab61cb8cc0df1d8ca711', class: "button-inner" }, hAsync("slot", { key: 'e276e619c8062c36f1de0d2a46abba750e8e58d7' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '6f747fd5723d00a1aa034f8d6a97e752f5f3c1c6', type: "unbounded" }))));
40685
40983
  }
40686
40984
  get el() { return getElement(this); }
40687
40985
  static get style() { return {
@@ -40716,7 +41014,8 @@ const tabsCss = () => `:host{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;d
40716
41014
  */
40717
41015
  class Tabs {
40718
41016
  constructor(hostRef) {
40719
- registerInstance(this, hostRef);
41017
+ if (new.target === Tabs)
41018
+ registerInstance(this, hostRef);
40720
41019
  this.ionNavWillLoad = createEvent(this, "ionNavWillLoad", 7);
40721
41020
  this.ionTabsWillChange = createEvent(this, "ionTabsWillChange", 3);
40722
41021
  this.ionTabsDidChange = createEvent(this, "ionTabsDidChange", 3);
@@ -40907,7 +41206,8 @@ const textCss = () => `:host(.ion-color){color:var(--ion-color-base)}`;
40907
41206
  */
40908
41207
  class Text {
40909
41208
  constructor(hostRef) {
40910
- registerInstance(this, hostRef);
41209
+ if (new.target === Text)
41210
+ registerInstance(this, hostRef);
40911
41211
  }
40912
41212
  render() {
40913
41213
  const mode = getIonMode$1(this);
@@ -40941,7 +41241,8 @@ const textareaMdCss = () => `.sc-ion-textarea-md-h{--background:initial;--color:
40941
41241
  */
40942
41242
  class Textarea {
40943
41243
  constructor(hostRef) {
40944
- registerInstance(this, hostRef);
41244
+ if (new.target === Textarea)
41245
+ registerInstance(this, hostRef);
40945
41246
  this.ionChange = createEvent(this, "ionChange", 7);
40946
41247
  this.ionInput = createEvent(this, "ionInput", 7);
40947
41248
  this.ionBlur = createEvent(this, "ionBlur", 7);
@@ -41435,7 +41736,8 @@ const thumbnailCss = () => `:host{--size:48px;--border-radius:0;border-radius:va
41435
41736
 
41436
41737
  class Thumbnail {
41437
41738
  constructor(hostRef) {
41438
- registerInstance(this, hostRef);
41739
+ if (new.target === Thumbnail)
41740
+ registerInstance(this, hostRef);
41439
41741
  }
41440
41742
  render() {
41441
41743
  return (hAsync(Host, { key: 'ff9d2a4886b1c90a316c761f1160111f0e997f5d', class: getIonMode$1(this) }, hAsync("slot", { key: '9a0f0d69e3713831e88c8770a60b28ff1a03abb6' })));
@@ -41904,7 +42206,8 @@ const toastMdCss = () => `:host{--border-width:0;--border-style:none;--border-co
41904
42206
  */
41905
42207
  class Toast {
41906
42208
  constructor(hostRef) {
41907
- registerInstance(this, hostRef);
42209
+ if (new.target === Toast)
42210
+ registerInstance(this, hostRef);
41908
42211
  this.didPresent = createEvent(this, "ionToastDidPresent", 7);
41909
42212
  this.willPresent = createEvent(this, "ionToastWillPresent", 7);
41910
42213
  this.willDismiss = createEvent(this, "ionToastWillDismiss", 7);
@@ -42389,7 +42692,8 @@ const toggleMdCss = () => `:host{-webkit-box-sizing:content-box !important;box-s
42389
42692
  */
42390
42693
  class Toggle {
42391
42694
  constructor(hostRef) {
42392
- registerInstance(this, hostRef);
42695
+ if (new.target === Toggle)
42696
+ registerInstance(this, hostRef);
42393
42697
  this.ionChange = createEvent(this, "ionChange", 7);
42394
42698
  this.ionFocus = createEvent(this, "ionFocus", 7);
42395
42699
  this.ionBlur = createEvent(this, "ionBlur", 7);
@@ -42720,7 +43024,8 @@ const toolbarMdCss = () => `:host{--border-width:0;--border-style:solid;--opacit
42720
43024
  */
42721
43025
  class Toolbar {
42722
43026
  constructor(hostRef) {
42723
- registerInstance(this, hostRef);
43027
+ if (new.target === Toolbar)
43028
+ registerInstance(this, hostRef);
42724
43029
  this.childrenStyles = new Map();
42725
43030
  }
42726
43031
  componentWillLoad() {
@@ -42797,7 +43102,8 @@ const titleMdCss = () => `:host{--color:initial;display:-ms-flexbox;display:flex
42797
43102
 
42798
43103
  class ToolbarTitle {
42799
43104
  constructor(hostRef) {
42800
- registerInstance(this, hostRef);
43105
+ if (new.target === ToolbarTitle)
43106
+ registerInstance(this, hostRef);
42801
43107
  this.ionStyle = createEvent(this, "ionStyle", 7);
42802
43108
  }
42803
43109
  sizeChanged() {
@@ -43841,7 +44147,7 @@ var NAMESPACE = (
43841
44147
  );
43842
44148
 
43843
44149
  /*
43844
- Stencil Hydrate Runner v4.45.2 | MIT Licensed | https://stenciljs.com
44150
+ Stencil Hydrate Runner v4.45.3 | MIT Licensed | https://stenciljs.com
43845
44151
  */
43846
44152
  var __create = Object.create;
43847
44153
  var __defProp = Object.defineProperty;
@@ -55130,22 +55436,26 @@ var MockNodeList = class {
55130
55436
  this.length = length;
55131
55437
  }
55132
55438
  };
55439
+ var MockElementInternals = class {
55440
+ states = /* @__PURE__ */ new Set();
55441
+ setFormValue() {
55442
+ }
55443
+ setValidity() {
55444
+ }
55445
+ checkValidity() {
55446
+ return true;
55447
+ }
55448
+ reportValidity() {
55449
+ return true;
55450
+ }
55451
+ };
55133
55452
  var MockElement = class extends MockNode2 {
55134
55453
  __namespaceURI;
55135
55454
  __attributeMap;
55136
55455
  __shadowRoot;
55137
55456
  __style;
55138
55457
  attachInternals() {
55139
- return new Proxy({}, {
55140
- get: function(_target, prop, _receiver) {
55141
- if ("process" in globalThis && globalThis.process.env.__STENCIL_SPEC_TESTS__) {
55142
- console.error(
55143
- `NOTE: Property ${String(prop)} was accessed on ElementInternals, but this property is not implemented.
55144
- Testing components with ElementInternals is fully supported in e2e tests.`
55145
- );
55146
- }
55147
- }
55148
- });
55458
+ return new MockElementInternals();
55149
55459
  }
55150
55460
  constructor(ownerDocument, nodeName, namespaceURI = null) {
55151
55461
  super(ownerDocument, 1 /* ELEMENT_NODE */, typeof nodeName === "string" ? nodeName : null, null);
@@ -55419,7 +55729,9 @@ var MockElement = class extends MockNode2 {
55419
55729
  return this.hasAttributeNS(null, "hidden");
55420
55730
  }
55421
55731
  set hidden(isHidden) {
55422
- if (isHidden === true) {
55732
+ if (isHidden === "until-found") {
55733
+ this.setAttributeNS(null, "hidden", "until-found");
55734
+ } else if (isHidden === true) {
55423
55735
  this.setAttributeNS(null, "hidden", "");
55424
55736
  } else {
55425
55737
  this.removeAttributeNS(null, "hidden");