@ionic/core 8.3.4-dev.11730140347.1a5a7bee → 8.3.4-dev.11730315987.18af6259

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 (1165) hide show
  1. package/components/action-sheet.js +8 -13
  2. package/components/alert.js +15 -18
  3. package/components/animation.js +1 -1
  4. package/components/backdrop.js +6 -10
  5. package/components/button.js +11 -41
  6. package/components/buttons.js +7 -11
  7. package/components/capacitor.js +1 -1
  8. package/components/checkbox.js +15 -30
  9. package/components/content.js +446 -0
  10. package/components/data.js +4 -4
  11. package/components/focus-visible.js +1 -8
  12. package/components/framework-delegate.js +1 -3
  13. package/components/hardware-back-button.js +115 -0
  14. package/components/header.js +356 -0
  15. package/components/helpers.js +1 -4
  16. package/components/index2.js +2 -2
  17. package/components/index4.js +11 -10
  18. package/components/index5.js +3 -27
  19. package/components/index6.js +20 -114
  20. package/components/index7.js +27 -163
  21. package/components/index8.js +128 -0
  22. package/{dist/esm/index-7f65e865.js → components/index9.js} +2 -3
  23. package/components/input-shims.js +2 -2
  24. package/components/input.utils.js +2 -1
  25. package/components/ion-accordion-group.js +6 -9
  26. package/components/ion-accordion.js +17 -36
  27. package/components/ion-app.js +77 -9
  28. package/components/ion-avatar.js +3 -52
  29. package/components/ion-back-button.js +19 -29
  30. package/components/ion-badge.js +8 -44
  31. package/components/ion-breadcrumb.js +11 -45
  32. package/components/ion-breadcrumbs.js +5 -9
  33. package/components/ion-card-content.js +7 -11
  34. package/components/ion-card-header.js +5 -9
  35. package/components/ion-card-subtitle.js +5 -9
  36. package/components/ion-card-title.js +5 -9
  37. package/components/ion-card.js +9 -17
  38. package/components/ion-chip.js +8 -45
  39. package/components/ion-col.js +5 -5
  40. package/components/ion-content.js +1 -443
  41. package/components/ion-datetime-button.js +6 -9
  42. package/components/ion-datetime.js +20 -96
  43. package/components/ion-fab-button.js +10 -33
  44. package/components/ion-fab-list.js +5 -5
  45. package/components/ion-fab.js +6 -6
  46. package/components/ion-footer.js +12 -18
  47. package/components/ion-grid.js +5 -5
  48. package/components/ion-header.js +1 -360
  49. package/components/ion-img.js +2 -5
  50. package/components/ion-infinite-scroll-content.js +8 -13
  51. package/components/ion-infinite-scroll.js +5 -5
  52. package/components/ion-input-password-toggle.js +14 -53
  53. package/components/ion-input.js +20 -118
  54. package/components/ion-item-divider.js +5 -9
  55. package/components/ion-item-group.js +5 -9
  56. package/components/ion-item-option.js +8 -28
  57. package/components/ion-item-options.js +5 -9
  58. package/components/ion-item-sliding.js +5 -5
  59. package/components/ion-loading.js +8 -13
  60. package/components/ion-menu-button.js +10 -28
  61. package/components/ion-menu-toggle.js +5 -5
  62. package/components/ion-menu.js +25 -29
  63. package/components/ion-modal.js +1 -1767
  64. package/components/ion-nav-link.js +1 -1
  65. package/components/ion-nav.js +6 -8
  66. package/components/ion-note.js +5 -9
  67. package/components/ion-picker-legacy.js +8 -7
  68. package/components/ion-progress-bar.js +6 -11
  69. package/components/ion-range.js +8 -11
  70. package/components/ion-refresher-content.js +9 -28
  71. package/components/ion-refresher.js +7 -11
  72. package/components/ion-reorder-group.js +5 -5
  73. package/components/ion-reorder.js +5 -31
  74. package/components/ion-router-link.js +6 -6
  75. package/components/ion-router-outlet.js +3 -4
  76. package/components/ion-row.js +2 -5
  77. package/components/ion-searchbar.js +16 -93
  78. package/components/ion-segment-button.js +8 -12
  79. package/components/ion-segment.js +7 -11
  80. package/components/ion-select-modal.d.ts +11 -0
  81. package/components/ion-select-modal.js +9 -0
  82. package/components/ion-select-option.js +2 -5
  83. package/components/ion-select.js +140 -116
  84. package/components/ion-skeleton-text.js +5 -6
  85. package/components/ion-split-pane.js +8 -12
  86. package/components/ion-tab-bar.js +8 -31
  87. package/components/ion-tab-button.js +7 -12
  88. package/components/ion-tab.js +2 -2
  89. package/components/ion-tabs.js +2 -2
  90. package/components/ion-text.js +5 -5
  91. package/components/ion-textarea.js +11 -38
  92. package/components/ion-thumbnail.js +2 -5
  93. package/components/ion-title.js +1 -74
  94. package/components/ion-toast.js +12 -30
  95. package/components/ion-toggle.js +18 -77
  96. package/components/ion-toolbar.js +1 -92
  97. package/components/ionic-global.js +84 -374
  98. package/components/ios.transition.js +0 -1
  99. package/components/item.js +11 -41
  100. package/components/keyboard-controller.js +2 -4
  101. package/components/label.js +5 -9
  102. package/components/list-header.js +5 -9
  103. package/components/list.js +6 -29
  104. package/components/modal.js +1742 -0
  105. package/components/notch-controller.js +1 -1
  106. package/components/overlays.js +5 -4
  107. package/components/picker-column-option.js +5 -9
  108. package/components/picker-column.js +8 -7
  109. package/components/picker-column2.js +4 -4
  110. package/components/picker.js +4 -8
  111. package/components/popover.js +8 -11
  112. package/components/radio-group.js +7 -7
  113. package/components/radio.js +12 -14
  114. package/components/ripple-effect.js +8 -18
  115. package/components/select-modal.js +197 -0
  116. package/components/select-popover.js +2 -9
  117. package/components/spinner.js +9 -36
  118. package/components/status-tap.js +1 -1
  119. package/components/title.js +75 -0
  120. package/components/toolbar.js +93 -0
  121. package/css/core.css +1 -1
  122. package/css/core.css.map +1 -1
  123. package/css/display.css.map +1 -1
  124. package/css/flex-utils.css.map +1 -1
  125. package/css/float-elements.css.map +1 -1
  126. package/css/global.bundle.css.map +1 -1
  127. package/css/ionic-swiper.css +1 -1
  128. package/css/ionic-swiper.css.map +1 -1
  129. package/css/ionic.bundle.css +1 -1
  130. package/css/ionic.bundle.css.map +1 -1
  131. package/css/normalize.css.map +1 -1
  132. package/css/padding.css.map +1 -1
  133. package/css/palettes/dark.always.css.map +1 -1
  134. package/css/palettes/dark.class.css.map +1 -1
  135. package/css/palettes/dark.system.css.map +1 -1
  136. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  137. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  138. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  139. package/css/palettes/high-contrast.always.css.map +1 -1
  140. package/css/palettes/high-contrast.class.css.map +1 -1
  141. package/css/palettes/high-contrast.system.css.map +1 -1
  142. package/css/structure.css.map +1 -1
  143. package/css/text-alignment.css.map +1 -1
  144. package/css/text-transformation.css.map +1 -1
  145. package/css/typography.css.map +1 -1
  146. package/css/utils.bundle.css.map +1 -1
  147. package/dist/cjs/{animation-232e0c8f.js → animation-b4fdf128.js} +2 -2
  148. package/dist/cjs/{app-globals-0189a70c.js → app-globals-21afee77.js} +1 -1
  149. package/dist/cjs/{button-active-41228dbf.js → button-active-3f2f60b4.js} +4 -4
  150. package/dist/cjs/{capacitor-806e7fee.js → capacitor-c04564bf.js} +3 -3
  151. package/dist/cjs/{data-cad5d489.js → data-21dc0f81.js} +6 -6
  152. package/dist/{esm/focus-visible-501aff19.js → cjs/focus-visible-7a0ce04f.js} +3 -8
  153. package/dist/cjs/{framework-delegate-cf116b1d.js → framework-delegate-55f5683a.js} +2 -4
  154. package/dist/cjs/{haptic-f0cad9a6.js → haptic-f6b37aa3.js} +1 -1
  155. package/dist/cjs/hardware-back-button-9e8a2c4f.js +122 -0
  156. package/dist/cjs/{helpers-e75eb909.js → helpers-afaa9001.js} +1 -4
  157. package/dist/cjs/index-5915f9b3.js +38 -0
  158. package/dist/cjs/{index-1d02518d.js → index-5b6a7459.js} +3 -3
  159. package/dist/cjs/{config-1349d5b4.js → index-73f75efb.js} +0 -79
  160. package/dist/cjs/{index-71085796.js → index-8e789962.js} +17 -16
  161. package/dist/cjs/{index-2c8b42cd.js → index-9509ecad.js} +7 -8
  162. package/dist/cjs/index-c8d52405.js +10 -0
  163. package/dist/cjs/{index-3ac79a1b.js → index-f05acd21.js} +12 -11
  164. package/dist/cjs/index.cjs.js +13 -10
  165. package/dist/cjs/{input-shims-2958dcc9.js → input-shims-9e59ef62.js} +17 -17
  166. package/dist/cjs/{input.utils-ed749ecb.js → input.utils-611cde0b.js} +5 -4
  167. package/dist/cjs/ion-accordion_2.cjs.entry.js +32 -53
  168. package/dist/cjs/ion-action-sheet.cjs.entry.js +30 -32
  169. package/dist/cjs/ion-alert.cjs.entry.js +46 -45
  170. package/dist/cjs/ion-app_8.cjs.entry.js +189 -144
  171. package/dist/cjs/ion-avatar_3.cjs.entry.js +13 -96
  172. package/dist/cjs/ion-back-button.cjs.entry.js +25 -34
  173. package/dist/cjs/ion-backdrop.cjs.entry.js +9 -13
  174. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +25 -62
  175. package/dist/cjs/ion-button_2.cjs.entry.js +24 -54
  176. package/dist/cjs/ion-card_5.cjs.entry.js +36 -59
  177. package/dist/cjs/ion-checkbox.cjs.entry.js +23 -37
  178. package/dist/cjs/ion-chip.cjs.entry.js +9 -44
  179. package/dist/cjs/ion-col_3.cjs.entry.js +15 -18
  180. package/dist/cjs/ion-datetime-button.cjs.entry.js +15 -18
  181. package/dist/cjs/ion-datetime_3.cjs.entry.js +115 -188
  182. package/dist/cjs/ion-fab_3.cjs.entry.js +29 -51
  183. package/dist/cjs/ion-img.cjs.entry.js +9 -12
  184. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +29 -32
  185. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +19 -57
  186. package/dist/cjs/ion-input.cjs.entry.js +39 -133
  187. package/dist/cjs/ion-item-option_3.cjs.entry.js +29 -51
  188. package/dist/cjs/ion-item_8.cjs.entry.js +60 -131
  189. package/dist/cjs/ion-loading.cjs.entry.js +30 -31
  190. package/dist/cjs/ion-menu_3.cjs.entry.js +64 -82
  191. package/dist/cjs/ion-modal.cjs.entry.js +67 -94
  192. package/dist/cjs/ion-nav_2.cjs.entry.js +28 -29
  193. package/dist/cjs/ion-picker-column-option.cjs.entry.js +9 -13
  194. package/dist/cjs/ion-picker-column.cjs.entry.js +17 -16
  195. package/dist/cjs/ion-picker.cjs.entry.js +9 -13
  196. package/dist/cjs/ion-popover.cjs.entry.js +30 -31
  197. package/dist/cjs/ion-progress-bar.cjs.entry.js +14 -18
  198. package/dist/cjs/ion-radio_2.cjs.entry.js +29 -31
  199. package/dist/cjs/ion-range.cjs.entry.js +28 -31
  200. package/dist/cjs/ion-refresher_2.cjs.entry.js +53 -73
  201. package/dist/cjs/ion-reorder_2.cjs.entry.js +22 -45
  202. package/dist/cjs/ion-ripple-effect.cjs.entry.js +12 -22
  203. package/dist/cjs/ion-route_4.cjs.entry.js +17 -17
  204. package/dist/cjs/ion-searchbar.cjs.entry.js +31 -107
  205. package/dist/cjs/ion-segment_2.cjs.entry.js +25 -33
  206. package/dist/cjs/ion-select-modal.cjs.entry.js +111 -0
  207. package/dist/cjs/ion-select_3.cjs.entry.js +98 -128
  208. package/dist/cjs/ion-spinner.cjs.entry.js +17 -42
  209. package/dist/cjs/ion-split-pane.cjs.entry.js +12 -16
  210. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +28 -52
  211. package/dist/cjs/ion-tab_2.cjs.entry.js +14 -14
  212. package/dist/cjs/ion-text.cjs.entry.js +7 -7
  213. package/dist/cjs/ion-textarea.cjs.entry.js +32 -56
  214. package/dist/cjs/ion-toast.cjs.entry.js +43 -58
  215. package/dist/cjs/ion-toggle.cjs.entry.js +31 -88
  216. package/dist/cjs/ionic-global-d9a8bb5b.js +237 -0
  217. package/dist/cjs/ionic.cjs.js +7 -7
  218. package/dist/cjs/{ios.transition-4411892c.js → ios.transition-cf40433b.js} +7 -6
  219. package/dist/cjs/{keyboard-ed6e1327.js → keyboard-0272231f.js} +1 -1
  220. package/dist/cjs/{keyboard-e0062bfc.js → keyboard-af1bb365.js} +3 -4
  221. package/dist/cjs/{keyboard-controller-020444ad.js → keyboard-controller-c05e747a.js} +9 -11
  222. package/dist/cjs/loader.cjs.js +5 -5
  223. package/dist/cjs/{md.transition-261f9f67.js → md.transition-ededf99f.js} +7 -5
  224. package/dist/cjs/{notch-controller-70ad2323.js → notch-controller-d69150f5.js} +4 -4
  225. package/dist/cjs/{overlays-22320753.js → overlays-0123d7d4.js} +19 -18
  226. package/dist/cjs/{status-tap-cfc7f9a5.js → status-tap-37681226.js} +8 -8
  227. package/dist/cjs/{swipe-back-ecdf1cf5.js → swipe-back-0303a5e4.js} +1 -2
  228. package/dist/collection/collection-manifest.json +1 -0
  229. package/dist/collection/components/accordion/accordion.ios.css +58 -73
  230. package/dist/collection/components/accordion/accordion.js +21 -37
  231. package/dist/collection/components/accordion/accordion.md.css +59 -67
  232. package/dist/collection/components/accordion-group/accordion-group.ios.css +4 -16
  233. package/dist/collection/components/accordion-group/accordion-group.js +8 -11
  234. package/dist/collection/components/accordion-group/accordion-group.md.css +4 -22
  235. package/dist/collection/components/action-sheet/action-sheet.ios.css +6 -18
  236. package/dist/collection/components/action-sheet/action-sheet.js +10 -14
  237. package/dist/collection/components/action-sheet/action-sheet.md.css +5 -17
  238. package/dist/collection/components/alert/alert.ios.css +1 -19
  239. package/dist/collection/components/alert/alert.js +17 -18
  240. package/dist/collection/components/alert/alert.md.css +1 -19
  241. package/dist/collection/components/app/app.js +78 -12
  242. package/dist/collection/components/avatar/avatar.ios.css +0 -12
  243. package/dist/collection/components/avatar/avatar.js +4 -92
  244. package/dist/collection/components/avatar/avatar.md.css +0 -12
  245. package/dist/collection/components/back-button/back-button.ios.css +48 -60
  246. package/dist/collection/components/back-button/back-button.js +19 -27
  247. package/dist/collection/components/back-button/back-button.md.css +48 -60
  248. package/dist/collection/components/backdrop/backdrop.ios.css +1 -13
  249. package/dist/collection/components/backdrop/backdrop.js +6 -12
  250. package/dist/collection/components/backdrop/backdrop.md.css +1 -13
  251. package/dist/collection/components/badge/badge.ios.css +3 -106
  252. package/dist/collection/components/badge/badge.js +8 -75
  253. package/dist/collection/components/badge/badge.md.css +3 -106
  254. package/dist/collection/components/breadcrumb/breadcrumb.ios.css +8 -20
  255. package/dist/collection/components/breadcrumb/breadcrumb.js +11 -43
  256. package/dist/collection/components/breadcrumb/breadcrumb.md.css +8 -20
  257. package/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -6
  258. package/dist/collection/components/breadcrumbs/breadcrumbs.js +9 -11
  259. package/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -6
  260. package/dist/collection/components/button/button.ios.css +36 -129
  261. package/dist/collection/components/button/button.js +16 -46
  262. package/dist/collection/components/button/button.md.css +40 -120
  263. package/dist/collection/components/buttons/buttons.ios.css +7 -59
  264. package/dist/collection/components/buttons/buttons.js +8 -14
  265. package/dist/collection/components/buttons/buttons.md.css +3 -55
  266. package/dist/collection/components/card/card.ios.css +14 -65
  267. package/dist/collection/components/card/card.js +10 -34
  268. package/dist/collection/components/card/card.md.css +14 -65
  269. package/dist/collection/components/card-content/card-content.ios.css +1 -16
  270. package/dist/collection/components/card-content/card-content.js +8 -11
  271. package/dist/collection/components/card-content/card-content.md.css +1 -16
  272. package/dist/collection/components/card-header/card-header.ios.css +15 -27
  273. package/dist/collection/components/card-header/card-header.js +9 -12
  274. package/dist/collection/components/card-header/card-header.md.css +15 -27
  275. package/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -12
  276. package/dist/collection/components/card-subtitle/card-subtitle.js +8 -11
  277. package/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -12
  278. package/dist/collection/components/card-title/card-title.ios.css +0 -73
  279. package/dist/collection/components/card-title/card-title.js +8 -11
  280. package/dist/collection/components/card-title/card-title.md.css +0 -73
  281. package/dist/collection/components/checkbox/checkbox.ios.css +2 -20
  282. package/dist/collection/components/checkbox/checkbox.js +40 -64
  283. package/dist/collection/components/checkbox/checkbox.md.css +3 -21
  284. package/dist/collection/components/chip/chip.ios.css +1 -20
  285. package/dist/collection/components/chip/chip.js +8 -77
  286. package/dist/collection/components/chip/chip.md.css +1 -20
  287. package/dist/collection/components/col/col.css +0 -12
  288. package/dist/collection/components/col/col.js +5 -9
  289. package/dist/collection/components/content/content.css +2 -8
  290. package/dist/collection/components/content/content.js +11 -16
  291. package/dist/collection/components/datetime/datetime.ios.css +73 -232
  292. package/dist/collection/components/datetime/datetime.js +19 -95
  293. package/dist/collection/components/datetime/datetime.md.css +73 -232
  294. package/dist/collection/components/datetime/utils/data.js +3 -3
  295. package/dist/collection/components/datetime-button/datetime-button.ios.css +0 -6
  296. package/dist/collection/components/datetime-button/datetime-button.js +8 -11
  297. package/dist/collection/components/datetime-button/datetime-button.md.css +0 -6
  298. package/dist/collection/components/fab/fab.css +1 -25
  299. package/dist/collection/components/fab/fab.js +5 -9
  300. package/dist/collection/components/fab-button/fab-button.ios.css +6 -18
  301. package/dist/collection/components/fab-button/fab-button.js +15 -36
  302. package/dist/collection/components/fab-button/fab-button.md.css +8 -20
  303. package/dist/collection/components/fab-list/fab-list.css +0 -12
  304. package/dist/collection/components/fab-list/fab-list.js +5 -9
  305. package/dist/collection/components/footer/footer.ios.css +2 -14
  306. package/dist/collection/components/footer/footer.js +15 -20
  307. package/dist/collection/components/footer/footer.md.css +0 -12
  308. package/dist/collection/components/grid/grid.css +0 -12
  309. package/dist/collection/components/grid/grid.js +5 -9
  310. package/dist/collection/components/header/header.ios.css +10 -25
  311. package/dist/collection/components/header/header.js +17 -42
  312. package/dist/collection/components/header/header.md.css +8 -23
  313. package/dist/collection/components/img/img.js +2 -8
  314. package/dist/collection/components/infinite-scroll/infinite-scroll.js +4 -8
  315. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -12
  316. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +10 -16
  317. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -12
  318. package/dist/collection/components/input/input.ios.css +2 -21
  319. package/dist/collection/components/input/input.js +30 -144
  320. package/dist/collection/components/input/input.md.css +4 -43
  321. package/dist/collection/components/input-password-toggle/input-password-toggle.js +12 -48
  322. package/dist/collection/components/item/item.ios.css +69 -109
  323. package/dist/collection/components/item/item.js +16 -44
  324. package/dist/collection/components/item/item.md.css +68 -120
  325. package/dist/collection/components/item-divider/item-divider.ios.css +0 -18
  326. package/dist/collection/components/item-divider/item-divider.js +8 -11
  327. package/dist/collection/components/item-divider/item-divider.md.css +0 -18
  328. package/dist/collection/components/item-group/item-group.ios.css +0 -12
  329. package/dist/collection/components/item-group/item-group.js +7 -13
  330. package/dist/collection/components/item-group/item-group.md.css +0 -12
  331. package/dist/collection/components/item-option/item-option.ios.css +2 -14
  332. package/dist/collection/components/item-option/item-option.js +8 -43
  333. package/dist/collection/components/item-option/item-option.md.css +2 -14
  334. package/dist/collection/components/item-options/item-options.ios.css +0 -18
  335. package/dist/collection/components/item-options/item-options.js +7 -13
  336. package/dist/collection/components/item-options/item-options.md.css +0 -18
  337. package/dist/collection/components/item-sliding/item-sliding.css +0 -6
  338. package/dist/collection/components/item-sliding/item-sliding.js +4 -8
  339. package/dist/collection/components/label/label.ios.css +0 -18
  340. package/dist/collection/components/label/label.js +8 -11
  341. package/dist/collection/components/label/label.md.css +0 -18
  342. package/dist/collection/components/list/list.ios.css +0 -18
  343. package/dist/collection/components/list/list.js +9 -47
  344. package/dist/collection/components/list/list.md.css +2 -20
  345. package/dist/collection/components/list-header/list-header.ios.css +0 -18
  346. package/dist/collection/components/list-header/list-header.js +8 -11
  347. package/dist/collection/components/list-header/list-header.md.css +0 -18
  348. package/dist/collection/components/loading/loading.ios.css +1 -13
  349. package/dist/collection/components/loading/loading.js +10 -13
  350. package/dist/collection/components/loading/loading.md.css +1 -13
  351. package/dist/collection/components/menu/menu.ios.css +3 -15
  352. package/dist/collection/components/menu/menu.js +52 -37
  353. package/dist/collection/components/menu/menu.md.css +3 -15
  354. package/dist/collection/components/menu-button/menu-button.ios.css +14 -48
  355. package/dist/collection/components/menu-button/menu-button.js +10 -26
  356. package/dist/collection/components/menu-button/menu-button.md.css +15 -49
  357. package/dist/collection/components/menu-toggle/menu-toggle.js +5 -8
  358. package/dist/collection/components/modal/animations/sheet.js +2 -8
  359. package/dist/collection/components/modal/gestures/sheet.js +6 -10
  360. package/dist/collection/components/modal/modal.ios.css +63 -106
  361. package/dist/collection/components/modal/modal.js +11 -47
  362. package/dist/collection/components/modal/modal.md.css +63 -106
  363. package/dist/collection/components/nav/nav.css +1 -7
  364. package/dist/collection/components/nav/nav.js +5 -11
  365. package/dist/collection/components/nav-link/nav-link.js +1 -5
  366. package/dist/collection/components/note/note.ios.css +0 -12
  367. package/dist/collection/components/note/note.js +8 -11
  368. package/dist/collection/components/note/note.md.css +0 -12
  369. package/dist/collection/components/picker/picker.ios.css +3 -15
  370. package/dist/collection/components/picker/picker.js +5 -8
  371. package/dist/collection/components/picker/picker.md.css +3 -15
  372. package/dist/collection/components/picker-column/picker-column.css +2 -9
  373. package/dist/collection/components/picker-column/picker-column.js +7 -8
  374. package/dist/collection/components/picker-column-option/picker-column-option.ios.css +0 -6
  375. package/dist/collection/components/picker-column-option/picker-column-option.js +7 -13
  376. package/dist/collection/components/picker-column-option/picker-column-option.md.css +0 -6
  377. package/dist/collection/components/picker-legacy/picker.ios.css +1 -13
  378. package/dist/collection/components/picker-legacy/picker.js +6 -7
  379. package/dist/collection/components/picker-legacy/picker.md.css +1 -13
  380. package/dist/collection/components/picker-legacy-column/picker-column.ios.css +0 -12
  381. package/dist/collection/components/picker-legacy-column/picker-column.js +4 -4
  382. package/dist/collection/components/picker-legacy-column/picker-column.md.css +0 -12
  383. package/dist/collection/components/popover/popover.ios.css +1 -13
  384. package/dist/collection/components/popover/popover.js +12 -15
  385. package/dist/collection/components/popover/popover.md.css +1 -13
  386. package/dist/collection/components/progress-bar/progress-bar.ios.css +2 -8
  387. package/dist/collection/components/progress-bar/progress-bar.js +7 -10
  388. package/dist/collection/components/progress-bar/progress-bar.md.css +2 -8
  389. package/dist/collection/components/radio/radio.ios.css +91 -134
  390. package/dist/collection/components/radio/radio.js +15 -16
  391. package/dist/collection/components/radio/radio.md.css +91 -134
  392. package/dist/collection/components/radio-group/radio-group.js +7 -11
  393. package/dist/collection/components/range/range.ios.css +0 -12
  394. package/dist/collection/components/range/range.js +9 -12
  395. package/dist/collection/components/range/range.md.css +0 -12
  396. package/dist/collection/components/refresher/refresher.ios.css +1 -14
  397. package/dist/collection/components/refresher/refresher.js +8 -11
  398. package/dist/collection/components/refresher/refresher.md.css +2 -15
  399. package/dist/collection/components/refresher-content/refresher-content.js +7 -28
  400. package/dist/collection/components/reorder/reorder.ios.css +0 -6
  401. package/dist/collection/components/reorder/reorder.js +6 -33
  402. package/dist/collection/components/reorder/reorder.md.css +0 -6
  403. package/dist/collection/components/reorder-group/reorder-group.css +0 -6
  404. package/dist/collection/components/reorder-group/reorder-group.js +4 -8
  405. package/dist/collection/components/ripple-effect/{ripple-effect.common.css → ripple-effect.css} +1 -7
  406. package/dist/collection/components/ripple-effect/ripple-effect.js +6 -14
  407. package/dist/collection/components/route/route.js +0 -4
  408. package/dist/collection/components/router/router.js +0 -4
  409. package/dist/collection/components/router-link/router-link.css +2 -8
  410. package/dist/collection/components/router-link/router-link.js +5 -9
  411. package/dist/collection/components/router-outlet/router-outlet.css +1 -7
  412. package/dist/collection/components/router-outlet/router-outlet.js +2 -5
  413. package/dist/collection/components/row/row.css +0 -12
  414. package/dist/collection/components/row/row.js +2 -9
  415. package/dist/collection/components/searchbar/searchbar.ios.css +18 -56
  416. package/dist/collection/components/searchbar/searchbar.js +25 -97
  417. package/dist/collection/components/searchbar/searchbar.md.css +18 -56
  418. package/dist/collection/components/segment/segment.ios.css +2 -45
  419. package/dist/collection/components/segment/segment.js +8 -11
  420. package/dist/collection/components/segment/segment.md.css +2 -45
  421. package/dist/collection/components/segment-button/segment-button.ios.css +105 -146
  422. package/dist/collection/components/segment-button/segment-button.js +9 -12
  423. package/dist/collection/components/segment-button/segment-button.md.css +107 -148
  424. package/dist/collection/components/select/select.ios.css +3 -22
  425. package/dist/collection/components/select/select.js +90 -93
  426. package/dist/collection/components/select/select.md.css +5 -38
  427. package/dist/collection/components/select-modal/select-modal-interface.js +1 -0
  428. package/dist/collection/components/select-modal/select-modal.ios.css +3 -0
  429. package/dist/collection/components/select-modal/select-modal.js +159 -0
  430. package/dist/collection/components/{segment/segment.ionic.css → select-modal/select-modal.md.css} +26 -34
  431. package/dist/collection/components/select-modal/test/fixtures.js +48 -0
  432. package/dist/collection/components/select-option/select-option.js +2 -9
  433. package/dist/collection/components/select-popover/select-popover.ios.css +0 -18
  434. package/dist/collection/components/select-popover/select-popover.js +4 -12
  435. package/dist/collection/components/select-popover/select-popover.md.css +0 -18
  436. package/dist/collection/components/skeleton-text/skeleton-text.css +0 -6
  437. package/dist/collection/components/skeleton-text/skeleton-text.js +5 -9
  438. package/dist/collection/components/spinner/{spinner.ionic.css → spinner.css} +0 -64
  439. package/dist/collection/components/spinner/spinner.js +6 -46
  440. package/dist/collection/components/split-pane/split-pane.ios.css +2 -20
  441. package/dist/collection/components/split-pane/split-pane.js +8 -14
  442. package/dist/collection/components/split-pane/split-pane.md.css +2 -20
  443. package/dist/collection/components/tab/tab.js +2 -6
  444. package/dist/collection/components/tab-bar/tab-bar.ios.css +43 -71
  445. package/dist/collection/components/tab-bar/tab-bar.js +10 -65
  446. package/dist/collection/components/tab-bar/tab-bar.md.css +43 -71
  447. package/dist/collection/components/tab-button/tab-button.ios.css +88 -103
  448. package/dist/collection/components/tab-button/tab-button.js +8 -11
  449. package/dist/collection/components/tab-button/tab-button.md.css +88 -103
  450. package/dist/collection/components/tabs/tabs.css +1 -7
  451. package/dist/collection/components/tabs/tabs.js +1 -4
  452. package/dist/collection/components/text/text.css +0 -6
  453. package/dist/collection/components/text/text.js +6 -7
  454. package/dist/collection/components/textarea/textarea.ios.css +96 -201
  455. package/dist/collection/components/textarea/textarea.js +16 -59
  456. package/dist/collection/components/textarea/textarea.md.css +97 -214
  457. package/dist/collection/components/thumbnail/thumbnail.css +0 -6
  458. package/dist/collection/components/thumbnail/thumbnail.js +2 -9
  459. package/dist/collection/components/title/title.ios.css +4 -32
  460. package/dist/collection/components/title/title.js +7 -13
  461. package/dist/collection/components/title/title.md.css +4 -32
  462. package/dist/collection/components/toast/animations/utils.js +1 -1
  463. package/dist/collection/components/toast/toast.ios.css +35 -74
  464. package/dist/collection/components/toast/toast.js +11 -45
  465. package/dist/collection/components/toast/toast.md.css +35 -74
  466. package/dist/collection/components/toggle/toggle.ios.css +120 -166
  467. package/dist/collection/components/toggle/toggle.js +18 -73
  468. package/dist/collection/components/toggle/toggle.md.css +120 -163
  469. package/dist/collection/components/toolbar/toolbar.ios.css +47 -90
  470. package/dist/collection/components/toolbar/toolbar.js +10 -13
  471. package/dist/collection/components/toolbar/toolbar.md.css +47 -90
  472. package/dist/collection/global/ionic-global.js +13 -229
  473. package/dist/collection/utils/focus-visible.js +0 -7
  474. package/dist/collection/utils/framework-delegate.js +1 -3
  475. package/dist/collection/utils/helpers.js +1 -3
  476. package/dist/collection/utils/keyboard/keyboard-controller.js +1 -3
  477. package/dist/collection/utils/menu-controller/animations/overlay.js +3 -3
  478. package/dist/collection/utils/menu-controller/animations/push.js +1 -2
  479. package/dist/collection/utils/menu-controller/animations/reveal.js +1 -2
  480. package/dist/collection/utils/menu-controller/index.js +2 -2
  481. package/dist/collection/utils/overlays.js +1 -2
  482. package/dist/collection/utils/test/playwright/generator.js +23 -48
  483. package/dist/collection/utils/test/playwright/page/utils/goto.js +5 -14
  484. package/dist/collection/utils/test/playwright/page/utils/set-content.js +1 -14
  485. package/dist/collection/utils/transition/ios.transition.js +0 -1
  486. package/dist/docs.json +603 -7013
  487. package/dist/esm/{animation-16546c84.js → animation-eab5a4ca.js} +1 -1
  488. package/dist/esm/{app-globals-35381e66.js → app-globals-5dbb61a5.js} +1 -1
  489. package/dist/esm/{button-active-c768aceb.js → button-active-f6503382.js} +2 -2
  490. package/dist/esm/{capacitor-0897b83c.js → capacitor-59395cbd.js} +1 -1
  491. package/dist/esm/{data-d9b1fbdb.js → data-ae11fd43.js} +4 -4
  492. package/dist/{cjs/focus-visible-9aa87fa3.js → esm/focus-visible-dd40d69f.js} +1 -11
  493. package/dist/esm/{framework-delegate-56698eb0.js → framework-delegate-63d1a679.js} +2 -4
  494. package/dist/esm/{haptic-d9a770b8.js → haptic-ac164e4c.js} +1 -1
  495. package/dist/esm/hardware-back-button-06ef3c3e.js +116 -0
  496. package/dist/esm/{helpers-d57f52c8.js → helpers-da915de8.js} +1 -4
  497. package/dist/esm/{index-82405a4a.js → index-24b48b06.js} +13 -12
  498. package/dist/esm/{config-0b6b1b3d.js → index-28849c61.js} +1 -76
  499. package/dist/esm/{index-edf94b3b.js → index-3ad7f18b.js} +6 -5
  500. package/dist/esm/{index-f8ad386a.js → index-5cc724f3.js} +2 -2
  501. package/dist/esm/index-79b30591.js +167 -0
  502. package/dist/esm/index-9b0d46f4.js +34 -0
  503. package/dist/esm/index-a5d50daf.js +7 -0
  504. package/dist/esm/{index-d997525d.js → index-e2cf2ceb.js} +1 -1
  505. package/dist/esm/index.js +13 -10
  506. package/dist/esm/{input-shims-0f3cc1c3.js → input-shims-0314bbe5.js} +6 -6
  507. package/dist/esm/{input.utils-ef4d8197.js → input.utils-09c71bc7.js} +3 -2
  508. package/dist/esm/ion-accordion_2.entry.js +24 -45
  509. package/dist/esm/ion-action-sheet.entry.js +19 -21
  510. package/dist/esm/ion-alert.entry.js +26 -25
  511. package/dist/esm/ion-app_8.entry.js +140 -95
  512. package/dist/esm/ion-avatar_3.entry.js +10 -93
  513. package/dist/esm/ion-back-button.entry.js +21 -30
  514. package/dist/esm/ion-backdrop.entry.js +7 -11
  515. package/dist/esm/ion-breadcrumb_2.entry.js +17 -54
  516. package/dist/esm/ion-button_2.entry.js +13 -43
  517. package/dist/esm/ion-card_5.entry.js +29 -52
  518. package/dist/esm/ion-checkbox.entry.js +16 -30
  519. package/dist/esm/ion-chip.entry.js +8 -43
  520. package/dist/esm/ion-col_3.entry.js +11 -14
  521. package/dist/esm/ion-datetime-button.entry.js +9 -12
  522. package/dist/esm/ion-datetime_3.entry.js +40 -113
  523. package/dist/esm/ion-fab_3.entry.js +21 -43
  524. package/dist/esm/ion-img.entry.js +4 -7
  525. package/dist/esm/ion-infinite-scroll_2.entry.js +15 -18
  526. package/dist/esm/ion-input-password-toggle.entry.js +15 -53
  527. package/dist/esm/ion-input.entry.js +25 -119
  528. package/dist/esm/ion-item-option_3.entry.js +18 -40
  529. package/dist/esm/ion-item_8.entry.js +42 -113
  530. package/dist/esm/ion-loading.entry.js +16 -17
  531. package/dist/esm/ion-menu_3.entry.js +45 -63
  532. package/dist/esm/ion-modal.entry.js +31 -58
  533. package/dist/esm/ion-nav_2.entry.js +12 -13
  534. package/dist/esm/ion-picker-column-option.entry.js +7 -11
  535. package/dist/esm/ion-picker-column.entry.js +12 -11
  536. package/dist/esm/ion-picker.entry.js +6 -10
  537. package/dist/esm/ion-popover.entry.js +16 -17
  538. package/dist/esm/ion-progress-bar.entry.js +8 -12
  539. package/dist/esm/ion-radio_2.entry.js +20 -22
  540. package/dist/esm/ion-range.entry.js +10 -13
  541. package/dist/esm/ion-refresher_2.entry.js +21 -41
  542. package/dist/esm/ion-reorder_2.entry.js +15 -38
  543. package/dist/esm/ion-ripple-effect.entry.js +8 -18
  544. package/dist/esm/ion-route_4.entry.js +8 -8
  545. package/dist/esm/ion-searchbar.entry.js +18 -94
  546. package/dist/esm/ion-segment_2.entry.js +16 -24
  547. package/dist/esm/ion-select-modal.entry.js +107 -0
  548. package/dist/esm/ion-select_3.entry.js +73 -103
  549. package/dist/esm/ion-spinner.entry.js +8 -33
  550. package/dist/esm/ion-split-pane.entry.js +9 -13
  551. package/dist/esm/ion-tab-bar_2.entry.js +20 -44
  552. package/dist/esm/ion-tab_2.entry.js +7 -7
  553. package/dist/esm/ion-text.entry.js +6 -6
  554. package/dist/esm/ion-textarea.entry.js +17 -41
  555. package/dist/esm/ion-toast.entry.js +18 -33
  556. package/dist/esm/ion-toggle.entry.js +23 -80
  557. package/dist/esm/ionic-global-c81d82ab.js +231 -0
  558. package/dist/esm/ionic.js +5 -5
  559. package/dist/esm/{ios.transition-4b9fe79e.js → ios.transition-4ee1a3af.js} +7 -6
  560. package/dist/esm/{keyboard-584d2e6f.js → keyboard-52278bd7.js} +3 -4
  561. package/dist/esm/{keyboard-ad38b8fc.js → keyboard-73175e24.js} +1 -1
  562. package/dist/esm/{keyboard-controller-9c9c2301.js → keyboard-controller-ec5c2bfa.js} +3 -5
  563. package/dist/esm/loader.js +5 -5
  564. package/dist/esm/{md.transition-a71dc418.js → md.transition-5106a0d2.js} +7 -5
  565. package/dist/esm/{notch-controller-4d9a7b28.js → notch-controller-55b09e11.js} +2 -2
  566. package/dist/esm/{overlays-9da9aef5.js → overlays-9c75ec54.js} +7 -6
  567. package/dist/esm/{status-tap-82f51b25.js → status-tap-f472b09f.js} +4 -4
  568. package/dist/esm/{swipe-back-c5709ce5.js → swipe-back-e5394307.js} +1 -2
  569. package/dist/esm-es5/animation-eab5a4ca.js +4 -0
  570. package/dist/esm-es5/app-globals-5dbb61a5.js +4 -0
  571. package/dist/esm-es5/button-active-f6503382.js +4 -0
  572. package/dist/esm-es5/capacitor-59395cbd.js +4 -0
  573. package/dist/esm-es5/data-ae11fd43.js +4 -0
  574. package/dist/esm-es5/focus-visible-dd40d69f.js +4 -0
  575. package/dist/esm-es5/framework-delegate-63d1a679.js +4 -0
  576. package/dist/esm-es5/{haptic-d9a770b8.js → haptic-ac164e4c.js} +1 -1
  577. package/dist/esm-es5/hardware-back-button-06ef3c3e.js +4 -0
  578. package/dist/esm-es5/helpers-da915de8.js +4 -0
  579. package/dist/esm-es5/index-24b48b06.js +4 -0
  580. package/dist/esm-es5/{config-0b6b1b3d.js → index-28849c61.js} +2 -2
  581. package/dist/esm-es5/index-3ad7f18b.js +4 -0
  582. package/dist/esm-es5/index-5cc724f3.js +4 -0
  583. package/dist/esm-es5/index-79b30591.js +4 -0
  584. package/dist/esm-es5/index-9b0d46f4.js +4 -0
  585. package/dist/esm-es5/index-a5d50daf.js +4 -0
  586. package/dist/esm-es5/{index-d997525d.js → index-e2cf2ceb.js} +1 -1
  587. package/dist/esm-es5/index.js +1 -1
  588. package/dist/esm-es5/input-shims-0314bbe5.js +4 -0
  589. package/dist/esm-es5/input.utils-09c71bc7.js +4 -0
  590. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  591. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  592. package/dist/esm-es5/ion-alert.entry.js +1 -1
  593. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  594. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  595. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  596. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  597. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  598. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  599. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  600. package/dist/esm-es5/ion-checkbox.entry.js +2 -2
  601. package/dist/esm-es5/ion-chip.entry.js +1 -1
  602. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  603. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  604. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  605. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  606. package/dist/esm-es5/ion-img.entry.js +1 -1
  607. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  608. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  609. package/dist/esm-es5/ion-input.entry.js +1 -1
  610. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  611. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  612. package/dist/esm-es5/ion-loading.entry.js +1 -1
  613. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  614. package/dist/esm-es5/ion-modal.entry.js +1 -1
  615. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  616. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  617. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  618. package/dist/esm-es5/ion-picker.entry.js +1 -1
  619. package/dist/esm-es5/ion-popover.entry.js +1 -1
  620. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  621. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  622. package/dist/esm-es5/ion-range.entry.js +1 -1
  623. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  624. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  625. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  626. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  627. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  628. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  629. package/dist/esm-es5/ion-select-modal.entry.js +4 -0
  630. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  631. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  632. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  633. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  634. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  635. package/dist/esm-es5/ion-text.entry.js +1 -1
  636. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  637. package/dist/esm-es5/ion-toast.entry.js +1 -1
  638. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  639. package/dist/esm-es5/ionic-global-c81d82ab.js +4 -0
  640. package/dist/esm-es5/ionic.js +1 -1
  641. package/dist/esm-es5/ios.transition-4ee1a3af.js +4 -0
  642. package/dist/esm-es5/keyboard-52278bd7.js +4 -0
  643. package/dist/esm-es5/{keyboard-ad38b8fc.js → keyboard-73175e24.js} +1 -1
  644. package/dist/esm-es5/keyboard-controller-ec5c2bfa.js +4 -0
  645. package/dist/esm-es5/loader.js +1 -1
  646. package/dist/esm-es5/md.transition-5106a0d2.js +4 -0
  647. package/dist/esm-es5/notch-controller-55b09e11.js +4 -0
  648. package/dist/esm-es5/overlays-9c75ec54.js +4 -0
  649. package/dist/esm-es5/status-tap-f472b09f.js +4 -0
  650. package/dist/esm-es5/swipe-back-e5394307.js +4 -0
  651. package/dist/html.html-data.json +237 -2298
  652. package/dist/ionic/index.esm.js +1 -1
  653. package/dist/ionic/ionic.esm.js +1 -1
  654. package/dist/ionic/ionic.js +1 -1
  655. package/dist/ionic/{p-6f8c2e62.system.entry.js → p-01186920.system.entry.js} +1 -1
  656. package/dist/ionic/p-0303d0f8.js +4 -0
  657. package/dist/ionic/p-0574e87e.js +4 -0
  658. package/dist/ionic/p-06e58c4e.js +4 -0
  659. package/dist/ionic/p-06fee233.js +4 -0
  660. package/dist/ionic/p-081a4ce4.entry.js +4 -0
  661. package/dist/ionic/p-08f910f4.entry.js +4 -0
  662. package/dist/ionic/p-0c06e09b.system.js +4 -0
  663. package/dist/ionic/p-0de13e8e.entry.js +4 -0
  664. package/dist/ionic/p-15e76dd1.entry.js +4 -0
  665. package/dist/ionic/p-17474161.system.js +4 -0
  666. package/dist/ionic/{p-61a51379.system.js → p-19ea7bff.system.js} +1 -1
  667. package/dist/ionic/p-19ec4f42.entry.js +4 -0
  668. package/dist/ionic/p-1acf0142.entry.js +4 -0
  669. package/dist/ionic/p-1c1b8e1f.entry.js +4 -0
  670. package/dist/ionic/p-1dfc11b3.system.js +4 -0
  671. package/dist/ionic/p-1e010627.system.entry.js +4 -0
  672. package/dist/ionic/p-1e4371bd.js +4 -0
  673. package/dist/ionic/p-1e67b266.system.entry.js +4 -0
  674. package/dist/ionic/{p-115d74cd.system.js → p-1e955a45.system.js} +1 -1
  675. package/dist/ionic/p-1ebd1e27.system.entry.js +4 -0
  676. package/dist/ionic/p-2097482f.entry.js +4 -0
  677. package/dist/ionic/p-21e5e7e4.js +4 -0
  678. package/dist/ionic/p-22c020db.system.entry.js +4 -0
  679. package/dist/ionic/p-2407875c.system.entry.js +4 -0
  680. package/dist/ionic/p-249b6d9d.entry.js +4 -0
  681. package/dist/ionic/p-2507278c.system.entry.js +4 -0
  682. package/dist/ionic/p-25180df3.system.js +5 -0
  683. package/dist/ionic/p-2690b1de.js +4 -0
  684. package/dist/ionic/{p-4ed7dfdb.js → p-27281edd.js} +1 -1
  685. package/dist/ionic/{p-adec897a.system.entry.js → p-2799c6d3.system.entry.js} +1 -1
  686. package/dist/ionic/p-2b7827c7.js +4 -0
  687. package/dist/ionic/p-2e1c94d5.system.entry.js +4 -0
  688. package/dist/ionic/p-2e46590d.system.entry.js +4 -0
  689. package/dist/ionic/p-2eba228d.system.entry.js +4 -0
  690. package/dist/ionic/p-322c5fb4.system.js +4 -0
  691. package/dist/ionic/p-3254d107.entry.js +4 -0
  692. package/dist/ionic/p-347ac2ef.system.entry.js +4 -0
  693. package/dist/ionic/p-34b11c24.js +4 -0
  694. package/dist/ionic/{p-2c5d7d84.system.js → p-372ae7f4.system.js} +1 -1
  695. package/dist/ionic/p-3ad285e3.system.js +4 -0
  696. package/dist/ionic/{p-d8339079.system.js → p-3c8e5c23.system.js} +1 -1
  697. package/dist/ionic/p-3cc276f4.js +4 -0
  698. package/dist/ionic/p-3ef0ebd1.system.entry.js +4 -0
  699. package/dist/ionic/p-430f30e8.entry.js +4 -0
  700. package/dist/ionic/p-4439fc2a.entry.js +4 -0
  701. package/dist/ionic/p-45693d7e.entry.js +4 -0
  702. package/dist/ionic/p-457998b5.entry.js +4 -0
  703. package/dist/ionic/p-471b5a49.system.entry.js +4 -0
  704. package/dist/ionic/p-4c2d5b80.system.js +4 -0
  705. package/dist/ionic/p-52d7a191.entry.js +4 -0
  706. package/dist/ionic/p-540db186.system.entry.js +4 -0
  707. package/dist/ionic/p-5663547d.entry.js +4 -0
  708. package/dist/ionic/p-567de071.system.entry.js +4 -0
  709. package/dist/ionic/p-5823babc.system.entry.js +4 -0
  710. package/dist/ionic/p-58d5df0c.system.entry.js +4 -0
  711. package/dist/ionic/{p-3bfe43bc.system.js → p-5da94421.system.js} +2 -2
  712. package/dist/ionic/p-5e890005.system.entry.js +4 -0
  713. package/dist/ionic/p-5e9a7134.system.entry.js +4 -0
  714. package/dist/ionic/p-5f9b0722.entry.js +4 -0
  715. package/dist/ionic/p-61e494dc.system.entry.js +4 -0
  716. package/dist/ionic/p-63b0abde.system.entry.js +4 -0
  717. package/dist/ionic/p-66640ff7.system.entry.js +4 -0
  718. package/dist/ionic/p-69066a53.js +4 -0
  719. package/dist/ionic/p-69666e8a.system.entry.js +4 -0
  720. package/dist/ionic/p-6d32975a.entry.js +4 -0
  721. package/dist/ionic/p-6e2961d4.system.entry.js +4 -0
  722. package/dist/ionic/p-72812e99.js +4 -0
  723. package/dist/ionic/p-72bc8a1c.js +4 -0
  724. package/dist/ionic/{p-0695a0af.system.entry.js → p-7458862e.system.entry.js} +1 -1
  725. package/dist/ionic/p-792919fd.system.js +4 -0
  726. package/dist/ionic/p-7b30edcc.js +4 -0
  727. package/dist/ionic/p-7b9a2b23.entry.js +4 -0
  728. package/dist/ionic/p-7ed1657c.system.entry.js +4 -0
  729. package/dist/ionic/p-8635f5e6.system.js +4 -0
  730. package/dist/ionic/p-88e63c7d.js +4 -0
  731. package/dist/ionic/{p-e61e3bb4.system.js → p-8985cdb6.system.js} +1 -1
  732. package/dist/ionic/{p-b9b36d56.js → p-89b61afc.js} +1 -1
  733. package/dist/ionic/p-8c357539.entry.js +4 -0
  734. package/dist/ionic/p-908d6080.entry.js +4 -0
  735. package/dist/ionic/p-90d1e6e2.entry.js +4 -0
  736. package/dist/ionic/p-90df71aa.system.entry.js +4 -0
  737. package/dist/ionic/{p-747e9c9a.system.js → p-9146695e.system.js} +1 -1
  738. package/dist/ionic/p-937a7e21.entry.js +4 -0
  739. package/dist/ionic/p-94afeb70.entry.js +4 -0
  740. package/dist/ionic/p-96cc4814.js +4 -0
  741. package/dist/ionic/{p-093de343.system.entry.js → p-98231c01.system.entry.js} +1 -1
  742. package/dist/ionic/p-985a7e17.system.entry.js +4 -0
  743. package/dist/ionic/p-98871496.system.js +4 -0
  744. package/dist/ionic/p-98e71235.system.entry.js +4 -0
  745. package/dist/ionic/p-9c901780.entry.js +4 -0
  746. package/dist/ionic/p-9cb9edb5.system.entry.js +4 -0
  747. package/dist/ionic/p-9df2c6fb.entry.js +4 -0
  748. package/dist/ionic/{p-3a11234f.system.js → p-9ea607bd.system.js} +2 -2
  749. package/dist/ionic/p-9ee1e8a6.entry.js +4 -0
  750. package/dist/ionic/p-9f3008d4.system.js +4 -0
  751. package/dist/ionic/p-9fa07aec.entry.js +4 -0
  752. package/dist/ionic/p-a15ddedb.system.js +4 -0
  753. package/dist/ionic/p-a2aee540.entry.js +4 -0
  754. package/dist/ionic/p-a440397c.js +4 -0
  755. package/dist/ionic/p-a4565eb5.system.js +4 -0
  756. package/dist/ionic/p-a49378bb.system.entry.js +4 -0
  757. package/dist/ionic/p-a61cba41.entry.js +4 -0
  758. package/dist/ionic/p-a62911e6.system.entry.js +4 -0
  759. package/dist/ionic/p-a6827f02.entry.js +4 -0
  760. package/dist/ionic/p-a69b9fc5.system.js +4 -0
  761. package/dist/ionic/{p-f8e329da.system.js → p-a93873de.system.js} +1 -1
  762. package/dist/ionic/{p-6ecebfc6.entry.js → p-aa5f43c1.entry.js} +1 -1
  763. package/dist/ionic/p-abe101da.system.js +4 -0
  764. package/dist/ionic/p-adcb6def.system.entry.js +4 -0
  765. package/dist/ionic/{p-4b153a9f.entry.js → p-afecb188.entry.js} +1 -1
  766. package/dist/ionic/{p-c9ef0ca7.system.js → p-b06ac4a5.system.js} +1 -1
  767. package/dist/ionic/p-b51e4004.js +4 -0
  768. package/dist/ionic/p-b82d4cab.js +4 -0
  769. package/dist/ionic/p-b889e5de.system.js +4 -0
  770. package/dist/ionic/p-b9d7015f.entry.js +4 -0
  771. package/dist/ionic/p-bb0db172.entry.js +4 -0
  772. package/dist/ionic/p-bc36ad98.system.entry.js +4 -0
  773. package/dist/ionic/p-bdad26e3.entry.js +4 -0
  774. package/dist/ionic/p-c25cf9e8.system.entry.js +4 -0
  775. package/dist/ionic/p-c29f8157.system.entry.js +4 -0
  776. package/dist/ionic/p-c41ac815.entry.js +4 -0
  777. package/dist/ionic/p-c468af8a.system.js +4 -0
  778. package/dist/ionic/p-c61cc894.js +4 -0
  779. package/dist/ionic/{p-d1e991c3.js → p-c7e16491.js} +1 -1
  780. package/dist/ionic/p-c9f3a539.entry.js +4 -0
  781. package/dist/ionic/p-ca065903.system.entry.js +4 -0
  782. package/dist/ionic/p-cac0e0b3.system.entry.js +4 -0
  783. package/dist/ionic/p-cca6e227.system.entry.js +4 -0
  784. package/dist/ionic/p-cfab4f20.entry.js +4 -0
  785. package/dist/ionic/p-d18ab582.system.entry.js +4 -0
  786. package/dist/ionic/p-d1db10ed.system.entry.js +4 -0
  787. package/dist/ionic/p-d3eaac24.entry.js +4 -0
  788. package/dist/ionic/p-d47265c8.js +4 -0
  789. package/dist/ionic/{p-0a820472.js → p-d60342e3.js} +1 -1
  790. package/dist/ionic/p-d6841eac.js +4 -0
  791. package/dist/ionic/{p-dbfc5db6.js → p-d743e981.js} +1 -1
  792. package/dist/ionic/p-d77e12ca.entry.js +4 -0
  793. package/dist/ionic/p-d7aa6b00.entry.js +4 -0
  794. package/dist/ionic/p-d8097686.entry.js +4 -0
  795. package/dist/ionic/{p-a9fd9d48.js → p-d836d43e.js} +2 -2
  796. package/dist/ionic/p-da074ff7.entry.js +4 -0
  797. package/dist/ionic/{p-58f16ef6.js → p-da2b833b.js} +1 -1
  798. package/dist/ionic/{p-a65fe34d.system.entry.js → p-da6ce51b.system.entry.js} +2 -2
  799. package/dist/ionic/{p-2b428cf6.entry.js → p-de930745.entry.js} +1 -1
  800. package/dist/ionic/{p-25e2c98f.system.js → p-dfb78785.system.js} +1 -1
  801. package/dist/ionic/p-e4ee80be.system.entry.js +4 -0
  802. package/dist/ionic/p-e629a9fb.system.entry.js +4 -0
  803. package/dist/ionic/p-e7ed4a7f.system.js +4 -0
  804. package/dist/ionic/p-eba29931.entry.js +4 -0
  805. package/dist/ionic/p-eba81f15.entry.js +4 -0
  806. package/dist/ionic/p-ecceeb90.js +4 -0
  807. package/dist/ionic/p-ef4a65bd.system.entry.js +4 -0
  808. package/dist/ionic/p-efaffe74.entry.js +4 -0
  809. package/dist/ionic/p-f1acf541.system.entry.js +4 -0
  810. package/dist/ionic/p-f1b9c92a.entry.js +4 -0
  811. package/dist/ionic/p-f3102647.system.entry.js +4 -0
  812. package/dist/ionic/{p-d9e1c48c.system.js → p-f687573e.system.js} +1 -1
  813. package/dist/ionic/p-f9a53abb.system.js +4 -0
  814. package/dist/ionic/p-ff4b7e40.system.js +4 -0
  815. package/dist/types/components/accordion/accordion.d.ts +3 -5
  816. package/dist/types/components/accordion-group/accordion-group.d.ts +1 -2
  817. package/dist/types/components/action-sheet/action-sheet-interface.d.ts +7 -3
  818. package/dist/types/components/action-sheet/action-sheet.d.ts +2 -3
  819. package/dist/types/components/alert/alert-interface.d.ts +7 -3
  820. package/dist/types/components/alert/alert.d.ts +2 -3
  821. package/dist/types/components/app/app.d.ts +2 -4
  822. package/dist/types/components/avatar/avatar.d.ts +0 -28
  823. package/dist/types/components/back-button/back-button.d.ts +1 -2
  824. package/dist/types/components/backdrop/backdrop.d.ts +0 -4
  825. package/dist/types/components/badge/badge.d.ts +1 -23
  826. package/dist/types/components/breadcrumb/breadcrumb.d.ts +1 -4
  827. package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +2 -2
  828. package/dist/types/components/button/button.d.ts +4 -15
  829. package/dist/types/components/buttons/buttons.d.ts +1 -5
  830. package/dist/types/components/card/card.d.ts +1 -8
  831. package/dist/types/components/card-content/card-content.d.ts +1 -2
  832. package/dist/types/components/card-header/card-header.d.ts +2 -3
  833. package/dist/types/components/card-subtitle/card-subtitle.d.ts +1 -2
  834. package/dist/types/components/card-title/card-title.d.ts +1 -2
  835. package/dist/types/components/checkbox/checkbox.d.ts +6 -15
  836. package/dist/types/components/chip/chip.d.ts +1 -19
  837. package/dist/types/components/col/col.d.ts +0 -4
  838. package/dist/types/components/content/content.d.ts +0 -3
  839. package/dist/types/components/datetime/datetime.d.ts +1 -26
  840. package/dist/types/components/datetime/utils/data.d.ts +3 -3
  841. package/dist/types/components/datetime-button/datetime-button.d.ts +1 -2
  842. package/dist/types/components/fab/fab.d.ts +0 -4
  843. package/dist/types/components/fab-button/fab-button.d.ts +3 -5
  844. package/dist/types/components/fab-list/fab-list.d.ts +0 -4
  845. package/dist/types/components/footer/footer.d.ts +3 -4
  846. package/dist/types/components/grid/grid.d.ts +0 -4
  847. package/dist/types/components/header/header.d.ts +3 -9
  848. package/dist/types/components/img/img.d.ts +0 -3
  849. package/dist/types/components/infinite-scroll/infinite-scroll.d.ts +0 -4
  850. package/dist/types/components/infinite-scroll-content/infinite-scroll-content.d.ts +0 -4
  851. package/dist/types/components/input/input.d.ts +5 -31
  852. package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +0 -2
  853. package/dist/types/components/item/item.d.ts +4 -11
  854. package/dist/types/components/item-divider/item-divider.d.ts +1 -2
  855. package/dist/types/components/item-group/item-group.d.ts +0 -4
  856. package/dist/types/components/item-option/item-option.d.ts +1 -11
  857. package/dist/types/components/item-options/item-options.d.ts +0 -4
  858. package/dist/types/components/item-sliding/item-sliding.d.ts +0 -4
  859. package/dist/types/components/label/label.d.ts +1 -2
  860. package/dist/types/components/list/list.d.ts +1 -15
  861. package/dist/types/components/list-header/list-header.d.ts +1 -2
  862. package/dist/types/components/loading/loading-interface.d.ts +7 -2
  863. package/dist/types/components/loading/loading.d.ts +2 -3
  864. package/dist/types/components/menu/menu-interface.d.ts +5 -2
  865. package/dist/types/components/menu/menu.d.ts +6 -9
  866. package/dist/types/components/menu-button/menu-button.d.ts +1 -3
  867. package/dist/types/components/menu-toggle/menu-toggle.d.ts +0 -3
  868. package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
  869. package/dist/types/components/modal/modal-interface.d.ts +7 -4
  870. package/dist/types/components/modal/modal.d.ts +1 -11
  871. package/dist/types/components/nav/nav-interface.d.ts +1 -9
  872. package/dist/types/components/nav/nav.d.ts +1 -5
  873. package/dist/types/components/nav-link/nav-link.d.ts +0 -4
  874. package/dist/types/components/note/note.d.ts +1 -2
  875. package/dist/types/components/picker/picker.d.ts +1 -2
  876. package/dist/types/components/picker-column/picker-column.d.ts +1 -2
  877. package/dist/types/components/picker-column-option/picker-column-option.d.ts +0 -4
  878. package/dist/types/components/picker-legacy/picker.d.ts +1 -2
  879. package/dist/types/components/popover/popover-interface.d.ts +6 -3
  880. package/dist/types/components/popover/popover.d.ts +5 -6
  881. package/dist/types/components/progress-bar/progress-bar.d.ts +1 -2
  882. package/dist/types/components/radio/radio.d.ts +2 -3
  883. package/dist/types/components/radio-group/radio-group.d.ts +0 -4
  884. package/dist/types/components/range/range.d.ts +1 -2
  885. package/dist/types/components/refresher/refresher.d.ts +1 -2
  886. package/dist/types/components/refresher-content/refresher-content.d.ts +0 -4
  887. package/dist/types/components/reorder/reorder.d.ts +0 -9
  888. package/dist/types/components/reorder-group/reorder-group.d.ts +0 -4
  889. package/dist/types/components/ripple-effect/ripple-effect.d.ts +0 -4
  890. package/dist/types/components/route/route.d.ts +0 -4
  891. package/dist/types/components/router/router.d.ts +0 -4
  892. package/dist/types/components/router-link/router-link.d.ts +0 -4
  893. package/dist/types/components/router-outlet/router-outlet.d.ts +1 -4
  894. package/dist/types/components/row/row.d.ts +0 -4
  895. package/dist/types/components/searchbar/searchbar.d.ts +8 -30
  896. package/dist/types/components/segment/segment.d.ts +1 -2
  897. package/dist/types/components/segment-button/segment-button.d.ts +1 -2
  898. package/dist/types/components/select/select-interface.d.ts +1 -1
  899. package/dist/types/components/select/select.d.ts +10 -24
  900. package/dist/types/components/select-modal/select-modal-interface.d.ts +10 -0
  901. package/dist/types/components/select-modal/select-modal.d.ts +16 -0
  902. package/dist/types/components/select-modal/test/fixtures.d.ts +16 -0
  903. package/dist/types/components/select-option/select-option.d.ts +0 -4
  904. package/dist/types/components/select-popover/select-popover.d.ts +0 -3
  905. package/dist/types/components/skeleton-text/skeleton-text.d.ts +0 -4
  906. package/dist/types/components/spinner/spinner.d.ts +0 -15
  907. package/dist/types/components/split-pane/split-pane.d.ts +0 -4
  908. package/dist/types/components/tab/tab.d.ts +0 -4
  909. package/dist/types/components/tab-bar/tab-bar.d.ts +2 -22
  910. package/dist/types/components/tab-button/tab-button.d.ts +1 -2
  911. package/dist/types/components/tabs/tabs.d.ts +0 -3
  912. package/dist/types/components/text/text.d.ts +1 -2
  913. package/dist/types/components/textarea/textarea.d.ts +4 -16
  914. package/dist/types/components/thumbnail/thumbnail.d.ts +0 -4
  915. package/dist/types/components/title/title.d.ts +0 -4
  916. package/dist/types/components/toast/animations/utils.d.ts +2 -2
  917. package/dist/types/components/toast/toast-interface.d.ts +7 -3
  918. package/dist/types/components/toast/toast.d.ts +2 -12
  919. package/dist/types/components/toggle/toggle.d.ts +1 -15
  920. package/dist/types/components/toolbar/toolbar.d.ts +3 -4
  921. package/dist/types/components.d.ts +213 -1367
  922. package/dist/types/global/ionic-global.d.ts +2 -27
  923. package/dist/types/interface.d.ts +0 -3
  924. package/dist/types/utils/config.d.ts +2 -106
  925. package/dist/types/utils/focus-visible.d.ts +0 -1
  926. package/dist/types/utils/overlays-interface.d.ts +2 -32
  927. package/dist/types/utils/test/playwright/generator.d.ts +2 -31
  928. package/hydrate/index.js +1020 -2284
  929. package/hydrate/index.mjs +1020 -2284
  930. package/package.json +4 -9
  931. package/components/caret-down.js +0 -6
  932. package/components/caret-left.js +0 -6
  933. package/components/caret-right.js +0 -6
  934. package/components/config2.js +0 -79
  935. package/components/list2.js +0 -6
  936. package/components/x.js +0 -6
  937. package/css/ionic/bundle.ionic.css +0 -1
  938. package/css/ionic/bundle.ionic.css.map +0 -1
  939. package/css/ionic/core.ionic.css +0 -1
  940. package/css/ionic/core.ionic.css.map +0 -1
  941. package/css/ionic/global.bundle.ionic.css +0 -1
  942. package/css/ionic/global.bundle.ionic.css.map +0 -1
  943. package/css/ionic/ionic-swiper.ionic.css +0 -1
  944. package/css/ionic/ionic-swiper.ionic.css.map +0 -1
  945. package/css/ionic/link.ionic.css +0 -1
  946. package/css/ionic/link.ionic.css.map +0 -1
  947. package/css/ionic/structure.ionic.css +0 -1
  948. package/css/ionic/structure.ionic.css.map +0 -1
  949. package/css/ionic/typography.ionic.css +0 -1
  950. package/css/ionic/typography.ionic.css.map +0 -1
  951. package/css/ionic/utils.bundle.ionic.css +0 -1
  952. package/css/ionic/utils.bundle.ionic.css.map +0 -1
  953. package/dist/cjs/caret-down-3c215cff.js +0 -8
  954. package/dist/cjs/caret-left-2bb66970.js +0 -8
  955. package/dist/cjs/caret-right-88e03970.js +0 -8
  956. package/dist/cjs/ionic-global-3647b9f5.js +0 -534
  957. package/dist/cjs/list-2930c629.js +0 -8
  958. package/dist/cjs/x-81a8f51c.js +0 -8
  959. package/dist/collection/components/accordion/accordion.ionic.css +0 -202
  960. package/dist/collection/components/accordion-group/accordion-group.ionic.css +0 -82
  961. package/dist/collection/components/avatar/avatar.ionic.css +0 -270
  962. package/dist/collection/components/backdrop/backdrop.ionic.css +0 -152
  963. package/dist/collection/components/badge/badge.ionic.css +0 -250
  964. package/dist/collection/components/button/button.ionic.css +0 -590
  965. package/dist/collection/components/buttons/buttons.ionic.css +0 -100
  966. package/dist/collection/components/card/card.ionic.css +0 -138
  967. package/dist/collection/components/card-content/card-content.ionic.css +0 -91
  968. package/dist/collection/components/card-header/card-header.ionic.css +0 -88
  969. package/dist/collection/components/card-subtitle/card-subtitle.ionic.css +0 -147
  970. package/dist/collection/components/checkbox/checkbox.ionic.css +0 -403
  971. package/dist/collection/components/chip/chip.ionic.css +0 -161
  972. package/dist/collection/components/datetime/datetime.ionic.css +0 -669
  973. package/dist/collection/components/header/header.ionic.css +0 -87
  974. package/dist/collection/components/input/input.ionic.css +0 -1097
  975. package/dist/collection/components/input-password-toggle/input-password-toggle.common.css +0 -61
  976. package/dist/collection/components/input-password-toggle/input-password-toggle.ionic.css +0 -142
  977. package/dist/collection/components/item/item.ionic.css +0 -502
  978. package/dist/collection/components/item-option/item-option.ionic.css +0 -333
  979. package/dist/collection/components/item-options/item-options.ionic.css +0 -259
  980. package/dist/collection/components/list/list.ionic.css +0 -194
  981. package/dist/collection/components/list-header/list-header.ionic.css +0 -237
  982. package/dist/collection/components/menu-button/menu-button.ionic.css +0 -239
  983. package/dist/collection/components/modal/modal.ionic.css +0 -240
  984. package/dist/collection/components/radio/radio.ionic.css +0 -419
  985. package/dist/collection/components/ripple-effect/ripple-effect.ionic.css +0 -154
  986. package/dist/collection/components/searchbar/searchbar.ionic.css +0 -346
  987. package/dist/collection/components/segment-button/segment-button.ionic.css +0 -351
  988. package/dist/collection/components/spinner/spinner.common.css +0 -199
  989. package/dist/collection/components/tab-bar/tab-bar.ionic.css +0 -252
  990. package/dist/collection/components/tab-button/tab-button.ionic.css +0 -272
  991. package/dist/collection/components/textarea/textarea.ionic.css +0 -805
  992. package/dist/collection/components/title/title.ionic.css +0 -146
  993. package/dist/collection/components/toast/toast.ionic.css +0 -359
  994. package/dist/collection/components/toggle/toggle.ionic.css +0 -420
  995. package/dist/collection/components/toolbar/toolbar.ionic.css +0 -234
  996. package/dist/esm/caret-down-3eaad1cc.js +0 -6
  997. package/dist/esm/caret-left-33424bb0.js +0 -6
  998. package/dist/esm/caret-right-68d856ad.js +0 -6
  999. package/dist/esm/ionic-global-d7017fd9.js +0 -520
  1000. package/dist/esm/list-6524700c.js +0 -6
  1001. package/dist/esm/x-a64bcd9f.js +0 -6
  1002. package/dist/esm-es5/animation-16546c84.js +0 -4
  1003. package/dist/esm-es5/app-globals-35381e66.js +0 -4
  1004. package/dist/esm-es5/button-active-c768aceb.js +0 -4
  1005. package/dist/esm-es5/capacitor-0897b83c.js +0 -4
  1006. package/dist/esm-es5/caret-down-3eaad1cc.js +0 -4
  1007. package/dist/esm-es5/caret-left-33424bb0.js +0 -4
  1008. package/dist/esm-es5/caret-right-68d856ad.js +0 -4
  1009. package/dist/esm-es5/data-d9b1fbdb.js +0 -4
  1010. package/dist/esm-es5/focus-visible-501aff19.js +0 -4
  1011. package/dist/esm-es5/framework-delegate-56698eb0.js +0 -4
  1012. package/dist/esm-es5/helpers-d57f52c8.js +0 -4
  1013. package/dist/esm-es5/index-7f65e865.js +0 -4
  1014. package/dist/esm-es5/index-82405a4a.js +0 -4
  1015. package/dist/esm-es5/index-edf94b3b.js +0 -4
  1016. package/dist/esm-es5/index-f8ad386a.js +0 -4
  1017. package/dist/esm-es5/input-shims-0f3cc1c3.js +0 -4
  1018. package/dist/esm-es5/input.utils-ef4d8197.js +0 -4
  1019. package/dist/esm-es5/ionic-global-d7017fd9.js +0 -4
  1020. package/dist/esm-es5/ios.transition-4b9fe79e.js +0 -4
  1021. package/dist/esm-es5/keyboard-584d2e6f.js +0 -4
  1022. package/dist/esm-es5/keyboard-controller-9c9c2301.js +0 -4
  1023. package/dist/esm-es5/list-6524700c.js +0 -4
  1024. package/dist/esm-es5/md.transition-a71dc418.js +0 -4
  1025. package/dist/esm-es5/notch-controller-4d9a7b28.js +0 -4
  1026. package/dist/esm-es5/overlays-9da9aef5.js +0 -4
  1027. package/dist/esm-es5/status-tap-82f51b25.js +0 -4
  1028. package/dist/esm-es5/swipe-back-c5709ce5.js +0 -4
  1029. package/dist/esm-es5/x-a64bcd9f.js +0 -4
  1030. package/dist/ionic/p-01d80901.system.js +0 -4
  1031. package/dist/ionic/p-036e1c5b.entry.js +0 -4
  1032. package/dist/ionic/p-0689d382.entry.js +0 -4
  1033. package/dist/ionic/p-06ec4706.js +0 -4
  1034. package/dist/ionic/p-087e8765.system.entry.js +0 -4
  1035. package/dist/ionic/p-08df90cf.system.js +0 -4
  1036. package/dist/ionic/p-08f1ef0c.entry.js +0 -4
  1037. package/dist/ionic/p-0a701833.entry.js +0 -4
  1038. package/dist/ionic/p-1037b7dd.js +0 -4
  1039. package/dist/ionic/p-12e3e308.entry.js +0 -4
  1040. package/dist/ionic/p-13046601.system.entry.js +0 -4
  1041. package/dist/ionic/p-1331f417.system.entry.js +0 -4
  1042. package/dist/ionic/p-14719a77.entry.js +0 -4
  1043. package/dist/ionic/p-15d51b10.js +0 -4
  1044. package/dist/ionic/p-19ac8e04.system.entry.js +0 -4
  1045. package/dist/ionic/p-221e5078.system.js +0 -4
  1046. package/dist/ionic/p-243adf8c.js +0 -4
  1047. package/dist/ionic/p-25389914.entry.js +0 -4
  1048. package/dist/ionic/p-25564f4c.system.entry.js +0 -4
  1049. package/dist/ionic/p-26f7c080.system.js +0 -4
  1050. package/dist/ionic/p-28d04212.system.js +0 -4
  1051. package/dist/ionic/p-291dc0b3.system.entry.js +0 -4
  1052. package/dist/ionic/p-29d6d1fc.system.entry.js +0 -4
  1053. package/dist/ionic/p-2a559ac6.js +0 -4
  1054. package/dist/ionic/p-2a79e451.entry.js +0 -4
  1055. package/dist/ionic/p-2be91f19.entry.js +0 -4
  1056. package/dist/ionic/p-2c368e32.entry.js +0 -4
  1057. package/dist/ionic/p-2d580501.entry.js +0 -4
  1058. package/dist/ionic/p-2d621d56.system.entry.js +0 -4
  1059. package/dist/ionic/p-2da8c20c.system.entry.js +0 -4
  1060. package/dist/ionic/p-2e6d744f.system.entry.js +0 -4
  1061. package/dist/ionic/p-361c24e5.system.entry.js +0 -4
  1062. package/dist/ionic/p-36bdcfc4.js +0 -4
  1063. package/dist/ionic/p-388ac217.js +0 -4
  1064. package/dist/ionic/p-39d15e64.system.entry.js +0 -4
  1065. package/dist/ionic/p-3a5869c3.entry.js +0 -4
  1066. package/dist/ionic/p-3ca5196c.js +0 -4
  1067. package/dist/ionic/p-419fac38.entry.js +0 -4
  1068. package/dist/ionic/p-4228a245.entry.js +0 -4
  1069. package/dist/ionic/p-429dd2b5.system.js +0 -4
  1070. package/dist/ionic/p-434c7348.system.entry.js +0 -4
  1071. package/dist/ionic/p-45e150eb.js +0 -4
  1072. package/dist/ionic/p-46787abb.system.js +0 -4
  1073. package/dist/ionic/p-46cc2492.system.js +0 -4
  1074. package/dist/ionic/p-49a3fc76.entry.js +0 -4
  1075. package/dist/ionic/p-4a9b61ed.system.entry.js +0 -4
  1076. package/dist/ionic/p-4c251d59.entry.js +0 -4
  1077. package/dist/ionic/p-4d000ec5.entry.js +0 -4
  1078. package/dist/ionic/p-4e202665.js +0 -4
  1079. package/dist/ionic/p-51151575.system.entry.js +0 -4
  1080. package/dist/ionic/p-5468bfbf.entry.js +0 -4
  1081. package/dist/ionic/p-5b57d327.system.js +0 -4
  1082. package/dist/ionic/p-5ce35a03.js +0 -4
  1083. package/dist/ionic/p-607c9c33.js +0 -4
  1084. package/dist/ionic/p-643e2eb8.js +0 -4
  1085. package/dist/ionic/p-660f3b98.entry.js +0 -4
  1086. package/dist/ionic/p-6703f239.entry.js +0 -4
  1087. package/dist/ionic/p-68f3fa48.system.entry.js +0 -4
  1088. package/dist/ionic/p-69e54172.js +0 -4
  1089. package/dist/ionic/p-6a0dd6bc.js +0 -4
  1090. package/dist/ionic/p-6ad6d594.js +0 -4
  1091. package/dist/ionic/p-6b64dce1.entry.js +0 -4
  1092. package/dist/ionic/p-6d9e1887.system.entry.js +0 -4
  1093. package/dist/ionic/p-70c6cd75.system.js +0 -4
  1094. package/dist/ionic/p-719fca78.entry.js +0 -4
  1095. package/dist/ionic/p-71e8ffdd.system.js +0 -4
  1096. package/dist/ionic/p-726b9197.system.entry.js +0 -4
  1097. package/dist/ionic/p-73e32456.system.js +0 -4
  1098. package/dist/ionic/p-774d5b57.system.entry.js +0 -4
  1099. package/dist/ionic/p-776adb3d.entry.js +0 -4
  1100. package/dist/ionic/p-7811f251.system.entry.js +0 -4
  1101. package/dist/ionic/p-7d02004b.entry.js +0 -4
  1102. package/dist/ionic/p-7ebc381e.entry.js +0 -4
  1103. package/dist/ionic/p-80342c88.system.entry.js +0 -4
  1104. package/dist/ionic/p-8181e971.entry.js +0 -4
  1105. package/dist/ionic/p-8248976b.system.entry.js +0 -4
  1106. package/dist/ionic/p-836515ee.entry.js +0 -4
  1107. package/dist/ionic/p-8421aedf.js +0 -4
  1108. package/dist/ionic/p-8d7bc281.system.entry.js +0 -4
  1109. package/dist/ionic/p-931d77d5.entry.js +0 -4
  1110. package/dist/ionic/p-95c2258a.entry.js +0 -4
  1111. package/dist/ionic/p-974aaf78.entry.js +0 -4
  1112. package/dist/ionic/p-99ab41a8.system.entry.js +0 -4
  1113. package/dist/ionic/p-9abdb4a7.system.entry.js +0 -4
  1114. package/dist/ionic/p-9e4ede77.system.entry.js +0 -4
  1115. package/dist/ionic/p-9e8e25e4.system.js +0 -4
  1116. package/dist/ionic/p-9e9bff83.system.js +0 -4
  1117. package/dist/ionic/p-9f51595b.entry.js +0 -4
  1118. package/dist/ionic/p-9fa0b117.entry.js +0 -4
  1119. package/dist/ionic/p-9fcaadad.system.entry.js +0 -4
  1120. package/dist/ionic/p-a856dbc6.entry.js +0 -4
  1121. package/dist/ionic/p-a9af4103.js +0 -4
  1122. package/dist/ionic/p-aacc6ddd.system.js +0 -5
  1123. package/dist/ionic/p-ab6e0f02.system.entry.js +0 -4
  1124. package/dist/ionic/p-adaa7af1.entry.js +0 -4
  1125. package/dist/ionic/p-b19a9aa9.system.js +0 -4
  1126. package/dist/ionic/p-b297c7b5.system.js +0 -4
  1127. package/dist/ionic/p-b5bf8a04.entry.js +0 -4
  1128. package/dist/ionic/p-b6fc8ee2.system.entry.js +0 -4
  1129. package/dist/ionic/p-ba3ddec4.js +0 -4
  1130. package/dist/ionic/p-bad792a6.entry.js +0 -4
  1131. package/dist/ionic/p-bd50f24e.system.entry.js +0 -4
  1132. package/dist/ionic/p-c08a9937.system.entry.js +0 -4
  1133. package/dist/ionic/p-c248c88d.system.js +0 -4
  1134. package/dist/ionic/p-c24ff776.system.entry.js +0 -4
  1135. package/dist/ionic/p-c6191942.js +0 -4
  1136. package/dist/ionic/p-c6e47379.entry.js +0 -4
  1137. package/dist/ionic/p-c7e967c0.system.entry.js +0 -4
  1138. package/dist/ionic/p-c8097757.system.entry.js +0 -4
  1139. package/dist/ionic/p-c8f207d8.entry.js +0 -4
  1140. package/dist/ionic/p-cb131dda.system.entry.js +0 -4
  1141. package/dist/ionic/p-d0259f44.system.js +0 -4
  1142. package/dist/ionic/p-d0953ec9.system.entry.js +0 -4
  1143. package/dist/ionic/p-d10313a6.system.js +0 -4
  1144. package/dist/ionic/p-d2ef848a.entry.js +0 -4
  1145. package/dist/ionic/p-d346c889.system.entry.js +0 -4
  1146. package/dist/ionic/p-d67b88b0.system.entry.js +0 -4
  1147. package/dist/ionic/p-d8b501bd.system.entry.js +0 -4
  1148. package/dist/ionic/p-da968066.entry.js +0 -4
  1149. package/dist/ionic/p-db8aeb40.system.js +0 -4
  1150. package/dist/ionic/p-dd50ef12.js +0 -4
  1151. package/dist/ionic/p-df668729.entry.js +0 -4
  1152. package/dist/ionic/p-e270862e.js +0 -4
  1153. package/dist/ionic/p-e3b70846.system.js +0 -4
  1154. package/dist/ionic/p-e51ff133.system.entry.js +0 -4
  1155. package/dist/ionic/p-e5239905.system.entry.js +0 -4
  1156. package/dist/ionic/p-eeb60a8f.entry.js +0 -4
  1157. package/dist/ionic/p-eec767ca.entry.js +0 -4
  1158. package/dist/ionic/p-f065578f.js +0 -4
  1159. package/dist/ionic/p-f0d3419a.entry.js +0 -4
  1160. package/dist/ionic/p-f4ae533b.js +0 -4
  1161. package/dist/ionic/p-f61ce679.js +0 -4
  1162. package/dist/ionic/p-fbcb3139.entry.js +0 -4
  1163. package/dist/ionic/p-fca5d1b1.system.entry.js +0 -4
  1164. package/dist/ionic/p-ffa51f41.system.entry.js +0 -4
  1165. /package/dist/collection/components/{refresher-content/refresher-content.css → input-password-toggle/input-password-toggle.css} +0 -0
