voyager-ionic-core 8.2.0 → 8.2.5

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 (779) hide show
  1. package/components/ion-refresher.js +28 -1
  2. package/components/item.js +3 -3
  3. package/dist/cjs/{app-globals-1c261a7f.js → app-globals-7dbf2ade.js} +1 -1
  4. package/dist/cjs/{button-active-8da8d63e.js → button-active-cf1c215d.js} +1 -1
  5. package/dist/cjs/{hardware-back-button-93f7a8f0.js → hardware-back-button-ddbc12ea.js} +2 -2
  6. package/dist/cjs/{index-fa3cf6ba.js → index-24fe3fe6.js} +4 -4
  7. package/dist/cjs/{index-ceeb4ff8.js → index-480c143c.js} +234 -185
  8. package/dist/cjs/{index-93b3a556.js → index-a3f97de0.js} +2 -2
  9. package/dist/cjs/index.cjs.js +8 -8
  10. package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
  11. package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
  12. package/dist/cjs/ion-alert.cjs.entry.js +5 -5
  13. package/dist/cjs/ion-app_8.cjs.entry.js +6 -6
  14. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  15. package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
  16. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  17. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
  18. package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
  19. package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
  20. package/dist/cjs/ion-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  22. package/dist/cjs/ion-col_3.cjs.entry.js +2 -2
  23. package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
  24. package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
  25. package/dist/cjs/ion-fab_3.cjs.entry.js +2 -2
  26. package/dist/cjs/ion-img.cjs.entry.js +2 -2
  27. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
  28. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +2 -2
  29. package/dist/cjs/ion-input.cjs.entry.js +2 -2
  30. package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
  31. package/dist/cjs/ion-item_8.cjs.entry.js +4 -4
  32. package/dist/cjs/ion-loading.cjs.entry.js +4 -4
  33. package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
  34. package/dist/cjs/ion-modal.cjs.entry.js +5 -5
  35. package/dist/cjs/ion-nav_2.cjs.entry.js +3 -3
  36. package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
  37. package/dist/cjs/ion-picker-column.cjs.entry.js +2 -2
  38. package/dist/cjs/ion-picker.cjs.entry.js +1 -1
  39. package/dist/cjs/ion-popover.cjs.entry.js +5 -5
  40. package/dist/cjs/ion-progress-bar.cjs.entry.js +2 -2
  41. package/dist/cjs/ion-radio_2.cjs.entry.js +2 -2
  42. package/dist/cjs/ion-range.cjs.entry.js +2 -2
  43. package/dist/cjs/ion-refresher_2.cjs.entry.js +30 -3
  44. package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-ripple-effect.cjs.entry.js +2 -2
  46. package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
  47. package/dist/cjs/ion-searchbar.cjs.entry.js +2 -2
  48. package/dist/cjs/ion-segment_2.cjs.entry.js +2 -2
  49. package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
  50. package/dist/cjs/ion-spinner.cjs.entry.js +2 -2
  51. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  52. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +2 -2
  53. package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
  54. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  55. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  56. package/dist/cjs/ion-toast.cjs.entry.js +4 -4
  57. package/dist/cjs/ion-toggle.cjs.entry.js +2 -2
  58. package/dist/cjs/{ionic-global-f401ca2e.js → ionic-global-c1db87a5.js} +1 -1
  59. package/dist/cjs/ionic.cjs.js +5 -5
  60. package/dist/cjs/{ios.transition-ae54d131.js → ios.transition-8419294d.js} +3 -3
  61. package/dist/cjs/loader.cjs.js +4 -4
  62. package/dist/cjs/{md.transition-dbc2d3f3.js → md.transition-39852d6b.js} +3 -3
  63. package/dist/cjs/{overlays-d4afb0bd.js → overlays-55d77381.js} +2 -2
  64. package/dist/cjs/{status-tap-0a82a165.js → status-tap-b68fa888.js} +1 -1
  65. package/dist/collection/collection-manifest.json +1 -1
  66. package/dist/collection/components/item/item.js +3 -3
  67. package/dist/collection/components/refresher/refresher.js +28 -1
  68. package/dist/docs.json +3 -3
  69. package/dist/esm/{app-globals-7c667c11.js → app-globals-7f30ce3c.js} +1 -1
  70. package/dist/esm/{button-active-7c57df95.js → button-active-78f50add.js} +1 -1
  71. package/dist/esm/{hardware-back-button-63852d15.js → hardware-back-button-2e99752e.js} +2 -2
  72. package/dist/esm/{index-1e2f8425.js → index-4094f808.js} +2 -2
  73. package/dist/esm/{index-8d8c14b0.js → index-7a952e7a.js} +234 -185
  74. package/dist/esm/{index-91ed2172.js → index-8808daa5.js} +4 -4
  75. package/dist/esm/index.js +8 -8
  76. package/dist/esm/ion-accordion_2.entry.js +2 -2
  77. package/dist/esm/ion-action-sheet.entry.js +5 -5
  78. package/dist/esm/ion-alert.entry.js +5 -5
  79. package/dist/esm/ion-app_8.entry.js +6 -6
  80. package/dist/esm/ion-avatar_3.entry.js +2 -2
  81. package/dist/esm/ion-back-button.entry.js +2 -2
  82. package/dist/esm/ion-backdrop.entry.js +2 -2
  83. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  84. package/dist/esm/ion-button_2.entry.js +2 -2
  85. package/dist/esm/ion-card_5.entry.js +2 -2
  86. package/dist/esm/ion-checkbox.entry.js +2 -2
  87. package/dist/esm/ion-chip.entry.js +2 -2
  88. package/dist/esm/ion-col_3.entry.js +2 -2
  89. package/dist/esm/ion-datetime-button.entry.js +2 -2
  90. package/dist/esm/ion-datetime_3.entry.js +4 -4
  91. package/dist/esm/ion-fab_3.entry.js +2 -2
  92. package/dist/esm/ion-img.entry.js +2 -2
  93. package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
  94. package/dist/esm/ion-input-password-toggle.entry.js +2 -2
  95. package/dist/esm/ion-input.entry.js +2 -2
  96. package/dist/esm/ion-item-option_3.entry.js +2 -2
  97. package/dist/esm/ion-item_8.entry.js +4 -4
  98. package/dist/esm/ion-loading.entry.js +4 -4
  99. package/dist/esm/ion-menu_3.entry.js +5 -5
  100. package/dist/esm/ion-modal.entry.js +5 -5
  101. package/dist/esm/ion-nav_2.entry.js +3 -3
  102. package/dist/esm/ion-picker-column-option.entry.js +2 -2
  103. package/dist/esm/ion-picker-column.entry.js +2 -2
  104. package/dist/esm/ion-picker.entry.js +1 -1
  105. package/dist/esm/ion-popover.entry.js +5 -5
  106. package/dist/esm/ion-progress-bar.entry.js +2 -2
  107. package/dist/esm/ion-radio_2.entry.js +2 -2
  108. package/dist/esm/ion-range.entry.js +2 -2
  109. package/dist/esm/ion-refresher_2.entry.js +30 -3
  110. package/dist/esm/ion-reorder_2.entry.js +2 -2
  111. package/dist/esm/ion-ripple-effect.entry.js +2 -2
  112. package/dist/esm/ion-route_4.entry.js +2 -2
  113. package/dist/esm/ion-searchbar.entry.js +2 -2
  114. package/dist/esm/ion-segment_2.entry.js +2 -2
  115. package/dist/esm/ion-select_3.entry.js +4 -4
  116. package/dist/esm/ion-spinner.entry.js +2 -2
  117. package/dist/esm/ion-split-pane.entry.js +2 -2
  118. package/dist/esm/ion-tab-bar_2.entry.js +2 -2
  119. package/dist/esm/ion-tab_2.entry.js +1 -1
  120. package/dist/esm/ion-text.entry.js +2 -2
  121. package/dist/esm/ion-textarea.entry.js +2 -2
  122. package/dist/esm/ion-toast.entry.js +4 -4
  123. package/dist/esm/ion-toggle.entry.js +2 -2
  124. package/dist/esm/{ionic-global-8180d812.js → ionic-global-81a1064f.js} +1 -1
  125. package/dist/esm/ionic.js +6 -6
  126. package/dist/esm/{ios.transition-140cedc8.js → ios.transition-0a5004b4.js} +3 -3
  127. package/dist/esm/loader.js +5 -5
  128. package/dist/esm/{md.transition-4961bea4.js → md.transition-b6135ada.js} +3 -3
  129. package/dist/esm/{overlays-e8e5bd06.js → overlays-e1bad9cd.js} +2 -2
  130. package/dist/esm/{status-tap-0502d0fd.js → status-tap-17122cea.js} +1 -1
  131. package/dist/esm-es5/app-globals-7f30ce3c.js +4 -0
  132. package/dist/esm-es5/{button-active-7c57df95.js → button-active-78f50add.js} +1 -1
  133. package/dist/esm-es5/{hardware-back-button-63852d15.js → hardware-back-button-2e99752e.js} +1 -1
  134. package/dist/esm-es5/{index-1e2f8425.js → index-4094f808.js} +1 -1
  135. package/dist/esm-es5/index-7a952e7a.js +5 -0
  136. package/dist/esm-es5/{index-91ed2172.js → index-8808daa5.js} +1 -1
  137. package/dist/esm-es5/index.js +1 -1
  138. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  139. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  140. package/dist/esm-es5/ion-alert.entry.js +1 -1
  141. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  142. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  143. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  144. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  145. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  146. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  147. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  148. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  149. package/dist/esm-es5/ion-chip.entry.js +1 -1
  150. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  151. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  152. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  153. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  154. package/dist/esm-es5/ion-img.entry.js +1 -1
  155. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  156. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  157. package/dist/esm-es5/ion-input.entry.js +1 -1
  158. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  159. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  160. package/dist/esm-es5/ion-loading.entry.js +1 -1
  161. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  162. package/dist/esm-es5/ion-modal.entry.js +1 -1
  163. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  164. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  165. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  166. package/dist/esm-es5/ion-picker.entry.js +1 -1
  167. package/dist/esm-es5/ion-popover.entry.js +1 -1
  168. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  169. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  170. package/dist/esm-es5/ion-range.entry.js +1 -1
  171. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  172. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  173. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  174. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  175. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  176. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  177. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  178. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  179. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  180. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  181. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  182. package/dist/esm-es5/ion-text.entry.js +1 -1
  183. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  184. package/dist/esm-es5/ion-toast.entry.js +1 -1
  185. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  186. package/dist/esm-es5/{ionic-global-8180d812.js → ionic-global-81a1064f.js} +1 -1
  187. package/dist/esm-es5/ionic.js +1 -1
  188. package/dist/esm-es5/{ios.transition-140cedc8.js → ios.transition-0a5004b4.js} +1 -1
  189. package/dist/esm-es5/loader.js +1 -1
  190. package/dist/esm-es5/{md.transition-4961bea4.js → md.transition-b6135ada.js} +1 -1
  191. package/dist/esm-es5/{overlays-e8e5bd06.js → overlays-e1bad9cd.js} +1 -1
  192. package/dist/esm-es5/{status-tap-0502d0fd.js → status-tap-17122cea.js} +1 -1
  193. package/dist/ionic/index.esm.js +1 -1
  194. package/dist/ionic/ionic.esm.js +1 -1
  195. package/dist/ionic/ionic.js +1 -1
  196. package/dist/ionic/{p-f9b3ffd6.system.entry.js → p-013621f0.system.entry.js} +1 -1
  197. package/dist/ionic/{p-94b46442.entry.js → p-057c2f6f.entry.js} +1 -1
  198. package/dist/ionic/p-071cb08a.entry.js +4 -0
  199. package/dist/ionic/{p-1e5cabf8.entry.js → p-090c318d.entry.js} +1 -1
  200. package/dist/ionic/{p-a0abe7ab.system.entry.js → p-09f64b99.system.entry.js} +1 -1
  201. package/dist/ionic/{p-00f85ca4.entry.js → p-0abd2546.entry.js} +1 -1
  202. package/dist/ionic/{p-111b0e11.system.entry.js → p-0db55ab4.system.entry.js} +1 -1
  203. package/dist/ionic/{p-5e1094ae.system.entry.js → p-11c4215a.system.entry.js} +1 -1
  204. package/dist/ionic/{p-a4116282.entry.js → p-130ce79e.entry.js} +1 -1
  205. package/dist/ionic/{p-fcbd65bc.system.js → p-14f0f49f.system.js} +1 -1
  206. package/dist/ionic/{p-b7299e38.system.entry.js → p-15c36478.system.entry.js} +1 -1
  207. package/dist/ionic/{p-c5c65bbe.js → p-1974d32f.js} +1 -1
  208. package/dist/ionic/{p-79f4cb29.entry.js → p-1b2c22ed.entry.js} +1 -1
  209. package/dist/ionic/{p-aeb61b82.entry.js → p-1c6cd5bc.entry.js} +1 -1
  210. package/dist/ionic/{p-5f610767.entry.js → p-2496a357.entry.js} +1 -1
  211. package/dist/ionic/{p-4816d827.entry.js → p-25467ef7.entry.js} +1 -1
  212. package/dist/ionic/{p-f5efe527.entry.js → p-271076f2.entry.js} +1 -1
  213. package/dist/ionic/{p-4691dc8d.js → p-274496f1.js} +1 -1
  214. package/dist/ionic/{p-a00a5621.entry.js → p-283c6631.entry.js} +1 -1
  215. package/dist/ionic/{p-370835b4.system.js → p-2a08e244.system.js} +1 -1
  216. package/dist/ionic/{p-ae3be67f.system.entry.js → p-33ce19cf.system.entry.js} +1 -1
  217. package/dist/ionic/{p-7a416af9.entry.js → p-344d6225.entry.js} +1 -1
  218. package/dist/ionic/{p-a5adb027.entry.js → p-3961b22e.entry.js} +1 -1
  219. package/dist/ionic/{p-78bf8302.system.entry.js → p-39af4fa4.system.entry.js} +1 -1
  220. package/dist/ionic/{p-00343522.system.entry.js → p-3b11ab95.system.entry.js} +1 -1
  221. package/dist/ionic/{p-0617a85d.entry.js → p-3b767add.entry.js} +1 -1
  222. package/dist/ionic/{p-27317f8f.system.js → p-3fcfe35c.system.js} +1 -1
  223. package/dist/ionic/p-41e85f07.js +4 -0
  224. package/dist/ionic/{p-1dd59f8d.system.entry.js → p-437d3e12.system.entry.js} +1 -1
  225. package/dist/ionic/{p-c6143912.entry.js → p-46cf378f.entry.js} +1 -1
  226. package/dist/ionic/{p-71f25447.system.entry.js → p-49c011e3.system.entry.js} +1 -1
  227. package/dist/ionic/{p-e08d9edc.system.entry.js → p-4a0db73d.system.entry.js} +1 -1
  228. package/dist/ionic/{p-750e902d.system.entry.js → p-4a3d2f75.system.entry.js} +1 -1
  229. package/dist/ionic/{p-c44efdb8.entry.js → p-4af59128.entry.js} +1 -1
  230. package/dist/ionic/{p-eef82267.entry.js → p-4c06d890.entry.js} +1 -1
  231. package/dist/ionic/{p-fa7234ee.entry.js → p-4c68bf47.entry.js} +1 -1
  232. package/dist/ionic/{p-eaab79f3.entry.js → p-4d96e6a7.entry.js} +1 -1
  233. package/dist/ionic/{p-764eb419.system.entry.js → p-4de0819c.system.entry.js} +1 -1
  234. package/dist/ionic/{p-11feccde.system.entry.js → p-4f54d1aa.system.entry.js} +1 -1
  235. package/dist/ionic/{p-4fa57f1e.system.entry.js → p-527815e1.system.entry.js} +1 -1
  236. package/dist/ionic/{p-935221f8.system.entry.js → p-5303af24.system.entry.js} +1 -1
  237. package/dist/ionic/{p-71e2f283.system.entry.js → p-54690f26.system.entry.js} +1 -1
  238. package/dist/ionic/{p-13a736a9.entry.js → p-57c9689a.entry.js} +1 -1
  239. package/dist/ionic/p-5a28559b.js +5 -0
  240. package/dist/ionic/{p-967da5f2.system.js → p-5c00ca73.system.js} +1 -1
  241. package/dist/ionic/{p-80aae5d7.entry.js → p-5c5e7f5c.entry.js} +1 -1
  242. package/dist/ionic/{p-c1d7a187.system.entry.js → p-5d0b285d.system.entry.js} +1 -1
  243. package/dist/ionic/{p-bdc1b4e3.js → p-5e687df9.js} +1 -1
  244. package/dist/ionic/{p-0973cae7.entry.js → p-60a6fadb.entry.js} +1 -1
  245. package/dist/ionic/{p-8c7490bc.system.entry.js → p-611bb4d1.system.entry.js} +1 -1
  246. package/dist/ionic/{p-a931cd3e.system.entry.js → p-6782ffa5.system.entry.js} +1 -1
  247. package/dist/ionic/{p-0f89c47c.js → p-678beb9e.js} +1 -1
  248. package/dist/ionic/{p-fba8ea9e.entry.js → p-679744bf.entry.js} +1 -1
  249. package/dist/ionic/{p-cf8ad0c3.entry.js → p-67bc0359.entry.js} +1 -1
  250. package/dist/ionic/{p-3fd68f4e.system.entry.js → p-6904a62e.system.entry.js} +1 -1
  251. package/dist/ionic/{p-ee8bf348.system.entry.js → p-6b14212a.system.entry.js} +1 -1
  252. package/dist/ionic/{p-b0ff8469.system.entry.js → p-6db3f661.system.entry.js} +1 -1
  253. package/dist/ionic/p-6e3e94e2.js +4 -0
  254. package/dist/ionic/{p-f1c090c5.system.entry.js → p-6ef231bc.system.entry.js} +1 -1
  255. package/dist/ionic/p-6f7eb5d1.system.js +5 -0
  256. package/dist/ionic/{p-a055fdcf.system.entry.js → p-6fb5e9a7.system.entry.js} +1 -1
  257. package/dist/ionic/{p-7198726e.entry.js → p-7048fe74.entry.js} +1 -1
  258. package/dist/ionic/{p-aeef6ac4.entry.js → p-70e786ea.entry.js} +1 -1
  259. package/dist/ionic/{p-30bbe61c.system.js → p-767a0d69.system.js} +1 -1
  260. package/dist/ionic/{p-c89af27e.entry.js → p-7a6e6896.entry.js} +1 -1
  261. package/dist/ionic/{p-443cbfcb.entry.js → p-7dbadc9f.entry.js} +1 -1
  262. package/dist/ionic/{p-4455daad.entry.js → p-7e192c6a.entry.js} +1 -1
  263. package/dist/ionic/{p-c5543c41.system.entry.js → p-804c9125.system.entry.js} +1 -1
  264. package/dist/ionic/{p-c4493e98.system.entry.js → p-88c0ff08.system.entry.js} +1 -1
  265. package/dist/ionic/{p-98125393.system.js → p-8df34150.system.js} +1 -1
  266. package/dist/ionic/{p-c7717147.js → p-972902db.js} +1 -1
  267. package/dist/ionic/{p-f896c857.system.entry.js → p-9847b92f.system.entry.js} +1 -1
  268. package/dist/ionic/{p-24b0ece0.entry.js → p-98566693.entry.js} +1 -1
  269. package/dist/ionic/{p-4713f5f0.entry.js → p-9aae0bf3.entry.js} +1 -1
  270. package/dist/ionic/{p-ddde112a.js → p-9d88dc43.js} +1 -1
  271. package/dist/ionic/{p-c7a015e4.entry.js → p-9df171a1.entry.js} +1 -1
  272. package/dist/ionic/{p-9b46f7e0.entry.js → p-a60914c0.entry.js} +1 -1
  273. package/dist/ionic/{p-7058dfda.entry.js → p-a69e118f.entry.js} +1 -1
  274. package/dist/ionic/{p-5cd86cdb.system.entry.js → p-a8ed8cd3.system.entry.js} +1 -1
  275. package/dist/ionic/{p-54b04ed1.system.entry.js → p-aa34fd2f.system.entry.js} +1 -1
  276. package/dist/ionic/{p-45a51395.system.js → p-b0bd4813.system.js} +1 -1
  277. package/dist/ionic/{p-fc6f99be.js → p-b2cd7aae.js} +1 -1
  278. package/dist/ionic/p-b59d0fab.system.js +4 -0
  279. package/dist/ionic/{p-34827988.system.entry.js → p-b7b4c08d.system.entry.js} +1 -1
  280. package/dist/ionic/{p-3b0711a0.system.entry.js → p-b7d1659f.system.entry.js} +1 -1
  281. package/dist/ionic/{p-eea44228.entry.js → p-bbeeadc8.entry.js} +1 -1
  282. package/dist/ionic/{p-b84d9005.system.entry.js → p-c21ea624.system.entry.js} +1 -1
  283. package/dist/ionic/{p-3d1951f5.entry.js → p-c2438564.entry.js} +1 -1
  284. package/dist/ionic/{p-f149e6c3.system.entry.js → p-c29d39e0.system.entry.js} +1 -1
  285. package/dist/ionic/{p-69cc64ab.entry.js → p-c8a847f1.entry.js} +1 -1
  286. package/dist/ionic/{p-4927bd6e.entry.js → p-cb19fdbf.entry.js} +1 -1
  287. package/dist/ionic/{p-06330374.system.entry.js → p-cec53b82.system.entry.js} +1 -1
  288. package/dist/ionic/{p-7171dbf4.system.js → p-cfcc1b63.system.js} +1 -1
  289. package/dist/ionic/{p-d8a1f0e2.entry.js → p-d274a7d8.entry.js} +1 -1
  290. package/dist/ionic/{p-09bd8558.system.entry.js → p-d450f1f9.system.entry.js} +1 -1
  291. package/dist/ionic/{p-c6d9d978.system.entry.js → p-d755fc91.system.entry.js} +1 -1
  292. package/dist/ionic/{p-941ecbba.entry.js → p-d950be65.entry.js} +1 -1
  293. package/dist/ionic/{p-8d0eb68d.js → p-dc4a3358.js} +1 -1
  294. package/dist/ionic/{p-18657fab.system.entry.js → p-ddd3b389.system.entry.js} +1 -1
  295. package/dist/ionic/{p-b7eecfa6.entry.js → p-deb257b7.entry.js} +1 -1
  296. package/dist/ionic/p-df4c53fe.entry.js +4 -0
  297. package/dist/ionic/{p-aef1c744.system.js → p-e72fcc94.system.js} +1 -1
  298. package/dist/ionic/{p-dba2da82.system.entry.js → p-e8162d35.system.entry.js} +1 -1
  299. package/dist/ionic/p-ec1562e7.system.js +4 -0
  300. package/dist/ionic/{p-bad2e0c8.system.entry.js → p-ed8726ad.system.entry.js} +1 -1
  301. package/dist/ionic/p-eda5abe2.entry.js +4 -0
  302. package/dist/ionic/{p-a4a45ad9.system.js → p-ef57ad27.system.js} +1 -1
  303. package/dist/ionic/{p-f9046353.system.entry.js → p-ef83f46b.system.entry.js} +1 -1
  304. package/dist/ionic/{p-8890e47f.system.entry.js → p-f0899af9.system.entry.js} +1 -1
  305. package/dist/ionic/{p-66de062f.system.entry.js → p-f66fed32.system.entry.js} +1 -1
  306. package/dist/ionic/{p-c623f0d9.entry.js → p-f7ed7806.entry.js} +1 -1
  307. package/dist/ionic/{p-036382b2.system.entry.js → p-f8083fd4.system.entry.js} +1 -1
  308. package/dist/ionic/{p-1ca3679b.entry.js → p-f81cef9b.entry.js} +1 -1
  309. package/dist/ionic/{p-a87b1500.entry.js → p-f8856320.entry.js} +1 -1
  310. package/dist/ionic/{p-d7e957e9.entry.js → p-fafa4d9b.entry.js} +1 -1
  311. package/dist/ionic/{p-0a9c8c36.system.entry.js → p-fc55e1c2.system.entry.js} +1 -1
  312. package/dist/ionic/{p-6e76ed16.entry.js → p-fca84e5b.entry.js} +1 -1
  313. package/dist/ionic/{p-47ab6574.system.entry.js → p-fd61bdcd.system.entry.js} +1 -1
  314. package/dist/ionic/{p-76637161.system.entry.js → p-fe74ecc0.system.entry.js} +1 -1
  315. package/dist/ionic/{p-bd7ad51d.system.entry.js → p-fed12de8.system.entry.js} +1 -1
  316. package/dist/types/components/refresher/refresher.d.ts +1 -0
  317. package/dist/types/stencil-public-runtime.d.ts +2 -10
  318. package/hydrate/index.d.ts +29 -11
  319. package/hydrate/index.js +450 -376
  320. package/hydrate/index.mjs +48652 -0
  321. package/hydrate/package.json +7 -1
  322. package/loader/index.d.ts +3 -0
  323. package/package.json +7 -5
  324. package/dist/collection/components/accordion/test/a11y/accordion.e2e.js +0 -40
  325. package/dist/collection/components/accordion/test/accordion.spec.js +0 -195
  326. package/dist/collection/components/accordion/test/basic/accordion.e2e.js +0 -52
  327. package/dist/collection/components/accordion/test/disabled/accordion.e2e.js +0 -94
  328. package/dist/collection/components/accordion/test/multiple/accordion.e2e.js +0 -26
  329. package/dist/collection/components/accordion/test/nested/accordion.e2e.js +0 -24
  330. package/dist/collection/components/accordion/test/readonly/accordion.e2e.js +0 -94
  331. package/dist/collection/components/accordion/test/standalone/accordion.e2e.js +0 -15
  332. package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +0 -99
  333. package/dist/collection/components/action-sheet/test/action-sheet-id.spec.js +0 -32
  334. package/dist/collection/components/action-sheet/test/basic/action-sheet-rendering.e2e.js +0 -60
  335. package/dist/collection/components/action-sheet/test/basic/action-sheet.e2e.js +0 -142
  336. package/dist/collection/components/action-sheet/test/basic/action-sheet.spec.js +0 -40
  337. package/dist/collection/components/action-sheet/test/is-open/action-sheet.e2e.js +0 -33
  338. package/dist/collection/components/action-sheet/test/translucent/action-sheet.e2e.js +0 -18
  339. package/dist/collection/components/action-sheet/test/trigger/action-sheet.e2e.js +0 -29
  340. package/dist/collection/components/alert/test/a11y/alert.e2e.js +0 -247
  341. package/dist/collection/components/alert/test/alert-id.spec.js +0 -32
  342. package/dist/collection/components/alert/test/alert.spec.js +0 -37
  343. package/dist/collection/components/alert/test/basic/alert-tablet.e2e.js +0 -40
  344. package/dist/collection/components/alert/test/basic/alert.e2e.js +0 -135
  345. package/dist/collection/components/alert/test/is-open/alert.e2e.js +0 -33
  346. package/dist/collection/components/alert/test/standalone/alert.e2e.js +0 -17
  347. package/dist/collection/components/alert/test/trigger/alert.e2e.js +0 -29
  348. package/dist/collection/components/app/test/safe-area/app.e2e.js +0 -35
  349. package/dist/collection/components/avatar/test/basic/avatar.e2e.js +0 -24
  350. package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +0 -47
  351. package/dist/collection/components/back-button/test/back-button.spec.js +0 -86
  352. package/dist/collection/components/back-button/test/basic/back-button.e2e.js +0 -14
  353. package/dist/collection/components/back-button/test/toolbar/back-button.e2e.js +0 -14
  354. package/dist/collection/components/badge/test/a11y/badge.e2e.js +0 -40
  355. package/dist/collection/components/badge/test/basic/badge.e2e.js +0 -14
  356. package/dist/collection/components/breadcrumb/test/aria.spec.js +0 -22
  357. package/dist/collection/components/breadcrumbs/test/a11y/breadcrumbs.e2e.js +0 -36
  358. package/dist/collection/components/breadcrumbs/test/basic/breadcrumbs.e2e.js +0 -14
  359. package/dist/collection/components/breadcrumbs/test/breadcrumbs.spec.js +0 -58
  360. package/dist/collection/components/breadcrumbs/test/collapsed/breadcrumbs.e2e.js +0 -14
  361. package/dist/collection/components/breadcrumbs/test/reactive/breadcrumbs.e2e.js +0 -51
  362. package/dist/collection/components/button/test/a11y/button.e2e.js +0 -109
  363. package/dist/collection/components/button/test/basic/button.e2e.js +0 -51
  364. package/dist/collection/components/button/test/clear/button.e2e.js +0 -14
  365. package/dist/collection/components/button/test/expand/button.e2e.js +0 -17
  366. package/dist/collection/components/button/test/form-reference/button.e2e.js +0 -135
  367. package/dist/collection/components/button/test/form-reference/button.spec.js +0 -26
  368. package/dist/collection/components/button/test/icon/button.e2e.js +0 -14
  369. package/dist/collection/components/button/test/outline/button.e2e.js +0 -14
  370. package/dist/collection/components/button/test/round/button.e2e.js +0 -52
  371. package/dist/collection/components/button/test/size/button.e2e.js +0 -43
  372. package/dist/collection/components/button/test/strong/button.e2e.js +0 -48
  373. package/dist/collection/components/button/test/wrap/button.e2e.js +0 -126
  374. package/dist/collection/components/buttons/test/a11y/buttons.e2e.js +0 -74
  375. package/dist/collection/components/card/test/a11y/card.e2e.js +0 -31
  376. package/dist/collection/components/card/test/aria.spec.js +0 -16
  377. package/dist/collection/components/card/test/basic/card.e2e.js +0 -151
  378. package/dist/collection/components/card-header/test/basic/card-header.e2e.js +0 -14
  379. package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +0 -42
  380. package/dist/collection/components/checkbox/test/basic/checkbox.e2e.js +0 -87
  381. package/dist/collection/components/checkbox/test/checkbox.spec.js +0 -46
  382. package/dist/collection/components/checkbox/test/color/checkbox.e2e.js +0 -23
  383. package/dist/collection/components/checkbox/test/indeterminate/checkbox.e2e.js +0 -14
  384. package/dist/collection/components/checkbox/test/item/checkbox.e2e.js +0 -74
  385. package/dist/collection/components/checkbox/test/label/checkbox.e2e.js +0 -122
  386. package/dist/collection/components/checkbox/test/states/checkbox.e2e.js +0 -37
  387. package/dist/collection/components/chip/test/a11y/chip.e2e.js +0 -58
  388. package/dist/collection/components/chip/test/basic/chip.e2e.js +0 -81
  389. package/dist/collection/components/chip/test/states/chip.e2e.js +0 -35
  390. package/dist/collection/components/content/test/basic/content.e2e.js +0 -17
  391. package/dist/collection/components/content/test/content.spec.js +0 -27
  392. package/dist/collection/components/content/test/fixed/content.e2e.js +0 -17
  393. package/dist/collection/components/content/test/fullscreen/content.e2e.js +0 -17
  394. package/dist/collection/components/content/test/standalone/content.e2e.js +0 -16
  395. package/dist/collection/components/datetime/test/a11y/datetime.e2e.js +0 -94
  396. package/dist/collection/components/datetime/test/a11y/datetime.spec.js +0 -40
  397. package/dist/collection/components/datetime/test/basic/datetime.e2e.js +0 -493
  398. package/dist/collection/components/datetime/test/color/datetime.e2e.js +0 -27
  399. package/dist/collection/components/datetime/test/comparison.spec.js +0 -43
  400. package/dist/collection/components/datetime/test/custom/datetime.e2e.js +0 -52
  401. package/dist/collection/components/datetime/test/data.spec.js +0 -456
  402. package/dist/collection/components/datetime/test/datetime.e2e.js +0 -39
  403. package/dist/collection/components/datetime/test/disable-dates/datetime.e2e.js +0 -150
  404. package/dist/collection/components/datetime/test/disabled/datetime.e2e.js +0 -68
  405. package/dist/collection/components/datetime/test/disabled/datetime.spec.js +0 -33
  406. package/dist/collection/components/datetime/test/display/datetime.e2e.js +0 -121
  407. package/dist/collection/components/datetime/test/first-day-of-week/datetime.e2e.js +0 -14
  408. package/dist/collection/components/datetime/test/format.spec.js +0 -174
  409. package/dist/collection/components/datetime/test/helpers.spec.js +0 -72
  410. package/dist/collection/components/datetime/test/highlighted-dates/datetime.e2e.js +0 -86
  411. package/dist/collection/components/datetime/test/hour-cycle/datetime.e2e.js +0 -37
  412. package/dist/collection/components/datetime/test/locale/datetime.e2e.js +0 -129
  413. package/dist/collection/components/datetime/test/manipulation.spec.js +0 -565
  414. package/dist/collection/components/datetime/test/minmax/datetime.e2e.js +0 -266
  415. package/dist/collection/components/datetime/test/month-year-picker/datetime.e2e.js +0 -29
  416. package/dist/collection/components/datetime/test/multiple/datetime.e2e.js +0 -242
  417. package/dist/collection/components/datetime/test/overlay-roles/datetime.e2e.js +0 -34
  418. package/dist/collection/components/datetime/test/parse.spec.js +0 -222
  419. package/dist/collection/components/datetime/test/position/datetime.e2e.js +0 -22
  420. package/dist/collection/components/datetime/test/prefer-wheel/datetime.e2e.js +0 -502
  421. package/dist/collection/components/datetime/test/prefer-wheel/datetime.spec.js +0 -27
  422. package/dist/collection/components/datetime/test/presentation/datetime.e2e.js +0 -169
  423. package/dist/collection/components/datetime/test/readonly/datetime.e2e.js +0 -113
  424. package/dist/collection/components/datetime/test/set-value/datetime.e2e.js +0 -50
  425. package/dist/collection/components/datetime/test/state.spec.js +0 -114
  426. package/dist/collection/components/datetime/test/time-label/datetime.e2e.js +0 -25
  427. package/dist/collection/components/datetime/test/values/datetime.e2e.js +0 -143
  428. package/dist/collection/components/datetime-button/test/a11y/datetime-button.e2e.js +0 -38
  429. package/dist/collection/components/datetime-button/test/basic/datetime-button.e2e.js +0 -254
  430. package/dist/collection/components/datetime-button/test/disabled/datetime-button.e2e.js +0 -27
  431. package/dist/collection/components/datetime-button/test/multiple/datetime-button.e2e.js +0 -96
  432. package/dist/collection/components/datetime-button/test/overlays/datetime-button.e2e.js +0 -143
  433. package/dist/collection/components/fab/test/basic/fab.e2e.js +0 -65
  434. package/dist/collection/components/fab/test/custom-size/fab.e2e.js +0 -17
  435. package/dist/collection/components/fab/test/safe-area/fab.e2e.js +0 -63
  436. package/dist/collection/components/fab/test/states/fab.e2e.js +0 -14
  437. package/dist/collection/components/fab/test/translucent/fab.e2e.js +0 -28
  438. package/dist/collection/components/fab-button/test/a11y/fab-button.e2e.js +0 -66
  439. package/dist/collection/components/footer/test/basic/footer.e2e.js +0 -61
  440. package/dist/collection/components/footer/test/fade/footer.e2e.js +0 -21
  441. package/dist/collection/components/footer/test/scroll-target/footer.e2e.js +0 -26
  442. package/dist/collection/components/footer/test/with-tabs/footer.e2e.js +0 -17
  443. package/dist/collection/components/grid/test/basic/grid.e2e.js +0 -17
  444. package/dist/collection/components/grid/test/offsets/grid.e2e.js +0 -17
  445. package/dist/collection/components/grid/test/padding/grid.e2e.js +0 -17
  446. package/dist/collection/components/grid/test/sizes/grid.e2e.js +0 -17
  447. package/dist/collection/components/header/test/a11y/header.e2e.js +0 -29
  448. package/dist/collection/components/header/test/basic/header.e2e.js +0 -147
  449. package/dist/collection/components/header/test/condense/header.e2e.js +0 -33
  450. package/dist/collection/components/header/test/fade/header.e2e.js +0 -21
  451. package/dist/collection/components/header/test/scroll-target/header.e2e.js +0 -26
  452. package/dist/collection/components/icon/test/basic/icon.e2e.js +0 -16
  453. package/dist/collection/components/icon/test/dir/icon.e2e.js +0 -23
  454. package/dist/collection/components/img/test/basic/img.e2e.js +0 -73
  455. package/dist/collection/components/img/test/draggable/img.e2e.js +0 -21
  456. package/dist/collection/components/infinite-scroll/test/basic/infinite-scroll.e2e.js +0 -19
  457. package/dist/collection/components/infinite-scroll/test/scroll-target/infinite-scroll.e2e.js +0 -19
  458. package/dist/collection/components/infinite-scroll/test/small-dom-update/infinite-scroll.e2e.js +0 -31
  459. package/dist/collection/components/infinite-scroll/test/top/infinite-scroll.e2e.js +0 -19
  460. package/dist/collection/components/infinite-scroll-content/test/infinite-scroll-content.spec.js +0 -37
  461. package/dist/collection/components/input/test/a11y/input.e2e.js +0 -67
  462. package/dist/collection/components/input/test/basic/input.e2e.js +0 -102
  463. package/dist/collection/components/input/test/bottom-content/input.e2e.js +0 -145
  464. package/dist/collection/components/input/test/card/input.e2e.js +0 -22
  465. package/dist/collection/components/input/test/clear-on-edit/input.e2e.js +0 -53
  466. package/dist/collection/components/input/test/color/input.e2e.js +0 -130
  467. package/dist/collection/components/input/test/fill/input.e2e.js +0 -203
  468. package/dist/collection/components/input/test/highlight/input.e2e.js +0 -300
  469. package/dist/collection/components/input/test/input.e2e.js +0 -17
  470. package/dist/collection/components/input/test/input.spec.js +0 -98
  471. package/dist/collection/components/input/test/item/input.e2e.js +0 -64
  472. package/dist/collection/components/input/test/label-placement/input.e2e.js +0 -165
  473. package/dist/collection/components/input/test/slot/input.e2e.js +0 -63
  474. package/dist/collection/components/input/test/states/input.e2e.js +0 -23
  475. package/dist/collection/components/input-password-toggle/test/a11y/input-password-toggle.e2e.js +0 -21
  476. package/dist/collection/components/input-password-toggle/test/basic/input-password-toggle.e2e.js +0 -38
  477. package/dist/collection/components/input-password-toggle/test/input-password-toggle.spec.js +0 -76
  478. package/dist/collection/components/item/test/a11y/item.e2e.js +0 -123
  479. package/dist/collection/components/item/test/a11y/item.spec.js +0 -48
  480. package/dist/collection/components/item/test/alignment/item.e2e.js +0 -14
  481. package/dist/collection/components/item/test/basic/item.e2e.js +0 -35
  482. package/dist/collection/components/item/test/buttons/item.e2e.js +0 -45
  483. package/dist/collection/components/item/test/colors/item.e2e.js +0 -17
  484. package/dist/collection/components/item/test/css-variables/item.e2e.js +0 -17
  485. package/dist/collection/components/item/test/disabled/item.e2e.js +0 -17
  486. package/dist/collection/components/item/test/dividers/item.e2e.js +0 -14
  487. package/dist/collection/components/item/test/groups/item.e2e.js +0 -16
  488. package/dist/collection/components/item/test/icons/item.e2e.js +0 -14
  489. package/dist/collection/components/item/test/images/item.e2e.js +0 -14
  490. package/dist/collection/components/item/test/inputs/item.e2e.js +0 -199
  491. package/dist/collection/components/item/test/item.spec.js +0 -20
  492. package/dist/collection/components/item/test/lines/item.e2e.js +0 -14
  493. package/dist/collection/components/item/test/media/item.e2e.js +0 -14
  494. package/dist/collection/components/item/test/reorder/item.e2e.js +0 -16
  495. package/dist/collection/components/item/test/slotted-inputs/item.e2e.js +0 -149
  496. package/dist/collection/components/item/test/states/item.e2e.js +0 -17
  497. package/dist/collection/components/item-divider/test/a11y/item-divider.e2e.js +0 -44
  498. package/dist/collection/components/item-divider/test/basic/item-divider.e2e.js +0 -60
  499. package/dist/collection/components/item-divider/test/spec/item-divider.e2e.js +0 -16
  500. package/dist/collection/components/item-sliding/test/a11y/item-sliding.e2e.js +0 -62
  501. package/dist/collection/components/item-sliding/test/async/item-sliding.e2e.js +0 -33
  502. package/dist/collection/components/item-sliding/test/basic/item-sliding.e2e.js +0 -162
  503. package/dist/collection/components/item-sliding/test/icons/item-sliding.e2e.js +0 -35
  504. package/dist/collection/components/item-sliding/test/scroll-target/item-sliding.e2e.js +0 -29
  505. package/dist/collection/components/label/test/a11y/label.e2e.js +0 -111
  506. package/dist/collection/components/label/test/basic/label.e2e.js +0 -45
  507. package/dist/collection/components/label/test/color/label.e2e.js +0 -39
  508. package/dist/collection/components/label/test/headings/label.e2e.js +0 -13
  509. package/dist/collection/components/label/test/item/item.e2e.js +0 -24
  510. package/dist/collection/components/list/test/a11y/list.e2e.js +0 -15
  511. package/dist/collection/components/list/test/basic/list.e2e.js +0 -24
  512. package/dist/collection/components/list/test/inset/list.e2e.js +0 -69
  513. package/dist/collection/components/list/test/lines/list.e2e.js +0 -167
  514. package/dist/collection/components/list-header/test/a11y/list-header.e2e.js +0 -24
  515. package/dist/collection/components/list-header/test/basic/list-header.e2e.js +0 -42
  516. package/dist/collection/components/loading/test/a11y/loading.e2e.js +0 -61
  517. package/dist/collection/components/loading/test/basic/loading.e2e.js +0 -80
  518. package/dist/collection/components/loading/test/basic/loading.spec.js +0 -16
  519. package/dist/collection/components/loading/test/is-open/loading.e2e.js +0 -28
  520. package/dist/collection/components/loading/test/loading-id.spec.js +0 -32
  521. package/dist/collection/components/loading/test/loading.spec.js +0 -37
  522. package/dist/collection/components/loading/test/standalone/loading.e2e.js +0 -21
  523. package/dist/collection/components/loading/test/trigger/loading.e2e.js +0 -32
  524. package/dist/collection/components/menu/test/a11y/menu.e2e.js +0 -22
  525. package/dist/collection/components/menu/test/basic/menu.e2e.js +0 -124
  526. package/dist/collection/components/menu/test/custom/menu.e2e.js +0 -61
  527. package/dist/collection/components/menu/test/disable/menu.e2e.js +0 -55
  528. package/dist/collection/components/menu/test/focus-trap/menu.e2e.js +0 -72
  529. package/dist/collection/components/menu/test/multiple/menu.e2e.js +0 -60
  530. package/dist/collection/components/menu/test/safe-area/menu.e2e.js +0 -87
  531. package/dist/collection/components/menu-button/test/a11y/menu-button.e2e.js +0 -48
  532. package/dist/collection/components/menu-button/test/async/menu-button.e2e.js +0 -23
  533. package/dist/collection/components/menu-button/test/basic/menu-button.e2e.js +0 -14
  534. package/dist/collection/components/menu-toggle/test/basic/menu-toggle.e2e.js +0 -43
  535. package/dist/collection/components/modal/test/a11y/modal.e2e.js +0 -21
  536. package/dist/collection/components/modal/test/animations/modal.e2e.js +0 -36
  537. package/dist/collection/components/modal/test/basic/modal.e2e.js +0 -125
  538. package/dist/collection/components/modal/test/basic/modal.spec.js +0 -35
  539. package/dist/collection/components/modal/test/can-dismiss/modal-card.e2e.js +0 -55
  540. package/dist/collection/components/modal/test/can-dismiss/modal-sheet.e2e.js +0 -73
  541. package/dist/collection/components/modal/test/can-dismiss/modal.e2e.js +0 -27
  542. package/dist/collection/components/modal/test/can-dismiss/modal.spec.js +0 -191
  543. package/dist/collection/components/modal/test/card/modal-card.e2e.js +0 -83
  544. package/dist/collection/components/modal/test/card/modal-tablet.e2e.js +0 -82
  545. package/dist/collection/components/modal/test/card-nav/modal.e2e.js +0 -38
  546. package/dist/collection/components/modal/test/card-refresher/modal.e2e.js +0 -22
  547. package/dist/collection/components/modal/test/card-scroll-target/modal.e2e.js +0 -42
  548. package/dist/collection/components/modal/test/custom/modal.e2e.js +0 -24
  549. package/dist/collection/components/modal/test/custom-dialog/modal.e2e.js +0 -20
  550. package/dist/collection/components/modal/test/dark-mode/model.e2e.js +0 -20
  551. package/dist/collection/components/modal/test/inline/modal.e2e.js +0 -48
  552. package/dist/collection/components/modal/test/is-open/modal.e2e.js +0 -25
  553. package/dist/collection/components/modal/test/modal-attributes.spec.js +0 -32
  554. package/dist/collection/components/modal/test/modal-id.spec.js +0 -32
  555. package/dist/collection/components/modal/test/sheet/modal.e2e.js +0 -212
  556. package/dist/collection/components/modal/test/standalone/modal.e2e.js +0 -19
  557. package/dist/collection/components/modal/test/trigger/modal.e2e.js +0 -31
  558. package/dist/collection/components/modal/utils.spec.js +0 -13
  559. package/dist/collection/components/nav/test/basic/nav.e2e.js +0 -69
  560. package/dist/collection/components/nav/test/modal-navigation/nav.e2e.js +0 -65
  561. package/dist/collection/components/nav/test/nav-controller.spec.js +0 -749
  562. package/dist/collection/components/nav/test/nested/nav.e2e.js +0 -66
  563. package/dist/collection/components/nav/test/routing/nav.e2e.js +0 -87
  564. package/dist/collection/components/note/test/a11y/note.e2e.js +0 -95
  565. package/dist/collection/components/note/test/basic/note.e2e.js +0 -78
  566. package/dist/collection/components/picker/test/a11y/picker.e2e.js +0 -15
  567. package/dist/collection/components/picker/test/basic/picker.e2e.js +0 -111
  568. package/dist/collection/components/picker/test/custom/picker.e2e.js +0 -85
  569. package/dist/collection/components/picker/test/keyboard-entry/picker.e2e.js +0 -183
  570. package/dist/collection/components/picker-column/test/basic/picker-column.e2e.js +0 -64
  571. package/dist/collection/components/picker-column/test/disabled/picker-column.e2e.js +0 -91
  572. package/dist/collection/components/picker-column/test/picker-column.spec.js +0 -83
  573. package/dist/collection/components/picker-column/test/slots/picker-column.e2e.js +0 -39
  574. package/dist/collection/components/picker-column-option/test/a11y/picker-column-option.e2e.js +0 -18
  575. package/dist/collection/components/picker-column-option/test/basic/picker-column-option.e2e.js +0 -37
  576. package/dist/collection/components/picker-column-option/test/picker-column-option.spec.js +0 -29
  577. package/dist/collection/components/picker-legacy/test/basic/picker.e2e.js +0 -25
  578. package/dist/collection/components/picker-legacy/test/is-open/picker.e2e.js +0 -28
  579. package/dist/collection/components/picker-legacy/test/picker-id.spec.js +0 -32
  580. package/dist/collection/components/picker-legacy/test/trigger/picker.e2e.js +0 -32
  581. package/dist/collection/components/picker-legacy-column/test/picker-column-aria.spec.js +0 -35
  582. package/dist/collection/components/picker-legacy-column/test/picker-column-dynamic.spec.js +0 -29
  583. package/dist/collection/components/picker-legacy-column/test/picker-column.spec.js +0 -17
  584. package/dist/collection/components/picker-legacy-column/test/standalone/picker-column.e2e.js +0 -35
  585. package/dist/collection/components/popover/test/adjustment/popover.e2e.js +0 -33
  586. package/dist/collection/components/popover/test/arrow/popover.e2e.js +0 -27
  587. package/dist/collection/components/popover/test/async/popover.e2e.js +0 -42
  588. package/dist/collection/components/popover/test/basic/popover.e2e.js +0 -211
  589. package/dist/collection/components/popover/test/basic/popover.spec.js +0 -35
  590. package/dist/collection/components/popover/test/dismiss-on-select/popover.e2e.js +0 -38
  591. package/dist/collection/components/popover/test/inline/popover.e2e.js +0 -32
  592. package/dist/collection/components/popover/test/is-open/popover.e2e.js +0 -13
  593. package/dist/collection/components/popover/test/nested/popover.e2e.js +0 -92
  594. package/dist/collection/components/popover/test/popover-id.spec.js +0 -32
  595. package/dist/collection/components/popover/test/position/popover.e2e.js +0 -27
  596. package/dist/collection/components/popover/test/reference/popover.e2e.js +0 -22
  597. package/dist/collection/components/popover/test/size/popover.e2e.js +0 -41
  598. package/dist/collection/components/popover/test/standalone/popover.e2e.js +0 -15
  599. package/dist/collection/components/popover/test/trigger/popover.e2e.js +0 -46
  600. package/dist/collection/components/popover/test/util.spec.js +0 -53
  601. package/dist/collection/components/progress-bar/test/a11y/progress-bar.e2e.js +0 -24
  602. package/dist/collection/components/progress-bar/test/basic/progress-bar.e2e.js +0 -14
  603. package/dist/collection/components/progress-bar/test/buffer/progress-bar.e2e.js +0 -20
  604. package/dist/collection/components/progress-bar/test/determinate/progress-bar.e2e.js +0 -20
  605. package/dist/collection/components/radio/test/a11y/radio.e2e.js +0 -152
  606. package/dist/collection/components/radio/test/color/radio.e2e.js +0 -27
  607. package/dist/collection/components/radio/test/item/radio.e2e.js +0 -92
  608. package/dist/collection/components/radio/test/label-placement/radio.e2e.js +0 -135
  609. package/dist/collection/components/radio/test/radio.spec.js +0 -60
  610. package/dist/collection/components/radio/test/states/radio.e2e.js +0 -45
  611. package/dist/collection/components/radio-group/test/basic/radio-group.e2e.js +0 -85
  612. package/dist/collection/components/radio-group/test/form/radio-group.e2e.js +0 -56
  613. package/dist/collection/components/radio-group/test/radio-group-events.e2e.js +0 -80
  614. package/dist/collection/components/radio-group/test/radio-group.spec.js +0 -69
  615. package/dist/collection/components/radio-group/test/search/radio-group.e2e.js +0 -35
  616. package/dist/collection/components/range/test/a11y/range.e2e.js +0 -89
  617. package/dist/collection/components/range/test/active-bar-start/range.e2e.js +0 -14
  618. package/dist/collection/components/range/test/basic/range.e2e.js +0 -31
  619. package/dist/collection/components/range/test/color/range.e2e.js +0 -20
  620. package/dist/collection/components/range/test/custom/range.e2e.js +0 -14
  621. package/dist/collection/components/range/test/item/range.e2e.js +0 -70
  622. package/dist/collection/components/range/test/label/range.e2e.js +0 -179
  623. package/dist/collection/components/range/test/label/range.spec.js +0 -47
  624. package/dist/collection/components/range/test/range-events.e2e.js +0 -179
  625. package/dist/collection/components/range/test/range.spec.js +0 -209
  626. package/dist/collection/components/range/test/scroll-target/range.e2e.js +0 -35
  627. package/dist/collection/components/range/test/states/range.e2e.js +0 -53
  628. package/dist/collection/components/refresher/test/a11y/refresher.e2e.js +0 -26
  629. package/dist/collection/components/refresher/test/basic/refresher.e2e.js +0 -38
  630. package/dist/collection/components/refresher/test/scroll-target/refresher.e2e.js +0 -38
  631. package/dist/collection/components/refresher-content/test/refresher-content.spec.js +0 -46
  632. package/dist/collection/components/reorder-group/test/a11y/reorder-group.e2e.js +0 -33
  633. package/dist/collection/components/reorder-group/test/basic/reorder-group.e2e.js +0 -36
  634. package/dist/collection/components/reorder-group/test/interactive/reorder-group.e2e.js +0 -32
  635. package/dist/collection/components/reorder-group/test/nested/reorder-group.e2e.js +0 -32
  636. package/dist/collection/components/reorder-group/test/scroll-target/reorder-group.e2e.js +0 -32
  637. package/dist/collection/components/ripple-effect/test/basic/ripple-effect.e2e.js +0 -66
  638. package/dist/collection/components/router/test/basic/router.e2e.js +0 -68
  639. package/dist/collection/components/router/test/guards/href/router.e2e.js +0 -60
  640. package/dist/collection/components/router/test/guards/link/router.e2e.js +0 -60
  641. package/dist/collection/components/router/test/guards/push/router.e2e.js +0 -60
  642. package/dist/collection/components/router/test/guards/router.e2e.js +0 -13
  643. package/dist/collection/components/router/test/matching.spec.js +0 -250
  644. package/dist/collection/components/router/test/parser.spec.js +0 -133
  645. package/dist/collection/components/router/test/path.spec.js +0 -218
  646. package/dist/collection/components/router/test/router.spec.js +0 -55
  647. package/dist/collection/components/router-link/test/a11y/router-link.e2e.js +0 -23
  648. package/dist/collection/components/router-outlet/test/basic/router-outlet.e2e.js +0 -39
  649. package/dist/collection/components/searchbar/test/a11y/searchbar.e2e.js +0 -37
  650. package/dist/collection/components/searchbar/test/basic/searchbar.e2e.js +0 -161
  651. package/dist/collection/components/searchbar/test/events/searchbar.e2e.js +0 -67
  652. package/dist/collection/components/searchbar/test/searchbar.spec.js +0 -33
  653. package/dist/collection/components/segment/test/a11y/segment.e2e.js +0 -69
  654. package/dist/collection/components/segment/test/basic/segment.e2e.js +0 -84
  655. package/dist/collection/components/segment/test/custom/segment.e2e.js +0 -14
  656. package/dist/collection/components/segment/test/icon/segment.e2e.js +0 -29
  657. package/dist/collection/components/segment/test/modes/segment.e2e.js +0 -38
  658. package/dist/collection/components/segment/test/scrollable/segment.e2e.js +0 -83
  659. package/dist/collection/components/segment/test/segment-events.e2e.js +0 -209
  660. package/dist/collection/components/segment/test/segment.spec.js +0 -37
  661. package/dist/collection/components/segment/test/toolbar/segment.e2e.js +0 -122
  662. package/dist/collection/components/segment/test/wrap/segment.e2e.js +0 -85
  663. package/dist/collection/components/select/test/a11y/select.e2e.js +0 -101
  664. package/dist/collection/components/select/test/async/select.e2e.js +0 -25
  665. package/dist/collection/components/select/test/basic/select.e2e.js +0 -195
  666. package/dist/collection/components/select/test/card/select.e2e.js +0 -22
  667. package/dist/collection/components/select/test/color/select.e2e.js +0 -42
  668. package/dist/collection/components/select/test/compare-with/select.e2e.js +0 -67
  669. package/dist/collection/components/select/test/custom/select.e2e.js +0 -68
  670. package/dist/collection/components/select/test/disabled/select.e2e.js +0 -30
  671. package/dist/collection/components/select/test/fill/select.e2e.js +0 -217
  672. package/dist/collection/components/select/test/highlight/select.e2e.js +0 -209
  673. package/dist/collection/components/select/test/item/select.e2e.js +0 -56
  674. package/dist/collection/components/select/test/label/select.e2e.js +0 -245
  675. package/dist/collection/components/select/test/popover-size/select.e2e.js +0 -80
  676. package/dist/collection/components/select/test/select.spec.js +0 -96
  677. package/dist/collection/components/select/test/slot/select.e2e.js +0 -79
  678. package/dist/collection/components/select/test/states/select.e2e.js +0 -41
  679. package/dist/collection/components/select/test/toggle-icon/select.e2e.js +0 -30
  680. package/dist/collection/components/select/test/wrapping/select.e2e.js +0 -36
  681. package/dist/collection/components/select-popover/test/a11y/select-popover.e2e.js +0 -32
  682. package/dist/collection/components/select-popover/test/basic/select-popover.e2e.js +0 -77
  683. package/dist/collection/components/skeleton-text/test/basic/skeleton-text.e2e.js +0 -14
  684. package/dist/collection/components/skeleton-text/test/custom/skeleton-text.e2e.js +0 -14
  685. package/dist/collection/components/spinner/test/basic/spinner.e2e.js +0 -18
  686. package/dist/collection/components/spinner/test/color/spinner.e2e.js +0 -21
  687. package/dist/collection/components/spinner/test/resize/spinner.e2e.js +0 -35
  688. package/dist/collection/components/split-pane/test/basic/split-pane.e2e.js +0 -29
  689. package/dist/collection/components/split-pane/test/multiple/split-pane.e2e.js +0 -31
  690. package/dist/collection/components/split-pane/test/wrapped-menu/split-pane.e2e.js +0 -41
  691. package/dist/collection/components/tab-bar/test/basic/tab-bar.e2e.js +0 -43
  692. package/dist/collection/components/tab-bar/test/custom/tab-bar.e2e.js +0 -14
  693. package/dist/collection/components/tab-bar/test/translucent/tab-bar.e2e.js +0 -70
  694. package/dist/collection/components/tab-button/test/a11y/tab-button.e2e.js +0 -15
  695. package/dist/collection/components/tab-button/test/basic/tab-button.e2e.js +0 -81
  696. package/dist/collection/components/tab-button/test/layout/tab-button.e2e.js +0 -123
  697. package/dist/collection/components/tab-button/test/states/tab-button.e2e.js +0 -65
  698. package/dist/collection/components/tabs/test/basic/tabs.e2e.js +0 -32
  699. package/dist/collection/components/tabs/test/placements/tabs.e2e.js +0 -39
  700. package/dist/collection/components/text/test/basic/text.e2e.js +0 -30
  701. package/dist/collection/components/textarea/test/a11y/textarea.e2e.js +0 -67
  702. package/dist/collection/components/textarea/test/autogrow/textarea.e2e.js +0 -48
  703. package/dist/collection/components/textarea/test/bottom-content/textarea.e2e.js +0 -120
  704. package/dist/collection/components/textarea/test/card/textarea.e2e.js +0 -22
  705. package/dist/collection/components/textarea/test/clear-on-edit/textarea.e2e.js +0 -61
  706. package/dist/collection/components/textarea/test/color/textarea.e2e.js +0 -131
  707. package/dist/collection/components/textarea/test/cols/textarea.e2e.js +0 -37
  708. package/dist/collection/components/textarea/test/fill/textarea.e2e.js +0 -205
  709. package/dist/collection/components/textarea/test/highlight/textarea.e2e.js +0 -303
  710. package/dist/collection/components/textarea/test/item/textarea.e2e.js +0 -64
  711. package/dist/collection/components/textarea/test/label-placement/textarea.e2e.js +0 -224
  712. package/dist/collection/components/textarea/test/slot/textarea.e2e.js +0 -63
  713. package/dist/collection/components/textarea/test/states/textarea.e2e.js +0 -23
  714. package/dist/collection/components/textarea/test/textarea-events.e2e.js +0 -70
  715. package/dist/collection/components/textarea/test/textarea.spec.js +0 -59
  716. package/dist/collection/components/thumbnail/test/basic/thumbnail.e2e.js +0 -48
  717. package/dist/collection/components/title/test/a11y/title.e2e.js +0 -61
  718. package/dist/collection/components/title/test/basic/title.e2e.js +0 -30
  719. package/dist/collection/components/toast/test/a11y/toast.e2e.js +0 -210
  720. package/dist/collection/components/toast/test/basic/toast.e2e.js +0 -123
  721. package/dist/collection/components/toast/test/is-open/toast.e2e.js +0 -28
  722. package/dist/collection/components/toast/test/layout/toast.e2e.js +0 -17
  723. package/dist/collection/components/toast/test/position-anchor/toast.e2e.js +0 -45
  724. package/dist/collection/components/toast/test/standalone/toast.e2e.js +0 -21
  725. package/dist/collection/components/toast/test/swipe-gesture/toast.e2e.js +0 -84
  726. package/dist/collection/components/toast/test/toast-config.spec.js +0 -25
  727. package/dist/collection/components/toast/test/toast-id.spec.js +0 -32
  728. package/dist/collection/components/toast/test/toast.spec.js +0 -212
  729. package/dist/collection/components/toast/test/trigger/toast.e2e.js +0 -32
  730. package/dist/collection/components/toggle/test/a11y/toggle.e2e.js +0 -21
  731. package/dist/collection/components/toggle/test/color/toggle.e2e.js +0 -23
  732. package/dist/collection/components/toggle/test/enable-on-off-labels/toggle.e2e.js +0 -61
  733. package/dist/collection/components/toggle/test/item/toggle.e2e.js +0 -104
  734. package/dist/collection/components/toggle/test/label/toggle.e2e.js +0 -120
  735. package/dist/collection/components/toggle/test/sizes/toggle.e2e.js +0 -14
  736. package/dist/collection/components/toggle/test/states/toggle.e2e.js +0 -30
  737. package/dist/collection/components/toggle/test/toggle.spec.js +0 -67
  738. package/dist/collection/components/toolbar/test/basic/toolbar.e2e.js +0 -143
  739. package/dist/collection/components/toolbar/test/colors/toolbar.e2e.js +0 -17
  740. package/dist/collection/css/test/a11y/typography.e2e.js +0 -50
  741. package/dist/collection/global/test/config-controller.spec.js +0 -85
  742. package/dist/collection/themes/test/colors/theme.e2e.js +0 -170
  743. package/dist/collection/utils/animation/test/animation.spec.js +0 -358
  744. package/dist/collection/utils/animation/test/animationbuilder/animation.e2e.js +0 -31
  745. package/dist/collection/utils/animation/test/basic/animation.e2e.js +0 -17
  746. package/dist/collection/utils/animation/test/display/animation.e2e.js +0 -24
  747. package/dist/collection/utils/animation/test/hooks/animation.e2e.js +0 -45
  748. package/dist/collection/utils/animation/test/multiple/animation.e2e.js +0 -30
  749. package/dist/collection/utils/content/content.utils.spec.js +0 -137
  750. package/dist/collection/utils/floating-point/floating-point.spec.js +0 -22
  751. package/dist/collection/utils/focus-controller/test/generic/focus-controller.e2e.js +0 -52
  752. package/dist/collection/utils/focus-controller/test/ionic/focus-controller.e2e.js +0 -52
  753. package/dist/collection/utils/helpers.spec.js +0 -36
  754. package/dist/collection/utils/input-shims/hacks/test/scroll-assist.e2e.js +0 -115
  755. package/dist/collection/utils/keyboard/test/keyboard-controller.spec.js +0 -21
  756. package/dist/collection/utils/keyboard/test/keyboard.spec.js +0 -214
  757. package/dist/collection/utils/rtl/dir.spec.js +0 -25
  758. package/dist/collection/utils/sanitization/test/sanitization.spec.js +0 -43
  759. package/dist/collection/utils/tap-click/test/tap-click.e2e.js +0 -25
  760. package/dist/collection/utils/test/attributes.spec.js +0 -53
  761. package/dist/collection/utils/test/framework-delegate/framework-delegate.e2e.js +0 -33
  762. package/dist/collection/utils/test/hardware-back-button.spec.js +0 -91
  763. package/dist/collection/utils/test/overlays/overlays-scroll-blocking.spec.js +0 -65
  764. package/dist/collection/utils/test/overlays/overlays.e2e.js +0 -301
  765. package/dist/collection/utils/test/overlays/overlays.spec.js +0 -206
  766. package/dist/collection/utils/test/platform.spec.js +0 -132
  767. package/dist/collection/utils/test/ready.spec.js +0 -39
  768. package/dist/collection/utils/test/theme.spec.js +0 -56
  769. package/dist/esm-es5/app-globals-7c667c11.js +0 -4
  770. package/dist/esm-es5/index-8d8c14b0.js +0 -5
  771. package/dist/ionic/p-0213e506.entry.js +0 -4
  772. package/dist/ionic/p-39303199.system.js +0 -4
  773. package/dist/ionic/p-479e7655.system.js +0 -5
  774. package/dist/ionic/p-65a8336f.entry.js +0 -4
  775. package/dist/ionic/p-6c16d0e8.js +0 -4
  776. package/dist/ionic/p-a82d4913.system.js +0 -4
  777. package/dist/ionic/p-cd681265.entry.js +0 -4
  778. package/dist/ionic/p-d6dbda17.js +0 -5
  779. package/dist/ionic/p-f6a419d2.js +0 -4
