@ionic/core 8.7.6-dev.11761146245.19b2e6db → 8.7.6-dev.11761592056.19dedfdf

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 (513) hide show
  1. package/components/action-sheet.js +6 -8
  2. package/components/alert.js +6 -8
  3. package/components/backdrop.js +3 -5
  4. package/components/button.js +4 -6
  5. package/components/buttons.js +3 -5
  6. package/components/checkbox.js +3 -5
  7. package/components/content.js +3 -5
  8. package/components/data.js +6 -9
  9. package/components/header.js +3 -5
  10. package/components/icon.js +3 -5
  11. package/components/ion-accordion-group.js +3 -5
  12. package/components/ion-accordion.js +3 -5
  13. package/components/ion-app.js +3 -5
  14. package/components/ion-avatar.js +3 -5
  15. package/components/ion-back-button.js +4 -6
  16. package/components/ion-badge.js +3 -5
  17. package/components/ion-breadcrumb.js +4 -6
  18. package/components/ion-breadcrumbs.js +3 -5
  19. package/components/ion-card-content.js +3 -5
  20. package/components/ion-card-header.js +3 -5
  21. package/components/ion-card-subtitle.js +3 -5
  22. package/components/ion-card-title.js +3 -5
  23. package/components/ion-card.js +4 -6
  24. package/components/ion-chip.js +3 -5
  25. package/components/ion-col.js +3 -5
  26. package/components/ion-datetime-button.js +3 -5
  27. package/components/ion-datetime.js +7 -9
  28. package/components/ion-divider.js +3 -5
  29. package/components/ion-fab-button.js +4 -6
  30. package/components/ion-fab-list.js +3 -5
  31. package/components/ion-fab.js +3 -5
  32. package/components/ion-footer.js +3 -5
  33. package/components/ion-grid.js +3 -5
  34. package/components/ion-img.js +3 -5
  35. package/components/ion-infinite-scroll-content.js +3 -5
  36. package/components/ion-infinite-scroll.js +3 -5
  37. package/components/ion-input-otp.js +3 -5
  38. package/components/ion-input-password-toggle.js +3 -5
  39. package/components/ion-input.js +4 -6
  40. package/components/ion-item-divider.js +3 -5
  41. package/components/ion-item-group.js +3 -5
  42. package/components/ion-item-option.js +3 -5
  43. package/components/ion-item-options.js +3 -5
  44. package/components/ion-item-sliding.js +3 -5
  45. package/components/ion-loading.js +6 -8
  46. package/components/ion-menu-button.js +3 -5
  47. package/components/ion-menu-toggle.js +3 -5
  48. package/components/ion-menu.js +3 -5
  49. package/components/ion-nav-link.js +5 -7
  50. package/components/ion-nav.js +4 -6
  51. package/components/ion-note.js +3 -5
  52. package/components/ion-picker-legacy.js +6 -8
  53. package/components/ion-progress-bar.js +3 -5
  54. package/components/ion-range.js +4 -6
  55. package/components/ion-refresher-content.js +3 -5
  56. package/components/ion-refresher.js +3 -5
  57. package/components/ion-reorder-group.js +3 -5
  58. package/components/ion-reorder.js +3 -5
  59. package/components/ion-route-redirect.js +2 -4
  60. package/components/ion-route.js +5 -7
  61. package/components/ion-router-link.js +4 -6
  62. package/components/ion-router-outlet.js +4 -6
  63. package/components/ion-router.js +2 -4
  64. package/components/ion-row.js +3 -5
  65. package/components/ion-searchbar.js +3 -5
  66. package/components/ion-segment-button.js +3 -5
  67. package/components/ion-segment-content.js +3 -5
  68. package/components/ion-segment-view.js +3 -5
  69. package/components/ion-segment.js +3 -5
  70. package/components/ion-select-option.js +3 -5
  71. package/components/ion-select.js +4 -6
  72. package/components/ion-skeleton-text.js +3 -5
  73. package/components/ion-split-pane.js +3 -5
  74. package/components/ion-tab-bar.js +3 -5
  75. package/components/ion-tab-button.js +3 -5
  76. package/components/ion-tab.js +3 -5
  77. package/components/ion-tabs.js +3 -5
  78. package/components/ion-text.js +3 -5
  79. package/components/ion-textarea.js +4 -6
  80. package/components/ion-thumbnail.js +3 -5
  81. package/components/ion-toast.js +6 -8
  82. package/components/ion-toggle.js +3 -5
  83. package/components/item.js +4 -6
  84. package/components/label.js +3 -5
  85. package/components/list-header.js +3 -5
  86. package/components/list.js +3 -5
  87. package/components/modal.js +8 -10
  88. package/components/picker-column-option.js +3 -5
  89. package/components/picker-column.js +3 -5
  90. package/components/picker-column2.js +3 -5
  91. package/components/picker.js +3 -5
  92. package/components/popover.js +7 -9
  93. package/components/radio-group.js +3 -5
  94. package/components/radio.js +3 -5
  95. package/components/ripple-effect.js +3 -5
  96. package/components/select-modal.js +5 -7
  97. package/components/select-popover.js +5 -7
  98. package/components/spinner.js +3 -5
  99. package/components/title.js +3 -5
  100. package/components/toolbar.js +3 -5
  101. package/dist/cjs/{animation-BYsP2q5j.js → animation-Bcz4qmJk.js} +2 -3
  102. package/dist/cjs/{button-active-CDa7BeCl.js → button-active-1nO6qpCH.js} +2 -2
  103. package/dist/cjs/{capacitor-BMhHF0O5.js → capacitor-CzFst28-.js} +3 -3
  104. package/dist/cjs/{config-C5fsO43a.js → config-DGKt4XfG.js} +1 -1
  105. package/dist/cjs/{data-MoL8Ckx5.js → data-B3i-krcw.js} +7 -10
  106. package/dist/cjs/{framework-delegate-Bwdk9vFS.js → framework-delegate-DfEY5uyC.js} +2 -2
  107. package/dist/cjs/{haptic-Cy3moXzO.js → haptic-DbqPcCc9.js} +1 -1
  108. package/dist/cjs/{helpers-DnouLczu.js → helpers-DmAvmm2T.js} +1 -1
  109. package/dist/cjs/{index-DUoP_H1L.js → index-CaZ3uzAD.js} +2 -2
  110. package/dist/cjs/{index-D6Wc6v08.js → index-CmckMMX1.js} +691 -310
  111. package/dist/cjs/{index-XjN3PjKG.js → index-DcPe_YcG.js} +8 -9
  112. package/dist/cjs/{index-Dbl8V7hw.js → index-DxVhwe3d.js} +4 -4
  113. package/dist/cjs/{index-Bq6U5NAb.js → index-YEjC0pvJ.js} +7 -8
  114. package/dist/cjs/index.cjs.js +14 -15
  115. package/dist/cjs/{input-shims-D6DHFHsE.js → input-shims-BwdlNkON.js} +16 -17
  116. package/dist/cjs/{input.utils-BVyJKWft.js → input.utils-CfjyQhpu.js} +3 -4
  117. package/dist/cjs/ion-accordion_2.cjs.entry.js +6 -7
  118. package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -11
  119. package/dist/cjs/ion-alert.cjs.entry.js +13 -14
  120. package/dist/cjs/ion-app_8.cjs.entry.js +21 -22
  121. package/dist/cjs/ion-avatar_3.cjs.entry.js +8 -9
  122. package/dist/cjs/ion-back-button.cjs.entry.js +5 -6
  123. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -3
  124. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +6 -7
  125. package/dist/cjs/ion-button_2.cjs.entry.js +5 -6
  126. package/dist/cjs/ion-card_5.cjs.entry.js +7 -8
  127. package/dist/cjs/ion-checkbox.cjs.entry.js +3 -4
  128. package/dist/cjs/ion-chip.cjs.entry.js +4 -5
  129. package/dist/cjs/ion-col_3.cjs.entry.js +4 -5
  130. package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -5
  131. package/dist/cjs/ion-datetime_3.cjs.entry.js +18 -19
  132. package/dist/cjs/ion-divider.cjs.entry.js +2 -3
  133. package/dist/cjs/ion-fab_3.cjs.entry.js +6 -7
  134. package/dist/cjs/ion-img.cjs.entry.js +3 -4
  135. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +7 -8
  136. package/dist/cjs/ion-input-otp.cjs.entry.js +3 -4
  137. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +4 -5
  138. package/dist/cjs/ion-input.cjs.entry.js +12 -13
  139. package/dist/cjs/ion-item-option_3.cjs.entry.js +7 -8
  140. package/dist/cjs/ion-item_8.cjs.entry.js +12 -13
  141. package/dist/cjs/ion-loading.cjs.entry.js +8 -9
  142. package/dist/cjs/ion-menu_3.cjs.entry.js +14 -15
  143. package/dist/cjs/ion-modal.cjs.entry.js +62 -63
  144. package/dist/cjs/ion-nav_2.cjs.entry.js +8 -9
  145. package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -4
  146. package/dist/cjs/ion-picker-column.cjs.entry.js +8 -9
  147. package/dist/cjs/ion-picker.cjs.entry.js +2 -2
  148. package/dist/cjs/ion-popover.cjs.entry.js +9 -10
  149. package/dist/cjs/ion-progress-bar.cjs.entry.js +4 -5
  150. package/dist/cjs/ion-radio_2.cjs.entry.js +4 -5
  151. package/dist/cjs/ion-range.cjs.entry.js +4 -5
  152. package/dist/cjs/ion-refresher_2.cjs.entry.js +14 -15
  153. package/dist/cjs/ion-reorder_2.cjs.entry.js +8 -9
  154. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -3
  155. package/dist/cjs/ion-route_4.cjs.entry.js +3 -4
  156. package/dist/cjs/ion-searchbar.cjs.entry.js +10 -11
  157. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  158. package/dist/cjs/ion-segment-view.cjs.entry.js +1 -1
  159. package/dist/cjs/ion-segment_2.cjs.entry.js +4 -5
  160. package/dist/cjs/ion-select-modal.cjs.entry.js +7 -8
  161. package/dist/cjs/ion-select_3.cjs.entry.js +20 -21
  162. package/dist/cjs/ion-spinner.cjs.entry.js +4 -5
  163. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -3
  164. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +9 -10
  165. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  166. package/dist/cjs/ion-text.cjs.entry.js +2 -3
  167. package/dist/cjs/ion-textarea.cjs.entry.js +8 -9
  168. package/dist/cjs/ion-toast.cjs.entry.js +13 -14
  169. package/dist/cjs/ion-toggle.cjs.entry.js +9 -10
  170. package/dist/cjs/ionic.cjs.js +4 -6
  171. package/dist/cjs/{ios.transition-2wtm_6Ok.js → ios.transition-BMRClUxZ.js} +4 -5
  172. package/dist/cjs/{keyboard-UYQhk8rB.js → keyboard-Chl5cusY.js} +1 -1
  173. package/dist/cjs/{keyboard-controller-ts0z4BIe.js → keyboard-controller-yLvXRMuh.js} +9 -10
  174. package/dist/cjs/{keyboard-C1Ds9WQH.js → keyboard-nXDIskl9.js} +3 -4
  175. package/dist/cjs/loader.cjs.js +3 -5
  176. package/dist/cjs/{md.transition-DCNdoS7u.js → md.transition-D2ZL4jgW.js} +4 -5
  177. package/dist/cjs/{notch-controller-BX7CnNaL.js → notch-controller-S50JyZJs.js} +4 -4
  178. package/dist/cjs/{overlays-pdcfssMG.js → overlays-XYRfwd6H.js} +8 -9
  179. package/dist/cjs/{status-tap-e-hyosXV.js → status-tap-DMaRrHIS.js} +3 -3
  180. package/dist/cjs/{swipe-back-CR060nOX.js → swipe-back-CEVlQT7C.js} +2 -2
  181. package/dist/collection/collection-manifest.json +1 -1
  182. package/dist/collection/components/accordion/accordion.js +6 -6
  183. package/dist/collection/components/accordion-group/accordion-group.js +10 -10
  184. package/dist/collection/components/action-sheet/action-sheet.js +21 -16
  185. package/dist/collection/components/alert/alert.js +24 -18
  186. package/dist/collection/components/avatar/avatar.js +5 -5
  187. package/dist/collection/components/back-button/back-button.js +11 -10
  188. package/dist/collection/components/backdrop/backdrop.js +3 -3
  189. package/dist/collection/components/badge/badge.js +10 -10
  190. package/dist/collection/components/breadcrumb/breadcrumb.js +21 -20
  191. package/dist/collection/components/breadcrumbs/breadcrumbs.js +6 -6
  192. package/dist/collection/components/button/button.js +26 -25
  193. package/dist/collection/components/buttons/buttons.js +1 -1
  194. package/dist/collection/components/card/card.js +16 -15
  195. package/dist/collection/components/card-header/card-header.js +3 -3
  196. package/dist/collection/components/card-subtitle/card-subtitle.js +2 -2
  197. package/dist/collection/components/card-title/card-title.js +2 -2
  198. package/dist/collection/components/checkbox/checkbox.js +20 -20
  199. package/dist/collection/components/chip/chip.js +9 -9
  200. package/dist/collection/components/col/col.js +60 -60
  201. package/dist/collection/components/content/content.js +9 -9
  202. package/dist/collection/components/datetime/datetime.js +40 -36
  203. package/dist/collection/components/datetime-button/datetime-button.js +4 -4
  204. package/dist/collection/components/divider/divider.js +2 -2
  205. package/dist/collection/components/fab/fab.js +6 -6
  206. package/dist/collection/components/fab-button/fab-button.js +21 -20
  207. package/dist/collection/components/fab-list/fab-list.js +2 -2
  208. package/dist/collection/components/footer/footer.js +3 -3
  209. package/dist/collection/components/grid/grid.js +1 -1
  210. package/dist/collection/components/header/header.js +4 -4
  211. package/dist/collection/components/img/img.js +4 -4
  212. package/dist/collection/components/infinite-scroll/infinite-scroll.js +4 -4
  213. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +4 -4
  214. package/dist/collection/components/input/input.js +55 -54
  215. package/dist/collection/components/input-otp/input-otp.js +17 -17
  216. package/dist/collection/components/input-password-toggle/input-password-toggle.js +7 -7
  217. package/dist/collection/components/item/item.js +21 -20
  218. package/dist/collection/components/item-divider/item-divider.js +3 -3
  219. package/dist/collection/components/item-option/item-option.js +16 -16
  220. package/dist/collection/components/item-options/item-options.js +1 -1
  221. package/dist/collection/components/item-sliding/item-sliding.js +1 -1
  222. package/dist/collection/components/label/label.js +4 -4
  223. package/dist/collection/components/list/list.js +5 -5
  224. package/dist/collection/components/list-header/list-header.js +4 -4
  225. package/dist/collection/components/loading/loading.js +22 -18
  226. package/dist/collection/components/menu/menu.js +10 -10
  227. package/dist/collection/components/menu-button/menu-button.js +7 -7
  228. package/dist/collection/components/menu-toggle/menu-toggle.js +3 -3
  229. package/dist/collection/components/modal/modal.js +33 -26
  230. package/dist/collection/components/nav/nav.js +8 -5
  231. package/dist/collection/components/nav-link/nav-link.js +5 -3
  232. package/dist/collection/components/note/note.js +2 -2
  233. package/dist/collection/components/picker-column/picker-column.js +5 -5
  234. package/dist/collection/components/picker-column-option/picker-column-option.js +4 -4
  235. package/dist/collection/components/picker-legacy/picker.js +19 -13
  236. package/dist/collection/components/picker-legacy-column/picker-column.js +1 -0
  237. package/dist/collection/components/popover/popover.js +33 -28
  238. package/dist/collection/components/progress-bar/progress-bar.js +8 -8
  239. package/dist/collection/components/radio/radio.js +11 -11
  240. package/dist/collection/components/radio-group/radio-group.js +10 -10
  241. package/dist/collection/components/range/range.js +20 -19
  242. package/dist/collection/components/refresher/refresher.js +6 -6
  243. package/dist/collection/components/refresher-content/refresher-content.js +8 -8
  244. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  245. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  246. package/dist/collection/components/route/route.js +6 -3
  247. package/dist/collection/components/route-redirect/route-redirect.js +4 -4
  248. package/dist/collection/components/router/router.js +2 -2
  249. package/dist/collection/components/router-link/router-link.js +10 -9
  250. package/dist/collection/components/router-outlet/router-outlet.js +5 -2
  251. package/dist/collection/components/searchbar/searchbar.js +35 -35
  252. package/dist/collection/components/segment/segment.js +8 -8
  253. package/dist/collection/components/segment-button/segment-button.js +6 -6
  254. package/dist/collection/components/segment-view/segment-view.js +1 -1
  255. package/dist/collection/components/select/select.ionic.css +5 -0
  256. package/dist/collection/components/select/select.js +37 -37
  257. package/dist/collection/components/select-modal/select-modal.js +5 -4
  258. package/dist/collection/components/select-option/select-option.js +3 -3
  259. package/dist/collection/components/select-popover/select-popover.js +9 -8
  260. package/dist/collection/components/skeleton-text/skeleton-text.js +1 -1
  261. package/dist/collection/components/spinner/spinner.js +9 -9
  262. package/dist/collection/components/split-pane/split-pane.js +4 -4
  263. package/dist/collection/components/tab/tab.js +6 -5
  264. package/dist/collection/components/tab-bar/tab-bar.js +8 -8
  265. package/dist/collection/components/tab-button/tab-button.js +16 -16
  266. package/dist/collection/components/tabs/tabs.js +1 -1
  267. package/dist/collection/components/text/text.js +2 -2
  268. package/dist/collection/components/textarea/textarea.js +44 -43
  269. package/dist/collection/components/title/title.js +4 -4
  270. package/dist/collection/components/toast/toast.js +34 -29
  271. package/dist/collection/components/toggle/toggle.js +17 -17
  272. package/dist/collection/components/toolbar/toolbar.js +2 -2
  273. package/dist/docs.json +55 -2
  274. package/dist/esm/{animation-DGDOQ6ES.js → animation-Cgfm6Out.js} +1 -2
  275. package/dist/esm/{button-active-C_l8DIlb.js → button-active-DvzVF2u_.js} +2 -2
  276. package/dist/esm/{capacitor-CiBLEyrT.js → capacitor-Dvc8Ydvg.js} +1 -1
  277. package/dist/esm/{config-mCdtaoPe.js → config-DwiPHIF5.js} +1 -1
  278. package/dist/esm/{data-DFCY8gnk.js → data-HHZs0eLV.js} +7 -10
  279. package/dist/esm/{framework-delegate-D2mUP0WI.js → framework-delegate-B4Rily6A.js} +2 -2
  280. package/dist/esm/{haptic-7RTk38ue.js → haptic-ZZTn7IWt.js} +1 -1
  281. package/dist/esm/{helpers-Bsml3FcE.js → helpers-D_90HVv6.js} +1 -1
  282. package/dist/esm/{index-C8IsBmNU.js → index-BBrR3goV.js} +681 -306
  283. package/dist/esm/{index-Djo-Eq70.js → index-BoSPzYKk.js} +4 -4
  284. package/dist/esm/{index-BpFi2B8W.js → index-ByqmqxGO.js} +2 -2
  285. package/dist/esm/{index-DWD4QoaP.js → index-D4D_NUAr.js} +3 -4
  286. package/dist/esm/{index-rXea6WR_.js → index-k4x4i7EL.js} +2 -3
  287. package/dist/esm/index.js +10 -11
  288. package/dist/esm/{input-shims-Bz3HiPwU.js → input-shims-DEtEJcaS.js} +5 -6
  289. package/dist/esm/{input.utils-BQAE1QTA.js → input.utils-DNE0LB5g.js} +2 -3
  290. package/dist/esm/ion-accordion_2.entry.js +2 -3
  291. package/dist/esm/ion-action-sheet.entry.js +8 -9
  292. package/dist/esm/ion-alert.entry.js +9 -10
  293. package/dist/esm/ion-app_8.entry.js +9 -10
  294. package/dist/esm/ion-avatar_3.entry.js +1 -2
  295. package/dist/esm/ion-back-button.entry.js +2 -3
  296. package/dist/esm/ion-backdrop.entry.js +1 -2
  297. package/dist/esm/ion-breadcrumb_2.entry.js +2 -3
  298. package/dist/esm/ion-button_2.entry.js +2 -3
  299. package/dist/esm/ion-card_5.entry.js +2 -3
  300. package/dist/esm/ion-checkbox.entry.js +2 -3
  301. package/dist/esm/ion-chip.entry.js +1 -2
  302. package/dist/esm/ion-col_3.entry.js +1 -2
  303. package/dist/esm/ion-datetime-button.entry.js +3 -4
  304. package/dist/esm/ion-datetime_3.entry.js +8 -9
  305. package/dist/esm/ion-divider.entry.js +1 -2
  306. package/dist/esm/ion-fab_3.entry.js +2 -3
  307. package/dist/esm/ion-img.entry.js +2 -3
  308. package/dist/esm/ion-infinite-scroll_2.entry.js +4 -5
  309. package/dist/esm/ion-input-otp.entry.js +2 -3
  310. package/dist/esm/ion-input-password-toggle.entry.js +1 -2
  311. package/dist/esm/ion-input.entry.js +4 -5
  312. package/dist/esm/ion-item-option_3.entry.js +3 -4
  313. package/dist/esm/ion-item_8.entry.js +2 -3
  314. package/dist/esm/ion-loading.entry.js +6 -7
  315. package/dist/esm/ion-menu_3.entry.js +6 -7
  316. package/dist/esm/ion-modal.entry.js +10 -11
  317. package/dist/esm/ion-nav_2.entry.js +5 -6
  318. package/dist/esm/ion-picker-column-option.entry.js +2 -3
  319. package/dist/esm/ion-picker-column.entry.js +4 -5
  320. package/dist/esm/ion-picker.entry.js +2 -2
  321. package/dist/esm/ion-popover.entry.js +6 -7
  322. package/dist/esm/ion-progress-bar.entry.js +2 -3
  323. package/dist/esm/ion-radio_2.entry.js +2 -3
  324. package/dist/esm/ion-range.entry.js +3 -4
  325. package/dist/esm/ion-refresher_2.entry.js +7 -8
  326. package/dist/esm/ion-reorder_2.entry.js +5 -6
  327. package/dist/esm/ion-ripple-effect.entry.js +1 -2
  328. package/dist/esm/ion-route_4.entry.js +2 -3
  329. package/dist/esm/ion-searchbar.entry.js +2 -3
  330. package/dist/esm/ion-segment-content.entry.js +1 -1
  331. package/dist/esm/ion-segment-view.entry.js +1 -1
  332. package/dist/esm/ion-segment_2.entry.js +2 -3
  333. package/dist/esm/ion-select-modal.entry.js +6 -7
  334. package/dist/esm/ion-select_3.entry.js +8 -9
  335. package/dist/esm/ion-spinner.entry.js +1 -2
  336. package/dist/esm/ion-split-pane.entry.js +1 -2
  337. package/dist/esm/ion-tab-bar_2.entry.js +5 -6
  338. package/dist/esm/ion-tab_2.entry.js +3 -3
  339. package/dist/esm/ion-text.entry.js +1 -2
  340. package/dist/esm/ion-textarea.entry.js +4 -5
  341. package/dist/esm/ion-toast.entry.js +6 -7
  342. package/dist/esm/ion-toggle.entry.js +4 -5
  343. package/dist/esm/ionic.js +4 -6
  344. package/dist/esm/{ios.transition-cQ5XYp4s.js → ios.transition-C_-UP8wE.js} +4 -5
  345. package/dist/esm/{keyboard-DuUgrXrK.js → keyboard-BsZp3qPH.js} +3 -4
  346. package/dist/esm/{keyboard-WCK1pWfR.js → keyboard-Cvigb3Rv.js} +1 -1
  347. package/dist/esm/{keyboard-controller-Bc4alOiF.js → keyboard-controller-lts2Pswq.js} +2 -3
  348. package/dist/esm/loader.js +3 -5
  349. package/dist/esm/{md.transition-CYFYc3-3.js → md.transition-BDWkLsNw.js} +4 -5
  350. package/dist/esm/{notch-controller-DO30Bsls.js → notch-controller-ClKrf2l9.js} +2 -2
  351. package/dist/esm/{overlays-Da_6xSKI.js → overlays-C1ahtepl.js} +3 -4
  352. package/dist/esm/{status-tap-DXVlluKS.js → status-tap-DLatL9pG.js} +3 -3
  353. package/dist/esm/{swipe-back-DNhAt9fY.js → swipe-back-YYylMb0l.js} +2 -2
  354. package/dist/html.html-data.json +212 -0
  355. package/dist/ionic/index.esm.js +1 -1
  356. package/dist/ionic/ionic.esm.js +1 -1
  357. package/dist/ionic/p-034ef39b.entry.js +4 -0
  358. package/dist/ionic/p-05030d1b.entry.js +4 -0
  359. package/dist/ionic/p-059ceab8.entry.js +4 -0
  360. package/dist/ionic/p-096b5789.entry.js +4 -0
  361. package/dist/ionic/p-09eaefc0.entry.js +4 -0
  362. package/dist/ionic/p-156bba30.entry.js +4 -0
  363. package/dist/ionic/p-238ad727.entry.js +4 -0
  364. package/dist/ionic/p-2c28e54a.entry.js +4 -0
  365. package/dist/ionic/p-2c9459f5.entry.js +4 -0
  366. package/dist/ionic/p-2f1d100c.entry.js +4 -0
  367. package/dist/ionic/p-31331fc3.entry.js +4 -0
  368. package/dist/ionic/p-340e4f62.entry.js +4 -0
  369. package/dist/ionic/p-3bef3778.entry.js +4 -0
  370. package/dist/ionic/p-3c773ecd.entry.js +4 -0
  371. package/dist/ionic/p-47432157.entry.js +4 -0
  372. package/dist/ionic/p-52535bba.entry.js +4 -0
  373. package/dist/ionic/p-56e51161.entry.js +4 -0
  374. package/dist/ionic/p-5770869f.entry.js +4 -0
  375. package/dist/ionic/p-5af619ff.entry.js +4 -0
  376. package/dist/ionic/p-5b44ac3a.entry.js +4 -0
  377. package/dist/ionic/p-5ca4c3b8.entry.js +4 -0
  378. package/dist/ionic/p-6469a540.entry.js +4 -0
  379. package/dist/ionic/p-649e2f92.entry.js +4 -0
  380. package/dist/ionic/p-6e6ce506.entry.js +4 -0
  381. package/dist/ionic/{p-59a79bd9.entry.js → p-6ea34add.entry.js} +1 -1
  382. package/dist/ionic/p-6f17f8ed.entry.js +4 -0
  383. package/dist/ionic/p-773f2ac5.entry.js +4 -0
  384. package/dist/ionic/p-80cc8511.entry.js +4 -0
  385. package/dist/ionic/p-82796bb0.entry.js +4 -0
  386. package/dist/ionic/p-8c3d3bca.entry.js +4 -0
  387. package/dist/ionic/p-9000bd9f.entry.js +4 -0
  388. package/dist/ionic/p-9aef9229.entry.js +4 -0
  389. package/dist/ionic/p-9cbab197.entry.js +4 -0
  390. package/dist/ionic/p-BJ-EYogw.js +4 -0
  391. package/dist/ionic/p-BKDxK6_S.js +4 -0
  392. package/dist/ionic/p-BMPzyWDm.js +4 -0
  393. package/dist/ionic/p-BTqHM5hg.js +4 -0
  394. package/dist/ionic/p-BZR5I9yn.js +4 -0
  395. package/dist/ionic/{p-BiTKUjko.js → p-BZSKvxFv.js} +1 -1
  396. package/dist/ionic/{p-DyaKZbAH.js → p-BaAcx1TO.js} +1 -1
  397. package/dist/ionic/p-BeJdFlAB.js +4 -0
  398. package/dist/ionic/{p-Q7JLYEUZ.js → p-Bi_aZreq.js} +1 -1
  399. package/dist/ionic/p-BpUl-Ubc.js +4 -0
  400. package/dist/ionic/{p-DxFexTIr.js → p-BuAY53fC.js} +1 -1
  401. package/dist/ionic/p-CnPZjTVf.js +4 -0
  402. package/dist/ionic/{p-HpOiAvpC.js → p-D-g7JYuH.js} +1 -1
  403. package/dist/ionic/p-D6quDhlh.js +4 -0
  404. package/dist/ionic/{p-DBaOCAfc.js → p-DIZM2shZ.js} +1 -1
  405. package/dist/ionic/p-DJD59Sq4.js +4 -0
  406. package/dist/ionic/p-DZmL55Qn.js +4 -0
  407. package/dist/ionic/p-DjxV6ul_.js +4 -0
  408. package/dist/ionic/p-DkXsr7m2.js +4 -0
  409. package/dist/ionic/p-DnNglnwY.js +4 -0
  410. package/dist/ionic/p-Dpa-63kX.js +4 -0
  411. package/dist/ionic/p-HOJ_eq4V.js +5 -0
  412. package/dist/ionic/p-MBiM0IFp.js +4 -0
  413. package/dist/ionic/p-a1af546a.entry.js +4 -0
  414. package/dist/ionic/p-a2218a8b.entry.js +4 -0
  415. package/dist/ionic/p-a22b46e4.entry.js +4 -0
  416. package/dist/ionic/{p-89743bba.entry.js → p-ae10fb4c.entry.js} +1 -1
  417. package/dist/ionic/p-c2122301.entry.js +4 -0
  418. package/dist/ionic/{p-3cb3d194.entry.js → p-c428cbac.entry.js} +1 -1
  419. package/dist/ionic/p-c565e353.entry.js +4 -0
  420. package/dist/ionic/p-c6301ef9.entry.js +4 -0
  421. package/dist/ionic/p-c83a1254.entry.js +4 -0
  422. package/dist/ionic/p-c9313bb8.entry.js +4 -0
  423. package/dist/ionic/p-cb6bb34f.entry.js +4 -0
  424. package/dist/ionic/p-d215bbdc.entry.js +4 -0
  425. package/dist/ionic/p-de6964a2.entry.js +4 -0
  426. package/dist/ionic/p-ded5613d.entry.js +4 -0
  427. package/dist/ionic/p-e0eae83d.entry.js +4 -0
  428. package/dist/ionic/p-e5005342.entry.js +4 -0
  429. package/dist/ionic/p-e7925263.entry.js +4 -0
  430. package/dist/ionic/p-eZzo_1L1.js +4 -0
  431. package/dist/ionic/p-eebf0420.entry.js +4 -0
  432. package/dist/ionic/p-f1bb4947.entry.js +4 -0
  433. package/dist/ionic/p-facf3c23.entry.js +4 -0
  434. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +143 -0
  435. package/dist/types/stencil-public-runtime.d.ts +7 -51
  436. package/hydrate/index.d.ts +0 -2
  437. package/hydrate/index.js +345 -543
  438. package/hydrate/index.mjs +345 -543
  439. package/package.json +2 -2
  440. package/dist/cjs/app-globals-CrtAvKxl.js +0 -10
  441. package/dist/cjs/ionic-global-DuRUel5m.js +0 -491
  442. package/dist/esm/app-globals-BNKecRVD.js +0 -8
  443. package/dist/esm/ionic-global-2R0iPB51.js +0 -480
  444. package/dist/ionic/p--8Ga2Cg0.js +0 -4
  445. package/dist/ionic/p-16c5a01c.entry.js +0 -4
  446. package/dist/ionic/p-1f981d06.entry.js +0 -4
  447. package/dist/ionic/p-22c02aea.entry.js +0 -4
  448. package/dist/ionic/p-23e4b68a.entry.js +0 -4
  449. package/dist/ionic/p-28571945.entry.js +0 -4
  450. package/dist/ionic/p-2bab0853.entry.js +0 -4
  451. package/dist/ionic/p-2e19a4dd.entry.js +0 -4
  452. package/dist/ionic/p-2e900f67.entry.js +0 -4
  453. package/dist/ionic/p-3622a9ea.entry.js +0 -4
  454. package/dist/ionic/p-3a6a92ab.entry.js +0 -4
  455. package/dist/ionic/p-418e4330.entry.js +0 -4
  456. package/dist/ionic/p-4261dc5d.entry.js +0 -4
  457. package/dist/ionic/p-4e13d498.entry.js +0 -4
  458. package/dist/ionic/p-55e2352e.entry.js +0 -4
  459. package/dist/ionic/p-56a9319e.entry.js +0 -4
  460. package/dist/ionic/p-59e6c978.entry.js +0 -4
  461. package/dist/ionic/p-642b022d.entry.js +0 -4
  462. package/dist/ionic/p-64385b66.entry.js +0 -4
  463. package/dist/ionic/p-66397fac.entry.js +0 -4
  464. package/dist/ionic/p-66d094b2.entry.js +0 -4
  465. package/dist/ionic/p-6fac73e6.entry.js +0 -4
  466. package/dist/ionic/p-7d450184.entry.js +0 -4
  467. package/dist/ionic/p-81770a5c.entry.js +0 -4
  468. package/dist/ionic/p-844bd58c.entry.js +0 -4
  469. package/dist/ionic/p-86b82096.entry.js +0 -4
  470. package/dist/ionic/p-87678140.entry.js +0 -4
  471. package/dist/ionic/p-88ef6829.entry.js +0 -4
  472. package/dist/ionic/p-90320028.entry.js +0 -4
  473. package/dist/ionic/p-916685a9.entry.js +0 -4
  474. package/dist/ionic/p-91966afa.entry.js +0 -4
  475. package/dist/ionic/p-B-N4FEiY.js +0 -4
  476. package/dist/ionic/p-B3uz75uZ.js +0 -4
  477. package/dist/ionic/p-BRd1Ag6P.js +0 -4
  478. package/dist/ionic/p-BbT4IAlw.js +0 -4
  479. package/dist/ionic/p-C8IsBmNU.js +0 -5
  480. package/dist/ionic/p-CK1xn1Nt.js +0 -4
  481. package/dist/ionic/p-CK4YXTyz.js +0 -4
  482. package/dist/ionic/p-CeO9Shc9.js +0 -4
  483. package/dist/ionic/p-Cm5sQeXL.js +0 -4
  484. package/dist/ionic/p-DHCQ1qFC.js +0 -4
  485. package/dist/ionic/p-DPNSAVjP.js +0 -4
  486. package/dist/ionic/p-D_8SMvQ3.js +0 -4
  487. package/dist/ionic/p-DbQ5QkTP.js +0 -4
  488. package/dist/ionic/p-DdaOdN_z.js +0 -4
  489. package/dist/ionic/p-Dq8ap6AD.js +0 -4
  490. package/dist/ionic/p-Dv5UHqHj.js +0 -4
  491. package/dist/ionic/p-W-2TssC9.js +0 -4
  492. package/dist/ionic/p-a1128f7f.entry.js +0 -4
  493. package/dist/ionic/p-a57c0cce.entry.js +0 -4
  494. package/dist/ionic/p-acb9905c.entry.js +0 -4
  495. package/dist/ionic/p-b2291ef0.entry.js +0 -4
  496. package/dist/ionic/p-b26aeaf8.entry.js +0 -4
  497. package/dist/ionic/p-bf461512.entry.js +0 -4
  498. package/dist/ionic/p-c289efa5.entry.js +0 -4
  499. package/dist/ionic/p-c2f738d2.entry.js +0 -4
  500. package/dist/ionic/p-c775e3c0.entry.js +0 -4
  501. package/dist/ionic/p-ce510c06.entry.js +0 -4
  502. package/dist/ionic/p-cea1ee31.entry.js +0 -4
  503. package/dist/ionic/p-d1c60c1c.entry.js +0 -4
  504. package/dist/ionic/p-db90b95a.entry.js +0 -4
  505. package/dist/ionic/p-dcfb2b1d.entry.js +0 -4
  506. package/dist/ionic/p-e2171c27.entry.js +0 -4
  507. package/dist/ionic/p-e28d6a81.entry.js +0 -4
  508. package/dist/ionic/p-ec02238a.entry.js +0 -4
  509. package/dist/ionic/p-ecc8aebb.entry.js +0 -4
  510. package/dist/ionic/p-f3de58bd.entry.js +0 -4
  511. package/dist/ionic/p-ff757a50.entry.js +0 -4
  512. package/dist/ionic/p-szCM2gDt.js +0 -4
  513. package/dist/ionic/p-vpXGWZiy.js +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/core",
