voyager-ionic-core 7.4.3 → 7.4.4

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 (344) hide show
  1. package/components/animation.js +60 -1
  2. package/components/checkbox.js +3 -0
  3. package/components/ion-menu.js +51 -19
  4. package/components/ion-select.js +31 -17
  5. package/components/ion-toggle.js +3 -0
  6. package/components/radio-group.js +1 -1
  7. package/components/radio.js +4 -1
  8. package/components/swipe-back.js +4 -0
  9. package/dist/cjs/{animation-2bb33618.js → animation-c8bdd3c7.js} +60 -1
  10. package/dist/cjs/{app-globals-84b6a756.js → app-globals-fe1ad535.js} +1 -1
  11. package/dist/cjs/{button-active-c358e83c.js → button-active-0932cee9.js} +1 -1
  12. package/dist/cjs/{index-14a4821e.js → index-305a23dc.js} +95 -51
  13. package/dist/cjs/{index-acf6bdf0.js → index-d3568232.js} +3 -3
  14. package/dist/cjs/{index-97a3eade.js → index-f94cbab1.js} +2 -2
  15. package/dist/cjs/index.cjs.js +8 -8
  16. package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
  17. package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
  18. package/dist/cjs/ion-alert.cjs.entry.js +5 -5
  19. package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
  20. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  21. package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
  22. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  23. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
  24. package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
  25. package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
  26. package/dist/cjs/ion-checkbox.cjs.entry.js +5 -2
  27. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  28. package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
  29. package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
  30. package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
  31. package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
  32. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  33. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
  34. package/dist/cjs/ion-input.cjs.entry.js +2 -2
  35. package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
  36. package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
  37. package/dist/cjs/ion-loading.cjs.entry.js +4 -4
  38. package/dist/cjs/ion-menu_3.cjs.entry.js +56 -24
  39. package/dist/cjs/ion-modal.cjs.entry.js +5 -5
  40. package/dist/cjs/ion-nav_2.cjs.entry.js +4 -4
  41. package/dist/cjs/ion-picker-column-internal.cjs.entry.js +2 -2
  42. package/dist/cjs/ion-picker-internal.cjs.entry.js +1 -1
  43. package/dist/cjs/ion-popover.cjs.entry.js +5 -5
  44. package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-radio_2.cjs.entry.js +7 -4
  46. package/dist/cjs/ion-range.cjs.entry.js +2 -2
  47. package/dist/cjs/ion-refresher_2.cjs.entry.js +3 -3
  48. package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
  49. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
  50. package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
  51. package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
  52. package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
  53. package/dist/cjs/ion-select_3.cjs.entry.js +34 -20
  54. package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
  55. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  56. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
  57. package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
  58. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  59. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  60. package/dist/cjs/ion-toast.cjs.entry.js +4 -4
  61. package/dist/cjs/ion-toggle.cjs.entry.js +5 -2
  62. package/dist/cjs/{ionic-global-a71608df.js → ionic-global-fb752503.js} +1 -1
  63. package/dist/cjs/ionic.cjs.js +4 -4
  64. package/dist/cjs/{ios.transition-e31445c2.js → ios.transition-7d688757.js} +3 -3
  65. package/dist/cjs/loader.cjs.js +3 -3
  66. package/dist/cjs/{md.transition-fb13ac79.js → md.transition-d77d3c2e.js} +3 -3
  67. package/dist/cjs/{overlays-efc9d511.js → overlays-7e1a08fa.js} +1 -1
  68. package/dist/cjs/{status-tap-8c22e017.js → status-tap-778e8054.js} +1 -1
  69. package/dist/cjs/{swipe-back-d97c74d1.js → swipe-back-7e843e77.js} +4 -0
  70. package/dist/collection/collection-manifest.json +1 -1
  71. package/dist/collection/components/checkbox/checkbox.js +3 -0
  72. package/dist/collection/components/menu/menu.js +51 -19
  73. package/dist/collection/components/menu/test/disable/menu.e2e.js +55 -0
  74. package/dist/collection/components/radio/radio.js +4 -1
  75. package/dist/collection/components/radio-group/radio-group.js +1 -1
  76. package/dist/collection/components/select/select.js +31 -17
  77. package/dist/collection/components/select/test/disabled/select.e2e.js +30 -0
  78. package/dist/collection/components/toggle/toggle.js +3 -0
  79. package/dist/collection/utils/animation/animation.js +60 -1
  80. package/dist/collection/utils/gesture/swipe-back.js +4 -0
  81. package/dist/docs.json +2 -2
  82. package/dist/esm/{animation-a1d9e088.js → animation-92066c62.js} +60 -1
  83. package/dist/esm/{app-globals-df292a32.js → app-globals-ec816a70.js} +1 -1
  84. package/dist/esm/{button-active-7180a130.js → button-active-5136c12d.js} +1 -1
  85. package/dist/esm/{index-32c6828b.js → index-641aeeed.js} +3 -3
  86. package/dist/esm/{index-cb894020.js → index-b49b173c.js} +95 -51
  87. package/dist/esm/{index-3d6aefa2.js → index-d78b533e.js} +2 -2
  88. package/dist/esm/index.js +8 -8
  89. package/dist/esm/ion-accordion_2.entry.js +2 -2
  90. package/dist/esm/ion-action-sheet.entry.js +5 -5
  91. package/dist/esm/ion-alert.entry.js +5 -5
  92. package/dist/esm/ion-app_8.entry.js +5 -5
  93. package/dist/esm/ion-avatar_3.entry.js +2 -2
  94. package/dist/esm/ion-back-button.entry.js +2 -2
  95. package/dist/esm/ion-backdrop.entry.js +2 -2
  96. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  97. package/dist/esm/ion-button_2.entry.js +2 -2
  98. package/dist/esm/ion-card_5.entry.js +2 -2
  99. package/dist/esm/ion-checkbox.entry.js +5 -2
  100. package/dist/esm/ion-chip.entry.js +2 -2
  101. package/dist/esm/ion-col_3.entry.js +2 -2
  102. package/dist/esm/ion-datetime-button.entry.js +2 -2
  103. package/dist/esm/ion-datetime_3.entry.js +4 -4
  104. package/dist/esm/ion-fab_3.entry.js +2 -2
  105. package/dist/esm/ion-img.entry.js +2 -2
  106. package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
  107. package/dist/esm/ion-input.entry.js +2 -2
  108. package/dist/esm/ion-item-option_3.entry.js +2 -2
  109. package/dist/esm/ion-item_8.entry.js +2 -2
  110. package/dist/esm/ion-loading.entry.js +4 -4
  111. package/dist/esm/ion-menu_3.entry.js +56 -24
  112. package/dist/esm/ion-modal.entry.js +5 -5
  113. package/dist/esm/ion-nav_2.entry.js +4 -4
  114. package/dist/esm/ion-picker-column-internal.entry.js +2 -2
  115. package/dist/esm/ion-picker-internal.entry.js +1 -1
  116. package/dist/esm/ion-popover.entry.js +5 -5
  117. package/dist/esm/ion-progress-bar.entry.js +2 -2
  118. package/dist/esm/ion-radio_2.entry.js +7 -4
  119. package/dist/esm/ion-range.entry.js +2 -2
  120. package/dist/esm/ion-refresher_2.entry.js +3 -3
  121. package/dist/esm/ion-reorder_2.entry.js +2 -2
  122. package/dist/esm/ion-ripple-effect.entry.js +2 -2
  123. package/dist/esm/ion-route_4.entry.js +2 -2
  124. package/dist/esm/ion-searchbar.entry.js +2 -2
  125. package/dist/esm/ion-segment_2.entry.js +2 -2
  126. package/dist/esm/ion-select_3.entry.js +34 -20
  127. package/dist/esm/ion-spinner.entry.js +2 -2
  128. package/dist/esm/ion-split-pane.entry.js +2 -2
  129. package/dist/esm/ion-tab-bar_2.entry.js +2 -2
  130. package/dist/esm/ion-tab_2.entry.js +1 -1
  131. package/dist/esm/ion-text.entry.js +2 -2
  132. package/dist/esm/ion-textarea.entry.js +2 -2
  133. package/dist/esm/ion-toast.entry.js +4 -4
  134. package/dist/esm/ion-toggle.entry.js +5 -2
  135. package/dist/esm/{ionic-global-63a8d8c9.js → ionic-global-246ca78f.js} +1 -1
  136. package/dist/esm/ionic.js +5 -5
  137. package/dist/esm/{ios.transition-d8223b18.js → ios.transition-04c9a97a.js} +3 -3
  138. package/dist/esm/loader.js +4 -4
  139. package/dist/esm/{md.transition-caed184e.js → md.transition-67a8aabd.js} +3 -3
  140. package/dist/esm/{overlays-84621c0a.js → overlays-2fa52617.js} +1 -1
  141. package/dist/esm/{status-tap-73e982b6.js → status-tap-9aeeaca5.js} +1 -1
  142. package/dist/esm/{swipe-back-6e8158bc.js → swipe-back-cd4295f3.js} +4 -0
  143. package/dist/esm-es5/animation-92066c62.js +4 -0
  144. package/dist/esm-es5/app-globals-ec816a70.js +4 -0
  145. package/dist/esm-es5/{button-active-7180a130.js → button-active-5136c12d.js} +1 -1
  146. package/dist/esm-es5/{index-32c6828b.js → index-641aeeed.js} +1 -1
  147. package/dist/esm-es5/index-b49b173c.js +5 -0
  148. package/dist/esm-es5/{index-3d6aefa2.js → index-d78b533e.js} +1 -1
  149. package/dist/esm-es5/index.js +1 -1
  150. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  151. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  152. package/dist/esm-es5/ion-alert.entry.js +1 -1
  153. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  154. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  155. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  156. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  157. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  158. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  159. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  160. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  161. package/dist/esm-es5/ion-chip.entry.js +1 -1
  162. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  163. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  164. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  165. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  166. package/dist/esm-es5/ion-img.entry.js +1 -1
  167. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  168. package/dist/esm-es5/ion-input.entry.js +1 -1
  169. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  170. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  171. package/dist/esm-es5/ion-loading.entry.js +1 -1
  172. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  173. package/dist/esm-es5/ion-modal.entry.js +1 -1
  174. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  175. package/dist/esm-es5/ion-picker-column-internal.entry.js +1 -1
  176. package/dist/esm-es5/ion-picker-internal.entry.js +1 -1
  177. package/dist/esm-es5/ion-popover.entry.js +1 -1
  178. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  179. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  180. package/dist/esm-es5/ion-range.entry.js +1 -1
  181. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  182. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  183. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  184. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  185. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  186. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  187. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  188. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  189. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  190. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  191. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  192. package/dist/esm-es5/ion-text.entry.js +1 -1
  193. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  194. package/dist/esm-es5/ion-toast.entry.js +1 -1
  195. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  196. package/dist/esm-es5/{ionic-global-63a8d8c9.js → ionic-global-246ca78f.js} +1 -1
  197. package/dist/esm-es5/ionic.js +1 -1
  198. package/dist/esm-es5/{ios.transition-d8223b18.js → ios.transition-04c9a97a.js} +1 -1
  199. package/dist/esm-es5/loader.js +1 -1
  200. package/dist/esm-es5/{md.transition-caed184e.js → md.transition-67a8aabd.js} +1 -1
  201. package/dist/esm-es5/{overlays-84621c0a.js → overlays-2fa52617.js} +1 -1
  202. package/dist/esm-es5/{status-tap-73e982b6.js → status-tap-9aeeaca5.js} +1 -1
  203. package/dist/ionic/index.esm.js +1 -1
  204. package/dist/ionic/ionic.esm.js +1 -1
  205. package/dist/ionic/ionic.js +1 -1
  206. package/dist/ionic/p-015187e5.system.js +4 -0
  207. package/dist/ionic/{p-30b04d8d.js → p-02a4e81a.js} +1 -1
  208. package/dist/ionic/{p-89e3d112.system.entry.js → p-03c381ec.system.entry.js} +1 -1
  209. package/dist/ionic/{p-9e727d1d.entry.js → p-048f1ebe.entry.js} +1 -1
  210. package/dist/ionic/{p-ec29338e.entry.js → p-04e7c8fd.entry.js} +1 -1
  211. package/dist/ionic/{p-043e8328.system.js → p-05ae600a.system.js} +1 -1
  212. package/dist/ionic/p-06ac429a.js +5 -0
  213. package/dist/ionic/p-0c37546b.system.entry.js +4 -0
  214. package/dist/ionic/{p-7887ac7a.entry.js → p-108f9d49.entry.js} +1 -1
  215. package/dist/ionic/{p-e40b2cb4.system.entry.js → p-117cd69f.system.entry.js} +1 -1
  216. package/dist/ionic/{p-e263255c.system.entry.js → p-1289b3b5.system.entry.js} +1 -1
  217. package/dist/ionic/p-13d6e57a.js +4 -0
  218. package/dist/ionic/{p-da024961.entry.js → p-164b0e76.entry.js} +1 -1
  219. package/dist/ionic/{p-8957b1de.system.entry.js → p-170e9de0.system.entry.js} +1 -1
  220. package/dist/ionic/{p-8a289322.js → p-181b7c2a.js} +1 -1
  221. package/dist/ionic/{p-23e76249.entry.js → p-19384b9e.entry.js} +1 -1
  222. package/dist/ionic/p-1c82e9ff.js +4 -0
  223. package/dist/ionic/{p-a4e95028.system.entry.js → p-1d0aa82f.system.entry.js} +1 -1
  224. package/dist/ionic/{p-9201a4d3.entry.js → p-1ecba429.entry.js} +1 -1
  225. package/dist/ionic/{p-3db27dec.entry.js → p-1f81b5be.entry.js} +1 -1
  226. package/dist/ionic/{p-6db9035a.system.entry.js → p-238f0ac5.system.entry.js} +1 -1
  227. package/dist/ionic/{p-37fc0d22.system.entry.js → p-2784263e.system.entry.js} +1 -1
  228. package/dist/ionic/{p-8f36cde3.system.entry.js → p-29073efe.system.entry.js} +1 -1
  229. package/dist/ionic/p-29e3a9bb.entry.js +4 -0
  230. package/dist/ionic/{p-63f39d2f.entry.js → p-2a7c0093.entry.js} +1 -1
  231. package/dist/ionic/{p-007168b8.system.entry.js → p-32717950.system.entry.js} +1 -1
  232. package/dist/ionic/{p-a0e2f6d8.entry.js → p-32d364f0.entry.js} +1 -1
  233. package/dist/ionic/{p-c09e1da9.system.entry.js → p-33a8349a.system.entry.js} +1 -1
  234. package/dist/ionic/{p-a51f5932.entry.js → p-35818410.entry.js} +1 -1
  235. package/dist/ionic/{p-96ad49f1.entry.js → p-37448ac1.entry.js} +1 -1
  236. package/dist/ionic/{p-3e6b0330.system.entry.js → p-38ccfd71.system.entry.js} +1 -1
  237. package/dist/ionic/{p-6f3099b6.system.entry.js → p-3a58e3a4.system.entry.js} +1 -1
  238. package/dist/ionic/{p-c2d6b2fb.entry.js → p-3c2c6fce.entry.js} +1 -1
  239. package/dist/ionic/{p-9a6f6789.system.entry.js → p-3f3da911.system.entry.js} +1 -1
  240. package/dist/ionic/p-446230d7.js +4 -0
  241. package/dist/ionic/{p-d511de89.system.entry.js → p-45f5c8ba.system.entry.js} +1 -1
  242. package/dist/ionic/{p-2992f2a8.entry.js → p-47db15c6.entry.js} +1 -1
  243. package/dist/ionic/{p-21085f64.system.entry.js → p-4811e4af.system.entry.js} +1 -1
  244. package/dist/ionic/{p-dd0c00ed.entry.js → p-4b8db805.entry.js} +1 -1
  245. package/dist/ionic/{p-ec451ef7.system.entry.js → p-4bb26b01.system.entry.js} +1 -1
  246. package/dist/ionic/{p-28678af4.system.entry.js → p-4d6ac0fe.system.entry.js} +1 -1
  247. package/dist/ionic/p-4dd96c8d.entry.js +4 -0
  248. package/dist/ionic/{p-0793ebfd.entry.js → p-4e6e43c1.entry.js} +1 -1
  249. package/dist/ionic/{p-a760fd9a.system.js → p-51269f3b.system.js} +1 -1
  250. package/dist/ionic/{p-abfd1f2e.system.entry.js → p-54f6cd27.system.entry.js} +1 -1
  251. package/dist/ionic/{p-b27772bf.entry.js → p-55d3a9b2.entry.js} +1 -1
  252. package/dist/ionic/{p-f4267847.system.entry.js → p-576e6d0f.system.entry.js} +1 -1
  253. package/dist/ionic/{p-6ce891b2.entry.js → p-5b32b053.entry.js} +1 -1
  254. package/dist/ionic/{p-b79eb3cd.entry.js → p-5b976d70.entry.js} +1 -1
  255. package/dist/ionic/p-5bc5008c.entry.js +4 -0
  256. package/dist/ionic/{p-73eba881.system.js → p-5c3e72a8.system.js} +1 -1
  257. package/dist/ionic/{p-d580cbb7.system.entry.js → p-5c651aab.system.entry.js} +1 -1
  258. package/dist/ionic/{p-c381a9a9.system.entry.js → p-5cd791b3.system.entry.js} +1 -1
  259. package/dist/ionic/p-5ece7025.system.js +4 -0
  260. package/dist/ionic/{p-018ad59f.entry.js → p-5efb899f.entry.js} +1 -1
  261. package/dist/ionic/{p-6c7d61b9.system.entry.js → p-6129af0a.system.entry.js} +1 -1
  262. package/dist/ionic/{p-26fbffd4.system.js → p-629aa3fd.system.js} +1 -1
  263. package/dist/ionic/{p-68a3da51.js → p-63505fbb.js} +1 -1
  264. package/dist/ionic/{p-67e21699.entry.js → p-64e20cd9.entry.js} +1 -1
  265. package/dist/ionic/p-65a5761f.js +4 -0
  266. package/dist/ionic/{p-fb18f74b.system.entry.js → p-6ac3e877.system.entry.js} +1 -1
  267. package/dist/ionic/{p-c8ec0d79.system.js → p-6ba7fad7.system.js} +1 -1
  268. package/dist/ionic/{p-92d72ad8.entry.js → p-6ea2e653.entry.js} +1 -1
  269. package/dist/ionic/{p-a9b13f18.system.entry.js → p-6f8a95a3.system.entry.js} +1 -1
  270. package/dist/ionic/{p-f6f4d4bb.system.entry.js → p-6fb80ef3.system.entry.js} +1 -1
  271. package/dist/ionic/{p-b4c0e9ee.entry.js → p-706a0391.entry.js} +1 -1
  272. package/dist/ionic/{p-7fd0f045.system.entry.js → p-72aea40e.system.entry.js} +1 -1
  273. package/dist/ionic/p-73ed9a91.js +4 -0
  274. package/dist/ionic/{p-7a590a28.js → p-76378400.js} +1 -1
  275. package/dist/ionic/{p-3dce88bf.entry.js → p-818b2e75.entry.js} +1 -1
  276. package/dist/ionic/p-8297652e.entry.js +4 -0
  277. package/dist/ionic/{p-b9e2aede.entry.js → p-839276d4.entry.js} +1 -1
  278. package/dist/ionic/{p-b4daca17.system.entry.js → p-8a2801f1.system.entry.js} +1 -1
  279. package/dist/ionic/{p-00cf2d6c.js → p-8e24ebbc.js} +1 -1
  280. package/dist/ionic/{p-037e2738.system.entry.js → p-8ee012cb.system.entry.js} +1 -1
  281. package/dist/ionic/{p-f1c2678b.system.entry.js → p-908720f3.system.entry.js} +1 -1
  282. package/dist/ionic/{p-7cad90ed.entry.js → p-914ac0fc.entry.js} +1 -1
  283. package/dist/ionic/{p-9f9efb31.system.js → p-939e0fa1.system.js} +1 -1
  284. package/dist/ionic/{p-e6d2cca2.system.entry.js → p-95b14c73.system.entry.js} +1 -1
  285. package/dist/ionic/{p-ca655a7c.entry.js → p-96ba8eac.entry.js} +1 -1
  286. package/dist/ionic/{p-5fd0a13e.system.entry.js → p-99dfa53f.system.entry.js} +1 -1
  287. package/dist/ionic/{p-a8403bed.system.entry.js → p-9b4a77fc.system.entry.js} +1 -1
  288. package/dist/ionic/{p-50d83224.entry.js → p-a04bfada.entry.js} +1 -1
  289. package/dist/ionic/p-a18ec02b.entry.js +4 -0
  290. package/dist/ionic/{p-95e44641.system.entry.js → p-b109a3d7.system.entry.js} +1 -1
  291. package/dist/ionic/{p-fbc7995a.system.entry.js → p-b3690814.system.entry.js} +1 -1
  292. package/dist/ionic/{p-534a1cbc.system.js → p-b3c68723.system.js} +1 -1
  293. package/dist/ionic/{p-4e76e29a.system.entry.js → p-b61a2fa0.system.entry.js} +1 -1
  294. package/dist/ionic/{p-f37d6823.system.entry.js → p-beb864e4.system.entry.js} +1 -1
  295. package/dist/ionic/{p-a732cfec.system.js → p-c3efbcf5.system.js} +1 -1
  296. package/dist/ionic/{p-58565369.system.entry.js → p-c48fc95d.system.entry.js} +1 -1
  297. package/dist/ionic/{p-5c24c115.system.js → p-c49672d8.system.js} +1 -1
  298. package/dist/ionic/{p-57743e20.entry.js → p-c4a5de01.entry.js} +1 -1
  299. package/dist/ionic/{p-1d2d1ab5.system.entry.js → p-c7428627.system.entry.js} +1 -1
  300. package/dist/ionic/{p-84549737.system.entry.js → p-cf0c93e3.system.entry.js} +1 -1
  301. package/dist/ionic/{p-7d6f2bbb.system.entry.js → p-d0ad0430.system.entry.js} +1 -1
  302. package/dist/ionic/{p-7b15d413.entry.js → p-d35217be.entry.js} +1 -1
  303. package/dist/ionic/{p-e88ed929.system.entry.js → p-d55c9f92.system.entry.js} +1 -1
  304. package/dist/ionic/{p-b2397f35.entry.js → p-d7b8d224.entry.js} +1 -1
  305. package/dist/ionic/{p-0e070fbe.entry.js → p-d89d0de0.entry.js} +1 -1
  306. package/dist/ionic/{p-fa06c407.entry.js → p-db1a1e00.entry.js} +1 -1
  307. package/dist/ionic/{p-4b23f472.entry.js → p-deb6ddad.entry.js} +1 -1
  308. package/dist/ionic/{p-9d0916cb.system.js → p-df5fe0be.system.js} +1 -1
  309. package/dist/ionic/{p-d90f0779.system.entry.js → p-e0f52215.system.entry.js} +1 -1
  310. package/dist/ionic/{p-1caf1ec6.entry.js → p-e1ac688a.entry.js} +1 -1
  311. package/dist/ionic/{p-d2a278b1.entry.js → p-e2fd0895.entry.js} +1 -1
  312. package/dist/ionic/{p-9e91c83f.system.entry.js → p-eab10949.system.entry.js} +1 -1
  313. package/dist/ionic/{p-ac32f6ce.entry.js → p-eac263dd.entry.js} +1 -1
  314. package/dist/ionic/{p-a1d7f4ef.entry.js → p-ec9052a4.entry.js} +1 -1
  315. package/dist/ionic/{p-a6c52452.entry.js → p-f588e951.entry.js} +1 -1
  316. package/dist/ionic/{p-e3272ed8.entry.js → p-f623aa6d.entry.js} +1 -1
  317. package/dist/ionic/{p-ab7edc16.system.entry.js → p-f960fd84.system.entry.js} +1 -1
  318. package/dist/ionic/{p-57c5eca2.system.js → p-fbcb157b.system.js} +1 -1
  319. package/dist/ionic/{p-4c20879c.entry.js → p-fccfe602.entry.js} +1 -1
  320. package/dist/ionic/{p-3bf7c0dc.entry.js → p-fcf47f80.entry.js} +1 -1
  321. package/dist/ionic/{p-b3bcef34.system.entry.js → p-ff555f6f.system.entry.js} +1 -1
  322. package/dist/types/components/menu/menu.d.ts +8 -1
  323. package/hydrate/index.js +197 -72
  324. package/package.json +3 -2
  325. package/dist/esm-es5/animation-a1d9e088.js +0 -4
  326. package/dist/esm-es5/app-globals-df292a32.js +0 -4
  327. package/dist/esm-es5/index-cb894020.js +0 -5
  328. package/dist/ionic/p-15278928.entry.js +0 -4
  329. package/dist/ionic/p-1c59608c.system.entry.js +0 -4
  330. package/dist/ionic/p-469d6a98.entry.js +0 -4
  331. package/dist/ionic/p-4af11953.entry.js +0 -4
  332. package/dist/ionic/p-6641d7fa.js +0 -4
  333. package/dist/ionic/p-68b405cc.entry.js +0 -4
  334. package/dist/ionic/p-6b2641f6.system.js +0 -4
  335. package/dist/ionic/p-7c901810.system.js +0 -4
  336. package/dist/ionic/p-8c17d825.js +0 -4
  337. package/dist/ionic/p-903c36fe.js +0 -5
  338. package/dist/ionic/p-90ebbca0.entry.js +0 -4
  339. package/dist/ionic/p-94a4ce40.js +0 -4
  340. package/dist/ionic/p-9649c54e.js +0 -4
  341. package/dist/ionic/p-b370d1b4.js +0 -4
  342. /package/dist/esm-es5/{swipe-back-6e8158bc.js → swipe-back-cd4295f3.js} +0 -0
  343. /package/dist/ionic/{p-0e9a055c.js → p-32083c2d.js} +0 -0
  344. /package/dist/ionic/{p-eacb02b2.system.js → p-b912e055.system.js} +0 -0
