@ionic/core 8.8.7-dev.11778599050.191a48e3 → 8.8.7-dev.11778702595.1d38f927

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 (308) hide show
  1. package/components/ion-action-sheet.js +1 -1
  2. package/components/ion-alert.js +1 -1
  3. package/components/ion-back-button.js +1 -1
  4. package/components/ion-button.js +1 -1
  5. package/components/ion-card.js +1 -1
  6. package/components/ion-chip.js +1 -1
  7. package/components/ion-col.js +1 -1
  8. package/components/ion-datetime-button.js +1 -1
  9. package/components/ion-datetime.js +1 -1
  10. package/components/ion-fab-button.js +1 -1
  11. package/components/ion-gallery.d.ts +11 -0
  12. package/components/ion-gallery.js +4 -0
  13. package/components/ion-grid.js +1 -1
  14. package/components/ion-header.js +1 -1
  15. package/components/ion-img.js +1 -1
  16. package/components/ion-infinite-scroll-content.js +1 -1
  17. package/components/ion-infinite-scroll.js +1 -1
  18. package/components/ion-input-otp.js +1 -1
  19. package/components/ion-input-password-toggle.js +1 -1
  20. package/components/ion-input.js +1 -1
  21. package/components/ion-item-divider.js +1 -1
  22. package/components/ion-item-group.js +1 -1
  23. package/components/ion-item-option.js +1 -1
  24. package/components/ion-item-options.js +1 -1
  25. package/components/ion-item-sliding.js +1 -1
  26. package/components/ion-item.js +1 -1
  27. package/components/ion-label.js +1 -1
  28. package/components/ion-list-header.js +1 -1
  29. package/components/ion-list.js +1 -1
  30. package/components/ion-loading.js +1 -1
  31. package/components/ion-menu-button.js +1 -1
  32. package/components/ion-menu-toggle.js +1 -1
  33. package/components/ion-menu.js +1 -1
  34. package/components/ion-modal.js +1 -1
  35. package/components/ion-nav-link.js +1 -1
  36. package/components/ion-nav.js +1 -1
  37. package/components/ion-note.js +1 -1
  38. package/components/ion-picker-column-option.js +1 -1
  39. package/components/ion-picker-legacy-column.js +1 -1
  40. package/components/ion-picker-legacy.js +1 -1
  41. package/components/ion-popover.js +1 -1
  42. package/components/ion-progress-bar.js +1 -1
  43. package/components/ion-radio-group.js +1 -1
  44. package/components/ion-radio.js +1 -1
  45. package/components/ion-range.js +1 -1
  46. package/components/ion-refresher-content.js +1 -1
  47. package/components/ion-refresher.js +1 -1
  48. package/components/ion-reorder-group.js +1 -1
  49. package/components/ion-reorder.js +1 -1
  50. package/components/ion-ripple-effect.js +1 -1
  51. package/components/ion-router-link.js +1 -1
  52. package/components/ion-router-outlet.js +1 -1
  53. package/components/ion-row.js +1 -1
  54. package/components/ion-searchbar.js +1 -1
  55. package/components/ion-segment-button.js +1 -1
  56. package/components/ion-segment-content.js +1 -1
  57. package/components/ion-segment-view.js +1 -1
  58. package/components/ion-segment.js +1 -1
  59. package/components/ion-select-modal.js +1 -1
  60. package/components/ion-select-option.js +1 -1
  61. package/components/ion-select-popover.js +1 -1
  62. package/components/ion-select.js +1 -1
  63. package/components/ion-skeleton-text.js +1 -1
  64. package/components/ion-spinner.js +1 -1
  65. package/components/ion-split-pane.js +1 -1
  66. package/components/ion-tab-bar.js +1 -1
  67. package/components/ion-tab-button.js +1 -1
  68. package/components/ion-tab.js +1 -1
  69. package/components/ion-tabs.js +1 -1
  70. package/components/ion-text.js +1 -1
  71. package/components/ion-textarea.js +1 -1
  72. package/components/ion-thumbnail.js +1 -1
  73. package/components/ion-title.js +1 -1
  74. package/components/ion-toast.js +1 -1
  75. package/components/ion-toggle.js +1 -1
  76. package/components/ion-toolbar.js +1 -1
  77. package/components/p-B2rpt1JV.js +4 -0
  78. package/components/p-B6zr9RZN.js +4 -0
  79. package/components/{p-Brxa0j7O.js → p-B71c6yUH.js} +1 -1
  80. package/components/{p-C2cZvGcF.js → p-BFbsici0.js} +1 -1
  81. package/components/{p-CoarhFWH.js → p-BLCuPAtN.js} +1 -1
  82. package/components/{p-GnGGIfCd.js → p-BRWWcnBq.js} +1 -1
  83. package/components/{p-BfHB6wX_.js → p-BXcCGjEc.js} +1 -1
  84. package/components/{p-BU8N7ZrK.js → p-BqImG3uk.js} +1 -1
  85. package/components/{p-D5lMX0xt.js → p-C8ktKu9j.js} +1 -1
  86. package/components/{p-BhfW3d9j.js → p-CIoAIKEr.js} +1 -1
  87. package/components/p-CN-WzkJE.js +4 -0
  88. package/components/{p-CnwZE7CW.js → p-CoFqDNc5.js} +1 -1
  89. package/components/{p-TpZHKDyk.js → p-DAv9P_LE.js} +1 -1
  90. package/components/{p-CeYwuysM.js → p-DH_9VCbD.js} +1 -1
  91. package/components/{p-CdYTq34D.js → p-DTtRWhIZ.js} +1 -1
  92. package/components/{p-C-_EGKki.js → p-DXUyXgVL.js} +1 -1
  93. package/components/{p-BTYqyHph.js → p-Di5rHO3q.js} +1 -1
  94. package/components/{p-D39cV-un.js → p-Dmuy6xyk.js} +1 -1
  95. package/components/{p-BtAlyZ0b.js → p-IMXp2Inn.js} +1 -1
  96. package/components/{p-DAeMHNER.js → p-TR4ubkPu.js} +1 -1
  97. package/dist/cjs/ion-app_8.cjs.entry.js +7 -7
  98. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  99. package/dist/cjs/ion-col_3.cjs.entry.js +8 -6
  100. package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
  101. package/dist/cjs/ion-gallery.cjs.entry.js +510 -0
  102. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  103. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
  104. package/dist/cjs/ion-input-otp.cjs.entry.js +3 -3
  105. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +3 -3
  106. package/dist/cjs/ion-input.cjs.entry.js +4 -4
  107. package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
  108. package/dist/cjs/ion-item_8.cjs.entry.js +12 -12
  109. package/dist/cjs/ion-loading.cjs.entry.js +2 -2
  110. package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
  111. package/dist/cjs/ion-modal.cjs.entry.js +4 -4
  112. package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
  113. package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
  114. package/dist/cjs/ion-popover.cjs.entry.js +2 -2
  115. package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
  116. package/dist/cjs/ion-radio_2.cjs.entry.js +5 -5
  117. package/dist/cjs/ion-range.cjs.entry.js +3 -3
  118. package/dist/cjs/ion-refresher_2.cjs.entry.js +3 -3
  119. package/dist/cjs/ion-reorder_2.cjs.entry.js +3 -3
  120. package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
  121. package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
  122. package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
  123. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  124. package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
  125. package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
  126. package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
  127. package/dist/cjs/ion-select_3.cjs.entry.js +6 -6
  128. package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
  129. package/dist/cjs/ion-split-pane.cjs.entry.js +3 -2
  130. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
  131. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  132. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  133. package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
  134. package/dist/cjs/ion-toast.cjs.entry.js +2 -2
  135. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  136. package/dist/cjs/ionic.cjs.js +1 -1
  137. package/dist/cjs/loader.cjs.js +1 -1
  138. package/dist/collection/collection-manifest.json +6 -0
  139. package/dist/collection/components/col/col.js +3 -2
  140. package/dist/collection/components/gallery/gallery-constants.js +12 -0
  141. package/dist/collection/components/gallery/gallery-interface.js +1 -0
  142. package/dist/collection/components/gallery/gallery.css +100 -0
  143. package/dist/collection/components/gallery/gallery.js +595 -0
  144. package/dist/collection/components/gallery/test/utils.js +100 -0
  145. package/dist/collection/components/grid/grid.js +2 -2
  146. package/dist/collection/components/header/header.js +2 -2
  147. package/dist/collection/components/img/img.js +2 -2
  148. package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
  149. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
  150. package/dist/collection/components/input/input.js +4 -4
  151. package/dist/collection/components/input-otp/input-otp.js +3 -3
  152. package/dist/collection/components/input-password-toggle/input-password-toggle.js +3 -3
  153. package/dist/collection/components/item-divider/item-divider.js +2 -2
  154. package/dist/collection/components/item-group/item-group.js +1 -1
  155. package/dist/collection/components/item-option/item-option.js +2 -2
  156. package/dist/collection/components/item-options/item-options.js +1 -1
  157. package/dist/collection/components/item-sliding/item-sliding.js +1 -1
  158. package/dist/collection/components/label/label.js +2 -2
  159. package/dist/collection/components/list/list.js +1 -1
  160. package/dist/collection/components/list-header/list-header.js +2 -2
  161. package/dist/collection/components/loading/loading.js +2 -2
  162. package/dist/collection/components/menu/menu.js +2 -2
  163. package/dist/collection/components/menu-button/menu-button.js +2 -2
  164. package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
  165. package/dist/collection/components/modal/modal.js +4 -4
  166. package/dist/collection/components/nav/nav.js +1 -1
  167. package/dist/collection/components/nav-link/nav-link.js +1 -1
  168. package/dist/collection/components/note/note.js +2 -2
  169. package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
  170. package/dist/collection/components/picker-legacy/picker.js +2 -2
  171. package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
  172. package/dist/collection/components/popover/popover.js +2 -2
  173. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  174. package/dist/collection/components/radio/radio.js +3 -3
  175. package/dist/collection/components/radio-group/radio-group.js +2 -2
  176. package/dist/collection/components/range/range.js +3 -3
  177. package/dist/collection/components/refresher/refresher.js +1 -1
  178. package/dist/collection/components/refresher-content/refresher-content.js +2 -2
  179. package/dist/collection/components/reorder/reorder.js +2 -2
  180. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  181. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  182. package/dist/collection/components/router-link/router-link.js +2 -2
  183. package/dist/collection/components/router-outlet/router-outlet.js +1 -1
  184. package/dist/collection/components/row/row.js +2 -2
  185. package/dist/collection/components/searchbar/searchbar.js +4 -4
  186. package/dist/collection/components/segment/segment.js +2 -2
  187. package/dist/collection/components/segment-button/segment-button.js +2 -2
  188. package/dist/collection/components/segment-content/segment-content.js +1 -1
  189. package/dist/collection/components/segment-view/segment-view.js +2 -2
  190. package/dist/collection/components/select/select.js +3 -3
  191. package/dist/collection/components/select-modal/select-modal.js +1 -1
  192. package/dist/collection/components/select-option/select-option.js +1 -1
  193. package/dist/collection/components/select-popover/select-popover.js +2 -2
  194. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  195. package/dist/collection/components/spinner/spinner.js +1 -1
  196. package/dist/collection/components/split-pane/split-pane.js +3 -2
  197. package/dist/collection/components/tab/tab.js +2 -2
  198. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  199. package/dist/collection/components/tab-button/tab-button.js +2 -2
  200. package/dist/collection/components/tabs/tabs.js +1 -1
  201. package/dist/collection/components/text/text.js +2 -2
  202. package/dist/collection/components/textarea/textarea.js +3 -3
  203. package/dist/collection/components/thumbnail/thumbnail.js +2 -2
  204. package/dist/collection/components/title/title.js +2 -2
  205. package/dist/collection/components/toast/toast.js +2 -2
  206. package/dist/collection/components/toggle/toggle.js +3 -3
  207. package/dist/collection/components/toolbar/toolbar.js +2 -2
  208. package/dist/collection/utils/css-value-validation.js +25 -0
  209. package/dist/collection/utils/media.js +1 -0
  210. package/dist/docs.json +256 -1
  211. package/dist/esm/ion-app_8.entry.js +7 -7
  212. package/dist/esm/ion-avatar_3.entry.js +2 -2
  213. package/dist/esm/ion-col_3.entry.js +8 -6
  214. package/dist/esm/ion-datetime_3.entry.js +4 -4
  215. package/dist/esm/ion-gallery.entry.js +508 -0
  216. package/dist/esm/ion-img.entry.js +2 -2
  217. package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
  218. package/dist/esm/ion-input-otp.entry.js +3 -3
  219. package/dist/esm/ion-input-password-toggle.entry.js +3 -3
  220. package/dist/esm/ion-input.entry.js +4 -4
  221. package/dist/esm/ion-item-option_3.entry.js +4 -4
  222. package/dist/esm/ion-item_8.entry.js +12 -12
  223. package/dist/esm/ion-loading.entry.js +2 -2
  224. package/dist/esm/ion-menu_3.entry.js +6 -6
  225. package/dist/esm/ion-modal.entry.js +4 -4
  226. package/dist/esm/ion-nav_2.entry.js +2 -2
  227. package/dist/esm/ion-picker-column-option.entry.js +2 -2
  228. package/dist/esm/ion-popover.entry.js +2 -2
  229. package/dist/esm/ion-progress-bar.entry.js +1 -1
  230. package/dist/esm/ion-radio_2.entry.js +5 -5
  231. package/dist/esm/ion-range.entry.js +3 -3
  232. package/dist/esm/ion-refresher_2.entry.js +3 -3
  233. package/dist/esm/ion-reorder_2.entry.js +3 -3
  234. package/dist/esm/ion-ripple-effect.entry.js +1 -1
  235. package/dist/esm/ion-route_4.entry.js +2 -2
  236. package/dist/esm/ion-searchbar.entry.js +4 -4
  237. package/dist/esm/ion-segment-content.entry.js +1 -1
  238. package/dist/esm/ion-segment-view.entry.js +2 -2
  239. package/dist/esm/ion-segment_2.entry.js +4 -4
  240. package/dist/esm/ion-select-modal.entry.js +1 -1
  241. package/dist/esm/ion-select_3.entry.js +6 -6
  242. package/dist/esm/ion-spinner.entry.js +1 -1
  243. package/dist/esm/ion-split-pane.entry.js +3 -2
  244. package/dist/esm/ion-tab-bar_2.entry.js +4 -4
  245. package/dist/esm/ion-tab_2.entry.js +3 -3
  246. package/dist/esm/ion-text.entry.js +2 -2
  247. package/dist/esm/ion-textarea.entry.js +3 -3
  248. package/dist/esm/ion-toast.entry.js +2 -2
  249. package/dist/esm/ion-toggle.entry.js +3 -3
  250. package/dist/esm/ionic.js +1 -1
  251. package/dist/esm/loader.js +1 -1
  252. package/dist/html.html-data.json +74 -0
  253. package/dist/ionic/ionic.esm.js +1 -1
  254. package/dist/ionic/{p-96549175.entry.js → p-00c0bd38.entry.js} +1 -1
  255. package/dist/ionic/p-06bd033b.entry.js +4 -0
  256. package/dist/ionic/{p-192e7509.entry.js → p-15e3e8f5.entry.js} +1 -1
  257. package/dist/ionic/{p-5ac21be2.entry.js → p-1709b0aa.entry.js} +1 -1
  258. package/dist/ionic/{p-2bf931ae.entry.js → p-1c2c1869.entry.js} +1 -1
  259. package/dist/ionic/{p-3bf01c2c.entry.js → p-1c4de46b.entry.js} +1 -1
  260. package/dist/ionic/p-1e1c8d61.entry.js +4 -0
  261. package/dist/ionic/p-2aa7567e.entry.js +4 -0
  262. package/dist/ionic/{p-bc5713f7.entry.js → p-2ad79c23.entry.js} +1 -1
  263. package/dist/ionic/{p-5a3fc28e.entry.js → p-2f0073af.entry.js} +1 -1
  264. package/dist/ionic/{p-833910ae.entry.js → p-35b144f5.entry.js} +1 -1
  265. package/dist/ionic/{p-59b4f8d0.entry.js → p-3f79f594.entry.js} +1 -1
  266. package/dist/ionic/p-4079cee3.entry.js +4 -0
  267. package/dist/ionic/{p-f061fcb7.entry.js → p-48026d15.entry.js} +1 -1
  268. package/dist/ionic/{p-4091ad21.entry.js → p-50b61fab.entry.js} +1 -1
  269. package/dist/ionic/{p-8516eb69.entry.js → p-50cd2d57.entry.js} +1 -1
  270. package/dist/ionic/{p-50d90690.entry.js → p-5274f999.entry.js} +1 -1
  271. package/dist/ionic/{p-3093958a.entry.js → p-586d4270.entry.js} +1 -1
  272. package/dist/ionic/{p-6991ffa2.entry.js → p-7054a1b9.entry.js} +1 -1
  273. package/dist/ionic/{p-b8b20b7e.entry.js → p-71b6014c.entry.js} +1 -1
  274. package/dist/ionic/{p-9b9b1450.entry.js → p-72491468.entry.js} +1 -1
  275. package/dist/ionic/{p-c2894f9e.entry.js → p-76307d10.entry.js} +1 -1
  276. package/dist/ionic/{p-f740c359.entry.js → p-7d5057c4.entry.js} +1 -1
  277. package/dist/ionic/{p-091a95ea.entry.js → p-83c693c4.entry.js} +1 -1
  278. package/dist/ionic/{p-2aa44c65.entry.js → p-8537b2fb.entry.js} +1 -1
  279. package/dist/ionic/{p-02ecc684.entry.js → p-90e653e3.entry.js} +1 -1
  280. package/dist/ionic/{p-98c34fd7.entry.js → p-9d789053.entry.js} +1 -1
  281. package/dist/ionic/{p-1faf270d.entry.js → p-a9fb086b.entry.js} +1 -1
  282. package/dist/ionic/{p-e7f216ae.entry.js → p-ae667493.entry.js} +1 -1
  283. package/dist/ionic/{p-edb0b0c8.entry.js → p-b2fe6c1c.entry.js} +1 -1
  284. package/dist/ionic/{p-2effd05d.entry.js → p-b3c9f19c.entry.js} +1 -1
  285. package/dist/ionic/{p-6c8c37c2.entry.js → p-b653f4c2.entry.js} +1 -1
  286. package/dist/ionic/{p-4e46439d.entry.js → p-bd71a4a7.entry.js} +1 -1
  287. package/dist/ionic/p-bf972309.entry.js +4 -0
  288. package/dist/ionic/{p-8180abe5.entry.js → p-c10fa162.entry.js} +1 -1
  289. package/dist/ionic/{p-d954cd19.entry.js → p-d4ed5710.entry.js} +1 -1
  290. package/dist/ionic/{p-228b6a9c.entry.js → p-d6299c37.entry.js} +1 -1
  291. package/dist/ionic/{p-4610e447.entry.js → p-e18d3fdb.entry.js} +1 -1
  292. package/dist/ionic/{p-4c864eb2.entry.js → p-fad05840.entry.js} +1 -1
  293. package/dist/types/components/gallery/gallery-constants.d.ts +9 -0
  294. package/dist/types/components/gallery/gallery-interface.d.ts +10 -0
  295. package/dist/types/components/gallery/gallery.d.ts +183 -0
  296. package/dist/types/components/gallery/test/utils.d.ts +2 -0
  297. package/dist/types/components.d.ts +75 -0
  298. package/dist/types/utils/css-value-validation.d.ts +12 -0
  299. package/hydrate/index.js +648 -126
  300. package/hydrate/index.mjs +648 -126
  301. package/package.json +1 -1
  302. package/components/p-CnOTQxHB.js +0 -4
  303. package/components/p-XFUFdPrc.js +0 -4
  304. package/components/p-tYh73xQe.js +0 -4
  305. package/dist/ionic/p-308beb71.entry.js +0 -4
  306. package/dist/ionic/p-64341e32.entry.js +0 -4
  307. package/dist/ionic/p-76d0e7ef.entry.js +0 -4
  308. package/dist/ionic/p-ae4ea663.entry.js +0 -4
