@ionic/core 8.5.2-dev.11742935752.148f25e6 → 8.5.2-dev.11743017713.1e4eb1b9

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 (316) hide show
  1. package/components/helpers.js +1 -11
  2. package/components/index9.js +1 -1
  3. package/components/ion-segment-button.js +20 -51
  4. package/components/ion-segment-view.js +2 -2
  5. package/components/picker.js +77 -45
  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 +3 -3
  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 +78 -46
  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-view.cjs.entry.js +2 -2
  48. package/dist/cjs/ion-segment_2.cjs.entry.js +20 -51
  49. package/dist/cjs/ion-select-modal.cjs.entry.js +3 -3
  50. package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
  51. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
  52. package/dist/cjs/ion-tab_2.cjs.entry.js +2 -2
  53. package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
  54. package/dist/cjs/ion-toast.cjs.entry.js +3 -3
  55. package/dist/cjs/ion-toggle.cjs.entry.js +1 -1
  56. package/dist/cjs/{ios.transition-f970164c.js → ios.transition-ae7afca9.js} +2 -2
  57. package/dist/cjs/{md.transition-aa8820dd.js → md.transition-26003e25.js} +2 -2
  58. package/dist/cjs/{notch-controller-58d2e557.js → notch-controller-ae03a497.js} +1 -1
  59. package/dist/cjs/{overlays-737576a2.js → overlays-a0c6b23f.js} +2 -2
  60. package/dist/cjs/{status-tap-08d1ac81.js → status-tap-03023755.js} +2 -2
  61. package/dist/cjs/{swipe-back-951be2fd.js → swipe-back-cd0d9f77.js} +1 -1
  62. package/dist/collection/components/picker/picker.js +77 -45
  63. package/dist/collection/components/segment-button/segment-button.js +20 -51
  64. package/dist/collection/components/segment-view/segment-view.ios.css +1 -1
  65. package/dist/collection/components/segment-view/segment-view.md.css +1 -1
  66. package/dist/collection/utils/helpers.js +0 -10
  67. package/dist/docs.json +1 -1
  68. package/dist/esm/{framework-delegate-c7d92b77.js → framework-delegate-2eea1763.js} +1 -1
  69. package/dist/esm/{helpers-e48b0397.js → helpers-78efeec3.js} +1 -11
  70. package/dist/esm/{index-8222b29f.js → index-40894f4b.js} +1 -1
  71. package/dist/esm/{index-933ca126.js → index-e919e353.js} +1 -1
  72. package/dist/esm/{index-a313df53.js → index-ecb55b8d.js} +3 -3
  73. package/dist/esm/{index-c63afbe6.js → index-f9f5d018.js} +1 -1
  74. package/dist/esm/index.js +7 -7
  75. package/dist/esm/{input-shims-3070628a.js → input-shims-7dc1f6dc.js} +2 -2
  76. package/dist/esm/{input.utils-926c04a8.js → input.utils-28bf4ef0.js} +1 -1
  77. package/dist/esm/ion-accordion_2.entry.js +1 -1
  78. package/dist/esm/ion-action-sheet.entry.js +3 -3
  79. package/dist/esm/ion-alert.entry.js +3 -3
  80. package/dist/esm/ion-app_8.entry.js +8 -8
  81. package/dist/esm/ion-back-button.entry.js +1 -1
  82. package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
  83. package/dist/esm/ion-button_2.entry.js +1 -1
  84. package/dist/esm/ion-card_5.entry.js +1 -1
  85. package/dist/esm/ion-checkbox.entry.js +1 -1
  86. package/dist/esm/ion-datetime-button.entry.js +1 -1
  87. package/dist/esm/ion-datetime_3.entry.js +3 -3
  88. package/dist/esm/ion-fab_3.entry.js +1 -1
  89. package/dist/esm/ion-img.entry.js +1 -1
  90. package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
  91. package/dist/esm/ion-input.entry.js +3 -3
  92. package/dist/esm/ion-item-option_3.entry.js +2 -2
  93. package/dist/esm/ion-item_8.entry.js +1 -1
  94. package/dist/esm/ion-loading.entry.js +3 -3
  95. package/dist/esm/ion-menu_3.entry.js +4 -4
  96. package/dist/esm/ion-modal.entry.js +5 -5
  97. package/dist/esm/ion-nav_2.entry.js +4 -4
  98. package/dist/esm/ion-picker-column-option.entry.js +1 -1
  99. package/dist/esm/ion-picker-column.entry.js +1 -1
  100. package/dist/esm/ion-picker.entry.js +78 -46
  101. package/dist/esm/ion-popover.entry.js +4 -4
  102. package/dist/esm/ion-progress-bar.entry.js +1 -1
  103. package/dist/esm/ion-radio_2.entry.js +1 -1
  104. package/dist/esm/ion-range.entry.js +2 -2
  105. package/dist/esm/ion-refresher_2.entry.js +2 -2
  106. package/dist/esm/ion-reorder_2.entry.js +2 -2
  107. package/dist/esm/ion-route_4.entry.js +1 -1
  108. package/dist/esm/ion-searchbar.entry.js +1 -1
  109. package/dist/esm/ion-segment-view.entry.js +2 -2
  110. package/dist/esm/ion-segment_2.entry.js +20 -51
  111. package/dist/esm/ion-select-modal.entry.js +3 -3
  112. package/dist/esm/ion-select_3.entry.js +4 -4
  113. package/dist/esm/ion-tab-bar_2.entry.js +1 -1
  114. package/dist/esm/ion-tab_2.entry.js +2 -2
  115. package/dist/esm/ion-textarea.entry.js +3 -3
  116. package/dist/esm/ion-toast.entry.js +3 -3
  117. package/dist/esm/ion-toggle.entry.js +1 -1
  118. package/dist/esm/{ios.transition-5fe4d6c8.js → ios.transition-7fe5dbea.js} +2 -2
  119. package/dist/esm/{md.transition-3d0d3730.js → md.transition-8dc58b46.js} +2 -2
  120. package/dist/esm/{notch-controller-381a5334.js → notch-controller-00d92e89.js} +1 -1
  121. package/dist/esm/{overlays-7579a420.js → overlays-1bc809ec.js} +2 -2
  122. package/dist/esm/{status-tap-6367b913.js → status-tap-f6d08e9e.js} +2 -2
  123. package/dist/esm/{swipe-back-276cda49.js → swipe-back-07df2095.js} +1 -1
  124. package/dist/esm-es5/{framework-delegate-c7d92b77.js → framework-delegate-2eea1763.js} +1 -1
  125. package/dist/esm-es5/helpers-78efeec3.js +4 -0
  126. package/dist/esm-es5/{index-8222b29f.js → index-40894f4b.js} +1 -1
  127. package/dist/esm-es5/{index-933ca126.js → index-e919e353.js} +1 -1
  128. package/dist/esm-es5/index-ecb55b8d.js +4 -0
  129. package/dist/esm-es5/{index-c63afbe6.js → index-f9f5d018.js} +1 -1
  130. package/dist/esm-es5/index.js +1 -1
  131. package/dist/esm-es5/{input-shims-3070628a.js → input-shims-7dc1f6dc.js} +1 -1
  132. package/dist/esm-es5/{input.utils-926c04a8.js → input.utils-28bf4ef0.js} +1 -1
  133. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  134. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  135. package/dist/esm-es5/ion-alert.entry.js +1 -1
  136. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  137. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  138. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  139. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  140. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  141. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  142. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  143. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  144. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  145. package/dist/esm-es5/ion-img.entry.js +1 -1
  146. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  147. package/dist/esm-es5/ion-input.entry.js +1 -1
  148. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  149. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  150. package/dist/esm-es5/ion-loading.entry.js +1 -1
  151. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  152. package/dist/esm-es5/ion-modal.entry.js +1 -1
  153. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  154. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  155. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  156. package/dist/esm-es5/ion-picker.entry.js +1 -1
  157. package/dist/esm-es5/ion-popover.entry.js +1 -1
  158. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  159. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  160. package/dist/esm-es5/ion-range.entry.js +1 -1
  161. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  162. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  163. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  164. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  165. package/dist/esm-es5/ion-segment-view.entry.js +1 -1
  166. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  167. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  168. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  169. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  170. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  171. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  172. package/dist/esm-es5/ion-toast.entry.js +1 -1
  173. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  174. package/dist/esm-es5/{ios.transition-5fe4d6c8.js → ios.transition-7fe5dbea.js} +1 -1
  175. package/dist/esm-es5/md.transition-8dc58b46.js +4 -0
  176. package/dist/esm-es5/{notch-controller-381a5334.js → notch-controller-00d92e89.js} +1 -1
  177. package/dist/esm-es5/{overlays-7579a420.js → overlays-1bc809ec.js} +1 -1
  178. package/dist/esm-es5/{status-tap-6367b913.js → status-tap-f6d08e9e.js} +1 -1
  179. package/dist/esm-es5/swipe-back-07df2095.js +4 -0
  180. package/dist/ionic/index.esm.js +1 -1
  181. package/dist/ionic/ionic.esm.js +1 -1
  182. package/dist/ionic/p-027a48f1.entry.js +4 -0
  183. package/dist/ionic/{p-143ff664.system.entry.js → p-056b4c2a.system.entry.js} +1 -1
  184. package/dist/ionic/{p-ceaea4ce.js → p-058b7f35.js} +1 -1
  185. package/dist/ionic/{p-c25c0ba4.entry.js → p-05b65d7a.entry.js} +1 -1
  186. package/dist/ionic/{p-094c82d7.entry.js → p-0904eb08.entry.js} +1 -1
  187. package/dist/ionic/{p-bbc6db8c.entry.js → p-0a456b7f.entry.js} +1 -1
  188. package/dist/ionic/{p-472c7e08.system.entry.js → p-0d1be7c9.system.entry.js} +1 -1
  189. package/dist/ionic/{p-3e86b4fa.system.js → p-15bb1dde.system.js} +1 -1
  190. package/dist/ionic/{p-efa0f3f5.entry.js → p-16130556.entry.js} +1 -1
  191. package/dist/ionic/{p-b055d618.entry.js → p-16491015.entry.js} +1 -1
  192. package/dist/ionic/{p-a9f2c0a7.entry.js → p-180b4f9a.entry.js} +1 -1
  193. package/dist/ionic/{p-8fc426e2.entry.js → p-1c8b3ac9.entry.js} +1 -1
  194. package/dist/ionic/{p-0c9b8240.system.entry.js → p-1de5dfcd.system.entry.js} +1 -1
  195. package/dist/ionic/{p-8fa4fa3f.entry.js → p-28c81576.entry.js} +1 -1
  196. package/dist/ionic/{p-4493c1ac.entry.js → p-29da3dcd.entry.js} +1 -1
  197. package/dist/ionic/p-2a2c6bf4.system.entry.js +4 -0
  198. package/dist/ionic/{p-0c0ec971.entry.js → p-317c1c08.entry.js} +1 -1
  199. package/dist/ionic/{p-7f39653f.entry.js → p-33518a04.entry.js} +1 -1
  200. package/dist/ionic/{p-b9eb1465.system.entry.js → p-35b469f6.system.entry.js} +1 -1
  201. package/dist/ionic/{p-1f837356.entry.js → p-383a6058.entry.js} +1 -1
  202. package/dist/ionic/{p-44e168f3.system.js → p-3855fef7.system.js} +2 -2
  203. package/dist/ionic/{p-b2296998.system.entry.js → p-38eaf9cf.system.entry.js} +1 -1
  204. package/dist/ionic/{p-d7032956.system.js → p-3dad3534.system.js} +1 -1
  205. package/dist/ionic/{p-3bd5fedc.system.js → p-40388335.system.js} +1 -1
  206. package/dist/ionic/{p-7ff4f502.entry.js → p-41e70fa2.entry.js} +1 -1
  207. package/dist/ionic/{p-d37fdc68.system.entry.js → p-44fde7d5.system.entry.js} +1 -1
  208. package/dist/ionic/{p-4c44d04c.js → p-44ff75ea.js} +1 -1
  209. package/dist/ionic/{p-297d6806.system.js → p-455cd7cc.system.js} +1 -1
  210. package/dist/ionic/{p-ab7337e1.entry.js → p-460ffac7.entry.js} +1 -1
  211. package/dist/ionic/{p-2fa5a4b1.entry.js → p-48ded460.entry.js} +1 -1
  212. package/dist/ionic/{p-9df36075.system.entry.js → p-49d53551.system.entry.js} +1 -1
  213. package/dist/ionic/p-4b07c60a.system.js +4 -0
  214. package/dist/ionic/{p-2ab4a324.system.entry.js → p-4eeca839.system.entry.js} +1 -1
  215. package/dist/ionic/{p-5f4ff20a.entry.js → p-50e0ce13.entry.js} +1 -1
  216. package/dist/ionic/{p-4470f87b.system.entry.js → p-5578033e.system.entry.js} +1 -1
  217. package/dist/ionic/{p-1a9613bf.system.entry.js → p-579c78d2.system.entry.js} +1 -1
  218. package/dist/ionic/{p-eec4b772.entry.js → p-5b420123.entry.js} +1 -1
  219. package/dist/ionic/{p-c8bf9ba7.entry.js → p-5b97abc9.entry.js} +1 -1
  220. package/dist/ionic/p-5fb1321f.entry.js +4 -0
  221. package/dist/ionic/{p-a0a40004.system.entry.js → p-5fe5dc2c.system.entry.js} +1 -1
  222. package/dist/ionic/{p-b8c2dbcd.entry.js → p-607aa181.entry.js} +1 -1
  223. package/dist/ionic/p-61373098.js +4 -0
  224. package/dist/ionic/{p-023e8017.system.entry.js → p-6155027f.system.entry.js} +1 -1
  225. package/dist/ionic/{p-e00b72ce.js → p-624ecf03.js} +1 -1
  226. package/dist/ionic/{p-def7a8bd.system.entry.js → p-63d1da62.system.entry.js} +1 -1
  227. package/dist/ionic/{p-060e4551.js → p-64d8ac48.js} +1 -1
  228. package/dist/ionic/{p-b85d199c.entry.js → p-657ada6a.entry.js} +1 -1
  229. package/dist/ionic/{p-491de063.system.entry.js → p-65943bec.system.entry.js} +1 -1
  230. package/dist/ionic/{p-54893ae3.entry.js → p-65e732b9.entry.js} +1 -1
  231. package/dist/ionic/{p-a587b2ae.system.js → p-6c044a1d.system.js} +1 -1
  232. package/dist/ionic/{p-e4d4d8ac.system.entry.js → p-7058a5e4.system.entry.js} +1 -1
  233. package/dist/ionic/p-705fda69.system.js +4 -0
  234. package/dist/ionic/{p-a63b345e.system.entry.js → p-70abb1f2.system.entry.js} +1 -1
  235. package/dist/ionic/p-7514f2f5.entry.js +4 -0
  236. package/dist/ionic/{p-e0a05506.js → p-756e4559.js} +1 -1
  237. package/dist/ionic/p-772d1657.system.js +4 -0
  238. package/dist/ionic/{p-21371278.system.entry.js → p-77aa5fef.system.entry.js} +1 -1
  239. package/dist/ionic/{p-606887b7.system.entry.js → p-7b886108.system.entry.js} +1 -1
  240. package/dist/ionic/{p-f663de24.entry.js → p-7c9daa6f.entry.js} +1 -1
  241. package/dist/ionic/{p-e0c43e11.system.entry.js → p-824fe96b.system.entry.js} +1 -1
  242. package/dist/ionic/{p-13886789.entry.js → p-87b0d2c9.entry.js} +1 -1
  243. package/dist/ionic/{p-ff4a1ba0.system.entry.js → p-8b22be32.system.entry.js} +1 -1
  244. package/dist/ionic/{p-1d98a7f1.entry.js → p-8d98e2bb.entry.js} +1 -1
  245. package/dist/ionic/{p-ace2d2be.entry.js → p-8f94769b.entry.js} +1 -1
  246. package/dist/ionic/{p-e5c27d9f.system.entry.js → p-912131e9.system.entry.js} +1 -1
  247. package/dist/ionic/{p-042d5353.system.js → p-978bdf4c.system.js} +1 -1
  248. package/dist/ionic/p-9870728f.js +4 -0
  249. package/dist/ionic/{p-9a2ff5ea.system.js → p-9e45532a.system.js} +1 -1
  250. package/dist/ionic/{p-3be7cdeb.system.entry.js → p-a26d7667.system.entry.js} +1 -1
  251. package/dist/ionic/{p-24ae7b33.system.js → p-a3c931ad.system.js} +1 -1
  252. package/dist/ionic/{p-e5cf01f1.entry.js → p-a768ae50.entry.js} +1 -1
  253. package/dist/ionic/{p-888d383b.system.entry.js → p-a9198501.system.entry.js} +1 -1
  254. package/dist/ionic/{p-524ad57e.system.entry.js → p-ac09b6e9.system.entry.js} +1 -1
  255. package/dist/ionic/{p-ada878ce.entry.js → p-b1673667.entry.js} +1 -1
  256. package/dist/ionic/{p-c6a20407.system.entry.js → p-b1f9fbe8.system.entry.js} +1 -1
  257. package/dist/ionic/{p-838cc359.entry.js → p-b87a9f1d.entry.js} +1 -1
  258. package/dist/ionic/{p-e5708e5d.system.entry.js → p-b8a461f5.system.entry.js} +1 -1
  259. package/dist/ionic/{p-f554845e.js → p-b9fa7882.js} +1 -1
  260. package/dist/ionic/p-bf64af90.system.js +1 -1
  261. package/dist/ionic/{p-daf1e8ec.system.entry.js → p-c27c57ea.system.entry.js} +1 -1
  262. package/dist/ionic/{p-e7309bfa.js → p-c3f9d9fe.js} +1 -1
  263. package/dist/ionic/{p-49cb79a1.system.entry.js → p-c53c414d.system.entry.js} +1 -1
  264. package/dist/ionic/{p-8deac7df.system.entry.js → p-c609b315.system.entry.js} +1 -1
  265. package/dist/ionic/p-c63d8dc1.js +4 -0
  266. package/dist/ionic/{p-0be8a0b5.entry.js → p-cbebc567.entry.js} +1 -1
  267. package/dist/ionic/{p-b9f2e353.entry.js → p-ccb740ea.entry.js} +1 -1
  268. package/dist/ionic/{p-37a438ad.system.entry.js → p-cec54707.system.entry.js} +1 -1
  269. package/dist/ionic/p-d2664e0c.system.entry.js +4 -0
  270. package/dist/ionic/p-d40f2b7a.js +4 -0
  271. package/dist/ionic/{p-3479f51b.system.js → p-d70a9e6d.system.js} +1 -1
  272. package/dist/ionic/{p-4d0190ad.system.entry.js → p-d882f1e2.system.entry.js} +2 -2
  273. package/dist/ionic/{p-d8c9d5ac.system.entry.js → p-db3b409e.system.entry.js} +1 -1
  274. package/dist/ionic/{p-c5b5f44a.entry.js → p-dcfb7283.entry.js} +1 -1
  275. package/dist/ionic/{p-f94b2f2f.system.entry.js → p-df54ab6b.system.entry.js} +1 -1
  276. package/dist/ionic/{p-c8331397.system.entry.js → p-e0d0bc88.system.entry.js} +1 -1
  277. package/dist/ionic/{p-81474833.system.entry.js → p-e29c5aab.system.entry.js} +1 -1
  278. package/dist/ionic/{p-3af7b907.entry.js → p-e2ce5f8b.entry.js} +1 -1
  279. package/dist/ionic/{p-6e24cf82.entry.js → p-e3e4eed7.entry.js} +1 -1
  280. package/dist/ionic/{p-50f38461.entry.js → p-e4d2c281.entry.js} +1 -1
  281. package/dist/ionic/{p-8fa62efe.system.entry.js → p-e6cdfa96.system.entry.js} +1 -1
  282. package/dist/ionic/{p-42f6e75c.entry.js → p-e6e0331b.entry.js} +1 -1
  283. package/dist/ionic/{p-22fb2d77.system.entry.js → p-e89451e8.system.entry.js} +1 -1
  284. package/dist/ionic/{p-f02e9382.system.entry.js → p-e958e381.system.entry.js} +1 -1
  285. package/dist/ionic/p-ece78e7b.js +4 -0
  286. package/dist/ionic/{p-51c363e7.system.js → p-ee86cfff.system.js} +1 -1
  287. package/dist/ionic/{p-9e51f822.js → p-ef4292b9.js} +1 -1
  288. package/dist/ionic/{p-6797c66e.system.js → p-f23124c4.system.js} +1 -1
  289. package/dist/ionic/{p-b6174297.entry.js → p-f834322a.entry.js} +1 -1
  290. package/dist/ionic/{p-81378456.system.entry.js → p-f896194a.system.entry.js} +1 -1
  291. package/dist/ionic/{p-0749768d.entry.js → p-fa70eaab.entry.js} +1 -1
  292. package/dist/ionic/{p-2ee9a2c6.entry.js → p-ff6be116.entry.js} +1 -1
  293. package/dist/ionic/{p-4c94580e.js → p-ffa3ba3c.js} +1 -1
  294. package/dist/types/components/picker/picker.d.ts +0 -8
  295. package/dist/types/components/segment-button/segment-button.d.ts +1 -2
  296. package/dist/types/utils/helpers.d.ts +0 -1
  297. package/hydrate/index.js +98 -107
  298. package/hydrate/index.mjs +98 -107
  299. package/package.json +1 -1
  300. package/dist/esm-es5/helpers-e48b0397.js +0 -4
  301. package/dist/esm-es5/index-a313df53.js +0 -4
  302. package/dist/esm-es5/md.transition-3d0d3730.js +0 -4
  303. package/dist/esm-es5/swipe-back-276cda49.js +0 -4
  304. package/dist/ionic/p-2027221d.js +0 -4
  305. package/dist/ionic/p-54e9620f.js +0 -4
  306. package/dist/ionic/p-5eb6f582.system.js +0 -4
  307. package/dist/ionic/p-72e6a9c6.entry.js +0 -4
  308. package/dist/ionic/p-77991411.system.js +0 -4
  309. package/dist/ionic/p-941c06bc.js +0 -4
  310. package/dist/ionic/p-988a0306.system.js +0 -4
  311. package/dist/ionic/p-b9ea58ef.js +0 -4
  312. package/dist/ionic/p-c8402249.js +0 -4
  313. package/dist/ionic/p-d6753868.entry.js +0 -4
  314. package/dist/ionic/p-ed768b77.entry.js +0 -4
  315. package/dist/ionic/p-eeee3990.system.entry.js +0 -4
  316. package/dist/ionic/p-f6bb9be7.system.entry.js +0 -4
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
  */