@@ -1,1773 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { proxyCustomElement, HTMLElement, createEvent, writeTask, h, Host } from '@stencil/core/internal/client';
5
- import { a as findClosestIonContent, i as isIonContent, d as disableContentScrollY, r as resetContentScrollY, f as findIonContent, p as printIonContentErrorMsg } from './index6.js';
6
- import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate.js';
7
- import { g as getElementRoot, k as clamp, r as raf, d as inheritAttributes, j as hasLazyBuild } from './helpers.js';
8
- import { c as createLockController } from './lock-controller.js';
9
- import { w as win, p as printIonWarning, b as getIonMode, c as getIonTheme } from './ionic-global.js';
10
- import { g as getCapacitor } from './capacitor.js';
11
- import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, F as FOCUS_TRAP_DISABLE_CLASS, e as createTriggerController, B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod } from './overlays.js';
12
- import { g as getClassMap } from './theme.js';
13
- import { e as deepReady, w as waitForMount } from './index2.js';
14
- import { c as config } from './config2.js';
15
- import { KEYBOARD_DID_OPEN } from './keyboard2.js';
16
- import { c as createAnimation } from './animation.js';
17
- import { g as getTimeGivenProgression } from './cubic-bezier.js';
18
- import { createGesture } from './index3.js';
19
- import { d as defineCustomElement$2 } from './backdrop.js';
20
-
21
- var Style;
22
- (function (Style) {
23
- Style["Dark"] = "DARK";
24
- Style["Light"] = "LIGHT";
25
- Style["Default"] = "DEFAULT";
26
- })(Style || (Style = {}));
27
- const StatusBar = {
28
- getEngine() {
29
- const capacitor = getCapacitor();
30
- if (capacitor === null || capacitor === void 0 ? void 0 : capacitor.isPluginAvailable('StatusBar')) {
31
- return capacitor.Plugins.StatusBar;
32
- }
33
- return undefined;
34
- },
35
- setStyle(options) {
36
- const engine = this.getEngine();
37
- if (!engine) {
38
- return;
39
- }
40
- engine.setStyle(options);
41
- },
42
- getStyle: async function () {
43
- const engine = this.getEngine();
44
- if (!engine) {
45
- return Style.Default;
46
- }
47
- const { style } = await engine.getInfo();
48
- return style;
49
- },
50
- };
51
-
52
- /**
53
- * Use y = mx + b to
54
- * figure out the backdrop value
55
- * at a particular x coordinate. This
56
- * is useful when the backdrop does
57
- * not begin to fade in until after
58
- * the 0 breakpoint.
59
- */
60
- const getBackdropValueForSheet = (x, backdropBreakpoint) => {
61
- /**
62
- * We will use these points:
63
- * (backdropBreakpoint, 0)
64
- * (maxBreakpoint, 1)
65
- * We know that at the beginning breakpoint,
66
- * the backdrop will be hidden. We also
67
- * know that at the maxBreakpoint, the backdrop
68
- * must be fully visible. maxBreakpoint should
69
- * always be 1 even if the maximum value
70
- * of the breakpoints array is not 1 since
71
- * the animation runs from a progress of 0
72
- * to a progress of 1.
73
- * m = (y2 - y1) / (x2 - x1)
74
- *
75
- * This is simplified from:
76
- * m = (1 - 0) / (maxBreakpoint - backdropBreakpoint)
77
- *
78
- * If the backdropBreakpoint is 1, we return 0 as the
79
- * backdrop is completely hidden.
80
- *
81
- */
82
- if (backdropBreakpoint === 1) {
83
- return 0;
84
- }
85
- const slope = 1 / (1 - backdropBreakpoint);
86
- /**
87
- * From here, compute b which is
88
- * the backdrop opacity if the offset
89
- * is 0. If the backdrop does not
90
- * begin to fade in until after the
91
- * 0 breakpoint, this b value will be
92
- * negative. This is fine as we never pass
93
- * b directly into the animation keyframes.
94
- * b = y - mx
95
- * Use a known point: (backdropBreakpoint, 0)
96
- * This is simplified from:
97
- * b = 0 - (backdropBreakpoint * slope)
98
- */
99
- const b = -(backdropBreakpoint * slope);
100
- /**
101
- * Finally, we can now determine the
102
- * backdrop offset given an arbitrary
103
- * gesture offset.
104
- */
105
- return x * slope + b;
106
- };
107
- /**
108
- * The tablet/desktop card modal activates
109
- * when the window width is >= 768.
110
- * At that point, the presenting element
111
- * is not transformed, so we do not need to
112
- * adjust the status bar color.
113
- *
114
- */
115
- const setCardStatusBarDark = () => {
116
- if (!win || win.innerWidth >= 768) {
117
- return;
118
- }
119
- StatusBar.setStyle({ style: Style.Dark });
120
- };
121
- const setCardStatusBarDefault = (defaultStyle = Style.Default) => {
122
- if (!win || win.innerWidth >= 768) {
123
- return;
124
- }
125
- StatusBar.setStyle({ style: defaultStyle });
126
- };
127
-
128
- const handleCanDismiss = async (el, animation) => {
129
- /**
130
- * If canDismiss is not a function
131
- * then we can return early. If canDismiss is `true`,
132
- * then canDismissBlocksGesture is `false` as canDismiss
133
- * will never interrupt the gesture. As a result,
134
- * this code block is never reached. If canDismiss is `false`,
135
- * then we never dismiss.
136
- */
137
- if (typeof el.canDismiss !== 'function') {
138
- return;
139
- }
140
- /**
141
- * Run the canDismiss callback.
142
- * If the function returns `true`,
143
- * then we can proceed with dismiss.
144
- */
145
- const shouldDismiss = await el.canDismiss(undefined, GESTURE);
146
- if (!shouldDismiss) {
147
- return;
148
- }
149
- /**
150
- * If canDismiss resolved after the snap
151
- * back animation finished, we can
152
- * dismiss immediately.
153
- *
154
- * If canDismiss resolved before the snap
155
- * back animation finished, we need to
156
- * wait until the snap back animation is
157
- * done before dismissing.
158
- */
159
- if (animation.isRunning()) {
160
- animation.onFinish(() => {
161
- el.dismiss(undefined, 'handler');
162
- }, { oneTimeCallback: true });
163
- }
164
- else {
165
- el.dismiss(undefined, 'handler');
166
- }
167
- };
168
- /**
169
- * This function lets us simulate a realistic spring-like animation
170
- * when swiping down on the modal.
171
- * There are two forces that we need to use to compute the spring physics:
172
- *
173
- * 1. Stiffness, k: This is a measure of resistance applied a spring.
174
- * 2. Dampening, c: This value has the effect of reducing or preventing oscillation.
175
- *
176
- * Using these two values, we can calculate the Spring Force and the Dampening Force
177
- * to compute the total force applied to a spring.
178
- *
179
- * Spring Force: This force pulls a spring back into its equilibrium position.
180
- * Hooke's Law tells us that that spring force (FS) = kX.
181
- * k is the stiffness of a spring, and X is the displacement of the spring from its
182
- * equilibrium position. In this case, it is the amount by which the free end
183
- * of a spring was displaced (stretched/pushed) from its "relaxed" position.
184
- *
185
- * Dampening Force: This force slows down motion. Without it, a spring would oscillate forever.
186
- * The dampening force, FD, can be found via this formula: FD = -cv
187
- * where c the dampening value and v is velocity.
188
- *
189
- * Therefore, the resulting force that is exerted on the block is:
190
- * F = FS + FD = -kX - cv
191
- *
192
- * Newton's 2nd Law tells us that F = ma:
193
- * ma = -kX - cv.
194
- *
195
- * For Ionic's purposes, we can assume that m = 1:
196
- * a = -kX - cv
197
- *
198
- * Imagine a block attached to the end of a spring. At equilibrium
199
- * the block is at position x = 1.
200
- * Pressing on the block moves it to position x = 0;
201
- * So, to calculate the displacement, we need to take the
202
- * current position and subtract the previous position from it.
203
- * X = x - x0 = 0 - 1 = -1.
204
- *
205
- * For Ionic's purposes, we are only pushing on the spring modal
206
- * so we have a max position of 1.
207
- * As a result, we can expand displacement to this formula:
208
- * X = x - 1
209
- *
210
- * a = -k(x - 1) - cv
211
- *
212
- * We can represent the motion of something as a function of time: f(t) = x.
213
- * The derivative of position gives us the velocity: f'(t)
214
- * The derivative of the velocity gives us the acceleration: f''(t)
215
- *
216
- * We can substitute the formula above with these values:
217
- *
218
- * f"(t) = -k * (f(t) - 1) - c * f'(t)
219
- *
220
- * This is called a differential equation.
221
- *
222
- * We know that at t = 0, we are at x = 0 because the modal does not move: f(0) = 0
223
- * This means our velocity is also zero: f'(0) = 0.
224
- *
225
- * We can cheat a bit and plug the formula into Wolfram Alpha.
226
- * However, we need to pick stiffness and dampening values:
227
- * k = 0.57
228
- * c = 15
229
- *
230
- * I picked these as they are fairly close to native iOS's spring effect
231
- * with the modal.
232
- *
233
- * What we plug in is this: f(0) = 0; f'(0) = 0; f''(t) = -0.57(f(t) - 1) - 15f'(t)
234
- *
235
- * The result is a formula that lets us calculate the acceleration
236
- * for a given time t.
237
- * Note: This is the approximate form of the solution. Wolfram Alpha will
238
- * give you a complex differential equation too.
239
- */
240
- const calculateSpringStep = (t) => {
241
- return 0.00255275 * 2.71828 ** (-14.9619 * t) - 1.00255 * 2.71828 ** (-0.0380968 * t) + 1;
242
- };
243
-
244
- // Defaults for the card swipe animation
245
- const SwipeToCloseDefaults = {
246
- MIN_PRESENTING_SCALE: 0.915,
247
- };
248
- const createSwipeToCloseGesture = (el, animation, statusBarStyle, onDismiss) => {
249
- /**
250
- * The step value at which a card modal
251
- * is eligible for dismissing via gesture.
252
- */
253
- const DISMISS_THRESHOLD = 0.5;
254
- const height = el.offsetHeight;
255
- let isOpen = false;
256
- let canDismissBlocksGesture = false;
257
- let contentEl = null;
258
- let scrollEl = null;
259
- const canDismissMaxStep = 0.2;
260
- let initialScrollY = true;
261
- let lastStep = 0;
262
- const getScrollY = () => {
263
- if (contentEl && isIonContent(contentEl)) {
264
- return contentEl.scrollY;
265
- /**
266
- * Custom scroll containers are intended to be
267
- * used with virtual scrolling, so we assume
268
- * there is scrolling in this case.
269
- */
270
- }
271
- else {
272
- return true;
273
- }
274
- };
275
- const canStart = (detail) => {
276
- const target = detail.event.target;
277
- if (target === null || !target.closest) {
278
- return true;
279
- }
280
- /**
281
- * If we are swiping on the content,
282
- * swiping should only be possible if
283
- * the content is scrolled all the way
284
- * to the top so that we do not interfere
285
- * with scrolling.
286
- *
287
- * We cannot assume that the `ion-content`
288
- * target will remain consistent between
289
- * swipes. For example, when using
290
- * ion-nav within a card modal it is
291
- * possible to swipe, push a view, and then
292
- * swipe again. The target content will not
293
- * be the same between swipes.
294
- */
295
- contentEl = findClosestIonContent(target);
296
- if (contentEl) {
297
- /**
298
- * The card should never swipe to close
299
- * on the content with a refresher.
300
- * Note: We cannot solve this by making the
301
- * swipeToClose gesture have a higher priority
302
- * than the refresher gesture as the iOS native
303
- * refresh gesture uses a scroll listener in
304
- * addition to a gesture.
305
- *
306
- * Note: Do not use getScrollElement here
307
- * because we need this to be a synchronous
308
- * operation, and getScrollElement is
309
- * asynchronous.
310
- */
311
- if (isIonContent(contentEl)) {
312
- const root = getElementRoot(contentEl);
313
- scrollEl = root.querySelector('.inner-scroll');
314
- }
315
- else {
316
- scrollEl = contentEl;
317
- }
318
- const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
319
- return !hasRefresherInContent && scrollEl.scrollTop === 0;
320
- }
321
- /**
322
- * Card should be swipeable on all
323
- * parts of the modal except for the footer.
324
- */
325
- const footer = target.closest('ion-footer');
326
- if (footer === null) {
327
- return true;
328
- }
329
- return false;
330
- };
331
- const onStart = (detail) => {
332
- const { deltaY } = detail;
333
- /**
334
- * Get the initial scrollY value so
335
- * that we can correctly reset the scrollY
336
- * prop when the gesture ends.
337
- */
338
- initialScrollY = getScrollY();
339
- /**
340
- * If canDismiss is anything other than `true`
341
- * then users should be able to swipe down
342
- * until a threshold is hit. At that point,
343
- * the card modal should not proceed any further.
344
- * TODO (FW-937)
345
- * Remove undefined check
346
- */
347
- canDismissBlocksGesture = el.canDismiss !== undefined && el.canDismiss !== true;
348
- /**
349
- * If we are pulling down, then
350
- * it is possible we are pulling on the
351
- * content. We do not want scrolling to
352
- * happen at the same time as the gesture.
353
- */
354
- if (deltaY > 0 && contentEl) {
355
- disableContentScrollY(contentEl);
356
- }
357
- animation.progressStart(true, isOpen ? 1 : 0);
358
- };
359
- const onMove = (detail) => {
360
- const { deltaY } = detail;
361
- /**
362
- * If we are pulling down, then
363
- * it is possible we are pulling on the
364
- * content. We do not want scrolling to
365
- * happen at the same time as the gesture.
366
- */
367
- if (deltaY > 0 && contentEl) {
368
- disableContentScrollY(contentEl);
369
- }
370
- /**
371
- * If we are swiping on the content
372
- * then the swipe gesture should only
373
- * happen if we are pulling down.
374
- *
375
- * However, if we pull up and
376
- * then down such that the scroll position
377
- * returns to 0, we should be able to swipe
378
- * the card.
379
- */
380
- const step = detail.deltaY / height;
381
- /**
382
- * Check if user is swiping down and
383
- * if we have a canDismiss value that
384
- * should block the gesture from
385
- * proceeding,
386
- */
387
- const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
388
- /**
389
- * If we are blocking the gesture from dismissing,
390
- * set the max step value so that the sheet cannot be
391
- * completely hidden.
392
- */
393
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
394
- /**
395
- * If we are blocking the gesture from
396
- * dismissing, calculate the spring modifier value
397
- * this will be added to the starting breakpoint
398
- * value to give the gesture a spring-like feeling.
399
- * Note that the starting breakpoint is always 0,
400
- * so we omit adding 0 to the result.
401
- */
402
- const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
403
- const clampedStep = clamp(0.0001, processedStep, maxStep);
404
- animation.progressStep(clampedStep);
405
- /**
406
- * When swiping down half way, the status bar style
407
- * should be reset to its default value.
408
- *
409
- * We track lastStep so that we do not fire these
410
- * functions on every onMove, only when the user has
411
- * crossed a certain threshold.
412
- */
413
- if (clampedStep >= DISMISS_THRESHOLD && lastStep < DISMISS_THRESHOLD) {
414
- setCardStatusBarDefault(statusBarStyle);
415
- /**
416
- * However, if we swipe back up, then the
417
- * status bar style should be set to have light
418
- * text on a dark background.
419
- */
420
- }
421
- else if (clampedStep < DISMISS_THRESHOLD && lastStep >= DISMISS_THRESHOLD) {
422
- setCardStatusBarDark();
423
- }
424
- lastStep = clampedStep;
425
- };
426
- const onEnd = (detail) => {
427
- const velocity = detail.velocityY;
428
- const step = detail.deltaY / height;
429
- const isAttemptingDismissWithCanDismiss = step >= 0 && canDismissBlocksGesture;
430
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
431
- const processedStep = isAttemptingDismissWithCanDismiss ? calculateSpringStep(step / maxStep) : step;
432
- const clampedStep = clamp(0.0001, processedStep, maxStep);
433
- const threshold = (detail.deltaY + velocity * 1000) / height;
434
- /**
435
- * If canDismiss blocks
436
- * the swipe gesture, then the
437
- * animation can never complete until
438
- * canDismiss is checked.
439
- */
440
- const shouldComplete = !isAttemptingDismissWithCanDismiss && threshold >= DISMISS_THRESHOLD;
441
- let newStepValue = shouldComplete ? -0.001 : 0.001;
442
- if (!shouldComplete) {
443
- animation.easing('cubic-bezier(1, 0, 0.68, 0.28)');
444
- newStepValue += getTimeGivenProgression([0, 0], [1, 0], [0.68, 0.28], [1, 1], clampedStep)[0];
445
- }
446
- else {
447
- animation.easing('cubic-bezier(0.32, 0.72, 0, 1)');
448
- newStepValue += getTimeGivenProgression([0, 0], [0.32, 0.72], [0, 1], [1, 1], clampedStep)[0];
449
- }
450
- const duration = shouldComplete
451
- ? computeDuration(step * height, velocity)
452
- : computeDuration((1 - clampedStep) * height, velocity);
453
- isOpen = shouldComplete;
454
- gesture.enable(false);
455
- if (contentEl) {
456
- resetContentScrollY(contentEl, initialScrollY);
457
- }
458
- animation
459
- .onFinish(() => {
460
- if (!shouldComplete) {
461
- gesture.enable(true);
462
- }
463
- })
464
- .progressEnd(shouldComplete ? 1 : 0, newStepValue, duration);
465
- /**
466
- * If the canDismiss value blocked the gesture
467
- * from proceeding, then we should ignore whatever
468
- * shouldComplete is. Whether or not the modal
469
- * animation should complete is now determined by
470
- * canDismiss.
471
- *
472
- * If the user swiped >25% of the way
473
- * to the max step, then we should
474
- * check canDismiss. 25% was chosen
475
- * to avoid accidental swipes.
476
- */
477
- if (isAttemptingDismissWithCanDismiss && clampedStep > maxStep / 4) {
478
- handleCanDismiss(el, animation);
479
- }
480
- else if (shouldComplete) {
481
- onDismiss();
482
- }
483
- };
484
- const gesture = createGesture({
485
- el,
486
- gestureName: 'modalSwipeToClose',
487
- gesturePriority: OVERLAY_GESTURE_PRIORITY,
488
- direction: 'y',
489
- threshold: 10,
490
- canStart,
491
- onStart,
492
- onMove,
493
- onEnd,
494
- });
495
- return gesture;
496
- };
497
- const computeDuration = (remaining, velocity) => {
498
- return clamp(400, remaining / Math.abs(velocity * 1.1), 500);
499
- };
500
-
501
- const createSheetEnterAnimation = (opts) => {
502
- const { currentBreakpoint, backdropBreakpoint, staticBackdropOpacity } = opts;
503
- /**
504
- * If the backdropBreakpoint is undefined, then the backdrop
505
- * should always fade in. If the backdropBreakpoint came before the
506
- * current breakpoint, then the backdrop should be fading in.
507
- */
508
- const shouldShowBackdrop = backdropBreakpoint === undefined || backdropBreakpoint < currentBreakpoint;
509
- let initialBackdrop = '0';
510
- if (staticBackdropOpacity) {
511
- initialBackdrop = 'calc(var(--backdrop-opacity)';
512
- }
513
- else if (shouldShowBackdrop) {
514
- initialBackdrop = `calc(var(--backdrop-opacity) * ${currentBreakpoint})`;
515
- }
516
- const backdropAnimation = createAnimation('backdropAnimation').fromTo('opacity', 0, initialBackdrop);
517
- if (shouldShowBackdrop) {
518
- backdropAnimation
519
- .beforeStyles({
520
- 'pointer-events': 'none',
521
- })
522
- .afterClearStyles(['pointer-events']);
523
- }
524
- const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
525
- { offset: 0, opacity: 1, transform: 'translateY(100%)' },
526
- { offset: 1, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
527
- ]);
528
- return { wrapperAnimation, backdropAnimation };
529
- };
530
- const createSheetLeaveAnimation = (opts) => {
531
- const { currentBreakpoint, backdropBreakpoint } = opts;
532
- /**
533
- * Backdrop does not always fade in from 0 to 1 if backdropBreakpoint
534
- * is defined, so we need to account for that offset by figuring out
535
- * what the current backdrop value should be.
536
- */
537
- const backdropValue = `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(currentBreakpoint, backdropBreakpoint)})`;
538
- const defaultBackdrop = [
539
- { offset: 0, opacity: backdropValue },
540
- { offset: 1, opacity: 0 },
541
- ];
542
- const customBackdrop = [
543
- { offset: 0, opacity: backdropValue },
544
- { offset: backdropBreakpoint, opacity: 0 },
545
- { offset: 1, opacity: 0 },
546
- ];
547
- const backdropAnimation = createAnimation('backdropAnimation').keyframes(backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop);
548
- const wrapperAnimation = createAnimation('wrapperAnimation').keyframes([
549
- { offset: 0, opacity: 1, transform: `translateY(${100 - currentBreakpoint * 100}%)` },
550
- { offset: 1, opacity: 1, transform: `translateY(100%)` },
551
- ]);
552
- return { wrapperAnimation, backdropAnimation };
553
- };
554
-
555
- const createEnterAnimation$1 = () => {
556
- const backdropAnimation = createAnimation()
557
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
558
- .beforeStyles({
559
- 'pointer-events': 'none',
560
- })
561
- .afterClearStyles(['pointer-events']);
562
- const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(100vh)', 'translateY(0vh)');
563
- return { backdropAnimation, wrapperAnimation };
564
- };
565
- /**
566
- * iOS Modal Enter Animation for the Card presentation style
567
- */
568
- const iosEnterAnimation = (baseEl, opts) => {
569
- const { presentingEl, currentBreakpoint } = opts;
570
- const root = getElementRoot(baseEl);
571
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation$1();
572
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
573
- wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
574
- const baseAnimation = createAnimation('entering-base')
575
- .addElement(baseEl)
576
- .easing('cubic-bezier(0.32,0.72,0,1)')
577
- .duration(500)
578
- .addAnimation(wrapperAnimation);
579
- if (presentingEl) {
580
- const isMobile = window.innerWidth < 768;
581
- const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
582
- const presentingElRoot = getElementRoot(presentingEl);
583
- const presentingAnimation = createAnimation().beforeStyles({
584
- transform: 'translateY(0)',
585
- 'transform-origin': 'top center',
586
- overflow: 'hidden',
587
- });
588
- const bodyEl = document.body;
589
- if (isMobile) {
590
- /**
591
- * Fallback for browsers that does not support `max()` (ex: Firefox)
592
- * No need to worry about statusbar padding since engines like Gecko
593
- * are not used as the engine for standalone Cordova/Capacitor apps
594
- */
595
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
596
- const modalTransform = hasCardModal ? '-10px' : transformOffset;
597
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
598
- const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
599
- presentingAnimation
600
- .afterStyles({
601
- transform: finalTransform,
602
- })
603
- .beforeAddWrite(() => bodyEl.style.setProperty('background-color', 'black'))
604
- .addElement(presentingEl)
605
- .keyframes([
606
- { offset: 0, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
607
- { offset: 1, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
608
- ]);
609
- baseAnimation.addAnimation(presentingAnimation);
610
- }
611
- else {
612
- baseAnimation.addAnimation(backdropAnimation);
613
- if (!hasCardModal) {
614
- wrapperAnimation.fromTo('opacity', '0', '1');
615
- }
616
- else {
617
- const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
618
- const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
619
- presentingAnimation
620
- .afterStyles({
621
- transform: finalTransform,
622
- })
623
- .addElement(presentingElRoot.querySelector('.modal-wrapper'))
624
- .keyframes([
625
- { offset: 0, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
626
- { offset: 1, filter: 'contrast(0.85)', transform: finalTransform },
627
- ]);
628
- const shadowAnimation = createAnimation()
629
- .afterStyles({
630
- transform: finalTransform,
631
- })
632
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
633
- .keyframes([
634
- { offset: 0, opacity: '1', transform: 'translateY(0) scale(1)' },
635
- { offset: 1, opacity: '0', transform: finalTransform },
636
- ]);
637
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
638
- }
639
- }
640
- }
641
- else {
642
- baseAnimation.addAnimation(backdropAnimation);
643
- }
644
- return baseAnimation;
645
- };
646
-
647
- const createLeaveAnimation$1 = () => {
648
- const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
649
- const wrapperAnimation = createAnimation().fromTo('transform', 'translateY(0vh)', 'translateY(100vh)');
650
- return { backdropAnimation, wrapperAnimation };
651
- };
652
- /**
653
- * iOS Modal Leave Animation
654
- */
655
- const iosLeaveAnimation = (baseEl, opts, duration = 500) => {
656
- const { presentingEl, currentBreakpoint } = opts;
657
- const root = getElementRoot(baseEl);
658
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation$1();
659
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
660
- wrapperAnimation.addElement(root.querySelectorAll('.modal-wrapper, .modal-shadow')).beforeStyles({ opacity: 1 });
661
- const baseAnimation = createAnimation('leaving-base')
662
- .addElement(baseEl)
663
- .easing('cubic-bezier(0.32,0.72,0,1)')
664
- .duration(duration)
665
- .addAnimation(wrapperAnimation);
666
- if (presentingEl) {
667
- const isMobile = window.innerWidth < 768;
668
- const hasCardModal = presentingEl.tagName === 'ION-MODAL' && presentingEl.presentingElement !== undefined;
669
- const presentingElRoot = getElementRoot(presentingEl);
670
- const presentingAnimation = createAnimation()
671
- .beforeClearStyles(['transform'])
672
- .afterClearStyles(['transform'])
673
- .onFinish((currentStep) => {
674
- // only reset background color if this is the last card-style modal
675
- if (currentStep !== 1) {
676
- return;
677
- }
678
- presentingEl.style.setProperty('overflow', '');
679
- const numModals = Array.from(bodyEl.querySelectorAll('ion-modal:not(.overlay-hidden)')).filter((m) => m.presentingElement !== undefined).length;
680
- if (numModals <= 1) {
681
- bodyEl.style.setProperty('background-color', '');
682
- }
683
- });
684
- const bodyEl = document.body;
685
- if (isMobile) {
686
- const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
687
- const modalTransform = hasCardModal ? '-10px' : transformOffset;
688
- const toPresentingScale = SwipeToCloseDefaults.MIN_PRESENTING_SCALE;
689
- const finalTransform = `translateY(${modalTransform}) scale(${toPresentingScale})`;
690
- presentingAnimation.addElement(presentingEl).keyframes([
691
- { offset: 0, filter: 'contrast(0.85)', transform: finalTransform, borderRadius: '10px 10px 0 0' },
692
- { offset: 1, filter: 'contrast(1)', transform: 'translateY(0px) scale(1)', borderRadius: '0px' },
693
- ]);
694
- baseAnimation.addAnimation(presentingAnimation);
695
- }
696
- else {
697
- baseAnimation.addAnimation(backdropAnimation);
698
- if (!hasCardModal) {
699
- wrapperAnimation.fromTo('opacity', '1', '0');
700
- }
701
- else {
702
- const toPresentingScale = hasCardModal ? SwipeToCloseDefaults.MIN_PRESENTING_SCALE : 1;
703
- const finalTransform = `translateY(-10px) scale(${toPresentingScale})`;
704
- presentingAnimation
705
- .addElement(presentingElRoot.querySelector('.modal-wrapper'))
706
- .afterStyles({
707
- transform: 'translate3d(0, 0, 0)',
708
- })
709
- .keyframes([
710
- { offset: 0, filter: 'contrast(0.85)', transform: finalTransform },
711
- { offset: 1, filter: 'contrast(1)', transform: 'translateY(0) scale(1)' },
712
- ]);
713
- const shadowAnimation = createAnimation()
714
- .addElement(presentingElRoot.querySelector('.modal-shadow'))
715
- .afterStyles({
716
- transform: 'translateY(0) scale(1)',
717
- })
718
- .keyframes([
719
- { offset: 0, opacity: '0', transform: finalTransform },
720
- { offset: 1, opacity: '1', transform: 'translateY(0) scale(1)' },
721
- ]);
722
- baseAnimation.addAnimation([presentingAnimation, shadowAnimation]);
723
- }
724
- }
725
- }
726
- else {
727
- baseAnimation.addAnimation(backdropAnimation);
728
- }
729
- return baseAnimation;
730
- };
731
-
732
- const createEnterAnimation = () => {
733
- const backdropAnimation = createAnimation()
734
- .fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
735
- .beforeStyles({
736
- 'pointer-events': 'none',
737
- })
738
- .afterClearStyles(['pointer-events']);
739
- const wrapperAnimation = createAnimation().keyframes([
740
- { offset: 0, opacity: 0.01, transform: 'translateY(40px)' },
741
- { offset: 1, opacity: 1, transform: `translateY(0px)` },
742
- ]);
743
- return { backdropAnimation, wrapperAnimation };
744
- };
745
- /**
746
- * Md Modal Enter Animation
747
- */
748
- const mdEnterAnimation = (baseEl, opts) => {
749
- const { currentBreakpoint } = opts;
750
- const root = getElementRoot(baseEl);
751
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetEnterAnimation(opts) : createEnterAnimation();
752
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
753
- wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
754
- return createAnimation()
755
- .addElement(baseEl)
756
- .easing('cubic-bezier(0.36,0.66,0.04,1)')
757
- .duration(280)
758
- .addAnimation([backdropAnimation, wrapperAnimation]);
759
- };
760
-
761
- const createLeaveAnimation = () => {
762
- const backdropAnimation = createAnimation().fromTo('opacity', 'var(--backdrop-opacity)', 0);
763
- const wrapperAnimation = createAnimation().keyframes([
764
- { offset: 0, opacity: 0.99, transform: `translateY(0px)` },
765
- { offset: 1, opacity: 0, transform: 'translateY(40px)' },
766
- ]);
767
- return { backdropAnimation, wrapperAnimation };
768
- };
769
- /**
770
- * Md Modal Leave Animation
771
- */
772
- const mdLeaveAnimation = (baseEl, opts) => {
773
- const { currentBreakpoint } = opts;
774
- const root = getElementRoot(baseEl);
775
- const { wrapperAnimation, backdropAnimation } = currentBreakpoint !== undefined ? createSheetLeaveAnimation(opts) : createLeaveAnimation();
776
- backdropAnimation.addElement(root.querySelector('ion-backdrop'));
777
- wrapperAnimation.addElement(root.querySelector('.modal-wrapper'));
778
- return createAnimation()
779
- .easing('cubic-bezier(0.47,0,0.745,0.715)')
780
- .duration(200)
781
- .addAnimation([backdropAnimation, wrapperAnimation]);
782
- };
783
-
784
- const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], getCurrentBreakpoint, onDismiss, onBreakpointChange, staticBackdropOpacity) => {
785
- // Defaults for the sheet swipe animation
786
- const defaultBackdrop = [
787
- { offset: 0, opacity: 'var(--backdrop-opacity)' },
788
- { offset: 1, opacity: staticBackdropOpacity ? 'var(--backdrop-opacity)' : 0.01 },
789
- ];
790
- const customBackdrop = [
791
- { offset: 0, opacity: 'var(--backdrop-opacity)' },
792
- { offset: 1 - backdropBreakpoint, opacity: staticBackdropOpacity ? 'var(--backdrop-opacity)' : 0 },
793
- { offset: 1, opacity: staticBackdropOpacity ? 'var(--backdrop-opacity)' : 0 },
794
- ];
795
- const SheetDefaults = {
796
- WRAPPER_KEYFRAMES: [
797
- { offset: 0, transform: 'translateY(0%)' },
798
- { offset: 1, transform: 'translateY(100%)' },
799
- ],
800
- BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
801
- };
802
- const contentEl = baseEl.querySelector('ion-content');
803
- const height = wrapperEl.clientHeight;
804
- let currentBreakpoint = initialBreakpoint;
805
- let offset = 0;
806
- let canDismissBlocksGesture = false;
807
- const canDismissMaxStep = 0.95;
808
- const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
809
- const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
810
- const maxBreakpoint = breakpoints[breakpoints.length - 1];
811
- const minBreakpoint = breakpoints[0];
812
- const enableBackdrop = () => {
813
- baseEl.style.setProperty('pointer-events', 'auto');
814
- backdropEl.style.setProperty('pointer-events', 'auto');
815
- /**
816
- * When the backdrop is enabled, elements such
817
- * as inputs should not be focusable outside
818
- * the sheet.
819
- */
820
- baseEl.classList.remove(FOCUS_TRAP_DISABLE_CLASS);
821
- };
822
- const disableBackdrop = () => {
823
- baseEl.style.setProperty('pointer-events', 'none');
824
- backdropEl.style.setProperty('pointer-events', 'none');
825
- /**
826
- * When the backdrop is enabled, elements such
827
- * as inputs should not be focusable outside
828
- * the sheet.
829
- * Adding this class disables focus trapping
830
- * for the sheet temporarily.
831
- */
832
- baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
833
- };
834
- /**
835
- * After the entering animation completes,
836
- * we need to set the animation to go from
837
- * offset 0 to offset 1 so that users can
838
- * swipe in any direction. We then set the
839
- * animation offset to the current breakpoint
840
- * so there is no flickering.
841
- */
842
- if (wrapperAnimation && backdropAnimation) {
843
- wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
844
- backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
845
- animation.progressStart(true, 1 - currentBreakpoint);
846
- /**
847
- * If backdrop is not enabled, then content
848
- * behind modal should be clickable. To do this, we need
849
- * to remove pointer-events from ion-modal as a whole.
850
- * ion-backdrop and .modal-wrapper always have pointer-events: auto
851
- * applied, so the modal content can still be interacted with.
852
- */
853
- const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint;
854
- if (shouldEnableBackdrop) {
855
- enableBackdrop();
856
- }
857
- else {
858
- disableBackdrop();
859
- }
860
- }
861
- if (contentEl && currentBreakpoint !== maxBreakpoint) {
862
- contentEl.scrollY = false;
863
- }
864
- const canStart = (detail) => {
865
- /**
866
- * If we are swiping on the content, swiping should only be possible if the content
867
- * is scrolled all the way to the top so that we do not interfere with scrolling.
868
- *
869
- * We cannot assume that the `ion-content` target will remain consistent between swipes.
870
- * For example, when using ion-nav within a modal it is possible to swipe, push a view,
871
- * and then swipe again. The target content will not be the same between swipes.
872
- */
873
- const contentEl = findClosestIonContent(detail.event.target);
874
- currentBreakpoint = getCurrentBreakpoint();
875
- if (currentBreakpoint === 1 && contentEl) {
876
- /**
877
- * The modal should never swipe to close on the content with a refresher.
878
- * Note 1: We cannot solve this by making this gesture have a higher priority than
879
- * the refresher gesture as the iOS native refresh gesture uses a scroll listener in
880
- * addition to a gesture.
881
- *
882
- * Note 2: Do not use getScrollElement here because we need this to be a synchronous
883
- * operation, and getScrollElement is asynchronous.
884
- */
885
- const scrollEl = isIonContent(contentEl) ? getElementRoot(contentEl).querySelector('.inner-scroll') : contentEl;
886
- const hasRefresherInContent = !!contentEl.querySelector('ion-refresher');
887
- return !hasRefresherInContent && scrollEl.scrollTop === 0;
888
- }
889
- return true;
890
- };
891
- const onStart = (detail) => {
892
- /**
893
- * If canDismiss is anything other than `true`
894
- * then users should be able to swipe down
895
- * until a threshold is hit. At that point,
896
- * the card modal should not proceed any further.
897
- *
898
- * canDismiss is never fired via gesture if there is
899
- * no 0 breakpoint. However, it can be fired if the user
900
- * presses Esc or the hardware back button.
901
- * TODO (FW-937)
902
- * Remove undefined check
903
- */
904
- canDismissBlocksGesture = baseEl.canDismiss !== undefined && baseEl.canDismiss !== true && minBreakpoint === 0;
905
- /**
906
- * If we are pulling down, then it is possible we are pulling on the content.
907
- * We do not want scrolling to happen at the same time as the gesture.
908
- */
909
- if (detail.deltaY > 0 && contentEl) {
910
- contentEl.scrollY = false;
911
- }
912
- raf(() => {
913
- /**
914
- * Dismisses the open keyboard when the sheet drag gesture is started.
915
- * Sets the focus onto the modal element.
916
- */
917
- baseEl.focus();
918
- });
919
- animation.progressStart(true, 1 - currentBreakpoint);
920
- };
921
- const onMove = (detail) => {
922
- /**
923
- * If we are pulling down, then it is possible we are pulling on the content.
924
- * We do not want scrolling to happen at the same time as the gesture.
925
- * This accounts for when the user scrolls down, scrolls all the way up, and then
926
- * pulls down again such that the modal should start to move.
927
- */
928
- if (detail.deltaY > 0 && contentEl) {
929
- contentEl.scrollY = false;
930
- }
931
- /**
932
- * Given the change in gesture position on the Y axis,
933
- * compute where the offset of the animation should be
934
- * relative to where the user dragged.
935
- */
936
- const initialStep = 1 - currentBreakpoint;
937
- const secondToLastBreakpoint = breakpoints.length > 1 ? 1 - breakpoints[1] : undefined;
938
- const step = initialStep + detail.deltaY / height;
939
- const isAttemptingDismissWithCanDismiss = secondToLastBreakpoint !== undefined && step >= secondToLastBreakpoint && canDismissBlocksGesture;
940
- /**
941
- * If we are blocking the gesture from dismissing,
942
- * set the max step value so that the sheet cannot be
943
- * completely hidden.
944
- */
945
- const maxStep = isAttemptingDismissWithCanDismiss ? canDismissMaxStep : 0.9999;
946
- /**
947
- * If we are blocking the gesture from
948
- * dismissing, calculate the spring modifier value
949
- * this will be added to the starting breakpoint
950
- * value to give the gesture a spring-like feeling.
951
- * Note that when isAttemptingDismissWithCanDismiss is true,
952
- * the modifier is always added to the breakpoint that
953
- * appears right after the 0 breakpoint.
954
- *
955
- * Note that this modifier is essentially the progression
956
- * between secondToLastBreakpoint and maxStep which is
957
- * why we subtract secondToLastBreakpoint. This lets us get
958
- * the result as a value from 0 to 1.
959
- */
960
- const processedStep = isAttemptingDismissWithCanDismiss && secondToLastBreakpoint !== undefined
961
- ? secondToLastBreakpoint +
962
- calculateSpringStep((step - secondToLastBreakpoint) / (maxStep - secondToLastBreakpoint))
963
- : step;
964
- offset = clamp(0.0001, processedStep, maxStep);
965
- animation.progressStep(offset);
966
- };
967
- const onEnd = (detail) => {
968
- /**
969
- * When the gesture releases, we need to determine
970
- * the closest breakpoint to snap to.
971
- */
972
- const velocity = detail.velocityY;
973
- const threshold = (detail.deltaY + velocity * 350) / height;
974
- const diff = currentBreakpoint - threshold;
975
- const closest = breakpoints.reduce((a, b) => {
976
- return Math.abs(b - diff) < Math.abs(a - diff) ? b : a;
977
- });
978
- moveSheetToBreakpoint({
979
- breakpoint: closest,
980
- breakpointOffset: offset,
981
- canDismiss: canDismissBlocksGesture,
982
- /**
983
- * The swipe is user-driven, so we should
984
- * always animate when the gesture ends.
985
- */
986
- animated: true,
987
- });
988
- };
989
- const moveSheetToBreakpoint = (options) => {
990
- const { breakpoint, canDismiss, breakpointOffset, animated } = options;
991
- /**
992
- * canDismiss should only prevent snapping
993
- * when users are trying to dismiss. If canDismiss
994
- * is present but the user is trying to swipe upwards,
995
- * we should allow that to happen,
996
- */
997
- const shouldPreventDismiss = canDismiss && breakpoint === 0;
998
- const snapToBreakpoint = shouldPreventDismiss ? currentBreakpoint : breakpoint;
999
- const shouldRemainOpen = snapToBreakpoint !== 0;
1000
- currentBreakpoint = 0;
1001
- /**
1002
- * Update the animation so that it plays from
1003
- * the last offset to the closest snap point.
1004
- */
1005
- if (wrapperAnimation && backdropAnimation) {
1006
- wrapperAnimation.keyframes([
1007
- { offset: 0, transform: `translateY(${breakpointOffset * 100}%)` },
1008
- { offset: 1, transform: `translateY(${(1 - snapToBreakpoint) * 100}%)` },
1009
- ]);
1010
- backdropAnimation.keyframes([
1011
- {
1012
- offset: 0,
1013
- opacity: staticBackdropOpacity
1014
- ? 'var(--backdrop-opacity)'
1015
- : `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(1 - breakpointOffset, backdropBreakpoint)})`,
1016
- },
1017
- {
1018
- offset: 1,
1019
- opacity: staticBackdropOpacity
1020
- ? 'var(--backdrop-opacity)'
1021
- : `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
1022
- },
1023
- ]);
1024
- animation.progressStep(0);
1025
- }
1026
- /**
1027
- * Gesture should remain disabled until the
1028
- * snapping animation completes.
1029
- */
1030
- gesture.enable(false);
1031
- if (shouldPreventDismiss) {
1032
- handleCanDismiss(baseEl, animation);
1033
- }
1034
- else if (!shouldRemainOpen) {
1035
- onDismiss();
1036
- }
1037
- /**
1038
- * If the sheet is going to be fully expanded then we should enable
1039
- * scrolling immediately. The sheet modal animation takes ~500ms to finish
1040
- * so if we wait until then there is a visible delay for when scrolling is
1041
- * re-enabled. Native iOS allows for scrolling on the sheet modal as soon
1042
- * as the gesture is released, so we align with that.
1043
- */
1044
- if (contentEl && snapToBreakpoint === breakpoints[breakpoints.length - 1]) {
1045
- contentEl.scrollY = true;
1046
- }
1047
- return new Promise((resolve) => {
1048
- animation
1049
- .onFinish(() => {
1050
- if (shouldRemainOpen) {
1051
- /**
1052
- * Once the snapping animation completes,
1053
- * we need to reset the animation to go
1054
- * from 0 to 1 so users can swipe in any direction.
1055
- * We then set the animation offset to the current
1056
- * breakpoint so that it starts at the snapped position.
1057
- */
1058
- if (wrapperAnimation && backdropAnimation) {
1059
- raf(() => {
1060
- wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
1061
- backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
1062
- animation.progressStart(true, 1 - snapToBreakpoint);
1063
- currentBreakpoint = snapToBreakpoint;
1064
- onBreakpointChange(currentBreakpoint);
1065
- /**
1066
- * Backdrop should become enabled
1067
- * after the backdropBreakpoint value
1068
- */
1069
- const shouldEnableBackdrop = currentBreakpoint > backdropBreakpoint;
1070
- if (shouldEnableBackdrop) {
1071
- enableBackdrop();
1072
- }
1073
- else {
1074
- disableBackdrop();
1075
- }
1076
- gesture.enable(true);
1077
- resolve();
1078
- });
1079
- }
1080
- else {
1081
- gesture.enable(true);
1082
- resolve();
1083
- }
1084
- }
1085
- else {
1086
- resolve();
1087
- }
1088
- /**
1089
- * This must be a one time callback
1090
- * otherwise a new callback will
1091
- * be added every time onEnd runs.
1092
- */
1093
- }, { oneTimeCallback: true })
1094
- .progressEnd(1, 0, animated ? 500 : 0);
1095
- });
1096
- };
1097
- const gesture = createGesture({
1098
- el: wrapperEl,
1099
- gestureName: 'modalSheet',
1100
- gesturePriority: 40,
1101
- direction: 'y',
1102
- threshold: 10,
1103
- canStart,
1104
- onStart,
1105
- onMove,
1106
- onEnd,
1107
- });
1108
- return {
1109
- gesture,
1110
- moveSheetToBreakpoint,
1111
- };
1112
- };
1113
-
1114
- const modalIonicCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--background:var(--ion-primitives-base-white, #ffffff);--box-shadow:var(--ion-elevation-3, 0px 2px 7px 0px rgba(0, 0, 0, 0.05), 0px 6px 32px 0px rgba(0, 0, 0, 0.16));--backdrop-opacity:1;color:var(--ion-primitives-neutral-1200, #242424)}:host(.modal-round){--border-radius:var(--ion-border-radius-1000, 40px)}:host(.modal-soft){--border-radius:var(--ion-border-radius-400, 16px)}:host(.modal-rectangular){--border-radius:var(--ion-border-radius-0, 0px)}.modal-handle{right:0px;left:0px;top:var(--ion-space-300, 12px);border-radius:var(--ion-border-radius-100, 4px);width:var(--ion-scale-1100, 44px);height:var(--ion-scale-100, 4px);background-color:var(--ion-primitives-neutral-300, #cfcfcf)}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}";
1115
- const IonModalIonicStyle0 = modalIonicCss;
1116
-
1117
- const modalIosCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{width:36px;height:5px}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}";
1118
- const IonModalIosStyle0 = modalIosCss;
1119
-
1120
- const modalMdCss = ":host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-width:0;--border-style:none;--border-color:transparent;--box-shadow:none;right:0;left:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}.modal-handle{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:\"\"}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--background:var(--ion-background-color, #fff);--border-radius:0;--backdrop-opacity:0;color:var(--ion-text-color, #000)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{right:0px;left:0px;top:5px;border-radius:8px;width:36px;height:5px;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be))}.modal-handle::before{width:36px;height:5px}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}";
1121
- const IonModalMdStyle0 = modalMdCss;
1122
-
1123
- const Modal = /*@__PURE__*/ proxyCustomElement(class Modal extends HTMLElement {
1124
- constructor() {
1125
- super();
1126
- this.__registerHost();
1127
- this.__attachShadow();
1128
- this.didPresent = createEvent(this, "ionModalDidPresent", 7);
1129
- this.willPresent = createEvent(this, "ionModalWillPresent", 7);
1130
- this.willDismiss = createEvent(this, "ionModalWillDismiss", 7);
1131
- this.didDismiss = createEvent(this, "ionModalDidDismiss", 7);
1132
- this.ionBreakpointDidChange = createEvent(this, "ionBreakpointDidChange", 7);
1133
- this.didPresentShorthand = createEvent(this, "didPresent", 7);
1134
- this.willPresentShorthand = createEvent(this, "willPresent", 7);
1135
- this.willDismissShorthand = createEvent(this, "willDismiss", 7);
1136
- this.didDismissShorthand = createEvent(this, "didDismiss", 7);
1137
- this.ionMount = createEvent(this, "ionMount", 7);
1138
- this.lockController = createLockController();
1139
- this.triggerController = createTriggerController();
1140
- this.coreDelegate = CoreDelegate();
1141
- this.isSheetModal = false;
1142
- this.inheritedAttributes = {};
1143
- this.inline = false;
1144
- // Whether or not modal is being dismissed via gesture
1145
- this.gestureAnimationDismissing = false;
1146
- this.onHandleClick = () => {
1147
- const { sheetTransition, handleBehavior } = this;
1148
- if (handleBehavior !== 'cycle' || sheetTransition !== undefined) {
1149
- /**
1150
- * The sheet modal should not advance to the next breakpoint
1151
- * if the handle behavior is not `cycle` or if the handle
1152
- * is clicked while the sheet is moving to a breakpoint.
1153
- */
1154
- return;
1155
- }
1156
- this.moveToNextBreakpoint();
1157
- };
1158
- this.onBackdropTap = () => {
1159
- const { sheetTransition } = this;
1160
- if (sheetTransition !== undefined) {
1161
- /**
1162
- * When the handle is double clicked at the largest breakpoint,
1163
- * it will start to move to the first breakpoint. While transitioning,
1164
- * the backdrop will often receive the second click. We prevent the
1165
- * backdrop from dismissing the modal while moving between breakpoints.
1166
- */
1167
- return;
1168
- }
1169
- this.dismiss(undefined, BACKDROP);
1170
- };
1171
- this.onLifecycle = (modalEvent) => {
1172
- const el = this.usersElement;
1173
- const name = LIFECYCLE_MAP[modalEvent.type];
1174
- if (el && name) {
1175
- const ev = new CustomEvent(name, {
1176
- bubbles: false,
1177
- cancelable: false,
1178
- detail: modalEvent.detail,
1179
- });
1180
- el.dispatchEvent(ev);
1181
- }
1182
- };
1183
- this.presented = false;
1184
- this.hasController = false;
1185
- this.overlayIndex = undefined;
1186
- this.delegate = undefined;
1187
- this.keyboardClose = true;
1188
- this.enterAnimation = undefined;
1189
- this.leaveAnimation = undefined;
1190
- this.breakpoints = undefined;
1191
- this.initialBreakpoint = undefined;
1192
- this.backdropBreakpoint = 0;
1193
- this.handle = undefined;
1194
- this.handleBehavior = 'none';
1195
- this.component = undefined;
1196
- this.componentProps = undefined;
1197
- this.cssClass = undefined;
1198
- this.backdropDismiss = true;
1199
- this.showBackdrop = true;
1200
- this.animated = true;
1201
- this.presentingElement = undefined;
1202
- this.htmlAttributes = undefined;
1203
- this.isOpen = false;
1204
- this.trigger = undefined;
1205
- this.keepContentsMounted = false;
1206
- this.focusTrap = true;
1207
- this.canDismiss = true;
1208
- this.shape = undefined;
1209
- }
1210
- onIsOpenChange(newValue, oldValue) {
1211
- if (newValue === true && oldValue === false) {
1212
- this.present();
1213
- }
1214
- else if (newValue === false && oldValue === true) {
1215
- this.dismiss();
1216
- }
1217
- }
1218
- triggerChanged() {
1219
- const { trigger, el, triggerController } = this;
1220
- if (trigger) {
1221
- triggerController.addClickListener(el, trigger);
1222
- }
1223
- }
1224
- breakpointsChanged(breakpoints) {
1225
- if (breakpoints !== undefined) {
1226
- this.sortedBreakpoints = breakpoints.sort((a, b) => a - b);
1227
- }
1228
- }
1229
- connectedCallback() {
1230
- const { el } = this;
1231
- prepareOverlay(el);
1232
- this.triggerChanged();
1233
- }
1234
- disconnectedCallback() {
1235
- this.triggerController.removeClickListener();
1236
- }
1237
- componentWillLoad() {
1238
- var _a;
1239
- const { breakpoints, initialBreakpoint, el, htmlAttributes } = this;
1240
- const isSheetModal = (this.isSheetModal = breakpoints !== undefined && initialBreakpoint !== undefined);
1241
- const attributesToInherit = ['aria-label', 'role'];
1242
- this.inheritedAttributes = inheritAttributes(el, attributesToInherit);
1243
- /**
1244
- * When using a controller modal you can set attributes
1245
- * using the htmlAttributes property. Since the above attributes
1246
- * need to be inherited inside of the modal, we need to look
1247
- * and see if these attributes are being set via htmlAttributes.
1248
- *
1249
- * We could alternatively move this to componentDidLoad to simplify the work
1250
- * here, but we'd then need to make inheritedAttributes a State variable,
1251
- * thus causing another render to always happen after the first render.
1252
- */
1253
- if (htmlAttributes !== undefined) {
1254
- attributesToInherit.forEach((attribute) => {
1255
- const attributeValue = htmlAttributes[attribute];
1256
- if (attributeValue) {
1257
- /**
1258
- * If an attribute we need to inherit was
1259
- * set using htmlAttributes then add it to
1260
- * inheritedAttributes and remove it from htmlAttributes.
1261
- * This ensures the attribute is inherited and not
1262
- * set on the host.
1263
- *
1264
- * In this case, if an inherited attribute is set
1265
- * on the host element and using htmlAttributes then
1266
- * htmlAttributes wins, but that's not a pattern that we recommend.
1267
- * The only time you'd need htmlAttributes is when using modalController.
1268
- */
1269
- this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attribute]: htmlAttributes[attribute] });
1270
- delete htmlAttributes[attribute];
1271
- }
1272
- });
1273
- }
1274
- if (isSheetModal) {
1275
- this.currentBreakpoint = this.initialBreakpoint;
1276
- }
1277
- if (breakpoints !== undefined && initialBreakpoint !== undefined && !breakpoints.includes(initialBreakpoint)) {
1278
- printIonWarning('Your breakpoints array must include the initialBreakpoint value.');
1279
- }
1280
- if (!((_a = this.htmlAttributes) === null || _a === void 0 ? void 0 : _a.id)) {
1281
- setOverlayId(this.el);
1282
- }
1283
- }
1284
- componentDidLoad() {
1285
- /**
1286
- * If modal was rendered with isOpen="true"
1287
- * then we should open modal immediately.
1288
- */
1289
- if (this.isOpen === true) {
1290
- raf(() => this.present());
1291
- }
1292
- this.breakpointsChanged(this.breakpoints);
1293
- /**
1294
- * When binding values in frameworks such as Angular
1295
- * it is possible for the value to be set after the Web Component
1296
- * initializes but before the value watcher is set up in Stencil.
1297
- * As a result, the watcher callback may not be fired.
1298
- * We work around this by manually calling the watcher
1299
- * callback when the component has loaded and the watcher
1300
- * is configured.
1301
- */
1302
- this.triggerChanged();
1303
- }
1304
- /**
1305
- * Determines whether or not an overlay
1306
- * is being used inline or via a controller/JS
1307
- * and returns the correct delegate.
1308
- * By default, subsequent calls to getDelegate
1309
- * will use a cached version of the delegate.
1310
- * This is useful for calling dismiss after
1311
- * present so that the correct delegate is given.
1312
- */
1313
- getDelegate(force = false) {
1314
- if (this.workingDelegate && !force) {
1315
- return {
1316
- delegate: this.workingDelegate,
1317
- inline: this.inline,
1318
- };
1319
- }
1320
- /**
1321
- * If using overlay inline
1322
- * we potentially need to use the coreDelegate
1323
- * so that this works in vanilla JS apps.
1324
- * If a developer has presented this component
1325
- * via a controller, then we can assume
1326
- * the component is already in the
1327
- * correct place.
1328
- */
1329
- const parentEl = this.el.parentNode;
1330
- const inline = (this.inline = parentEl !== null && !this.hasController);
1331
- const delegate = (this.workingDelegate = inline ? this.delegate || this.coreDelegate : this.delegate);
1332
- return { inline, delegate };
1333
- }
1334
- /**
1335
- * Determines whether or not the
1336
- * modal is allowed to dismiss based
1337
- * on the state of the canDismiss prop.
1338
- */
1339
- async checkCanDismiss(data, role) {
1340
- const { canDismiss } = this;
1341
- if (typeof canDismiss === 'function') {
1342
- return canDismiss(data, role);
1343
- }
1344
- return canDismiss;
1345
- }
1346
- /**
1347
- * Present the modal overlay after it has been created.
1348
- */
1349
- async present() {
1350
- const unlock = await this.lockController.lock();
1351
- if (this.presented) {
1352
- unlock();
1353
- return;
1354
- }
1355
- const { presentingElement, el } = this;
1356
- /**
1357
- * If the modal is presented multiple times (inline modals), we
1358
- * need to reset the current breakpoint to the initial breakpoint.
1359
- */
1360
- this.currentBreakpoint = this.initialBreakpoint;
1361
- const { inline, delegate } = this.getDelegate(true);
1362
- /**
1363
- * Emit ionMount so JS Frameworks have an opportunity
1364
- * to add the child component to the DOM. The child
1365
- * component will be assigned to this.usersElement below.
1366
- */
1367
- this.ionMount.emit();
1368
- this.usersElement = await attachComponent(delegate, el, this.component, ['ion-page'], this.componentProps, inline);
1369
- /**
1370
- * When using the lazy loaded build of Stencil, we need to wait
1371
- * for every Stencil component instance to be ready before presenting
1372
- * otherwise there can be a flash of unstyled content. With the
1373
- * custom elements bundle we need to wait for the JS framework
1374
- * mount the inner contents of the overlay otherwise WebKit may
1375
- * get the transition incorrect.
1376
- */
1377
- if (hasLazyBuild(el)) {
1378
- await deepReady(this.usersElement);
1379
- /**
1380
- * If keepContentsMounted="true" then the
1381
- * JS Framework has already mounted the inner
1382
- * contents so there is no need to wait.
1383
- * Otherwise, we need to wait for the JS
1384
- * Framework to mount the inner contents
1385
- * of this component.
1386
- */
1387
- }
1388
- else if (!this.keepContentsMounted) {
1389
- await waitForMount();
1390
- }
1391
- writeTask(() => this.el.classList.add('show-modal'));
1392
- const hasCardModal = presentingElement !== undefined;
1393
- /**
1394
- * We need to change the status bar at the
1395
- * start of the animation so that it completes
1396
- * by the time the card animation is done.
1397
- */
1398
- if (hasCardModal && getIonMode(this) === 'ios') {
1399
- // Cache the original status bar color before the modal is presented
1400
- this.statusBarStyle = await StatusBar.getStyle();
1401
- setCardStatusBarDark();
1402
- }
1403
- await present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, {
1404
- presentingEl: presentingElement,
1405
- currentBreakpoint: this.initialBreakpoint,
1406
- backdropBreakpoint: this.backdropBreakpoint,
1407
- staticBackdropOpacity: getIonTheme(this) === 'ionic',
1408
- });
1409
- /* tslint:disable-next-line */
1410
- if (typeof window !== 'undefined') {
1411
- /**
1412
- * This needs to be setup before any
1413
- * non-transition async work so it can be dereferenced
1414
- * in the dismiss method. The dismiss method
1415
- * only waits for the entering transition
1416
- * to finish. It does not wait for all of the `present`
1417
- * method to resolve.
1418
- */
1419
- this.keyboardOpenCallback = () => {
1420
- if (this.gesture) {
1421
- /**
1422
- * When the native keyboard is opened and the webview
1423
- * is resized, the gesture implementation will become unresponsive
1424
- * and enter a free-scroll mode.
1425
- *
1426
- * When the keyboard is opened, we disable the gesture for
1427
- * a single frame and re-enable once the contents have repositioned
1428
- * from the keyboard placement.
1429
- */
1430
- this.gesture.enable(false);
1431
- raf(() => {
1432
- if (this.gesture) {
1433
- this.gesture.enable(true);
1434
- }
1435
- });
1436
- }
1437
- };
1438
- window.addEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
1439
- }
1440
- if (this.isSheetModal) {
1441
- this.initSheetGesture();
1442
- }
1443
- else if (hasCardModal) {
1444
- this.initSwipeToClose();
1445
- }
1446
- unlock();
1447
- }
1448
- initSwipeToClose() {
1449
- var _a;
1450
- if (getIonMode(this) !== 'ios') {
1451
- return;
1452
- }
1453
- const { el } = this;
1454
- // All of the elements needed for the swipe gesture
1455
- // should be in the DOM and referenced by now, except
1456
- // for the presenting el
1457
- const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation);
1458
- const ani = (this.animation = animationBuilder(el, { presentingEl: this.presentingElement }));
1459
- const contentEl = findIonContent(el);
1460
- if (!contentEl) {
1461
- printIonContentErrorMsg(el);
1462
- return;
1463
- }
1464
- const statusBarStyle = (_a = this.statusBarStyle) !== null && _a !== void 0 ? _a : Style.Default;
1465
- this.gesture = createSwipeToCloseGesture(el, ani, statusBarStyle, () => {
1466
- /**
1467
- * While the gesture animation is finishing
1468
- * it is possible for a user to tap the backdrop.
1469
- * This would result in the dismiss animation
1470
- * being played again. Typically this is avoided
1471
- * by setting `presented = false` on the overlay
1472
- * component; however, we cannot do that here as
1473
- * that would prevent the element from being
1474
- * removed from the DOM.
1475
- */
1476
- this.gestureAnimationDismissing = true;
1477
- /**
1478
- * Reset the status bar style as the dismiss animation
1479
- * starts otherwise the status bar will be the wrong
1480
- * color for the duration of the dismiss animation.
1481
- * The dismiss method does this as well, but
1482
- * in this case it's only called once the animation
1483
- * has finished.
1484
- */
1485
- setCardStatusBarDefault(this.statusBarStyle);
1486
- this.animation.onFinish(async () => {
1487
- await this.dismiss(undefined, GESTURE);
1488
- this.gestureAnimationDismissing = false;
1489
- });
1490
- });
1491
- this.gesture.enable(true);
1492
- }
1493
- initSheetGesture() {
1494
- const { wrapperEl, initialBreakpoint, backdropBreakpoint } = this;
1495
- if (!wrapperEl || initialBreakpoint === undefined) {
1496
- return;
1497
- }
1498
- const animationBuilder = this.enterAnimation || config.get('modalEnter', iosEnterAnimation);
1499
- const ani = (this.animation = animationBuilder(this.el, {
1500
- presentingEl: this.presentingElement,
1501
- currentBreakpoint: initialBreakpoint,
1502
- backdropBreakpoint,
1503
- staticBackdropOpacity: getIonTheme(this) === 'ionic',
1504
- }));
1505
- ani.progressStart(true, 1);
1506
- const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
1507
- if (this.currentBreakpoint !== breakpoint) {
1508
- this.currentBreakpoint = breakpoint;
1509
- this.ionBreakpointDidChange.emit({ breakpoint });
1510
- }
1511
- }, getIonTheme(this) === 'ionic');
1512
- this.gesture = gesture;
1513
- this.moveSheetToBreakpoint = moveSheetToBreakpoint;
1514
- this.gesture.enable(true);
1515
- }
1516
- sheetOnDismiss() {
1517
- /**
1518
- * While the gesture animation is finishing
1519
- * it is possible for a user to tap the backdrop.
1520
- * This would result in the dismiss animation
1521
- * being played again. Typically this is avoided
1522
- * by setting `presented = false` on the overlay
1523
- * component; however, we cannot do that here as
1524
- * that would prevent the element from being
1525
- * removed from the DOM.
1526
- */
1527
- this.gestureAnimationDismissing = true;
1528
- this.animation.onFinish(async () => {
1529
- this.currentBreakpoint = 0;
1530
- this.ionBreakpointDidChange.emit({ breakpoint: this.currentBreakpoint });
1531
- await this.dismiss(undefined, GESTURE);
1532
- this.gestureAnimationDismissing = false;
1533
- });
1534
- }
1535
- /**
1536
- * Dismiss the modal overlay after it has been presented.
1537
- *
1538
- * @param data Any data to emit in the dismiss events.
1539
- * @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
1540
- *
1541
- * This is a no-op if the overlay has not been presented yet. If you want
1542
- * to remove an overlay from the DOM that was never presented, use the
1543
- * [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
1544
- */
1545
- async dismiss(data, role) {
1546
- var _a;
1547
- if (this.gestureAnimationDismissing && role !== GESTURE) {
1548
- return false;
1549
- }
1550
- /**
1551
- * Because the canDismiss check below is async,
1552
- * we need to claim a lock before the check happens,
1553
- * in case the dismiss transition does run.
1554
- */
1555
- const unlock = await this.lockController.lock();
1556
- /**
1557
- * If a canDismiss handler is responsible
1558
- * for calling the dismiss method, we should
1559
- * not run the canDismiss check again.
1560
- */
1561
- if (role !== 'handler' && !(await this.checkCanDismiss(data, role))) {
1562
- unlock();
1563
- return false;
1564
- }
1565
- const { presentingElement } = this;
1566
- /**
1567
- * We need to start the status bar change
1568
- * before the animation so that the change
1569
- * finishes when the dismiss animation does.
1570
- */
1571
- const hasCardModal = presentingElement !== undefined;
1572
- if (hasCardModal && getIonMode(this) === 'ios') {
1573
- setCardStatusBarDefault(this.statusBarStyle);
1574
- }
1575
- /* tslint:disable-next-line */
1576
- if (typeof window !== 'undefined' && this.keyboardOpenCallback) {
1577
- window.removeEventListener(KEYBOARD_DID_OPEN, this.keyboardOpenCallback);
1578
- this.keyboardOpenCallback = undefined;
1579
- }
1580
- const dismissed = await dismiss(this, data, role, 'modalLeave', iosLeaveAnimation, mdLeaveAnimation, {
1581
- presentingEl: presentingElement,
1582
- currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
1583
- backdropBreakpoint: this.backdropBreakpoint,
1584
- });
1585
- if (dismissed) {
1586
- const { delegate } = this.getDelegate();
1587
- await detachComponent(delegate, this.usersElement);
1588
- writeTask(() => this.el.classList.remove('show-modal'));
1589
- if (this.animation) {
1590
- this.animation.destroy();
1591
- }
1592
- if (this.gesture) {
1593
- this.gesture.destroy();
1594
- }
1595
- }
1596
- this.currentBreakpoint = undefined;
1597
- this.animation = undefined;
1598
- unlock();
1599
- return dismissed;
1600
- }
1601
- /**
1602
- * Returns a promise that resolves when the modal did dismiss.
1603
- */
1604
- onDidDismiss() {
1605
- return eventMethod(this.el, 'ionModalDidDismiss');
1606
- }
1607
- /**
1608
- * Returns a promise that resolves when the modal will dismiss.
1609
- */
1610
- onWillDismiss() {
1611
- return eventMethod(this.el, 'ionModalWillDismiss');
1612
- }
1613
- /**
1614
- * Move a sheet style modal to a specific breakpoint. The breakpoint value must
1615
- * be a value defined in your `breakpoints` array.
1616
- */
1617
- async setCurrentBreakpoint(breakpoint) {
1618
- if (!this.isSheetModal) {
1619
- printIonWarning('setCurrentBreakpoint is only supported on sheet modals.');
1620
- return;
1621
- }
1622
- if (!this.breakpoints.includes(breakpoint)) {
1623
- printIonWarning(`Attempted to set invalid breakpoint value ${breakpoint}. Please double check that the breakpoint value is part of your defined breakpoints.`);
1624
- return;
1625
- }
1626
- const { currentBreakpoint, moveSheetToBreakpoint, canDismiss, breakpoints, animated } = this;
1627
- if (currentBreakpoint === breakpoint) {
1628
- return;
1629
- }
1630
- if (moveSheetToBreakpoint) {
1631
- this.sheetTransition = moveSheetToBreakpoint({
1632
- breakpoint,
1633
- breakpointOffset: 1 - currentBreakpoint,
1634
- canDismiss: canDismiss !== undefined && canDismiss !== true && breakpoints[0] === 0,
1635
- animated,
1636
- });
1637
- await this.sheetTransition;
1638
- this.sheetTransition = undefined;
1639
- }
1640
- }
1641
- /**
1642
- * Returns the current breakpoint of a sheet style modal
1643
- */
1644
- async getCurrentBreakpoint() {
1645
- return this.currentBreakpoint;
1646
- }
1647
- async moveToNextBreakpoint() {
1648
- const { breakpoints, currentBreakpoint } = this;
1649
- if (!breakpoints || currentBreakpoint == null) {
1650
- /**
1651
- * If the modal does not have breakpoints and/or the current
1652
- * breakpoint is not set, we can't move to the next breakpoint.
1653
- */
1654
- return false;
1655
- }
1656
- const allowedBreakpoints = breakpoints.filter((b) => b !== 0);
1657
- const currentBreakpointIndex = allowedBreakpoints.indexOf(currentBreakpoint);
1658
- const nextBreakpointIndex = (currentBreakpointIndex + 1) % allowedBreakpoints.length;
1659
- const nextBreakpoint = allowedBreakpoints[nextBreakpointIndex];
1660
- /**
1661
- * Sets the current breakpoint to the next available breakpoint.
1662
- * If the current breakpoint is the last breakpoint, we set the current
1663
- * breakpoint to the first non-zero breakpoint to avoid dismissing the sheet.
1664
- */
1665
- await this.setCurrentBreakpoint(nextBreakpoint);
1666
- return true;
1667
- }
1668
- getShape() {
1669
- const theme = getIonTheme(this);
1670
- const { shape } = this;
1671
- // TODO(ROU-11167): Remove theme check when shapes are defined for all themes.
1672
- if (theme !== 'ionic') {
1673
- return undefined;
1674
- }
1675
- if (shape === undefined) {
1676
- return 'round';
1677
- }
1678
- return shape;
1679
- }
1680
- render() {
1681
- const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap } = this;
1682
- const showHandle = handle !== false && isSheetModal;
1683
- const theme = getIonTheme(this);
1684
- const isCardModal = presentingElement !== undefined && theme === 'ios';
1685
- const isHandleCycle = handleBehavior === 'cycle';
1686
- const shape = this.getShape();
1687
- return (h(Host, Object.assign({ key: '2f586d7ae1cef7fc175b655facc4f0fe268e0de7', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
1688
- zIndex: `${20000 + this.overlayIndex}`,
1689
- }, class: Object.assign({ [theme]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-${shape}`]: shape !== undefined, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '0477799d7959a2345d67d6e809ba8a703b49417c', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), theme === 'ios' && h("div", { key: 'ecbac5679c64f04c24adab48113ff4cbd0e98c73', class: "modal-shadow" }), h("div", Object.assign({ key: 'd9c4f9db5c684fc64fc9f4d4f08fdbfdbcf50bd0',
1690
- /*
1691
- role and aria-modal must be used on the
1692
- same element. They must also be set inside the
1693
- shadow DOM otherwise ion-button will not be highlighted
1694
- when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
1695
- */
1696
- role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '94f4bb2462b0c59db5b0882bef28d90c9f4989c3', class: "modal-handle",
1697
- // Prevents the handle from receiving keyboard focus when it does not cycle
1698
- tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '45437ed490733f80feab0c93003ad882b0b7c757' }))));
1699
- }
1700
- get el() { return this; }
1701
- static get watchers() { return {
1702
- "isOpen": ["onIsOpenChange"],
1703
- "trigger": ["triggerChanged"]
1704
- }; }
1705
- static get style() { return {
1706
- ionic: IonModalIonicStyle0,
1707
- ios: IonModalIosStyle0,
1708
- md: IonModalMdStyle0
1709
- }; }
1710
- }, [33, "ion-modal", {
1711
- "hasController": [4, "has-controller"],
1712
- "overlayIndex": [2, "overlay-index"],
1713
- "delegate": [16],
1714
- "keyboardClose": [4, "keyboard-close"],
1715
- "enterAnimation": [16],
1716
- "leaveAnimation": [16],
1717
- "breakpoints": [16],
1718
- "initialBreakpoint": [2, "initial-breakpoint"],
1719
- "backdropBreakpoint": [2, "backdrop-breakpoint"],
1720
- "handle": [4],
1721
- "handleBehavior": [1, "handle-behavior"],
1722
- "component": [1],
1723
- "componentProps": [16],
1724
- "cssClass": [1, "css-class"],
1725
- "backdropDismiss": [4, "backdrop-dismiss"],
1726
- "showBackdrop": [4, "show-backdrop"],
1727
- "animated": [4],
1728
- "presentingElement": [16],
1729
- "htmlAttributes": [16],
1730
- "isOpen": [4, "is-open"],
1731
- "trigger": [1],
1732
- "keepContentsMounted": [4, "keep-contents-mounted"],
1733
- "focusTrap": [4, "focus-trap"],
1734
- "canDismiss": [4, "can-dismiss"],
1735
- "shape": [1],
1736
- "presented": [32],
1737
- "present": [64],
1738
- "dismiss": [64],
1739
- "onDidDismiss": [64],
1740
- "onWillDismiss": [64],
1741
- "setCurrentBreakpoint": [64],
1742
- "getCurrentBreakpoint": [64]
1743
- }, undefined, {
1744
- "isOpen": ["onIsOpenChange"],
1745
- "trigger": ["triggerChanged"]
1746
- }]);
1747
- const LIFECYCLE_MAP = {
1748
- ionModalDidPresent: 'ionViewDidEnter',
1749
- ionModalWillPresent: 'ionViewWillEnter',
1750
- ionModalWillDismiss: 'ionViewWillLeave',
1751
- ionModalDidDismiss: 'ionViewDidLeave',
1752
- };
1753
- function defineCustomElement$1() {
1754
- if (typeof customElements === "undefined") {
1755
- return;
1756
- }
1757
- const components = ["ion-modal", "ion-backdrop"];
1758
- components.forEach(tagName => { switch (tagName) {
1759
- case "ion-modal":
1760
- if (!customElements.get(tagName)) {
1761
- customElements.define(tagName, Modal);
1762
- }
1763
- break;
1764
- case "ion-backdrop":
1765
- if (!customElements.get(tagName)) {
1766
- defineCustomElement$2();
1767
- }
1768
- break;
1769
- } });
1770
- }
4
+ import { M as Modal, d as defineCustomElement$1 } from './modal.js';
1771
5
 
1772
6
  const IonModal = Modal;
1773
7
  const defineCustomElement = defineCustomElement$1;