@ionic/core 8.8.14-dev.11784238294.131cd99d → 8.8.14-dev.11784563563.137a903a

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 (476) 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-img.js +1 -1
  33. package/components/ion-infinite-scroll-content.js +1 -1
  34. package/components/ion-infinite-scroll.js +1 -1
  35. package/components/ion-input-otp.js +1 -1
  36. package/components/ion-input-password-toggle.js +1 -1
  37. package/components/ion-input.js +1 -1
  38. package/components/ion-item-divider.js +1 -1
  39. package/components/ion-item-group.js +1 -1
  40. package/components/ion-item-option.js +1 -1
  41. package/components/ion-item-options.js +1 -1
  42. package/components/ion-item-sliding.js +1 -1
  43. package/components/ion-item.js +1 -1
  44. package/components/ion-label.js +1 -1
  45. package/components/ion-list-header.js +1 -1
  46. package/components/ion-list.js +1 -1
  47. package/components/ion-loading.js +1 -1
  48. package/components/ion-menu-button.js +1 -1
  49. package/components/ion-menu-toggle.js +1 -1
  50. package/components/ion-menu.js +1 -1
  51. package/components/ion-modal.js +1 -1
  52. package/components/ion-nav.js +1 -1
  53. package/components/ion-note.js +1 -1
  54. package/components/ion-picker-column-option.js +1 -1
  55. package/components/ion-picker-column.js +1 -1
  56. package/components/ion-popover.js +1 -1
  57. package/components/ion-progress-bar.js +1 -1
  58. package/components/ion-radio-group.js +1 -1
  59. package/components/ion-radio.js +1 -1
  60. package/components/ion-range.js +1 -1
  61. package/components/ion-refresher-content.js +1 -1
  62. package/components/ion-refresher.js +1 -1
  63. package/components/ion-reorder-group.js +1 -1
  64. package/components/ion-reorder.js +1 -1
  65. package/components/ion-ripple-effect.js +1 -1
  66. package/components/ion-router-link.js +1 -1
  67. package/components/ion-router-outlet.js +1 -1
  68. package/components/ion-router.js +1 -1
  69. package/components/ion-row.js +1 -1
  70. package/components/ion-searchbar.js +1 -1
  71. package/components/ion-segment-button.js +1 -1
  72. package/components/ion-segment-content.js +1 -1
  73. package/components/ion-segment-view.js +1 -1
  74. package/components/ion-segment.js +1 -1
  75. package/components/ion-select-modal.js +1 -1
  76. package/components/ion-select-option.js +1 -1
  77. package/components/ion-select-popover.js +1 -1
  78. package/components/ion-select.js +1 -1
  79. package/components/ion-skeleton-text.js +1 -1
  80. package/components/ion-spinner.js +1 -1
  81. package/components/ion-split-pane.js +1 -1
  82. package/components/ion-tab-bar.js +1 -1
  83. package/components/ion-tab-button.js +1 -1
  84. package/components/ion-tab.js +1 -1
  85. package/components/ion-tabs.js +1 -1
  86. package/components/ion-text.js +1 -1
  87. package/components/ion-textarea.js +1 -1
  88. package/components/ion-thumbnail.js +1 -1
  89. package/components/ion-title.js +1 -1
  90. package/components/ion-toast.js +1 -1
  91. package/components/ion-toggle.js +1 -1
  92. package/components/ion-toolbar.js +1 -1
  93. package/components/{p-BLmJ0zRm.js → p-8cRBED2y.js} +1 -1
  94. package/components/{p-BSEgsdFI.js → p-B5Ia5kbJ.js} +1 -1
  95. package/components/p-BG9RNTmW.js +4 -0
  96. package/components/p-BSQPZ79H.js +4 -0
  97. package/components/p-BnTB62Lu.js +4 -0
  98. package/components/p-BwKpO3Is.js +4 -0
  99. package/components/p-CEktCi-l.js +4 -0
  100. package/components/{p-B60hm8Qv.js → p-CHdYfvVx.js} +1 -1
  101. package/components/{p-B9jFTlwE.js → p-CPa2WmW7.js} +1 -1
  102. package/components/{p-BnqQlm7c.js → p-CYhGN6l4.js} +1 -1
  103. package/components/{p-ryqmO0B-.js → p-CbJDPICP.js} +1 -1
  104. package/components/{p-rCa2eL0j.js → p-CtQ-1ZRt.js} +1 -1
  105. package/components/p-CwcD5kE9.js +4 -0
  106. package/components/{p--JUspHvy.js → p-CyFtf1Mm.js} +1 -1
  107. package/components/{p-DqZAXv2t.js → p-CzuRCorP.js} +1 -1
  108. package/components/{p-j5IxBIan.js → p-D-lHU3L1.js} +1 -1
  109. package/components/p-D1-tlI3U.js +4 -0
  110. package/components/p-D2D6VdCA.js +4 -0
  111. package/components/{p-BHrrc-3d.js → p-D355UF9s.js} +1 -1
  112. package/components/{p-5bE_Wz4Y.js → p-DEI720fP.js} +1 -1
  113. package/components/p-DK0D_QD_.js +4 -0
  114. package/components/p-DXTfY6aF.js +4 -0
  115. package/components/{p-Cfx4M1Bn.js → p-DfjhtfFw.js} +1 -1
  116. package/components/{p-CI3ncNZm.js → p-Dg1a5T1q.js} +1 -1
  117. package/components/{p-lE_JGpHD.js → p-Ds1Brlka.js} +1 -1
  118. package/components/p-Dtmv7Nm_.js +4 -0
  119. package/components/{p-BirPFsRD.js → p-Dy5czMtc.js} +1 -1
  120. package/components/p-FV45cfy9.js +4 -0
  121. package/components/p-LMGfIvTf.js +4 -0
  122. package/components/{p-CSZf8_j0.js → p-XX59Wsi5.js} +1 -1
  123. package/components/p-jOtMJMv8.js +4 -0
  124. package/components/p-xjzudrQv.js +4 -0
  125. package/dist/cjs/{app-globals-BlqrqKTN.js → app-globals-7VMuu6PT.js} +1 -1
  126. package/dist/cjs/config-DWdFbSNK.js +35 -0
  127. package/dist/cjs/index-Cueg3U4w.js +429 -0
  128. package/dist/cjs/{index-aC4x3Fk3.js → index-IPWmFzOn.js} +1 -1
  129. package/dist/cjs/index.cjs.js +7 -7
  130. package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
  131. package/dist/cjs/ion-action-sheet.cjs.entry.js +28 -8
  132. package/dist/cjs/ion-alert.cjs.entry.js +65 -26
  133. package/dist/cjs/ion-app_8.cjs.entry.js +24 -10
  134. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  135. package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
  136. package/dist/cjs/ion-backdrop.cjs.entry.js +1 -1
  137. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +1 -1
  138. package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
  139. package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
  140. package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
  141. package/dist/cjs/ion-chip.cjs.entry.js +1 -1
  142. package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
  143. package/dist/cjs/ion-datetime-button.cjs.entry.js +5 -11
  144. package/dist/cjs/{ion-datetime_3.cjs.entry.js → ion-datetime.cjs.entry.js} +13 -657
  145. package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
  146. package/dist/cjs/ion-img.cjs.entry.js +4 -2
  147. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +4 -3
  148. package/dist/cjs/ion-input-otp.cjs.entry.js +1 -1
  149. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +1 -1
  150. package/dist/cjs/ion-input.cjs.entry.js +5 -5
  151. package/dist/cjs/ion-item-option_3.cjs.entry.js +1 -1
  152. package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
  153. package/dist/cjs/ion-loading.cjs.entry.js +11 -6
  154. package/dist/cjs/ion-menu_3.cjs.entry.js +3 -3
  155. package/dist/cjs/ion-modal.cjs.entry.js +24 -33
  156. package/dist/cjs/ion-nav_2.cjs.entry.js +3 -116
  157. package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -10
  158. package/dist/cjs/ion-picker-column.cjs.entry.js +5 -11
  159. package/dist/cjs/ion-popover.cjs.entry.js +10 -6
  160. package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
  161. package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
  162. package/dist/cjs/ion-range.cjs.entry.js +4 -4
  163. package/dist/cjs/ion-refresher_2.cjs.entry.js +7 -6
  164. package/dist/cjs/ion-reorder_2.cjs.entry.js +3 -3
  165. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
  166. package/dist/cjs/ion-route_4.cjs.entry.js +19 -5
  167. package/dist/cjs/ion-searchbar.cjs.entry.js +6 -6
  168. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  169. package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
  170. package/dist/cjs/ion-segment_2.cjs.entry.js +5 -5
  171. package/dist/cjs/ion-select-modal.cjs.entry.js +85 -31
  172. package/dist/cjs/ion-select_3.cjs.entry.js +408 -50
  173. package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
  174. package/dist/cjs/ion-split-pane.cjs.entry.js +3 -3
  175. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +5 -5
  176. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  177. package/dist/cjs/ion-text.cjs.entry.js +3 -3
  178. package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
  179. package/dist/cjs/ion-toast.cjs.entry.js +7 -6
  180. package/dist/cjs/ion-toggle.cjs.entry.js +4 -4
  181. package/dist/cjs/{ionic-global-B-cA6LkY.js → ionic-global-CbxQmwkf.js} +2 -2
  182. package/dist/cjs/ionic.cjs.js +3 -3
  183. package/dist/cjs/loader.cjs.js +3 -3
  184. package/dist/cjs/overlay-control-label-D2sdL2O8.js +50 -0
  185. package/dist/cjs/{overlays-DdtIYQUH.js → overlays-DXnnHORC.js} +28 -32
  186. package/dist/cjs/select-option-render-DTF50t5r.js +124 -0
  187. package/dist/collection/collection-manifest.json +6 -10
  188. package/dist/collection/components/action-sheet/action-sheet.ios.css +229 -2
  189. package/dist/collection/components/action-sheet/action-sheet.js +24 -5
  190. package/dist/collection/components/action-sheet/action-sheet.md.css +175 -2
  191. package/dist/collection/components/alert/alert.ios.css +280 -10
  192. package/dist/collection/components/alert/alert.js +59 -21
  193. package/dist/collection/components/alert/alert.md.css +269 -20
  194. package/dist/collection/components/datetime/datetime.ios.css +42 -2
  195. package/dist/collection/components/datetime/datetime.js +10 -17
  196. package/dist/collection/components/datetime/datetime.md.css +42 -1
  197. package/dist/collection/components/datetime-button/datetime-button.ios.css +5 -0
  198. package/dist/collection/components/datetime-button/datetime-button.js +3 -10
  199. package/dist/collection/components/datetime-button/datetime-button.md.css +5 -0
  200. package/dist/collection/components/img/img.js +6 -1
  201. package/dist/collection/components/input/input.js +8 -8
  202. package/dist/collection/components/loading/loading.js +7 -3
  203. package/dist/collection/components/modal/gestures/sheet.js +0 -7
  204. package/dist/collection/components/modal/gestures/swipe-to-close.js +0 -7
  205. package/dist/collection/components/modal/modal.ios.css +0 -8
  206. package/dist/collection/components/modal/modal.js +23 -18
  207. package/dist/collection/components/modal/modal.md.css +0 -8
  208. package/dist/collection/components/nav/nav.js +4 -219
  209. package/dist/collection/components/picker-column/picker-column.css +3 -0
  210. package/dist/collection/components/picker-column/picker-column.js +4 -11
  211. package/dist/collection/components/picker-column-option/picker-column-option.js +3 -10
  212. package/dist/collection/components/picker-column-option/picker-column-option.md.css +6 -1
  213. package/dist/collection/components/popover/popover.ios.css +15 -0
  214. package/dist/collection/components/popover/popover.js +7 -3
  215. package/dist/collection/components/popover/popover.md.css +15 -0
  216. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  217. package/dist/collection/components/radio/radio.js +4 -4
  218. package/dist/collection/components/range/range.js +3 -3
  219. package/dist/collection/components/refresher/refresher.js +1 -1
  220. package/dist/collection/components/refresher-content/refresher-content.js +1 -1
  221. package/dist/collection/components/reorder/reorder.js +1 -1
  222. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  223. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  224. package/dist/collection/components/route/route.js +1 -1
  225. package/dist/collection/components/router/utils/dom.js +22 -3
  226. package/dist/collection/components/router-link/router-link.js +2 -2
  227. package/dist/collection/components/router-outlet/router-outlet.js +38 -5
  228. package/dist/collection/components/row/row.js +1 -1
  229. package/dist/collection/components/searchbar/searchbar.js +9 -9
  230. package/dist/collection/components/segment/segment.js +2 -2
  231. package/dist/collection/components/segment-button/segment-button.js +2 -2
  232. package/dist/collection/components/segment-content/segment-content.js +1 -1
  233. package/dist/collection/components/segment-view/segment-view.js +2 -2
  234. package/dist/collection/components/select/select.ios.css +33 -0
  235. package/dist/collection/components/select/select.js +323 -16
  236. package/dist/collection/components/select/select.md.css +33 -0
  237. package/dist/collection/components/select-modal/select-modal.ios.css +219 -0
  238. package/dist/collection/components/select-modal/select-modal.js +79 -26
  239. package/dist/collection/components/select-modal/select-modal.md.css +165 -0
  240. package/dist/collection/components/select-option/select-option.js +67 -3
  241. package/dist/collection/components/select-popover/select-popover.ios.css +219 -0
  242. package/dist/collection/components/select-popover/select-popover.js +78 -26
  243. package/dist/collection/components/select-popover/select-popover.md.css +165 -0
  244. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  245. package/dist/collection/components/spinner/spinner.js +1 -1
  246. package/dist/collection/components/split-pane/split-pane.js +2 -2
  247. package/dist/collection/components/tab/tab.js +2 -2
  248. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  249. package/dist/collection/components/tab-button/tab-button.js +2 -2
  250. package/dist/collection/components/tabs/tabs.js +1 -1
  251. package/dist/collection/components/text/text.js +2 -2
  252. package/dist/collection/components/textarea/textarea.js +2 -2
  253. package/dist/collection/components/thumbnail/thumbnail.js +1 -1
  254. package/dist/collection/components/title/title.js +2 -2
  255. package/dist/collection/components/toast/toast.js +2 -2
  256. package/dist/collection/components/toggle/toggle.js +3 -3
  257. package/dist/collection/components/toolbar/toolbar.js +2 -2
  258. package/dist/collection/index.js +1 -1
  259. package/dist/collection/utils/overlay-control-label.js +45 -0
  260. package/dist/collection/utils/overlays.js +26 -30
  261. package/dist/collection/utils/platform.js +2 -2
  262. package/dist/collection/utils/sanitization/index.js +274 -18
  263. package/dist/collection/utils/select-option-render.js +119 -0
  264. package/dist/collection/utils/test/playwright/drag-element.js +0 -5
  265. package/dist/docs.json +556 -1272
  266. package/dist/esm/{app-globals-D0C5S4hU.js → app-globals-DNgPBV1i.js} +1 -1
  267. package/dist/esm/config-BwKpO3Is.js +31 -0
  268. package/dist/esm/{index-Q6UPU0Ay.js → index-0f4UTH6Z.js} +1 -1
  269. package/dist/esm/{index-DV3sJJW8.js → index-AlrZKoWR.js} +1 -1
  270. package/dist/esm/index-DQSkZyOJ.js +424 -0
  271. package/dist/esm/index.js +5 -4
  272. package/dist/esm/ion-accordion_2.entry.js +2 -2
  273. package/dist/esm/ion-action-sheet.entry.js +28 -8
  274. package/dist/esm/ion-alert.entry.js +64 -25
  275. package/dist/esm/ion-app_8.entry.js +24 -10
  276. package/dist/esm/ion-avatar_3.entry.js +2 -2
  277. package/dist/esm/ion-back-button.entry.js +2 -2
  278. package/dist/esm/ion-backdrop.entry.js +1 -1
  279. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  280. package/dist/esm/ion-button_2.entry.js +1 -1
  281. package/dist/esm/ion-card_5.entry.js +1 -1
  282. package/dist/esm/ion-checkbox.entry.js +1 -1
  283. package/dist/esm/ion-chip.entry.js +1 -1
  284. package/dist/esm/ion-col_3.entry.js +2 -2
  285. package/dist/esm/ion-datetime-button.entry.js +5 -11
  286. package/dist/esm/{ion-datetime_3.entry.js → ion-datetime.entry.js} +17 -659
  287. package/dist/esm/ion-fab_3.entry.js +2 -2
  288. package/dist/esm/ion-img.entry.js +5 -3
  289. package/dist/esm/ion-infinite-scroll_2.entry.js +3 -2
  290. package/dist/esm/ion-input-otp.entry.js +1 -1
  291. package/dist/esm/ion-input-password-toggle.entry.js +2 -2
  292. package/dist/esm/ion-input.entry.js +6 -6
  293. package/dist/esm/ion-item-option_3.entry.js +1 -1
  294. package/dist/esm/ion-item_8.entry.js +4 -4
  295. package/dist/esm/ion-loading.entry.js +10 -5
  296. package/dist/esm/ion-menu_3.entry.js +4 -4
  297. package/dist/esm/ion-modal.entry.js +24 -33
  298. package/dist/esm/ion-nav_2.entry.js +4 -117
  299. package/dist/esm/ion-picker-column-option.entry.js +4 -10
  300. package/dist/esm/ion-picker-column.entry.js +5 -11
  301. package/dist/esm/ion-popover.entry.js +10 -6
  302. package/dist/esm/ion-progress-bar.entry.js +2 -2
  303. package/dist/esm/ion-radio_2.entry.js +4 -4
  304. package/dist/esm/ion-range.entry.js +4 -4
  305. package/dist/esm/ion-refresher_2.entry.js +6 -5
  306. package/dist/esm/ion-reorder_2.entry.js +4 -4
  307. package/dist/esm/ion-ripple-effect.entry.js +2 -2
  308. package/dist/esm/ion-route_4.entry.js +19 -5
  309. package/dist/esm/ion-searchbar.entry.js +7 -7
  310. package/dist/esm/ion-segment-content.entry.js +1 -1
  311. package/dist/esm/ion-segment-view.entry.js +2 -2
  312. package/dist/esm/ion-segment_2.entry.js +5 -5
  313. package/dist/esm/ion-select-modal.entry.js +85 -31
  314. package/dist/esm/ion-select_3.entry.js +411 -53
  315. package/dist/esm/ion-spinner.entry.js +2 -2
  316. package/dist/esm/ion-split-pane.entry.js +3 -3
  317. package/dist/esm/ion-tab-bar_2.entry.js +5 -5
  318. package/dist/esm/ion-tab_2.entry.js +3 -3
  319. package/dist/esm/ion-text.entry.js +3 -3
  320. package/dist/esm/ion-textarea.entry.js +3 -3
  321. package/dist/esm/ion-toast.entry.js +6 -5
  322. package/dist/esm/ion-toggle.entry.js +5 -5
  323. package/dist/esm/{ionic-global-Cp_eT4sZ.js → ionic-global-pMW1XhFZ.js} +2 -2
  324. package/dist/esm/ionic.js +3 -3
  325. package/dist/esm/loader.js +3 -3
  326. package/dist/esm/overlay-control-label-BSQPZ79H.js +47 -0
  327. package/dist/esm/{overlays-Dg0q2_tJ.js → overlays-DVgWBV3s.js} +29 -33
  328. package/dist/esm/select-option-render-B8nWZRnd.js +122 -0
  329. package/dist/html.html-data.json +52 -80
  330. package/dist/ionic/index.esm.js +1 -1
  331. package/dist/ionic/ionic.esm.js +1 -1
  332. package/dist/ionic/{p-d889ff6d.entry.js → p-06cef0c6.entry.js} +1 -1
  333. package/dist/ionic/{p-c6e49f3f.entry.js → p-0be097d7.entry.js} +1 -1
  334. package/dist/ionic/{p-dfa8d673.entry.js → p-0e7de053.entry.js} +1 -1
  335. package/dist/ionic/p-129d3ed9.entry.js +4 -0
  336. package/dist/ionic/p-1d9e649a.entry.js +4 -0
  337. package/dist/ionic/p-2b3a2a38.entry.js +4 -0
  338. package/dist/ionic/{p-0fa9c382.entry.js → p-306b2e91.entry.js} +1 -1
  339. package/dist/ionic/{p-fabcce6c.entry.js → p-341032b3.entry.js} +1 -1
  340. package/dist/ionic/{p-37e720da.entry.js → p-34c8f2dc.entry.js} +1 -1
  341. package/dist/ionic/{p-e0be05c5.entry.js → p-3ce3a59d.entry.js} +1 -1
  342. package/dist/ionic/p-3d719e91.entry.js +4 -0
  343. package/dist/ionic/{p-3a7d1e91.entry.js → p-408afa6d.entry.js} +1 -1
  344. package/dist/ionic/{p-9a65ac7f.entry.js → p-426130ad.entry.js} +1 -1
  345. package/dist/ionic/p-5599e1e1.entry.js +4 -0
  346. package/dist/ionic/{p-75dc25ba.entry.js → p-567b25e9.entry.js} +1 -1
  347. package/dist/ionic/p-570a212e.entry.js +4 -0
  348. package/dist/ionic/{p-4858af1f.entry.js → p-656e8181.entry.js} +1 -1
  349. package/dist/ionic/p-686de5dc.entry.js +4 -0
  350. package/dist/ionic/{p-b6a7397c.entry.js → p-694aa5fc.entry.js} +1 -1
  351. package/dist/ionic/p-73d06afe.entry.js +4 -0
  352. package/dist/ionic/{p-34586ead.entry.js → p-79054426.entry.js} +1 -1
  353. package/dist/ionic/{p-9f1103ce.entry.js → p-79b2abe6.entry.js} +1 -1
  354. package/dist/ionic/p-7cb5cf53.entry.js +4 -0
  355. package/dist/ionic/{p-3353c229.entry.js → p-80b44b3c.entry.js} +1 -1
  356. package/dist/ionic/p-845eb5d5.entry.js +4 -0
  357. package/dist/ionic/p-88f33e44.entry.js +4 -0
  358. package/dist/ionic/p-89c9c057.entry.js +4 -0
  359. package/dist/ionic/{p-c4d8641b.entry.js → p-8c4bdd70.entry.js} +1 -1
  360. package/dist/ionic/{p-a3bdcae6.entry.js → p-8c898f59.entry.js} +1 -1
  361. package/dist/ionic/p-8cde6208.entry.js +4 -0
  362. package/dist/ionic/{p-5d1da0a2.entry.js → p-9366f06d.entry.js} +1 -1
  363. package/dist/ionic/p-9a29ba8c.entry.js +4 -0
  364. package/dist/ionic/{p-DV3sJJW8.js → p-AlrZKoWR.js} +1 -1
  365. package/dist/ionic/p-BDtODLZ4.js +4 -0
  366. package/dist/ionic/p-BSQPZ79H.js +4 -0
  367. package/dist/ionic/p-BwKpO3Is.js +4 -0
  368. package/dist/ionic/p-CGqbOURp.js +4 -0
  369. package/dist/ionic/{p-KjNvRoEp.js → p-D9iu80E_.js} +1 -1
  370. package/dist/ionic/p-DCOvXkOm.js +4 -0
  371. package/dist/ionic/p-DZigX5id.js +4 -0
  372. package/dist/ionic/p-DeSfrUWZ.js +4 -0
  373. package/dist/ionic/{p-84d5ce05.entry.js → p-a1448991.entry.js} +1 -1
  374. package/dist/ionic/{p-390ca786.entry.js → p-a256aeb6.entry.js} +1 -1
  375. package/dist/ionic/{p-8c8eee7d.entry.js → p-aeff523a.entry.js} +1 -1
  376. package/dist/ionic/{p-8eb8ee76.entry.js → p-b2f15bd0.entry.js} +1 -1
  377. package/dist/ionic/p-b7737b44.entry.js +4 -0
  378. package/dist/ionic/p-ba99d16b.entry.js +4 -0
  379. package/dist/ionic/{p-ef4c3bee.entry.js → p-cdfe2531.entry.js} +1 -1
  380. package/dist/ionic/p-cf68f89c.entry.js +4 -0
  381. package/dist/ionic/p-d183a4ba.entry.js +4 -0
  382. package/dist/ionic/p-d57560ff.entry.js +4 -0
  383. package/dist/ionic/p-d5be2815.entry.js +4 -0
  384. package/dist/ionic/{p-874b4bd8.entry.js → p-d6d91a44.entry.js} +1 -1
  385. package/dist/ionic/{p-4745f534.entry.js → p-e3842b54.entry.js} +1 -1
  386. package/dist/ionic/{p-3ae5f277.entry.js → p-e56b1836.entry.js} +1 -1
  387. package/dist/ionic/p-f09f9642.entry.js +4 -0
  388. package/dist/ionic/p-f2ae690a.entry.js +4 -0
  389. package/dist/ionic/{p-3a126bca.entry.js → p-f5b104d9.entry.js} +1 -1
  390. package/dist/ionic/p-f88310b9.entry.js +4 -0
  391. package/dist/ionic/p-fd4e56cd.entry.js +4 -0
  392. package/dist/types/components/img/img.d.ts +2 -0
  393. package/dist/types/components/input/input.d.ts +1 -1
  394. package/dist/types/components/modal/modal.d.ts +11 -4
  395. package/dist/types/components/nav/nav-interface.d.ts +0 -1
  396. package/dist/types/components/nav/nav.d.ts +2 -22
  397. package/dist/types/components/route/route.d.ts +1 -1
  398. package/dist/types/components/router-outlet/router-outlet.d.ts +7 -0
  399. package/dist/types/components/searchbar/searchbar.d.ts +1 -1
  400. package/dist/types/components/select/select-interface.d.ts +31 -0
  401. package/dist/types/components/select/select.d.ts +18 -0
  402. package/dist/types/components/select-option/select-option.d.ts +42 -1
  403. package/dist/types/components.d.ts +74 -311
  404. package/dist/types/index.d.ts +1 -1
  405. package/dist/types/interface.d.ts +0 -1
  406. package/dist/types/utils/config.d.ts +0 -8
  407. package/dist/types/utils/overlay-control-label.d.ts +32 -0
  408. package/dist/types/utils/overlays.d.ts +11 -9
  409. package/dist/types/utils/sanitization/index.d.ts +58 -2
  410. package/dist/types/utils/select-option-render.d.ts +53 -0
  411. package/hydrate/index.js +1355 -1261
  412. package/hydrate/index.mjs +1355 -1261
  413. package/package.json +37 -5
  414. package/components/ion-picker-legacy-column.d.ts +0 -11
  415. package/components/ion-picker-legacy-column.js +0 -4
  416. package/components/ion-picker-legacy.d.ts +0 -11
  417. package/components/ion-picker-legacy.js +0 -4
  418. package/components/p-BIPPbW0M.js +0 -4
  419. package/components/p-BUYFy35a.js +0 -4
  420. package/components/p-BWEZufiK.js +0 -4
  421. package/components/p-BjfgFSSR.js +0 -4
  422. package/components/p-BqpciLfi.js +0 -4
  423. package/components/p-BsPelv04.js +0 -4
  424. package/components/p-BsQPAqo9.js +0 -4
  425. package/components/p-CRNiQiYf.js +0 -4
  426. package/components/p-CU5rbWAW.js +0 -4
  427. package/components/p-DOFCbuQR.js +0 -4
  428. package/components/p-W5nO8mX_.js +0 -4
  429. package/components/p-k_E4tX5Z.js +0 -4
  430. package/components/p-nyXeHk23.js +0 -4
  431. package/dist/cjs/config-xninhj0J.js +0 -201
  432. package/dist/collection/components/picker-legacy/animations/ios.enter.js +0 -27
  433. package/dist/collection/components/picker-legacy/animations/ios.leave.js +0 -23
  434. package/dist/collection/components/picker-legacy/picker-interface.js +0 -1
  435. package/dist/collection/components/picker-legacy/picker.ios.css +0 -300
  436. package/dist/collection/components/picker-legacy/picker.js +0 -890
  437. package/dist/collection/components/picker-legacy/picker.md.css +0 -287
  438. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +0 -231
  439. package/dist/collection/components/picker-legacy-column/picker-column.js +0 -422
  440. package/dist/collection/components/picker-legacy-column/picker-column.md.css +0 -222
  441. package/dist/collection/components/picker-legacy-column/test/test.utils.js +0 -43
  442. package/dist/esm/config-DQCONYYp.js +0 -195
  443. package/dist/ionic/p-01f81ea5.entry.js +0 -4
  444. package/dist/ionic/p-06c232a4.entry.js +0 -4
  445. package/dist/ionic/p-0dc33652.entry.js +0 -4
  446. package/dist/ionic/p-20b1a044.entry.js +0 -4
  447. package/dist/ionic/p-21eb76d5.entry.js +0 -4
  448. package/dist/ionic/p-27d30585.entry.js +0 -4
  449. package/dist/ionic/p-2a05aa64.entry.js +0 -4
  450. package/dist/ionic/p-2bb2cb18.entry.js +0 -4
  451. package/dist/ionic/p-485fda23.entry.js +0 -4
  452. package/dist/ionic/p-4baa5b82.entry.js +0 -4
  453. package/dist/ionic/p-5018dfc8.entry.js +0 -4
  454. package/dist/ionic/p-50e1194a.entry.js +0 -4
  455. package/dist/ionic/p-5eb8e86d.entry.js +0 -4
  456. package/dist/ionic/p-65ebdf1b.entry.js +0 -4
  457. package/dist/ionic/p-6ebdbebe.entry.js +0 -4
  458. package/dist/ionic/p-8fce95d5.entry.js +0 -4
  459. package/dist/ionic/p-9f9db3a2.entry.js +0 -4
  460. package/dist/ionic/p-D-3ycHmd.js +0 -4
  461. package/dist/ionic/p-DzWaWHGc.js +0 -4
  462. package/dist/ionic/p-Nqf6uvGh.js +0 -4
  463. package/dist/ionic/p-SNAkTDfm.js +0 -4
  464. package/dist/ionic/p-a21add2f.entry.js +0 -4
  465. package/dist/ionic/p-c0fb8edd.entry.js +0 -4
  466. package/dist/ionic/p-c38b648e.entry.js +0 -4
  467. package/dist/ionic/p-ca2ab74d.entry.js +0 -4
  468. package/dist/ionic/p-e6a4bb56.entry.js +0 -4
  469. package/dist/ionic/p-ec090e0a.entry.js +0 -4
  470. package/dist/ionic/p-f386f6ae.entry.js +0 -4
  471. package/dist/types/components/picker-legacy/animations/ios.enter.d.ts +0 -5
  472. package/dist/types/components/picker-legacy/animations/ios.leave.d.ts +0 -5
  473. package/dist/types/components/picker-legacy/picker-interface.d.ts +0 -52
  474. package/dist/types/components/picker-legacy/picker.d.ts +0 -158
  475. package/dist/types/components/picker-legacy-column/picker-column.d.ts +0 -46
  476. package/dist/types/components/picker-legacy-column/test/test.utils.d.ts +0 -9