@@ -21910,50 +21900,13 @@ class Picker$1 {
21910
21900
  * or trailing zeros when looking at the item text.
21911
21901
  */
21912
21902
  this.searchColumn = (colEl, value, zeroBehavior = 'start') => {
21913
- if (!value) {
21914
- return false;
21915
- }
21916
21903
  const behavior = zeroBehavior === 'start' ? /^0+/ : /0$/;
21917
- value = value.replace(behavior, '');
21918
21904
  const option = Array.from(colEl.querySelectorAll('ion-picker-column-option')).find((el) => {
21919
21905
  return el.disabled !== true && el.textContent.replace(behavior, '') === value;
21920
21906
  });
21921
21907
  if (option) {
21922
21908
  colEl.setValue(option.value);
21923
21909
  }
21924
- return !!option;
21925
- };
21926
- /**
21927
- * Attempts to intelligently search the first and second
21928
- * column as if they're number columns for the provided numbers
21929
- * where the first two numbers inpu are the first column
21930
- * and the last 2 are the last column. Tries to allow for the first
21931
- * number to be ignored for situations where typos occurred.
21932
- */
21933
- this.multiColumnSearch = (firstColumn, secondColumn, input) => {
21934
- if (input.length === 0) {
21935
- return;
21936
- }
21937
- const inputArray = input.split('');
21938
- const hourValue = inputArray.slice(0, 2).join('');
21939
- const foundHour = this.searchColumn(firstColumn, hourValue);
21940
- if (inputArray.length > 2 && foundHour) {
21941
- const minuteValue = inputArray.slice(2, 4).join('');
21942
- this.searchColumn(secondColumn, minuteValue);
21943
- }
21944
- else if (!foundHour && inputArray.length >= 1) {
21945
- let singleDigitHour = inputArray[0];
21946
- let singleDigitFound = this.searchColumn(firstColumn, singleDigitHour);
21947
- if (!singleDigitFound) {
21948
- inputArray.shift();
21949
- singleDigitHour = inputArray[0];
21950
- singleDigitFound = this.searchColumn(firstColumn, singleDigitHour);
21951
- }
21952
- if (singleDigitFound && inputArray.length > 1) {
21953
- const remainingDigits = inputArray.slice(1, 3).join('');
21954
- this.searchColumn(secondColumn, remainingDigits);
21955
- }
21956
- }
21957
21910
  };
21958
21911
  this.selectMultiColumn = () => {
21959
21912
  const { inputEl, el } = this;
@@ -21964,13 +21917,82 @@ class Picker$1 {
21964
21917
  const firstColumn = numericPickers[0];
21965
21918
  const lastColumn = numericPickers[1];
21966
21919
  let value = inputEl.value;
21967
- if (value.length > 4) {
21968
- const startIndex = inputEl.value.length - 4;
21969
- const newString = inputEl.value.substring(startIndex);
21970
- inputEl.value = newString;
21971
- value = newString;
21920
+ let minuteValue;
21921
+ switch (value.length) {
21922
+ case 1:
21923
+ this.searchColumn(firstColumn, value);
21924
+ break;
21925
+ case 2:
21926
+ /**
21927
+ * If the first character is `0` or `1` it is
21928
+ * possible that users are trying to type `09`
21929
+ * or `11` into the hour field, so we should look
21930
+ * at that first.
21931
+ */
21932
+ const firstCharacter = inputEl.value.substring(0, 1);
21933
+ value = firstCharacter === '0' || firstCharacter === '1' ? inputEl.value : firstCharacter;
21934
+ this.searchColumn(firstColumn, value);
21935
+ /**
21936
+ * If only checked the first value,
21937
+ * we can check the second value
21938
+ * for a match in the minutes column
21939
+ */
21940
+ if (value.length === 1) {
21941
+ minuteValue = inputEl.value.substring(inputEl.value.length - 1);
21942
+ this.searchColumn(lastColumn, minuteValue, 'end');
21943
+ }
21944
+ break;
21945
+ case 3:
21946
+ /**
21947
+ * If the first character is `0` or `1` it is
21948
+ * possible that users are trying to type `09`
21949
+ * or `11` into the hour field, so we should look
21950
+ * at that first.
21951
+ */
21952
+ const firstCharacterAgain = inputEl.value.substring(0, 1);
21953
+ value =
21954
+ firstCharacterAgain === '0' || firstCharacterAgain === '1'
21955
+ ? inputEl.value.substring(0, 2)
21956
+ : firstCharacterAgain;
21957
+ this.searchColumn(firstColumn, value);
21958
+ /**
21959
+ * If only checked the first value,
21960
+ * we can check the second value
21961
+ * for a match in the minutes column
21962
+ */
21963
+ minuteValue = value.length === 1 ? inputEl.value.substring(1) : inputEl.value.substring(2);
21964
+ this.searchColumn(lastColumn, minuteValue, 'end');
21965
+ break;
21966
+ case 4:
21967
+ /**
21968
+ * If the first character is `0` or `1` it is
21969
+ * possible that users are trying to type `09`
21970
+ * or `11` into the hour field, so we should look
21971
+ * at that first.
21972
+ */
21973
+ const firstCharacterAgainAgain = inputEl.value.substring(0, 1);
21974
+ value =
21975
+ firstCharacterAgainAgain === '0' || firstCharacterAgainAgain === '1'
21976
+ ? inputEl.value.substring(0, 2)
21977
+ : firstCharacterAgainAgain;
21978
+ this.searchColumn(firstColumn, value);
21979
+ /**
21980
+ * If only checked the first value,
21981
+ * we can check the second value
21982
+ * for a match in the minutes column
21983
+ */
21984
+ const minuteValueAgain = value.length === 1
21985
+ ? inputEl.value.substring(1, inputEl.value.length)
21986
+ : inputEl.value.substring(2, inputEl.value.length);
21987
+ this.searchColumn(lastColumn, minuteValueAgain, 'end');
21988
+ break;
21989
+ default:
21990
+ const startIndex = inputEl.value.length - 4;
21991
+ const newString = inputEl.value.substring(startIndex);
21992
+ inputEl.value = newString;
21993
+ this.selectMultiColumn();
21994
+ break;
21972
21995
  }
21973
- this.multiColumnSearch(firstColumn, lastColumn, value);
21974
21996
  };
21975
21997
  /**
21976
21998
  * Searches the value of the active column
@@ -22039,7 +22061,7 @@ class Picker$1 {
22039
22061
  this.emitInputModeChange();
22040
22062
  }
22041
22063
  render() {
22042
- return (hAsync(Host, { key: '2a526a17cd2a05228a3da82ac0e6f808842c1587', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, hAsync("input", { key: 'bf5ff36702e31152e2fe605a30ea7ce4f2a73210', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
22064
+ 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) => {
22043
22065
  var _a;
22044
22066
  /**
22045
22067
  * The "Enter" key represents
@@ -22054,7 +22076,7 @@ class Picker$1 {
22054
22076
  if (ev.key === 'Enter') {
22055
22077
  (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.blur();
22056
22078
  }
22057
- }, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), hAsync("div", { key: 'b49b388f62b498bf38553e322a7863e0966ae58b', class: "picker-before" }), hAsync("div", { key: '3defde7145b5c0377e83f610e1330e0d571f0382', class: "picker-after" }), hAsync("div", { key: '7d3638246c00e90c5bdde43bf38f9014ef818484', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), hAsync("slot", { key: 'dbd19f25675d30fd3b893a19f3db1ad02b2b59f5' })));
22079
+ }, 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' })));
22058
22080
  }
22059
22081
  get el() { return getElement(this); }
22060
22082
  static get style() { return {
@@ -29680,61 +29702,15 @@ class SegmentButton {
29680
29702
  valueChanged() {
29681
29703
  this.updateState();
29682
29704
  }
29683
- waitForSegmentContent(ionSegment, contentId) {
29684
- return new Promise((resolve, reject) => {
29685
- let timeoutId = undefined;
29686
- let animationFrameId;
29687
- const check = () => {
29688
- if (!ionSegment) {
29689
- reject(new Error(`Segment not found when looking for Segment Content`));
29690
- return;
29691
- }
29692
- const segmentView = getNextSiblingOfType(ionSegment); // Skip the text nodes
29693
- const segmentContent = segmentView === null || segmentView === void 0 ? void 0 : segmentView.querySelector(`ion-segment-content[id="${contentId}"]`);
29694
- if (segmentContent && timeoutId) {
29695
- clearTimeout(timeoutId); // Clear the timeout if the segmentContent is found
29696
- cancelAnimationFrame(animationFrameId);
29697
- resolve(segmentContent);
29698
- }
29699
- else {
29700
- animationFrameId = requestAnimationFrame(check); // Keep checking on the next animation frame
29701
- }
29702
- };
29703
- check();
29704
- // Set a timeout to reject the promise
29705
- timeoutId = setTimeout(() => {
29706
- cancelAnimationFrame(animationFrameId);
29707
- reject(new Error(`Unable to find Segment Content with id="${contentId} within 1000 ms`));
29708
- }, 1000);
29709
- });
29710
- }
29711
- async connectedCallback() {
29705
+ connectedCallback() {
29712
29706
  const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
29713
29707
  if (segmentEl) {
29714
29708
  this.updateState();
29715
29709
  addEventListener$1(segmentEl, 'ionSelect', this.updateState);
29716
29710
  addEventListener$1(segmentEl, 'ionStyle', this.updateStyle);
29717
29711
  }
29718
- // Return if there is no contentId defined
29719
- if (!this.contentId)
29720
- return;
29721
- let segmentContent;
29722
- try {
29723
- // Attempt to find the Segment Content by its contentId
29724
- segmentContent = await this.waitForSegmentContent(segmentEl, this.contentId);
29725
- }
29726
- catch (error) {
29727
- // If no associated Segment Content exists, log an error and return
29728
- console.error('Segment Button: ', error.message);
29729
- return;
29730
- }
29731
- // Ensure the found element is a valid ION-SEGMENT-CONTENT
29732
- if (segmentContent.tagName !== 'ION-SEGMENT-CONTENT') {
29733
- console.error(`Segment Button: Element with id="${this.contentId}" is not an <ion-segment-content> element.`);
29734
- return;
29735
- }
29736
29712
  // Prevent buttons from being disabled when associated with segment content
29737
- if (this.disabled) {
29713
+ if (this.contentId && this.disabled) {
29738
29714
  console.warn(`Segment Button: Segment buttons cannot be disabled when associated with an <ion-segment-content>.`);
29739
29715
  this.disabled = false;
29740
29716
  }
@@ -29749,6 +29725,21 @@ class SegmentButton {
29749
29725
  }
29750
29726
  componentWillLoad() {
29751
29727
  this.inheritedAttributes = Object.assign({}, inheritAttributes$1(this.el, ['aria-label']));
29728
+ // Return if there is no contentId defined
29729
+ if (!this.contentId)
29730
+ return;
29731
+ // Attempt to find the Segment Content by its contentId
29732
+ const segmentContent = document.getElementById(this.contentId);
29733
+ // If no associated Segment Content exists, log an error and return
29734
+ if (!segmentContent) {
29735
+ console.error(`Segment Button: Unable to find Segment Content with id="${this.contentId}".`);
29736
+ return;
29737
+ }
29738
+ // Ensure the found element is a valid ION-SEGMENT-CONTENT
29739
+ if (segmentContent.tagName !== 'ION-SEGMENT-CONTENT') {
29740
+ console.error(`Segment Button: Element with id="${this.contentId}" is not an <ion-segment-content> element.`);
29741
+ return;
29742
+ }
29752
29743
  }
29753
29744
  get hasLabel() {
29754
29745
  return !!this.el.querySelector('ion-label');
@@ -29771,7 +29762,7 @@ class SegmentButton {
29771
29762
  const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
29772
29763
  const mode = getIonMode$1(this);
29773
29764
  const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
29774
- return (hAsync(Host, { key: 'e1e582b9a142cb07043ba08f02ad25f5a1fa5690', class: {
29765
+ return (hAsync(Host, { key: 'f2f679a08b131cd35d63f649b9d1f1907df30a89', class: {
29775
29766
  [mode]: true,
29776
29767
  'in-toolbar': hostContext('ion-toolbar', this.el),
29777
29768
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
@@ -29787,7 +29778,7 @@ class SegmentButton {
29787
29778
  'ion-activatable': true,
29788
29779
  'ion-activatable-instant': true,
29789
29780
  'ion-focusable': true,
29790
- } }, 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" }))));
29781
+ } }, 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" }))));
29791
29782
  }
29792
29783
  get el() { return getElement(this); }
29793
29784
  static get watchers() { return {
@@ -29836,10 +29827,10 @@ class SegmentContent {
29836
29827
  }; }
29837
29828
  }
29838
29829
 
29839
- const segmentViewIosCss = ":host{display:-ms-flexbox;display:flex;height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29830
+ const segmentViewIosCss = ":host{display:-ms-flexbox;display:flex;min-height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29840
29831
  var IonSegmentViewIosStyle0 = segmentViewIosCss;
29841
29832
 
29842
- const segmentViewMdCss = ":host{display:-ms-flexbox;display:flex;height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29833
+ const segmentViewMdCss = ":host{display:-ms-flexbox;display:flex;min-height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29843
29834
  var IonSegmentViewMdStyle0 = segmentViewMdCss;
29844
29835
 
29845
29836
  class SegmentView {
package/hydrate/index.mjs CHANGED
@@ -2678,16 +2678,6 @@ const shallowEqualStringMap = (map1, map2) => {
2678
2678
  }
2679
2679
  return true;
2680
2680
  };
2681
- const getNextSiblingOfType = (element) => {
2682
- let sibling = element.nextSibling;
2683
- while (sibling) {
2684
- if (sibling.nodeType === Node.ELEMENT_NODE && sibling !== null) {
2685
- return sibling;
2686
- }
2687
- sibling = sibling.nextSibling;
2688
- }
2689
- return null;
2690
- };
2691
2681
  /**
2692
2682
  * Checks input for usable number. Not NaN and not Infinite.
2693
2683
  */
@@ -21906,50 +21896,13 @@ class Picker$1 {
21906
21896
  * or trailing zeros when looking at the item text.
21907
21897
  */
21908
21898
  this.searchColumn = (colEl, value, zeroBehavior = 'start') => {
21909
- if (!value) {
21910
- return false;
21911
- }
21912
21899
  const behavior = zeroBehavior === 'start' ? /^0+/ : /0$/;
21913
- value = value.replace(behavior, '');
21914
21900
  const option = Array.from(colEl.querySelectorAll('ion-picker-column-option')).find((el) => {
21915
21901
  return el.disabled !== true && el.textContent.replace(behavior, '') === value;
21916
21902
  });
21917
21903
  if (option) {
21918
21904
  colEl.setValue(option.value);
21919
21905
  }
21920
- return !!option;
21921
- };
21922
- /**
21923
- * Attempts to intelligently search the first and second
21924
- * column as if they're number columns for the provided numbers
21925
- * where the first two numbers inpu are the first column
21926
- * and the last 2 are the last column. Tries to allow for the first
21927
- * number to be ignored for situations where typos occurred.
21928
- */
21929
- this.multiColumnSearch = (firstColumn, secondColumn, input) => {
21930
- if (input.length === 0) {
21931
- return;
21932
- }
21933
- const inputArray = input.split('');
21934
- const hourValue = inputArray.slice(0, 2).join('');
21935
- const foundHour = this.searchColumn(firstColumn, hourValue);
21936
- if (inputArray.length > 2 && foundHour) {
21937
- const minuteValue = inputArray.slice(2, 4).join('');
21938
- this.searchColumn(secondColumn, minuteValue);
21939
- }
21940
- else if (!foundHour && inputArray.length >= 1) {
21941
- let singleDigitHour = inputArray[0];
21942
- let singleDigitFound = this.searchColumn(firstColumn, singleDigitHour);
21943
- if (!singleDigitFound) {
21944
- inputArray.shift();
21945
- singleDigitHour = inputArray[0];
21946
- singleDigitFound = this.searchColumn(firstColumn, singleDigitHour);
21947
- }
21948
- if (singleDigitFound && inputArray.length > 1) {
21949
- const remainingDigits = inputArray.slice(1, 3).join('');
21950
- this.searchColumn(secondColumn, remainingDigits);
21951
- }
21952
- }
21953
21906
  };
21954
21907
  this.selectMultiColumn = () => {
21955
21908
  const { inputEl, el } = this;
@@ -21960,13 +21913,82 @@ class Picker$1 {
21960
21913
  const firstColumn = numericPickers[0];
21961
21914
  const lastColumn = numericPickers[1];
21962
21915
  let value = inputEl.value;
21963
- if (value.length > 4) {
21964
- const startIndex = inputEl.value.length - 4;
21965
- const newString = inputEl.value.substring(startIndex);
21966
- inputEl.value = newString;
21967
- value = newString;
21916
+ let minuteValue;
21917
+ switch (value.length) {
21918
+ case 1:
21919
+ this.searchColumn(firstColumn, value);
21920
+ break;
21921
+ case 2:
21922
+ /**
21923
+ * If the first character is `0` or `1` it is
21924
+ * possible that users are trying to type `09`
21925
+ * or `11` into the hour field, so we should look
21926
+ * at that first.
21927
+ */
21928
+ const firstCharacter = inputEl.value.substring(0, 1);
21929
+ value = firstCharacter === '0' || firstCharacter === '1' ? inputEl.value : firstCharacter;
21930
+ this.searchColumn(firstColumn, value);
21931
+ /**
21932
+ * If only checked the first value,
21933
+ * we can check the second value
21934
+ * for a match in the minutes column
21935
+ */
21936
+ if (value.length === 1) {
21937
+ minuteValue = inputEl.value.substring(inputEl.value.length - 1);
21938
+ this.searchColumn(lastColumn, minuteValue, 'end');
21939
+ }
21940
+ break;
21941
+ case 3:
21942
+ /**
21943
+ * If the first character is `0` or `1` it is
21944
+ * possible that users are trying to type `09`
21945
+ * or `11` into the hour field, so we should look
21946
+ * at that first.
21947
+ */
21948
+ const firstCharacterAgain = inputEl.value.substring(0, 1);
21949
+ value =
21950
+ firstCharacterAgain === '0' || firstCharacterAgain === '1'
21951
+ ? inputEl.value.substring(0, 2)
21952
+ : firstCharacterAgain;
21953
+ this.searchColumn(firstColumn, value);
21954
+ /**
21955
+ * If only checked the first value,
21956
+ * we can check the second value
21957
+ * for a match in the minutes column
21958
+ */
21959
+ minuteValue = value.length === 1 ? inputEl.value.substring(1) : inputEl.value.substring(2);
21960
+ this.searchColumn(lastColumn, minuteValue, 'end');
21961
+ break;
21962
+ case 4:
21963
+ /**
21964
+ * If the first character is `0` or `1` it is
21965
+ * possible that users are trying to type `09`
21966
+ * or `11` into the hour field, so we should look
21967
+ * at that first.
21968
+ */
21969
+ const firstCharacterAgainAgain = inputEl.value.substring(0, 1);
21970
+ value =
21971
+ firstCharacterAgainAgain === '0' || firstCharacterAgainAgain === '1'
21972
+ ? inputEl.value.substring(0, 2)
21973
+ : firstCharacterAgainAgain;
21974
+ this.searchColumn(firstColumn, value);
21975
+ /**
21976
+ * If only checked the first value,
21977
+ * we can check the second value
21978
+ * for a match in the minutes column
21979
+ */
21980
+ const minuteValueAgain = value.length === 1
21981
+ ? inputEl.value.substring(1, inputEl.value.length)
21982
+ : inputEl.value.substring(2, inputEl.value.length);
21983
+ this.searchColumn(lastColumn, minuteValueAgain, 'end');
21984
+ break;
21985
+ default:
21986
+ const startIndex = inputEl.value.length - 4;
21987
+ const newString = inputEl.value.substring(startIndex);
21988
+ inputEl.value = newString;
21989
+ this.selectMultiColumn();
21990
+ break;
21968
21991
  }
21969
- this.multiColumnSearch(firstColumn, lastColumn, value);
21970
21992
  };
21971
21993
  /**
21972
21994
  * Searches the value of the active column
@@ -22035,7 +22057,7 @@ class Picker$1 {
22035
22057
  this.emitInputModeChange();
22036
22058
  }
22037
22059
  render() {
22038
- return (hAsync(Host, { key: '2a526a17cd2a05228a3da82ac0e6f808842c1587', onPointerDown: (ev) => this.onPointerDown(ev), onClick: () => this.onClick() }, hAsync("input", { key: 'bf5ff36702e31152e2fe605a30ea7ce4f2a73210', "aria-hidden": "true", tabindex: -1, inputmode: "numeric", type: "number", onKeyDown: (ev) => {
22060
+ 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) => {
22039
22061
  var _a;
22040
22062
  /**
22041
22063
  * The "Enter" key represents
@@ -22050,7 +22072,7 @@ class Picker$1 {
22050
22072
  if (ev.key === 'Enter') {
22051
22073
  (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.blur();
22052
22074
  }
22053
- }, ref: (el) => (this.inputEl = el), onInput: () => this.onInputChange(), onBlur: () => this.exitInputMode() }), hAsync("div", { key: 'b49b388f62b498bf38553e322a7863e0966ae58b', class: "picker-before" }), hAsync("div", { key: '3defde7145b5c0377e83f610e1330e0d571f0382', class: "picker-after" }), hAsync("div", { key: '7d3638246c00e90c5bdde43bf38f9014ef818484', class: "picker-highlight", ref: (el) => (this.highlightEl = el) }), hAsync("slot", { key: 'dbd19f25675d30fd3b893a19f3db1ad02b2b59f5' })));
22075
+ }, 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' })));
22054
22076
  }
22055
22077
  get el() { return getElement(this); }
22056
22078
  static get style() { return {
@@ -29676,61 +29698,15 @@ class SegmentButton {
29676
29698
  valueChanged() {
29677
29699
  this.updateState();
29678
29700
  }
29679
- waitForSegmentContent(ionSegment, contentId) {
29680
- return new Promise((resolve, reject) => {
29681
- let timeoutId = undefined;
29682
- let animationFrameId;
29683
- const check = () => {
29684
- if (!ionSegment) {
29685
- reject(new Error(`Segment not found when looking for Segment Content`));
29686
- return;
29687
- }
29688
- const segmentView = getNextSiblingOfType(ionSegment); // Skip the text nodes
29689
- const segmentContent = segmentView === null || segmentView === void 0 ? void 0 : segmentView.querySelector(`ion-segment-content[id="${contentId}"]`);
29690
- if (segmentContent && timeoutId) {
29691
- clearTimeout(timeoutId); // Clear the timeout if the segmentContent is found
29692
- cancelAnimationFrame(animationFrameId);
29693
- resolve(segmentContent);
29694
- }
29695
- else {
29696
- animationFrameId = requestAnimationFrame(check); // Keep checking on the next animation frame
29697
- }
29698
- };
29699
- check();
29700
- // Set a timeout to reject the promise
29701
- timeoutId = setTimeout(() => {
29702
- cancelAnimationFrame(animationFrameId);
29703
- reject(new Error(`Unable to find Segment Content with id="${contentId} within 1000 ms`));
29704
- }, 1000);
29705
- });
29706
- }
29707
- async connectedCallback() {
29701
+ connectedCallback() {
29708
29702
  const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
29709
29703
  if (segmentEl) {
29710
29704
  this.updateState();
29711
29705
  addEventListener$1(segmentEl, 'ionSelect', this.updateState);
29712
29706
  addEventListener$1(segmentEl, 'ionStyle', this.updateStyle);
29713
29707
  }
29714
- // Return if there is no contentId defined
29715
- if (!this.contentId)
29716
- return;
29717
- let segmentContent;
29718
- try {
29719
- // Attempt to find the Segment Content by its contentId
29720
- segmentContent = await this.waitForSegmentContent(segmentEl, this.contentId);
29721
- }
29722
- catch (error) {
29723
- // If no associated Segment Content exists, log an error and return
29724
- console.error('Segment Button: ', error.message);
29725
- return;
29726
- }
29727
- // Ensure the found element is a valid ION-SEGMENT-CONTENT
29728
- if (segmentContent.tagName !== 'ION-SEGMENT-CONTENT') {
29729
- console.error(`Segment Button: Element with id="${this.contentId}" is not an <ion-segment-content> element.`);
29730
- return;
29731
- }
29732
29708
  // Prevent buttons from being disabled when associated with segment content
29733
- if (this.disabled) {
29709
+ if (this.contentId && this.disabled) {
29734
29710
  console.warn(`Segment Button: Segment buttons cannot be disabled when associated with an <ion-segment-content>.`);
29735
29711
  this.disabled = false;
29736
29712
  }
@@ -29745,6 +29721,21 @@ class SegmentButton {
29745
29721
  }
29746
29722
  componentWillLoad() {
29747
29723
  this.inheritedAttributes = Object.assign({}, inheritAttributes$1(this.el, ['aria-label']));
29724
+ // Return if there is no contentId defined
29725
+ if (!this.contentId)
29726
+ return;
29727
+ // Attempt to find the Segment Content by its contentId
29728
+ const segmentContent = document.getElementById(this.contentId);
29729
+ // If no associated Segment Content exists, log an error and return
29730
+ if (!segmentContent) {
29731
+ console.error(`Segment Button: Unable to find Segment Content with id="${this.contentId}".`);
29732
+ return;
29733
+ }
29734
+ // Ensure the found element is a valid ION-SEGMENT-CONTENT
29735
+ if (segmentContent.tagName !== 'ION-SEGMENT-CONTENT') {
29736
+ console.error(`Segment Button: Element with id="${this.contentId}" is not an <ion-segment-content> element.`);
29737
+ return;
29738
+ }
29748
29739
  }
29749
29740
  get hasLabel() {
29750
29741
  return !!this.el.querySelector('ion-label');
@@ -29767,7 +29758,7 @@ class SegmentButton {
29767
29758
  const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
29768
29759
  const mode = getIonMode$1(this);
29769
29760
  const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
29770
- return (hAsync(Host, { key: 'e1e582b9a142cb07043ba08f02ad25f5a1fa5690', class: {
29761
+ return (hAsync(Host, { key: 'f2f679a08b131cd35d63f649b9d1f1907df30a89', class: {
29771
29762
  [mode]: true,
29772
29763
  'in-toolbar': hostContext('ion-toolbar', this.el),
29773
29764
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
@@ -29783,7 +29774,7 @@ class SegmentButton {
29783
29774
  'ion-activatable': true,
29784
29775
  'ion-activatable-instant': true,
29785
29776
  'ion-focusable': true,
29786
- } }, 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" }))));
29777
+ } }, 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" }))));
29787
29778
  }
29788
29779
  get el() { return getElement(this); }
29789
29780
  static get watchers() { return {
@@ -29832,10 +29823,10 @@ class SegmentContent {
29832
29823
  }; }
29833
29824
  }
29834
29825
 
29835
- const segmentViewIosCss = ":host{display:-ms-flexbox;display:flex;height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29826
+ const segmentViewIosCss = ":host{display:-ms-flexbox;display:flex;min-height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29836
29827
  var IonSegmentViewIosStyle0 = segmentViewIosCss;
29837
29828
 
29838
- const segmentViewMdCss = ":host{display:-ms-flexbox;display:flex;height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29829
+ const segmentViewMdCss = ":host{display:-ms-flexbox;display:flex;min-height:100%;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}:host(.segment-view-disabled){-ms-touch-action:none;touch-action:none;overflow-x:hidden}:host(.segment-view-scroll-disabled){pointer-events:none}:host(.segment-view-disabled){opacity:0.3}";
29839
29830
  var IonSegmentViewMdStyle0 = segmentViewMdCss;
29840
29831
 
29841
29832
  class SegmentView {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/core",
3
- "version": "8.5.2-dev.11742935752.148f25e6",
3
+ "version": "8.5.2-dev.11743017713.1e4eb1b9",
4
4
  "description": "Base components for Ionic",
5
5
  "keywords": [
6
6
  "ionic",
@@ -1,4 +0,0 @@
1
- import{__spreadArray}from"tslib";
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */var transitionEndAsync=function(r,a){if(a===void 0){a=0}return new Promise((function(i){transitionEnd(r,a,i)}))};var transitionEnd=function(r,a,i){if(a===void 0){a=0}var e;var n;var t={passive:true};var o=500;var u=function(){if(e){e()}};var s=function(a){if(a===undefined||r===a.target){u();i(a)}};if(r){r.addEventListener("webkitTransitionEnd",s,t);r.addEventListener("transitionend",s,t);n=setTimeout(s,a+o);e=function(){if(n!==undefined){clearTimeout(n);n=undefined}r.removeEventListener("webkitTransitionEnd",s,t);r.removeEventListener("transitionend",s,t)}}return u};var componentOnReady=function(r,a){if(r.componentOnReady){r.componentOnReady().then((function(r){return a(r)}))}else{raf((function(){return a(r)}))}};var hasLazyBuild=function(r){return r.componentOnReady!==undefined};var inheritAttributes=function(r,a){if(a===void 0){a=[]}var i={};a.forEach((function(a){if(r.hasAttribute(a)){var e=r.getAttribute(a);if(e!==null){i[a]=r.getAttribute(a)}r.removeAttribute(a)}}));return i};var ariaAttributes=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];var inheritAriaAttributes=function(r,a){var i=ariaAttributes;if(a&&a.length>0){i=i.filter((function(r){return!a.includes(r)}))}return inheritAttributes(r,i)};var addEventListener=function(r,a,i,e){return r.addEventListener(a,i,e)};var removeEventListener=function(r,a,i,e){return r.removeEventListener(a,i,e)};var getElementRoot=function(r,a){if(a===void 0){a=r}return r.shadowRoot||a};var raf=function(r){if(typeof __zone_symbol__requestAnimationFrame==="function"){return __zone_symbol__requestAnimationFrame(r)}if(typeof requestAnimationFrame==="function"){return requestAnimationFrame(r)}return setTimeout(r)};var hasShadowDom=function(r){return!!r.shadowRoot&&!!r.attachShadow};var focusVisibleElement=function(r){r.focus();if(r.classList.contains("ion-focusable")){var a=r.closest("ion-app");if(a){a.setFocus([r])}}};var renderHiddenInput=function(r,a,i,e,n){if(r||hasShadowDom(a)){var t=a.querySelector("input.aux-input");if(!t){t=a.ownerDocument.createElement("input");t.type="hidden";t.classList.add("aux-input");a.appendChild(t)}t.disabled=n;t.name=i;t.value=e||""}};var clamp=function(r,a,i){return Math.max(r,Math.min(a,i))};var assert=function(r,a){if(!r){var i="ASSERT: "+a;console.error(i);debugger;throw new Error(i)}};var pointerCoord=function(r){if(r){var a=r.changedTouches;if(a&&a.length>0){var i=a[0];return{x:i.clientX,y:i.clientY}}if(r.pageX!==undefined){return{x:r.pageX,y:r.pageY}}}return{x:0,y:0}};var isEndSide=function(r){var a=document.dir==="rtl";switch(r){case"start":return a;case"end":return!a;default:throw new Error('"'.concat(r,'" is not a valid value for [side]. Use "start" or "end" instead.'))}};var debounceEvent=function(r,a){var i=r._original||r;return{_original:r,emit:debounce(i.emit.bind(i),a)}};var debounce=function(r,a){if(a===void 0){a=0}var i;return function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}clearTimeout(i);i=setTimeout.apply(void 0,__spreadArray([r,a],e,false))}};var shallowEqualStringMap=function(r,a){r!==null&&r!==void 0?r:r={};a!==null&&a!==void 0?a:a={};if(r===a){return true}var i=Object.keys(r);if(i.length!==Object.keys(a).length){return false}for(var e=0,n=i;e<n.length;e++){var t=n[e];if(!(t in a)){return false}if(r[t]!==a[t]){return false}}return true};var getNextSiblingOfType=function(r){var a=r.nextSibling;while(a){if(a.nodeType===Node.ELEMENT_NODE&&a!==null){return a}a=a.nextSibling}return null};var isSafeNumber=function(r){return typeof r==="number"&&!isNaN(r)&&isFinite(r)};export{addEventListener as a,removeEventListener as b,componentOnReady as c,renderHiddenInput as d,debounceEvent as e,focusVisibleElement as f,getElementRoot as g,inheritAttributes as h,inheritAriaAttributes as i,clamp as j,hasLazyBuild as k,isSafeNumber as l,hasShadowDom as m,assert as n,getNextSiblingOfType as o,isEndSide as p,debounce as q,raf as r,shallowEqualStringMap as s,transitionEndAsync as t,pointerCoord as u};
@@ -1,4 +0,0 @@
1
- import{__awaiter,__generator}from"tslib";
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */import{c as config}from"./ionic-global-ca86cf32.js";import{w as writeTask,B as Build}from"./index-527b9e34.js";import{p as printIonWarning}from"./index-738d7504.js";import{r as raf}from"./helpers-e48b0397.js";var LIFECYCLE_WILL_ENTER="ionViewWillEnter";var LIFECYCLE_DID_ENTER="ionViewDidEnter";var LIFECYCLE_WILL_LEAVE="ionViewWillLeave";var LIFECYCLE_DID_LEAVE="ionViewDidLeave";var LIFECYCLE_WILL_UNLOAD="ionViewWillUnload";var moveFocus=function(n){n.tabIndex=-1;n.focus()};var isVisible=function(n){return n.offsetParent!==null};var createFocusController=function(){var n=function(n){var e=config.get("focusManagerPriority",false);if(e){var r=document.activeElement;if(r!==null&&(n===null||n===void 0?void 0:n.contains(r))){r.setAttribute(LAST_FOCUS,"true")}}};var e=function(n){var e=config.get("focusManagerPriority",false);if(Array.isArray(e)&&!n.contains(document.activeElement)){var r=n.querySelector("[".concat(LAST_FOCUS,"]"));if(r&&isVisible(r)){moveFocus(r);return}for(var i=0,t=e;i<t.length;i++){var a=t[i];switch(a){case"content":var o=n.querySelector('main, [role="main"]');if(o&&isVisible(o)){moveFocus(o);return}break;case"heading":var s=n.querySelector('h1, [role="heading"][aria-level="1"]');if(s&&isVisible(s)){moveFocus(s);return}break;case"banner":var u=n.querySelector('header, [role="banner"]');if(u&&isVisible(u)){moveFocus(u);return}break;default:printIonWarning("Unrecognized focus manager priority value ".concat(a));break}}moveFocus(n)}};return{saveViewFocus:n,setViewFocus:e}};var LAST_FOCUS="ion-last-focus";var iosTransitionAnimation=function(){return import("./ios.transition-5fe4d6c8.js")};var mdTransitionAnimation=function(){return import("./md.transition-3d0d3730.js")};var focusController=createFocusController();var transition=function(n){return new Promise((function(e,r){writeTask((function(){beforeTransition(n);runTransition(n).then((function(r){if(r.animation){r.animation.destroy()}afterTransition(n);e(r)}),(function(e){afterTransition(n);r(e)}))}))}))};var beforeTransition=function(n){var e=n.enteringEl;var r=n.leavingEl;focusController.saveViewFocus(r);setZIndex(e,r,n.direction);if(n.showGoBack){e.classList.add("can-go-back")}else{e.classList.remove("can-go-back")}setPageHidden(e,false);e.style.setProperty("pointer-events","none");if(r){setPageHidden(r,false);r.style.setProperty("pointer-events","none")}};var runTransition=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:return[4,getAnimationBuilder(n)];case 1:e=i.sent();r=e&&Build.isBrowser?animation(e,n):noAnimation(n);return[2,r]}}))}))};var afterTransition=function(n){var e=n.enteringEl;var r=n.leavingEl;e.classList.remove("ion-page-invisible");e.style.removeProperty("pointer-events");if(r!==undefined){r.classList.remove("ion-page-invisible");r.style.removeProperty("pointer-events")}focusController.setViewFocus(e)};var getAnimationBuilder=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:if(!n.leavingEl||!n.animated||n.duration===0){return[2,undefined]}if(n.animationBuilder){return[2,n.animationBuilder]}if(!(n.mode==="ios"))return[3,2];return[4,iosTransitionAnimation()];case 1:r=i.sent().iosTransitionAnimation;return[3,4];case 2:return[4,mdTransitionAnimation()];case 3:r=i.sent().mdTransitionAnimation;i.label=4;case 4:e=r;return[2,e]}}))}))};var animation=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var r,i;return __generator(this,(function(t){switch(t.label){case 0:return[4,waitForReady(e,true)];case 1:t.sent();r=n(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);return[4,playTransition(r,e)];case 2:i=t.sent();if(e.progressCallback){e.progressCallback(undefined)}if(i){fireDidEvents(e.enteringEl,e.leavingEl)}return[2,{hasCompleted:i,animation:r}]}}))}))};var noAnimation=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(t){switch(t.label){case 0:e=n.enteringEl;r=n.leavingEl;i=config.get("focusManagerPriority",false);return[4,waitForReady(n,i)];case 1:t.sent();fireWillEvents(e,r);fireDidEvents(e,r);return[2,{hasCompleted:true}]}}))}))};var waitForReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:r=n.deepWait!==undefined?n.deepWait:e;if(!r)return[3,2];return[4,Promise.all([deepReady(n.enteringEl),deepReady(n.leavingEl)])];case 1:i.sent();i.label=2;case 2:return[4,notifyViewReady(n.viewIsReady,n.enteringEl)];case 3:i.sent();return[2]}}))}))};var notifyViewReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!n)return[3,2];return[4,n(e)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};var playTransition=function(n,e){var r=e.progressCallback;var i=new Promise((function(e){n.onFinish((function(n){return e(n===1)}))}));if(r){n.progressStart(true);r(n)}else{n.play()}return i};var fireWillEvents=function(n,e){lifecycle(e,LIFECYCLE_WILL_LEAVE);lifecycle(n,LIFECYCLE_WILL_ENTER)};var fireDidEvents=function(n,e){lifecycle(n,LIFECYCLE_DID_ENTER);lifecycle(e,LIFECYCLE_DID_LEAVE)};var lifecycle=function(n,e){if(n){var r=new CustomEvent(e,{bubbles:false,cancelable:false});n.dispatchEvent(r)}};var waitForMount=function(){return new Promise((function(n){return raf((function(){return raf((function(){return n()}))}))}))};var deepReady=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(t){switch(t.label){case 0:e=n;if(!e)return[3,6];if(!(e.componentOnReady!=null))return[3,2];return[4,e.componentOnReady()];case 1:r=t.sent();if(r!=null){return[2]}return[3,4];case 2:if(!(e.__registerHost!=null))return[3,4];i=new Promise((function(n){return raf(n)}));return[4,i];case 3:t.sent();return[2];case 4:return[4,Promise.all(Array.from(e.children).map(deepReady))];case 5:t.sent();t.label=6;case 6:return[2]}}))}))};var setPageHidden=function(n,e){if(e){n.setAttribute("aria-hidden","true");n.classList.add("ion-page-hidden")}else{n.hidden=false;n.removeAttribute("aria-hidden");n.classList.remove("ion-page-hidden")}};var setZIndex=function(n,e,r){if(n!==undefined){n.style.zIndex=r==="back"?"99":"101"}if(e!==undefined){e.style.zIndex="100"}};var getIonPageElement=function(n){if(n.classList.contains("ion-page")){return n}var e=n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");if(e){return e}return n};export{LIFECYCLE_WILL_ENTER as L,LIFECYCLE_DID_ENTER as a,LIFECYCLE_WILL_LEAVE as b,LIFECYCLE_DID_LEAVE as c,LIFECYCLE_WILL_UNLOAD as d,deepReady as e,getIonPageElement as g,lifecycle as l,setPageHidden as s,transition as t,waitForMount as w};
@@ -1,4 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import{c as createAnimation}from"./animation-eab5a4ca.js";import{g as getIonPageElement}from"./index-a313df53.js";import"./index-a5d50daf.js";import"./ionic-global-ca86cf32.js";import"./index-527b9e34.js";import"./index-738d7504.js";import"./helpers-e48b0397.js";var mdTransitionAnimation=function(a,i){var n,e,t;var r="40px";var o="0px";var m=i.direction==="back";var s=i.enteringEl;var c=i.leavingEl;var l=getIonPageElement(s);var v=l.querySelector("ion-toolbar");var p=createAnimation();p.addElement(l).fill("both").beforeRemoveClass("ion-page-invisible");if(m){p.duration(((n=i.duration)!==null&&n!==void 0?n:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)")}else{p.duration(((e=i.duration)!==null&&e!==void 0?e:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(".concat(r,")"),"translateY(".concat(o,")")).fromTo("opacity",.01,1)}if(v){var b=createAnimation();b.addElement(v);p.addAnimation(b)}if(c&&m){p.duration(((t=i.duration)!==null&&t!==void 0?t:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");var d=createAnimation();d.addElement(getIonPageElement(c)).onFinish((function(a){if(a===1&&d.elements.length>0){d.elements[0].style.setProperty("display","none")}})).fromTo("transform","translateY(".concat(o,")"),"translateY(".concat(r,")")).fromTo("opacity",1,0);p.addAnimation(d)}return p};export{mdTransitionAnimation};