@ionic/core 8.5.2-nightly.20250325 → 8.5.2

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 (310) hide show
  1. package/components/helpers.js +1 -11
  2. package/components/index9.js +1 -1
  3. package/components/ion-datetime.js +5 -5
  4. package/components/ion-segment-button.js +20 -51
  5. package/components/picker.js +54 -77
  6. package/dist/cjs/{framework-delegate-11b0ba2f.js → framework-delegate-50a86d56.js} +1 -1
  7. package/dist/cjs/{helpers-d0dfbb50.js → helpers-3a248559.js} +0 -11
  8. package/dist/cjs/{index-fd6383b6.js → index-4b70187a.js} +1 -1
  9. package/dist/cjs/{index-9b945a2d.js → index-509ca0d3.js} +1 -1
  10. package/dist/cjs/{index-363fe6b2.js → index-e36bd277.js} +1 -1
  11. package/dist/cjs/{index-f68a486a.js → index-e630fd95.js} +3 -3
  12. package/dist/cjs/index.cjs.js +7 -7
  13. package/dist/cjs/{input-shims-2d27a5be.js → input-shims-22a9973f.js} +2 -2
  14. package/dist/cjs/{input.utils-2f642324.js → input.utils-e82b8ed0.js} +1 -1
  15. package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
  16. package/dist/cjs/ion-action-sheet.cjs.entry.js +3 -3
  17. package/dist/cjs/ion-alert.cjs.entry.js +3 -3
  18. package/dist/cjs/ion-app_8.cjs.entry.js +8 -8
  19. package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
  20. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +1 -1
  21. package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
  22. package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
  23. package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
  24. package/dist/cjs/ion-datetime-button.cjs.entry.js +1 -1
  25. package/dist/cjs/ion-datetime_3.cjs.entry.js +8 -8
  26. package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
  27. package/dist/cjs/ion-img.cjs.entry.js +1 -1
  28. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
  29. package/dist/cjs/ion-input.cjs.entry.js +3 -3
  30. package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
  31. package/dist/cjs/ion-item_8.cjs.entry.js +1 -1
  32. package/dist/cjs/ion-loading.cjs.entry.js +3 -3
  33. package/dist/cjs/ion-menu_3.cjs.entry.js +4 -4
  34. package/dist/cjs/ion-modal.cjs.entry.js +5 -5
  35. package/dist/cjs/ion-nav_2.cjs.entry.js +4 -4
  36. package/dist/cjs/ion-picker-column-option.cjs.entry.js +1 -1
  37. package/dist/cjs/ion-picker-column.cjs.entry.js +1 -1
  38. package/dist/cjs/ion-picker.cjs.entry.js +55 -78
  39. package/dist/cjs/ion-popover.cjs.entry.js +4 -4
  40. package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
  41. package/dist/cjs/ion-radio_2.cjs.entry.js +1 -1
  42. package/dist/cjs/ion-range.cjs.entry.js +2 -2
  43. package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
  44. package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-route_4.cjs.entry.js +1 -1
  46. package/dist/cjs/ion-searchbar.cjs.entry.js +1 -1
  47. package/dist/cjs/ion-segment_2.cjs.entry.js +20 -51
  48. package/dist/cjs/ion-select-modal.cjs.entry.js +3 -3
  49. package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
  50. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
  51. package/dist/cjs/ion-tab_2.cjs.entry.js +2 -2
  52. package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
  53. package/dist/cjs/ion-toast.cjs.entry.js +3 -3
  54. package/dist/cjs/ion-toggle.cjs.entry.js +1 -1
  55. package/dist/cjs/{ios.transition-f970164c.js → ios.transition-ae7afca9.js} +2 -2
  56. package/dist/cjs/{md.transition-aa8820dd.js → md.transition-26003e25.js} +2 -2
  57. package/dist/cjs/{notch-controller-58d2e557.js → notch-controller-ae03a497.js} +1 -1
  58. package/dist/cjs/{overlays-737576a2.js → overlays-a0c6b23f.js} +2 -2
  59. package/dist/cjs/{status-tap-08d1ac81.js → status-tap-03023755.js} +2 -2
  60. package/dist/cjs/{swipe-back-951be2fd.js → swipe-back-cd0d9f77.js} +1 -1
  61. package/dist/collection/components/datetime/datetime.js +5 -5
  62. package/dist/collection/components/picker/picker.js +54 -77
  63. package/dist/collection/components/segment-button/segment-button.js +20 -51
  64. package/dist/collection/utils/helpers.js +0 -10
  65. package/dist/docs.json +1 -1
  66. package/dist/esm/{framework-delegate-c7d92b77.js → framework-delegate-2eea1763.js} +1 -1
  67. package/dist/esm/{helpers-e48b0397.js → helpers-78efeec3.js} +1 -11
  68. package/dist/esm/{index-8222b29f.js → index-40894f4b.js} +1 -1
  69. package/dist/esm/{index-933ca126.js → index-e919e353.js} +1 -1
  70. package/dist/esm/{index-a313df53.js → index-ecb55b8d.js} +3 -3
  71. package/dist/esm/{index-c63afbe6.js → index-f9f5d018.js} +1 -1
  72. package/dist/esm/index.js +7 -7
  73. package/dist/esm/{input-shims-3070628a.js → input-shims-7dc1f6dc.js} +2 -2
  74. package/dist/esm/{input.utils-926c04a8.js → input.utils-28bf4ef0.js} +1 -1
  75. package/dist/esm/ion-accordion_2.entry.js +1 -1
  76. package/dist/esm/ion-action-sheet.entry.js +3 -3
  77. package/dist/esm/ion-alert.entry.js +3 -3
  78. package/dist/esm/ion-app_8.entry.js +8 -8
  79. package/dist/esm/ion-back-button.entry.js +1 -1
  80. package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
  81. package/dist/esm/ion-button_2.entry.js +1 -1
  82. package/dist/esm/ion-card_5.entry.js +1 -1
  83. package/dist/esm/ion-checkbox.entry.js +1 -1
  84. package/dist/esm/ion-datetime-button.entry.js +1 -1
  85. package/dist/esm/ion-datetime_3.entry.js +8 -8
  86. package/dist/esm/ion-fab_3.entry.js +1 -1
  87. package/dist/esm/ion-img.entry.js +1 -1
  88. package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
  89. package/dist/esm/ion-input.entry.js +3 -3
  90. package/dist/esm/ion-item-option_3.entry.js +2 -2
  91. package/dist/esm/ion-item_8.entry.js +1 -1
  92. package/dist/esm/ion-loading.entry.js +3 -3
  93. package/dist/esm/ion-menu_3.entry.js +4 -4
  94. package/dist/esm/ion-modal.entry.js +5 -5
  95. package/dist/esm/ion-nav_2.entry.js +4 -4
  96. package/dist/esm/ion-picker-column-option.entry.js +1 -1
  97. package/dist/esm/ion-picker-column.entry.js +1 -1
  98. package/dist/esm/ion-picker.entry.js +55 -78
  99. package/dist/esm/ion-popover.entry.js +4 -4
  100. package/dist/esm/ion-progress-bar.entry.js +1 -1
  101. package/dist/esm/ion-radio_2.entry.js +1 -1
  102. package/dist/esm/ion-range.entry.js +2 -2
  103. package/dist/esm/ion-refresher_2.entry.js +2 -2
  104. package/dist/esm/ion-reorder_2.entry.js +2 -2
  105. package/dist/esm/ion-route_4.entry.js +1 -1
  106. package/dist/esm/ion-searchbar.entry.js +1 -1
  107. package/dist/esm/ion-segment_2.entry.js +20 -51
  108. package/dist/esm/ion-select-modal.entry.js +3 -3
  109. package/dist/esm/ion-select_3.entry.js +4 -4
  110. package/dist/esm/ion-tab-bar_2.entry.js +1 -1
  111. package/dist/esm/ion-tab_2.entry.js +2 -2
  112. package/dist/esm/ion-textarea.entry.js +3 -3
  113. package/dist/esm/ion-toast.entry.js +3 -3
  114. package/dist/esm/ion-toggle.entry.js +1 -1
  115. package/dist/esm/{ios.transition-5fe4d6c8.js → ios.transition-7fe5dbea.js} +2 -2
  116. package/dist/esm/{md.transition-3d0d3730.js → md.transition-8dc58b46.js} +2 -2
  117. package/dist/esm/{notch-controller-381a5334.js → notch-controller-00d92e89.js} +1 -1
  118. package/dist/esm/{overlays-7579a420.js → overlays-1bc809ec.js} +2 -2
  119. package/dist/esm/{status-tap-6367b913.js → status-tap-f6d08e9e.js} +2 -2
  120. package/dist/esm/{swipe-back-276cda49.js → swipe-back-07df2095.js} +1 -1
  121. package/dist/esm-es5/{framework-delegate-c7d92b77.js → framework-delegate-2eea1763.js} +1 -1
  122. package/dist/esm-es5/helpers-78efeec3.js +4 -0
  123. package/dist/esm-es5/{index-8222b29f.js → index-40894f4b.js} +1 -1
  124. package/dist/esm-es5/{index-933ca126.js → index-e919e353.js} +1 -1
  125. package/dist/esm-es5/index-ecb55b8d.js +4 -0
  126. package/dist/esm-es5/{index-c63afbe6.js → index-f9f5d018.js} +1 -1
  127. package/dist/esm-es5/index.js +1 -1
  128. package/dist/esm-es5/{input-shims-3070628a.js → input-shims-7dc1f6dc.js} +1 -1
  129. package/dist/esm-es5/{input.utils-926c04a8.js → input.utils-28bf4ef0.js} +1 -1
  130. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  131. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  132. package/dist/esm-es5/ion-alert.entry.js +1 -1
  133. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  134. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  135. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  136. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  137. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  138. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  139. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  140. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  141. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  142. package/dist/esm-es5/ion-img.entry.js +1 -1
  143. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  144. package/dist/esm-es5/ion-input.entry.js +1 -1
  145. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  146. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  147. package/dist/esm-es5/ion-loading.entry.js +1 -1
  148. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  149. package/dist/esm-es5/ion-modal.entry.js +1 -1
  150. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  151. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  152. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  153. package/dist/esm-es5/ion-picker.entry.js +1 -1
  154. package/dist/esm-es5/ion-popover.entry.js +1 -1
  155. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  156. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  157. package/dist/esm-es5/ion-range.entry.js +1 -1
  158. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  159. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  160. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  161. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  162. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  163. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  164. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  165. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  166. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  167. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  168. package/dist/esm-es5/ion-toast.entry.js +1 -1
  169. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  170. package/dist/esm-es5/{ios.transition-5fe4d6c8.js → ios.transition-7fe5dbea.js} +1 -1
  171. package/dist/esm-es5/md.transition-8dc58b46.js +4 -0
  172. package/dist/esm-es5/{notch-controller-381a5334.js → notch-controller-00d92e89.js} +1 -1
  173. package/dist/esm-es5/{overlays-7579a420.js → overlays-1bc809ec.js} +1 -1
  174. package/dist/esm-es5/{status-tap-6367b913.js → status-tap-f6d08e9e.js} +1 -1
  175. package/dist/esm-es5/swipe-back-07df2095.js +4 -0
  176. package/dist/ionic/index.esm.js +1 -1
  177. package/dist/ionic/ionic.esm.js +1 -1
  178. package/dist/ionic/p-027a48f1.entry.js +4 -0
  179. package/dist/ionic/{p-143ff664.system.entry.js → p-056b4c2a.system.entry.js} +1 -1
  180. package/dist/ionic/{p-ceaea4ce.js → p-058b7f35.js} +1 -1
  181. package/dist/ionic/{p-c25c0ba4.entry.js → p-05b65d7a.entry.js} +1 -1
  182. package/dist/ionic/{p-094c82d7.entry.js → p-0904eb08.entry.js} +1 -1
  183. package/dist/ionic/{p-bbc6db8c.entry.js → p-0a456b7f.entry.js} +1 -1
  184. package/dist/ionic/{p-472c7e08.system.entry.js → p-0d1be7c9.system.entry.js} +1 -1
  185. package/dist/ionic/{p-3e86b4fa.system.js → p-15bb1dde.system.js} +1 -1
  186. package/dist/ionic/{p-efa0f3f5.entry.js → p-16130556.entry.js} +1 -1
  187. package/dist/ionic/{p-b055d618.entry.js → p-16491015.entry.js} +1 -1
  188. package/dist/ionic/{p-a9f2c0a7.entry.js → p-180b4f9a.entry.js} +1 -1
  189. package/dist/ionic/{p-8fc426e2.entry.js → p-1c8b3ac9.entry.js} +1 -1
  190. package/dist/ionic/{p-0c9b8240.system.entry.js → p-1de5dfcd.system.entry.js} +1 -1
  191. package/dist/ionic/p-2567237c.entry.js +4 -0
  192. package/dist/ionic/p-2720f98d.entry.js +4 -0
  193. package/dist/ionic/{p-8fa4fa3f.entry.js → p-28c81576.entry.js} +1 -1
  194. package/dist/ionic/{p-4493c1ac.entry.js → p-29da3dcd.entry.js} +1 -1
  195. package/dist/ionic/p-2a2c6bf4.system.entry.js +4 -0
  196. package/dist/ionic/{p-f94b2f2f.system.entry.js → p-2a445f16.system.entry.js} +1 -1
  197. package/dist/ionic/{p-0c0ec971.entry.js → p-317c1c08.entry.js} +1 -1
  198. package/dist/ionic/{p-7f39653f.entry.js → p-33518a04.entry.js} +1 -1
  199. package/dist/ionic/{p-b9eb1465.system.entry.js → p-35b469f6.system.entry.js} +1 -1
  200. package/dist/ionic/{p-1f837356.entry.js → p-383a6058.entry.js} +1 -1
  201. package/dist/ionic/{p-44e168f3.system.js → p-3855fef7.system.js} +2 -2
  202. package/dist/ionic/{p-b2296998.system.entry.js → p-38eaf9cf.system.entry.js} +1 -1
  203. package/dist/ionic/{p-d7032956.system.js → p-3dad3534.system.js} +1 -1
  204. package/dist/ionic/{p-3bd5fedc.system.js → p-40388335.system.js} +1 -1
  205. package/dist/ionic/{p-7ff4f502.entry.js → p-41e70fa2.entry.js} +1 -1
  206. package/dist/ionic/{p-d37fdc68.system.entry.js → p-44fde7d5.system.entry.js} +1 -1
  207. package/dist/ionic/{p-4c44d04c.js → p-44ff75ea.js} +1 -1
  208. package/dist/ionic/{p-297d6806.system.js → p-455cd7cc.system.js} +1 -1
  209. package/dist/ionic/{p-2fa5a4b1.entry.js → p-48ded460.entry.js} +1 -1
  210. package/dist/ionic/{p-9df36075.system.entry.js → p-49d53551.system.entry.js} +1 -1
  211. package/dist/ionic/p-4b07c60a.system.js +4 -0
  212. package/dist/ionic/{p-1164ff6b.system.entry.js → p-4ea4c73a.system.entry.js} +1 -1
  213. package/dist/ionic/{p-2ab4a324.system.entry.js → p-4eeca839.system.entry.js} +1 -1
  214. package/dist/ionic/{p-5f4ff20a.entry.js → p-50e0ce13.entry.js} +1 -1
  215. package/dist/ionic/{p-4470f87b.system.entry.js → p-5578033e.system.entry.js} +1 -1
  216. package/dist/ionic/{p-1a9613bf.system.entry.js → p-579c78d2.system.entry.js} +1 -1
  217. package/dist/ionic/{p-eec4b772.entry.js → p-5b420123.entry.js} +1 -1
  218. package/dist/ionic/{p-c8bf9ba7.entry.js → p-5b97abc9.entry.js} +1 -1
  219. package/dist/ionic/p-5fb1321f.entry.js +4 -0
  220. package/dist/ionic/{p-a0a40004.system.entry.js → p-5fe5dc2c.system.entry.js} +1 -1
  221. package/dist/ionic/{p-b8c2dbcd.entry.js → p-607aa181.entry.js} +1 -1
  222. package/dist/ionic/p-61373098.js +4 -0
  223. package/dist/ionic/{p-023e8017.system.entry.js → p-6155027f.system.entry.js} +1 -1
  224. package/dist/ionic/{p-e00b72ce.js → p-624ecf03.js} +1 -1
  225. package/dist/ionic/{p-def7a8bd.system.entry.js → p-63d1da62.system.entry.js} +1 -1
  226. package/dist/ionic/{p-060e4551.js → p-64d8ac48.js} +1 -1
  227. package/dist/ionic/{p-b85d199c.entry.js → p-657ada6a.entry.js} +1 -1
  228. package/dist/ionic/{p-491de063.system.entry.js → p-65943bec.system.entry.js} +1 -1
  229. package/dist/ionic/{p-54893ae3.entry.js → p-65e732b9.entry.js} +1 -1
  230. package/dist/ionic/{p-a587b2ae.system.js → p-6c044a1d.system.js} +1 -1
  231. package/dist/ionic/{p-e4d4d8ac.system.entry.js → p-7058a5e4.system.entry.js} +1 -1
  232. package/dist/ionic/p-705fda69.system.js +4 -0
  233. package/dist/ionic/{p-a63b345e.system.entry.js → p-70abb1f2.system.entry.js} +1 -1
  234. package/dist/ionic/{p-e0a05506.js → p-756e4559.js} +1 -1
  235. package/dist/ionic/p-772d1657.system.js +4 -0
  236. package/dist/ionic/{p-21371278.system.entry.js → p-77aa5fef.system.entry.js} +1 -1
  237. package/dist/ionic/{p-606887b7.system.entry.js → p-7b886108.system.entry.js} +1 -1
  238. package/dist/ionic/{p-f663de24.entry.js → p-7c9daa6f.entry.js} +1 -1
  239. package/dist/ionic/{p-e0c43e11.system.entry.js → p-824fe96b.system.entry.js} +1 -1
  240. package/dist/ionic/{p-13886789.entry.js → p-87b0d2c9.entry.js} +1 -1
  241. package/dist/ionic/{p-ff4a1ba0.system.entry.js → p-8b22be32.system.entry.js} +1 -1
  242. package/dist/ionic/{p-1d98a7f1.entry.js → p-8d98e2bb.entry.js} +1 -1
  243. package/dist/ionic/{p-ace2d2be.entry.js → p-8f94769b.entry.js} +1 -1
  244. package/dist/ionic/{p-e5c27d9f.system.entry.js → p-912131e9.system.entry.js} +1 -1
  245. package/dist/ionic/{p-042d5353.system.js → p-978bdf4c.system.js} +1 -1
  246. package/dist/ionic/p-9870728f.js +4 -0
  247. package/dist/ionic/{p-9a2ff5ea.system.js → p-9e45532a.system.js} +1 -1
  248. package/dist/ionic/{p-3be7cdeb.system.entry.js → p-a26d7667.system.entry.js} +1 -1
  249. package/dist/ionic/{p-24ae7b33.system.js → p-a3c931ad.system.js} +1 -1
  250. package/dist/ionic/{p-e5cf01f1.entry.js → p-a768ae50.entry.js} +1 -1
  251. package/dist/ionic/{p-888d383b.system.entry.js → p-a9198501.system.entry.js} +1 -1
  252. package/dist/ionic/{p-524ad57e.system.entry.js → p-ac09b6e9.system.entry.js} +1 -1
  253. package/dist/ionic/{p-ada878ce.entry.js → p-b1673667.entry.js} +1 -1
  254. package/dist/ionic/{p-c6a20407.system.entry.js → p-b1f9fbe8.system.entry.js} +1 -1
  255. package/dist/ionic/{p-838cc359.entry.js → p-b87a9f1d.entry.js} +1 -1
  256. package/dist/ionic/{p-e5708e5d.system.entry.js → p-b8a461f5.system.entry.js} +1 -1
  257. package/dist/ionic/{p-f554845e.js → p-b9fa7882.js} +1 -1
  258. package/dist/ionic/p-bf64af90.system.js +1 -1
  259. package/dist/ionic/{p-daf1e8ec.system.entry.js → p-c27c57ea.system.entry.js} +1 -1
  260. package/dist/ionic/{p-e7309bfa.js → p-c3f9d9fe.js} +1 -1
  261. package/dist/ionic/{p-49cb79a1.system.entry.js → p-c53c414d.system.entry.js} +1 -1
  262. package/dist/ionic/{p-8deac7df.system.entry.js → p-c609b315.system.entry.js} +1 -1
  263. package/dist/ionic/p-c63d8dc1.js +4 -0
  264. package/dist/ionic/{p-0be8a0b5.entry.js → p-cbebc567.entry.js} +1 -1
  265. package/dist/ionic/{p-b9f2e353.entry.js → p-ccb740ea.entry.js} +1 -1
  266. package/dist/ionic/{p-37a438ad.system.entry.js → p-cec54707.system.entry.js} +1 -1
  267. package/dist/ionic/p-d40f2b7a.js +4 -0
  268. package/dist/ionic/{p-3479f51b.system.js → p-d70a9e6d.system.js} +1 -1
  269. package/dist/ionic/{p-4d0190ad.system.entry.js → p-d882f1e2.system.entry.js} +2 -2
  270. package/dist/ionic/{p-d8c9d5ac.system.entry.js → p-db3b409e.system.entry.js} +1 -1
  271. package/dist/ionic/{p-c5b5f44a.entry.js → p-dcfb7283.entry.js} +1 -1
  272. package/dist/ionic/{p-c8331397.system.entry.js → p-e0d0bc88.system.entry.js} +1 -1
  273. package/dist/ionic/{p-81474833.system.entry.js → p-e29c5aab.system.entry.js} +1 -1
  274. package/dist/ionic/{p-3af7b907.entry.js → p-e2ce5f8b.entry.js} +1 -1
  275. package/dist/ionic/{p-6e24cf82.entry.js → p-e3e4eed7.entry.js} +1 -1
  276. package/dist/ionic/{p-50f38461.entry.js → p-e4d2c281.entry.js} +1 -1
  277. package/dist/ionic/{p-8fa62efe.system.entry.js → p-e6cdfa96.system.entry.js} +1 -1
  278. package/dist/ionic/{p-42f6e75c.entry.js → p-e6e0331b.entry.js} +1 -1
  279. package/dist/ionic/{p-f02e9382.system.entry.js → p-e958e381.system.entry.js} +1 -1
  280. package/dist/ionic/p-ece78e7b.js +4 -0
  281. package/dist/ionic/{p-51c363e7.system.js → p-ee86cfff.system.js} +1 -1
  282. package/dist/ionic/{p-9e51f822.js → p-ef4292b9.js} +1 -1
  283. package/dist/ionic/{p-6797c66e.system.js → p-f23124c4.system.js} +1 -1
  284. package/dist/ionic/{p-b6174297.entry.js → p-f834322a.entry.js} +1 -1
  285. package/dist/ionic/{p-81378456.system.entry.js → p-f896194a.system.entry.js} +1 -1
  286. package/dist/ionic/{p-0749768d.entry.js → p-fa70eaab.entry.js} +1 -1
  287. package/dist/ionic/{p-4c94580e.js → p-ffa3ba3c.js} +1 -1
  288. package/dist/types/components/picker/picker.d.ts +8 -0
  289. package/dist/types/components/segment-button/segment-button.d.ts +1 -2
  290. package/dist/types/utils/helpers.d.ts +0 -1
  291. package/hydrate/index.js +78 -142
  292. package/hydrate/index.mjs +78 -142
  293. package/package.json +1 -1
  294. package/dist/esm-es5/helpers-e48b0397.js +0 -4
  295. package/dist/esm-es5/index-a313df53.js +0 -4
  296. package/dist/esm-es5/md.transition-3d0d3730.js +0 -4
  297. package/dist/esm-es5/swipe-back-276cda49.js +0 -4
  298. package/dist/ionic/p-2027221d.js +0 -4
  299. package/dist/ionic/p-2ee9a2c6.entry.js +0 -4
  300. package/dist/ionic/p-54e9620f.js +0 -4
  301. package/dist/ionic/p-5eb6f582.system.js +0 -4
  302. package/dist/ionic/p-72e6a9c6.entry.js +0 -4
  303. package/dist/ionic/p-77991411.system.js +0 -4
  304. package/dist/ionic/p-85f6070f.entry.js +0 -4
  305. package/dist/ionic/p-941c06bc.js +0 -4
  306. package/dist/ionic/p-988a0306.system.js +0 -4
  307. package/dist/ionic/p-b9ea58ef.js +0 -4
  308. package/dist/ionic/p-c8402249.js +0 -4
  309. package/dist/ionic/p-ed768b77.entry.js +0 -4
  310. package/dist/ionic/p-eeee3990.system.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{c as o}from"./p-c7e16491.js";import{g as t}from"./p-060e4551.js";import"./p-7b30edcc.js";import"./p-597ff9af.js";import"./p-66a5d6a8.js";import"./p-3f4327f7.js";import"./p-b9ea58ef.js";const i=(i,r)=>{var a,p,s;const e="40px",n="back"===r.direction,c=r.leavingEl,l=t(r.enteringEl),b=l.querySelector("ion-toolbar"),f=o();if(f.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible"),n?f.duration((null!==(a=r.duration)&&void 0!==a?a:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):f.duration((null!==(p=r.duration)&&void 0!==p?p:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${e})`,"translateY(0px)").fromTo("opacity",.01,1),b){const t=o();t.addElement(b),f.addAnimation(t)}if(c&&n){f.duration((null!==(s=r.duration)&&void 0!==s?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const i=o();i.addElement(t(c)).onFinish((o=>{1===o&&i.elements.length>0&&i.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)",`translateY(${e})`).fromTo("opacity",1,0),f.addAnimation(i)}return f};export{i as mdTransitionAnimation}