3
- "version": "8.7.6-dev.11761146245.19b2e6db",
3
+ "version": "8.7.6-dev.11761592056.19dedfdf",
4
4
  "description": "Base components for Ionic",
5
5
  "keywords": [
6
6
  "ionic",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@phosphor-icons/core": "^2.1.1",
35
- "@stencil/core": "4.38.0",
35
+ "@stencil/core": "4.33.1",
36
36
  "ionicons": "^8.0.13",
37
37
  "tslib": "^2.1.0"
38
38
  },
@@ -1,10 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- 'use strict';
5
-
6
- var ionicGlobal = require('./ionic-global-DuRUel5m.js');
7
-
8
- const globalScripts = ionicGlobal.initialize;
9
-
10
- exports.globalScripts = globalScripts;
@@ -1,491 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- 'use strict';
5
-
6
- var index = require('./index-D6Wc6v08.js');
7
-
8
- const win = typeof window !== 'undefined' ? window : undefined;
9
- const doc = typeof document !== 'undefined' ? document : undefined;
10
-
11
- /**
12
- * CloseWatcher is a newer API that lets
13
- * use detect the hardware back button event
14
- * in a web browser: https://caniuse.com/?search=closewatcher
15
- * However, not every browser supports it yet.
16
- *
17
- * This needs to be a function so that we can
18
- * check the config once it has been set.
19
- * Otherwise, this code would be evaluated the
20
- * moment this file is evaluated which could be
21
- * before the config is set.
22
- */
23
- const shouldUseCloseWatcher = () => index.config.get('experimentalCloseWatcher', false) && win !== undefined && 'CloseWatcher' in win;
24
- /**
25
- * When hardwareBackButton: false in config,
26
- * we need to make sure we also block the default
27
- * webview behavior. If we don't then it will be
28
- * possible for users to navigate backward while
29
- * an overlay is still open. Additionally, it will
30
- * give the appearance that the hardwareBackButton
31
- * config is not working as the page transition
32
- * will still happen.
33
- */
34
- const blockHardwareBackButton = () => {
35
- document.addEventListener('backbutton', () => { }); // eslint-disable-line
36
- };
37
- const startHardwareBackButton = () => {
38
- const doc = document;
39
- let busy = false;
40
- const backButtonCallback = () => {
41
- if (busy) {
42
- return;
43
- }
44
- let index$1 = 0;
45
- let handlers = [];
46
- const ev = new CustomEvent('ionBackButton', {
47
- bubbles: false,
48
- detail: {
49
- register(priority, handler) {
50
- handlers.push({ priority, handler, id: index$1++ });
51
- },
52
- },
53
- });
54
- doc.dispatchEvent(ev);
55
- const executeAction = async (handlerRegister) => {
56
- try {
57
- if (handlerRegister === null || handlerRegister === void 0 ? void 0 : handlerRegister.handler) {
58
- const result = handlerRegister.handler(processHandlers);
59
- if (result != null) {
60
- await result;
61
- }
62
- }
63
- }
64
- catch (e) {
65
- index.printIonError('[ion-app] - Exception in startHardwareBackButton:', e);
66
- }
67
- };
68
- const processHandlers = () => {
69
- if (handlers.length > 0) {
70
- let selectedHandler = {
71
- priority: Number.MIN_SAFE_INTEGER,
72
- handler: () => undefined,
73
- id: -1,
74
- };
75
- handlers.forEach((handler) => {
76
- if (handler.priority >= selectedHandler.priority) {
77
- selectedHandler = handler;
78
- }
79
- });
80
- busy = true;
81
- handlers = handlers.filter((handler) => handler.id !== selectedHandler.id);
82
- executeAction(selectedHandler).then(() => (busy = false));
83
- }
84
- };
85
- processHandlers();
86
- };
87
- /**
88
- * If the CloseWatcher is defined then
89
- * we don't want to also listen for the native
90
- * backbutton event otherwise we may get duplicate
91
- * events firing.
92
- */
93
- if (shouldUseCloseWatcher()) {
94
- let watcher;
95
- const configureWatcher = () => {
96
- watcher === null || watcher === void 0 ? void 0 : watcher.destroy();
97
- watcher = new win.CloseWatcher();
98
- /**
99
- * Once a close request happens
100
- * the watcher gets destroyed.
101
- * As a result, we need to re-configure
102
- * the watcher so we can respond to other
103
- * close requests.
104
- */
105
- watcher.onclose = () => {
106
- backButtonCallback();
107
- configureWatcher();
108
- };
109
- };
110
- configureWatcher();
111
- }
112
- else {
113
- doc.addEventListener('backbutton', backButtonCallback);
114
- }
115
- };
116
- const OVERLAY_BACK_BUTTON_PRIORITY = 100;
117
- const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
118
-
119
- var hardwareBackButton = /*#__PURE__*/Object.freeze({
120
- __proto__: null,
121
- MENU_BACK_BUTTON_PRIORITY: MENU_BACK_BUTTON_PRIORITY,
122
- OVERLAY_BACK_BUTTON_PRIORITY: OVERLAY_BACK_BUTTON_PRIORITY,
123
- blockHardwareBackButton: blockHardwareBackButton,
124
- shouldUseCloseWatcher: shouldUseCloseWatcher,
125
- startHardwareBackButton: startHardwareBackButton
126
- });
127
-
128
- const getPlatforms = (win) => setupPlatforms(win);
129
- const isPlatform = (winOrPlatform, platform) => {
130
- if (typeof winOrPlatform === 'string') {
131
- platform = winOrPlatform;
132
- winOrPlatform = undefined;
133
- }
134
- return getPlatforms(winOrPlatform).includes(platform);
135
- };
136
- const setupPlatforms = (win = window) => {
137
- if (typeof win === 'undefined') {
138
- return [];
139
- }
140
- win.Ionic = win.Ionic || {};
141
- let platforms = win.Ionic.platforms;
142
- if (platforms == null) {
143
- platforms = win.Ionic.platforms = detectPlatforms(win);
144
- platforms.forEach((p) => win.document.documentElement.classList.add(`plt-${p}`));
145
- }
146
- return platforms;
147
- };
148
- const detectPlatforms = (win) => {
149
- const customPlatformMethods = index.config.get('platform');
150
- return Object.keys(PLATFORMS_MAP).filter((p) => {
151
- const customMethod = customPlatformMethods === null || customPlatformMethods === void 0 ? void 0 : customPlatformMethods[p];
152
- return typeof customMethod === 'function' ? customMethod(win) : PLATFORMS_MAP[p](win);
153
- });
154
- };
155
- const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
156
- const isIpad = (win) => {
157
- // iOS 12 and below
158
- if (testUserAgent(win, /iPad/i)) {
159
- return true;
160
- }
161
- // iOS 13+
162
- if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
163
- return true;
164
- }
165
- return false;
166
- };
167
- const isIphone = (win) => testUserAgent(win, /iPhone/i);
168
- const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
169
- const isAndroid = (win) => testUserAgent(win, /android|sink/i);
170
- const isAndroidTablet = (win) => {
171
- return isAndroid(win) && !testUserAgent(win, /mobile/i);
172
- };
173
- const isPhablet = (win) => {
174
- const width = win.innerWidth;
175
- const height = win.innerHeight;
176
- const smallest = Math.min(width, height);
177
- const largest = Math.max(width, height);
178
- return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
179
- };
180
- const isTablet = (win) => {
181
- const width = win.innerWidth;
182
- const height = win.innerHeight;
183
- const smallest = Math.min(width, height);
184
- const largest = Math.max(width, height);
185
- return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
186
- };
187
- const isMobile = (win) => matchMedia(win, '(any-pointer:coarse)');
188
- const isDesktop = (win) => !isMobile(win);
189
- const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
190
- const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
191
- const isCapacitorNative = (win) => {
192
- const capacitor = win['Capacitor'];
193
- // TODO(ROU-11693): Remove when we no longer support Capacitor 2, which does not have isNativePlatform
194
- return !!((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNative) || ((capacitor === null || capacitor === void 0 ? void 0 : capacitor.isNativePlatform) && !!capacitor.isNativePlatform()));
195
- };
196
- const isElectron = (win) => testUserAgent(win, /electron/i);
197
- 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); };
198
- const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
199
- const matchMedia = (win, query) => { var _a; return (_a = win.matchMedia) === null || _a === void 0 ? void 0 : _a.call(win, query).matches; };
200
- const PLATFORMS_MAP = {
201
- ipad: isIpad,
202
- iphone: isIphone,
203
- ios: isIOS,
204
- android: isAndroid,
205
- phablet: isPhablet,
206
- tablet: isTablet,
207
- cordova: isCordova,
208
- capacitor: isCapacitorNative,
209
- electron: isElectron,
210
- pwa: isPWA,
211
- mobile: isMobile,
212
- mobileweb: isMobileWeb,
213
- desktop: isDesktop,
214
- hybrid: isHybrid,
215
- };
216
-
217
- let defaultMode;
218
- let defaultTheme = 'md';
219
- /**
220
- * Prints a warning message to the developer to inform them of
221
- * an invalid configuration of mode and theme.
222
- * @param mode The invalid mode configuration.
223
- * @param theme The invalid theme configuration.
224
- */
225
- const printInvalidModeWarning = (mode, theme, ref) => {
226
- index.printIonWarning(`Invalid mode and theme combination provided: mode: ${mode}, theme: ${theme}. Fallback mode ${getDefaultModeForTheme(theme)} will be used.`, ref);
227
- };
228
- /**
229
- * Validates if a mode is accepted for a theme configuration.
230
- * @param mode The mode to validate.
231
- * @param theme The theme the mode is being used with.
232
- * @returns `true` if the mode is valid for the theme, `false` if invalid.
233
- */
234
- const isModeValidForTheme = (mode, theme) => {
235
- if (mode === 'md') {
236
- return theme === 'md' || theme === 'ionic';
237
- }
238
- else if (mode === 'ios') {
239
- return theme === 'ios' || theme === 'ionic';
240
- }
241
- return false;
242
- };
243
- /**
244
- * Returns the default mode for a specified theme.
245
- * @param theme The theme to return a default mode for.
246
- * @returns The default mode, either `ios` or `md`.
247
- */
248
- const getDefaultModeForTheme = (theme) => {
249
- if (theme === 'ios') {
250
- return 'ios';
251
- }
252
- return 'md';
253
- };
254
- /**
255
- * Returns the default theme for a specified mode.
256
- * @param mode The mode to return a default theme for.
257
- * @returns The default theme.
258
- */
259
- const getDefaultThemeForMode = (mode) => {
260
- if (mode === 'ios') {
261
- return 'ios';
262
- }
263
- return 'md';
264
- };
265
- const isModeSupported = (elmMode) => ['ios', 'md'].includes(elmMode);
266
- const isThemeSupported = (theme) => ['ios', 'md', 'ionic'].includes(theme);
267
- const isIonicElement = (elm) => { var _a; return (_a = elm.tagName) === null || _a === void 0 ? void 0 : _a.startsWith('ION-'); };
268
- /**
269
- * Returns the mode value of the element reference or the closest
270
- * parent with a valid mode.
271
- * @param ref The element reference to look up the mode for.
272
- * @param theme Optionally can provide the theme to avoid an additional look-up.
273
- * @returns The mode value for the element reference.
274
- */
275
- const getIonMode = (ref, theme = getIonTheme(ref)) => {
276
- var _a;
277
- if ((ref === null || ref === void 0 ? void 0 : ref.mode) && isModeValidForTheme(ref === null || ref === void 0 ? void 0 : ref.mode, theme)) {
278
- /**
279
- * If the reference already has a mode configuration,
280
- * use it instead of performing a look-up.
281
- */
282
- return ref.mode;
283
- }
284
- else {
285
- const el = index.getElement(ref);
286
- const mode = ((_a = el.closest('[mode]')) === null || _a === void 0 ? void 0 : _a.getAttribute('mode')) || defaultMode;
287
- if (isModeValidForTheme(mode, theme)) {
288
- /**
289
- * The mode configuration is supported for the configured theme.
290
- */
291
- return mode;
292
- }
293
- else {
294
- printInvalidModeWarning(mode, theme, ref);
295
- }
296
- }
297
- return getDefaultModeForTheme(theme);
298
- };
299
- /**
300
- * Returns the theme value of the element reference or the closest
301
- * parent with a valid theme.
302
- *
303
- * @param ref The element reference to look up the theme for.
304
- * @returns The theme value for the element reference, defaults to
305
- * the default theme if it cannot be determined.
306
- */
307
- const getIonTheme = (ref) => {
308
- var _a, _b;
309
- const theme = ref && index.getMode(ref);
310
- if (theme) {
311
- return theme;
312
- }
313
- /**
314
- * If the theme cannot be detected, then fallback to using
315
- * the `mode` attribute to determine the style sheets to use.
316
- */
317
- const el = index.getElement(ref);
318
- const mode = (_a = ref === null || ref === void 0 ? void 0 : ref.mode) !== null && _a !== void 0 ? _a : (_b = el.closest('[mode]')) === null || _b === void 0 ? void 0 : _b.getAttribute('mode');
319
- if (mode) {
320
- return getDefaultThemeForMode(mode);
321
- }
322
- /**
323
- * If a mode is not detected, then fallback to using the
324
- * default theme.
325
- */
326
- return defaultTheme;
327
- };
328
- const rIC = (callback) => {
329
- if ('requestIdleCallback' in window) {
330
- window.requestIdleCallback(callback);
331
- }
332
- else {
333
- setTimeout(callback, 32);
334
- }
335
- };
336
- const needInputShims = () => {
337
- /**
338
- * iOS always needs input shims
339
- */
340
- const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
341
- if (needsShimsIOS) {
342
- return true;
343
- }
344
- /**
345
- * Android only needs input shims when running
346
- * in the browser and only if the browser is using the
347
- * new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
348
- */
349
- const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
350
- if (isAndroidMobileWeb) {
351
- return true;
352
- }
353
- return false;
354
- };
355
- const initialize = (userConfig = {}) => {
356
- if (typeof window === 'undefined') {
357
- return;
358
- }
359
- const doc = window.document;
360
- const win = window;
361
- const Ionic = (win.Ionic = win.Ionic || {});
362
- // create the Ionic.config from raw config object (if it exists)
363
- // and convert Ionic.config into a ConfigApi that has a get() fn
364
- const configObj = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, index.configFromSession(win)), { persistConfig: false }), Ionic.config), index.configFromURL(win)), userConfig);
365
- index.config.reset(configObj);
366
- if (index.config.getBoolean('persistConfig')) {
367
- index.saveConfig(win, configObj);
368
- }
369
- // Setup platforms
370
- setupPlatforms(win);
371
- Ionic.config = index.config;
372
- /**
373
- * Check if the mode was set as an attribute on <html>
374
- * which could have been set by the user, or by pre-rendering
375
- * otherwise get the mode via config settings, and fallback to md.
376
- */
377
- Ionic.mode = defaultMode = index.config.get('mode', doc.documentElement.getAttribute('mode') || (isPlatform(win, 'ios') ? 'ios' : 'md'));
378
- /**
379
- * Check if the theme was set as an attribute on <html>
380
- * which could have been set by the user, or by pre-rendering
381
- * otherwise get the theme via config settings, and fallback to md.
382
- */
383
- Ionic.theme = defaultTheme = index.config.get('theme', doc.documentElement.getAttribute('theme') || getDefaultThemeForMode(defaultMode));
384
- if (!isModeValidForTheme(defaultMode, defaultTheme)) {
385
- printInvalidModeWarning(defaultMode, defaultTheme, configObj);
386
- defaultMode = getDefaultModeForTheme(defaultTheme);
387
- }
388
- index.config.set('mode', defaultMode);
389
- doc.documentElement.setAttribute('mode', defaultMode);
390
- doc.documentElement.classList.add(defaultMode);
391
- index.config.set('theme', defaultTheme);
392
- doc.documentElement.setAttribute('theme', defaultTheme);
393
- doc.documentElement.classList.add(defaultTheme);
394
- if (index.config.getBoolean('_testing')) {
395
- index.config.set('animated', false);
396
- }
397
- index.setMode((elm) => {
398
- /**
399
- * Iterate over all the element nodes, to both validate and
400
- * set the "mode" that is used for determining the styles to
401
- * apply to the element.
402
- *
403
- * setMode refers to Stencil's internal metadata for "mode",
404
- * which is used to set the correct styleUrl for the component.
405
- *
406
- * If the "theme" attribute or property is set, then use it
407
- * to determine the style sheets to use.
408
- *
409
- * If the "mode" attribute or property is set, then use it
410
- * to determine the style sheets to use. This is fallback
411
- * behavior for applications that are not setting the "theme".
412
- */
413
- while (elm) {
414
- const theme = elm.getAttribute('theme');
415
- if (theme) {
416
- if (isThemeSupported(theme)) {
417
- return theme;
418
- }
419
- else if (isIonicElement(elm)) {
420
- index.printIonWarning(`Invalid theme: "${theme}". Supported themes include: "ios" or "md".`);
421
- }
422
- }
423
- /**
424
- * If a theme is not detected, then fallback to using the
425
- * `mode` attribute to determine the style sheets to use.
426
- */
427
- const elmMode = elm.getAttribute('mode');
428
- if (elmMode) {
429
- if (isModeSupported(elmMode)) {
430
- return elmMode;
431
- }
432
- else if (isIonicElement(elm)) {
433
- index.printIonWarning(`Invalid mode: "${elmMode}". Ionic modes can be only "ios" or "md"`);
434
- }
435
- }
436
- elm = elm.parentElement;
437
- }
438
- return defaultTheme;
439
- });
440
- // `IonApp` code
441
- // ----------------------------------------------
442
- {
443
- rIC(async () => {
444
- const isHybrid = isPlatform(window, 'hybrid');
445
- if (!index.config.getBoolean('_testing')) {
446
- Promise.resolve().then(function () { return require('./index-Bq6U5NAb.js'); }).then((module) => module.startTapClick(index.config));
447
- }
448
- if (index.config.getBoolean('statusTap', isHybrid)) {
449
- Promise.resolve().then(function () { return require('./status-tap-e-hyosXV.js'); }).then((module) => module.startStatusTap());
450
- }
451
- if (index.config.getBoolean('inputShims', needInputShims())) {
452
- /**
453
- * needInputShims() ensures that only iOS and Android
454
- * platforms proceed into this block.
455
- */
456
- const platform = isPlatform(window, 'ios') ? 'ios' : 'android';
457
- Promise.resolve().then(function () { return require('./input-shims-D6DHFHsE.js'); }).then((module) => module.startInputShims(index.config, platform));
458
- }
459
- const hardwareBackButtonModule = await Promise.resolve().then(function () { return hardwareBackButton; });
460
- const supportsHardwareBackButtonEvents = isHybrid || shouldUseCloseWatcher();
461
- if (index.config.getBoolean('hardwareBackButton', supportsHardwareBackButtonEvents)) {
462
- hardwareBackButtonModule.startHardwareBackButton();
463
- }
464
- else {
465
- /**
466
- * If an app sets hardwareBackButton: false and experimentalCloseWatcher: true
467
- * then the close watcher will not be used.
468
- */
469
- if (shouldUseCloseWatcher()) {
470
- index.printIonWarning('[ion-app] - experimentalCloseWatcher was set to `true`, but hardwareBackButton was set to `false`. Both config options must be `true` for the Close Watcher API to be used.');
471
- }
472
- hardwareBackButtonModule.blockHardwareBackButton();
473
- }
474
- if (typeof window !== 'undefined') {
475
- Promise.resolve().then(function () { return require('./keyboard-C1Ds9WQH.js'); }).then((module) => module.startKeyboardAssist(window));
476
- }
477
- Promise.resolve().then(function () { return require('./focus-visible-BIj-I3-C.js'); }).then((module) => module.getOrInitFocusVisibleUtility());
478
- });
479
- }
480
- };
481
-
482
- exports.MENU_BACK_BUTTON_PRIORITY = MENU_BACK_BUTTON_PRIORITY;
483
- exports.OVERLAY_BACK_BUTTON_PRIORITY = OVERLAY_BACK_BUTTON_PRIORITY;
484
- exports.doc = doc;
485
- exports.getIonMode = getIonMode;
486
- exports.getIonTheme = getIonTheme;
487
- exports.getPlatforms = getPlatforms;
488
- exports.initialize = initialize;
489
- exports.isPlatform = isPlatform;
490
- exports.shouldUseCloseWatcher = shouldUseCloseWatcher;
491
- exports.win = win;
@@ -1,8 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import { i as initialize } from './ionic-global-2R0iPB51.js';
5
-
6
- const globalScripts = initialize;
7
-
8
- export { globalScripts as g };