@@ -0,0 +1,510 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ 'use strict';
5
+
6
+ var index = require('./index-CzcLEdQ5.js');
7
+ var helpers = require('./helpers-DJYxKN5U.js');
8
+ var ionicGlobal = require('./ionic-global-CSEbHD_F.js');
9
+ require('./focus-visible-BIj-I3-C.js');
10
+
11
+ /**
12
+ * Helpers for validating user-supplied CSS values using regular expressions, without
13
+ * relying on browser CSS APIs.
14
+ */
15
+ // Matches `<length>` (`<number>` + unit identifier) or `<percentage>` (`<number>%`).
16
+ const LENGTH_PERCENTAGE_PATTERN = /^[-+]?(?:\d+\.?\d*|\.\d+)(?:%|[a-z]+)$/i;
17
+ // Matches simple `calc` / `min` / `max` / `clamp(...)` functions.
18
+ const MATH_FUNCTION_PATTERN = /^(calc|min|max|clamp)\s*\(.+\)$/i;
19
+ /**
20
+ * Returns whether `value` matches the [length-percentage](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/length-percentage)
21
+ * syntax. Accepts `<length>` (`<number>` + unit identifier) or `<percentage>` (`<number>%`).
22
+ * Also supports simple `calc` / `min` / `max` / `clamp(...)` functions.
23
+ *
24
+ * @param value String value to validate.
25
+ */
26
+ function isValidLengthPercentage(value) {
27
+ const v = value.trim();
28
+ if (!v) {
29
+ return false;
30
+ }
31
+ return MATH_FUNCTION_PATTERN.test(v) || LENGTH_PERCENTAGE_PATTERN.test(v);
32
+ }
33
+
34
+ const DEFAULT_COLUMNS = {
35
+ xs: 2,
36
+ sm: 3,
37
+ md: 4,
38
+ lg: 6,
39
+ xl: 8,
40
+ xxl: 10,
41
+ };
42
+ const DEFAULT_GAP = '16px';
43
+
44
+ const galleryCss = () => `:host{display:grid;grid-template-columns:repeat(var(--internal-gallery-columns, 2), minmax(0, 1fr))}:host(.gallery-layout-uniform){gap:var(--internal-gallery-gap, 16px)}:host(.gallery-layout-uniform) ::slotted(*){aspect-ratio:1/1}:host(.gallery-layout-masonry){-ms-flex-align:start;align-items:start;-webkit-column-gap:var(--internal-gallery-gap, 16px);-moz-column-gap:var(--internal-gallery-gap, 16px);column-gap:var(--internal-gallery-gap, 16px);row-gap:0;grid-auto-rows:2px}:host(.gallery-layout-masonry) ::slotted(*){display:block;min-height:unset;margin-bottom:var(--internal-gallery-gap, 16px)}::slotted(*){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%}::slotted(img){display:block;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}`;
45
+
46
+ // TODO(FW-7285): Replace with global breakpoints
47
+ const BREAKPOINTS = {
48
+ xs: 0,
49
+ sm: 576,
50
+ md: 768,
51
+ lg: 992,
52
+ xl: 1200,
53
+ xxl: 1400,
54
+ };
55
+ const BREAKPOINT_ORDER = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
56
+ const Gallery = class {
57
+ constructor(hostRef) {
58
+ index.registerInstance(this, hostRef);
59
+ // Keep track of whether we've warned about invalid columns, invalid gap,
60
+ // and unused order properties to avoid duplicate warnings on screen resize.
61
+ this.hasWarnedInvalidColumns = false;
62
+ this.hasWarnedInvalidGap = false;
63
+ this.hasWarnedUnusedOrder = false;
64
+ /**
65
+ * The visual layout of the gallery. When `uniform`, rows take up the height
66
+ * of the tallest item and are spaced evenly across the gallery. Additionally,
67
+ * items will have an aspect ratio of 1/1, forcing them to be square unless a
68
+ * height is explicitly set. When `masonry`, items will be positioned under each
69
+ * other with only the specified gap between them.
70
+ */
71
+ this.layout = 'uniform';
72
+ /**
73
+ * The number of columns to display. Can be set as a number or an object of
74
+ * breakpoint values (e.g. `{ xs: 2, sm: 3, md: 4 }`).
75
+ */
76
+ this.columns = DEFAULT_COLUMNS;
77
+ /**
78
+ * The space between gallery items. Accepts valid CSS [length-percentage](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/length-percentage)
79
+ * values like `16px`, `1rem`, `20%`, math functions like `calc(10px + 20%)`,
80
+ * or numbers (treated as pixel values). Can also be set as a breakpoint map
81
+ * (e.g. `{ xs: '8px', sm: '1rem', md: '24px' }`). Does not accept
82
+ * space-separated values or CSS keyword values like `inherit`, `auto`, etc.
83
+ */
84
+ this.gap = DEFAULT_GAP;
85
+ /**
86
+ * Listen for the slotchange event on the slot.
87
+ * When the layout is `masonry`, this listener is used to schedule a resize
88
+ * of the masonry grid when the slot changes. This is useful for when items
89
+ * are added or removed from the gallery.
90
+ */
91
+ this.onSlotChange = () => {
92
+ this.scheduleMasonryResize();
93
+ };
94
+ /**
95
+ * Measure the host and children, then compute masonry placement.
96
+ */
97
+ this.resizeMasonryGrid = () => {
98
+ this.masonryRaf = undefined;
99
+ if (this.layout !== 'masonry') {
100
+ this.clearMasonryStyles();
101
+ return;
102
+ }
103
+ const width = this.el.getBoundingClientRect().width;
104
+ const columns = this.getColumnsForWidth(width);
105
+ // Skip masonry placement when width/columns does not resolve
106
+ // to a valid breakpoint column count.
107
+ if (columns === undefined) {
108
+ return;
109
+ }
110
+ const styles = getComputedStyle(this.el);
111
+ const rowHeight = parseFloat(styles.getPropertyValue('grid-auto-rows')) || 0;
112
+ const rowGap = parseFloat(styles.getPropertyValue('row-gap')) || parseFloat(styles.getPropertyValue('gap')) || 0;
113
+ const items = this.getItems();
114
+ this.layoutMasonry(items, rowHeight, rowGap, columns);
115
+ };
116
+ }
117
+ onColumnsOrGapChanged() {
118
+ this.syncResponsiveLayout();
119
+ }
120
+ onLayoutOrOrderChanged() {
121
+ this.syncResponsiveLayout();
122
+ // Wait until the next animation frame to warn about unused order
123
+ // to avoid erroneous warnings when the layout and order are updated
124
+ // in the same frame.
125
+ helpers.raf(() => {
126
+ this.warnUnusedOrder();
127
+ });
128
+ }
129
+ componentDidLoad() {
130
+ this.updateResponsiveStyles(true);
131
+ this.resizeObserver = new ResizeObserver(() => {
132
+ this.updateResponsiveStyles();
133
+ this.scheduleMasonryResize();
134
+ });
135
+ this.resizeObserver.observe(this.el);
136
+ this.scheduleMasonryResize();
137
+ this.warnUnusedOrder();
138
+ }
139
+ disconnectedCallback() {
140
+ var _a;
141
+ if (this.masonryRaf !== undefined) {
142
+ cancelAnimationFrame(this.masonryRaf);
143
+ this.masonryRaf = undefined;
144
+ }
145
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
146
+ this.resizeObserver = undefined;
147
+ }
148
+ /**
149
+ * Listen for the load event on child elements.
150
+ * When the layout is `masonry`, this listener is used to schedule a resize
151
+ * of the masonry grid when the child elements load. This is useful for when
152
+ * images take time to load.
153
+ */
154
+ onChildLoad(ev) {
155
+ if (this.layout !== 'masonry') {
156
+ return;
157
+ }
158
+ const target = ev.target;
159
+ if (target instanceof Node && this.el.contains(target)) {
160
+ this.scheduleMasonryResize();
161
+ }
162
+ }
163
+ /**
164
+ * Recompute the gallery column and gap variables and masonry placement when
165
+ * columns, gap, layout, or order change.
166
+ */
167
+ syncResponsiveLayout() {
168
+ this.updateResponsiveStyles(true);
169
+ this.scheduleMasonryResize();
170
+ }
171
+ /**
172
+ * Batch masonry measurements to a single animation frame.
173
+ * This avoids repeated sync layouts during rapid resize/load/slot changes.
174
+ */
175
+ scheduleMasonryResize() {
176
+ if (this.layout !== 'masonry') {
177
+ this.clearMasonryStyles();
178
+ return;
179
+ }
180
+ if (this.masonryRaf !== undefined) {
181
+ cancelAnimationFrame(this.masonryRaf);
182
+ }
183
+ this.masonryRaf = requestAnimationFrame(this.resizeMasonryGrid);
184
+ }
185
+ /**
186
+ * Normalize a single column value (`columns` as a number, string, or one entry from
187
+ * a `columns` breakpoint map) to a positive integer. Returns `undefined` when
188
+ * the input cannot be interpreted as a finite number.
189
+ */
190
+ sanitizeColumns(columns) {
191
+ if (columns === undefined) {
192
+ return undefined;
193
+ }
194
+ const numericColumns = typeof columns === 'number' ? columns : Number(columns);
195
+ if (!Number.isFinite(numericColumns) || !Number.isInteger(numericColumns) || numericColumns <= 0) {
196
+ return undefined;
197
+ }
198
+ return numericColumns;
199
+ }
200
+ /**
201
+ * Normalize a single gap value (`gap` as a number, string, or one entry from
202
+ * a `gap` breakpoint map) to a CSS length string. Returns `undefined` when
203
+ * the input cannot be interpreted as a valid CSS length.
204
+ */
205
+ sanitizeGap(gap) {
206
+ if (gap === undefined) {
207
+ return undefined;
208
+ }
209
+ const normalizedGap = typeof gap === 'string' ? gap.trim() : gap;
210
+ if (normalizedGap === '' || typeof normalizedGap === 'object') {
211
+ return undefined;
212
+ }
213
+ const numericGap = Number(normalizedGap);
214
+ if (Number.isFinite(numericGap)) {
215
+ return numericGap < 0 ? undefined : `${numericGap}px`;
216
+ }
217
+ if (typeof normalizedGap !== 'string') {
218
+ return undefined;
219
+ }
220
+ const isValidCssLength = isValidLengthPercentage(normalizedGap);
221
+ return isValidCssLength ? normalizedGap : undefined;
222
+ }
223
+ /**
224
+ * Check if the value is a breakpoint map object.
225
+ */
226
+ isBreakpointMap(value) {
227
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
228
+ }
229
+ /**
230
+ * Check if the breakpoint map has any invalid values for the provided
231
+ * sanitizer. A breakpoint map is invalid when there are no valid breakpoint
232
+ * keys set (e.g. `{}` or `{ colums: 3 }`), or when a value under a
233
+ * breakpoint key fails the sanitizer (e.g. `{ xs: -3 }`, `{ sm: 'foo' }`).
234
+ */
235
+ hasInvalidBreakpointMap(breakpointMap, sanitizeValue) {
236
+ let hasBreakpointEntry = false;
237
+ for (const breakpoint of BREAKPOINT_ORDER) {
238
+ const value = breakpointMap[breakpoint];
239
+ if (value !== undefined) {
240
+ hasBreakpointEntry = true;
241
+ if (sanitizeValue(value) === undefined) {
242
+ return true;
243
+ }
244
+ }
245
+ }
246
+ return !hasBreakpointEntry;
247
+ }
248
+ /**
249
+ * Resolve a responsive value from a breakpoint map.
250
+ * Uses a breakpoint-specific default when custom values are missing/invalid.
251
+ */
252
+ resolveFromBreakpoints(width, breakpointMap, sanitizeProvided, getSanitizedDefault) {
253
+ let resolvedValue;
254
+ for (const bp of BREAKPOINT_ORDER) {
255
+ const providedValue = breakpointMap[bp];
256
+ const sanitizedProvided = sanitizeProvided(providedValue);
257
+ const sanitizedDefault = getSanitizedDefault(bp);
258
+ const resolved = providedValue === undefined || sanitizedProvided === undefined ? sanitizedDefault : sanitizedProvided;
259
+ if (resolved !== undefined && width >= BREAKPOINTS[bp]) {
260
+ resolvedValue = resolved;
261
+ }
262
+ }
263
+ return resolvedValue;
264
+ }
265
+ /**
266
+ * Get the columns from a responsive breakpoint map.
267
+ * Returns the columns for the last matching breakpoint.
268
+ */
269
+ getColumnsFromBreakpointMap(width, breakpointMap) {
270
+ return this.resolveFromBreakpoints(width, breakpointMap, (value) => this.sanitizeColumns(value), (bp) => this.sanitizeColumns(DEFAULT_COLUMNS[bp]));
271
+ }
272
+ /**
273
+ * Get the gap from a responsive breakpoint map.
274
+ * Returns the gap for the last matching breakpoint.
275
+ */
276
+ getGapFromBreakpointMap(width, breakpointMap) {
277
+ return this.resolveFromBreakpoints(width, breakpointMap, (value) => this.sanitizeGap(value), () => this.sanitizeGap(DEFAULT_GAP));
278
+ }
279
+ /**
280
+ * Warn about an invalid columns value when it is set to a negative number,
281
+ * an empty breakpoint map, a map with no supported breakpoint keys,
282
+ * or a map with invalid breakpoint values.
283
+ */
284
+ warnInvalidColumns(columns) {
285
+ if (this.hasWarnedInvalidColumns) {
286
+ return;
287
+ }
288
+ index.printIonWarning(`[ion-gallery] - Invalid "columns" value (${JSON.stringify(columns)}). Expected a positive integer or breakpoint map object (e.g. { xs: 2, md: 4 }). Falling back to default responsive columns.`, this.el);
289
+ this.hasWarnedInvalidColumns = true;
290
+ }
291
+ /**
292
+ * Warn about an invalid gap value when it is set to a negative number,
293
+ * an empty breakpoint map, a map with no supported breakpoint keys,
294
+ * or a map with invalid breakpoint values.
295
+ */
296
+ warnInvalidGap(gap) {
297
+ if (this.hasWarnedInvalidGap) {
298
+ return;
299
+ }
300
+ index.printIonWarning(`[ion-gallery] - Invalid "gap" value (${JSON.stringify(gap)}). Expected a non-negative number, CSS length string, or breakpoint map object (e.g. { xs: 8, md: "1rem" }).`, this.el);
301
+ this.hasWarnedInvalidGap = true;
302
+ }
303
+ /**
304
+ * Warn when `order` is explicitly set while layout is `uniform`.
305
+ */
306
+ warnUnusedOrder() {
307
+ const { layout } = this;
308
+ const order = this.order == null ? undefined : this.order;
309
+ if (this.hasWarnedUnusedOrder || layout !== 'uniform' || order === undefined) {
310
+ return;
311
+ }
312
+ index.printIonWarning(`[ion-gallery] - "order" has no effect when "layout" is "uniform". Set "layout" to "masonry" for "order" to apply.`, this.el);
313
+ this.hasWarnedUnusedOrder = true;
314
+ }
315
+ /**
316
+ * Resolve the active columns value for the current width. Falls back to
317
+ * the default responsive columns when the provided prop is invalid.
318
+ */
319
+ getColumnsForWidth(width) {
320
+ const { columns } = this;
321
+ const isBreakpointColumns = this.isBreakpointMap(columns);
322
+ const hasInvalidBreakpointColumns = isBreakpointColumns && this.hasInvalidBreakpointMap(columns, (value) => this.sanitizeColumns(value));
323
+ const sanitizedColumns = isBreakpointColumns
324
+ ? this.getColumnsFromBreakpointMap(width, columns)
325
+ : this.sanitizeColumns(columns);
326
+ if (hasInvalidBreakpointColumns || (!isBreakpointColumns && sanitizedColumns === undefined)) {
327
+ this.warnInvalidColumns(columns);
328
+ }
329
+ if (sanitizedColumns !== undefined) {
330
+ return sanitizedColumns;
331
+ }
332
+ return this.getColumnsFromBreakpointMap(width, DEFAULT_COLUMNS);
333
+ }
334
+ /**
335
+ * Resolve the active gap value for the current width.
336
+ */
337
+ getGapForWidth(width) {
338
+ const { gap } = this;
339
+ const providedGap = gap !== null && gap !== void 0 ? gap : DEFAULT_GAP;
340
+ const isBreakpointGap = this.isBreakpointMap(providedGap);
341
+ const hasInvalidBreakpointGap = isBreakpointGap && this.hasInvalidBreakpointMap(providedGap, (value) => this.sanitizeGap(value));
342
+ const sanitizedGap = isBreakpointGap
343
+ ? this.getGapFromBreakpointMap(width, providedGap)
344
+ : this.sanitizeGap(providedGap);
345
+ if (hasInvalidBreakpointGap || (!isBreakpointGap && sanitizedGap === undefined)) {
346
+ this.warnInvalidGap(providedGap);
347
+ }
348
+ if (sanitizedGap !== undefined) {
349
+ return sanitizedGap;
350
+ }
351
+ return this.sanitizeGap(DEFAULT_GAP);
352
+ }
353
+ /**
354
+ * Update the responsive styles for the gallery. This is used to update
355
+ * the columns and gap when the component width changes.
356
+ */
357
+ updateResponsiveStyles(force = false) {
358
+ const width = this.el.getBoundingClientRect().width;
359
+ // Only update the columns if the component width has changed by more than
360
+ // 1px or if the force flag is true. This prevents unnecessary re-renders
361
+ // when the component width has not changed.
362
+ if (!width || (!force && this.lastWidth !== undefined && Math.abs(this.lastWidth - width) < 1)) {
363
+ return;
364
+ }
365
+ this.lastWidth = width;
366
+ const columns = this.getColumnsForWidth(width);
367
+ this.el.style.setProperty('--internal-gallery-columns', `${columns}`);
368
+ const gap = this.getGapForWidth(width);
369
+ this.el.style.setProperty('--internal-gallery-gap', `${gap}`);
370
+ }
371
+ /**
372
+ * Return all directly slotted children of the gallery that can be grid items
373
+ * with inline placement styles (HTML elements and SVG elements).
374
+ */
375
+ getItems() {
376
+ return Array.from(this.el.children).filter((child) => { var _a; return typeof ((_a = child.style) === null || _a === void 0 ? void 0 : _a.setProperty) === 'function'; });
377
+ }
378
+ /**
379
+ * Clear the item styles for the given item element.
380
+ * This is used to switch between uniform and masonry layouts.
381
+ */
382
+ clearItemStyles(itemEl) {
383
+ itemEl.style.gridRowStart = '';
384
+ itemEl.style.gridRowEnd = '';
385
+ itemEl.style.gridColumn = '';
386
+ itemEl.style.marginBottom = '';
387
+ }
388
+ /**
389
+ * Clear placement styles for all items when leaving masonry mode.
390
+ */
391
+ clearMasonryStyles() {
392
+ this.getItems().forEach((itemEl) => this.clearItemStyles(itemEl));
393
+ }
394
+ /**
395
+ * Convert a rendered item height to the number of grid rows it should span.
396
+ * Returns undefined for images that are not fully loaded yet.
397
+ */
398
+ calculateRowSpan(itemEl, rowHeight, rowGap) {
399
+ if (itemEl instanceof HTMLImageElement && (!itemEl.complete || itemEl.naturalHeight === 0)) {
400
+ return undefined;
401
+ }
402
+ const height = itemEl.getBoundingClientRect().height;
403
+ const itemStyles = getComputedStyle(itemEl);
404
+ const marginBottom = parseFloat(itemStyles.getPropertyValue('margin-bottom')) || 0;
405
+ const denominator = rowHeight + rowGap;
406
+ if (!denominator || !Number.isFinite(denominator)) {
407
+ return 1;
408
+ }
409
+ return Math.ceil((height + marginBottom + rowGap) / denominator) || 1;
410
+ }
411
+ /**
412
+ * Get the index of the column to position the item in.
413
+ * When the order is `best-fit`, the column with the shortest height is
414
+ * returned. Otherwise, items are placed in the column that matches their
415
+ * natural DOM order.
416
+ */
417
+ getColumnIndex(index, columnHeights, columns) {
418
+ const order = this.getOrder();
419
+ if (order === 'best-fit') {
420
+ let columnIndex = 0;
421
+ for (let i = 1; i < columns; i++) {
422
+ if (columnHeights[i] < columnHeights[columnIndex]) {
423
+ columnIndex = i;
424
+ }
425
+ }
426
+ return columnIndex;
427
+ }
428
+ return index % columns;
429
+ }
430
+ /**
431
+ * Apply masonry placement by assigning each item a column and row span.
432
+ */
433
+ layoutMasonry(items, rowHeight, rowGap, columns) {
434
+ const columnHeights = new Array(columns).fill(0);
435
+ const lastItemsByColumn = new Array(columns).fill(undefined);
436
+ items.forEach((itemEl, i) => {
437
+ itemEl.style.marginBottom = '';
438
+ const span = this.calculateRowSpan(itemEl, rowHeight, rowGap);
439
+ if (span === undefined) {
440
+ this.clearItemStyles(itemEl);
441
+ return;
442
+ }
443
+ const columnIndex = this.getColumnIndex(i, columnHeights, columns);
444
+ const start = columnHeights[columnIndex] + 1;
445
+ itemEl.style.gridColumn = `${columnIndex + 1}`;
446
+ itemEl.style.gridRowStart = `${start}`;
447
+ itemEl.style.gridRowEnd = `span ${span}`;
448
+ columnHeights[columnIndex] = start + span - 1;
449
+ lastItemsByColumn[columnIndex] = itemEl;
450
+ });
451
+ // Remove trailing space from the final item in each column while preserving
452
+ // spacing between all non-final items.
453
+ lastItemsByColumn.forEach((itemEl) => {
454
+ if (itemEl === undefined) {
455
+ return;
456
+ }
457
+ itemEl.style.marginBottom = '0px';
458
+ const spanWithoutTrailingGap = this.calculateRowSpan(itemEl, rowHeight, rowGap);
459
+ if (spanWithoutTrailingGap === undefined) {
460
+ this.clearItemStyles(itemEl);
461
+ return;
462
+ }
463
+ itemEl.style.gridRowEnd = `span ${spanWithoutTrailingGap}`;
464
+ });
465
+ }
466
+ /**
467
+ * Resolved order for layout and CSS. Order should be `undefined` for
468
+ * the uniform layout. When order is not set, it should be `"sequential"`
469
+ * for the masonry layout.
470
+ */
471
+ getOrder() {
472
+ const { layout } = this;
473
+ const order = this.order == null ? undefined : this.order;
474
+ if (layout === 'uniform') {
475
+ return undefined;
476
+ }
477
+ if (layout === 'masonry' && order === undefined) {
478
+ return 'sequential';
479
+ }
480
+ return order;
481
+ }
482
+ render() {
483
+ const { layout } = this;
484
+ const order = this.getOrder();
485
+ const theme = ionicGlobal.getIonTheme(this);
486
+ return (index.h(index.Host, { key: '1bf2973d22835c0dbddf3214b602f8c08b95e421', class: {
487
+ [theme]: true,
488
+ [`gallery-layout-${layout}`]: true,
489
+ [`gallery-order-${order}`]: layout === 'masonry' && order !== undefined,
490
+ } }, index.h("slot", { key: '0dea31f609f6afdb1d73ecb2d873909ffe49203f', onSlotchange: this.onSlotChange })));
491
+ }
492
+ get el() { return index.getElement(this); }
493
+ static get watchers() { return {
494
+ "columns": [{
495
+ "onColumnsOrGapChanged": 0
496
+ }],
497
+ "gap": [{
498
+ "onColumnsOrGapChanged": 0
499
+ }],
500
+ "layout": [{
501
+ "onLayoutOrOrderChanged": 0
502
+ }],
503
+ "order": [{
504
+ "onLayoutOrOrderChanged": 0
505
+ }]
506
+ }; }
507
+ };
508
+ Gallery.style = galleryCss();
509
+
510
+ exports.ion_gallery = Gallery;
@@ -84,9 +84,9 @@ const Img = class {
84
84
  const { loadSrc, alt, onLoad, loadError, inheritedAttributes } = this;
85
85
  const { draggable } = inheritedAttributes;
86
86
  const theme = ionicGlobal.getIonTheme(this);
87
- return (index.h(index.Host, { key: '840d5b29d81222b061ac72168ef6551b5a061e3a', class: {
87
+ return (index.h(index.Host, { key: '91de170493b31d6260e975b440beceb6906b6d5a', class: {
88
88
  [theme]: true,
89
- } }, index.h("img", { key: 'e22e66ee4bb3a648b21c6080674e68eebf4a3feb', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
89
+ } }, index.h("img", { key: 'ac1f41afbece34a3e38e656733f3e55cce385b4c', decoding: "async", src: loadSrc, alt: alt, onLoad: onLoad, onError: loadError, part: "image", draggable: isDraggable(draggable) })));
90
90
  }
91
91
  get el() { return index.getElement(this); }
92
92
  static get watchers() { return {
@@ -271,7 +271,7 @@ const InfiniteScroll = class {
271
271
  render() {
272
272
  const theme = ionicGlobal.getIonTheme(this);
273
273
  const disabled = this.disabled;
274
- return (index.h(index.Host, { key: '22d99824cb589d9024666a3c1ed205f781858eed', class: {
274
+ return (index.h(index.Host, { key: '02beca21d668e4e605532ad5ca5a67a08c71eebb', class: {
275
275
  [theme]: true,
276
276
  'infinite-scroll-loading': this.isLoading,
277
277
  'infinite-scroll-enabled': !disabled,
@@ -315,11 +315,11 @@ const InfiniteScrollContent = class {
315
315
  }
316
316
  render() {
317
317
  const theme = ionicGlobal.getIonTheme(this);
318
- return (index.h(index.Host, { key: 'e94d19f17ef9d4d77786716152e3206366feb546', class: {
318
+ return (index.h(index.Host, { key: 'b51954f829eeafd5ec304b3e66e330776485ffc8', class: {
319
319
  [theme]: true,
320
320
  // Used internally for styling
321
321
  [`infinite-scroll-content-${theme}`]: true,
322
- } }, index.h("div", { key: '35fcc0572ad27a683aa55a704bd11b19fcdfd29c', class: "infinite-loading" }, this.loadingSpinner && (index.h("div", { key: 'fec3c13dbb2fa98699401147ce442b73e97e8bd8', class: "infinite-loading-spinner" }, index.h("ion-spinner", { key: '6cd6083255dacc891b4d201477e6bffccb1084bc', name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
322
+ } }, index.h("div", { key: '047da7f15fe38deed592dd66d1c97e12da4545bb', class: "infinite-loading" }, this.loadingSpinner && (index.h("div", { key: '1c05820f091052b8ee9e9ca20054495a676c21aa', class: "infinite-loading-spinner" }, index.h("ion-spinner", { key: 'ff801e3486f3c1a4605d2a2de9b47bd7bd536698', name: this.loadingSpinner }))), this.loadingText !== undefined && this.renderLoadingText())));
323
323
  }
324
324
  };
325
325
  InfiniteScrollContent.style = {
@@ -692,7 +692,7 @@ const InputOTP = class {
692
692
  const tabbableIndex = this.getTabbableIndex();
693
693
  const pattern = this.getPattern();
694
694
  const hasDescription = ((_b = (_a = el.querySelector('.input-otp-description')) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) !== '';
695
- return (index.h(index.Host, { key: 'aee59cdba3f3c3783519cf114c668ae92f74fcef', class: theme.createColorClasses(color, {
695
+ return (index.h(index.Host, { key: '7a5c5dbb7e1880bd94d4b00e579af941366b1cb2', class: theme.createColorClasses(color, {
696
696
  [mode]: true,
697
697
  'has-focus': hasFocus,
698
698
  [`input-otp-size-${size}`]: true,
@@ -700,10 +700,10 @@ const InputOTP = class {
700
700
  [`input-otp-fill-${fill}`]: true,
701
701
  'input-otp-disabled': disabled,
702
702
  'input-otp-readonly': readonly,
703
- }) }, index.h("div", Object.assign({ key: 'a0b26b833a20807019114a78e4512a639b82a61f', role: "group", "aria-label": "One-time password input", class: "input-otp-group", part: "group" }, inheritedAttributes), Array.from({ length }).map((_, index$1) => (index.h(index.Fragment, null, index.h("div", { class: "native-wrapper", part: "container" }, index.h("input", { class: "native-input", part: "native", id: `${inputId}-${index$1}`, "aria-label": `Input ${index$1 + 1} of ${length}`, type: "text", autoCapitalize: autocapitalize, inputmode: inputmode, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index$1 === tabbableIndex ? 0 : -1, value: inputValues[index$1] || '', autocomplete: "one-time-code", ref: (el) => (inputRefs[index$1] = el), onInput: this.onInput(index$1), onBlur: this.onBlur, onFocus: this.onFocus(index$1), onKeyDown: this.onKeyDown(index$1), onPaste: this.onPaste })), this.showSeparator(index$1) && index.h("div", { class: "input-otp-separator", part: "separator" }))))), index.h("div", { key: 'e525d1841bab5378b165ec1cca9fc45274c2c0ec', class: {
703
+ }) }, index.h("div", Object.assign({ key: 'a4427602ea1894d53e4d0f502dbb972c93a86bff', role: "group", "aria-label": "One-time password input", class: "input-otp-group", part: "group" }, inheritedAttributes), Array.from({ length }).map((_, index$1) => (index.h(index.Fragment, null, index.h("div", { class: "native-wrapper", part: "container" }, index.h("input", { class: "native-input", part: "native", id: `${inputId}-${index$1}`, "aria-label": `Input ${index$1 + 1} of ${length}`, type: "text", autoCapitalize: autocapitalize, inputmode: inputmode, pattern: pattern, disabled: disabled, readOnly: readonly, tabIndex: index$1 === tabbableIndex ? 0 : -1, value: inputValues[index$1] || '', autocomplete: "one-time-code", ref: (el) => (inputRefs[index$1] = el), onInput: this.onInput(index$1), onBlur: this.onBlur, onFocus: this.onFocus(index$1), onKeyDown: this.onKeyDown(index$1), onPaste: this.onPaste })), this.showSeparator(index$1) && index.h("div", { class: "input-otp-separator", part: "separator" }))))), index.h("div", { key: '7ee9d8dfd2e52875f1bfe3e3dea0494c18c12f4a', class: {
704
704
  'input-otp-description': true,
705
705
  'input-otp-description-hidden': !hasDescription,
706
- }, part: "description" }, index.h("slot", { key: '9fd331ceff04ab93f8d4aec251565cc201f19294' }))));
706
+ }, part: "description" }, index.h("slot", { key: '163c374e7ae5dbdb1dc12483161e5aca919a50d5' }))));
707
707
  }
708
708
  static get formAssociated() { return true; }
709
709
  get el() { return index.getElement(this); }
@@ -101,16 +101,16 @@ const InputPasswordToggle = class {
101
101
  const { color, inputPasswordHideIcon, inputPasswordShowIcon, type } = this;
102
102
  const mode = ionicGlobal.getIonMode(this);
103
103
  const isPasswordVisible = type === 'text';
104
- return (index.h(index.Host, { key: 'e3c21d5bedebeadb57c0c9b7f065d15ab0d49e4a', class: theme.createColorClasses(color, {
104
+ return (index.h(index.Host, { key: 'c7f0805958b284005806a0cb3ed0b5cba42cecd1', class: theme.createColorClasses(color, {
105
105
  [mode]: true,
106
- }) }, index.h("ion-button", { key: '0a83d58e059bc3b7ef604270e92351d7fa5d129c', mode: mode, color: color, fill: "clear", shape: "round", "aria-label": isPasswordVisible ? 'Hide password' : 'Show password', "aria-pressed": isPasswordVisible ? 'true' : 'false', type: "button", onPointerDown: (ev) => {
106
+ }) }, index.h("ion-button", { key: 'dee2bdeb169d1fa4943c9a8b0164b8fbb4cdfe06', mode: mode, color: color, fill: "clear", shape: "round", "aria-label": isPasswordVisible ? 'Hide password' : 'Show password', "aria-pressed": isPasswordVisible ? 'true' : 'false', type: "button", onPointerDown: (ev) => {
107
107
  /**
108
108
  * This prevents mobile browsers from
109
109
  * blurring the input when the password toggle
110
110
  * button is activated.
111
111
  */
112
112
  ev.preventDefault();
113
- }, onClick: this.togglePasswordVisibility }, index.h("ion-icon", { key: 'af9a7e202fe0b3f75f10b3e13bf1e5fb653194d1', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? inputPasswordHideIcon : inputPasswordShowIcon }))));
113
+ }, onClick: this.togglePasswordVisibility }, index.h("ion-icon", { key: 'be752db7186a7cd6fc033c7002fcb1683d93c162', slot: "icon-only", "aria-hidden": "true", icon: isPasswordVisible ? inputPasswordHideIcon : inputPasswordShowIcon }))));
114
114
  }
115
115
  get el() { return index.getElement(this); }
116
116
  static get watchers() { return {
@@ -622,7 +622,7 @@ const Input = class {
622
622
  * TODO(FW-5592): Remove hasStartEndSlots condition
623
623
  */
624
624
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
625
- return (index.h(index.Host, { key: 'd62741432c3e1421d69fdf2ed2e8058a1ce3544f', class: theme.createColorClasses(this.color, {
625
+ return (index.h(index.Host, { key: 'beeeca9939e7e416783425f67d3c9e2be6bbae99', class: theme.createColorClasses(this.color, {
626
626
  [theme$1]: true,
627
627
  'has-value': hasValue,
628
628
  'has-focus': hasFocus,
@@ -635,7 +635,7 @@ const Input = class {
635
635
  'in-item-color': theme.hostContext('ion-item.ion-color', this.el),
636
636
  'input-disabled': disabled,
637
637
  'input-readonly': readonly,
638
- }) }, index.h("label", { key: '9707227d9eb977e0983c78757af20219eb1651c6', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), index.h("div", { key: '8bc5197ecb665e268668137844f122b74f69cc2d', class: "native-wrapper", onClick: this.onLabelClick },
638
+ }) }, index.h("label", { key: 'f227df52a6ad60344f16261a82c0d0566bb8cd5b', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), index.h("div", { key: 'ae6da554ce21f805361a7704139b776a9344dcb2', class: "native-wrapper", onClick: this.onLabelClick },
639
639
  /**
640
640
  * For the ionic theme, we render the outline container here
641
641
  * instead of higher up, so it can be positioned relative to
@@ -645,14 +645,14 @@ const Input = class {
645
645
  * <label> element, ensuring that clicking the label text
646
646
  * focuses the input.
647
647
  */
648
- theme$1 === 'ionic' && index.h("div", { key: '65383eeb6a876dbf103dd5358f041f45856e6e9d', class: "input-outline" }), index.h("slot", { key: '7d333894f2be13a4033a515ce3c8a4489cc4bfc3', name: "start" }), index.h("input", Object.assign({ key: '8221d445e4ee9e1d2946205893cbb6de93604c86', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-labelledby": this.getLabelledById() }, this.inheritedAttributes)), clearInput && !readonly && !disabled && (index.h("button", { key: '2fb77a78ecb32b46dc9641580c2c2f6125e9715d', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
648
+ theme$1 === 'ionic' && index.h("div", { key: '83aa5e7ad97b0c964e31966c1d2b8771d1ecfc53', class: "input-outline" }), index.h("slot", { key: '1931003f2b0d19508acaaffab58fee644d1f6158', name: "start" }), index.h("input", Object.assign({ key: '33a06efb4ce0b6e67c12e77f131effb113fba73f', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-labelledby": this.getLabelledById() }, this.inheritedAttributes)), clearInput && !readonly && !disabled && (index.h("button", { key: 'd350f26cf6927ee089373ea8903db2479a0a404c', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
649
649
  /**
650
650
  * This prevents mobile browsers from
651
651
  * blurring the input when the clear
652
652
  * button is activated.
653
653
  */
654
654
  ev.preventDefault();
655
- }, onClick: this.clearTextInput }, index.h("ion-icon", { key: 'a349dfb263a011fc10f01350f917c4020809f512', "aria-hidden": "true", icon: inputClearIcon }))), index.h("slot", { key: '6e02025608bd54cf36e21ed3bef00353921a7fb9', name: "end" })), shouldRenderHighlight && index.h("div", { key: '8bf1e516962d232a96a2fa701e10c8c909318f62', class: "input-highlight" })), this.renderBottomContent()));
655
+ }, onClick: this.clearTextInput }, index.h("ion-icon", { key: '972a2d94dcf599e63aac1d73e34873a9c3d0bf94', "aria-hidden": "true", icon: inputClearIcon }))), index.h("slot", { key: 'fac4dcaabb02f647e46276e92e3f341557170aec', name: "end" })), shouldRenderHighlight && index.h("div", { key: 'a10e519d8d1f0dcd81ffc43b8e4086797476f753', class: "input-highlight" })), this.renderBottomContent()));
656
656
  }
657
657
  get el() { return index.getElement(this); }
658
658
  static get watchers() { return {