@@ -0,0 +1,30 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import { expect } from "@playwright/test";
5
+ import { configs, test } from "../../../../utils/test/playwright/index";
6
+ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
7
+ test.describe(title('select: disabled options'), () => {
8
+ test('should not focus a disabled option when no value is set', async ({ page, skip }) => {
9
+ // TODO (FW-2979)
10
+ skip.browser('webkit', 'Safari 16 only allows text fields and pop-up menus to be focused.');
11
+ test.info().annotations.push({
12
+ type: 'issue',
13
+ description: 'https://github.com/ionic-team/ionic-framework/issues/28284',
14
+ });
15
+ await page.setContent(`
16
+ <ion-select interface="popover">
17
+ <ion-select-option value="a" disabled="true">A</ion-select-option>
18
+ <ion-select-option value="b">B</ion-select-option>
19
+ </ion-select>
20
+ `, config);
21
+ const select = page.locator('ion-select');
22
+ const popover = page.locator('ion-popover');
23
+ const ionPopoverDidPresent = await page.spyOnEvent('ionPopoverDidPresent');
24
+ await select.click();
25
+ await ionPopoverDidPresent.next();
26
+ const popoverOption = popover.locator('.select-interface-option:nth-of-type(2) ion-radio');
27
+ await expect(popoverOption).toBeFocused();
28
+ });
29
+ });
30
+ });
@@ -44,6 +44,9 @@ export class Toggle {
44
44
  }