@@ -5,7 +5,7 @@ import { Host, h } from "@stencil/core";
5
5
  import { getIonMode } from "../../global/ionic-global";
6
6
  export class Thumbnail {
7
7
  render() {
8
- return (h(Host, { key: 'b250e01664238f1dca8f9757b15bc3d5d9387ffa', class: getIonMode(this) }, h("slot", { key: '72cb568bccabc983c5186a7596ef6c6d4ebf5ad9' })));
8
+ return (h(Host, { key: '833e947c683b482a78f8f0df8c9a68e99478bbaa', class: getIonMode(this) }, h("slot", { key: '6d1e9e686db88d91379f14121058dbf035d8ded2' })));
9
9
  }
10
10
  static get is() { return "ion-thumbnail"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -23,11 +23,11 @@ export class ToolbarTitle {
23
23
  render() {
24
24
  const mode = getIonMode(this);
25
25
  const size = this.getSize();
26
- return (h(Host, { key: '44e63f8439df64c470692904427b417e19406476', class: createColorClasses(this.color, {
26
+ return (h(Host, { key: 'd9317e8e66cb6112717f5a9c252658777efbd873', class: createColorClasses(this.color, {
27
27
  [mode]: true,
28
28
  [`title-${size}`]: true,
29
29
  'title-rtl': document.dir === 'rtl',
30
- }) }, h("div", { key: '784cf60a0db16045391891cc8fad0c7dbeba4039', class: "toolbar-title" }, h("slot", { key: '0c720a50479ba257e8756337aeb9b0ab7516a227' }))));
30
+ }) }, h("div", { key: 'a4d011d6d409bf006d8efe33667002edb109820a', class: "toolbar-title" }, h("slot", { key: '4ca3303b957a0e5387f1e9058e5adb4c6275afcc' }))));
31
31
  }
32
32
  static get is() { return "ion-title"; }
33
33
  static get encapsulation() { return "shadow"; }
@@ -417,9 +417,9 @@ export class Toast {
417
417
  if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
418
418
  printIonWarning('[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
419
419
  }
420
- return (h(Host, Object.assign({ key: 'b5256edcf33d0ef51e6c5080c84e1ca58abe2ae0', tabindex: "-1" }, this.htmlAttributes, { style: {
420
+ return (h(Host, Object.assign({ key: '2acb2cd2e12ea0082986495929e4a596d4da2f38', tabindex: "-1" }, this.htmlAttributes, { style: {
421
421
  zIndex: `${60000 + this.overlayIndex}`,
422
- }, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '0860f7e895d8bc66e44c4d924ca569f4cbb1a749', class: wrapperClass, part: "wrapper" }, h("div", { key: '28784199c880a3f664677c8f5560b7caa8903251', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: '0a63ba1336ad43d2aec14e49055eb46c112359c2', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: 'ecec8107af582dc55d4b3828dd7f3054a29f26b1', class: "toast-content", part: "content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
422
+ }, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '8b24ba5d3d51d1ab94b9bf6bb5d6e4b8bb3248a7', class: wrapperClass, part: "wrapper" }, h("div", { key: 'e1ebdf4f0425cc7b1e2688667ee9a2b3c545804a', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: '552b1ab8f4e72882cc8e878579c7a594119677e1', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '8ac8d64f632fbedadb180132c83043474466bee0', class: "toast-content", part: "content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
423
423
  }
424
424
  static get is() { return "ion-toast"; }
425
425
  static get encapsulation() { return "shadow"; }
@@ -287,7 +287,7 @@ export class Toggle {
287
287
  const value = this.getValue();
288
288
  const rtl = isRTL(el) ? 'rtl' : 'ltr';
289
289
  renderHiddenInput(true, el, name, checked ? value : '', disabled);
290
- return (h(Host, { key: '736e1dcfca34fd41f6f0632652e7f86d6996a232', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, "aria-required": required ? 'true' : undefined, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, class: createColorClasses(color, {
290
+ return (h(Host, { key: 'ab093ddb505af61685cbb8571af1e765fc0292f8', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, "aria-required": required ? 'true' : undefined, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, class: createColorClasses(color, {
291
291
  [mode]: true,
292
292
  'in-item': hostContext('ion-item', el),
293
293
  'toggle-activated': activated,
@@ -297,10 +297,10 @@ export class Toggle {
297
297
  [`toggle-alignment-${alignment}`]: alignment !== undefined,
298
298
  [`toggle-label-placement-${labelPlacement}`]: true,
299
299
  [`toggle-${rtl}`]: true,
300
- }) }, h("label", { key: 'e697739fd3964c1c6c23331cf7e38a9841c46a6a', class: "toggle-wrapper", htmlFor: inputId }, h("input", Object.assign({ key: '3d500b8c1bc879591249d183c1abb3f5f26aff6b', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, required: required }, inheritedAttributes)), h("div", { key: 'e38f3fe0e66b4ca434fd81514f5ef771c2960841', class: {
300
+ }) }, h("label", { key: 'b4b05e458fcbc767e4392ae43e647b075780cad0', class: "toggle-wrapper", htmlFor: inputId }, h("input", Object.assign({ key: 'c09100447011c51d5b49b4400ec7d72012e3bc6f', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, required: required }, inheritedAttributes)), h("div", { key: '71cf059a999ae572a20127b76907e010ace486ad', class: {
301
301
  'label-text-wrapper': true,
302
302
  'label-text-wrapper-hidden': !hasLabel,
303
- }, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: '006dd3558264d69ab020c07005b348adc4ecdd5b' }), this.renderHintText()), h("div", { key: 'dd4e52de31caabee41ec1bc58efecd1e213368c9', class: "native-wrapper" }, this.renderToggleControl()))));
303
+ }, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: 'c480b96a0ddd926568f73291d71253d6f74438c7' }), this.renderHintText()), h("div", { key: '96a2cbd1673e051a78f8b2b16535ecd3f0ed4339', class: "native-wrapper" }, this.renderToggleControl()))));
304
304
  }
305
305
  static get is() { return "ion-toggle"; }
306
306
  static get encapsulation() { return "shadow"; }
@@ -65,10 +65,10 @@ export class Toolbar {
65
65
  this.childrenStyles.forEach((value) => {
66
66
  Object.assign(childStyles, value);
67
67
  });
68
- return (h(Host, { key: 'b849db2863778dee6c5a251bffa1b3a657aeb036', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
68
+ return (h(Host, { key: '40bad6fa7e94262438da4bbe037dcf8a5fa2df22', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
69
69
  [mode]: true,
70
70
  'in-toolbar': hostContext('ion-toolbar', this.el),
71
- })) }, h("div", { key: '67f5bba9c4f527c3f35bfe1313a2b85741f9b246', class: "toolbar-background", part: "background" }), h("div", { key: '085e8c68f056e5b0deb9d1606431fbeb45dae8e5', class: "toolbar-container", part: "container" }, h("slot", { key: '15227c79c3baf883fd8c43fdb7e1313453933c79', name: "start" }), h("slot", { key: '0b8a7f7e685aa31c80d9bc03446ccc3a9d07e0e8', name: "secondary" }), h("div", { key: '57e4628c1fa89df79dd80456259db961bb691404', class: "toolbar-content", part: "content" }, h("slot", { key: '82c2f6e1acf8d96db259bd8baf295881801edbd5' })), h("slot", { key: 'b2d4afb15214199f206c0a5e08b581e4c9c2f58a', name: "primary" }), h("slot", { key: 'bfb909a0c472f8834046c2ea23bef2f562167ad3', name: "end" }))));
71
+ })) }, h("div", { key: 'df44c9f0fe3958116ab860b0dad79c53b89f6c59', class: "toolbar-background", part: "background" }), h("div", { key: '2169ffa576875b8d5624211cc0b4bf86191562bc', class: "toolbar-container", part: "container" }, h("slot", { key: 'c8910dcf1ce98ab427fd89c3396a67c2a75bdd07', name: "start" }), h("slot", { key: '05da24d5ef96b9eebd83b534ce02c1f7bcd06680', name: "secondary" }), h("div", { key: '090fea1541e7e2b6ad74a6ded4eadffdb471ccce', class: "toolbar-content", part: "content" }, h("slot", { key: '507e143f92f6fa59ff23d94026411fa2c74f2f8e' })), h("slot", { key: 'f79fdee472e657e26a910cb89d7551943e40e440', name: "primary" }), h("slot", { key: 'dd40fe9ed490cf4346c642e195fdb524dc6cc4f5', name: "end" }))));
72
72
  }
73
73
  static get is() { return "ion-toolbar"; }
74
74
  static get encapsulation() { return "shadow"; }
@@ -17,5 +17,5 @@ export { getMode, setupConfig } from './utils/config';
17
17
  export { openURL } from './utils/theme';
18
18
  export { LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, } from './components/nav/constants';
19
19
  export { menuController } from './utils/menu-controller';
20
- export { alertController, actionSheetController, modalController, loadingController, pickerController, popoverController, toastController, } from './utils/overlays';
20
+ export { alertController, actionSheetController, modalController, loadingController, popoverController, toastController, } from './utils/overlays';
21
21
  export { IonicSlides } from './components/slides/IonicSlides';
@@ -0,0 +1,45 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ // TODO(FW-6886, FW-6892, FW-6891): Remove this file in favor of the Modular Ionic component config. Each overlay will be able to select its own defaults for label placement and justify based on the interface and mode, so this utility will no longer be necessary.
5
+ /**
6
+ * Returns the default `labelPlacement` for a radio or checkbox option
7
+ * rendered inside an overlay. Defaults follow each mode's established
8
+ * option-row layout:
9
+ * - `ios`: `"start"` for radio in `alert` and `popover`. The `modal`
10
+ * interface flips iOS radio back to `"end"`. Checkbox is always
11
+ * `"end"` on iOS.
12
+ * - everything else (e.g. `md`): `"end"`.
13
+ *
14
+ * `interfaceType` is optional; only `"modal"` changes the result, so
15
+ * callers that aren't a modal can omit it.
16
+ *
17
+ * Used by `select-popover` and `select-modal` as the fallback when an
18
+ * option doesn't explicitly set `labelPlacement`.
19
+ */
20
+ export const getOverlayLabelPlacement = (mode, control, interfaceType) => {
21
+ if (mode === 'ios' && control === 'radio' && interfaceType !== 'modal') {
22
+ return 'start';
23
+ }
24
+ return 'end';
25
+ };
26
+ /**
27
+ * Returns the default `justify` for a radio or checkbox option rendered
28
+ * inside an overlay. Defaults follow each mode's option-row layout:
29
+ * - `ios`: `"space-between"` for radio in `alert` and `popover`. The
30
+ * `modal` interface falls back to `"start"`. Checkbox is always `"start"`
31
+ * on iOS.
32
+ * - everything else (e.g. `md`): `"start"`.
33
+ *
34
+ * `interfaceType` is optional; only `"modal"` changes the result, so
35
+ * callers that aren't a modal can omit it.
36
+ *
37
+ * Used by `select-popover` and `select-modal` as the fallback when an
38
+ * option doesn't explicitly set `justify`.
39
+ */
40
+ export const getOverlayLabelJustify = (mode, control, interfaceType) => {
41
+ if (mode === 'ios' && control === 'radio' && interfaceType !== 'modal') {
42
+ return 'space-between';
43
+ }
44
+ return 'start';
45
+ };
@@ -39,10 +39,6 @@ export const alertController = /*@__PURE__*/ createController('ion-alert');
39
39
  export const actionSheetController = /*@__PURE__*/ createController('ion-action-sheet');
40
40
  export const loadingController = /*@__PURE__*/ createController('ion-loading');
41
41
  export const modalController = /*@__PURE__*/ createController('ion-modal');
42
- /**
43
- * @deprecated Use the inline ion-picker component instead.
44
- */
45
- export const pickerController = /*@__PURE__*/ createController('ion-picker-legacy');
46
42
  export const popoverController = /*@__PURE__*/ createController('ion-popover');
47
43
  export const toastController = /*@__PURE__*/ createController('ion-toast');
48
44
  /**
@@ -136,7 +132,7 @@ const focusElementInOverlay = (hostToFocus, overlay) => {
136
132
  * Should NOT include: Toast
137
133
  */
138
134
  const trapKeyboardFocus = (ev, doc) => {
139
- const lastOverlay = getPresentedOverlay(doc, 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover');
135
+ const lastOverlay = getPresentedOverlay(doc, 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-popover');
140
136
  const target = ev.target;
141
137
  /**
142
138
  * If no active overlay, ignore this event.
@@ -370,7 +366,7 @@ export const dismissOverlay = (doc, data, role, overlayTag, id) => {
370
366
  */
371
367
  export const getOverlays = (doc, selector) => {
372
368
  if (selector === undefined) {
373
- selector = 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast';
369
+ selector = 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-popover,ion-toast';
374
370
  }
375
371
  return Array.from(doc.querySelectorAll(selector)).filter((c) => c.overlayIndex > 0);
376
372
  };
@@ -432,6 +428,29 @@ export const setRootAriaHidden = (hidden = false) => {
432
428
  viewContainer.removeAttribute('aria-hidden');
433
429
  }
434
430
  };
431
+ /**
432
+ * Cleans up root `aria-hidden` and `backdrop-no-scroll` when
433
+ * an overlay is removed from the DOM without going through
434
+ * the `dismiss()` flow (e.g., when a framework unmounts the
435
+ * overlay during a route change).
436
+ *
437
+ * Should be called from an overlay's `disconnectedCallback`
438
+ * when the overlay was still presented at the time of removal.
439
+ */
440
+ export const cleanupRootFocusTrapAccessibility = () => {
441
+ if (typeof document === 'undefined') {
442
+ return;
443
+ }
444
+ const remainingOverlays = getPresentedOverlays(document);
445
+ const hasRemainingLocking = remainingOverlays.some((o) => {
446
+ const el = o;
447
+ return el.tagName !== 'ION-TOAST' && el.focusTrap !== false && isBackdropAlwaysBlocking(el);
448
+ });
449
+ if (!hasRemainingLocking) {
450
+ setRootAriaHidden(false);
451
+ document.body.classList.remove(BACKDROP_NO_SCROLL);
452
+ }
453
+ };
435
454
  export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
436
455
  var _a, _b;
437
456
  if (overlay.presented) {
@@ -497,30 +516,7 @@ export const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation
497
516
  * to the overlay container.
498
517
  */
499
518
  if (overlay.keyboardClose && (document.activeElement === null || !overlay.el.contains(document.activeElement))) {
500
- /**
501
- * Some overlays (e.g. modal) put the dialog role and accessible label
502
- * on the `.ion-overlay-wrapper` instead of the host. Screen readers
503
- * need focus on the element with `role="dialog"` to properly announce
504
- * and navigate the dialog.
505
- *
506
- * We only target wrappers with `tabindex`, since `role="dialog"` alone
507
- * does not make an element focusable. If no focusable dialog wrapper
508
- * exists (e.g. picker-legacy), we fall back to the host.
509
- */
510
- const overlayWrapper = getElementRoot(overlay.el).querySelector('[role="dialog"][tabindex]');
511
- const focusTarget = overlayWrapper !== null && overlayWrapper !== void 0 ? overlayWrapper : overlay.el;
512
- /**
513
- * `preventScroll` keeps this a pure focus move so the viewport does not
514
- * jump when the wrapper is partially off-screen (e.g. a sheet modal).
515
- * Guard the options call so an older engine that mishandles it can never
516
- * reject present(); we fall back to a plain focus() in that case.
517
- */
518
- try {
519
- focusTarget.focus({ preventScroll: true });
520
- }
521
- catch (_c) {
522
- focusTarget.focus();
523
- }
519
+ overlay.el.focus();
524
520
  }
525
521
  /**
526
522
  * If this overlay was previously dismissed without being
@@ -66,9 +66,9 @@ const isDesktop = (win) => !isMobile(win);
66
66
  const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
67
67
  const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
68
68
  const isCapacitorNative = (win) => {
69
+ var _a;
69
70
  const capacitor = win['Capacitor'];
70
- // TODO(ROU-11693): Remove when we no longer support Capacitor 2, which does not have isNativePlatform
71
- return !!((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative) || ((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNativePlatform) && !!capacitor.isNativePlatform()));
71
+ return !!((_a = capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNativePlatform) === null || _a === void 0 ? void 0 : _a.call(capacitor));
72
72
  };
73
73
  const isElectron = (win) => testUserAgent(win, /electron/i);
74
74
  const isPWA = (win) => { var _a; return !!(((_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, '(display-mode: standalone)').matches) || win.navigator.standalone); };
@@ -3,8 +3,26 @@
3
3
  */
4
4
  import { printIonError } from "../logging/index";
5
5
  /**
6
- * Does a simple sanitization of all elements
7
- * in an untrusted string
6
+ * Sanitize an untrusted HTML string.
7
+ *
8
+ * Parses the string into a detached DOM, removes blocked tags, strips
9
+ * attributes outside the narrow `domStringAllowedAttributes` list (refer
10
+ * `sanitizeElement`), and scrubs script-scheme URLs. Returns the sanitized
11
+ * HTML string.
12
+ *
13
+ * Use this when you have an HTML string from an unknown source and need to
14
+ * render it via `innerHTML`. Use `sanitizeDOMTree` instead when you already
15
+ * have a DOM tree and want to sanitize it in place without a string round
16
+ * trip. The two apply the same dangerous-vector scrubbing but different
17
+ * attribute allowlists: this path stays narrow so existing consumers
18
+ * (toast, loading, alert message, etc.) are unaffected, while
19
+ * `sanitizeDOMTree` uses the wider rich-content allowlist.
20
+ *
21
+ * @param untrustedString - The HTML string to sanitize. Pass an
22
+ * `IonicSafeString` to bypass sanitization, or `undefined` to short-circuit.
23
+ * @returns The sanitized HTML string, or `undefined` if the input was
24
+ * `undefined`. Returns `''` if sanitization fails or the input contains
25
+ * an inline `onload=` handler.
8
26
  */
9
27
  export const sanitizeDOMString = (untrustedString) => {
10
28
  try {
@@ -54,7 +72,7 @@ export const sanitizeDOMString = (untrustedString) => {
54
72
  const childElements = getElementChildren(element);
55
73
  /* eslint-disable-next-line */
56
74
  for (let childIndex = 0; childIndex < childElements.length; childIndex++) {
57
- sanitizeElement(childElements[childIndex]);
75
+ sanitizeElement(childElements[childIndex], domStringAllowedAttributes);
58
76
  }
59
77
  }
60
78
  });
@@ -66,7 +84,7 @@ export const sanitizeDOMString = (untrustedString) => {
66
84
  const dfChildren = getElementChildren(documentFragment);
67
85
  /* eslint-disable-next-line */
68
86
  for (let childIndex = 0; childIndex < dfChildren.length; childIndex++) {
69
- sanitizeElement(dfChildren[childIndex]);
87
+ sanitizeElement(dfChildren[childIndex], domStringAllowedAttributes);
70
88
  }
71
89
  // Append document fragment to div
72
90
  const fragmentDiv = document.createElement('div');
@@ -80,13 +98,43 @@ export const sanitizeDOMString = (untrustedString) => {
80
98
  return '';
81
99
  }
82
100
  };
101
+ /**
102
+ * Sanitize an entire trusted DOM tree in place.
103
+ *
104
+ * Removes blocked tags (`script`, `iframe`, etc.) from the subtree and
105
+ * then sanitizes attributes on every remaining element using the wider
106
+ * `richContentAllowedAttributes` allowlist (refer `sanitizeElement`).
107
+ * Component presentational attributes (`size`, `color`, `shape`, inline
108
+ * SVG, `aria-*`, `data-*`) are preserved; `style`, event handlers (`on*`),
109
+ * form/navigation-hijack attributes, script-scheme URLs, and non-image
110
+ * `data:` URLs are stripped.
111
+ *
112
+ * Use this when you have a DOM tree the developer controls (e.g.
113
+ * cloned slot content from a component) and you need to render it
114
+ * elsewhere safely.
115
+ *
116
+ * @param root - The root element whose subtree will be sanitized in
117
+ * place. No-op when the sanitizer is disabled via `Ionic.config`.
118
+ */
119
+ export const sanitizeDOMTree = (root) => {
120
+ if (!isSanitizerEnabled()) {
121
+ return;
122
+ }
123
+ blockedTags.forEach((tag) => {
124
+ const matches = root.querySelectorAll(tag);
125
+ for (let i = matches.length - 1; i >= 0; i--) {
126
+ matches[i].remove();
127
+ }
128
+ });
129
+ sanitizeElement(root, richContentAllowedAttributes, richContentAllowedAttributePrefixes);
130
+ };
83
131
  /**
84
132
  * Clean up current element based on allowed attributes
85
133
  * and then recursively dig down into any child elements to
86
134
  * clean those up as well
87
135
  */
88
136
  // TODO(FW-2832): type (using Element triggers other type errors as well)
89
- const sanitizeElement = (element) => {
137
+ const sanitizeElement = (element, allowedAttributes, allowedAttributePrefixes = []) => {
90
138
  // IE uses childNodes, so ignore nodes that are not elements
91
139
  if (element.nodeType && element.nodeType !== 1) {
92
140
  return;
@@ -101,29 +149,60 @@ const sanitizeElement = (element) => {
101
149
  element.remove();
102
150
  return;
103
151
  }
152
+ /**
153
+ * Always strip `style` (CSS injection, `background:url()` beaconing, UI
154
+ * spoofing). It is never on the allowlist, but it is removed explicitly
155
+ * here because some engines (e.g. jsdom) don't enumerate the CSSOM-backed
156
+ * `style` attribute in `element.attributes`, which would let the loop
157
+ * below skip over it.
158
+ */
159
+ element.removeAttribute('style');
104
160
  for (let i = element.attributes.length - 1; i >= 0; i--) {
105
161
  const attribute = element.attributes.item(i);
106
162
  const attributeName = attribute.name;
107
- // remove non-allowed attribs
108
- if (!allowedAttributes.includes(attributeName.toLowerCase())) {
163
+ const lowerName = attributeName.toLowerCase();
164
+ /**
165
+ * Remove any attribute that is not on the allowlist. This drops event
166
+ * handlers (`on*`), `style`, the form/navigation-hijack attributes
167
+ * (`formaction`, `action`, `target`), namespaced attributes like
168
+ * `xlink:href`, and anything else not explicitly known to be safe.
169
+ */
170
+ if (!isAttributeAllowed(lowerName, allowedAttributes, allowedAttributePrefixes)) {
109
171
  element.removeAttribute(attributeName);
110
172
  continue;
111
173
  }
112
174
  // clean up any allowed attribs
113
175
  // that attempt to do any JS funny-business
114
176
  const attributeValue = attribute.value;
177
+ if (attributeValue == null) {
178
+ continue;
179
+ }
115
180
  /**
116
- * We also need to check the property value
117
- * as javascript: can allow special characters
118
- * such as &Tab; and still be valid (i.e. java&Tab;script)
181
+ * Scrub dangerous schemes from the value. The value is normalized first
182
+ * (whitespace and ASCII control characters removed) so entity-obfuscated
183
+ * payloads such as `java&#9;script:`, which the parser decodes to
184
+ * `java\tscript:`, are still caught. Normalizing the value also covers
185
+ * namespaced attributes, where the previous `element[attributeName]`
186
+ * property reflection returned `undefined` and let them slip through.
119
187
  */
120
- const propertyValue = element[attributeName];
121
- /* eslint-disable */
122
- if ((attributeValue != null && attributeValue.toLowerCase().includes('javascript:')) ||
123
- (propertyValue != null && propertyValue.toLowerCase().includes('javascript:'))) {
188
+ const normalizedValue = attributeValue.replace(controlCharactersAndWhitespace, '').toLowerCase();
189
+ // Script schemes are never allowed, on any attribute.
190
+ if (normalizedValue.includes('javascript:') || normalizedValue.includes('vbscript:')) {
191
+ element.removeAttribute(attributeName);
192
+ continue;
193
+ }
194
+ /**
195
+ * For URL-bearing attributes, allow `data:` URIs only for raster
196
+ * images. Document-bearing types (`text/html`, `image/svg+xml`,
197
+ * `application/*`, etc.) can carry markup or script when navigated to
198
+ * or rendered, so they are stripped, while safe image types are kept so
199
+ * inline images keep working.
200
+ */
201
+ if (urlAttributes.includes(lowerName) &&
202
+ normalizedValue.startsWith('data:') &&
203
+ !safeDataImageUri.test(normalizedValue)) {
124
204
  element.removeAttribute(attributeName);
125
205
  }
126
- /* eslint-enable */
127
206
  }
128
207
  /**
129
208
  * Sanitize any nested children
@@ -131,7 +210,7 @@ const sanitizeElement = (element) => {
131
210
  const childElements = getElementChildren(element);
132
211
  /* eslint-disable-next-line */
133
212
  for (let i = 0; i < childElements.length; i++) {
134
- sanitizeElement(childElements[i]);
213
+ sanitizeElement(childElements[i], allowedAttributes, allowedAttributePrefixes);
135
214
  }
136
215
  };
137
216
  /**
@@ -156,8 +235,185 @@ const isSanitizerEnabled = () => {
156
235
  }
157
236
  return true;
158
237
  };
159
- const allowedAttributes = ['class', 'id', 'href', 'src', 'name', 'slot'];
160
- const blockedTags = ['script', 'style', 'iframe', 'meta', 'link', 'object', 'embed'];
238
+ /**
239
+ * Mirror known custom-element DOM properties onto attributes so they
240
+ * survive `cloneNode`. Call this on a DOM subtree before cloning it for
241
+ * rendering elsewhere (e.g. cloning slotted option content into an
242
+ * overlay).
243
+ *
244
+ * Only sets the attribute when the property holds a non-empty string
245
+ * and the attribute isn't already present, so existing attributes
246
+ * take precedence.
247
+ *
248
+ * @param root - The root element whose subtree (and itself) will be
249
+ * inspected.
250
+ */
251
+ export const reflectPropertiesToAttributes = (root) => {
252
+ const candidates = [];
253
+ if (root.tagName in elementPropsToReflect) {
254
+ candidates.push(root);
255
+ }
256
+ for (const tagName of Object.keys(elementPropsToReflect)) {
257
+ candidates.push(...Array.from(root.querySelectorAll(tagName.toLowerCase())));
258
+ }
259
+ for (const el of candidates) {
260
+ if (!(el.tagName in elementPropsToReflect)) {
261
+ continue;
262
+ }
263
+ const props = elementPropsToReflect[el.tagName];
264
+ for (const prop of props) {
265
+ const value = el[prop];
266
+ if (typeof value === 'string' && value.length > 0 && !el.hasAttribute(prop)) {
267
+ el.setAttribute(prop, value);
268
+ }
269
+ }
270
+ }
271
+ };
272
+ /**
273
+ * Attribute allowlist for `sanitizeDOMString`. Intentionally narrow: this
274
+ * path sanitizes developer HTML strings rendered via `innerHTML` by
275
+ * `ion-toast`, `ion-loading`, the `ion-alert` message,
276
+ * `ion-refresher-content`, and `ion-infinite-scroll-content`, so the list
277
+ * is kept to the minimum those have always needed. Broadening it here would
278
+ * change sanitization output for all of those consumers, so the wider
279
+ * rich-content allowlist below is deliberately scoped to `sanitizeDOMTree`
280
+ * instead.
281
+ */
282
+ const domStringAllowedAttributes = ['class', 'id', 'href', 'src', 'name', 'slot'];
283
+ /**
284
+ * Attribute allowlist for `sanitizeDOMTree` (the select rich-content path).
285
+ * Covers global HTML attributes, the Ionic component presentational props
286
+ * that cloned rich content (e.g. `ion-select-option` markup) relies on, and
287
+ * the inert SVG presentation attributes used by inline icons.
288
+ *
289
+ * `aria-*` and `data-*` are allowed separately by prefix (refer
290
+ * `richContentAllowedAttributePrefixes`) since they are inert and not worth
291
+ * enumerating. URL-bearing names (`href`, `src`) are allowed here, but
292
+ * their values are still scrubbed for script schemes in `sanitizeElement`.
293
+ *
294
+ * Notably absent: `style`, event handlers (`on*`), and the
295
+ * form/navigation-hijack attributes (`formaction`, `action`, `target`),
296
+ * which are therefore stripped.
297
+ */
298
+ const richContentAllowedAttributes = [
299
+ // Global / structural
300
+ 'class',
301
+ 'id',
302
+ 'slot',
303
+ 'name',
304
+ 'title',
305
+ 'alt',
306
+ 'lang',
307
+ 'dir',
308
+ 'role',
309
+ 'type',
310
+ 'value',
311
+ 'disabled',
312
+ 'width',
313
+ 'height',
314
+ 'href',
315
+ 'src',
316
+ // Ionic component presentational props
317
+ 'color',
318
+ 'size',
319
+ 'shape',
320
+ 'fill',
321
+ 'expand',
322
+ 'mode',
323
+ 'theme',
324
+ 'icon',
325
+ 'label',
326
+ 'label-placement',
327
+ 'justify',
328
+ 'inset',
329
+ 'lines',
330
+ 'ios',
331
+ 'md',
332
+ // SVG presentation attributes (compared lowercased, e.g. `viewBox`)
333
+ 'xmlns',
334
+ 'viewbox',
335
+ 'preserveaspectratio',
336
+ 'stroke',
337
+ 'stroke-width',
338
+ 'stroke-linecap',
339
+ 'stroke-linejoin',
340
+ 'stroke-opacity',
341
+ 'stroke-dasharray',
342
+ 'fill-rule',
343
+ 'fill-opacity',
344
+ 'clip-rule',
345
+ 'd',
346
+ 'points',
347
+ 'cx',
348
+ 'cy',
349
+ 'r',
350
+ 'rx',
351
+ 'ry',
352
+ 'x',
353
+ 'y',
354
+ 'x1',
355
+ 'y1',
356
+ 'x2',
357
+ 'y2',
358
+ 'transform',
359
+ 'opacity',
360
+ ];
361
+ /**
362
+ * Attribute-name prefixes that are always safe to keep in the rich-content
363
+ * path. `aria-*` and `data-*` attributes cannot execute script or load
364
+ * resources, so they are allowed wholesale rather than enumerated by name.
365
+ */
366
+ const richContentAllowedAttributePrefixes = ['aria-', 'data-'];
367
+ /**
368
+ * Whether an attribute name (already lowercased) is safe to keep, by exact
369
+ * match or by an allowed prefix.
370
+ */
371
+ const isAttributeAllowed = (lowerName, allowedAttributes, allowedAttributePrefixes) => {
372
+ if (allowedAttributes.includes(lowerName)) {
373
+ return true;
374
+ }
375
+ return allowedAttributePrefixes.some((prefix) => lowerName.startsWith(prefix));
376
+ };
377
+ /**
378
+ * Matches ASCII control characters and whitespace (including the
379
+ * non-breaking space). Used to normalize attribute values before matching
380
+ * a URL scheme so entity-obfuscated payloads such as `java&#9;script:`
381
+ * (decoded by the parser to `java\tscript:`) can't smuggle a scheme past
382
+ * the check.
383
+ */
384
+ // eslint-disable-next-line no-control-regex -- matching control characters is the point
385
+ const controlCharactersAndWhitespace = /[\u0000-\u0020\u007f-\u00a0]/g;
386
+ /**
387
+ * Attributes whose values are URLs. Their values are scheme-checked in
388
+ * `sanitizeElement` (e.g. `data:` filtering) beyond the script-scheme scrub
389
+ * applied to every attribute.
390
+ */
391
+ const urlAttributes = ['href', 'src'];
392
+ /**
393
+ * Matches a `data:` URI for a raster image type that cannot carry script.
394
+ * `image/svg+xml` is deliberately excluded (SVG can execute script), as are
395
+ * document types like `text/html` and `application/*`. The value is already
396
+ * lowercased and whitespace-stripped before this is tested.
397
+ */
398
+ const safeDataImageUri = /^data:image\/(?:png|jpe?g|gif|webp|bmp|avif|x-icon|vnd\.microsoft\.icon)[;,]/;
399
+ /**
400
+ * Tags removed entirely (with their subtree) before attribute sanitization.
401
+ * Exported so tests can assert the set without hardcoding it.
402
+ */
403
+ export const blockedTags = ['script', 'style', 'iframe', 'meta', 'link', 'object', 'embed', 'base'];
404
+ /**
405
+ * Properties on custom elements that frameworks (Vue, Angular) often
406
+ * set as DOM properties rather than attributes. `cloneNode` only copies
407
+ * attributes, so these values are lost when slotted content is cloned
408
+ * into an overlay. For each known custom element, we mirror the listed
409
+ * properties onto attributes so the cloned copy still has the data it
410
+ * needs to render.
411
+ *
412
+ * Keyed by uppercased tagName so the lookup matches `Element.tagName`.
413
+ */
414
+ const elementPropsToReflect = {
415
+ 'ION-ICON': ['icon', 'name', 'src', 'ios', 'md'],
416
+ };
161
417
  export class IonicSafeString {
162
418
  constructor(value) {
163
419
  this.value = value;