voyager-ionic-core 8.3.3 → 8.4.0

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 (520) hide show
  1. package/components/action-sheet.js +2 -2
  2. package/components/alert.js +7 -5
  3. package/components/backdrop.js +1 -1
  4. package/components/button.js +2 -2
  5. package/components/buttons.js +2 -2
  6. package/components/checkbox.js +7 -5
  7. package/components/content.js +446 -0
  8. package/components/header.js +356 -0
  9. package/components/index4.js +2 -2
  10. package/components/ion-app.js +1 -1
  11. package/components/ion-avatar.js +1 -1
  12. package/components/ion-back-button.js +2 -2
  13. package/components/ion-badge.js +2 -2
  14. package/components/ion-breadcrumb.js +4 -4
  15. package/components/ion-breadcrumbs.js +2 -2
  16. package/components/ion-card-content.js +1 -1
  17. package/components/ion-card-header.js +2 -2
  18. package/components/ion-card-subtitle.js +2 -2
  19. package/components/ion-card-title.js +2 -2
  20. package/components/ion-card.js +1 -1
  21. package/components/ion-chip.js +2 -2
  22. package/components/ion-col.js +2 -2
  23. package/components/ion-content.js +1 -441
  24. package/components/ion-datetime-button.js +2 -2
  25. package/components/ion-datetime.js +2 -2
  26. package/components/ion-fab-button.js +2 -2
  27. package/components/ion-fab-list.js +2 -2
  28. package/components/ion-fab.js +2 -2
  29. package/components/ion-footer.js +2 -2
  30. package/components/ion-grid.js +2 -2
  31. package/components/ion-header.js +1 -351
  32. package/components/ion-img.js +1 -1
  33. package/components/ion-infinite-scroll-content.js +2 -2
  34. package/components/ion-infinite-scroll.js +1 -1
  35. package/components/ion-input-password-toggle.js +3 -3
  36. package/components/ion-input.js +20 -5
  37. package/components/ion-item-divider.js +2 -2
  38. package/components/ion-item-group.js +1 -1
  39. package/components/ion-item-option.js +2 -2
  40. package/components/ion-item-options.js +1 -1
  41. package/components/ion-item-sliding.js +1 -1
  42. package/components/ion-loading.js +2 -2
  43. package/components/ion-menu-button.js +2 -2
  44. package/components/ion-menu-toggle.js +2 -2
  45. package/components/ion-menu.js +19 -19
  46. package/components/ion-modal.js +1 -1737
  47. package/components/ion-nav-link.js +1 -1
  48. package/components/ion-nav.js +1 -1
  49. package/components/ion-note.js +2 -2
  50. package/components/ion-picker-legacy.js +2 -2
  51. package/components/ion-progress-bar.js +1 -1
  52. package/components/ion-range.js +3 -3
  53. package/components/ion-refresher-content.js +1 -1
  54. package/components/ion-refresher.js +1 -1
  55. package/components/ion-reorder-group.js +1 -1
  56. package/components/ion-reorder.js +1 -1
  57. package/components/ion-router-link.js +2 -2
  58. package/components/ion-router-outlet.js +1 -1
  59. package/components/ion-row.js +1 -1
  60. package/components/ion-searchbar.js +4 -4
  61. package/components/ion-segment-button.js +24 -5
  62. package/components/ion-segment-content.d.ts +11 -0
  63. package/components/ion-segment-content.js +37 -0
  64. package/components/ion-segment-view.d.ts +11 -0
  65. package/components/ion-segment-view.js +140 -0
  66. package/components/ion-segment.js +110 -15
  67. package/components/ion-select-modal.d.ts +11 -0
  68. package/components/ion-select-modal.js +9 -0
  69. package/components/ion-select-option.js +1 -1
  70. package/components/ion-select.js +114 -41
  71. package/components/ion-skeleton-text.js +2 -2
  72. package/components/ion-split-pane.js +2 -2
  73. package/components/ion-tab-bar.js +2 -2
  74. package/components/ion-tab-button.js +2 -2
  75. package/components/ion-tab.js +2 -2
  76. package/components/ion-tabs.js +1 -1
  77. package/components/ion-text.js +2 -2
  78. package/components/ion-textarea.js +19 -4
  79. package/components/ion-thumbnail.js +1 -1
  80. package/components/ion-title.js +1 -70
  81. package/components/ion-toast.js +2 -2
  82. package/components/ion-toggle.js +3 -3
  83. package/components/ion-toolbar.js +1 -88
  84. package/components/label.js +2 -2
  85. package/components/list-header.js +2 -2
  86. package/components/list.js +1 -1
  87. package/components/modal.js +1742 -0
  88. package/components/overlays.js +62 -7
  89. package/components/picker-column-option.js +2 -2
  90. package/components/picker-column.js +3 -3
  91. package/components/picker-column2.js +2 -2
  92. package/components/picker.js +2 -2
  93. package/components/popover.js +2 -2
  94. package/components/radio-group.js +5 -3
  95. package/components/radio.js +7 -5
  96. package/components/ripple-effect.js +1 -1
  97. package/components/select-modal.js +197 -0
  98. package/components/select-popover.js +1 -1
  99. package/components/spinner.js +1 -1
  100. package/components/title.js +75 -0
  101. package/components/toolbar.js +93 -0
  102. package/dist/cjs/{index-9cd00dc3.js → index-8e789962.js} +2 -2
  103. package/dist/cjs/index.cjs.js +2 -2
  104. package/dist/cjs/ion-action-sheet.cjs.entry.js +3 -3
  105. package/dist/cjs/ion-alert.cjs.entry.js +8 -6
  106. package/dist/cjs/ion-app_8.cjs.entry.js +15 -15
  107. package/dist/cjs/ion-avatar_3.cjs.entry.js +4 -4
  108. package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
  109. package/dist/cjs/ion-backdrop.cjs.entry.js +1 -1
  110. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +6 -6
  111. package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
  112. package/dist/cjs/ion-card_5.cjs.entry.js +8 -8
  113. package/dist/cjs/ion-checkbox.cjs.entry.js +5 -4
  114. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  115. package/dist/cjs/ion-col_3.cjs.entry.js +5 -5
  116. package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
  117. package/dist/cjs/ion-datetime_3.cjs.entry.js +7 -7
  118. package/dist/cjs/ion-fab_3.cjs.entry.js +6 -6
  119. package/dist/cjs/ion-img.cjs.entry.js +1 -1
  120. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
  121. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +3 -3
  122. package/dist/cjs/ion-input.cjs.entry.js +20 -5
  123. package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
  124. package/dist/cjs/ion-item_8.cjs.entry.js +12 -12
  125. package/dist/cjs/ion-loading.cjs.entry.js +3 -3
  126. package/dist/cjs/ion-menu_3.cjs.entry.js +24 -24
  127. package/dist/cjs/ion-modal.cjs.entry.js +5 -5
  128. package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
  129. package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
  130. package/dist/cjs/ion-picker-column.cjs.entry.js +3 -3
  131. package/dist/cjs/ion-picker.cjs.entry.js +2 -2
  132. package/dist/cjs/ion-popover.cjs.entry.js +3 -3
  133. package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
  134. package/dist/cjs/ion-radio_2.cjs.entry.js +12 -8
  135. package/dist/cjs/ion-range.cjs.entry.js +3 -3
  136. package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
  137. package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
  138. package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
  139. package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
  140. package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
  141. package/dist/cjs/ion-segment-content.cjs.entry.js +23 -0
  142. package/dist/cjs/ion-segment-view.cjs.entry.js +122 -0
  143. package/dist/cjs/ion-segment_2.cjs.entry.js +132 -19
  144. package/dist/cjs/ion-select-modal.cjs.entry.js +111 -0
  145. package/dist/cjs/ion-select_3.cjs.entry.js +40 -15
  146. package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
  147. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  148. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
  149. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  150. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  151. package/dist/cjs/ion-textarea.cjs.entry.js +19 -4
  152. package/dist/cjs/ion-toast.cjs.entry.js +3 -3
  153. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  154. package/dist/cjs/ionic.cjs.js +1 -1
  155. package/dist/cjs/loader.cjs.js +1 -1
  156. package/dist/cjs/{overlays-0123d7d4.js → overlays-ba0f6986.js} +62 -7
  157. package/dist/collection/collection-manifest.json +3 -0
  158. package/dist/collection/components/action-sheet/action-sheet.js +2 -2
  159. package/dist/collection/components/alert/alert.js +7 -5
  160. package/dist/collection/components/app/app.js +1 -1
  161. package/dist/collection/components/avatar/avatar.js +1 -1
  162. package/dist/collection/components/back-button/back-button.js +2 -2
  163. package/dist/collection/components/backdrop/backdrop.js +1 -1
  164. package/dist/collection/components/badge/badge.js +2 -2
  165. package/dist/collection/components/breadcrumb/breadcrumb.js +4 -4
  166. package/dist/collection/components/breadcrumbs/breadcrumbs.js +2 -2
  167. package/dist/collection/components/button/button.js +2 -2
  168. package/dist/collection/components/buttons/buttons.js +2 -2
  169. package/dist/collection/components/card/card.js +1 -1
  170. package/dist/collection/components/card-content/card-content.js +1 -1
  171. package/dist/collection/components/card-header/card-header.js +2 -2
  172. package/dist/collection/components/card-subtitle/card-subtitle.js +2 -2
  173. package/dist/collection/components/card-title/card-title.js +2 -2
  174. package/dist/collection/components/checkbox/checkbox.js +29 -4
  175. package/dist/collection/components/chip/chip.js +2 -2
  176. package/dist/collection/components/col/col.js +2 -2
  177. package/dist/collection/components/content/content.js +3 -3
  178. package/dist/collection/components/datetime/datetime.js +2 -2
  179. package/dist/collection/components/datetime-button/datetime-button.js +2 -2
  180. package/dist/collection/components/fab/fab.js +2 -2
  181. package/dist/collection/components/fab-button/fab-button.js +2 -2
  182. package/dist/collection/components/fab-list/fab-list.js +2 -2
  183. package/dist/collection/components/footer/footer.js +2 -2
  184. package/dist/collection/components/grid/grid.js +2 -2
  185. package/dist/collection/components/header/header.js +2 -2
  186. package/dist/collection/components/img/img.js +1 -1
  187. package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
  188. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
  189. package/dist/collection/components/input/input.js +20 -5
  190. package/dist/collection/components/input-password-toggle/input-password-toggle.js +3 -3
  191. package/dist/collection/components/item-divider/item-divider.js +2 -2
  192. package/dist/collection/components/item-group/item-group.js +1 -1
  193. package/dist/collection/components/item-option/item-option.js +2 -2
  194. package/dist/collection/components/item-options/item-options.js +1 -1
  195. package/dist/collection/components/item-sliding/item-sliding.js +1 -1
  196. package/dist/collection/components/label/label.js +2 -2
  197. package/dist/collection/components/list/list.js +1 -1
  198. package/dist/collection/components/list-header/list-header.js +2 -2
  199. package/dist/collection/components/loading/loading.js +2 -2
  200. package/dist/collection/components/menu/menu.js +47 -27
  201. package/dist/collection/components/menu-button/menu-button.js +2 -2
  202. package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
  203. package/dist/collection/components/modal/modal.js +4 -4
  204. package/dist/collection/components/nav/nav.js +1 -1
  205. package/dist/collection/components/nav-link/nav-link.js +1 -1
  206. package/dist/collection/components/note/note.js +2 -2
  207. package/dist/collection/components/picker/picker.js +2 -2
  208. package/dist/collection/components/picker-column/picker-column.js +3 -3
  209. package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
  210. package/dist/collection/components/picker-legacy/picker.js +2 -2
  211. package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
  212. package/dist/collection/components/popover/popover.js +2 -2
  213. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  214. package/dist/collection/components/radio/radio.js +9 -7
  215. package/dist/collection/components/radio-group/radio-group.js +5 -3
  216. package/dist/collection/components/range/range.js +3 -3
  217. package/dist/collection/components/refresher/refresher.js +1 -1
  218. package/dist/collection/components/refresher-content/refresher-content.js +1 -1
  219. package/dist/collection/components/reorder/reorder.js +1 -1
  220. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  221. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  222. package/dist/collection/components/router-link/router-link.js +2 -2
  223. package/dist/collection/components/router-outlet/router-outlet.js +1 -1
  224. package/dist/collection/components/row/row.js +1 -1
  225. package/dist/collection/components/searchbar/searchbar.js +4 -4
  226. package/dist/collection/components/segment/segment.js +115 -14
  227. package/dist/collection/components/segment-button/segment-button.js +40 -5
  228. package/dist/collection/components/segment-content/segment-content.css +6 -0
  229. package/dist/collection/components/segment-content/segment-content.js +21 -0
  230. package/dist/collection/components/segment-view/segment-view-interface.js +1 -0
  231. package/dist/collection/components/segment-view/segment-view.ios.css +83 -0
  232. package/dist/collection/components/segment-view/segment-view.js +227 -0
  233. package/dist/collection/components/segment-view/segment-view.md.css +83 -0
  234. package/dist/collection/components/select/select.js +61 -16
  235. package/dist/collection/components/select-modal/select-modal-interface.js +1 -0
  236. package/dist/collection/components/select-modal/select-modal.ios.css +3 -0
  237. package/dist/collection/components/select-modal/select-modal.js +159 -0
  238. package/dist/collection/components/select-modal/select-modal.md.css +110 -0
  239. package/dist/collection/components/select-modal/test/fixtures.js +48 -0
  240. package/dist/collection/components/select-option/select-option.js +1 -1
  241. package/dist/collection/components/select-popover/select-popover.js +1 -1
  242. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  243. package/dist/collection/components/spinner/spinner.js +1 -1
  244. package/dist/collection/components/split-pane/split-pane.js +2 -2
  245. package/dist/collection/components/tab/tab.js +2 -2
  246. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  247. package/dist/collection/components/tab-button/tab-button.js +2 -2
  248. package/dist/collection/components/tabs/tabs.js +1 -1
  249. package/dist/collection/components/text/text.js +2 -2
  250. package/dist/collection/components/textarea/textarea.js +19 -4
  251. package/dist/collection/components/thumbnail/thumbnail.js +1 -1
  252. package/dist/collection/components/title/title.js +2 -2
  253. package/dist/collection/components/toast/toast.js +2 -2
  254. package/dist/collection/components/toggle/toggle.js +3 -3
  255. package/dist/collection/components/toolbar/toolbar.js +2 -2
  256. package/dist/collection/utils/menu-controller/index.js +2 -2
  257. package/dist/collection/utils/overlays.js +62 -7
  258. package/dist/docs.json +426 -29
  259. package/dist/esm/{index-fe1782b1.js → index-24b48b06.js} +2 -2
  260. package/dist/esm/index.js +2 -2
  261. package/dist/esm/ion-action-sheet.entry.js +3 -3
  262. package/dist/esm/ion-alert.entry.js +8 -6
  263. package/dist/esm/ion-app_8.entry.js +15 -15
  264. package/dist/esm/ion-avatar_3.entry.js +4 -4
  265. package/dist/esm/ion-back-button.entry.js +2 -2
  266. package/dist/esm/ion-backdrop.entry.js +1 -1
  267. package/dist/esm/ion-breadcrumb_2.entry.js +6 -6
  268. package/dist/esm/ion-button_2.entry.js +2 -2
  269. package/dist/esm/ion-card_5.entry.js +8 -8
  270. package/dist/esm/ion-checkbox.entry.js +5 -4
  271. package/dist/esm/ion-chip.entry.js +2 -2
  272. package/dist/esm/ion-col_3.entry.js +5 -5
  273. package/dist/esm/ion-datetime-button.entry.js +2 -2
  274. package/dist/esm/ion-datetime_3.entry.js +7 -7
  275. package/dist/esm/ion-fab_3.entry.js +6 -6
  276. package/dist/esm/ion-img.entry.js +1 -1
  277. package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
  278. package/dist/esm/ion-input-password-toggle.entry.js +3 -3
  279. package/dist/esm/ion-input.entry.js +20 -5
  280. package/dist/esm/ion-item-option_3.entry.js +4 -4
  281. package/dist/esm/ion-item_8.entry.js +12 -12
  282. package/dist/esm/ion-loading.entry.js +3 -3
  283. package/dist/esm/ion-menu_3.entry.js +24 -24
  284. package/dist/esm/ion-modal.entry.js +5 -5
  285. package/dist/esm/ion-nav_2.entry.js +2 -2
  286. package/dist/esm/ion-picker-column-option.entry.js +2 -2
  287. package/dist/esm/ion-picker-column.entry.js +3 -3
  288. package/dist/esm/ion-picker.entry.js +2 -2
  289. package/dist/esm/ion-popover.entry.js +3 -3
  290. package/dist/esm/ion-progress-bar.entry.js +1 -1
  291. package/dist/esm/ion-radio_2.entry.js +12 -8
  292. package/dist/esm/ion-range.entry.js +3 -3
  293. package/dist/esm/ion-refresher_2.entry.js +2 -2
  294. package/dist/esm/ion-reorder_2.entry.js +2 -2
  295. package/dist/esm/ion-ripple-effect.entry.js +1 -1
  296. package/dist/esm/ion-route_4.entry.js +2 -2
  297. package/dist/esm/ion-searchbar.entry.js +4 -4
  298. package/dist/esm/ion-segment-content.entry.js +19 -0
  299. package/dist/esm/ion-segment-view.entry.js +118 -0
  300. package/dist/esm/ion-segment_2.entry.js +132 -19
  301. package/dist/esm/ion-select-modal.entry.js +107 -0
  302. package/dist/esm/ion-select_3.entry.js +40 -15
  303. package/dist/esm/ion-spinner.entry.js +1 -1
  304. package/dist/esm/ion-split-pane.entry.js +2 -2
  305. package/dist/esm/ion-tab-bar_2.entry.js +4 -4
  306. package/dist/esm/ion-tab_2.entry.js +3 -3
  307. package/dist/esm/ion-text.entry.js +2 -2
  308. package/dist/esm/ion-textarea.entry.js +19 -4
  309. package/dist/esm/ion-toast.entry.js +3 -3
  310. package/dist/esm/ion-toggle.entry.js +3 -3
  311. package/dist/esm/ionic.js +1 -1
  312. package/dist/esm/loader.js +1 -1
  313. package/dist/esm/{overlays-9c75ec54.js → overlays-ae10d43d.js} +62 -7
  314. package/dist/esm-es5/{index-fe1782b1.js → index-24b48b06.js} +1 -1
  315. package/dist/esm-es5/index.js +1 -1
  316. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  317. package/dist/esm-es5/ion-alert.entry.js +1 -1
  318. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  319. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  320. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  321. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  322. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  323. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  324. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  325. package/dist/esm-es5/ion-checkbox.entry.js +2 -2
  326. package/dist/esm-es5/ion-chip.entry.js +1 -1
  327. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  328. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  329. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  330. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  331. package/dist/esm-es5/ion-img.entry.js +1 -1
  332. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  333. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  334. package/dist/esm-es5/ion-input.entry.js +1 -1
  335. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  336. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  337. package/dist/esm-es5/ion-loading.entry.js +1 -1
  338. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  339. package/dist/esm-es5/ion-modal.entry.js +1 -1
  340. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  341. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  342. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  343. package/dist/esm-es5/ion-picker.entry.js +1 -1
  344. package/dist/esm-es5/ion-popover.entry.js +1 -1
  345. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  346. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  347. package/dist/esm-es5/ion-range.entry.js +1 -1
  348. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  349. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  350. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  351. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  352. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  353. package/dist/esm-es5/ion-segment-content.entry.js +4 -0
  354. package/dist/esm-es5/ion-segment-view.entry.js +4 -0
  355. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  356. package/dist/esm-es5/ion-select-modal.entry.js +4 -0
  357. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  358. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  359. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  360. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  361. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  362. package/dist/esm-es5/ion-text.entry.js +1 -1
  363. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  364. package/dist/esm-es5/ion-toast.entry.js +1 -1
  365. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  366. package/dist/esm-es5/ionic.js +1 -1
  367. package/dist/esm-es5/loader.js +1 -1
  368. package/dist/esm-es5/overlays-ae10d43d.js +4 -0
  369. package/dist/html.html-data.json +65 -2
  370. package/dist/ionic/index.esm.js +1 -1
  371. package/dist/ionic/ionic.esm.js +1 -1
  372. package/dist/ionic/{p-313ccc01.system.entry.js → p-01186920.system.entry.js} +1 -1
  373. package/dist/ionic/{p-ecb57d24.system.entry.js → p-0161caf9.system.entry.js} +1 -1
  374. package/dist/ionic/p-0437ace4.system.entry.js +4 -0
  375. package/dist/ionic/p-04fc24ee.system.js +4 -0
  376. package/dist/ionic/{p-e3e1e3de.entry.js → p-081a4ce4.entry.js} +1 -1
  377. package/dist/ionic/p-09cf2394.entry.js +4 -0
  378. package/dist/ionic/p-14be4015.entry.js +4 -0
  379. package/dist/ionic/p-15e76dd1.entry.js +4 -0
  380. package/dist/ionic/{p-003eecb9.entry.js → p-16188af7.entry.js} +1 -1
  381. package/dist/ionic/p-16799667.system.entry.js +4 -0
  382. package/dist/ionic/p-16bfb979.system.entry.js +4 -0
  383. package/dist/ionic/{p-b54fc1ae.entry.js → p-19ec4f42.entry.js} +1 -1
  384. package/dist/ionic/p-1b7605a7.system.entry.js +4 -0
  385. package/dist/ionic/p-1c1b8e1f.entry.js +4 -0
  386. package/dist/ionic/{p-8b6232a6.system.entry.js → p-1e010627.system.entry.js} +2 -2
  387. package/dist/ionic/{p-f50ae0d5.system.entry.js → p-1e41f2aa.system.entry.js} +1 -1
  388. package/dist/ionic/{p-cdb11938.system.entry.js → p-1e67b266.system.entry.js} +1 -1
  389. package/dist/ionic/{p-bd25d639.system.entry.js → p-1ebd1e27.system.entry.js} +1 -1
  390. package/dist/ionic/{p-836d39d4.system.entry.js → p-2172893e.system.entry.js} +1 -1
  391. package/dist/ionic/{p-4a0a4204.system.entry.js → p-2507278c.system.entry.js} +1 -1
  392. package/dist/ionic/{p-75c0dc65.system.entry.js → p-2799c6d3.system.entry.js} +1 -1
  393. package/dist/ionic/{p-a879ecb7.system.entry.js → p-2abae1cc.system.entry.js} +1 -1
  394. package/dist/ionic/{p-293ed6ac.system.entry.js → p-2b838f86.system.entry.js} +1 -1
  395. package/dist/ionic/{p-4a82bd1c.system.entry.js → p-2e46590d.system.entry.js} +1 -1
  396. package/dist/ionic/p-2fc0dafe.entry.js +4 -0
  397. package/dist/ionic/p-322c5fb4.system.js +2 -2
  398. package/dist/ionic/p-33a8a71b.entry.js +4 -0
  399. package/dist/ionic/{p-4b0fedb7.system.entry.js → p-37cb43bd.system.entry.js} +1 -1
  400. package/dist/ionic/{p-ad9b5007.system.entry.js → p-3b419d79.system.entry.js} +1 -1
  401. package/dist/ionic/p-424eb140.system.entry.js +4 -0
  402. package/dist/ionic/{p-b7657e8d.entry.js → p-4439fc2a.entry.js} +1 -1
  403. package/dist/ionic/{p-ed6962d3.system.entry.js → p-4561cd09.system.entry.js} +1 -1
  404. package/dist/ionic/{p-c34659b9.entry.js → p-45693d7e.entry.js} +1 -1
  405. package/dist/ionic/p-49a0e74c.entry.js +4 -0
  406. package/dist/ionic/{p-9fef1364.entry.js → p-4a274c89.entry.js} +1 -1
  407. package/dist/ionic/{p-d57661a1.entry.js → p-4b000207.entry.js} +1 -1
  408. package/dist/ionic/{p-fd0cb4ef.entry.js → p-4ec778aa.entry.js} +1 -1
  409. package/dist/ionic/{p-f559ac5b.entry.js → p-51796b2d.entry.js} +1 -1
  410. package/dist/ionic/{p-9ece8dcf.entry.js → p-52d7a191.entry.js} +1 -1
  411. package/dist/ionic/{p-8ed31163.system.entry.js → p-5393e8bb.system.entry.js} +1 -1
  412. package/dist/ionic/{p-ce705aac.system.entry.js → p-567de071.system.entry.js} +1 -1
  413. package/dist/ionic/{p-95823c62.system.entry.js → p-5823babc.system.entry.js} +2 -2
  414. package/dist/ionic/{p-baffaf8d.system.entry.js → p-58d5df0c.system.entry.js} +1 -1
  415. package/dist/ionic/{p-521eca2e.entry.js → p-5ab1b709.entry.js} +1 -1
  416. package/dist/ionic/{p-cff5585e.system.entry.js → p-5b5c1505.system.entry.js} +1 -1
  417. package/dist/ionic/{p-8d44cf1f.entry.js → p-5b932840.entry.js} +1 -1
  418. package/dist/ionic/{p-9cc3bcc5.system.entry.js → p-5bd39e5e.system.entry.js} +2 -2
  419. package/dist/ionic/p-5c831f49.js +4 -0
  420. package/dist/ionic/{p-5800e441.entry.js → p-5f79d8c5.entry.js} +1 -1
  421. package/dist/ionic/{p-772dacba.system.entry.js → p-5fce0c0b.system.entry.js} +1 -1
  422. package/dist/ionic/{p-233e6c93.entry.js → p-62af944c.entry.js} +1 -1
  423. package/dist/ionic/{p-00b01a55.system.entry.js → p-63b0abde.system.entry.js} +1 -1
  424. package/dist/ionic/p-6734db42.system.entry.js +4 -0
  425. package/dist/ionic/p-69666e8a.system.entry.js +4 -0
  426. package/dist/ionic/{p-5e842258.entry.js → p-6d32975a.entry.js} +1 -1
  427. package/dist/ionic/p-73dc4950.entry.js +4 -0
  428. package/dist/ionic/{p-fcd71204.system.entry.js → p-7458862e.system.entry.js} +1 -1
  429. package/dist/ionic/{p-a3711608.system.entry.js → p-797eeea8.system.entry.js} +1 -1
  430. package/dist/ionic/{p-f8c8b9ba.entry.js → p-7b9a2b23.entry.js} +1 -1
  431. package/dist/ionic/{p-6817cf42.system.entry.js → p-7ed1657c.system.entry.js} +1 -1
  432. package/dist/ionic/{p-22c020db.system.entry.js → p-857ca696.system.entry.js} +1 -1
  433. package/dist/ionic/{p-a4d51b8d.system.js → p-8f05ba3b.system.js} +1 -1
  434. package/dist/ionic/p-908d6080.entry.js +4 -0
  435. package/dist/ionic/{p-af999a31.entry.js → p-937a7e21.entry.js} +1 -1
  436. package/dist/ionic/{p-4c8fceb0.entry.js → p-95775830.entry.js} +1 -1
  437. package/dist/ionic/{p-973f0b15.system.entry.js → p-98231c01.system.entry.js} +1 -1
  438. package/dist/ionic/{p-25928b83.system.entry.js → p-985a7e17.system.entry.js} +1 -1
  439. package/dist/ionic/{p-e3a5da9d.entry.js → p-98ff6b32.entry.js} +1 -1
  440. package/dist/ionic/p-9910f786.entry.js +4 -0
  441. package/dist/ionic/{p-6e85e450.entry.js → p-9df2c6fb.entry.js} +1 -1
  442. package/dist/ionic/{p-7251fed5.entry.js → p-9ee1e8a6.entry.js} +1 -1
  443. package/dist/ionic/{p-da263d8e.entry.js → p-9fa07aec.entry.js} +1 -1
  444. package/dist/ionic/{p-a41699db.entry.js → p-a1051806.entry.js} +1 -1
  445. package/dist/ionic/p-a1b9a163.entry.js +4 -0
  446. package/dist/ionic/p-a34b4d94.entry.js +4 -0
  447. package/dist/ionic/{p-8836d0eb.system.entry.js → p-a49378bb.system.entry.js} +1 -1
  448. package/dist/ionic/{p-6b8893dd.entry.js → p-a61cba41.entry.js} +1 -1
  449. package/dist/ionic/p-adbc4bdf.entry.js +4 -0
  450. package/dist/ionic/{p-49bc6544.entry.js → p-afecb188.entry.js} +1 -1
  451. package/dist/ionic/{p-755b27f0.system.entry.js → p-b335ffed.system.entry.js} +1 -1
  452. package/dist/ionic/{p-e3f13b08.js → p-b82d4cab.js} +1 -1
  453. package/dist/ionic/{p-68c4df55.entry.js → p-b9d7015f.entry.js} +1 -1
  454. package/dist/ionic/{p-7243df6f.entry.js → p-bb0db172.entry.js} +1 -1
  455. package/dist/ionic/{p-df83e308.system.entry.js → p-bc36ad98.system.entry.js} +1 -1
  456. package/dist/ionic/{p-773d118d.entry.js → p-bdad26e3.entry.js} +1 -1
  457. package/dist/ionic/p-c29f8157.system.entry.js +4 -0
  458. package/dist/ionic/p-c2b74d92.system.entry.js +4 -0
  459. package/dist/ionic/{p-176b372f.entry.js → p-c41ac815.entry.js} +1 -1
  460. package/dist/ionic/{p-5417b9bb.entry.js → p-c9f3a539.entry.js} +1 -1
  461. package/dist/ionic/{p-2ea1ca4f.system.entry.js → p-ca065903.system.entry.js} +1 -1
  462. package/dist/ionic/{p-2ca6eac2.system.entry.js → p-cac0e0b3.system.entry.js} +1 -1
  463. package/dist/ionic/{p-3c968c7f.system.entry.js → p-d18ab582.system.entry.js} +2 -2
  464. package/dist/ionic/{p-92d7a3d1.entry.js → p-d7aa6b00.entry.js} +1 -1
  465. package/dist/ionic/{p-21cfd4de.entry.js → p-da074ff7.entry.js} +1 -1
  466. package/dist/ionic/{p-5e66bcf2.entry.js → p-db0c8e7d.entry.js} +1 -1
  467. package/dist/ionic/{p-89a0a446.entry.js → p-de930745.entry.js} +1 -1
  468. package/dist/ionic/p-e2252ad6.entry.js +4 -0
  469. package/dist/ionic/{p-960803fc.system.entry.js → p-e4ee80be.system.entry.js} +1 -1
  470. package/dist/ionic/p-e563a35c.entry.js +4 -0
  471. package/dist/ionic/{p-7740e32c.system.js → p-e7ed4a7f.system.js} +1 -1
  472. package/dist/ionic/{p-0373d924.system.entry.js → p-ebf042e0.system.entry.js} +1 -1
  473. package/dist/ionic/{p-9b6c6302.system.entry.js → p-ed75fcfb.system.entry.js} +1 -1
  474. package/dist/ionic/p-f10b70a1.entry.js +4 -0
  475. package/dist/ionic/{p-01503bbd.system.entry.js → p-f3102647.system.entry.js} +1 -1
  476. package/dist/ionic/{p-6562e0a9.system.entry.js → p-fca6ef5f.system.entry.js} +1 -1
  477. package/dist/ionic/{p-b0180ce1.system.entry.js → p-ffd131f9.system.entry.js} +1 -1
  478. package/dist/types/components/checkbox/checkbox.d.ts +2 -1
  479. package/dist/types/components/input/input.d.ts +3 -0
  480. package/dist/types/components/menu/menu-interface.d.ts +5 -2
  481. package/dist/types/components/menu/menu.d.ts +6 -6
  482. package/dist/types/components/radio/radio.d.ts +1 -1
  483. package/dist/types/components/segment/segment.d.ts +21 -1
  484. package/dist/types/components/segment-button/segment-button.d.ts +4 -0
  485. package/dist/types/components/segment-content/segment-content.d.ts +4 -0
  486. package/dist/types/components/segment-view/segment-view-interface.d.ts +4 -0
  487. package/dist/types/components/segment-view/segment-view.d.ts +55 -0
  488. package/dist/types/components/select/select-interface.d.ts +1 -1
  489. package/dist/types/components/select/select.d.ts +5 -4
  490. package/dist/types/components/select-modal/select-modal-interface.d.ts +10 -0
  491. package/dist/types/components/select-modal/select-modal.d.ts +16 -0
  492. package/dist/types/components/select-modal/test/fixtures.d.ts +16 -0
  493. package/dist/types/components/textarea/textarea.d.ts +3 -0
  494. package/dist/types/components.d.ts +103 -13
  495. package/dist/types/utils/overlays-interface.d.ts +1 -1
  496. package/hydrate/index.js +708 -225
  497. package/hydrate/index.mjs +708 -225
  498. package/package.json +1 -1
  499. package/dist/esm-es5/overlays-9c75ec54.js +0 -4
  500. package/dist/ionic/p-0fa0c92b.entry.js +0 -4
  501. package/dist/ionic/p-100b83fd.system.entry.js +0 -4
  502. package/dist/ionic/p-2200e26b.entry.js +0 -4
  503. package/dist/ionic/p-2b7c93b4.entry.js +0 -4
  504. package/dist/ionic/p-2c4bdd9d.entry.js +0 -4
  505. package/dist/ionic/p-44d1539c.system.entry.js +0 -4
  506. package/dist/ionic/p-53854390.entry.js +0 -4
  507. package/dist/ionic/p-72ffd137.system.entry.js +0 -4
  508. package/dist/ionic/p-82ab7ccb.entry.js +0 -4
  509. package/dist/ionic/p-9172535c.entry.js +0 -4
  510. package/dist/ionic/p-93f37ceb.system.entry.js +0 -4
  511. package/dist/ionic/p-98871496.system.js +0 -4
  512. package/dist/ionic/p-9c23044d.entry.js +0 -4
  513. package/dist/ionic/p-a0c88dc2.system.entry.js +0 -4
  514. package/dist/ionic/p-a440397c.js +0 -4
  515. package/dist/ionic/p-a72fb8a1.system.entry.js +0 -4
  516. package/dist/ionic/p-ab8a2ff1.entry.js +0 -4
  517. package/dist/ionic/p-b4c950f8.entry.js +0 -4
  518. package/dist/ionic/p-bfa2e81c.entry.js +0 -4
  519. package/dist/ionic/p-d77e12ca.entry.js +0 -4
  520. package/dist/ionic/p-f88ebc36.entry.js +0 -4