4
+ import{c as o}from"./p-c7e16491.js";import{g as t}from"./p-64d8ac48.js";import"./p-7b30edcc.js";import"./p-597ff9af.js";import"./p-66a5d6a8.js";import"./p-3f4327f7.js";import"./p-ece78e7b.js";const i=(i,r)=>{var a,p,s;const e="40px",c="back"===r.direction,n=r.leavingEl,l=t(r.enteringEl),b=l.querySelector("ion-toolbar"),f=o();if(f.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible"),c?f.duration((null!==(a=r.duration)&&void 0!==a?a:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):f.duration((null!==(p=r.duration)&&void 0!==p?p:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${e})`,"translateY(0px)").fromTo("opacity",.01,1),b){const t=o();t.addElement(b),f.addAnimation(t)}if(n&&c){f.duration((null!==(s=r.duration)&&void 0!==s?s:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const i=o();i.addElement(t(n)).onFinish((o=>{1===o&&i.elements.length>0&&i.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)",`translateY(${e})`).fromTo("opacity",1,0),f.addAnimation(i)}return f};export{i as mdTransitionAnimation}
@@ -87,6 +87,14 @@ export declare class Picker implements ComponentInterface {
87
87
  * or trailing zeros when looking at the item text.
88
88
  */
89
89
  private searchColumn;
90
+ /**
91
+ * Attempts to intelligently search the first and second
92
+ * column as if they're number columns for the provided numbers
93
+ * where the first two numbers are the first column
94
+ * and the last 2 are the last column. Tries to allow for the first
95
+ * number to be ignored for situations where typos occurred.
96
+ */
97
+ private multiColumnSearch;
90
98
  private selectMultiColumn;
91
99
  /**
92
100
  * Searches the value of the active column
@@ -36,8 +36,7 @@ export declare class SegmentButton implements ComponentInterface, ButtonInterfac
36
36
  */
37
37
  value: SegmentValue;
38
38
  valueChanged(): void;
39
- private waitForSegmentContent;
40
- connectedCallback(): Promise<void>;
39
+ connectedCallback(): void;
41
40
  disconnectedCallback(): void;
42
41
  componentWillLoad(): void;
43
42
  private get hasLabel();
@@ -104,7 +104,6 @@ export declare const shallowEqualStringMap: (map1: {
104
104
  } | undefined, map2: {
105
105
  [k: string]: any;
106
106
  } | undefined) => boolean;
107
- export declare const getNextSiblingOfType: <T extends Element>(element: Element) => T | null;
108
107
  /**
109
108
  * Checks input for usable number. Not NaN and not Infinite.
110
109
  */
package/hydrate/index.js CHANGED
@@ -2682,16 +2682,6 @@ const shallowEqualStringMap = (map1, map2) => {
2682
2682
  }
2683
2683
  return true;
2684
2684
  };
