@ionic/core 8.4.2-dev.11736277041.14f34ba1 → 8.4.2-dev.11736797843.16cc5058

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 (591) hide show
  1. package/components/action-sheet.js +32 -16
  2. package/components/alert.js +36 -18
  3. package/components/backdrop.js +9 -0
  4. package/components/button.js +25 -17
  5. package/components/buttons.js +12 -0
  6. package/components/checkbox.js +32 -9
  7. package/components/content.js +22 -2
  8. package/components/focus-visible.js +34 -4
  9. package/components/header.js +9 -2
  10. package/components/ion-accordion-group.js +17 -2
  11. package/components/ion-accordion.js +28 -8
  12. package/components/ion-back-button.js +8 -7
  13. package/components/ion-badge.js +0 -1
  14. package/components/ion-breadcrumb.js +17 -13
  15. package/components/ion-breadcrumbs.js +12 -6
  16. package/components/ion-card-header.js +5 -1
  17. package/components/ion-card-subtitle.js +0 -1
  18. package/components/ion-card-title.js +0 -1
  19. package/components/ion-card.js +13 -6
  20. package/components/ion-chip.js +6 -1
  21. package/components/ion-col.js +0 -24
  22. package/components/ion-datetime-button.js +12 -8
  23. package/components/ion-datetime.js +117 -42
  24. package/components/ion-fab-button.js +33 -14
  25. package/components/ion-fab-list.js +6 -0
  26. package/components/ion-fab.js +9 -2
  27. package/components/ion-footer.js +10 -3
  28. package/components/ion-grid.js +3 -0
  29. package/components/ion-img.js +0 -4
  30. package/components/ion-infinite-scroll-content.js +0 -2
  31. package/components/ion-infinite-scroll.js +26 -4
  32. package/components/ion-input-password-toggle.js +4 -4
  33. package/components/ion-input.js +65 -35
  34. package/components/ion-item-divider.js +7 -1
  35. package/components/ion-item-option.js +12 -8
  36. package/components/ion-item-options.js +4 -0
  37. package/components/ion-item-sliding.js +3 -0
  38. package/components/ion-loading.js +31 -12
  39. package/components/ion-menu-button.js +12 -5
  40. package/components/ion-menu-toggle.js +8 -3
  41. package/components/ion-menu.js +21 -3
  42. package/components/ion-nav-link.js +4 -4
  43. package/components/ion-nav.js +3 -5
  44. package/components/ion-note.js +0 -1
  45. package/components/ion-picker-legacy.js +39 -17
  46. package/components/ion-progress-bar.js +16 -1
  47. package/components/ion-range.js +61 -19
  48. package/components/ion-refresher-content.js +0 -4
  49. package/components/ion-refresher.js +50 -0
  50. package/components/ion-reorder-group.js +3 -0
  51. package/components/ion-route-redirect.js +0 -2
  52. package/components/ion-route.js +6 -4
  53. package/components/ion-router-link.js +5 -6
  54. package/components/ion-router-outlet.js +6 -3
  55. package/components/ion-router.js +18 -0
  56. package/components/ion-searchbar.js +75 -24
  57. package/components/ion-segment-button.js +17 -6
  58. package/components/ion-segment-view.js +3 -1
  59. package/components/ion-segment.js +20 -7
  60. package/components/ion-select-option.js +3 -1
  61. package/components/ion-select.js +45 -20
  62. package/components/ion-skeleton-text.js +3 -0
  63. package/components/ion-split-pane.js +8 -1
  64. package/components/ion-tab-bar.js +5 -2
  65. package/components/ion-tab-button.js +8 -8
  66. package/components/ion-tab.js +1 -3
  67. package/components/ion-tabs.js +2 -2
  68. package/components/ion-text.js +0 -1
  69. package/components/ion-textarea.js +59 -29
  70. package/components/ion-toast.js +48 -23
  71. package/components/ion-toggle.js +33 -10
  72. package/components/item.js +16 -8
  73. package/components/label.js +0 -2
  74. package/components/list-header.js +0 -2
  75. package/components/list.js +3 -1
  76. package/components/modal.js +92 -25
  77. package/components/picker-column-option.js +16 -1
  78. package/components/picker-column.js +22 -6
  79. package/components/picker-column2.js +0 -1
  80. package/components/popover.js +122 -28
  81. package/components/radio-group.js +8 -4
  82. package/components/radio.js +25 -9
  83. package/components/ripple-effect.js +9 -0
  84. package/components/select-modal.js +3 -5
  85. package/components/select-popover.js +3 -4
  86. package/components/spinner.js +3 -3
  87. package/components/title.js +0 -2
  88. package/components/toolbar.js +0 -1
  89. package/dist/cjs/{app-globals-21afee77.js → app-globals-d2d85416.js} +1 -1
  90. package/dist/cjs/{button-active-3f2f60b4.js → button-active-8d4c8099.js} +1 -1
  91. package/dist/cjs/{focus-visible-8657bbbf.js → focus-visible-7a0ce04f.js} +34 -4
  92. package/dist/cjs/{hardware-back-button-9e8a2c4f.js → hardware-back-button-f0972dab.js} +2 -2
  93. package/dist/cjs/{index-f05acd21.js → index-213cabf1.js} +4 -4
  94. package/dist/cjs/{index-73f75efb.js → index-2e7a27db.js} +1205 -837
  95. package/dist/cjs/{index-8e789962.js → index-38a015a8.js} +2 -2
  96. package/dist/cjs/index.cjs.js +8 -8
  97. package/dist/cjs/ion-accordion_2.cjs.entry.js +47 -12
  98. package/dist/cjs/ion-action-sheet.cjs.entry.js +37 -21
  99. package/dist/cjs/ion-alert.cjs.entry.js +41 -23
  100. package/dist/cjs/ion-app_8.cjs.entry.js +66 -20
  101. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -3
  102. package/dist/cjs/ion-back-button.cjs.entry.js +10 -9
  103. package/dist/cjs/ion-backdrop.cjs.entry.js +11 -2
  104. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +31 -21
  105. package/dist/cjs/ion-button_2.cjs.entry.js +27 -19
  106. package/dist/cjs/ion-card_5.cjs.entry.js +20 -11
  107. package/dist/cjs/ion-checkbox.cjs.entry.js +34 -11
  108. package/dist/cjs/ion-chip.cjs.entry.js +8 -3
  109. package/dist/cjs/ion-col_3.cjs.entry.js +5 -26
  110. package/dist/cjs/ion-datetime-button.cjs.entry.js +14 -10
  111. package/dist/cjs/ion-datetime_3.cjs.entry.js +161 -65
  112. package/dist/cjs/ion-fab_3.cjs.entry.js +50 -18
  113. package/dist/cjs/ion-img.cjs.entry.js +2 -6
  114. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +28 -8
  115. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +6 -6
  116. package/dist/cjs/ion-input.cjs.entry.js +67 -37
  117. package/dist/cjs/ion-item-option_3.cjs.entry.js +21 -10
  118. package/dist/cjs/ion-item_8.cjs.entry.js +31 -17
  119. package/dist/cjs/ion-loading.cjs.entry.js +35 -16
  120. package/dist/cjs/ion-menu_3.cjs.entry.js +46 -16
  121. package/dist/cjs/ion-modal.cjs.entry.js +97 -30
  122. package/dist/cjs/ion-nav_2.cjs.entry.js +10 -12
  123. package/dist/cjs/ion-picker-column-option.cjs.entry.js +18 -3
  124. package/dist/cjs/ion-picker-column.cjs.entry.js +24 -8
  125. package/dist/cjs/ion-picker.cjs.entry.js +1 -1
  126. package/dist/cjs/ion-popover.cjs.entry.js +127 -33
  127. package/dist/cjs/ion-progress-bar.cjs.entry.js +18 -3
  128. package/dist/cjs/ion-radio_2.cjs.entry.js +35 -15
  129. package/dist/cjs/ion-range.cjs.entry.js +63 -21
  130. package/dist/cjs/ion-refresher_2.cjs.entry.js +52 -6
  131. package/dist/cjs/ion-reorder_2.cjs.entry.js +5 -2
  132. package/dist/cjs/ion-ripple-effect.cjs.entry.js +11 -2
  133. package/dist/cjs/ion-route_4.cjs.entry.js +31 -14
  134. package/dist/cjs/ion-searchbar.cjs.entry.js +77 -26
  135. package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
  136. package/dist/cjs/ion-segment-view.cjs.entry.js +4 -2
  137. package/dist/cjs/ion-segment_2.cjs.entry.js +39 -15
  138. package/dist/cjs/ion-select-modal.cjs.entry.js +7 -9
  139. package/dist/cjs/ion-select_3.cjs.entry.js +55 -29
  140. package/dist/cjs/ion-spinner.cjs.entry.js +5 -5
  141. package/dist/cjs/ion-split-pane.cjs.entry.js +10 -3
  142. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +15 -12
  143. package/dist/cjs/ion-tab_2.cjs.entry.js +4 -6
  144. package/dist/cjs/ion-text.cjs.entry.js +2 -3
  145. package/dist/cjs/ion-textarea.cjs.entry.js +61 -31
  146. package/dist/cjs/ion-toast.cjs.entry.js +52 -27
  147. package/dist/cjs/ion-toggle.cjs.entry.js +35 -12
  148. package/dist/cjs/{ionic-global-d9a8bb5b.js → ionic-global-3c758a1a.js} +1 -1
  149. package/dist/cjs/ionic.cjs.js +4 -4
  150. package/dist/cjs/{ios.transition-cf40433b.js → ios.transition-ac964d6c.js} +3 -3
  151. package/dist/cjs/loader.cjs.js +3 -3
  152. package/dist/cjs/{md.transition-ededf99f.js → md.transition-45089eda.js} +3 -3
  153. package/dist/cjs/{overlays-aa669eb8.js → overlays-56fecd6c.js} +2 -2
  154. package/dist/cjs/{status-tap-37681226.js → status-tap-84e22ef3.js} +1 -1
  155. package/dist/collection/collection-manifest.json +2 -2
  156. package/dist/collection/components/accordion/accordion.js +38 -8
  157. package/dist/collection/components/accordion-group/accordion-group.js +29 -2
  158. package/dist/collection/components/action-sheet/action-sheet.js +68 -20
  159. package/dist/collection/components/alert/alert.js +76 -22
  160. package/dist/collection/components/back-button/back-button.js +23 -8
  161. package/dist/collection/components/backdrop/backdrop.js +15 -0
  162. package/dist/collection/components/badge/badge.js +2 -3
  163. package/dist/collection/components/breadcrumb/breadcrumb.js +44 -14
  164. package/dist/collection/components/breadcrumbs/breadcrumbs.js +20 -6
  165. package/dist/collection/components/button/button.js +58 -18
  166. package/dist/collection/components/buttons/buttons.js +14 -0
  167. package/dist/collection/components/card/card.js +34 -7
  168. package/dist/collection/components/card-header/card-header.js +9 -1
  169. package/dist/collection/components/card-subtitle/card-subtitle.js +2 -3
  170. package/dist/collection/components/card-title/card-title.js +2 -3
  171. package/dist/collection/components/checkbox/checkbox.js +50 -9
  172. package/dist/collection/components/chip/chip.js +12 -1
  173. package/dist/collection/components/col/col.js +48 -26
  174. package/dist/collection/components/content/content.js +36 -2
  175. package/dist/collection/components/datetime/datetime.js +181 -46
  176. package/dist/collection/components/datetime-button/datetime-button.js +18 -8
  177. package/dist/collection/components/fab/fab.js +17 -2
  178. package/dist/collection/components/fab-button/fab-button.js +62 -15
  179. package/dist/collection/components/fab-list/fab-list.js +10 -0
  180. package/dist/collection/components/footer/footer.js +14 -3
  181. package/dist/collection/components/grid/grid.js +5 -0
  182. package/dist/collection/components/header/header.js +13 -2
  183. package/dist/collection/components/img/img.js +4 -4
  184. package/dist/collection/components/infinite-scroll/infinite-scroll.js +32 -4
  185. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +4 -2
  186. package/dist/collection/components/input/input.js +134 -36
  187. package/dist/collection/components/input-password-toggle/input-password-toggle.js +12 -4
  188. package/dist/collection/components/item/item.js +43 -9
  189. package/dist/collection/components/item-divider/item-divider.js +11 -1
  190. package/dist/collection/components/item-option/item-option.js +28 -8
  191. package/dist/collection/components/item-options/item-options.js +6 -0
  192. package/dist/collection/components/item-sliding/item-sliding.js +5 -0
  193. package/dist/collection/components/label/label.js +4 -2
  194. package/dist/collection/components/list/list.js +7 -1
  195. package/dist/collection/components/list-header/list-header.js +4 -4
  196. package/dist/collection/components/loading/loading.js +69 -16
  197. package/dist/collection/components/menu/menu.js +35 -3
  198. package/dist/collection/components/menu-button/menu-button.js +22 -5
  199. package/dist/collection/components/menu-toggle/menu-toggle.js +12 -3
  200. package/dist/collection/components/modal/modal.js +147 -32
  201. package/dist/collection/components/nav/nav.js +18 -8
  202. package/dist/collection/components/nav-link/nav-link.js +14 -6
  203. package/dist/collection/components/note/note.js +2 -3
  204. package/dist/collection/components/picker-column/picker-column.js +30 -6
  205. package/dist/collection/components/picker-column-option/picker-column-option.js +22 -1
  206. package/dist/collection/components/picker-legacy/picker.js +75 -21
  207. package/dist/collection/components/picker-legacy-column/picker-column.js +3 -2
  208. package/dist/collection/components/popover/popover.js +181 -33
  209. package/dist/collection/components/progress-bar/progress-bar.js +26 -1
  210. package/dist/collection/components/radio/radio.js +39 -9
  211. package/dist/collection/components/radio-group/radio-group.js +16 -4
  212. package/dist/collection/components/range/range.js +93 -19
  213. package/dist/collection/components/refresher/refresher.js +62 -0
  214. package/dist/collection/components/refresher-content/refresher-content.js +8 -4
  215. package/dist/collection/components/reorder-group/reorder-group.js +5 -0
  216. package/dist/collection/components/ripple-effect/ripple-effect.js +11 -0
  217. package/dist/collection/components/route/route.js +19 -7
  218. package/dist/collection/components/route-redirect/route-redirect.js +4 -4
  219. package/dist/collection/components/router/router.js +22 -0
  220. package/dist/collection/components/router-link/router-link.js +18 -7
  221. package/dist/collection/components/router-outlet/router-outlet.js +19 -6
  222. package/dist/collection/components/searchbar/searchbar.js +119 -24
  223. package/dist/collection/components/segment/segment.js +32 -7
  224. package/dist/collection/components/segment-button/segment-button.js +27 -6
  225. package/dist/collection/components/segment-view/segment-view.js +5 -1
  226. package/dist/collection/components/select/select.js +83 -20
  227. package/dist/collection/components/select-modal/select-modal.ios.css +186 -0
  228. package/dist/collection/components/select-modal/select-modal.js +8 -4
  229. package/dist/collection/components/select-option/select-option.js +7 -1
  230. package/dist/collection/components/select-popover/select-popover.js +13 -4
  231. package/dist/collection/components/skeleton-text/skeleton-text.js +5 -0
  232. package/dist/collection/components/spinner/spinner.js +11 -3
  233. package/dist/collection/components/split-pane/split-pane.js +14 -1
  234. package/dist/collection/components/tab/tab.js +10 -4
  235. package/dist/collection/components/tab-bar/tab-bar.js +11 -2
  236. package/dist/collection/components/tab-button/tab-button.js +24 -8
  237. package/dist/collection/components/tabs/tabs.js +4 -2
  238. package/dist/collection/components/text/text.js +2 -3
  239. package/dist/collection/components/textarea/textarea.js +116 -30
  240. package/dist/collection/components/title/title.js +4 -4
  241. package/dist/collection/components/toast/toast.js +97 -28
  242. package/dist/collection/components/toggle/toggle.js +51 -10
  243. package/dist/collection/components/toolbar/toolbar.js +2 -1
  244. package/dist/collection/utils/focus-visible.js +34 -4
  245. package/dist/docs.d.ts +8 -0
  246. package/dist/docs.json +1710 -572
  247. package/dist/esm/{app-globals-5dbb61a5.js → app-globals-1318774c.js} +1 -1
  248. package/dist/esm/{button-active-f6503382.js → button-active-10b36beb.js} +1 -1
  249. package/dist/esm/{focus-visible-ea5a37bc.js → focus-visible-dd40d69f.js} +34 -4
  250. package/dist/esm/{hardware-back-button-06ef3c3e.js → hardware-back-button-0a284222.js} +2 -2
  251. package/dist/esm/{index-3ad7f18b.js → index-13b48bcb.js} +4 -4
  252. package/dist/esm/{index-24b48b06.js → index-ed9a6c67.js} +2 -2
  253. package/dist/esm/{index-28849c61.js → index-fcdfc1aa.js} +1205 -837
  254. package/dist/esm/index.js +8 -8
  255. package/dist/esm/ion-accordion_2.entry.js +47 -12
  256. package/dist/esm/ion-action-sheet.entry.js +37 -21
  257. package/dist/esm/ion-alert.entry.js +41 -23
  258. package/dist/esm/ion-app_8.entry.js +66 -20
  259. package/dist/esm/ion-avatar_3.entry.js +2 -3
  260. package/dist/esm/ion-back-button.entry.js +10 -9
  261. package/dist/esm/ion-backdrop.entry.js +11 -2
  262. package/dist/esm/ion-breadcrumb_2.entry.js +31 -21
  263. package/dist/esm/ion-button_2.entry.js +27 -19
  264. package/dist/esm/ion-card_5.entry.js +20 -11
  265. package/dist/esm/ion-checkbox.entry.js +34 -11
  266. package/dist/esm/ion-chip.entry.js +8 -3
  267. package/dist/esm/ion-col_3.entry.js +5 -26
  268. package/dist/esm/ion-datetime-button.entry.js +14 -10
  269. package/dist/esm/ion-datetime_3.entry.js +161 -65
  270. package/dist/esm/ion-fab_3.entry.js +50 -18
  271. package/dist/esm/ion-img.entry.js +2 -6
  272. package/dist/esm/ion-infinite-scroll_2.entry.js +28 -8
  273. package/dist/esm/ion-input-password-toggle.entry.js +6 -6
  274. package/dist/esm/ion-input.entry.js +67 -37
  275. package/dist/esm/ion-item-option_3.entry.js +21 -10
  276. package/dist/esm/ion-item_8.entry.js +31 -17
  277. package/dist/esm/ion-loading.entry.js +35 -16
  278. package/dist/esm/ion-menu_3.entry.js +46 -16
  279. package/dist/esm/ion-modal.entry.js +97 -30
  280. package/dist/esm/ion-nav_2.entry.js +10 -12
  281. package/dist/esm/ion-picker-column-option.entry.js +18 -3
  282. package/dist/esm/ion-picker-column.entry.js +24 -8
  283. package/dist/esm/ion-picker.entry.js +1 -1
  284. package/dist/esm/ion-popover.entry.js +127 -33
  285. package/dist/esm/ion-progress-bar.entry.js +18 -3
  286. package/dist/esm/ion-radio_2.entry.js +35 -15
  287. package/dist/esm/ion-range.entry.js +63 -21
  288. package/dist/esm/ion-refresher_2.entry.js +52 -6
  289. package/dist/esm/ion-reorder_2.entry.js +5 -2
  290. package/dist/esm/ion-ripple-effect.entry.js +11 -2
  291. package/dist/esm/ion-route_4.entry.js +31 -14
  292. package/dist/esm/ion-searchbar.entry.js +77 -26
  293. package/dist/esm/ion-segment-content.entry.js +1 -1
  294. package/dist/esm/ion-segment-view.entry.js +4 -2
  295. package/dist/esm/ion-segment_2.entry.js +39 -15
  296. package/dist/esm/ion-select-modal.entry.js +7 -9
  297. package/dist/esm/ion-select_3.entry.js +55 -29
  298. package/dist/esm/ion-spinner.entry.js +5 -5
  299. package/dist/esm/ion-split-pane.entry.js +10 -3
  300. package/dist/esm/ion-tab-bar_2.entry.js +15 -12
  301. package/dist/esm/ion-tab_2.entry.js +4 -6
  302. package/dist/esm/ion-text.entry.js +2 -3
  303. package/dist/esm/ion-textarea.entry.js +61 -31
  304. package/dist/esm/ion-toast.entry.js +52 -27
  305. package/dist/esm/ion-toggle.entry.js +35 -12
  306. package/dist/esm/{ionic-global-c81d82ab.js → ionic-global-6b9f2b5a.js} +1 -1
  307. package/dist/esm/ionic.js +5 -5
  308. package/dist/esm/{ios.transition-4ee1a3af.js → ios.transition-1cb16beb.js} +3 -3
  309. package/dist/esm/loader.js +4 -4
  310. package/dist/esm/{md.transition-5106a0d2.js → md.transition-20f80721.js} +3 -3
  311. package/dist/esm/{overlays-e7b9d6d9.js → overlays-6163edd5.js} +2 -2
  312. package/dist/esm/{status-tap-f472b09f.js → status-tap-6971c722.js} +1 -1
  313. package/dist/esm-es5/app-globals-1318774c.js +4 -0
  314. package/dist/esm-es5/{button-active-f6503382.js → button-active-10b36beb.js} +1 -1
  315. package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
  316. package/dist/esm-es5/{hardware-back-button-06ef3c3e.js → hardware-back-button-0a284222.js} +1 -1
  317. package/dist/esm-es5/{index-3ad7f18b.js → index-13b48bcb.js} +1 -1
  318. package/dist/esm-es5/{index-24b48b06.js → index-ed9a6c67.js} +1 -1
  319. package/dist/esm-es5/index-fcdfc1aa.js +5 -0
  320. package/dist/esm-es5/index.js +1 -1
  321. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  322. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  323. package/dist/esm-es5/ion-alert.entry.js +1 -1
  324. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  325. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  326. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  327. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  328. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  329. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  330. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  331. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  332. package/dist/esm-es5/ion-chip.entry.js +1 -1
  333. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  334. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  335. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  336. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  337. package/dist/esm-es5/ion-img.entry.js +1 -1
  338. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  339. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  340. package/dist/esm-es5/ion-input.entry.js +1 -1
  341. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  342. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  343. package/dist/esm-es5/ion-loading.entry.js +1 -1
  344. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  345. package/dist/esm-es5/ion-modal.entry.js +1 -1
  346. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  347. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  348. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  349. package/dist/esm-es5/ion-picker.entry.js +1 -1
  350. package/dist/esm-es5/ion-popover.entry.js +1 -1
  351. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  352. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  353. package/dist/esm-es5/ion-range.entry.js +1 -1
  354. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  355. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  356. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  357. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  358. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  359. package/dist/esm-es5/ion-segment-content.entry.js +1 -1
  360. package/dist/esm-es5/ion-segment-view.entry.js +1 -1
  361. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  362. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  363. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  364. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  365. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  366. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  367. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  368. package/dist/esm-es5/ion-text.entry.js +1 -1
  369. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  370. package/dist/esm-es5/ion-toast.entry.js +1 -1
  371. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  372. package/dist/esm-es5/{ionic-global-c81d82ab.js → ionic-global-6b9f2b5a.js} +1 -1
  373. package/dist/esm-es5/ionic.js +1 -1
  374. package/dist/esm-es5/{ios.transition-4ee1a3af.js → ios.transition-1cb16beb.js} +1 -1
  375. package/dist/esm-es5/loader.js +1 -1
  376. package/dist/esm-es5/md.transition-20f80721.js +4 -0
  377. package/dist/esm-es5/{overlays-e7b9d6d9.js → overlays-6163edd5.js} +1 -1
  378. package/dist/esm-es5/{status-tap-f472b09f.js → status-tap-6971c722.js} +1 -1
  379. package/dist/ionic/index.esm.js +1 -1
  380. package/dist/ionic/ionic.esm.js +1 -1
  381. package/dist/ionic/ionic.js +1 -1
  382. package/dist/ionic/p-009f82b0.entry.js +4 -0
  383. package/dist/ionic/{p-ed75fcfb.system.entry.js → p-00d0d756.system.entry.js} +1 -1
  384. package/dist/ionic/p-02a67bb6.entry.js +4 -0
  385. package/dist/ionic/p-06db9f72.system.entry.js +4 -0
  386. package/dist/ionic/p-0b7a6f61.system.entry.js +4 -0
  387. package/dist/ionic/p-0e3657b4.system.entry.js +4 -0
  388. package/dist/ionic/p-0f461830.entry.js +4 -0
  389. package/dist/ionic/p-1050c06b.entry.js +4 -0
  390. package/dist/ionic/p-10e0c150.entry.js +4 -0
  391. package/dist/ionic/p-12130ed6.entry.js +4 -0
  392. package/dist/ionic/{p-cac0e0b3.system.entry.js → p-12f321c2.system.entry.js} +1 -1
  393. package/dist/ionic/{p-e85d901b.system.entry.js → p-13672c38.system.entry.js} +1 -1
  394. package/dist/ionic/p-1424bf51.system.entry.js +4 -0
  395. package/dist/ionic/p-14862d17.js +4 -0
  396. package/dist/ionic/p-15764963.entry.js +4 -0
  397. package/dist/ionic/{p-d6841eac.js → p-178f8860.js} +1 -1
  398. package/dist/ionic/p-19d9e3c1.entry.js +4 -0
  399. package/dist/ionic/{p-322c5fb4.system.js → p-1a02bce6.system.js} +1 -1
  400. package/dist/ionic/{p-8b8be2fd.entry.js → p-1c152e5e.entry.js} +1 -1
  401. package/dist/ionic/{p-a4565eb5.system.js → p-1fd5d9bc.system.js} +1 -1
  402. package/dist/ionic/{p-33a8a71b.entry.js → p-20034878.entry.js} +1 -1
  403. package/dist/ionic/p-231bc1a6.entry.js +4 -0
  404. package/dist/ionic/p-256d6439.system.entry.js +4 -0
  405. package/dist/ionic/{p-424eb140.system.entry.js → p-25ffd217.system.entry.js} +1 -1
  406. package/dist/ionic/p-2799a566.entry.js +4 -0
  407. package/dist/ionic/p-27c32980.system.entry.js +4 -0
  408. package/dist/ionic/p-28dfa27e.entry.js +4 -0
  409. package/dist/ionic/p-2af55ad8.entry.js +4 -0
  410. package/dist/ionic/p-2d31d826.entry.js +4 -0
  411. package/dist/ionic/{p-0303d0f8.js → p-2e092bfc.js} +1 -1
  412. package/dist/ionic/{p-4439fc2a.entry.js → p-2e25154e.entry.js} +1 -1
  413. package/dist/ionic/p-33e4b80b.entry.js +4 -0
  414. package/dist/ionic/p-39d3c108.entry.js +4 -0
  415. package/dist/ionic/{p-1e010627.system.entry.js → p-39f7d87a.system.entry.js} +1 -1
  416. package/dist/ionic/{p-b335ffed.system.entry.js → p-3be897c8.system.entry.js} +1 -1
  417. package/dist/ionic/{p-5da94421.system.js → p-3e9fea9e.system.js} +1 -1
  418. package/dist/ionic/{p-88e63c7d.js → p-40b63137.js} +1 -1
  419. package/dist/ionic/{p-63b0abde.system.entry.js → p-47dc25dc.system.entry.js} +1 -1
  420. package/dist/ionic/p-48da821c.system.js +4 -0
  421. package/dist/ionic/p-49e8212a.entry.js +4 -0
  422. package/dist/ionic/p-4c553a2a.system.entry.js +4 -0
  423. package/dist/ionic/{p-6499df44.system.entry.js → p-4e9cfad5.system.entry.js} +2 -2
  424. package/dist/ionic/{p-5823babc.system.entry.js → p-50d264fa.system.entry.js} +1 -1
  425. package/dist/ionic/{p-7ddc46c3.system.entry.js → p-515d6848.system.entry.js} +1 -1
  426. package/dist/ionic/{p-ca065903.system.entry.js → p-548a72aa.system.entry.js} +1 -1
  427. package/dist/ionic/p-550a3b74.system.entry.js +4 -0
  428. package/dist/ionic/p-56b2ba69.system.entry.js +4 -0
  429. package/dist/ionic/{p-21e5e7e4.js → p-576c3a98.js} +1 -1
  430. package/dist/ionic/{p-14be4015.entry.js → p-58f53534.entry.js} +1 -1
  431. package/dist/ionic/p-5d9ac963.entry.js +4 -0
  432. package/dist/ionic/p-5ed6403e.system.entry.js +4 -0
  433. package/dist/ionic/{p-2507278c.system.entry.js → p-639d0578.system.entry.js} +1 -1
  434. package/dist/ionic/p-64bbdc67.entry.js +4 -0
  435. package/dist/ionic/p-65d01407.entry.js +4 -0
  436. package/dist/ionic/p-6b2e506b.entry.js +4 -0
  437. package/dist/ionic/{p-fca6ef5f.system.entry.js → p-6b6a8f94.system.entry.js} +1 -1
  438. package/dist/ionic/{p-7ed1657c.system.entry.js → p-6d119deb.system.entry.js} +1 -1
  439. package/dist/ionic/p-7148eaf9.system.js +4 -0
  440. package/dist/ionic/p-72bfbdb8.entry.js +4 -0
  441. package/dist/ionic/{p-d743e981.js → p-782beb5a.js} +1 -1
  442. package/dist/ionic/{p-a61cba41.entry.js → p-78667ff0.entry.js} +1 -1
  443. package/dist/ionic/{p-69666e8a.system.entry.js → p-78c786a5.system.entry.js} +2 -2
  444. package/dist/ionic/{p-3c8e5c23.system.js → p-7a1241fe.system.js} +1 -1
  445. package/dist/ionic/p-7b5771f9.entry.js +4 -0
  446. package/dist/ionic/p-7e58bbf9.system.js +5 -0
  447. package/dist/ionic/p-81757650.entry.js +4 -0
  448. package/dist/ionic/{p-14e159ea.system.entry.js → p-825e7bd7.system.entry.js} +1 -1
  449. package/dist/ionic/{p-6d32975a.entry.js → p-8318c25d.entry.js} +1 -1
  450. package/dist/ionic/p-861176bf.js +5 -0
  451. package/dist/ionic/p-87a5a16c.system.entry.js +4 -0
  452. package/dist/ionic/{p-f3102647.system.entry.js → p-87ce1c7b.system.entry.js} +1 -1
  453. package/dist/ionic/p-8dd3da91.entry.js +4 -0
  454. package/dist/ionic/p-8e640927.entry.js +4 -0
  455. package/dist/ionic/{p-ecceeb90.js → p-8ef7a3d4.js} +1 -1
  456. package/dist/ionic/{p-5fce0c0b.system.entry.js → p-900bf295.system.entry.js} +1 -1
  457. package/dist/ionic/{p-bc36ad98.system.entry.js → p-9437291a.system.entry.js} +1 -1
  458. package/dist/ionic/{p-372ae7f4.system.js → p-95902a17.system.js} +1 -1
  459. package/dist/ionic/p-976cffa3.js +4 -0
  460. package/dist/ionic/p-9a87fe2d.entry.js +4 -0
  461. package/dist/ionic/{p-1046866e.system.entry.js → p-9b48727c.system.entry.js} +1 -1
  462. package/dist/ionic/p-a049797d.system.entry.js +4 -0
  463. package/dist/ionic/p-a09686af.system.entry.js +4 -0
  464. package/dist/ionic/p-aa92906a.entry.js +4 -0
  465. package/dist/ionic/{p-2e46590d.system.entry.js → p-ae304d51.system.entry.js} +1 -1
  466. package/dist/ionic/p-ae830361.entry.js +4 -0
  467. package/dist/ionic/p-aee73160.entry.js +4 -0
  468. package/dist/ionic/p-af19e17f.entry.js +4 -0
  469. package/dist/ionic/{p-c449820c.system.js → p-b13c5a74.system.js} +1 -1
  470. package/dist/ionic/p-b5400a4e.entry.js +4 -0
  471. package/dist/ionic/{p-2bd0ae94.system.entry.js → p-b84b4728.system.entry.js} +2 -2
  472. package/dist/ionic/p-bc35609f.system.entry.js +4 -0
  473. package/dist/ionic/p-c29e3a26.entry.js +4 -0
  474. package/dist/ionic/p-c468af8a.system.js +4 -0
  475. package/dist/ionic/p-c5bbf6c1.system.entry.js +4 -0
  476. package/dist/ionic/{p-a69b9fc5.system.js → p-c7d9e292.system.js} +1 -1
  477. package/dist/ionic/{p-2abae1cc.system.entry.js → p-ccba2087.system.entry.js} +1 -1
  478. package/dist/ionic/{p-567de071.system.entry.js → p-cdf6fc3a.system.entry.js} +1 -1
  479. package/dist/ionic/{p-f9a53abb.system.js → p-cec30029.system.js} +1 -1
  480. package/dist/ionic/p-d3e8f550.entry.js +4 -0
  481. package/dist/ionic/{p-37cb43bd.system.entry.js → p-d46804b1.system.entry.js} +1 -1
  482. package/dist/ionic/p-d47265c8.js +4 -0
  483. package/dist/ionic/p-da1d2cb3.entry.js +4 -0
  484. package/dist/ionic/p-dbdccd05.entry.js +4 -0
  485. package/dist/ionic/p-dc480111.entry.js +4 -0
  486. package/dist/ionic/{p-e4f69534.system.entry.js → p-dc75988a.system.entry.js} +1 -1
  487. package/dist/ionic/{p-0aa833fb.system.js → p-de104ff8.system.js} +1 -1
  488. package/dist/ionic/{p-16799667.system.entry.js → p-e3177e13.system.entry.js} +1 -1
  489. package/dist/ionic/p-e4e3296d.system.js +4 -0
  490. package/dist/ionic/{p-ebf042e0.system.entry.js → p-e8d1ae44.system.entry.js} +1 -1
  491. package/dist/ionic/{p-0574e87e.js → p-e992e256.js} +1 -1
  492. package/dist/ionic/p-eb82a2ad.entry.js +4 -0
  493. package/dist/ionic/p-ebef8e16.system.entry.js +4 -0
  494. package/dist/ionic/p-f03983ca.system.entry.js +4 -0
  495. package/dist/ionic/p-f244eea8.system.entry.js +4 -0
  496. package/dist/ionic/p-f2e5ec87.entry.js +4 -0
  497. package/dist/ionic/{p-f1acf541.system.entry.js → p-f5aef6f1.system.entry.js} +1 -1
  498. package/dist/ionic/p-f5b1cfba.entry.js +4 -0
  499. package/dist/ionic/p-f8ff5ad1.entry.js +4 -0
  500. package/dist/ionic/p-fa459c81.entry.js +4 -0
  501. package/dist/ionic/p-fa7120fe.entry.js +4 -0
  502. package/dist/ionic/{p-52d7a191.entry.js → p-fbebb25d.entry.js} +1 -1
  503. package/dist/ionic/{p-b2272f51.system.entry.js → p-fc8bdbc9.system.entry.js} +1 -1
  504. package/dist/ionic/{p-2799c6d3.system.entry.js → p-fca658be.system.entry.js} +1 -1
  505. package/dist/ionic/p-fdb92b6d.entry.js +4 -0
  506. package/dist/ionic/{p-e6635685.js → p-fe10600c.js} +1 -1
  507. package/dist/ionic/p-fe5dca01.system.entry.js +4 -0
  508. package/dist/ionic/p-fe6ab8d4.entry.js +4 -0
  509. package/dist/ionic/p-fee6c9c2.system.entry.js +4 -0
  510. package/dist/types/stencil-public-runtime.d.ts +6 -0
  511. package/hydrate/index.d.ts +10 -4
  512. package/hydrate/index.js +3057 -1456
  513. package/hydrate/index.mjs +3057 -1456
  514. package/package.json +3 -3
  515. package/dist/esm-es5/app-globals-5dbb61a5.js +0 -4
  516. package/dist/esm-es5/focus-visible-ea5a37bc.js +0 -4
  517. package/dist/esm-es5/index-28849c61.js +0 -5
  518. package/dist/esm-es5/md.transition-5106a0d2.js +0 -4
  519. package/dist/ionic/p-01186920.system.entry.js +0 -4
  520. package/dist/ionic/p-021c1da5.js +0 -4
  521. package/dist/ionic/p-081a4ce4.entry.js +0 -4
  522. package/dist/ionic/p-0bf0e55c.entry.js +0 -4
  523. package/dist/ionic/p-0c786bdf.system.entry.js +0 -4
  524. package/dist/ionic/p-12a722b8.system.entry.js +0 -4
  525. package/dist/ionic/p-141f79c7.entry.js +0 -4
  526. package/dist/ionic/p-15e76dd1.entry.js +0 -4
  527. package/dist/ionic/p-16188af7.entry.js +0 -4
  528. package/dist/ionic/p-16bfb979.system.entry.js +0 -4
  529. package/dist/ionic/p-17474161.system.js +0 -4
  530. package/dist/ionic/p-19ec4f42.entry.js +0 -4
  531. package/dist/ionic/p-1e67b266.system.entry.js +0 -4
  532. package/dist/ionic/p-2172893e.system.entry.js +0 -4
  533. package/dist/ionic/p-25180df3.system.js +0 -5
  534. package/dist/ionic/p-2b838f86.system.entry.js +0 -4
  535. package/dist/ionic/p-2b9b78c7.entry.js +0 -4
  536. package/dist/ionic/p-2fc0dafe.entry.js +0 -4
  537. package/dist/ionic/p-45693d7e.entry.js +0 -4
  538. package/dist/ionic/p-49a0e74c.entry.js +0 -4
  539. package/dist/ionic/p-4ec778aa.entry.js +0 -4
  540. package/dist/ionic/p-508d024a.entry.js +0 -4
  541. package/dist/ionic/p-58d5df0c.system.entry.js +0 -4
  542. package/dist/ionic/p-5ab1b709.entry.js +0 -4
  543. package/dist/ionic/p-5b932840.entry.js +0 -4
  544. package/dist/ionic/p-626fd66d.system.entry.js +0 -4
  545. package/dist/ionic/p-62af944c.entry.js +0 -4
  546. package/dist/ionic/p-66640ff7.system.entry.js +0 -4
  547. package/dist/ionic/p-69066a53.js +0 -4
  548. package/dist/ionic/p-6b280620.entry.js +0 -4
  549. package/dist/ionic/p-6d6cedc5.entry.js +0 -4
  550. package/dist/ionic/p-73dc4950.entry.js +0 -4
  551. package/dist/ionic/p-7458862e.system.entry.js +0 -4
  552. package/dist/ionic/p-797eeea8.system.entry.js +0 -4
  553. package/dist/ionic/p-7b9a2b23.entry.js +0 -4
  554. package/dist/ionic/p-8a5b9491.system.entry.js +0 -4
  555. package/dist/ionic/p-908d6080.entry.js +0 -4
  556. package/dist/ionic/p-937a7e21.entry.js +0 -4
  557. package/dist/ionic/p-942b5e13.entry.js +0 -4
  558. package/dist/ionic/p-95775830.entry.js +0 -4
  559. package/dist/ionic/p-982315a6.entry.js +0 -4
  560. package/dist/ionic/p-98231c01.system.entry.js +0 -4
  561. package/dist/ionic/p-985a7e17.system.entry.js +0 -4
  562. package/dist/ionic/p-98ff6b32.entry.js +0 -4
  563. package/dist/ionic/p-9df2c6fb.entry.js +0 -4
  564. package/dist/ionic/p-9ee1e8a6.entry.js +0 -4
  565. package/dist/ionic/p-9f3008d4.system.js +0 -4
  566. package/dist/ionic/p-9fa07aec.entry.js +0 -4
  567. package/dist/ionic/p-a43467d8.entry.js +0 -4
  568. package/dist/ionic/p-a49378bb.system.entry.js +0 -4
  569. package/dist/ionic/p-afecb188.entry.js +0 -4
  570. package/dist/ionic/p-b79ba17c.entry.js +0 -4
  571. package/dist/ionic/p-b82d4cab.js +0 -4
  572. package/dist/ionic/p-b9d7015f.entry.js +0 -4
  573. package/dist/ionic/p-bb0db172.entry.js +0 -4
  574. package/dist/ionic/p-bdad26e3.entry.js +0 -4
  575. package/dist/ionic/p-c29f8157.system.entry.js +0 -4
  576. package/dist/ionic/p-c41ac815.entry.js +0 -4
  577. package/dist/ionic/p-c4b53b16.system.entry.js +0 -4
  578. package/dist/ionic/p-c9f3a539.entry.js +0 -4
  579. package/dist/ionic/p-cdc83025.entry.js +0 -4
  580. package/dist/ionic/p-cf130350.system.js +0 -4
  581. package/dist/ionic/p-d18ab582.system.entry.js +0 -4
  582. package/dist/ionic/p-d7aa6b00.entry.js +0 -4
  583. package/dist/ionic/p-d836d43e.js +0 -5
  584. package/dist/ionic/p-da074ff7.entry.js +0 -4
  585. package/dist/ionic/p-de930745.entry.js +0 -4
  586. package/dist/ionic/p-e4ee80be.system.entry.js +0 -4
  587. package/dist/ionic/p-e563a35c.entry.js +0 -4
  588. package/dist/ionic/p-e7ed4a7f.system.js +0 -4
  589. package/dist/ionic/p-eba29931.entry.js +0 -4
  590. package/dist/ionic/p-efaffe74.entry.js +0 -4
  591. package/dist/ionic/p-fec61c32.entry.js +0 -4
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, d as createEvent, h, f as Host, i as getElement } from './index-28849c61.js';
4
+ import { r as registerInstance, d as createEvent, h, f as Host, i as getElement } from './index-fcdfc1aa.js';
5
5
  import { c as createKeyboardController } from './keyboard-controller-ec5c2bfa.js';