@@ -294,10 +294,10 @@ const ActionSheet = /*@__PURE__*/ proxyCustomElement(class ActionSheet extends H
294
294
  const headerID = `action-sheet-${overlayIndex}-header`;
295
295
  return (h(Host, Object.assign({ key: '7bbd202ca9e19727e7514abbe073687d982f80c3', role: "dialog", "aria-modal": "true", "aria-labelledby": header !== undefined ? headerID : null, tabindex: "-1" }, htmlAttributes, { style: {
296
296
  zIndex: `${20000 + this.overlayIndex}`,
297
- }, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '23344a9221a2e6720d7b9de5249dc37256cafa7b', tappable: this.backdropDismiss }), h("div", { key: 'd46361bb5cdc32a7922dcf76b566f358a6174bfa', tabindex: "0" }), h("div", { key: '136c3f2e77c8a2eac8e9ae4bb13d735e1d62598d', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: '6168ea8b2be42020b2edeb8ff3a0f3d1254be37a', class: "action-sheet-container" }, h("div", { key: '29b9e6619dc54574733a704d6bf885839151bd84', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (h("div", { key: '536ce764bfddb3816ea3512d90f4acef2ccb8589', id: headerID, class: {
297
+ }, class: Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'action-sheet-translucent': this.translucent }), onIonActionSheetWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '23344a9221a2e6720d7b9de5249dc37256cafa7b', tappable: this.backdropDismiss }), h("div", { key: 'fbc2ba15549c2ab04e759e82df6e177fd80cc0a6', tabindex: "0", "aria-hidden": "true" }), h("div", { key: '748ee5235d0b4cb26d6f1b7589f77af2e37ad28a', class: "action-sheet-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: '7ce5fa236cf75e9b1e49c4725c9a811078706554', class: "action-sheet-container" }, h("div", { key: 'dc2251f3bcee4a93e3449f09621cbd2b65d329e9', class: "action-sheet-group", ref: (el) => (this.groupEl = el) }, header !== undefined && (h("div", { key: '48d325c8a852f56ed57a9ada1a6709d05ba32ee2', id: headerID, class: {
298
298
  'action-sheet-title': true,
299
299
  'action-sheet-has-sub-title': this.subHeader !== undefined,
300
- } }, header, this.subHeader && h("div", { key: '6d888219145824fd36cdfe0d3c8388bbf2769777', class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b), disabled: b.disabled }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && h("ion-ripple-effect", null))))), cancelButton && (h("div", { key: '46f98f0ed5a9bdb3e35feb9ae71c4489c17b7d77', class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({ key: 'e3c457bced8ad5f692e48de26e65f731fd631b4f' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { key: '4cba6dc559f734ecc852e024959210cd0dd25354', class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { key: '9df64989aad1b4d1e75edf4d37ab208965cfe37f', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && h("ion-ripple-effect", { key: '558089275a29177cefdb2e38eefc9b5c8b62872b' })))))), h("div", { key: 'fa4df6e043b00a6e4126dbc71cb344cfc2b2e7bc', tabindex: "0" })));
300
+ } }, header, this.subHeader && h("div", { key: '66093728052eb67f37a35f3232761ce4a08896f3', class: "action-sheet-sub-title" }, this.subHeader))), buttons.map((b) => (h("button", Object.assign({}, b.htmlAttributes, { type: "button", id: b.id, class: buttonClass(b), onClick: () => this.buttonClick(b), disabled: b.disabled }), h("span", { class: "action-sheet-button-inner" }, b.icon && h("ion-icon", { icon: b.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" }), b.text), mode === 'md' && h("ion-ripple-effect", null))))), cancelButton && (h("div", { key: 'f4eb8e3e2885b85af5080df18d0de0bdd1d719de', class: "action-sheet-group action-sheet-group-cancel" }, h("button", Object.assign({ key: '169f4eb09255aba85062baad49ceb151239fbfb7' }, cancelButton.htmlAttributes, { type: "button", class: buttonClass(cancelButton), onClick: () => this.buttonClick(cancelButton) }), h("span", { key: '25fb8a466dd67ea94c79cfb4f9965527e1ce6d42', class: "action-sheet-button-inner" }, cancelButton.icon && (h("ion-icon", { key: 'eb5b071e120a2c86afdf967af6a763a43044d1ca', icon: cancelButton.icon, "aria-hidden": "true", lazy: false, class: "action-sheet-icon" })), cancelButton.text), mode === 'md' && h("ion-ripple-effect", { key: '452ad7e1052b2c681e2d98de8193949755ad4d54' })))))), h("div", { key: 'e1cecf280c987c050d9445e2c458b903f153089b', tabindex: "0", "aria-hidden": "true" })));
301
301
  }
302
302
  get el() { return this; }
303
303
  static get watchers() { return {
@@ -485,13 +485,15 @@ const Alert = /*@__PURE__*/ proxyCustomElement(class Alert extends HTMLElement {
485
485
  const msgId = `alert-${overlayIndex}-msg`;
486
486
  const role = this.inputs.length > 0 || this.buttons.length > 0 ? 'alertdialog' : 'alert';
487
487
  /**
488
- * If the header is defined, use that. Otherwise, fall back to the subHeader.
489
- * If neither is defined, don't set aria-labelledby.
488
+ * Use both the header and subHeader ids if they are defined.
489
+ * If only the header is defined, use the header id.
490
+ * If only the subHeader is defined, use the subHeader id.
491
+ * If neither are defined, do not set aria-labelledby.
490
492
  */
491
- const ariaLabelledBy = header ? hdrId : subHeader ? subHdrId : null;
492
- return (h(Host, Object.assign({ key: 'c7d53f48b359f2bc3480a2e1ba34948fc9378fb0', role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "-1" }, htmlAttributes, { style: {
493
+ const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
494
+ return (h(Host, Object.assign({ key: 'ad7e14b4f92a09387aa80abfb718a755e4e889d6', role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "-1" }, htmlAttributes, { style: {
493
495
  zIndex: `${20000 + overlayIndex}`,
494
- }, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '18c7e6b5d63435d9a6a82bda951158e7e1af6e92', tappable: this.backdropDismiss }), h("div", { key: 'e35e1a4b81286976c8a6bab570c986f3196b21f4', tabindex: "0" }), h("div", { key: '9089864c80d96ed834bf723f3de863cf1c4a5b97', class: "alert-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: 'dd600f02c84352059c6cdf98821b9c9a831bcdcb', class: "alert-head" }, header && (h("h2", { key: '11afb605e1ccefc889fbdd2533d491bea8fbf183', id: hdrId, class: "alert-title" }, header)), subHeader && (h("h2", { key: 'e53b0613d09d26e5a2cd7c9c6e63ec2535625ce5', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { key: 'cef60ec8b34c9aec8bc698f16f55324d1ce67c72', tabindex: "0" })));
496
+ }, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }), h("ion-backdrop", { key: '4b4693dca3c910aa9a61c4d90295d785ec6cbe3d', tappable: this.backdropDismiss }), h("div", { key: '64fd19b8f1d8246dcc869053f858bc33506def4b', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'e61ba6f339c3a02cecd37d8b641ee5043018eb29', class: "alert-wrapper ion-overlay-wrapper", ref: (el) => (this.wrapperEl = el) }, h("div", { key: '044e00667ffcb74aa2c5e0d0b42669c4004dbb4f', class: "alert-head" }, header && (h("h2", { key: '1aaae8d58722c4cf5debb1f00415ab7ed0a52bbd', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (h("h2", { key: '9c9854dc3b0ad40f1861a49b76d5636afcae9c74', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (h("h3", { key: '19aaca9912f77cde4ae8079be210eda697ed8de1', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { key: 'a85d27c516f7cdbc85b19f40d2f0bd865490b6a7', tabindex: "0", "aria-hidden": "true" })));
495
497
  }
496
498
  get el() { return this; }
497
499
  static get watchers() { return {
@@ -34,7 +34,7 @@ const Backdrop = /*@__PURE__*/ proxyCustomElement(class Backdrop extends HTMLEle
34
34
  }
35
35
  render() {
36
36
  const mode = getIonMode(this);
37
- return (h(Host, { key: 'c803b4302c8e722064feb03dafe3cb6e190b4f2b', tabindex: "-1", "aria-hidden": "true", class: {
37
+ return (h(Host, { key: '7abaf2c310aa399607451b14063265e8a5846938', "aria-hidden": "true", class: {
38
38
  [mode]: true,
39
39
  'backdrop-hide': !this.visible,
40
40
  'backdrop-no-tappable': !this.tappable,
@@ -214,7 +214,7 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
214
214
  {
215
215
  type !== 'button' && this.renderHiddenButton();
216
216
  }
217
- return (h(Host, { key: '8f3a0363d46ef888d22b0b0812c70cb4f79e6efa', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
217
+ return (h(Host, { key: '340a809d85698741bb36e796355cae89a970655f', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
218
218
  [mode]: true,
219
219
  [buttonType]: true,
220
220
  [`${buttonType}-${expand}`]: expand !== undefined,
@@ -229,7 +229,7 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
229
229
  'button-disabled': disabled,
230
230
  'ion-activatable': true,
231
231
  'ion-focusable': true,
232
- }) }, h(TagType, Object.assign({ key: 'a517c7d06aab15ad4c2a51b8ec224c1aeb4ed565' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }, inheritedAttributes), h("span", { key: '127c26dd97c0bf5097433df77df7313d59784899', class: "button-inner" }, h("slot", { key: '39d9a9cad8e1addbe63406062e555e05c2cb541b', name: "icon-only", onSlotchange: this.slotChanged }), h("slot", { key: 'cfdebdd89155c6c21eb80e51e06456a3a6d877e0', name: "start" }), h("slot", { key: 'eac497e0f97ab55baa834ae23155d89b0f7069c6' }), h("slot", { key: 'c99f7900f8856b32a0b4ac11092d461f5e9a1109', name: "end" })), mode === 'md' && h("ion-ripple-effect", { key: 'c681edb0480879fbd801575f2233f6e118898638', type: this.rippleType }))));
232
+ }) }, h(TagType, Object.assign({ key: '03ae1b94a0d606aa65aa6f82c2fc76abcf3f1300' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur }, inheritedAttributes), h("span", { key: '90bf53d4ffcab88ee596ece7113d5b6409e61143', class: "button-inner" }, h("slot", { key: 'a7876695f0d8702e8bcb471ae4c0984f27d77458', name: "icon-only", onSlotchange: this.slotChanged }), h("slot", { key: '2c8551586f8726884d7797a6d3fee2d4b3aab35f', name: "start" }), h("slot", { key: '9ab07accdb22b08d0a463a7c821c9793507d1f7d' }), h("slot", { key: '8984afe177e6ba021435875a3798e2a64f3bdf2c', name: "end" })), mode === 'md' && h("ion-ripple-effect", { key: '3e9f01e7a1198b6b7109502293a971da7072a4f3', type: this.rippleType }))));
233
233
  }
234
234
  get el() { return this; }
235
235
  static get watchers() { return {
@@ -18,10 +18,10 @@ const Buttons = /*@__PURE__*/ proxyCustomElement(class Buttons extends HTMLEleme
18
18
  }
19
19
  render() {
20
20
  const mode = getIonMode(this);
21
- return (h(Host, { key: '4e5ce9abb3f56e8c91e3eb58c2819300e61eba24', class: {
21
+ return (h(Host, { key: '58c1fc5eb867d0731c63549b1ccb3ec3bbbe6e1b', class: {
22
22
  [mode]: true,
23
23
  ['buttons-collapse']: this.collapse,
24
- } }, h("slot", { key: 'f2f360ec888b6e946b512fed07431fab47c61482' })));
24
+ } }, h("slot", { key: '0c8f95b9840c8fa0c4e50be84c5159620a3eb5c8' })));
25
25
  }
26
26
  static get style() { return {
27
27
  ios: IonButtonsIosStyle0,
@@ -66,7 +66,8 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
66
66
  componentWillLoad() {
67
67
  this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
68
68
  }
69
- setFocus() {
69
+ /** @internal */
70
+ async setFocus() {
70
71
  if (this.focusEl) {
71
72
  this.focusEl.focus();
72
73
  }
@@ -76,7 +77,7 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
76
77
  const mode = getIonMode(this);
77
78
  const path = getSVGPath(mode, indeterminate);
78
79
  renderHiddenInput(true, el, name, checked ? value : '', disabled);
79
- return (h(Host, { key: 'd7a07fbf130413eaa4622c07786e8a00723113eb', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses(color, {
80
+ return (h(Host, { key: '6dc787e1100521d08c4900104e1a3e2f594e919f', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses(color, {
80
81
  [mode]: true,
81
82
  'in-item': hostContext('ion-item', el),
82
83
  'checkbox-checked': checked,
@@ -86,10 +87,10 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
86
87
  [`checkbox-justify-${justify}`]: justify !== undefined,
87
88
  [`checkbox-alignment-${alignment}`]: alignment !== undefined,
88
89
  [`checkbox-label-placement-${labelPlacement}`]: true,
89
- }), onClick: this.onClick }, h("label", { key: '99797589ed4ea7cbac53531c85b2d4a2dcd568c4', class: "checkbox-wrapper" }, h("input", Object.assign({ key: 'cc12fe7920ab23c6f21546f7b312b8f1f5671349', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), h("div", { key: '1b087f061da5abca6129d372503d8882b77e24be', class: {
90
+ }), onClick: this.onClick }, h("label", { key: '68222fb736a5ec3f2e488649b0e2ce0417dcb224', class: "checkbox-wrapper" }, h("input", Object.assign({ key: 'f12962d7e9b19c744cfdbdeccc67ae7f5d080281', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), h("div", { key: 'c72df2699414b1e5a41a1bc267bc634f0c93dcff', class: {
90
91
  'label-text-wrapper': true,
91
92
  'label-text-wrapper-hidden': el.textContent === '',
92
- }, part: "label" }, h("slot", { key: 'bc84274c826fa1db1207230aa03bf5790afe2992' })), h("div", { key: '89e9396dc9215804bd8ac42e943a292d050ef8c5', class: "native-wrapper" }, h("svg", { key: '2aafac248c639074faaf17044d8d9204474a9b7b', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
93
+ }, part: "label" }, h("slot", { key: 'a2a80285178a7e0e3b536fc9ca26b8b444aa4307' })), h("div", { key: 'c2b05e0d1fe8df5dcd72858220b5ff51ecaee4cc', class: "native-wrapper" }, h("svg", { key: 'ee24913fded72258ebd9713654a6dba92a18fcf7', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
93
94
  }
94
95
  getSVGPath(mode, indeterminate) {
95
96
  let path = indeterminate ? (h("path", { d: "M6 12L18 12", part: "mark" })) : (h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
@@ -112,7 +113,8 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
112
113
  "value": [8],
113
114
  "labelPlacement": [1, "label-placement"],
114
115
  "justify": [1],
115
- "alignment": [1]
116
+ "alignment": [1],
117
+ "setFocus": [64]
116
118
  }]);
117
119
  let checkboxIds = 0;
118
120
  function defineCustomElement() {
@@ -0,0 +1,446 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import { proxyCustomElement, HTMLElement, createEvent, Build, readTask, forceUpdate, h, Host } from '@stencil/core/internal/client';
5
+ import { i as inheritAriaAttributes, j as hasLazyBuild, c as componentOnReady } from './helpers.js';
6
+ import { b as getIonMode, a as isPlatform } from './ionic-global.js';
7
+ import { i as isRTL } from './dir.js';
8
+ import { c as createColorClasses, h as hostContext } from './theme.js';
9
+
10
+ const contentCss = ":host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:\"\"}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}";
11
+ const IonContentStyle0 = contentCss;
12
+
13
+ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLElement {
14
+ constructor() {
15
+ super();
16
+ this.__registerHost();
17
+ this.__attachShadow();
18
+ this.ionScrollStart = createEvent(this, "ionScrollStart", 7);
19
+ this.ionScroll = createEvent(this, "ionScroll", 7);
20
+ this.ionScrollEnd = createEvent(this, "ionScrollEnd", 7);
21
+ this.watchDog = null;
22
+ this.isScrolling = false;
23
+ this.lastScroll = 0;
24
+ this.queued = false;
25
+ this.cTop = -1;
26
+ this.cBottom = -1;
27
+ this.isMainContent = true;
28
+ this.resizeTimeout = null;
29
+ this.inheritedAttributes = {};
30
+ this.tabsElement = null;
31
+ // Detail is used in a hot loop in the scroll event, by allocating it here
32
+ // V8 will be able to inline any read/write to it since it's a monomorphic class.
33
+ // https://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html
34
+ this.detail = {
35
+ scrollTop: 0,
36
+ scrollLeft: 0,
37
+ type: 'scroll',
38
+ event: undefined,
39
+ startX: 0,
40
+ startY: 0,
41
+ startTime: 0,
42
+ currentX: 0,
43
+ currentY: 0,
44
+ velocityX: 0,
45
+ velocityY: 0,
46
+ deltaX: 0,
47
+ deltaY: 0,
48
+ currentTime: 0,
49
+ data: undefined,
50
+ isScrolling: true,
51
+ };
52
+ this.color = undefined;
53
+ this.fullscreen = false;
54
+ this.fixedSlotPlacement = 'after';
55
+ this.forceOverscroll = undefined;
56
+ this.scrollX = false;
57
+ this.scrollY = true;
58
+ this.scrollEvents = false;
59
+ }
60
+ componentWillLoad() {
61
+ this.inheritedAttributes = inheritAriaAttributes(this.el);
62
+ }
63
+ connectedCallback() {
64
+ this.isMainContent = this.el.closest('ion-menu, ion-popover, ion-modal') === null;
65
+ /**
66
+ * The fullscreen content offsets need to be
67
+ * computed after the tab bar has loaded. Since
68
+ * lazy evaluation means components are not hydrated
69
+ * at the same time, we need to wait for the ionTabBarLoaded
70
+ * event to fire. This does not impact dist-custom-elements
71
+ * because there is no hydration there.
72
+ */
73
+ if (hasLazyBuild(this.el)) {
74
+ /**
75
+ * We need to cache the reference to the tabs.
76
+ * If just the content is unmounted then we won't
77
+ * be able to query for the closest tabs on disconnectedCallback
78
+ * since the content has been removed from the DOM tree.
79
+ */
80
+ const closestTabs = (this.tabsElement = this.el.closest('ion-tabs'));
81
+ if (closestTabs !== null) {
82
+ /**
83
+ * When adding and removing the event listener
84
+ * we need to make sure we pass the same function reference
85
+ * otherwise the event listener will not be removed properly.
86
+ * We can't only pass `this.resize` because "this" in the function
87
+ * context becomes a reference to IonTabs instead of IonContent.
88
+ *
89
+ * Additionally, we listen for ionTabBarLoaded on the IonTabs
90
+ * instance rather than the IonTabBar instance. It's possible for
91
+ * a tab bar to be conditionally rendered/mounted. Since ionTabBarLoaded
92
+ * bubbles, we can catch any instances of child tab bars loading by listening
93
+ * on IonTabs.
94
+ */
95
+ this.tabsLoadCallback = () => this.resize();
96
+ closestTabs.addEventListener('ionTabBarLoaded', this.tabsLoadCallback);
97
+ }
98
+ }
99
+ }
100
+ disconnectedCallback() {
101
+ this.onScrollEnd();
102
+ if (hasLazyBuild(this.el)) {
103
+ /**
104
+ * The event listener and tabs caches need to
105
+ * be cleared otherwise this will create a memory
106
+ * leak where the IonTabs instance can never be
107
+ * garbage collected.
108
+ */
109
+ const { tabsElement, tabsLoadCallback } = this;
110
+ if (tabsElement !== null && tabsLoadCallback !== undefined) {
111
+ tabsElement.removeEventListener('ionTabBarLoaded', tabsLoadCallback);
112
+ }
113
+ this.tabsElement = null;
114
+ this.tabsLoadCallback = undefined;
115
+ }
116
+ }
117
+ /**
118
+ * Rotating certain devices can update
119
+ * the safe area insets. As a result,
120
+ * the fullscreen feature on ion-content
121
+ * needs to be recalculated.
122
+ *
123
+ * We listen for "resize" because we
124
+ * do not care what the orientation of
125
+ * the device is. Other APIs
126
+ * such as ScreenOrientation or
127
+ * the deviceorientation event must have
128
+ * permission from the user first whereas
129
+ * the "resize" event does not.
130
+ *
131
+ * We also throttle the callback to minimize
132
+ * thrashing when quickly resizing a window.
133
+ */
134
+ onResize() {
135
+ if (this.resizeTimeout) {
136
+ clearTimeout(this.resizeTimeout);
137
+ this.resizeTimeout = null;
138
+ }
139
+ this.resizeTimeout = setTimeout(() => {
140
+ /**
141
+ * Resize should only happen
142
+ * if the content is visible.
143
+ * When the content is hidden
144
+ * then offsetParent will be null.
145
+ */
146
+ if (this.el.offsetParent === null) {
147
+ return;
148
+ }
149
+ this.resize();
150
+ }, 100);
151
+ }
152
+ shouldForceOverscroll() {
153
+ const { forceOverscroll } = this;
154
+ const mode = getIonMode(this);
155
+ return forceOverscroll === undefined ? mode === 'ios' && isPlatform('ios') : forceOverscroll;
156
+ }
157
+ resize() {
158
+ /**
159
+ * Only force update if the component is rendered in a browser context.
160
+ * Using `forceUpdate` in a server context with pre-rendering can lead to an infinite loop.
161
+ * The `hydrateDocument` function in `@stencil/core` will render the `ion-content`, but
162
+ * `forceUpdate` will trigger another render, locking up the server.
163
+ *
164
+ * TODO: Remove if STENCIL-834 determines Stencil will account for this.
165
+ */
166
+ if (Build.isBrowser) {
167
+ if (this.fullscreen) {
168
+ readTask(() => this.readDimensions());
169
+ }
170
+ else if (this.cTop !== 0 || this.cBottom !== 0) {
171
+ this.cTop = this.cBottom = 0;
172
+ forceUpdate(this);
173
+ }
174
+ }
175
+ }
176
+ readDimensions() {
177
+ const page = getPageElement(this.el);
178
+ const top = Math.max(this.el.offsetTop, 0);
179
+ const bottom = Math.max(page.offsetHeight - top - this.el.offsetHeight, 0);
180
+ const dirty = top !== this.cTop || bottom !== this.cBottom;
181
+ if (dirty) {
182
+ this.cTop = top;
183
+ this.cBottom = bottom;
184
+ forceUpdate(this);
185
+ }
186
+ }
187
+ onScroll(ev) {
188
+ const timeStamp = Date.now();
189
+ const shouldStart = !this.isScrolling;
190
+ this.lastScroll = timeStamp;
191
+ if (shouldStart) {
192
+ this.onScrollStart();
193
+ }
194
+ if (!this.queued && this.scrollEvents) {
195
+ this.queued = true;
196
+ readTask((ts) => {
197
+ this.queued = false;
198
+ this.detail.event = ev;
199
+ updateScrollDetail(this.detail, this.scrollEl, ts, shouldStart);
200
+ this.ionScroll.emit(this.detail);
201
+ });
202
+ }
203
+ }
204
+ /**
205
+ * Get the element where the actual scrolling takes place.
206
+ * This element can be used to subscribe to `scroll` events or manually modify
207
+ * `scrollTop`. However, it's recommended to use the API provided by `ion-content`:
208
+ *
209
+ * i.e. Using `ionScroll`, `ionScrollStart`, `ionScrollEnd` for scrolling events
210
+ * and `scrollToPoint()` to scroll the content into a certain point.
211
+ */
212
+ async getScrollElement() {
213
+ /**
214
+ * If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
215
+ * scrollEl won't be defined yet with the custom elements build, so wait for it to load in.
216
+ */
217
+ if (!this.scrollEl) {
218
+ await new Promise((resolve) => componentOnReady(this.el, resolve));
219
+ }
220
+ return Promise.resolve(this.scrollEl);
221
+ }
222
+ /**
223
+ * Returns the background content element.
224
+ * @internal
225
+ */
226
+ async getBackgroundElement() {
227
+ if (!this.backgroundContentEl) {
228
+ await new Promise((resolve) => componentOnReady(this.el, resolve));
229
+ }
230
+ return Promise.resolve(this.backgroundContentEl);
231
+ }
232
+ /**
233
+ * Scroll to the top of the component.
234
+ *
235
+ * @param duration The amount of time to take scrolling to the top. Defaults to `0`.
236
+ */
237
+ scrollToTop(duration = 0) {
238
+ return this.scrollToPoint(undefined, 0, duration);
239
+ }
240
+ /**
241
+ * Scroll to the bottom of the component.
242
+ *
243
+ * @param duration The amount of time to take scrolling to the bottom. Defaults to `0`.
244
+ */
245
+ async scrollToBottom(duration = 0) {
246
+ const scrollEl = await this.getScrollElement();
247
+ const y = scrollEl.scrollHeight - scrollEl.clientHeight;
248
+ return this.scrollToPoint(undefined, y, duration);
249
+ }
250
+ /**
251
+ * Scroll by a specified X/Y distance in the component.
252
+ *
253
+ * @param x The amount to scroll by on the horizontal axis.
254
+ * @param y The amount to scroll by on the vertical axis.
255
+ * @param duration The amount of time to take scrolling by that amount.
256
+ */
257
+ async scrollByPoint(x, y, duration) {
258
+ const scrollEl = await this.getScrollElement();
259
+ return this.scrollToPoint(x + scrollEl.scrollLeft, y + scrollEl.scrollTop, duration);
260
+ }
261
+ /**
262
+ * Scroll to a specified X/Y location in the component.
263
+ *
264
+ * @param x The point to scroll to on the horizontal axis.
265
+ * @param y The point to scroll to on the vertical axis.
266
+ * @param duration The amount of time to take scrolling to that point. Defaults to `0`.
267
+ */
268
+ async scrollToPoint(x, y, duration = 0) {
269
+ const el = await this.getScrollElement();
270
+ if (duration < 32) {
271
+ if (y != null) {
272
+ el.scrollTop = y;
273
+ }
274
+ if (x != null) {
275
+ el.scrollLeft = x;
276
+ }
277
+ return;
278
+ }
279
+ let resolve;
280
+ let startTime = 0;
281
+ const promise = new Promise((r) => (resolve = r));
282
+ const fromY = el.scrollTop;
283
+ const fromX = el.scrollLeft;
284
+ const deltaY = y != null ? y - fromY : 0;
285
+ const deltaX = x != null ? x - fromX : 0;
286
+ // scroll loop
287
+ const step = (timeStamp) => {
288
+ const linearTime = Math.min(1, (timeStamp - startTime) / duration) - 1;
289
+ const easedT = Math.pow(linearTime, 3) + 1;
290
+ if (deltaY !== 0) {
291
+ el.scrollTop = Math.floor(easedT * deltaY + fromY);
292
+ }
293
+ if (deltaX !== 0) {
294
+ el.scrollLeft = Math.floor(easedT * deltaX + fromX);
295
+ }
296
+ if (easedT < 1) {
297
+ // do not use DomController here
298
+ // must use nativeRaf in order to fire in the next frame
299
+ requestAnimationFrame(step);
300
+ }
301
+ else {
302
+ resolve();
303
+ }
304
+ };
305
+ // chill out for a frame first
306
+ requestAnimationFrame((ts) => {
307
+ startTime = ts;
308
+ step(ts);
309
+ });
310
+ return promise;
311
+ }
312
+ onScrollStart() {
313
+ this.isScrolling = true;
314
+ this.ionScrollStart.emit({
315
+ isScrolling: true,
316
+ });
317
+ if (this.watchDog) {
318
+ clearInterval(this.watchDog);
319
+ }
320
+ // watchdog
321
+ this.watchDog = setInterval(() => {
322
+ if (this.lastScroll < Date.now() - 120) {
323
+ this.onScrollEnd();
324
+ }
325
+ }, 100);
326
+ }
327
+ onScrollEnd() {
328
+ if (this.watchDog)
329
+ clearInterval(this.watchDog);
330
+ this.watchDog = null;
331
+ if (this.isScrolling) {
332
+ this.isScrolling = false;
333
+ this.ionScrollEnd.emit({
334
+ isScrolling: false,
335
+ });
336
+ }
337
+ }
338
+ render() {
339
+ const { fixedSlotPlacement, inheritedAttributes, isMainContent, scrollX, scrollY, el } = this;
340
+ const rtl = isRTL(el) ? 'rtl' : 'ltr';
341
+ const mode = getIonMode(this);
342
+ const forceOverscroll = this.shouldForceOverscroll();
343
+ const transitionShadow = mode === 'ios';
344
+ this.resize();
345
+ return (h(Host, Object.assign({ key: 'f2a24aa66dbf5c76f9d4b06f708eb73cadc239df', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
346
+ [mode]: true,
347
+ 'content-sizing': hostContext('ion-popover', this.el),
348
+ overscroll: forceOverscroll,
349
+ [`content-${rtl}`]: true,
350
+ }), style: {
351
+ '--offset-top': `${this.cTop}px`,
352
+ '--offset-bottom': `${this.cBottom}px`,
353
+ } }, inheritedAttributes), h("div", { key: '6480ca7648b278abb36477b3838bccbcd4995e2a', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), fixedSlotPlacement === 'before' ? h("slot", { name: "fixed" }) : null, h("div", { key: '29a23b663f5f0215bb000820c01e1814c0d55985', class: {
354
+ 'inner-scroll': true,
355
+ 'scroll-x': scrollX,
356
+ 'scroll-y': scrollY,
357
+ overscroll: (scrollX || scrollY) && forceOverscroll,
358
+ }, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '0fe1bd05609a4b88ae2ce9addf5d5dc5dc1806f0' })), transitionShadow ? (h("div", { class: "transition-effect" }, h("div", { class: "transition-cover" }), h("div", { class: "transition-shadow" }))) : null, fixedSlotPlacement === 'after' ? h("slot", { name: "fixed" }) : null));
359
+ }
360
+ get el() { return this; }
361
+ static get style() { return IonContentStyle0; }
362
+ }, [1, "ion-content", {
363
+ "color": [513],
364
+ "fullscreen": [4],
365
+ "fixedSlotPlacement": [1, "fixed-slot-placement"],
366
+ "forceOverscroll": [1028, "force-overscroll"],
367
+ "scrollX": [4, "scroll-x"],
368
+ "scrollY": [4, "scroll-y"],
369
+ "scrollEvents": [4, "scroll-events"],
370
+ "getScrollElement": [64],
371
+ "getBackgroundElement": [64],
372
+ "scrollToTop": [64],
373
+ "scrollToBottom": [64],
374
+ "scrollByPoint": [64],
375
+ "scrollToPoint": [64]
376
+ }, [[9, "resize", "onResize"]]]);
377
+ const getParentElement = (el) => {
378
+ var _a;
379
+ if (el.parentElement) {
380
+ // normal element with a parent element
381
+ return el.parentElement;
382
+ }
383
+ if ((_a = el.parentNode) === null || _a === void 0 ? void 0 : _a.host) {
384
+ // shadow dom's document fragment
385
+ return el.parentNode.host;
386
+ }
387
+ return null;
388
+ };
389
+ const getPageElement = (el) => {
390
+ const tabs = el.closest('ion-tabs');
391
+ if (tabs) {
392
+ return tabs;
393
+ }
394
+ /**
395
+ * If we're in a popover, we need to use its wrapper so we can account for space
396
+ * between the popover and the edges of the screen. But if the popover contains
397
+ * its own page element, we should use that instead.
398
+ */
399
+ const page = el.closest('ion-app, ion-page, .ion-page, page-inner, .popover-content');
400
+ if (page) {
401
+ return page;
402
+ }
403
+ return getParentElement(el);
404
+ };
405
+ // ******** DOM READ ****************
406
+ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
407
+ const prevX = detail.currentX;
408
+ const prevY = detail.currentY;
409
+ const prevT = detail.currentTime;
410
+ const currentX = el.scrollLeft;
411
+ const currentY = el.scrollTop;
412
+ const timeDelta = timestamp - prevT;
413
+ if (shouldStart) {
414
+ // remember the start positions
415
+ detail.startTime = timestamp;
416
+ detail.startX = currentX;
417
+ detail.startY = currentY;
418
+ detail.velocityX = detail.velocityY = 0;
419
+ }
420
+ detail.currentTime = timestamp;
421
+ detail.currentX = detail.scrollLeft = currentX;
422
+ detail.currentY = detail.scrollTop = currentY;
423
+ detail.deltaX = currentX - detail.startX;
424
+ detail.deltaY = currentY - detail.startY;
425
+ if (timeDelta > 0 && timeDelta < 100) {
426
+ const velocityX = (currentX - prevX) / timeDelta;
427
+ const velocityY = (currentY - prevY) / timeDelta;
428
+ detail.velocityX = velocityX * 0.7 + detail.velocityX * 0.3;
429
+ detail.velocityY = velocityY * 0.7 + detail.velocityY * 0.3;
430
+ }
431
+ };
432
+ function defineCustomElement() {
433
+ if (typeof customElements === "undefined") {
434
+ return;
435
+ }
436
+ const components = ["ion-content"];
437
+ components.forEach(tagName => { switch (tagName) {
438
+ case "ion-content":
439
+ if (!customElements.get(tagName)) {
440
+ customElements.define(tagName, Content);
441
+ }
442
+ break;
443
+ } });
444
+ }
445
+
446
+ export { Content as C, defineCustomElement as d };