45
45
  };
46
46
  this.onClick = (ev) => {
47
+ if (this.disabled) {
48
+ return;
49
+ }
47
50
  ev.preventDefault();
48
51
  if (this.lastDrag + 300 < Date.now()) {
49
52
  this.toggleChecked();
@@ -36,6 +36,7 @@ export const createAnimation = (animationId) => {
36
36
  const id = animationId;
37
37
  const onFinishCallbacks = [];
38
38
  const onFinishOneTimeCallbacks = [];
39
+ const onStopOneTimeCallbacks = [];
39
40
  const elements = [];
40
41
  const childAnimations = [];
41
42
  const stylesheets = [];
@@ -93,6 +94,28 @@ export const createAnimation = (animationId) => {
93
94
  const isRunning = () => {
94
95
  return numAnimationsRunning !== 0 && !paused;
95
96
  };
97
+ /**
98
+ * @internal
99
+ * Remove a callback from a chosen callback array
100
+ * @param callbackToRemove: A reference to the callback that should be removed
101
+ * @param callbackObjects: An array of callbacks that callbackToRemove should be removed from.
102
+ */
103
+ const clearCallback = (callbackToRemove, callbackObjects) => {
104
+ const index = callbackObjects.findIndex((callbackObject) => callbackObject.c === callbackToRemove);
105
+ if (index > -1) {
106
+ callbackObjects.splice(index, 1);
107
+ }
108
+ };
109
+ /**
110
+ * @internal
111
+ * Add a callback to be fired when an animation is stopped/cancelled.
112
+ * @param callback: A reference to the callback that should be fired
113
+ * @param opts: Any options associated with this particular callback
114
+ */
115
+ const onStop = (callback, opts) => {
116
+ onStopOneTimeCallbacks.push({ c: callback, o: opts });
117
+ return ani;
118
+ };
96
119
  const onFinish = (callback, opts) => {
97
120
  const callbacks = (opts === null || opts === void 0 ? void 0 : opts.oneTimeCallback) ? onFinishOneTimeCallbacks : onFinishCallbacks;
98
121
  callbacks.push({ c: callback, o: opts });
@@ -761,7 +784,33 @@ export const createAnimation = (animationId) => {
761
784
  numAnimationsRunning = childAnimations.length + 1;
762
785
  shouldCalculateNumAnimations = false;
763
786
  }
764
- onFinish(() => resolve(), { oneTimeCallback: true });
787
+ /**
788
+ * When one of these callbacks fires we
789
+ * need to clear the other's callback otherwise
790
+ * you can potentially get these callbacks
791
+ * firing multiple times if the play method
792
+ * is subsequently called.
793
+ * Example:
794
+ * animation.play() (onStop and onFinish callbacks are registered)
795
+ * animation.stop() (onStop callback is fired, onFinish is not)
796
+ * animation.play() (onStop and onFinish callbacks are registered)
797
+ * Total onStop callbacks: 1
798
+ * Total onFinish callbacks: 2
799
+ */
800
+ const onStopCallback = () => {
801
+ clearCallback(onFinishCallback, onFinishOneTimeCallbacks);
802
+ resolve();
803
+ };
804
+ const onFinishCallback = () => {
805
+ clearCallback(onStopCallback, onStopOneTimeCallbacks);
806
+ resolve();
807
+ };
808
+ /**
809
+ * The play method resolves when an animation
810
+ * run either finishes or is cancelled.
811
+ */
812
+ onFinish(onFinishCallback, { oneTimeCallback: true });
813
+ onStop(onStopCallback, { oneTimeCallback: true });
765
814
  childAnimations.forEach((animation) => {
766
815
  animation.play();
767
816
  });
@@ -774,6 +823,14 @@ export const createAnimation = (animationId) => {
774
823
  paused = false;
775
824
  });
776
825
  };
826
+ /**
827
+ * Stops an animation and resets it state to the
828
+ * beginning. This does not fire any onFinish
829
+ * callbacks because the animation did not finish.
830
+ * However, since the animation was not destroyed
831
+ * (i.e. the animation could run again) we do not
832
+ * clear the onFinish callbacks.
833
+ */
777
834
  const stop = () => {
778
835
  childAnimations.forEach((animation) => {
779
836
  animation.stop();
@@ -783,6 +840,8 @@ export const createAnimation = (animationId) => {
783
840
  initialized = false;
784
841
  }
785
842
  resetFlags();
843
+ onStopOneTimeCallbacks.forEach((onStopCallback) => onStopCallback.c(0, ani));
844
+ onStopOneTimeCallbacks.length = 0;
786
845
  };
787
846
  const from = (property, value) => {
788
847
  const firstFrame = _keyframes[0];
@@ -61,6 +61,10 @@ export const createSwipeBackGesture = (el, canStartHandler, onStartHandler, onMo
61
61
  return createGesture({
62
62
  el,
63
63
  gestureName: 'goback-swipe',
64
+ /**
65
+ * Swipe to go back should have priority over other horizontal swipe
66
+ * gestures. These gestures have a priority of 100 which is why 101 was chosen here.
67
+ */
64
68
  gesturePriority: 101,
65
69
  threshold: 10,
66
70
  canStart,
package/dist/docs.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2023-10-08T01:11:24",
2
+ "timestamp": "2023-10-14T17:23:34",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.4.0",
5
+ "version": "4.4.1",
6
6
  "typescriptVersion": "5.2.2"
7
7
  },
8
8
  "components": [
@@ -159,6 +159,7 @@ const createAnimation = (animationId) => {
159
159
  const id = animationId;
160
160
  const onFinishCallbacks = [];
161
161
  const onFinishOneTimeCallbacks = [];
162
+ const onStopOneTimeCallbacks = [];
162
163
  const elements = [];
163
164
  const childAnimations = [];
164
165
  const stylesheets = [];
@@ -216,6 +217,28 @@ const createAnimation = (animationId) => {
216
217
  const isRunning = () => {
217
218
  return numAnimationsRunning !== 0 && !paused;
218
219
  };
220
+ /**
221
+ * @internal
222
+ * Remove a callback from a chosen callback array
223
+ * @param callbackToRemove: A reference to the callback that should be removed
224
+ * @param callbackObjects: An array of callbacks that callbackToRemove should be removed from.
225
+ */
226
+ const clearCallback = (callbackToRemove, callbackObjects) => {
227
+ const index = callbackObjects.findIndex((callbackObject) => callbackObject.c === callbackToRemove);
228
+ if (index > -1) {
229
+ callbackObjects.splice(index, 1);
230
+ }
231
+ };
232
+ /**
233
+ * @internal
234
+ * Add a callback to be fired when an animation is stopped/cancelled.
235
+ * @param callback: A reference to the callback that should be fired
236
+ * @param opts: Any options associated with this particular callback
237
+ */
238
+ const onStop = (callback, opts) => {
239
+ onStopOneTimeCallbacks.push({ c: callback, o: opts });
240
+ return ani;
241
+ };
219
242
  const onFinish = (callback, opts) => {
220
243
  const callbacks = (opts === null || opts === void 0 ? void 0 : opts.oneTimeCallback) ? onFinishOneTimeCallbacks : onFinishCallbacks;
221
244
  callbacks.push({ c: callback, o: opts });
@@ -884,7 +907,33 @@ const createAnimation = (animationId) => {
884
907
  numAnimationsRunning = childAnimations.length + 1;
885
908
  shouldCalculateNumAnimations = false;
886
909
  }
887
- onFinish(() => resolve(), { oneTimeCallback: true });
910
+ /**
911
+ * When one of these callbacks fires we
912
+ * need to clear the other's callback otherwise
913
+ * you can potentially get these callbacks
914
+ * firing multiple times if the play method
915
+ * is subsequently called.
916
+ * Example:
917
+ * animation.play() (onStop and onFinish callbacks are registered)
918
+ * animation.stop() (onStop callback is fired, onFinish is not)
919
+ * animation.play() (onStop and onFinish callbacks are registered)
920
+ * Total onStop callbacks: 1
921
+ * Total onFinish callbacks: 2
922
+ */
923
+ const onStopCallback = () => {
924
+ clearCallback(onFinishCallback, onFinishOneTimeCallbacks);
925
+ resolve();
926
+ };
927
+ const onFinishCallback = () => {
928
+ clearCallback(onStopCallback, onStopOneTimeCallbacks);
929
+ resolve();
930
+ };
931
+ /**
932
+ * The play method resolves when an animation
933
+ * run either finishes or is cancelled.
934
+ */
935
+ onFinish(onFinishCallback, { oneTimeCallback: true });
936
+ onStop(onStopCallback, { oneTimeCallback: true });
888
937
  childAnimations.forEach((animation) => {
889
938
  animation.play();
890
939
  });
@@ -897,6 +946,14 @@ const createAnimation = (animationId) => {
897
946
  paused = false;
898
947
  });
899
948
  };
949
+ /**
950
+ * Stops an animation and resets it state to the
951
+ * beginning. This does not fire any onFinish
952
+ * callbacks because the animation did not finish.
953
+ * However, since the animation was not destroyed
954
+ * (i.e. the animation could run again) we do not
955
+ * clear the onFinish callbacks.
956
+ */
900
957
  const stop = () => {
901
958
  childAnimations.forEach((animation) => {
902
959
  animation.stop();
@@ -906,6 +963,8 @@ const createAnimation = (animationId) => {
906
963
  initialized = false;
907
964
  }
908
965
  resetFlags();
966
+ onStopOneTimeCallbacks.forEach((onStopCallback) => onStopCallback.c(0, ani));
967
+ onStopOneTimeCallbacks.length = 0;
909
968
  };
910
969
  const from = (property, value) => {
911
970
  const firstFrame = _keyframes[0];
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { i as initialize } from './ionic-global-63a8d8c9.js';
4
+ import { i as initialize } from './ionic-global-246ca78f.js';
5
5
 
6
6
  const globalScripts = initialize;
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { w as writeTask } from './index-cb894020.js';
4
+ import { w as writeTask } from './index-b49b173c.js';
5
5
  import { h as hapticSelectionEnd, a as hapticSelectionStart, b as hapticSelectionChanged } from './haptic-6447af60.js';
6
6
  import { createGesture } from './index-ff313b19.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { w as writeTask, B as Build } from './index-cb894020.js';
4
+ import { w as writeTask, B as Build } from './index-b49b173c.js';
5
5
  import { r as raf } from './helpers-3379ba19.js';
6
6
 
7
7
  const LIFECYCLE_WILL_ENTER = 'ionViewWillEnter';
@@ -10,8 +10,8 @@ const LIFECYCLE_WILL_LEAVE = 'ionViewWillLeave';
10
10
  const LIFECYCLE_DID_LEAVE = 'ionViewDidLeave';
11
11
  const LIFECYCLE_WILL_UNLOAD = 'ionViewWillUnload';
12
12
 
13
- const iosTransitionAnimation = () => import('./ios.transition-d8223b18.js');
14
- const mdTransitionAnimation = () => import('./md.transition-caed184e.js');
13
+ const iosTransitionAnimation = () => import('./ios.transition-04c9a97a.js');
14
+ const mdTransitionAnimation = () => import('./md.transition-67a8aabd.js');
15
15
  // TODO(FW-2832): types
16
16
  const transition = (opts) => {
17
17
  return new Promise((resolve, reject) => {
@@ -925,7 +925,7 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
925
925
  parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
926
926
  // remove the old original location comment entirely
927
927
  // later on the patch function will know what to do
928
- // and move this to the correct spot in need be
928
+ // and move this to the correct spot if need be
929
929
  childNode['s-ol'].remove();
930
930
  childNode['s-ol'] = undefined;
931
931
  checkSlotRelocate = true;
@@ -1351,30 +1351,37 @@ const patch = (oldVNode, newVNode) => {
1351
1351
  elm.data = text;
1352
1352
  }
1353
1353
  };
1354
+ /**
1355
+ * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1356
+ * are slot fallbacks nodes.
1357
+ *
1358
+ * A slot fallback node should be visible by default. Then, it should be
1359
+ * conditionally hidden if:
1360
+ *
1361
+ * - it has a sibling with a `slot` property set to its slot name or if
1362
+ * - it is a default fallback slot node, in which case we hide if it has any
1363
+ * content
1364
+ *
1365
+ * @param elm the element of interest
1366
+ */
1354
1367
  const updateFallbackSlotVisibility = (elm) => {
1355
- // tslint:disable-next-line: prefer-const
1356
1368
  const childNodes = elm.childNodes;
1357
- let childNode;
1358
- let i;
1359
- let ilen;
1360
- let j;
1361
- let slotNameAttr;
1362
- let nodeType;
1363
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1364
- childNode = childNodes[i];
1369
+ for (const childNode of childNodes) {
1365
1370
  if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1366
1371
  if (childNode['s-sr']) {
1367
1372
  // this is a slot fallback node
1368
1373
  // get the slot name for this slot reference node
1369
- slotNameAttr = childNode['s-sn'];
1374
+ const slotName = childNode['s-sn'];
1370
1375
  // by default always show a fallback slot node
1371
1376
  // then hide it if there are other slots in the light dom
1372
1377
  childNode.hidden = false;
1373
- for (j = 0; j < ilen; j++) {
1374
- nodeType = childNodes[j].nodeType;
1375
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1376
- // this sibling node is from a different component OR is a named fallback slot node
1377
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1378
+ // we need to check all of its sibling nodes in order to see if
1379
+ // `childNode` should be hidden
1380
+ for (const siblingNode of childNodes) {
1381
+ if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1382
+ // this sibling node is from a different component OR is a named
1383
+ // fallback slot node
1384
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ && slotName === siblingNode.getAttribute('slot')) {
1378
1385
  childNode.hidden = true;
1379
1386
  break;
1380
1387
  }
@@ -1383,8 +1390,8 @@ const updateFallbackSlotVisibility = (elm) => {
1383
1390
  // this is a default fallback slot node
1384
1391
  // any element or text node (with content)
1385
1392
  // should hide the default fallback slot node
1386
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1387
- (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1393
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1394
+ (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1388
1395
  childNode.hidden = true;
1389
1396
  break;
1390
1397
  }
@@ -1396,42 +1403,55 @@ const updateFallbackSlotVisibility = (elm) => {
1396
1403
  }
1397
1404
  }
1398
1405
  };
1406
+ /**
1407
+ * Component-global information about nodes which are either currently being
1408
+ * relocated or will be shortly.
1409
+ */
1399
1410
  const relocateNodes = [];
1400
- const relocateSlotContent = (elm) => {
1411
+ /**
1412
+ * Mark the contents of a slot for relocation via adding references to them to
1413
+ * the {@link relocateNodes} data structure. The actual work of relocating them
1414
+ * will then be handled in {@link renderVdom}.
1415
+ *
1416
+ * @param elm a render node whose child nodes need to be relocated
1417
+ */
1418
+ const markSlotContentForRelocation = (elm) => {
1401
1419
  // tslint:disable-next-line: prefer-const
1402
- let childNode;
1403
1420
  let node;
1404
1421
  let hostContentNodes;
1405
- let slotNameAttr;
1406
- let relocateNodeData;
1407
1422
  let j;
1408
- let i = 0;
1409
- const childNodes = elm.childNodes;
1410
- const ilen = childNodes.length;
1411
- for (; i < ilen; i++) {
1412
- childNode = childNodes[i];
1423
+ for (const childNode of elm.childNodes) {
1424
+ // we need to find child nodes which are slot references so we can then try
1425
+ // to match them up with nodes that need to be relocated
1413
1426
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1414
- // first got the content reference comment node
1415
- // then we got it's parent, which is where all the host content is in now
1427
+ // first get the content reference comment node ('s-cr'), then we get
1428
+ // its parent, which is where all the host content is now
1416
1429
  hostContentNodes = node.parentNode.childNodes;
1417
- slotNameAttr = childNode['s-sn'];
1430
+ const slotName = childNode['s-sn'];
1431
+ // iterate through all the nodes under the location where the host was
1432
+ // originally rendered
1418
1433
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1419
1434
  node = hostContentNodes[j];
1435
+ // check that the node is not a content reference node or a node
1436
+ // reference and then check that the host name does not match that of
1437
+ // childNode
1420
1438
  if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1421
- // let's do some relocating to its new home
1422
- // but never relocate a content reference node
1423
- // that is suppose to always represent the original content location
1424
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
1439
+ // if `node` is located in the slot that `childNode` refers to (via the
1440
+ // `'s-sn'` property) then we need to relocate it from it's current spot
1441
+ // (under the host element parent) to the right slot location
1442
+ if (isNodeLocatedInSlot(node, slotName)) {
1425
1443
  // it's possible we've already decided to relocate this node
1426
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1444
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1427
1445
  // made some changes to slots
1428
1446
  // let's make sure we also double check
1429
1447
  // fallbacks are correctly hidden or shown
1430
1448
  checkSlotFallbackVisibility = true;
1431
- node['s-sn'] = node['s-sn'] || slotNameAttr;
1449
+ // ensure that the slot-name attr is correct
1450
+ node['s-sn'] = node['s-sn'] || slotName;
1432
1451
  if (relocateNodeData) {
1433
- // previously we never found a slot home for this node
1434
- // but turns out we did, so let's remember it now
1452
+ // we marked this node for relocation previously but didn't find
1453
+ // out the slot reference node to which it needs to be relocated
1454
+ // so write it down now!
1435
1455
  relocateNodeData.$slotRefNode$ = childNode;
1436
1456
  }
1437
1457
  else {
@@ -1453,8 +1473,10 @@ const relocateSlotContent = (elm) => {
1453
1473
  }
1454
1474
  }
1455
1475
  else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1456
- // so far this element does not have a slot home, not setting slotRefNode on purpose
1457
- // if we never find a home for this element then we'll need to hide it
1476
+ // the node is not found within the slot (`childNode`) that we're
1477
+ // currently looking at, so we stick it into `relocateNodes` to
1478
+ // handle later. If we never find a home for this element then
1479
+ // we'll need to hide it
1458
1480
  relocateNodes.push({
1459
1481
  $nodeToRelocate$: node,
1460
1482
  });
@@ -1462,30 +1484,41 @@ const relocateSlotContent = (elm) => {
1462
1484
  }
1463
1485
  }
1464
1486
  }
1487
+ // if we're dealing with any type of element (capable of itself being a
1488
+ // slot reference or containing one) then we recur
1465
1489
  if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1466
- relocateSlotContent(childNode);
1490
+ markSlotContentForRelocation(childNode);
1467
1491
  }
1468
1492
  }
1469
1493
  };
1470
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1494
+ /**
1495
+ * Check whether a node is located in a given named slot.
1496
+ *
1497
+ * @param nodeToRelocate the node of interest
1498
+ * @param slotName the slot name to check
1499
+ * @returns whether the node is located in the slot or not
1500
+ */
1501
+ const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1471
1502
  if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1472
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1503
+ if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
1504
+ // if the node doesn't have a slot attribute, and the slot we're checking
1505
+ // is not a named slot, then we assume the node should be within the slot
1473
1506
  return true;
1474
1507
  }
1475
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1508
+ if (nodeToRelocate.getAttribute('slot') === slotName) {
1476
1509
  return true;
1477
1510
  }
1478
1511
  return false;
1479
1512
  }
1480
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
1513
+ if (nodeToRelocate['s-sn'] === slotName) {
1481
1514
  return true;
1482
1515
  }
1483
- return slotNameAttr === '';
1516
+ return slotName === '';
1484
1517
  };
1485
1518
  /**
1486
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
1487
- * calling them with `null`. This signals that the DOM element corresponding to
1488
- * the VDom node has been removed from the DOM.
1519
+ * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1520
+ * them with `null`. This signals that the DOM element corresponding to the VDom
1521
+ * node has been removed from the DOM.
1489
1522
  *
1490
1523
  * @param vNode a virtual DOM node
1491
1524
  */
@@ -1564,7 +1597,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1564
1597
  // the disconnectCallback from working
1565
1598
  plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1566
1599
  if (checkSlotRelocate) {
1567
- relocateSlotContent(rootVnode.$elm$);
1600
+ markSlotContentForRelocation(rootVnode.$elm$);
1568
1601
  let relocateData;
1569
1602
  let nodeToRelocate;
1570
1603
  let orgLocationNode;
@@ -2101,7 +2134,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
2101
2134
  }
2102
2135
  return Cstr;
2103
2136
  };
2104
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
2137
+ /**
2138
+ * Initialize a Stencil component given a reference to its host element, its
2139
+ * runtime bookkeeping data structure, runtime metadata about the component,
2140
+ * and (optionally) an HMR version ID.
2141
+ *
2142
+ * @param elm a host element
2143
+ * @param hostRef the element's runtime bookkeeping object
2144
+ * @param cmpMeta runtime metadata for the Stencil component
2145
+ * @param hmrVersionId an (optional) HMR version ID
2146
+ */
2147
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2148
+ let Cstr;
2105
2149
  // initializeComponent
2106
2150
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
2107
2151
  // Let the runtime know that the component has been initialized
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import { MENU_BACK_BUTTON_PRIORITY } from './hardware-back-button-39299f84.js';
5
5
  import { c as componentOnReady } from './helpers-3379ba19.js';
6
- import { b as getIonMode } from './ionic-global-63a8d8c9.js';
7
- import { c as createAnimation } from './animation-a1d9e088.js';
6
+ import { b as getIonMode } from './ionic-global-246ca78f.js';
7
+ import { c as createAnimation } from './animation-92066c62.js';
8
8
 
9
9
  /**
10
10
  * baseAnimation
package/dist/esm/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- export { c as createAnimation } from './animation-a1d9e088.js';
5
- export { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD, g as getIonPageElement } from './index-32c6828b.js';
6
- export { iosTransitionAnimation } from './ios.transition-d8223b18.js';
7
- export { mdTransitionAnimation } from './md.transition-caed184e.js';
4
+ export { c as createAnimation } from './animation-92066c62.js';
5
+ export { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD, g as getIonPageElement } from './index-641aeeed.js';
6
+ export { iosTransitionAnimation } from './ios.transition-04c9a97a.js';
7
+ export { mdTransitionAnimation } from './md.transition-67a8aabd.js';
8
8
  export { g as getTimeGivenProgression } from './cubic-bezier-66542bc5.js';
9
9
  export { createGesture } from './index-ff313b19.js';
10
- export { g as getPlatforms, i as initialize, a as isPlatform } from './ionic-global-63a8d8c9.js';
10
+ export { g as getPlatforms, i as initialize, a as isPlatform } from './ionic-global-246ca78f.js';
11
11
  export { c as componentOnReady } from './helpers-3379ba19.js';
12
12
  export { I as IonicSafeString, g as getMode, s as setupConfig } from './config-96c9ace3.js';
13
- export { m as menuController } from './index-3d6aefa2.js';
14
- export { b as actionSheetController, a as alertController, l as loadingController, m as modalController, p as pickerController, c as popoverController, t as toastController } from './overlays-84621c0a.js';
13
+ export { m as menuController } from './index-d78b533e.js';
14
+ export { b as actionSheetController, a as alertController, l as loadingController, m as modalController, p as pickerController, c as popoverController, t as toastController } from './overlays-2fa52617.js';
15
15
  import './index-7a14ecec.js';
16
- import './index-cb894020.js';
16
+ import './index-b49b173c.js';
17
17
  import './gesture-controller-0fa396c4.js';
18
18
  import './hardware-back-button-39299f84.js';
19
19
  import './framework-delegate-aa433dea.js';
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, h, H as Host, f as getElement, d as createEvent } from './index-cb894020.js';
4
+ import { r as registerInstance, h, H as Host, f as getElement, d as createEvent } from './index-b49b173c.js';
5
5
  import { r as raf, t as transitionEndAsync, a as addEventListener, b as removeEventListener, g as getElementRoot } from './helpers-3379ba19.js';
6
6
  import { l as chevronDown } from './index-ecfc2c9f.js';
7
- import { c as config, b as getIonMode } from './ionic-global-63a8d8c9.js';
7
+ import { c as config, b as getIonMode } from './ionic-global-246ca78f.js';
8
8
  import { p as printIonWarning } from './index-595d62c9.js';
9
9
 
10
10
  const accordionIosCss = ":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}";
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, d as createEvent, e as readTask, h, H as Host, f as getElement } from './index-cb894020.js';
5
- import { c as createButtonActiveGesture } from './button-active-7180a130.js';
4
+ import { r as registerInstance, d as createEvent, e as readTask, h, H as Host, f as getElement } from './index-b49b173c.js';
5
+ import { c as createButtonActiveGesture } from './button-active-5136c12d.js';
6
6
  import { r as raf } from './helpers-3379ba19.js';
7
7
  import { c as createLockController } from './lock-controller-e8c6c051.js';
8
- import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, f as present, g as dismiss, h as eventMethod, s as safeCall, j as prepareOverlay, k as setOverlayId } from './overlays-84621c0a.js';
8
+ import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, f as present, g as dismiss, h as eventMethod, s as safeCall, j as prepareOverlay, k as setOverlayId } from './overlays-2fa52617.js';
9
9
  import { g as getClassMap } from './theme-17531cdf.js';
10
- import { b as getIonMode } from './ionic-global-63a8d8c9.js';
11
- import { c as createAnimation } from './animation-a1d9e088.js';
10
+ import { b as getIonMode } from './ionic-global-246ca78f.js';
11
+ import { c as createAnimation } from './animation-92066c62.js';
12
12
  import './haptic-6447af60.js';
13
13
  import './capacitor-b4979570.js';
14
14
  import './index-7a14ecec.js';
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, d as createEvent, i as forceUpdate, h, H as Host, f as getElement } from './index-cb894020.js';
4
+ import { r as registerInstance, d as createEvent, i as forceUpdate, h, H as Host, f as getElement } from './index-b49b173c.js';
5
5
  import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config-96c9ace3.js';
6
- import { c as createButtonActiveGesture } from './button-active-7180a130.js';
6
+ import { c as createButtonActiveGesture } from './button-active-5136c12d.js';
7
7
  import { r as raf } from './helpers-3379ba19.js';
8
8
  import { c as createLockController } from './lock-controller-e8c6c051.js';
9
- import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall } from './overlays-84621c0a.js';
9
+ import { d as createDelegateController, e as createTriggerController, B as BACKDROP, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall } from './overlays-2fa52617.js';
10
10
  import { g as getClassMap } from './theme-17531cdf.js';
11
- import { c as config, b as getIonMode } from './ionic-global-63a8d8c9.js';
12
- import { c as createAnimation } from './animation-a1d9e088.js';
11
+ import { c as config, b as getIonMode } from './ionic-global-246ca78f.js';
12
+ import { c as createAnimation } from './animation-92066c62.js';
13
13
  import './haptic-6447af60.js';
14
14
  import './capacitor-b4979570.js';
15
15
  import './index-7a14ecec.js';