2685
- const getNextSiblingOfType = (element) => {
2686
- let sibling = element.nextSibling;
2687
- while (sibling) {
2688
- if (sibling.nodeType === Node.ELEMENT_NODE && sibling !== null) {
2689
- return sibling;
2690
- }
2691
- sibling = sibling.nextSibling;
2692
- }
2693
- return null;
2694
- };
2695
2685
  /**
2696
2686
  * Checks input for usable number. Not NaN and not Infinite.
2697
2687
  */
@@ -12365,7 +12355,7 @@ class Datetime {
12365
12355
  const activePart = this.getActivePartsWithFallback();
12366
12356
  return (hAsync("ion-picker-column", { "aria-label": "Select an hour", color: this.color, disabled: disabled, value: activePart.hour, numericInput: true, onIonChange: (ev) => {
12367
12357
  this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { hour: ev.detail.value }));
12368
- this.setActiveParts(Object.assign(Object.assign({}, activePart), { hour: ev.detail.value }));
12358
+ this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { hour: ev.detail.value }));
12369
12359
  ev.stopPropagation();
12370
12360
  } }, hoursData.map((hour) => (hAsync("ion-picker-column-option", { part: hour.value === activePart.hour ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: hour.value, disabled: hour.disabled, value: hour.value }, hour.text)))));