6
6
  import { c as createColorClasses } from './theme-01f3f29c.js';
7
- import { b as getIonMode, c as config } from './ionic-global-c81d82ab.js';
7
+ import { b as getIonMode, c as config } from './ionic-global-6b9f2b5a.js';
8
8
  import { h as inheritAttributes } from './helpers-da915de8.js';
9
9
  import './index-a5d50daf.js';
10
10
  import './keyboard-73175e24.js';
@@ -23,8 +23,11 @@ const TabBar = class {
23
23
  this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
24
24
  this.keyboardCtrl = null;
25
25
  this.keyboardVisible = false;
26
- this.color = undefined;
27
- this.selectedTab = undefined;
26
+ /**
27
+ * If `true`, the tab bar will be translucent.
28
+ * Only applies when the mode is `"ios"` and the device supports
29
+ * [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
30
+ */
28
31
  this.translucent = false;
29
32
  }
30
33
  selectedTabChanged() {
@@ -89,6 +92,14 @@ const TabButton = class {
89
92
  registerInstance(this, hostRef);
90
93
  this.ionTabButtonClick = createEvent(this, "ionTabButtonClick", 7);
91
94
  this.inheritedAttributes = {};
95
+ /**
96
+ * If `true`, the user cannot interact with the tab button.
97
+ */
98
+ this.disabled = false;
99
+ /**
100
+ * The selected tab component
101
+ */
102
+ this.selected = false;
92
103
  this.onKeyUp = (ev) => {
93
104
  if (ev.key === 'Enter' || ev.key === ' ') {
94
105
  this.selectTab(ev);
@@ -97,14 +108,6 @@ const TabButton = class {
97
108
  this.onClick = (ev) => {
98
109
  this.selectTab(ev);
99
110
  };
100
- this.disabled = false;
101
- this.download = undefined;
102
- this.href = undefined;
103
- this.rel = undefined;
104
- this.layout = undefined;
105
- this.selected = false;
106
- this.tab = undefined;
107
- this.target = undefined;
108
111
  }
109
112
  onTabBarChanged(ev) {
110
113
  const dispatchedFrom = ev.target;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, h, f as Host, i as getElement, d as createEvent } from './index-28849c61.js';
4
+ import { r as registerInstance, h, f as Host, i as getElement, d as createEvent } from './index-fcdfc1aa.js';
5
5
  import { a as attachComponent } from './framework-delegate-63d1a679.js';
6
6
  import './helpers-da915de8.js';
7
7
 
@@ -12,10 +12,8 @@ const Tab = class {
12
12
  constructor(hostRef) {
13
13
  registerInstance(this, hostRef);
14
14
  this.loaded = false;
15
+ /** @internal */
15
16
  this.active = false;
16
- this.delegate = undefined;
17
- this.tab = undefined;
18
- this.component = undefined;
19
17
  }
20
18
  async componentWillLoad() {
21
19
  if (this.active) {
@@ -68,6 +66,8 @@ const Tabs = class {
68
66
  this.ionTabsWillChange = createEvent(this, "ionTabsWillChange", 3);
69
67
  this.ionTabsDidChange = createEvent(this, "ionTabsDidChange", 3);
70
68
  this.transitioning = false;
69
+ /** @internal */
70
+ this.useRouter = false;
71
71
  this.onTabClicked = (ev) => {
72
72
  const { href, tab } = ev.detail;
73
73
  if (this.useRouter && href !== undefined) {
@@ -80,8 +80,6 @@ const Tabs = class {
80
80
  this.select(tab);
81
81
  }
82
82
  };
83
- this.selectedTab = undefined;
84
- this.useRouter = false;
85
83
  }
86
84
  async componentWillLoad() {
87
85
  if (!this.useRouter) {
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, h, f as Host } from './index-28849c61.js';
4
+ import { r as registerInstance, h, f as Host } from './index-fcdfc1aa.js';
5
5
  import { c as createColorClasses } from './theme-01f3f29c.js';
6
- import { b as getIonMode } from './ionic-global-c81d82ab.js';
6
+ import { b as getIonMode } from './ionic-global-6b9f2b5a.js';
7
7
 
8
8
  const textCss = ":host(.ion-color){color:var(--ion-color-base)}";
9
9
  const IonTextStyle0 = textCss;
@@ -11,7 +11,6 @@ const IonTextStyle0 = textCss;
11
11
  const Text = class {
12
12
  constructor(hostRef) {
13
13
  registerInstance(this, hostRef);
14
- this.color = undefined;
15
14
  }
16
15
  render() {
17
16
  const mode = getIonMode(this);
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, d as createEvent, w as writeTask, h, f as Host, i as getElement, j as forceUpdate } from './index-28849c61.js';
4
+ import { r as registerInstance, d as createEvent, w as writeTask, h, f as Host, i as getElement, j as forceUpdate } from './index-fcdfc1aa.js';
5
5
  import { c as createNotchController } from './notch-controller-55b09e11.js';
6
6
  import { e as debounceEvent, i as inheritAriaAttributes, h as inheritAttributes, c as componentOnReady } from './helpers-da915de8.js';
7
7
  import { c as createSlotMutationController, g as getCounterText } from './input.utils-09c71bc7.js';
8
8
  import { h as hostContext, c as createColorClasses } from './theme-01f3f29c.js';
9
- import { b as getIonMode } from './ionic-global-c81d82ab.js';
9
+ import { b as getIonMode } from './ionic-global-6b9f2b5a.js';
10
10
  import './index-a5d50daf.js';
11
11
  import './index-9b0d46f4.js';
12
12
 
@@ -34,6 +34,65 @@ const Textarea = class {
34
34
  */
35
35
  this.didTextareaClearOnEdit = false;
36
36
  this.inheritedAttributes = {};
37
+ this.hasFocus = false;
38
+ /**
39
+ * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
40
+ * Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
41
+ */
42
+ this.autocapitalize = 'none';
43
+ /**
44
+ * Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element.
45
+ *
46
+ * This may not be sufficient for the element to be focused on page load. See [managing focus](/docs/developing/managing-focus) for more information.
47
+ */
48
+ this.autofocus = false;
49
+ /**
50
+ * If `true`, the value will be cleared after focus upon edit.
51
+ */
52
+ this.clearOnEdit = false;
53
+ /**
54
+ * If `true`, the user cannot interact with the textarea.
55
+ */
56
+ this.disabled = false;
57
+ /**
58
+ * The name of the control, which is submitted with the form data.
59
+ */
60
+ this.name = this.inputId;
61
+ /**
62
+ * If `true`, the user cannot modify the value.
63
+ */
64
+ this.readonly = false;
65
+ /**
66
+ * If `true`, the user must fill in a value before submitting a form.
67
+ */
68
+ this.required = false;
69
+ /**
70
+ * If `true`, the element will have its spelling and grammar checked.
71
+ */
72
+ this.spellcheck = false;
73
+ /**
74
+ * If `true`, the textarea container will grow and shrink based
75
+ * on the contents of the textarea.
76
+ */
77
+ this.autoGrow = false;
78
+ /**
79
+ * The value of the textarea.
80
+ */
81
+ this.value = '';
82
+ /**
83
+ * If `true`, a character counter will display the ratio of characters used and the total character limit.
84
+ * Developers must also set the `maxlength` property for the counter to be calculated correctly.
85
+ */
86
+ this.counter = false;
87
+ /**
88
+ * Where to place the label relative to the textarea.
89
+ * `"start"`: The label will appear to the left of the textarea in LTR and to the right in RTL.
90
+ * `"end"`: The label will appear to the right of the textarea in LTR and to the left in RTL.
91
+ * `"floating"`: The label will appear smaller and above the textarea when the textarea is focused or it has a value. Otherwise it will appear on top of the textarea.
92
+ * `"stacked"`: The label will appear smaller and above the textarea regardless even when the textarea is blurred or has no value.
93
+ * `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
94
+ */
95
+ this.labelPlacement = 'start';
37
96
  // `Event` type is used instead of `InputEvent`
38
97
  // since the types from Stencil are not derived
39
98
  // from the element (e.g. textarea and input
@@ -69,35 +128,6 @@ const Textarea = class {
69
128
  this.onKeyDown = (ev) => {
70
129
  this.checkClearOnEdit(ev);
71
130
  };
72
- this.hasFocus = false;
73
- this.color = undefined;
74
- this.autocapitalize = 'none';
75
- this.autofocus = false;
76
- this.clearOnEdit = false;
77
- this.debounce = undefined;
78
- this.disabled = false;
79
- this.fill = undefined;
80
- this.inputmode = undefined;
81
- this.enterkeyhint = undefined;
82
- this.maxlength = undefined;
83
- this.minlength = undefined;
84
- this.name = this.inputId;
85
- this.placeholder = undefined;
86
- this.readonly = false;
87
- this.required = false;
88
- this.spellcheck = false;
89
- this.cols = undefined;
90
- this.rows = undefined;
91
- this.wrap = undefined;
92
- this.autoGrow = false;
93
- this.value = '';
94
- this.counter = false;
95
- this.counterFormatter = undefined;
96
- this.errorText = undefined;
97
- this.helperText = undefined;
98
- this.label = undefined;
99
- this.labelPlacement = 'start';
100
- this.shape = undefined;
101
131
  }
102
132
  debounceChanged() {
103
133
  const { ionInput, debounce, originalIonInput } = this;
@@ -1,18 +1,18 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, d as createEvent, h, f as Host, i as getElement } from './index-28849c61.js';
4
+ import { r as registerInstance, d as createEvent, h, f as Host, i as getElement } from './index-fcdfc1aa.js';
5
5
  import { E as ENABLE_HTML_CONTENT_DEFAULT, a as sanitizeDOMString } from './config-49c88215.js';
6
6
  import { g as getElementRoot, r as raf } from './helpers-da915de8.js';
7
7
  import { c as createLockController } from './lock-controller-316928be.js';
8
8
  import { p as printIonWarning } from './index-9b0d46f4.js';
9
- import { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays-e7b9d6d9.js';
9
+ import { O as OVERLAY_GESTURE_PRIORITY, d as createDelegateController, e as createTriggerController, i as isCancel, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod, s as safeCall, G as GESTURE } from './overlays-6163edd5.js';
10
10
  import { c as createColorClasses, g as getClassMap } from './theme-01f3f29c.js';
11
- import { c as config, b as getIonMode } from './ionic-global-c81d82ab.js';
11
+ import { c as config, b as getIonMode } from './ionic-global-6b9f2b5a.js';
12
12
  import { c as createAnimation } from './animation-eab5a4ca.js';
13
13
  import { w as win } from './index-a5d50daf.js';
14
14
  import { createGesture } from './index-39782642.js';
15
- import './hardware-back-button-06ef3c3e.js';
15
+ import './hardware-back-button-0a284222.js';
16
16
  import './framework-delegate-63d1a679.js';
17
17
  import './gesture-controller-314a54f6.js';
18
18
 
@@ -472,6 +472,54 @@ const Toast = class {
472
472
  this.triggerController = createTriggerController();
473
473
  this.customHTMLEnabled = config.get('innerHTMLTemplatesEnabled', ENABLE_HTML_CONTENT_DEFAULT);
474
474
  this.presented = false;
475
+ /**
476
+ * When `true`, content inside of .toast-content
477
+ * will have aria-hidden elements removed causing
478
+ * screen readers to announce the remaining content.
479
+ */
480
+ this.revealContentToScreenReader = false;
481
+ /** @internal */
482
+ this.hasController = false;
483
+ /**
484
+ * How many milliseconds to wait before hiding the toast. By default, it will show
485
+ * until `dismiss()` is called.
486
+ */
487
+ this.duration = config.getNumber('toastDuration', 0);
488
+ /**
489
+ * Defines how the message and buttons are laid out in the toast.
490
+ * 'baseline': The message and the buttons will appear on the same line.
491
+ * Message text may wrap within the message container.
492
+ * 'stacked': The buttons containers and message will stack on top
493
+ * of each other. Use this if you have long text in your buttons.
494
+ */
495
+ this.layout = 'baseline';
496
+ /**
497
+ * If `true`, the keyboard will be automatically dismissed when the overlay is presented.
498
+ */
499
+ this.keyboardClose = false;
500
+ /**
501
+ * The starting position of the toast on the screen. Can be tweaked further
502
+ * using the `positionAnchor` property.
503
+ */
504
+ this.position = 'bottom';
505
+ /**
506
+ * If `true`, the toast will be translucent.
507
+ * Only applies when the mode is `"ios"` and the device supports
508
+ * [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
509
+ */
510
+ this.translucent = false;
511
+ /**
512
+ * If `true`, the toast will animate.
513
+ */
514
+ this.animated = true;
515
+ /**
516
+ * If `true`, the toast will open. If `false`, the toast will close.
517
+ * Use this if you need finer grained control over presentation, otherwise
518
+ * just use the toastController or the `trigger` property.
519
+ * Note: `isOpen` will not automatically be set back to `false` when
520
+ * the toast dismisses. You will need to do that in your code.
521
+ */
522
+ this.isOpen = false;
475
523
  this.dispatchCancelHandler = (ev) => {
476
524
  const role = ev.detail.role;
477
525
  if (isCancel(role)) {
@@ -514,29 +562,6 @@ const Toast = class {
514
562
  const { swipeGesture } = this;
515
563
  return swipeGesture === 'vertical';
516
564
  };
517
- this.revealContentToScreenReader = false;
518
- this.overlayIndex = undefined;
519
- this.delegate = undefined;
520
- this.hasController = false;
521
- this.color = undefined;
522
- this.enterAnimation = undefined;
523
- this.leaveAnimation = undefined;
524
- this.cssClass = undefined;
525
- this.duration = config.getNumber('toastDuration', 0);
526
- this.header = undefined;
527
- this.layout = 'baseline';
528
- this.message = undefined;
529
- this.keyboardClose = false;
530
- this.position = 'bottom';
531
- this.positionAnchor = undefined;
532
- this.buttons = undefined;
533
- this.translucent = false;
534
- this.animated = true;
535
- this.icon = undefined;
536
- this.htmlAttributes = undefined;
537
- this.swipeGesture = undefined;
538
- this.isOpen = false;
539
- this.trigger = undefined;
540
565
  }
541
566
  swipeGestureChanged() {
542
567
  /**
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { r as registerInstance, d as createEvent, h, f as Host, i as getElement } from './index-28849c61.js';
4
+ import { r as registerInstance, d as createEvent, h, f as Host, i as getElement } from './index-fcdfc1aa.js';
5
5
  import { i as inheritAriaAttributes, d as renderHiddenInput } from './helpers-da915de8.js';
6
6
  import { c as hapticSelection } from './haptic-ac164e4c.js';
7
7
  import { i as isRTL } from './dir-babeabeb.js';
8
8
  import { c as createColorClasses, h as hostContext } from './theme-01f3f29c.js';
9
9
  import { f as checkmarkOutline, r as removeOutline, g as ellipseOutline } from './index-e2cf2ceb.js';
10
- import { c as config, b as getIonMode } from './ionic-global-c81d82ab.js';
10
+ import { c as config, b as getIonMode } from './ionic-global-6b9f2b5a.js';
11
11
  import './capacitor-59395cbd.js';
12
12
  import './index-a5d50daf.js';
13
13
 
@@ -27,6 +27,39 @@ const Toggle = class {
27
27
  this.lastDrag = 0;
28
28
  this.inheritedAttributes = {};
29
29
  this.didLoad = false;
30
+ this.activated = false;
31
+ /**
32
+ * The name of the control, which is submitted with the form data.
33
+ */
34
+ this.name = this.inputId;
35
+ /**
36
+ * If `true`, the toggle is selected.
37
+ */
38
+ this.checked = false;
39
+ /**
40
+ * If `true`, the user cannot interact with the toggle.
41
+ */
42
+ this.disabled = false;
43
+ /**
44
+ * The value of the toggle does not mean if it's checked or not, use the `checked`
45
+ * property for that.
46
+ *
47
+ * The value of a toggle is analogous to the value of a `<input type="checkbox">`,
48
+ * it's only used when the toggle participates in a native `<form>`.
49
+ */
50
+ this.value = 'on';
51
+ /**
52
+ * Enables the on/off accessibility switch labels within the toggle.
53
+ */
54
+ this.enableOnOffLabels = config.get('toggleOnOffLabels');
55
+ /**
56
+ * Where to place the label relative to the input.
57
+ * `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL.
58
+ * `"end"`: The label will appear to the right of the toggle in LTR and to the left in RTL.
59
+ * `"fixed"`: The label has the same behavior as `"start"` except it also has a fixed width. Long text will be truncated with ellipses ("...").
60
+ * `"stacked"`: The label will appear above the toggle regardless of the direction. The alignment of the label can be controlled with the `alignment` property.
61
+ */
62
+ this.labelPlacement = 'start';
30
63
  this.setupGesture = async () => {
31
64
  const { toggleTrack } = this;
32
65
  if (toggleTrack) {
@@ -64,16 +97,6 @@ const Toggle = class {
64
97
  }
65
98
  return checked ? removeOutline : ellipseOutline;
66
99
  };
67
- this.activated = false;
68
- this.color = undefined;
69
- this.name = this.inputId;
70
- this.checked = false;
71
- this.disabled = false;
72
- this.value = 'on';
73
- this.enableOnOffLabels = config.get('toggleOnOffLabels');
74
- this.labelPlacement = 'start';
75
- this.justify = undefined;
76
- this.alignment = undefined;
77
100
  }
78
101
  disabledChanged() {
79
102
  if (this.gesture) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { a as setPlatformHelpers, g as getMode, c as setMode } from './index-28849c61.js';
4
+ import { a as setPlatformHelpers, g as getMode, c as setMode } from './index-fcdfc1aa.js';
5
5
 
6
6
  // TODO(FW-2832): types
7
7
  class Config {
package/dist/esm/ionic.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { p as promiseResolve, H, b as bootstrapLazy } from './index-28849c61.js';
5
- export { s as setNonce } from './index-28849c61.js';
6
- import { g as globalScripts } from './app-globals-5dbb61a5.js';
7
- import './ionic-global-c81d82ab.js';
4
+ import { p as promiseResolve, H, b as bootstrapLazy } from './index-fcdfc1aa.js';
5
+ export { s as setNonce } from './index-fcdfc1aa.js';
6
+ import { g as globalScripts } from './app-globals-1318774c.js';
7
+ import './ionic-global-6b9f2b5a.js';
8
8
 
9
9
  /*
10
- Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
10
+ Stencil Client Patch Browser v4.23.2 | MIT Licensed | https://stenciljs.com
11
11
  */
12
12
  var patchBrowser = () => {
13
13
  {
@@ -2,10 +2,10 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { c as createAnimation } from './animation-eab5a4ca.js';
5
- import { g as getIonPageElement } from './index-3ad7f18b.js';
5
+ import { g as getIonPageElement } from './index-13b48bcb.js';
6
6
  import './index-a5d50daf.js';
7
- import './ionic-global-c81d82ab.js';
8
- import './index-28849c61.js';
7
+ import './ionic-global-6b9f2b5a.js';
8
+ import './index-fcdfc1aa.js';
9
9
  import './index-9b0d46f4.js';
10
10
  import './helpers-da915de8.js';
11
11
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { b as bootstrapLazy } from './index-28849c61.js';
5
- export { s as setNonce } from './index-28849c61.js';
6
- import { g as globalScripts } from './app-globals-5dbb61a5.js';
7
- import './ionic-global-c81d82ab.js';
4
+ import { b as bootstrapLazy } from './index-fcdfc1aa.js';
5
+ export { s as setNonce } from './index-fcdfc1aa.js';
6
+ import { g as globalScripts } from './app-globals-1318774c.js';
7
+ import './ionic-global-6b9f2b5a.js';
8
8
 
9
9
  const defineCustomElements = async (win, options) => {
10
10
  if (typeof window === 'undefined') return undefined;
@@ -2,10 +2,10 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { c as createAnimation } from './animation-eab5a4ca.js';
5
- import { g as getIonPageElement } from './index-3ad7f18b.js';
5
+ import { g as getIonPageElement } from './index-13b48bcb.js';
6
6
  import './index-a5d50daf.js';
7
- import './ionic-global-c81d82ab.js';
8
- import './index-28849c61.js';
7
+ import './ionic-global-6b9f2b5a.js';
8
+ import './index-fcdfc1aa.js';
9
9
  import './index-9b0d46f4.js';
10
10
  import './helpers-da915de8.js';
11
11
 
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import { d as doc } from './index-a5d50daf.js';
5
5
  import { f as focusVisibleElement, c as componentOnReady, a as addEventListener, b as removeEventListener, g as getElementRoot } from './helpers-da915de8.js';
6
- import { OVERLAY_BACK_BUTTON_PRIORITY, shouldUseCloseWatcher } from './hardware-back-button-06ef3c3e.js';
7
- import { b as getIonMode, c as config, a as isPlatform } from './ionic-global-c81d82ab.js';
6
+ import { OVERLAY_BACK_BUTTON_PRIORITY, shouldUseCloseWatcher } from './hardware-back-button-0a284222.js';
7
+ import { b as getIonMode, c as config, a as isPlatform } from './ionic-global-6b9f2b5a.js';
8
8
  import { C as CoreDelegate } from './framework-delegate-63d1a679.js';
9
9
  import { B as BACKDROP_NO_SCROLL } from './gesture-controller-314a54f6.js';
10
10
  import { p as printIonWarning } from './index-9b0d46f4.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { e as readTask, w as writeTask } from './index-28849c61.js';
4
+ import { e as readTask, w as writeTask } from './index-fcdfc1aa.js';
5
5
  import { f as findClosestIonContent, s as scrollToTop } from './index-5cc724f3.js';
6
6
  import { c as componentOnReady } from './helpers-da915de8.js';
7
7
  import './index-9b0d46f4.js';
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{i as initialize}from"./ionic-global-6b9f2b5a.js";var globalScripts=initialize;export{globalScripts as g};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{w as writeTask}from"./index-28849c61.js";import{h as hapticSelectionEnd,a as hapticSelectionStart,b as hapticSelectionChanged}from"./haptic-ac164e4c.js";import{createGesture}from"./index-39782642.js";var createButtonActiveGesture=function(t,e){var n;var r;var i=function(t,r,i){if(typeof document==="undefined"){return}var o=document.elementFromPoint(t,r);if(!o||!e(o)||o.disabled){c();return}if(o!==n){c();a(o,i)}};var a=function(t,e){n=t;if(!r){r=n}var i=n;writeTask((function(){return i.classList.add("ion-activated")}));e()};var c=function(t){if(t===void 0){t=false}if(!n){return}var e=n;writeTask((function(){return e.classList.remove("ion-activated")}));if(t&&r!==n){n.click()}n=undefined};return createGesture({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:function(t){return i(t.currentX,t.currentY,hapticSelectionStart)},onMove:function(t){return i(t.currentX,t.currentY,hapticSelectionChanged)},onEnd:function(){c(true);hapticSelectionEnd();r=undefined}})};export{createButtonActiveGesture as c};
4
+ import{w as writeTask}from"./index-fcdfc1aa.js";import{h as hapticSelectionEnd,a as hapticSelectionStart,b as hapticSelectionChanged}from"./haptic-ac164e4c.js";import{createGesture}from"./index-39782642.js";var createButtonActiveGesture=function(t,e){var n;var r;var i=function(t,r,i){if(typeof document==="undefined"){return}var o=document.elementFromPoint(t,r);if(!o||!e(o)||o.disabled){c();return}if(o!==n){c();a(o,i)}};var a=function(t,e){n=t;if(!r){r=n}var i=n;writeTask((function(){return i.classList.add("ion-activated")}));e()};var c=function(t){if(t===void 0){t=false}if(!n){return}var e=n;writeTask((function(){return e.classList.remove("ion-activated")}));if(t&&r!==n){n.click()}n=undefined};return createGesture({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:function(t){return i(t.currentX,t.currentY,hapticSelectionStart)},onMove:function(t){return i(t.currentX,t.currentY,hapticSelectionChanged)},onEnd:function(){c(true);hapticSelectionEnd();r=undefined}})};export{createButtonActiveGesture as c};
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ var ION_FOCUSED="ion-focused";var ION_FOCUSABLE="ion-focusable";var FOCUS_KEYS=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"];var startFocusVisible=function(r){var o=[];var n=true;var t=r?r.shadowRoot:document;var u=r?r:document.body;var e=function(r){o.forEach((function(r){return r.classList.remove(ION_FOCUSED)}));r.forEach((function(r){return r.classList.add(ION_FOCUSED)}));o=r};var a=function(){n=false;e([])};var i=function(r){n=FOCUS_KEYS.includes(r.key);if(!n){e([])}};var c=function(r){if(n&&r.composedPath!==undefined){var o=r.composedPath().filter((function(r){if(r.classList){return r.classList.contains(ION_FOCUSABLE)}return false}));e(o)}};var f=function(){if(t.activeElement===u){e([])}};t.addEventListener("keydown",i);t.addEventListener("focusin",c);t.addEventListener("focusout",f);t.addEventListener("touchstart",a,{passive:true});t.addEventListener("mousedown",a);var s=function(){t.removeEventListener("keydown",i);t.removeEventListener("focusin",c);t.removeEventListener("focusout",f);t.removeEventListener("touchstart",a);t.removeEventListener("mousedown",a)};return{destroy:s,setFocus:e}};export{startFocusVisible};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{w as win}from"./index-a5d50daf.js";import{c as config}from"./ionic-global-c81d82ab.js";import"./index-28849c61.js";var shouldUseCloseWatcher=function(){return config.get("experimentalCloseWatcher",false)&&win!==undefined&&"CloseWatcher"in win};var blockHardwareBackButton=function(){document.addEventListener("backbutton",(function(){}))};var startHardwareBackButton=function(){var r=document;var n=false;var t=function(){if(n){return}var t=0;var e=[];var a=new CustomEvent("ionBackButton",{bubbles:false,detail:{register:function(r,n){e.push({priority:r,handler:n,id:t++})}}});r.dispatchEvent(a);var o=function(r){return __awaiter(void 0,void 0,void 0,(function(){var n,t;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,3,,4]);if(!(r===null||r===void 0?void 0:r.handler))return[3,2];n=r.handler(i);if(!(n!=null))return[3,2];return[4,n];case 1:e.sent();e.label=2;case 2:return[3,4];case 3:t=e.sent();console.error(t);return[3,4];case 4:return[2]}}))}))};var i=function(){if(e.length>0){var r={priority:Number.MIN_SAFE_INTEGER,handler:function(){return undefined},id:-1};e.forEach((function(n){if(n.priority>=r.priority){r=n}}));n=true;e=e.filter((function(n){return n.id!==r.id}));o(r).then((function(){return n=false}))}};i()};if(shouldUseCloseWatcher()){var e;var a=function(){e===null||e===void 0?void 0:e.destroy();e=new win.CloseWatcher;e.onclose=function(){t();a()}};a()}else{r.addEventListener("backbutton",t)}};var OVERLAY_BACK_BUTTON_PRIORITY=100;var MENU_BACK_BUTTON_PRIORITY=99;export{MENU_BACK_BUTTON_PRIORITY,OVERLAY_BACK_BUTTON_PRIORITY,blockHardwareBackButton,shouldUseCloseWatcher,startHardwareBackButton};
4
+ */import{w as win}from"./index-a5d50daf.js";import{c as config}from"./ionic-global-6b9f2b5a.js";import"./index-fcdfc1aa.js";var shouldUseCloseWatcher=function(){return config.get("experimentalCloseWatcher",false)&&win!==undefined&&"CloseWatcher"in win};var blockHardwareBackButton=function(){document.addEventListener("backbutton",(function(){}))};var startHardwareBackButton=function(){var r=document;var n=false;var t=function(){if(n){return}var t=0;var e=[];var a=new CustomEvent("ionBackButton",{bubbles:false,detail:{register:function(r,n){e.push({priority:r,handler:n,id:t++})}}});r.dispatchEvent(a);var o=function(r){return __awaiter(void 0,void 0,void 0,(function(){var n,t;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,3,,4]);if(!(r===null||r===void 0?void 0:r.handler))return[3,2];n=r.handler(i);if(!(n!=null))return[3,2];return[4,n];case 1:e.sent();e.label=2;case 2:return[3,4];case 3:t=e.sent();console.error(t);return[3,4];case 4:return[2]}}))}))};var i=function(){if(e.length>0){var r={priority:Number.MIN_SAFE_INTEGER,handler:function(){return undefined},id:-1};e.forEach((function(n){if(n.priority>=r.priority){r=n}}));n=true;e=e.filter((function(n){return n.id!==r.id}));o(r).then((function(){return n=false}))}};i()};if(shouldUseCloseWatcher()){var e;var a=function(){e===null||e===void 0?void 0:e.destroy();e=new win.CloseWatcher;e.onclose=function(){t();a()}};a()}else{r.addEventListener("backbutton",t)}};var OVERLAY_BACK_BUTTON_PRIORITY=100;var MENU_BACK_BUTTON_PRIORITY=99;export{MENU_BACK_BUTTON_PRIORITY,OVERLAY_BACK_BUTTON_PRIORITY,blockHardwareBackButton,shouldUseCloseWatcher,startHardwareBackButton};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{c as config}from"./ionic-global-c81d82ab.js";import{w as writeTask,B as Build}from"./index-28849c61.js";import{p as printIonWarning}from"./index-9b0d46f4.js";import{r as raf}from"./helpers-da915de8.js";var LIFECYCLE_WILL_ENTER="ionViewWillEnter";var LIFECYCLE_DID_ENTER="ionViewDidEnter";var LIFECYCLE_WILL_LEAVE="ionViewWillLeave";var LIFECYCLE_DID_LEAVE="ionViewDidLeave";var LIFECYCLE_WILL_UNLOAD="ionViewWillUnload";var moveFocus=function(n){n.tabIndex=-1;n.focus()};var isVisible=function(n){return n.offsetParent!==null};var createFocusController=function(){var n=function(n){var e=config.get("focusManagerPriority",false);if(e){var r=document.activeElement;if(r!==null&&(n===null||n===void 0?void 0:n.contains(r))){r.setAttribute(LAST_FOCUS,"true")}}};var e=function(n){var e=config.get("focusManagerPriority",false);if(Array.isArray(e)&&!n.contains(document.activeElement)){var r=n.querySelector("[".concat(LAST_FOCUS,"]"));if(r&&isVisible(r)){moveFocus(r);return}for(var i=0,t=e;i<t.length;i++){var a=t[i];switch(a){case"content":var o=n.querySelector('main, [role="main"]');if(o&&isVisible(o)){moveFocus(o);return}break;case"heading":var s=n.querySelector('h1, [role="heading"][aria-level="1"]');if(s&&isVisible(s)){moveFocus(s);return}break;case"banner":var u=n.querySelector('header, [role="banner"]');if(u&&isVisible(u)){moveFocus(u);return}break;default:printIonWarning("Unrecognized focus manager priority value ".concat(a));break}}moveFocus(n)}};return{saveViewFocus:n,setViewFocus:e}};var LAST_FOCUS="ion-last-focus";var iosTransitionAnimation=function(){return import("./ios.transition-4ee1a3af.js")};var mdTransitionAnimation=function(){return import("./md.transition-5106a0d2.js")};var focusController=createFocusController();var transition=function(n){return new Promise((function(e,r){writeTask((function(){beforeTransition(n);runTransition(n).then((function(r){if(r.animation){r.animation.destroy()}afterTransition(n);e(r)}),(function(e){afterTransition(n);r(e)}))}))}))};var beforeTransition=function(n){var e=n.enteringEl;var r=n.leavingEl;focusController.saveViewFocus(r);setZIndex(e,r,n.direction);if(n.showGoBack){e.classList.add("can-go-back")}else{e.classList.remove("can-go-back")}setPageHidden(e,false);e.style.setProperty("pointer-events","none");if(r){setPageHidden(r,false);r.style.setProperty("pointer-events","none")}};var runTransition=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:return[4,getAnimationBuilder(n)];case 1:e=i.sent();r=e&&Build.isBrowser?animation(e,n):noAnimation(n);return[2,r]}}))}))};var afterTransition=function(n){var e=n.enteringEl;var r=n.leavingEl;e.classList.remove("ion-page-invisible");e.style.removeProperty("pointer-events");if(r!==undefined){r.classList.remove("ion-page-invisible");r.style.removeProperty("pointer-events")}focusController.setViewFocus(e)};var getAnimationBuilder=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:if(!n.leavingEl||!n.animated||n.duration===0){return[2,undefined]}if(n.animationBuilder){return[2,n.animationBuilder]}if(!(n.mode==="ios"))return[3,2];return[4,iosTransitionAnimation()];case 1:r=i.sent().iosTransitionAnimation;return[3,4];case 2:return[4,mdTransitionAnimation()];case 3:r=i.sent().mdTransitionAnimation;i.label=4;case 4:e=r;return[2,e]}}))}))};var animation=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var r,i;return __generator(this,(function(t){switch(t.label){case 0:return[4,waitForReady(e,true)];case 1:t.sent();r=n(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);return[4,playTransition(r,e)];case 2:i=t.sent();if(e.progressCallback){e.progressCallback(undefined)}if(i){fireDidEvents(e.enteringEl,e.leavingEl)}return[2,{hasCompleted:i,animation:r}]}}))}))};var noAnimation=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(t){switch(t.label){case 0:e=n.enteringEl;r=n.leavingEl;i=config.get("focusManagerPriority",false);return[4,waitForReady(n,i)];case 1:t.sent();fireWillEvents(e,r);fireDidEvents(e,r);return[2,{hasCompleted:true}]}}))}))};var waitForReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:r=n.deepWait!==undefined?n.deepWait:e;if(!r)return[3,2];return[4,Promise.all([deepReady(n.enteringEl),deepReady(n.leavingEl)])];case 1:i.sent();i.label=2;case 2:return[4,notifyViewReady(n.viewIsReady,n.enteringEl)];case 3:i.sent();return[2]}}))}))};var notifyViewReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!n)return[3,2];return[4,n(e)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};var playTransition=function(n,e){var r=e.progressCallback;var i=new Promise((function(e){n.onFinish((function(n){return e(n===1)}))}));if(r){n.progressStart(true);r(n)}else{n.play()}return i};var fireWillEvents=function(n,e){lifecycle(e,LIFECYCLE_WILL_LEAVE);lifecycle(n,LIFECYCLE_WILL_ENTER)};var fireDidEvents=function(n,e){lifecycle(n,LIFECYCLE_DID_ENTER);lifecycle(e,LIFECYCLE_DID_LEAVE)};var lifecycle=function(n,e){if(n){var r=new CustomEvent(e,{bubbles:false,cancelable:false});n.dispatchEvent(r)}};var waitForMount=function(){return new Promise((function(n){return raf((function(){return raf((function(){return n()}))}))}))};var deepReady=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(t){switch(t.label){case 0:e=n;if(!e)return[3,6];if(!(e.componentOnReady!=null))return[3,2];return[4,e.componentOnReady()];case 1:r=t.sent();if(r!=null){return[2]}return[3,4];case 2:if(!(e.__registerHost!=null))return[3,4];i=new Promise((function(n){return raf(n)}));return[4,i];case 3:t.sent();return[2];case 4:return[4,Promise.all(Array.from(e.children).map(deepReady))];case 5:t.sent();t.label=6;case 6:return[2]}}))}))};var setPageHidden=function(n,e){if(e){n.setAttribute("aria-hidden","true");n.classList.add("ion-page-hidden")}else{n.hidden=false;n.removeAttribute("aria-hidden");n.classList.remove("ion-page-hidden")}};var setZIndex=function(n,e,r){if(n!==undefined){n.style.zIndex=r==="back"?"99":"101"}if(e!==undefined){e.style.zIndex="100"}};var getIonPageElement=function(n){if(n.classList.contains("ion-page")){return n}var e=n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");if(e){return e}return n};export{LIFECYCLE_WILL_ENTER as L,LIFECYCLE_DID_ENTER as a,LIFECYCLE_WILL_LEAVE as b,LIFECYCLE_DID_LEAVE as c,LIFECYCLE_WILL_UNLOAD as d,deepReady as e,getIonPageElement as g,lifecycle as l,setPageHidden as s,transition as t,waitForMount as w};
4
+ */import{c as config}from"./ionic-global-6b9f2b5a.js";import{w as writeTask,B as Build}from"./index-fcdfc1aa.js";import{p as printIonWarning}from"./index-9b0d46f4.js";import{r as raf}from"./helpers-da915de8.js";var LIFECYCLE_WILL_ENTER="ionViewWillEnter";var LIFECYCLE_DID_ENTER="ionViewDidEnter";var LIFECYCLE_WILL_LEAVE="ionViewWillLeave";var LIFECYCLE_DID_LEAVE="ionViewDidLeave";var LIFECYCLE_WILL_UNLOAD="ionViewWillUnload";var moveFocus=function(n){n.tabIndex=-1;n.focus()};var isVisible=function(n){return n.offsetParent!==null};var createFocusController=function(){var n=function(n){var e=config.get("focusManagerPriority",false);if(e){var r=document.activeElement;if(r!==null&&(n===null||n===void 0?void 0:n.contains(r))){r.setAttribute(LAST_FOCUS,"true")}}};var e=function(n){var e=config.get("focusManagerPriority",false);if(Array.isArray(e)&&!n.contains(document.activeElement)){var r=n.querySelector("[".concat(LAST_FOCUS,"]"));if(r&&isVisible(r)){moveFocus(r);return}for(var i=0,t=e;i<t.length;i++){var a=t[i];switch(a){case"content":var o=n.querySelector('main, [role="main"]');if(o&&isVisible(o)){moveFocus(o);return}break;case"heading":var s=n.querySelector('h1, [role="heading"][aria-level="1"]');if(s&&isVisible(s)){moveFocus(s);return}break;case"banner":var u=n.querySelector('header, [role="banner"]');if(u&&isVisible(u)){moveFocus(u);return}break;default:printIonWarning("Unrecognized focus manager priority value ".concat(a));break}}moveFocus(n)}};return{saveViewFocus:n,setViewFocus:e}};var LAST_FOCUS="ion-last-focus";var iosTransitionAnimation=function(){return import("./ios.transition-1cb16beb.js")};var mdTransitionAnimation=function(){return import("./md.transition-20f80721.js")};var focusController=createFocusController();var transition=function(n){return new Promise((function(e,r){writeTask((function(){beforeTransition(n);runTransition(n).then((function(r){if(r.animation){r.animation.destroy()}afterTransition(n);e(r)}),(function(e){afterTransition(n);r(e)}))}))}))};var beforeTransition=function(n){var e=n.enteringEl;var r=n.leavingEl;focusController.saveViewFocus(r);setZIndex(e,r,n.direction);if(n.showGoBack){e.classList.add("can-go-back")}else{e.classList.remove("can-go-back")}setPageHidden(e,false);e.style.setProperty("pointer-events","none");if(r){setPageHidden(r,false);r.style.setProperty("pointer-events","none")}};var runTransition=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:return[4,getAnimationBuilder(n)];case 1:e=i.sent();r=e&&Build.isBrowser?animation(e,n):noAnimation(n);return[2,r]}}))}))};var afterTransition=function(n){var e=n.enteringEl;var r=n.leavingEl;e.classList.remove("ion-page-invisible");e.style.removeProperty("pointer-events");if(r!==undefined){r.classList.remove("ion-page-invisible");r.style.removeProperty("pointer-events")}focusController.setViewFocus(e)};var getAnimationBuilder=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:if(!n.leavingEl||!n.animated||n.duration===0){return[2,undefined]}if(n.animationBuilder){return[2,n.animationBuilder]}if(!(n.mode==="ios"))return[3,2];return[4,iosTransitionAnimation()];case 1:r=i.sent().iosTransitionAnimation;return[3,4];case 2:return[4,mdTransitionAnimation()];case 3:r=i.sent().mdTransitionAnimation;i.label=4;case 4:e=r;return[2,e]}}))}))};var animation=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var r,i;return __generator(this,(function(t){switch(t.label){case 0:return[4,waitForReady(e,true)];case 1:t.sent();r=n(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);return[4,playTransition(r,e)];case 2:i=t.sent();if(e.progressCallback){e.progressCallback(undefined)}if(i){fireDidEvents(e.enteringEl,e.leavingEl)}return[2,{hasCompleted:i,animation:r}]}}))}))};var noAnimation=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(t){switch(t.label){case 0:e=n.enteringEl;r=n.leavingEl;i=config.get("focusManagerPriority",false);return[4,waitForReady(n,i)];case 1:t.sent();fireWillEvents(e,r);fireDidEvents(e,r);return[2,{hasCompleted:true}]}}))}))};var waitForReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(i){switch(i.label){case 0:r=n.deepWait!==undefined?n.deepWait:e;if(!r)return[3,2];return[4,Promise.all([deepReady(n.enteringEl),deepReady(n.leavingEl)])];case 1:i.sent();i.label=2;case 2:return[4,notifyViewReady(n.viewIsReady,n.enteringEl)];case 3:i.sent();return[2]}}))}))};var notifyViewReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!n)return[3,2];return[4,n(e)];case 1:r.sent();r.label=2;case 2:return[2]}}))}))};var playTransition=function(n,e){var r=e.progressCallback;var i=new Promise((function(e){n.onFinish((function(n){return e(n===1)}))}));if(r){n.progressStart(true);r(n)}else{n.play()}return i};var fireWillEvents=function(n,e){lifecycle(e,LIFECYCLE_WILL_LEAVE);lifecycle(n,LIFECYCLE_WILL_ENTER)};var fireDidEvents=function(n,e){lifecycle(n,LIFECYCLE_DID_ENTER);lifecycle(e,LIFECYCLE_DID_LEAVE)};var lifecycle=function(n,e){if(n){var r=new CustomEvent(e,{bubbles:false,cancelable:false});n.dispatchEvent(r)}};var waitForMount=function(){return new Promise((function(n){return raf((function(){return raf((function(){return n()}))}))}))};var deepReady=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,r,i;return __generator(this,(function(t){switch(t.label){case 0:e=n;if(!e)return[3,6];if(!(e.componentOnReady!=null))return[3,2];return[4,e.componentOnReady()];case 1:r=t.sent();if(r!=null){return[2]}return[3,4];case 2:if(!(e.__registerHost!=null))return[3,4];i=new Promise((function(n){return raf(n)}));return[4,i];case 3:t.sent();return[2];case 4:return[4,Promise.all(Array.from(e.children).map(deepReady))];case 5:t.sent();t.label=6;case 6:return[2]}}))}))};var setPageHidden=function(n,e){if(e){n.setAttribute("aria-hidden","true");n.classList.add("ion-page-hidden")}else{n.hidden=false;n.removeAttribute("aria-hidden");n.classList.remove("ion-page-hidden")}};var setZIndex=function(n,e,r){if(n!==undefined){n.style.zIndex=r==="back"?"99":"101"}if(e!==undefined){e.style.zIndex="100"}};var getIonPageElement=function(n){if(n.classList.contains("ion-page")){return n}var e=n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");if(e){return e}return n};export{LIFECYCLE_WILL_ENTER as L,LIFECYCLE_DID_ENTER as a,LIFECYCLE_WILL_LEAVE as b,LIFECYCLE_DID_LEAVE as c,LIFECYCLE_WILL_UNLOAD as d,deepReady as e,getIonPageElement as g,lifecycle as l,setPageHidden as s,transition as t,waitForMount as w};
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator,__spreadArray}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{d as doc}from"./index-a5d50daf.js";import{MENU_BACK_BUTTON_PRIORITY}from"./hardware-back-button-06ef3c3e.js";import{p as printIonWarning}from"./index-9b0d46f4.js";import{c as componentOnReady}from"./helpers-da915de8.js";import{b as getIonMode}from"./ionic-global-c81d82ab.js";import{c as createAnimation}from"./animation-eab5a4ca.js";var baseAnimation=function(n){return createAnimation().duration(n?400:300)};var menuOverlayAnimation=function(n){var r;var e;var t=n.width+8;var i=createAnimation();var a=createAnimation();if(n.isEndSide){r=t+"px";e="0px"}else{r=-t+"px";e="0px"}i.addElement(n.menuInnerEl).fromTo("transform","translateX(".concat(r,")"),"translateX(".concat(e,")"));var o=getIonMode(n);var u=o==="ios";var s=u?.2:.25;a.addElement(n.backdropEl).fromTo("opacity",.01,s);return baseAnimation(u).addAnimation([i,a])};var menuPushAnimation=function(n){var r;var e;var t=getIonMode(n);var i=n.width;if(n.isEndSide){r=-i+"px";e=i+"px"}else{r=i+"px";e=-i+"px"}var a=createAnimation().addElement(n.menuInnerEl).fromTo("transform","translateX(".concat(e,")"),"translateX(0px)");var o=createAnimation().addElement(n.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(r,")"));var u=createAnimation().addElement(n.backdropEl).fromTo("opacity",.01,.32);return baseAnimation(t==="ios").addAnimation([a,o,u])};var menuRevealAnimation=function(n){var r=getIonMode(n);var e=n.width*(n.isEndSide?-1:1)+"px";var t=createAnimation().addElement(n.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(e,")"));return baseAnimation(r==="ios").addAnimation(t)};var createMenuController=function(){var n=new Map;var r=[];var e=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,c(n,true)];case 1:r=e.sent();if(r){return[2,r.open()]}return[2,false]}}))}))};var t=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,n!==undefined?c(n,true):f()];case 1:r=e.sent();if(r!==undefined){return[2,r.close()]}return[2,false]}}))}))};var i=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,c(n,true)];case 1:r=e.sent();if(r){return[2,r.toggle()]}return[2,false]}}))}))};var a=function(n,r){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,c(r)];case 1:e=t.sent();if(e){e.disabled=!n}return[2,e]}}))}))};var o=function(n,r){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,c(r)];case 1:e=t.sent();if(e){e.swipeGesture=n}return[2,e]}}))}))};var u=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r,r;return __generator(this,(function(e){switch(e.label){case 0:if(!(n!=null))return[3,2];return[4,c(n)];case 1:r=e.sent();return[2,r!==undefined&&r.isOpen()];case 2:return[4,f()];case 3:r=e.sent();return[2,r!==undefined]}}))}))};var s=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,c(n)];case 1:r=e.sent();if(r){return[2,!r.disabled]}return[2,false]}}))}))};var c=function(n){var e=[];for(var t=1;t<arguments.length;t++){e[t-1]=arguments[t]}return __awaiter(void 0,__spreadArray([n],e,true),void 0,(function(n,e){var t,i,a;if(e===void 0){e=false}return __generator(this,(function(o){switch(o.label){case 0:return[4,x()];case 1:o.sent();if(n==="start"||n==="end"){t=r.filter((function(r){return r.side===n&&!r.disabled}));if(t.length>=1){if(t.length>1&&e){printIonWarning('menuController queried for a menu on the "'.concat(n,'" side, but ').concat(t.length," menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side."),t.map((function(n){return n.el})))}return[2,t[0].el]}i=r.filter((function(r){return r.side===n}));if(i.length>=1){if(i.length>1&&e){printIonWarning('menuController queried for a menu on the "'.concat(n,'" side, but ').concat(i.length," menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side."),i.map((function(n){return n.el})))}return[2,i[0].el]}}else if(n!=null){return[2,b((function(r){return r.menuId===n}))]}a=b((function(n){return!n.disabled}));if(a){return[2,a]}return[2,r.length>0?r[0].el:undefined]}}))}))};var f=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,x()];case 1:n.sent();return[2,w()]}}))}))};var v=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,x()];case 1:n.sent();return[2,g()]}}))}))};var d=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,x()];case 1:n.sent();return[2,A()]}}))}))};var _=function(r,e){n.set(r,e)};var m=function(n){if(r.indexOf(n)<0){r.push(n)}};var l=function(n){var e=r.indexOf(n);if(e>-1){r.splice(e,1)}};var h=function(n,r,e,t){return __awaiter(void 0,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:if(A()){return[2,false]}if(!r)return[3,3];return[4,f()];case 1:i=a.sent();if(!(i&&n.el!==i))return[3,3];return[4,i.setOpen(false,false)];case 2:a.sent();a.label=3;case 3:return[2,n._setOpen(r,e,t)]}}))}))};var p=function(r,e){var t=n.get(r);if(!t){throw new Error("animation not registered")}var i=t(e);return i};var w=function(){return b((function(n){return n._isOpen}))};var g=function(){return r.map((function(n){return n.el}))};var A=function(){return r.some((function(n){return n.isAnimating}))};var b=function(n){var e=r.find(n);if(e!==undefined){return e.el}return undefined};var x=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((function(n){return new Promise((function(r){return componentOnReady(n,r)}))})))};_("reveal",menuRevealAnimation);_("push",menuPushAnimation);_("overlay",menuOverlayAnimation);doc===null||doc===void 0?void 0:doc.addEventListener("ionBackButton",(function(n){var r=w();if(r){n.detail.register(MENU_BACK_BUTTON_PRIORITY,(function(){return r.close()}))}}));return{registerAnimation:_,get:c,getMenus:v,getOpen:f,isEnabled:s,swipeGesture:o,isAnimating:d,isOpen:u,enable:a,toggle:i,close:t,open:e,_getOpenSync:w,_createAnimation:p,_register:m,_unregister:l,_setOpen:h}};var menuController=createMenuController();export{menuController as m};
4
+ */import{d as doc}from"./index-a5d50daf.js";import{MENU_BACK_BUTTON_PRIORITY}from"./hardware-back-button-0a284222.js";import{p as printIonWarning}from"./index-9b0d46f4.js";import{c as componentOnReady}from"./helpers-da915de8.js";import{b as getIonMode}from"./ionic-global-6b9f2b5a.js";import{c as createAnimation}from"./animation-eab5a4ca.js";var baseAnimation=function(n){return createAnimation().duration(n?400:300)};var menuOverlayAnimation=function(n){var r;var e;var t=n.width+8;var i=createAnimation();var a=createAnimation();if(n.isEndSide){r=t+"px";e="0px"}else{r=-t+"px";e="0px"}i.addElement(n.menuInnerEl).fromTo("transform","translateX(".concat(r,")"),"translateX(".concat(e,")"));var o=getIonMode(n);var u=o==="ios";var s=u?.2:.25;a.addElement(n.backdropEl).fromTo("opacity",.01,s);return baseAnimation(u).addAnimation([i,a])};var menuPushAnimation=function(n){var r;var e;var t=getIonMode(n);var i=n.width;if(n.isEndSide){r=-i+"px";e=i+"px"}else{r=i+"px";e=-i+"px"}var a=createAnimation().addElement(n.menuInnerEl).fromTo("transform","translateX(".concat(e,")"),"translateX(0px)");var o=createAnimation().addElement(n.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(r,")"));var u=createAnimation().addElement(n.backdropEl).fromTo("opacity",.01,.32);return baseAnimation(t==="ios").addAnimation([a,o,u])};var menuRevealAnimation=function(n){var r=getIonMode(n);var e=n.width*(n.isEndSide?-1:1)+"px";var t=createAnimation().addElement(n.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(e,")"));return baseAnimation(r==="ios").addAnimation(t)};var createMenuController=function(){var n=new Map;var r=[];var e=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,c(n,true)];case 1:r=e.sent();if(r){return[2,r.open()]}return[2,false]}}))}))};var t=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,n!==undefined?c(n,true):f()];case 1:r=e.sent();if(r!==undefined){return[2,r.close()]}return[2,false]}}))}))};var i=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,c(n,true)];case 1:r=e.sent();if(r){return[2,r.toggle()]}return[2,false]}}))}))};var a=function(n,r){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,c(r)];case 1:e=t.sent();if(e){e.disabled=!n}return[2,e]}}))}))};var o=function(n,r){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,c(r)];case 1:e=t.sent();if(e){e.swipeGesture=n}return[2,e]}}))}))};var u=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r,r;return __generator(this,(function(e){switch(e.label){case 0:if(!(n!=null))return[3,2];return[4,c(n)];case 1:r=e.sent();return[2,r!==undefined&&r.isOpen()];case 2:return[4,f()];case 3:r=e.sent();return[2,r!==undefined]}}))}))};var s=function(n){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:return[4,c(n)];case 1:r=e.sent();if(r){return[2,!r.disabled]}return[2,false]}}))}))};var c=function(n){var e=[];for(var t=1;t<arguments.length;t++){e[t-1]=arguments[t]}return __awaiter(void 0,__spreadArray([n],e,true),void 0,(function(n,e){var t,i,a;if(e===void 0){e=false}return __generator(this,(function(o){switch(o.label){case 0:return[4,x()];case 1:o.sent();if(n==="start"||n==="end"){t=r.filter((function(r){return r.side===n&&!r.disabled}));if(t.length>=1){if(t.length>1&&e){printIonWarning('menuController queried for a menu on the "'.concat(n,'" side, but ').concat(t.length," menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side."),t.map((function(n){return n.el})))}return[2,t[0].el]}i=r.filter((function(r){return r.side===n}));if(i.length>=1){if(i.length>1&&e){printIonWarning('menuController queried for a menu on the "'.concat(n,'" side, but ').concat(i.length," menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side."),i.map((function(n){return n.el})))}return[2,i[0].el]}}else if(n!=null){return[2,b((function(r){return r.menuId===n}))]}a=b((function(n){return!n.disabled}));if(a){return[2,a]}return[2,r.length>0?r[0].el:undefined]}}))}))};var f=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,x()];case 1:n.sent();return[2,w()]}}))}))};var v=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,x()];case 1:n.sent();return[2,g()]}}))}))};var d=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,x()];case 1:n.sent();return[2,A()]}}))}))};var _=function(r,e){n.set(r,e)};var m=function(n){if(r.indexOf(n)<0){r.push(n)}};var l=function(n){var e=r.indexOf(n);if(e>-1){r.splice(e,1)}};var h=function(n,r,e,t){return __awaiter(void 0,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:if(A()){return[2,false]}if(!r)return[3,3];return[4,f()];case 1:i=a.sent();if(!(i&&n.el!==i))return[3,3];return[4,i.setOpen(false,false)];case 2:a.sent();a.label=3;case 3:return[2,n._setOpen(r,e,t)]}}))}))};var p=function(r,e){var t=n.get(r);if(!t){throw new Error("animation not registered")}var i=t(e);return i};var w=function(){return b((function(n){return n._isOpen}))};var g=function(){return r.map((function(n){return n.el}))};var A=function(){return r.some((function(n){return n.isAnimating}))};var b=function(n){var e=r.find(n);if(e!==undefined){return e.el}return undefined};var x=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((function(n){return new Promise((function(r){return componentOnReady(n,r)}))})))};_("reveal",menuRevealAnimation);_("push",menuPushAnimation);_("overlay",menuOverlayAnimation);doc===null||doc===void 0?void 0:doc.addEventListener("ionBackButton",(function(n){var r=w();if(r){n.detail.register(MENU_BACK_BUTTON_PRIORITY,(function(){return r.close()}))}}));return{registerAnimation:_,get:c,getMenus:v,getOpen:f,isEnabled:s,swipeGesture:o,isAnimating:d,isOpen:u,enable:a,toggle:i,close:t,open:e,_getOpenSync:w,_createAnimation:p,_register:m,_unregister:l,_setOpen:h}};var menuController=createMenuController();export{menuController as m};