@@ -1,749 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import { newSpecPage } from "@stencil/core/testing";
5
- import { Nav } from "../nav";
6
- import { ViewController } from "../view-controller";
7
- describe('NavController', () => {
8
- describe('push and pop', () => {
9
- it('should push multiple times and pop multiple times', async () => {
10
- const push1Done = jest.fn();
11
- const push2Done = jest.fn();
12
- const push3Done = jest.fn();
13
- const push4Done = jest.fn();
14
- const pop1Done = jest.fn();
15
- const pop2Done = jest.fn();
16
- const pop3Done = jest.fn();
17
- // Push 1
18
- const view1 = mockView(MockView1);
19
- await nav.push(view1, null, { animated: false }, push1Done);
20
- const hasCompleted = true;
21
- const requiresTransition = true;
22
- expect(push1Done).toHaveBeenCalledWith(hasCompleted, requiresTransition, view1, undefined, 'forward');
23
- expect(await nav.getLength()).toEqual(1);
24
- expect(nav['views'][0].component).toEqual(MockView1);
25
- // Push 2
26
- const view2 = mockView(MockView2);
27
- await nav.push(view2, null, { animated: false }, push2Done);
28
- expect(push2Done).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view1, 'forward');
29
- expect(await nav.getLength()).toEqual(2);
30
- expect(nav['views'][0].component).toEqual(MockView1);
31
- expect(nav['views'][1].component).toEqual(MockView2);
32
- // Push 3
33
- const view3 = mockView(MockView3);
34
- await nav.push(view3, null, { animated: false }, push3Done);
35
- expect(push3Done).toHaveBeenCalledWith(hasCompleted, requiresTransition, view3, view2, 'forward');
36
- expect(await nav.getLength()).toEqual(3);
37
- expect(nav['views'][0].component).toEqual(MockView1);
38
- expect(nav['views'][1].component).toEqual(MockView2);
39
- expect(nav['views'][2].component).toEqual(MockView3);
40
- // Push 4
41
- const view4 = mockView(MockView4);
42
- await nav.push(view4, null, { animated: false }, push4Done);
43
- expect(push4Done).toHaveBeenCalledWith(hasCompleted, requiresTransition, view4, view3, 'forward');
44
- expect(await nav.getLength()).toEqual(4);
45
- expect(nav['views'][0].component).toEqual(MockView1);
46
- expect(nav['views'][1].component).toEqual(MockView2);
47
- expect(nav['views'][2].component).toEqual(MockView3);
48
- expect(nav['views'][3].component).toEqual(MockView4);
49
- // Pop 1
50
- await nav.pop({ animated: false }, pop1Done);
51
- expect(pop1Done).toHaveBeenCalledWith(hasCompleted, requiresTransition, view3, view4, 'back');
52
- expect(await nav.getLength()).toEqual(3);
53
- expect(nav['views'][0].component).toEqual(MockView1);
54
- expect(nav['views'][1].component).toEqual(MockView2);
55
- expect(nav['views'][2].component).toEqual(MockView3);
56
- // Pop 2
57
- await nav.pop({ animated: false }, pop2Done);
58
- expect(pop2Done).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view3, 'back');
59
- expect(await nav.getLength()).toEqual(2);
60
- expect(nav['views'][0].component).toEqual(MockView1);
61
- expect(nav['views'][1].component).toEqual(MockView2);
62
- // Pop 3
63
- await nav.pop({ animated: false }, pop3Done);
64
- expect(pop3Done).toHaveBeenCalledWith(hasCompleted, requiresTransition, view1, view2, 'back');
65
- expect(await nav.getLength()).toEqual(1);
66
- expect(nav['views'][0].component).toEqual(MockView1);
67
- }, 10000);
68
- });
69
- describe('push', () => {
70
- it('should push a component as the first view', async () => {
71
- const view1 = mockView(MockView1);
72
- await nav.push(view1, null, null, trnsDone);
73
- const hasCompleted = true;
74
- const requiresTransition = true;
75
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view1, undefined, 'forward');
76
- expect(await nav.getLength()).toEqual(1);
77
- expect(nav['views'][0].component).toEqual(MockView1);
78
- expect(nav['isTransitioning']).toEqual(false);
79
- }, 10000);
80
- it('should push a component as the second view at the end', async () => {
81
- const view1 = mockView(MockView1);
82
- mockViews(nav, [view1]);
83
- const view2 = mockView(MockView2);
84
- await nav.push(view2, null, null, trnsDone);
85
- const hasCompleted = true;
86
- const requiresTransition = true;
87
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view1, 'forward');
88
- expect(await nav.getLength()).toEqual(2);
89
- expect(nav['views'][0].component).toEqual(MockView1);
90
- expect(nav['views'][1].component).toEqual(MockView2);
91
- expect(nav['isTransitioning']).toEqual(false);
92
- }, 10000);
93
- it('should push a ViewController as the second view and fire lifecycles', async () => {
94
- const view1 = mockView();
95
- const view2 = mockView();
96
- const instance1 = spyOnLifecycles(view1);
97
- const instance2 = spyOnLifecycles(view2);
98
- mockViews(nav, [view1]);
99
- await nav.push(view2, null, null, trnsDone);
100
- expect(instance1.ionViewWillEnter).not.toHaveBeenCalled();
101
- expect(instance1.ionViewDidEnter).not.toHaveBeenCalled();
102
- expect(instance1.ionViewWillLeave).toHaveBeenCalled();
103
- expect(instance1.ionViewDidLeave).toHaveBeenCalled();
104
- expect(instance1.ionViewWillUnload).not.toHaveBeenCalled();
105
- expect(instance2.ionViewWillEnter).toHaveBeenCalled();
106
- expect(instance2.ionViewDidEnter).toHaveBeenCalled();
107
- expect(instance2.ionViewWillLeave).not.toHaveBeenCalled();
108
- expect(instance2.ionViewDidLeave).not.toHaveBeenCalled();
109
- expect(instance2.ionViewWillUnload).not.toHaveBeenCalled();
110
- const hasCompleted = true;
111
- const requiresTransition = true;
112
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view1, 'forward');
113
- expect(await nav.getLength()).toEqual(2);
114
- }, 10000);
115
- });
116
- describe('insert', () => {
117
- it('should insert at the beginning with no async transition', async () => {
118
- const view4 = mockView(MockView4);
119
- const instance4 = spyOnLifecycles(view4);
120
- const opts = {};
121
- mockViews(nav, [mockView(MockView1), mockView(MockView2), mockView(MockView3)]);
122
- await nav.insert(0, view4, null, opts, trnsDone);
123
- expect(instance4.ionViewWillEnter).not.toHaveBeenCalled();
124
- expect(instance4.ionViewDidEnter).not.toHaveBeenCalled();
125
- expect(instance4.ionViewWillLeave).not.toHaveBeenCalled();
126
- expect(instance4.ionViewDidLeave).not.toHaveBeenCalled();
127
- expect(instance4.ionViewWillUnload).not.toHaveBeenCalled();
128
- const hasCompleted = true;
129
- const requiresTransition = false;
130
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, undefined, undefined, undefined);
131
- expect(await nav.getLength()).toEqual(4);
132
- expect(nav['views'][0].component).toEqual(MockView4);
133
- expect(nav['views'][(await nav.getLength()) - 1].component).toEqual(MockView3);
134
- }, 10000);
135
- it('should insert at the end when given -1', async () => {
136
- const opts = {};
137
- const view1 = mockView(MockView1);
138
- mockViews(nav, [view1]);
139
- const view2 = mockView(MockView2);
140
- await nav.insert(-1, view2, null, opts, trnsDone);
141
- const hasCompleted = true;
142
- const requiresTransition = true;
143
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view1, 'forward');
144
- expect(await nav.getLength()).toEqual(2);
145
- expect(nav['views'][(await nav.getLength()) - 1].component).toEqual(MockView2);
146
- }, 10000);
147
- it('should insert at the end when given a number greater than actual length', async () => {
148
- const view1 = mockView(MockView1);
149
- mockViews(nav, [view1]);
150
- const view2 = mockView(MockView2);
151
- await nav.insert(9999, view2, null, null, trnsDone);
152
- const hasCompleted = true;
153
- const requiresTransition = true;
154
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view1, 'forward');
155
- expect(await nav.getLength()).toEqual(2);
156
- expect(nav['views'][(await nav.getLength()) - 1].component).toEqual(MockView2);
157
- }, 10000);
158
- it('should not insert if null view', (done) => {
159
- mockViews(nav, [mockView(MockView1)]);
160
- nav
161
- .insert(-1, null, null, null, trnsDone)
162
- .then(() => {
163
- fail('it should not succeed');
164
- })
165
- .catch(async (err) => {
166
- const hasCompleted = false;
167
- const requiresTransition = false;
168
- const rejectReason = new Error('invalid views to insert');
169
- expect(err).toEqual(rejectReason);
170
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, rejectReason);
171
- expect(await nav.getLength()).toEqual(1);
172
- expect(nav['views'][(await nav.getLength()) - 1].component).toEqual(MockView1);
173
- done();
174
- });
175
- }, 10000);
176
- });
177
- describe('insertPages', () => {
178
- it('should insert all pages in the middle', async () => {
179
- const view4 = mockView(MockView4);
180
- const instance4 = spyOnLifecycles(view4);
181
- const view1 = mockView(MockView1);
182
- const view2 = mockView(MockView2);
183
- const view3 = mockView(MockView3);
184
- mockViews(nav, [view1, view2, view3]);
185
- const view5 = mockView(MockView5);
186
- await nav.insertPages(1, [view4, view5], null, trnsDone);
187
- expect(instance4.ionViewWillEnter).not.toHaveBeenCalled();
188
- expect(instance4.ionViewDidEnter).not.toHaveBeenCalled();
189
- expect(instance4.ionViewWillLeave).not.toHaveBeenCalled();
190
- expect(instance4.ionViewDidLeave).not.toHaveBeenCalled();
191
- expect(instance4.ionViewWillUnload).not.toHaveBeenCalled();
192
- const hasCompleted = true;
193
- const requiresTransition = false;
194
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, undefined, undefined, undefined);
195
- expect(await nav.getLength()).toEqual(5);
196
- expect(nav['views'][0].component).toEqual(MockView1);
197
- expect(nav['views'][1].component).toEqual(MockView4);
198
- expect(nav['views'][2].component).toEqual(MockView5);
199
- expect(nav['views'][3].component).toEqual(MockView2);
200
- expect(nav['views'][4].component).toEqual(MockView3);
201
- expect(nav['views'][1].nav).toEqual(nav);
202
- expect(nav['views'][2].nav).toEqual(nav);
203
- }, 10000);
204
- });
205
- describe('pop', () => {
206
- it('should not pop when no views in the stack', (done) => {
207
- nav
208
- .pop(null, trnsDone)
209
- .then(() => {
210
- fail('it should not succeed');
211
- })
212
- .catch(async (err) => {
213
- const hasCompleted = false;
214
- const requiresTransition = false;
215
- const rejectReason = new Error('no views in the stack to be removed');
216
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, rejectReason);
217
- expect(err).toEqual(rejectReason);
218
- expect(await nav.getLength()).toEqual(0);
219
- expect(nav['isTransitioning']).toEqual(false);
220
- done();
221
- });
222
- }, 10000);
223
- it('should remove the last view and fire lifecycles', async () => {
224
- const view1 = mockView(MockView1);
225
- const view2 = mockView(MockView2);
226
- mockViews(nav, [view1, view2]);
227
- const instance1 = spyOnLifecycles(view1);
228
- const instance2 = spyOnLifecycles(view2);
229
- await nav.pop(null, trnsDone);
230
- expect(instance1.ionViewWillEnter).toHaveBeenCalled();
231
- expect(instance1.ionViewDidEnter).toHaveBeenCalled();
232
- expect(instance1.ionViewWillLeave).not.toHaveBeenCalled();
233
- expect(instance1.ionViewDidLeave).not.toHaveBeenCalled();
234
- expect(instance1.ionViewWillUnload).not.toHaveBeenCalled();
235
- expect(instance2.ionViewWillEnter).not.toHaveBeenCalled();
236
- expect(instance2.ionViewDidEnter).not.toHaveBeenCalled();
237
- expect(instance2.ionViewWillLeave).toHaveBeenCalled();
238
- expect(instance2.ionViewDidLeave).toHaveBeenCalled();
239
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
240
- const hasCompleted = true;
241
- const requiresTransition = true;
242
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view1, view2, 'back');
243
- expect(await nav.getLength()).toEqual(1);
244
- expect(nav['views'][0].component).toEqual(MockView1);
245
- expect(nav['isTransitioning']).toEqual(false);
246
- }, 10000);
247
- });
248
- describe('popTo', () => {
249
- it('should pop to a view', async () => {
250
- const view1 = mockView(MockView1);
251
- const view2 = mockView(MockView2);
252
- const view3 = mockView(MockView3);
253
- mockViews(nav, [view1, view2, view3]);
254
- await nav.popTo(view2, null, trnsDone);
255
- const hasCompleted = true;
256
- const requiresTransition = true;
257
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view3, 'back');
258
- expect(await nav.getLength()).toEqual(2);
259
- expect(nav['views'][0].component).toEqual(MockView1);
260
- expect(nav['views'][1].component).toEqual(MockView2);
261
- }, 10000);
262
- it('should pop to using an index number', async () => {
263
- const view1 = mockView(MockView1);
264
- const view2 = mockView(MockView2);
265
- const view3 = mockView(MockView3);
266
- const view4 = mockView(MockView4);
267
- mockViews(nav, [view1, view2, view3, view4]);
268
- await nav.popTo(1, null, trnsDone);
269
- const hasCompleted = true;
270
- const requiresTransition = true;
271
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view4, 'back');
272
- expect(await nav.getLength()).toEqual(2);
273
- expect(nav['views'][0].component).toEqual(MockView1);
274
- expect(nav['views'][1].component).toEqual(MockView2);
275
- }, 10000);
276
- it('should pop to first using an index number', async () => {
277
- const view1 = mockView(MockView1);
278
- const view2 = mockView(MockView2);
279
- const view3 = mockView(MockView3);
280
- const view4 = mockView(MockView4);
281
- mockViews(nav, [view1, view2, view3, view4]);
282
- const instance1 = spyOnLifecycles(view1);
283
- const instance2 = spyOnLifecycles(view2);
284
- const instance3 = spyOnLifecycles(view3);
285
- const instance4 = spyOnLifecycles(view4);
286
- await nav.popTo(0, null, trnsDone);
287
- expect(instance1.ionViewWillEnter).toHaveBeenCalled();
288
- expect(instance1.ionViewDidEnter).toHaveBeenCalled();
289
- expect(instance1.ionViewWillLeave).not.toHaveBeenCalled();
290
- expect(instance1.ionViewDidLeave).not.toHaveBeenCalled();
291
- expect(instance1.ionViewWillUnload).not.toHaveBeenCalled();
292
- expect(instance2.ionViewWillEnter).not.toHaveBeenCalled();
293
- expect(instance2.ionViewDidEnter).not.toHaveBeenCalled();
294
- expect(instance2.ionViewWillLeave).toHaveBeenCalled();
295
- expect(instance2.ionViewDidLeave).toHaveBeenCalled();
296
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
297
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
298
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
299
- expect(instance3.ionViewWillLeave).toHaveBeenCalled();
300
- expect(instance3.ionViewDidLeave).toHaveBeenCalled();
301
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
302
- expect(instance4.ionViewWillEnter).not.toHaveBeenCalled();
303
- expect(instance4.ionViewDidEnter).not.toHaveBeenCalled();
304
- expect(instance4.ionViewWillLeave).toHaveBeenCalled();
305
- expect(instance4.ionViewDidLeave).toHaveBeenCalled();
306
- expect(instance4.ionViewWillUnload).toHaveBeenCalled();
307
- const hasCompleted = true;
308
- const requiresTransition = true;
309
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view1, view4, 'back');
310
- expect(await nav.getLength()).toEqual(1);
311
- expect(nav['views'][0].component).toEqual(MockView1);
312
- }, 10000);
313
- });
314
- describe('popToRoot', () => {
315
- it('should pop to the first view', async () => {
316
- const view1 = mockView(MockView1);
317
- const view2 = mockView(MockView2);
318
- const view3 = mockView(MockView3);
319
- const view4 = mockView(MockView4);
320
- mockViews(nav, [view1, view2, view3, view4]);
321
- const instance1 = spyOnLifecycles(view1);
322
- const instance2 = spyOnLifecycles(view2);
323
- const instance3 = spyOnLifecycles(view3);
324
- const instance4 = spyOnLifecycles(view4);
325
- await nav.popToRoot(null, trnsDone);
326
- expect(instance1.ionViewWillEnter).toHaveBeenCalled();
327
- expect(instance1.ionViewDidEnter).toHaveBeenCalled();
328
- expect(instance1.ionViewWillLeave).not.toHaveBeenCalled();
329
- expect(instance1.ionViewDidLeave).not.toHaveBeenCalled();
330
- expect(instance1.ionViewWillUnload).not.toHaveBeenCalled();
331
- expect(instance2.ionViewWillEnter).not.toHaveBeenCalled();
332
- expect(instance2.ionViewDidEnter).not.toHaveBeenCalled();
333
- expect(instance2.ionViewWillLeave).toHaveBeenCalled();
334
- expect(instance2.ionViewDidLeave).toHaveBeenCalled();
335
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
336
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
337
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
338
- expect(instance3.ionViewWillLeave).toHaveBeenCalled();
339
- expect(instance3.ionViewDidLeave).toHaveBeenCalled();
340
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
341
- expect(instance4.ionViewWillEnter).not.toHaveBeenCalled();
342
- expect(instance4.ionViewDidEnter).not.toHaveBeenCalled();
343
- expect(instance4.ionViewWillLeave).toHaveBeenCalled();
344
- expect(instance4.ionViewDidLeave).toHaveBeenCalled();
345
- expect(instance4.ionViewWillUnload).toHaveBeenCalled();
346
- const hasCompleted = true;
347
- const requiresTransition = true;
348
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view1, view4, 'back');
349
- expect(await nav.getLength()).toEqual(1);
350
- expect(nav['views'][0].component).toEqual(MockView1);
351
- }, 10000);
352
- it("should not pop first view if it's the only view", async () => {
353
- const view1 = mockView(MockView1);
354
- mockViews(nav, [view1]);
355
- await nav.popToRoot(null, trnsDone);
356
- const hasCompleted = true;
357
- const requiresTransition = false;
358
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, undefined, undefined, undefined);
359
- expect(await nav.getLength()).toEqual(1);
360
- expect(nav['views'][0].component).toEqual(MockView1);
361
- }, 10000);
362
- });
363
- describe('remove', () => {
364
- it('should remove the first three views in the beginning, no last view transition', async () => {
365
- const view1 = mockView(MockView1);
366
- const view2 = mockView(MockView2);
367
- const view3 = mockView(MockView3);
368
- const view4 = mockView(MockView4);
369
- mockViews(nav, [view1, view2, view3, view4]);
370
- const instance1 = spyOnLifecycles(view1);
371
- const instance2 = spyOnLifecycles(view2);
372
- const instance3 = spyOnLifecycles(view3);
373
- const instance4 = spyOnLifecycles(view4);
374
- await nav.removeIndex(0, 3, null, trnsDone);
375
- expect(instance1.ionViewWillEnter).not.toHaveBeenCalled();
376
- expect(instance1.ionViewDidEnter).not.toHaveBeenCalled();
377
- expect(instance1.ionViewWillLeave).toHaveBeenCalled();
378
- expect(instance1.ionViewDidLeave).toHaveBeenCalled();
379
- expect(instance1.ionViewWillUnload).toHaveBeenCalled();
380
- expect(instance2.ionViewWillEnter).not.toHaveBeenCalled();
381
- expect(instance2.ionViewDidEnter).not.toHaveBeenCalled();
382
- expect(instance2.ionViewWillLeave).toHaveBeenCalled();
383
- expect(instance2.ionViewDidLeave).toHaveBeenCalled();
384
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
385
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
386
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
387
- expect(instance3.ionViewWillLeave).toHaveBeenCalled();
388
- expect(instance3.ionViewDidLeave).toHaveBeenCalled();
389
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
390
- expect(instance4.ionViewWillEnter).not.toHaveBeenCalled();
391
- expect(instance4.ionViewDidEnter).not.toHaveBeenCalled();
392
- expect(instance4.ionViewWillLeave).not.toHaveBeenCalled();
393
- expect(instance4.ionViewDidLeave).not.toHaveBeenCalled();
394
- expect(instance4.ionViewWillUnload).not.toHaveBeenCalled();
395
- const hasCompleted = true;
396
- const requiresTransition = false;
397
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, undefined, undefined, undefined);
398
- expect(await nav.getLength()).toEqual(1);
399
- expect(nav['views'][0].component).toEqual(MockView4);
400
- }, 10000);
401
- it('should remove two views in the middle', async () => {
402
- const view1 = mockView(MockView1);
403
- const view2 = mockView(MockView2);
404
- const view3 = mockView(MockView3);
405
- const view4 = mockView(MockView4);
406
- const view5 = mockView(MockView5);
407
- mockViews(nav, [view1, view2, view3, view4, view5]);
408
- const instance1 = spyOnLifecycles(view1);
409
- const instance2 = spyOnLifecycles(view2);
410
- const instance3 = spyOnLifecycles(view3);
411
- const instance4 = spyOnLifecycles(view4);
412
- const instance5 = spyOnLifecycles(view5);
413
- await nav.removeIndex(2, 2, null, trnsDone);
414
- expect(instance1.ionViewWillEnter).not.toHaveBeenCalled();
415
- expect(instance1.ionViewDidEnter).not.toHaveBeenCalled();
416
- expect(instance1.ionViewWillLeave).not.toHaveBeenCalled();
417
- expect(instance1.ionViewDidLeave).not.toHaveBeenCalled();
418
- expect(instance1.ionViewWillUnload).not.toHaveBeenCalled();
419
- expect(instance2.ionViewWillEnter).not.toHaveBeenCalled();
420
- expect(instance2.ionViewDidEnter).not.toHaveBeenCalled();
421
- expect(instance2.ionViewWillLeave).not.toHaveBeenCalled();
422
- expect(instance2.ionViewDidLeave).not.toHaveBeenCalled();
423
- expect(instance2.ionViewWillUnload).not.toHaveBeenCalled();
424
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
425
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
426
- expect(instance3.ionViewWillLeave).toHaveBeenCalled();
427
- expect(instance3.ionViewDidLeave).toHaveBeenCalled();
428
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
429
- expect(instance4.ionViewWillEnter).not.toHaveBeenCalled();
430
- expect(instance4.ionViewDidEnter).not.toHaveBeenCalled();
431
- expect(instance4.ionViewWillLeave).toHaveBeenCalled();
432
- expect(instance4.ionViewDidLeave).toHaveBeenCalled();
433
- expect(instance4.ionViewWillUnload).toHaveBeenCalled();
434
- expect(instance5.ionViewWillEnter).not.toHaveBeenCalled();
435
- expect(instance5.ionViewDidEnter).not.toHaveBeenCalled();
436
- expect(instance5.ionViewWillLeave).not.toHaveBeenCalled();
437
- expect(instance5.ionViewDidLeave).not.toHaveBeenCalled();
438
- expect(instance5.ionViewWillUnload).not.toHaveBeenCalled();
439
- const hasCompleted = true;
440
- const requiresTransition = false;
441
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, undefined, undefined, undefined);
442
- expect(await nav.getLength()).toEqual(3);
443
- expect(nav['views'][0].component).toEqual(MockView1);
444
- expect(nav['views'][1].component).toEqual(MockView2);
445
- expect(nav['views'][2].component).toEqual(MockView5);
446
- }, 10000);
447
- it('should remove the last two views at the end', async () => {
448
- const view1 = mockView(MockView1);
449
- const view2 = mockView(MockView2);
450
- const view3 = mockView(MockView3);
451
- const view4 = mockView(MockView4);
452
- mockViews(nav, [view1, view2, view3, view4]);
453
- const instance1 = spyOnLifecycles(view1);
454
- const instance2 = spyOnLifecycles(view2);
455
- const instance3 = spyOnLifecycles(view3);
456
- const instance4 = spyOnLifecycles(view4);
457
- await nav.removeIndex(2, 2, null, trnsDone);
458
- expect(instance1.ionViewWillEnter).not.toHaveBeenCalled();
459
- expect(instance1.ionViewDidEnter).not.toHaveBeenCalled();
460
- expect(instance1.ionViewWillLeave).not.toHaveBeenCalled();
461
- expect(instance1.ionViewDidLeave).not.toHaveBeenCalled();
462
- expect(instance1.ionViewWillUnload).not.toHaveBeenCalled();
463
- expect(instance2.ionViewWillEnter).toHaveBeenCalled();
464
- expect(instance2.ionViewDidEnter).toHaveBeenCalled();
465
- expect(instance2.ionViewWillLeave).not.toHaveBeenCalled();
466
- expect(instance2.ionViewDidLeave).not.toHaveBeenCalled();
467
- expect(instance2.ionViewWillUnload).not.toHaveBeenCalled();
468
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
469
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
470
- expect(instance3.ionViewWillLeave).toHaveBeenCalled();
471
- expect(instance3.ionViewDidLeave).toHaveBeenCalled();
472
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
473
- expect(instance4.ionViewWillEnter).not.toHaveBeenCalled();
474
- expect(instance4.ionViewDidEnter).not.toHaveBeenCalled();
475
- expect(instance4.ionViewWillLeave).toHaveBeenCalled();
476
- expect(instance4.ionViewDidLeave).toHaveBeenCalled();
477
- expect(instance4.ionViewWillUnload).toHaveBeenCalled();
478
- const hasCompleted = true;
479
- const requiresTransition = true;
480
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view4, 'back');
481
- expect(await nav.getLength()).toEqual(2);
482
- expect(nav['views'][0].component).toEqual(MockView1);
483
- expect(nav['views'][1].component).toEqual(MockView2);
484
- }, 10000);
485
- });
486
- describe('setRoot', () => {
487
- it('should set a ViewController as the root when its the last view, no transition', async () => {
488
- const view1 = mockView(MockView1);
489
- const view2 = mockView(MockView2);
490
- const view3 = mockView(MockView3);
491
- mockViews(nav, [view1, view2, view3]);
492
- const instance1 = spyOnLifecycles(view1);
493
- const instance2 = spyOnLifecycles(view2);
494
- const instance3 = spyOnLifecycles(view3);
495
- await nav.setRoot(view3, null, null, trnsDone);
496
- expect(instance1.ionViewWillEnter).not.toHaveBeenCalled();
497
- expect(instance1.ionViewDidEnter).not.toHaveBeenCalled();
498
- expect(instance1.ionViewWillLeave).toHaveBeenCalled();
499
- expect(instance1.ionViewDidLeave).toHaveBeenCalled();
500
- expect(instance1.ionViewWillUnload).toHaveBeenCalled();
501
- expect(instance2.ionViewWillEnter).not.toHaveBeenCalled();
502
- expect(instance2.ionViewDidEnter).not.toHaveBeenCalled();
503
- expect(instance2.ionViewWillLeave).toHaveBeenCalled();
504
- expect(instance2.ionViewDidLeave).toHaveBeenCalled();
505
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
506
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
507
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
508
- expect(instance3.ionViewWillLeave).not.toHaveBeenCalled();
509
- expect(instance3.ionViewDidLeave).not.toHaveBeenCalled();
510
- expect(instance3.ionViewWillUnload).not.toHaveBeenCalled();
511
- const hasCompleted = true;
512
- const requiresTransition = false;
513
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, undefined, undefined, undefined);
514
- expect(await nav.getLength()).toEqual(1);
515
- expect(nav['views'][0].component).toEqual(MockView3);
516
- }, 10000);
517
- it('should set a ViewController as the root when its the middle view, with transition', async () => {
518
- const view1 = mockView(MockView1);
519
- const view2 = mockView(MockView2);
520
- const view3 = mockView(MockView3);
521
- mockViews(nav, [view1, view2, view3]);
522
- const instance1 = spyOnLifecycles(view1);
523
- const instance2 = spyOnLifecycles(view2);
524
- const instance3 = spyOnLifecycles(view3);
525
- await nav.setRoot(view2, null, null, trnsDone);
526
- expect(instance1.ionViewWillEnter).not.toHaveBeenCalled();
527
- expect(instance1.ionViewDidEnter).not.toHaveBeenCalled();
528
- expect(instance1.ionViewWillLeave).toHaveBeenCalled();
529
- expect(instance1.ionViewDidLeave).toHaveBeenCalled();
530
- expect(instance1.ionViewWillUnload).toHaveBeenCalled();
531
- expect(instance2.ionViewWillEnter).toHaveBeenCalled();
532
- expect(instance2.ionViewDidEnter).toHaveBeenCalled();
533
- expect(instance2.ionViewWillLeave).not.toHaveBeenCalled();
534
- expect(instance2.ionViewDidLeave).not.toHaveBeenCalled();
535
- expect(instance2.ionViewWillUnload).not.toHaveBeenCalled();
536
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
537
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
538
- expect(instance3.ionViewWillLeave).toHaveBeenCalled();
539
- expect(instance3.ionViewDidLeave).toHaveBeenCalled();
540
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
541
- const hasCompleted = true;
542
- const requiresTransition = true;
543
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view2, view3, 'back');
544
- expect(await nav.getLength()).toEqual(1);
545
- expect(nav['views'][0].component).toEqual(MockView2);
546
- }, 10000);
547
- it('should set a ViewController as the root when its the first view, with transition', async () => {
548
- const view1 = mockView(MockView1);
549
- const view2 = mockView(MockView2);
550
- const view3 = mockView(MockView3);
551
- mockViews(nav, [view1, view2, view3]);
552
- const instance1 = spyOnLifecycles(view1);
553
- const instance2 = spyOnLifecycles(view2);
554
- const instance3 = spyOnLifecycles(view3);
555
- await nav.setRoot(view1, null, null, trnsDone);
556
- expect(instance1.ionViewWillEnter).toHaveBeenCalled();
557
- expect(instance1.ionViewDidEnter).toHaveBeenCalled();
558
- expect(instance1.ionViewWillLeave).not.toHaveBeenCalled();
559
- expect(instance1.ionViewDidLeave).not.toHaveBeenCalled();
560
- expect(instance1.ionViewWillUnload).not.toHaveBeenCalled();
561
- expect(instance2.ionViewWillEnter).not.toHaveBeenCalled();
562
- expect(instance2.ionViewDidEnter).not.toHaveBeenCalled();
563
- expect(instance2.ionViewWillLeave).toHaveBeenCalled();
564
- expect(instance2.ionViewDidLeave).toHaveBeenCalled();
565
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
566
- expect(instance3.ionViewWillEnter).not.toHaveBeenCalled();
567
- expect(instance3.ionViewDidEnter).not.toHaveBeenCalled();
568
- expect(instance3.ionViewWillLeave).toHaveBeenCalled();
569
- expect(instance3.ionViewDidLeave).toHaveBeenCalled();
570
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
571
- const hasCompleted = true;
572
- const requiresTransition = true;
573
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view1, view3, 'back');
574
- expect(await nav.getLength()).toEqual(1);
575
- expect(nav['views'][0].component).toEqual(MockView1);
576
- }, 10000);
577
- it('should set a page component as the root, with transition', async () => {
578
- const view1 = mockView(MockView1);
579
- const view2 = mockView(MockView2);
580
- const view3 = mockView(MockView3);
581
- mockViews(nav, [view1, view2, view3]);
582
- const instance1 = spyOnLifecycles(view1);
583
- const instance2 = spyOnLifecycles(view2);
584
- const instance3 = spyOnLifecycles(view3);
585
- const view4 = mockView(MockView4);
586
- await nav.setRoot(view4, null, null, trnsDone);
587
- expect(instance1.ionViewWillUnload).toHaveBeenCalled();
588
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
589
- expect(instance3.ionViewWillUnload).toHaveBeenCalled();
590
- const hasCompleted = true;
591
- const requiresTransition = true;
592
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view4, view3, 'back');
593
- expect(await nav.getLength()).toEqual(1);
594
- expect(nav['views'][0].component).toEqual(MockView4);
595
- }, 10000);
596
- });
597
- describe('setPages', () => {
598
- it('should set the pages from an array, starting at the root, with transition', async () => {
599
- const view1 = mockView(MockView1);
600
- const view2 = mockView(MockView2);
601
- mockViews(nav, [view1, view2]);
602
- const instance1 = spyOnLifecycles(view1);
603
- const instance2 = spyOnLifecycles(view2);
604
- const view4 = mockView(MockView4);
605
- const view5 = mockView(MockView5);
606
- await nav.setPages([{ component: view4 }, { component: view5 }], null, trnsDone);
607
- expect(instance1.ionViewWillUnload).toHaveBeenCalled();
608
- expect(instance2.ionViewWillUnload).toHaveBeenCalled();
609
- const hasCompleted = true;
610
- const requiresTransition = true;
611
- expect(trnsDone).toHaveBeenCalledWith(hasCompleted, requiresTransition, view5, view2, 'back');
612
- expect(await nav.getLength()).toEqual(2);
613
- expect(nav['views'][0].component).toEqual(MockView4);
614
- expect(nav['views'][1].component).toEqual(MockView5);
615
- }, 10000);
616
- });
617
- describe('canStart', () => {
618
- it('should not swipe back when its not enabled', () => {
619
- nav.swipeGesture = false;
620
- const view1 = mockView();
621
- const view2 = mockView();
622
- mockViews(nav, [view1, view2]);
623
- const result = nav['canStart']();
624
- expect(result).toEqual(false);
625
- });
626
- it('should swipe back when has a view to go back to', () => {
627
- nav.swipeGesture = true;
628
- const view1 = mockView();
629
- const view2 = mockView();
630
- mockViews(nav, [view1, view2]);
631
- const result = nav['canStart']();
632
- expect(result).toEqual(true);
633
- });
634
- });
635
- function spyOnLifecycles(view) {
636
- const element = view.element;
637
- Object.assign(element, {
638
- ionViewWillEnter: () => {
639
- return;
640
- },
641
- ionViewDidEnter: () => {
642
- return;
643
- },
644
- ionViewWillLeave: () => {
645
- return;
646
- },
647
- ionViewDidLeave: () => {
648
- return;
649
- },
650
- ionViewWillUnload: () => {
651
- return;
652
- },
653
- });
654
- const instance = {
655
- ionViewWillEnter: jest.spyOn(element, 'ionViewWillEnter'),
656
- ionViewDidEnter: jest.spyOn(element, 'ionViewDidEnter'),
657
- ionViewWillLeave: jest.spyOn(element, 'ionViewWillLeave'),
658
- ionViewDidLeave: jest.spyOn(element, 'ionViewDidLeave'),
659
- ionViewWillUnload: jest.spyOn(element, 'ionViewWillUnload'),
660
- };
661
- element.dispatchEvent = (ev) => {
662
- switch (ev.type) {
663
- case 'ionViewWillEnter':
664
- element.ionViewWillEnter();
665
- break;
666
- case 'ionViewDidEnter':
667
- element.ionViewDidEnter();
668
- break;
669
- case 'ionViewWillLeave':
670
- element.ionViewWillLeave();
671
- break;
672
- case 'ionViewDidLeave':
673
- element.ionViewDidLeave();
674
- break;
675
- case 'ionViewWillUnload':
676
- element.ionViewWillUnload();
677
- break;
678
- }
679
- };
680
- return instance;
681
- }
682
- let trnsDone;
683
- let nav;
684
- beforeEach(async () => {
685
- trnsDone = jest.fn();
686
- const page = await newSpecPage({
687
- components: [Nav],
688
- html: `<ion-nav></ion-nav>`,
689
- autoApplyChanges: true,
690
- });
691
- nav = page.rootInstance;
692
- });
693
- const MockView = 'mock-view';
694
- const MockView1 = 'mock-view1';
695
- const MockView2 = 'mock-view2';
696
- const MockView3 = 'mock-view3';
697
- const MockView4 = 'mock-view4';
698
- const MockView5 = 'mock-view5';
699
- const mockWebAnimation = (el) => {
700
- Element.prototype.animate = jest.fn();
701
- el.animate = () => {
702
- const animation = {
703
- stop: jest.fn(),
704
- pause: jest.fn(),
705
- cancel: jest.fn(),
706
- onfinish: undefined,
707
- };
708
- animation.play = () => {
709
- if (animation.onfinish) {
710
- animation.onfinish();
711
- }
712
- };
713
- return animation;
714
- };
715
- };
716
- function mockView(component, params) {
717
- if (!component) {
718
- component = MockView;
719
- }
720
- const view = new ViewController(component, params);
721
- view.element = document.createElement(component);
722
- mockWebAnimation(view.element);
723
- return view;
724
- }
725
- function mockViews(navI, views) {
726
- navI['views'] = views;
727
- views.forEach((v) => {
728
- v.nav = navI;
729
- });
730
- }
731
- // function mockNavController(): Promise<Nav> {
732
- // const navI = new Nav() as any;
733
- // navI.animated = false;
734
- // navI.el = win.document.createElement('ion-nav');
735
- // navI.win = win;
736
- // navI.queue = { write: (fn: any) => fn(), read: (fn: any) => fn() };
737
- // navI.config = new Config();
738
- // navI.config.reset({ animated: false });
739
- // navI._viewInit = (enteringView: ViewController) => {
740
- // if (!enteringView.element) {
741
- // enteringView.element = (typeof enteringView.component === 'string')
742
- // ? win.document.createElement(enteringView.component)
743
- // : enteringView.element = enteringView.component as HTMLElement;
744
- // }
745
- // enteringView.state = VIEW_STATE_ATTACHED;
746
- // };
747
- // return navI;
748
- // }
749
- });