12371
12361
  }
@@ -12376,7 +12366,7 @@ class Datetime {
12376
12366
  const activePart = this.getActivePartsWithFallback();
12377
12367
  return (hAsync("ion-picker-column", { "aria-label": "Select a minute", color: this.color, disabled: disabled, value: activePart.minute, numericInput: true, onIonChange: (ev) => {
12378
12368
  this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { minute: ev.detail.value }));
12379
- this.setActiveParts(Object.assign(Object.assign({}, activePart), { minute: ev.detail.value }));
12369
+ this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { minute: ev.detail.value }));
12380
12370
  ev.stopPropagation();
12381
12371
  } }, minutesData.map((minute) => (hAsync("ion-picker-column-option", { part: minute.value === activePart.minute ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: minute.value, disabled: minute.disabled, value: minute.value }, minute.text)))));
12382
12372
  }
@@ -12390,7 +12380,7 @@ class Datetime {
12390
12380
  return (hAsync("ion-picker-column", { "aria-label": "Select a day period", style: isDayPeriodRTL ? { order: '-1' } : {}, color: this.color, disabled: disabled, value: activePart.ampm, onIonChange: (ev) => {
12391
12381
  const hour = calculateHourFromAMPM(workingParts, ev.detail.value);
12392
12382
  this.setWorkingParts(Object.assign(Object.assign({}, workingParts), { ampm: ev.detail.value, hour }));
12393
- this.setActiveParts(Object.assign(Object.assign({}, activePart), { ampm: ev.detail.value, hour }));
12383
+ this.setActiveParts(Object.assign(Object.assign({}, this.getActivePartsWithFallback()), { ampm: ev.detail.value, hour }));
12394
12384
  ev.stopPropagation();
12395
12385
  } }, dayPeriodData.map((dayPeriod) => (hAsync("ion-picker-column-option", { part: dayPeriod.value === activePart.ampm ? `${WHEEL_ITEM_PART} ${WHEEL_ITEM_ACTIVE_PART}` : WHEEL_ITEM_PART, key: dayPeriod.value, disabled: dayPeriod.disabled, value: dayPeriod.value }, dayPeriod.text)))));
12396
12386
  }
@@ -12697,7 +12687,7 @@ class Datetime {
12697
12687
  const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
12698
12688
  const hasWheelVariant = hasDatePresentation && preferWheel;
12699
12689
  renderHiddenInput(true, el, name, formatValue(value), disabled);
12700
- return (hAsync(Host, { key: '7afbb1a7e6c78389b4588999779e5c90e010e85d', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
12690
+ return (hAsync(Host, { key: '08d429533a09c600b936ad1e022658051c765595', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses$1(color, {
12701
12691
  [mode]: true,
12702
12692
  ['datetime-readonly']: readonly,
12703
12693
  ['datetime-disabled']: disabled,
@@ -12707,7 +12697,7 @@ class Datetime {
12707
12697
  [`datetime-size-${size}`]: true,
12708
12698
  [`datetime-prefer-wheel`]: hasWheelVariant,
12709
12699
  [`datetime-grid`]: isGridStyle,
12710
- })) }, hAsync("div", { key: '297c458d4d17154cb297e2ef5926505bcb2d1fce', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
12700
+ })) }, hAsync("div", { key: 'f4ff0fcd1e059767a7ef14fcc76ebfd55d23a97b', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
12711
12701
  }
12712
12702
  get el() { return getElement(this); }
12713
12703
  static get watchers() { return {
@@ -21910,13 +21900,59 @@ class Picker$1 {
21910
21900
  * or trailing zeros when looking at the item text.
21911
21901
  */
21912
21902
  this.searchColumn = (colEl, value, zeroBehavior = 'start') => {
21903
+ if (!value) {
21904
+ return false;
21905
+ }
21913
21906
  const behavior = zeroBehavior === 'start' ? /^0+/ : /0$/;
21907
+ value = value.replace(behavior, '');
21914
21908
  const option = Array.from(colEl.querySelectorAll('ion-picker-column-option')).find((el) => {
21915
21909
  return el.disabled !== true && el.textContent.replace(behavior, '') === value;
21916
21910
  });
21917
21911
  if (option) {
21918
21912
  colEl.setValue(option.value);
21919
21913
  }
21914
+ return !!option;
21915
+ };
21916
+ /**
21917
+ * Attempts to intelligently search the first and second
21918
+ * column as if they're number columns for the provided numbers
21919
+ * where the first two numbers are the first column
21920
+ * and the last 2 are the last column. Tries to allow for the first
21921
+ * number to be ignored for situations where typos occurred.
21922
+ */
21923
+ this.multiColumnSearch = (firstColumn, secondColumn, input) => {
21924
+ if (input.length === 0) {
21925
+ return;
21926
+ }
21927
+ const inputArray = input.split('');
21928
+ const hourValue = inputArray.slice(0, 2).join('');
21929
+ // Try to find a match for the first two digits in the first column
21930
+ const foundHour = this.searchColumn(firstColumn, hourValue);
21931
+ // If we have more than 2 digits and found a match for hours,
21932
+ // use the remaining digits for the second column (minutes)
21933
+ if (inputArray.length > 2 && foundHour) {
21934
+ const minuteValue = inputArray.slice(2, 4).join('');
21935
+ this.searchColumn(secondColumn, minuteValue);
21936
+ }
21937
+ // If we couldn't find a match for the two-digit hour, try single digit approaches
21938
+ else if (!foundHour && inputArray.length >= 1) {
21939
+ // First try the first digit as a single-digit hour
21940
+ let singleDigitHour = inputArray[0];
21941
+ let singleDigitFound = this.searchColumn(firstColumn, singleDigitHour);
21942
+ // If that didn't work, try the second digit as a single-digit hour
21943
+ // (handles case where user made a typo in the first digit, or they typed over themselves)
21944
+ if (!singleDigitFound) {
21945
+ inputArray.shift();
21946
+ singleDigitHour = inputArray[0];
21947
+ singleDigitFound = this.searchColumn(firstColumn, singleDigitHour);
21948
+ }
21949
+ // If we found a single-digit hour and have remaining digits,
21950
+ // use up to 2 of the remaining digits for the second column
21951
+ if (singleDigitFound && inputArray.length > 1) {
21952
+ const remainingDigits = inputArray.slice(1, 3).join('');
21953
+ this.searchColumn(secondColumn, remainingDigits);
21954
+ }
21955
+ }
21920
21956
  };
21921
21957
  this.selectMultiColumn = () => {
21922
21958
  const { inputEl, el } = this;
@@ -21927,82 +21963,13 @@ class Picker$1 {
21927
21963
  const firstColumn = numericPickers[0];
21928
21964
  const lastColumn = numericPickers[1];
21929
21965
  let value = inputEl.value;
21930
- let minuteValue;
21931
- switch (value.length) {
21932
- case 1:
21933
- this.searchColumn(firstColumn, value);
21934
- break;
21935
- case 2:
21936
- /**
21937
- * If the first character is `0` or `1` it is
21938
- * possible that users are trying to type `09`
21939
- * or `11` into the hour field, so we should look
21940
- * at that first.
21941
- */
21942
- const firstCharacter = inputEl.value.substring(0, 1);
21943
- value = firstCharacter === '0' || firstCharacter === '1' ? inputEl.value : firstCharacter;
21944
- this.searchColumn(firstColumn, value);
21945
- /**
21946
- * If only checked the first value,
21947
- * we can check the second value
21948
- * for a match in the minutes column
21949
- */
21950
- if (value.length === 1) {
21951
- minuteValue = inputEl.value.substring(inputEl.value.length - 1);
21952
- this.searchColumn(lastColumn, minuteValue, 'end');
21953
- }
21954
- break;
21955
- case 3:
21956
- /**
21957
- * If the first character is `0` or `1` it is
21958
- * possible that users are trying to type `09`
21959
- * or `11` into the hour field, so we should look
21960
- * at that first.
21961
- */
21962
- const firstCharacterAgain = inputEl.value.substring(0, 1);
21963
- value =
21964
- firstCharacterAgain === '0' || firstCharacterAgain === '1'
21965
- ? inputEl.value.substring(0, 2)
21966
- : firstCharacterAgain;
21967
- this.searchColumn(firstColumn, value);
21968
- /**
21969
- * If only checked the first value,
21970
- * we can check the second value
21971
- * for a match in the minutes column
21972
- */
21973
- minuteValue = value.length === 1 ? inputEl.value.substring(1) : inputEl.value.substring(2);
21974
- this.searchColumn(lastColumn, minuteValue, 'end');
21975
- break;
21976
- case 4:
21977
- /**
21978
- * If the first character is `0` or `1` it is
21979
- * possible that users are trying to type `09`
21980
- * or `11` into the hour field, so we should look
21981
- * at that first.
21982
- */
21983
- const firstCharacterAgainAgain = inputEl.value.substring(0, 1);
21984
- value =
21985
- firstCharacterAgainAgain === '0' || firstCharacterAgainAgain === '1'
21986
- ? inputEl.value.substring(0, 2)
21987
- : firstCharacterAgainAgain;
21988
- this.searchColumn(firstColumn, value);
21989
- /**
21990
- * If only checked the first value,
21991
- * we can check the second value
21992
- * for a match in the minutes column
21993
- */
21994
- const minuteValueAgain = value.length === 1
21995
- ? inputEl.value.substring(1, inputEl.value.length)
21996
- : inputEl.value.substring(2, inputEl.value.length);
21997
- this.searchColumn(lastColumn, minuteValueAgain, 'end');
21998
- break;
21999
- default:
22000
- const startIndex = inputEl.value.length - 4;
22001
- const newString = inputEl.value.substring(startIndex);
22002
- inputEl.value = newString;
22003
- this.selectMultiColumn();
22004
- break;
21966
+ if (value.length > 4) {
21967
+ const startIndex = inputEl.value.length - 4;
21968
+ const newString = inputEl.value.substring(startIndex);
21969
+ inputEl.value = newString;
21970
+ value = newString;
22005
21971
  }
21972
+ this.multiColumnSearch(firstColumn, lastColumn, value);
22006
21973
  };
22007
21974
  /**
22008
21975
  * Searches the value of the active column
@@ -22071,7 +22038,7 @@ class Picker$1 {
22071
22038
  this.emitInputModeChange();
22072
22039
  }
22073
22040
  render() {
22074
- return (hAsync(Host, { key: 'f92214a09dc85b65873676f40fde2b802960e704', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, hAsync("input", { key: '6da37f75aca4ea1c9cb3bc733ebda2116279f313', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
22041
+ return (hAsync(Host, { key: '28f81e4ed44a633178561757c5199c2c98f94b74', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, hAsync("input", { key: 'abb3d1ad25ef63856af7804111175a4d50008bc0', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
22075
22042
  var _a;
22076
22043
  /**
22077
22044
  * The "Enter" key represents
@@ -22086,7 +22053,7 @@ class Picker$1 {
22086
22053
  if (ev.key === 'Enter') {
22087
22054
  (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.blur();
22088
22055
  }
22089
- }, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), hAsync("div", { key: '298e99d83dd3f5bf2798150bab0bb4024af472fa', class: "picker-before" }), hAsync("div", { key: 'ea578f04eb562a4dc6d6cc92de133dcb9fb7f42a', class: "picker-after" }), hAsync("div", { key: '84567824956dfe967992a629904836ba8b75b3ec', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), hAsync("slot", { key: 'df81f8fb90e1f649b608328034528f5c31c70c3b' })));
22056
+ }, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), hAsync("div", { key: '334a5abdc02e6b127c57177f626d7e4ff5526183', class: "picker-before" }), hAsync("div", { key: 'ffd6271931129e88fc7c820e919d684899e420c5', class: "picker-after" }), hAsync("div", { key: '78d1d95fd09e04f154ea59f24a1cece72c47ed7b', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), hAsync("slot", { key: '0bd5b9f875d3c71f6cbbde2054baeb1b0a2e8cd5' })));
22090
22057
  }
22091
22058
  get el() { return getElement(this); }
22092
22059
  static get style() { return {
@@ -29712,61 +29679,15 @@ class SegmentButton {
29712
29679
  valueChanged() {
29713
29680
  this.updateState();
29714
29681
  }
29715
- waitForSegmentContent(ionSegment, contentId) {
29716
- return new Promise((resolve, reject) => {
29717
- let timeoutId = undefined;
29718
- let animationFrameId;
29719
- const check = () => {
29720
- if (!ionSegment) {
29721
- reject(new Error(`Segment not found when looking for Segment Content`));
29722
- return;
29723
- }
29724
- const segmentView = getNextSiblingOfType(ionSegment); // Skip the text nodes
29725
- const segmentContent = segmentView === null || segmentView === void 0 ? void 0 : segmentView.querySelector(`ion-segment-content[id="${contentId}"]`);
29726
- if (segmentContent && timeoutId) {
29727
- clearTimeout(timeoutId); // Clear the timeout if the segmentContent is found
29728
- cancelAnimationFrame(animationFrameId);
29729
- resolve(segmentContent);
29730
- }
29731
- else {
29732
- animationFrameId = requestAnimationFrame(check); // Keep checking on the next animation frame
29733
- }
29734
- };
29735
- check();
29736
- // Set a timeout to reject the promise
29737
- timeoutId = setTimeout(() => {
29738
- cancelAnimationFrame(animationFrameId);
29739
- reject(new Error(`Unable to find Segment Content with id="${contentId} within 1000 ms`));
29740
- }, 1000);
29741
- });
29742
- }
29743
- async connectedCallback() {
29682
+ connectedCallback() {
29744
29683
  const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
29745
29684
  if (segmentEl) {
29746
29685
  this.updateState();
29747
29686
  addEventListener$1(segmentEl, 'ionSelect', this.updateState);
29748
29687
  addEventListener$1(segmentEl, 'ionStyle', this.updateStyle);
29749
29688
  }
29750
- // Return if there is no contentId defined
29751
- if (!this.contentId)
29752
- return;
29753
- let segmentContent;
29754
- try {
29755
- // Attempt to find the Segment Content by its contentId
29756
- segmentContent = await this.waitForSegmentContent(segmentEl, this.contentId);
29757
- }
29758
- catch (error) {
29759
- // If no associated Segment Content exists, log an error and return
29760
- console.error('Segment Button: ', error.message);
29761
- return;
29762
- }
29763
- // Ensure the found element is a valid ION-SEGMENT-CONTENT
29764
- if (segmentContent.tagName !== 'ION-SEGMENT-CONTENT') {
29765
- console.error(`Segment Button: Element with id="${this.contentId}" is not an <ion-segment-content> element.`);
29766
- return;
29767
- }
29768
29689
  // Prevent buttons from being disabled when associated with segment content
29769
- if (this.disabled) {
29690
+ if (this.contentId && this.disabled) {
29770
29691
  console.warn(`Segment Button: Segment buttons cannot be disabled when associated with an <ion-segment-content>.`);
29771
29692
  this.disabled = false;
29772
29693
  }
@@ -29781,6 +29702,21 @@ class SegmentButton {
29781
29702
  }
29782
29703
  componentWillLoad() {
29783
29704
  this.inheritedAttributes = Object.assign({}, inheritAttributes$1(this.el, ['aria-label']));
29705
+ // Return if there is no contentId defined
29706
+ if (!this.contentId)
29707
+ return;
29708
+ // Attempt to find the Segment Content by its contentId
29709
+ const segmentContent = document.getElementById(this.contentId);
29710
+ // If no associated Segment Content exists, log an error and return
29711
+ if (!segmentContent) {
29712
+ console.error(`Segment Button: Unable to find Segment Content with id="${this.contentId}".`);
29713
+ return;
29714
+ }
29715
+ // Ensure the found element is a valid ION-SEGMENT-CONTENT
29716
+ if (segmentContent.tagName !== 'ION-SEGMENT-CONTENT') {
29717
+ console.error(`Segment Button: Element with id="${this.contentId}" is not an <ion-segment-content> element.`);
29718
+ return;
29719
+ }
29784
29720
  }
29785
29721
  get hasLabel() {
29786
29722
  return !!this.el.querySelector('ion-label');
@@ -29803,7 +29739,7 @@ class SegmentButton {
29803
29739
  const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
29804
29740
  const mode = getIonMode$1(this);
29805
29741
  const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
29806
- return (hAsync(Host, { key: 'e1e582b9a142cb07043ba08f02ad25f5a1fa5690', class: {
29742
+ return (hAsync(Host, { key: 'f2f679a08b131cd35d63f649b9d1f1907df30a89', class: {
29807
29743
  [mode]: true,
29808
29744
  'in-toolbar': hostContext('ion-toolbar', this.el),
29809
29745
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
@@ -29819,7 +29755,7 @@ class SegmentButton {
29819
29755
  'ion-activatable': true,
29820
29756
  'ion-activatable-instant': true,
29821
29757
  'ion-focusable': true,
29822
- } }, hAsync("button", Object.assign({ key: '8621a028894fb382854ff28779d0cadd3d9035f7', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), hAsync("span", { key: '5c55858dbfb50734fb02d24091ebac3e0d05259f', class: "button-inner" }, hAsync("slot", { key: '1f3bb8d76a1039ad648e202c650db06dfca88f79' })), mode === 'md' && hAsync("ion-ripple-effect", { key: 'bda74b25bfdd431a8a36f0ee727b9184e9074321' })), hAsync("div", { key: 'ff11369e921d6d0a540c75c37f692a3853e903f7', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: '74ec4ca69331ed3f155fd8a8a356545941887df1', part: "indicator-background", class: "segment-button-indicator-background" }))));
29758
+ } }, hAsync("button", Object.assign({ key: '8e887b5031da705a3695c0870be08696d66188de', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), hAsync("span", { key: '73b795c39cb09438e50922abf6b3a010e31fa2b6', class: "button-inner" }, hAsync("slot", { key: '9769ddc917d7e459bd80dcd81c10c379e73d1b3e' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '8e4c06d6bae1034af8cc5db86fcca0ae72d042b1' })), hAsync("div", { key: 'ae73ee0e429e54a43269f99b6d3d7e1c6e8f60cc', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: 'd38eabe8161403799cfbad73dd6bf912d965442c', part: "indicator-background", class: "segment-button-indicator-background" }))));
29823
29759
  }
29824
29760
  get el() { return getElement(this); }
29825
29761
  static get watchers() { return {