@ionic/core 8.0.0-dev.11709245047.1565a499 → 8.0.0-dev.11711035263.183d2423

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 (762) hide show
  1. package/components/action-sheet.js +3 -3
  2. package/components/alert.js +2 -2
  3. package/components/animation.js +9 -250
  4. package/components/backdrop.js +1 -1
  5. package/components/button.js +2 -2
  6. package/components/buttons.js +3 -3
  7. package/components/checkbox.js +3 -3
  8. package/components/data.js +23 -38
  9. package/components/haptic.js +6 -54
  10. package/components/hardware-back-button.js +3 -3
  11. package/components/helpers.js +1 -54
  12. package/components/index7.js +3 -1
  13. package/components/index9.js +1 -1
  14. package/components/input-shims.js +2 -1
  15. package/components/input.utils.js +12 -0
  16. package/components/ion-app.js +4 -4
  17. package/components/ion-avatar.js +1 -1
  18. package/components/ion-back-button.js +2 -2
  19. package/components/ion-badge.js +2 -2
  20. package/components/ion-breadcrumb.js +2 -2
  21. package/components/ion-breadcrumbs.js +2 -2
  22. package/components/ion-card-content.js +1 -1
  23. package/components/ion-card-header.js +2 -2
  24. package/components/ion-card-subtitle.js +2 -2
  25. package/components/ion-card-title.js +2 -2
  26. package/components/ion-card.js +1 -1
  27. package/components/ion-chip.js +2 -2
  28. package/components/ion-col.js +2 -2
  29. package/components/ion-content.js +3 -3
  30. package/components/ion-datetime-button.js +11 -10
  31. package/components/ion-datetime.js +75 -12
  32. package/components/ion-fab-button.js +2 -2
  33. package/components/ion-fab-list.js +2 -2
  34. package/components/ion-fab.js +2 -2
  35. package/components/ion-footer.js +2 -2
  36. package/components/ion-grid.js +2 -2
  37. package/components/ion-header.js +3 -3
  38. package/components/ion-img.js +1 -1
  39. package/components/ion-infinite-scroll-content.js +2 -2
  40. package/components/ion-infinite-scroll.js +1 -1
  41. package/components/ion-input-password-toggle.d.ts +11 -0
  42. package/components/ion-input-password-toggle.js +132 -0
  43. package/components/ion-input.js +28 -9
  44. package/components/ion-item-divider.js +1 -1
  45. package/components/ion-loading.js +2 -2
  46. package/components/ion-menu-button.js +3 -3
  47. package/components/ion-menu-toggle.js +2 -2
  48. package/components/ion-menu.js +7 -28
  49. package/components/ion-modal.js +37 -5
  50. package/components/ion-nav-link.js +1 -1
  51. package/components/ion-nav.js +1 -1
  52. package/components/ion-note.js +43 -1
  53. package/components/ion-picker-legacy.js +2 -2
  54. package/components/ion-progress-bar.js +1 -1
  55. package/components/ion-range.js +137 -45
  56. package/components/ion-refresher-content.js +2 -2
  57. package/components/ion-refresher.js +1 -1
  58. package/components/ion-reorder-group.js +1 -1
  59. package/components/ion-reorder.js +2 -2
  60. package/components/ion-router-link.js +2 -2
  61. package/components/ion-router-outlet.js +1 -1
  62. package/components/ion-router.js +1 -1
  63. package/components/ion-row.js +1 -1
  64. package/components/ion-searchbar.js +35 -6
  65. package/components/ion-segment-button.js +3 -3
  66. package/components/ion-segment.js +2 -2
  67. package/components/ion-select-option.js +1 -1
  68. package/components/ion-select.js +28 -34
  69. package/components/ion-skeleton-text.js +2 -2
  70. package/components/ion-split-pane.js +2 -2
  71. package/components/ion-tab-bar.js +2 -2
  72. package/components/ion-tab-button.js +2 -2
  73. package/components/ion-tab.js +2 -2
  74. package/components/ion-tabs.js +1 -1
  75. package/components/ion-text.js +2 -2
  76. package/components/ion-textarea.js +5 -6
  77. package/components/ion-thumbnail.js +1 -1
  78. package/components/ion-title.js +2 -2
  79. package/components/ion-toast.js +2 -2
  80. package/components/ion-toggle.js +4 -4
  81. package/components/ion-toolbar.js +2 -2
  82. package/components/item.js +30 -97
  83. package/components/label.js +4 -4
  84. package/components/list-header.js +2 -2
  85. package/components/overlays.js +140 -55
  86. package/components/picker-column-option.js +2 -2
  87. package/components/picker-column.js +25 -6
  88. package/components/picker-column2.js +2 -2
  89. package/components/picker.js +2 -2
  90. package/components/popover.js +4 -4
  91. package/components/ripple-effect.js +1 -1
  92. package/components/select-popover.js +13 -19
  93. package/components/spinner.js +1 -1
  94. package/css/palettes/dark.always.css.map +1 -0
  95. package/css/{themes → palettes}/dark.class.css +4 -4
  96. package/css/palettes/dark.class.css.map +1 -0
  97. package/css/palettes/dark.system.css.map +1 -0
  98. package/css/palettes/high-contrast-dark.always.css.map +1 -0
  99. package/css/{themes → palettes}/high-contrast-dark.class.css +10 -10
  100. package/css/palettes/high-contrast-dark.class.css.map +1 -0
  101. package/css/palettes/high-contrast-dark.system.css.map +1 -0
  102. package/css/palettes/high-contrast.always.css.map +1 -0
  103. package/css/{themes → palettes}/high-contrast.class.css +31 -31
  104. package/css/palettes/high-contrast.class.css.map +1 -0
  105. package/css/palettes/high-contrast.system.css.map +1 -0
  106. package/dist/cjs/{animation-4ad55058.js → animation-b4fdf128.js} +9 -250
  107. package/dist/cjs/{app-globals-92ad1b3d.js → app-globals-e132c781.js} +1 -1
  108. package/dist/cjs/{button-active-8f6a8e77.js → button-active-e2ed5329.js} +2 -2
  109. package/dist/cjs/{data-e2bf21de.js → data-21dc0f81.js} +22 -39
  110. package/dist/cjs/{framework-delegate-53817ef1.js → framework-delegate-df3a2b04.js} +1 -1
  111. package/dist/cjs/{haptic-b882e0bb.js → haptic-f6b37aa3.js} +6 -54
  112. package/dist/cjs/{hardware-back-button-2696acaf.js → hardware-back-button-1c67a5a2.js} +5 -5
  113. package/dist/cjs/{helpers-b71ca811.js → helpers-71097d9c.js} +0 -54
  114. package/dist/cjs/{index-f52c6d38.js → index-073c7cdc.js} +4 -0
  115. package/dist/cjs/{index-0ffe376d.js → index-2d21d526.js} +443 -14
  116. package/dist/cjs/{index-347883f6.js → index-7479ea5a.js} +1 -1
  117. package/dist/cjs/{index-7574e3d2.js → index-a91a3e24.js} +1 -1
  118. package/dist/cjs/{index-16fc2c94.js → index-c2191aa0.js} +4 -4
  119. package/dist/cjs/{index-88b3bd6f.js → index-ef9261f8.js} +4 -4
  120. package/dist/cjs/index.cjs.js +11 -11
  121. package/dist/cjs/{input-shims-a5abf69e.js → input-shims-77b14f24.js} +4 -3
  122. package/dist/cjs/{input.utils-5175aea1.js → input.utils-ca74d73a.js} +13 -1
  123. package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -4
  124. package/dist/cjs/ion-action-sheet.cjs.entry.js +12 -12
  125. package/dist/cjs/ion-alert.cjs.entry.js +11 -11
  126. package/dist/cjs/ion-app_8.cjs.entry.js +30 -30
  127. package/dist/cjs/ion-avatar_3.cjs.entry.js +6 -6
  128. package/dist/cjs/ion-back-button.cjs.entry.js +6 -6
  129. package/dist/cjs/ion-backdrop.cjs.entry.js +3 -3
  130. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +8 -8
  131. package/dist/cjs/ion-button_2.cjs.entry.js +5 -5
  132. package/dist/cjs/ion-card_5.cjs.entry.js +11 -11
  133. package/dist/cjs/ion-checkbox.cjs.entry.js +6 -6
  134. package/dist/cjs/ion-chip.cjs.entry.js +4 -4
  135. package/dist/cjs/ion-col_3.cjs.entry.js +7 -7
  136. package/dist/cjs/ion-datetime-button.cjs.entry.js +14 -13
  137. package/dist/cjs/ion-datetime_3.cjs.entry.js +85 -25
  138. package/dist/cjs/ion-fab_3.cjs.entry.js +10 -10
  139. package/dist/cjs/ion-img.cjs.entry.js +4 -4
  140. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +7 -7
  141. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +93 -0
  142. package/dist/cjs/ion-input.cjs.entry.js +30 -12
  143. package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
  144. package/dist/cjs/ion-item_8.cjs.entry.js +38 -93
  145. package/dist/cjs/ion-loading.cjs.entry.js +9 -9
  146. package/dist/cjs/ion-menu_3.cjs.entry.js +18 -39
  147. package/dist/cjs/ion-modal.cjs.entry.js +46 -14
  148. package/dist/cjs/ion-nav_2.cjs.entry.js +8 -8
  149. package/dist/cjs/ion-picker-column-option.cjs.entry.js +5 -5
  150. package/dist/cjs/ion-picker-column.cjs.entry.js +29 -10
  151. package/dist/cjs/ion-picker.cjs.entry.js +4 -4
  152. package/dist/cjs/ion-popover.cjs.entry.js +11 -11
  153. package/dist/cjs/ion-progress-bar.cjs.entry.js +4 -4
  154. package/dist/cjs/ion-radio_2.cjs.entry.js +3 -3
  155. package/dist/cjs/ion-range.cjs.entry.js +140 -48
  156. package/dist/cjs/ion-refresher_2.cjs.entry.js +9 -9
  157. package/dist/cjs/ion-reorder_2.cjs.entry.js +8 -8
  158. package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -3
  159. package/dist/cjs/ion-route_4.cjs.entry.js +5 -5
  160. package/dist/cjs/ion-searchbar.cjs.entry.js +32 -8
  161. package/dist/cjs/ion-segment_2.cjs.entry.js +8 -8
  162. package/dist/cjs/ion-select_3.cjs.entry.js +18 -18
  163. package/dist/cjs/ion-spinner.cjs.entry.js +3 -3
  164. package/dist/cjs/ion-split-pane.cjs.entry.js +4 -4
  165. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +7 -7
  166. package/dist/cjs/ion-tab_2.cjs.entry.js +6 -6
  167. package/dist/cjs/ion-text.cjs.entry.js +4 -4
  168. package/dist/cjs/ion-textarea.cjs.entry.js +9 -10
  169. package/dist/cjs/ion-toast.cjs.entry.js +9 -9
  170. package/dist/cjs/ion-toggle.cjs.entry.js +8 -8
  171. package/dist/cjs/{ionic-global-59a10130.js → ionic-global-5762eca9.js} +1 -1
  172. package/dist/cjs/ionic.cjs.js +28 -5
  173. package/dist/cjs/{ios.transition-b102ee38.js → ios.transition-2bb1c4d1.js} +4 -4
  174. package/dist/cjs/loader.cjs.js +4 -4
  175. package/dist/cjs/{md.transition-a5454240.js → md.transition-c0afd670.js} +4 -4
  176. package/dist/cjs/{notch-controller-8e0ae870.js → notch-controller-0042ad49.js} +1 -1
  177. package/dist/cjs/{overlays-6b7d156b.js → overlays-30b83581.js} +142 -56
  178. package/dist/cjs/{status-tap-b60dcbd8.js → status-tap-dc3b8fda.js} +3 -3
  179. package/dist/cjs/{swipe-back-72c5c8b7.js → swipe-back-29e88360.js} +1 -1
  180. package/dist/collection/collection-manifest.json +2 -1
  181. package/dist/collection/components/action-sheet/action-sheet.js +3 -3
  182. package/dist/collection/components/action-sheet/test/a11y/action-sheet.e2e.js +1 -1
  183. package/dist/collection/components/alert/alert.js +2 -2
  184. package/dist/collection/components/alert/test/a11y/alert.e2e.js +5 -1
  185. package/dist/collection/components/alert/test/basic/alert.e2e.js +1 -1
  186. package/dist/collection/components/app/app.js +4 -4
  187. package/dist/collection/components/avatar/avatar.js +1 -1
  188. package/dist/collection/components/back-button/back-button.js +2 -2
  189. package/dist/collection/components/back-button/test/a11y/back-button.e2e.js +1 -1
  190. package/dist/collection/components/backdrop/backdrop.js +1 -1
  191. package/dist/collection/components/badge/badge.js +2 -2
  192. package/dist/collection/components/badge/test/a11y/badge.e2e.js +1 -1
  193. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  194. package/dist/collection/components/breadcrumbs/breadcrumbs.js +2 -2
  195. package/dist/collection/components/button/button.js +2 -2
  196. package/dist/collection/components/button/test/a11y/button.e2e.js +2 -2
  197. package/dist/collection/components/buttons/buttons.js +2 -2
  198. package/dist/collection/components/card/card.js +1 -1
  199. package/dist/collection/components/card-content/card-content.js +1 -1
  200. package/dist/collection/components/card-header/card-header.js +2 -2
  201. package/dist/collection/components/card-subtitle/card-subtitle.js +2 -2
  202. package/dist/collection/components/card-title/card-title.js +2 -2
  203. package/dist/collection/components/checkbox/checkbox.js +3 -3
  204. package/dist/collection/components/checkbox/test/a11y/checkbox.e2e.js +1 -1
  205. package/dist/collection/components/checkbox/test/checkbox.spec.js +12 -0
  206. package/dist/collection/components/chip/chip.js +2 -2
  207. package/dist/collection/components/col/col.js +2 -2
  208. package/dist/collection/components/content/content.js +3 -3
  209. package/dist/collection/components/datetime/datetime.js +56 -12
  210. package/dist/collection/components/datetime/test/basic/datetime.e2e.js +80 -1
  211. package/dist/collection/components/datetime/test/format.spec.js +65 -15
  212. package/dist/collection/components/datetime/utils/format.js +24 -37
  213. package/dist/collection/components/datetime/utils/validate.js +45 -0
  214. package/dist/collection/components/datetime-button/datetime-button.js +11 -10
  215. package/dist/collection/components/datetime-button/test/basic/datetime-button.e2e.js +65 -0
  216. package/dist/collection/components/fab/fab.js +2 -2
  217. package/dist/collection/components/fab-button/fab-button.js +2 -2
  218. package/dist/collection/components/fab-button/test/a11y/fab-button.e2e.js +1 -1
  219. package/dist/collection/components/fab-list/fab-list.js +2 -2
  220. package/dist/collection/components/footer/footer.js +2 -2
  221. package/dist/collection/components/grid/grid.js +2 -2
  222. package/dist/collection/components/header/header.ios.css +5 -2
  223. package/dist/collection/components/header/header.js +2 -2
  224. package/dist/collection/components/header/test/basic/header.e2e.js +77 -0
  225. package/dist/collection/components/img/img.js +1 -1
  226. package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
  227. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
  228. package/dist/collection/components/input/input.ios.css +15 -3
  229. package/dist/collection/components/input/input.js +26 -29
  230. package/dist/collection/components/input/input.md.css +17 -5
  231. package/dist/collection/components/input/test/a11y/input.e2e.js +1 -1
  232. package/dist/collection/components/input/test/highlight/input.e2e.js +144 -0
  233. package/dist/collection/components/input/test/item/input.e2e.js +21 -0
  234. package/dist/collection/components/input/test/slot/input.e2e.js +8 -0
  235. package/dist/collection/components/input-password-toggle/input-password-toggle.ios.css +0 -0
  236. package/dist/collection/components/input-password-toggle/input-password-toggle.js +183 -0
  237. package/dist/collection/components/input-password-toggle/input-password-toggle.md.css +0 -0
  238. package/dist/collection/components/input-password-toggle/test/a11y/input-password-toggle.e2e.js +21 -0
  239. package/dist/collection/components/input-password-toggle/test/basic/input-password-toggle.e2e.js +38 -0
  240. package/dist/collection/components/input-password-toggle/test/input-password-toggle.spec.js +76 -0
  241. package/dist/collection/components/item/item.ios.css +6 -198
  242. package/dist/collection/components/item/item.js +22 -170
  243. package/dist/collection/components/item/item.md.css +12 -375
  244. package/dist/collection/components/item/test/basic/item.e2e.js +0 -5
  245. package/dist/collection/components/item/test/buttons/item.e2e.js +20 -4
  246. package/dist/collection/components/item/test/item.spec.js +1 -1
  247. package/dist/collection/components/item-divider/item-divider.md.css +4 -14
  248. package/dist/collection/components/item-sliding/test/a11y/item-sliding.e2e.js +1 -1
  249. package/dist/collection/components/label/label.ios.css +0 -5
  250. package/dist/collection/components/label/label.js +1 -1
  251. package/dist/collection/components/label/label.md.css +0 -75
  252. package/dist/collection/components/label/test/a11y/label.e2e.js +1 -1
  253. package/dist/collection/components/list-header/list-header.js +2 -2
  254. package/dist/collection/components/loading/loading.js +2 -2
  255. package/dist/collection/components/loading/test/a11y/loading.e2e.js +1 -1
  256. package/dist/collection/components/menu/menu.js +16 -30
  257. package/dist/collection/components/menu-button/menu-button.js +2 -2
  258. package/dist/collection/components/menu-button/test/a11y/menu-button.e2e.js +1 -1
  259. package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
  260. package/dist/collection/components/modal/modal.js +37 -5
  261. package/dist/collection/components/modal/test/modal-attributes.spec.js +32 -0
  262. package/dist/collection/components/nav/nav.js +1 -1
  263. package/dist/collection/components/nav-link/nav-link.js +1 -1
  264. package/dist/collection/components/note/note.js +2 -2
  265. package/dist/collection/components/picker/picker.js +2 -2
  266. package/dist/collection/components/picker-column/picker-column.js +25 -6
  267. package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
  268. package/dist/collection/components/picker-legacy/picker.js +2 -2
  269. package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
  270. package/dist/collection/components/popover/popover.js +5 -4
  271. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  272. package/dist/collection/components/progress-bar/test/a11y/progress-bar.e2e.js +1 -1
  273. package/dist/collection/components/radio/test/a11y/radio.e2e.js +1 -1
  274. package/dist/collection/components/range/range.js +137 -45
  275. package/dist/collection/components/range/test/a11y/range.e2e.js +1 -1
  276. package/dist/collection/components/range/test/label/range.spec.js +24 -0
  277. package/dist/collection/components/range/test/range-events.e2e.js +27 -0
  278. package/dist/collection/components/refresher/refresher.js +1 -1
  279. package/dist/collection/components/refresher/test/a11y/refresher.e2e.js +1 -1
  280. package/dist/collection/components/refresher-content/refresher-content.js +1 -1
  281. package/dist/collection/components/reorder/reorder.js +1 -1
  282. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  283. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  284. package/dist/collection/components/router-link/router-link.js +2 -2
  285. package/dist/collection/components/router-link/test/a11y/router-link.e2e.js +1 -1
  286. package/dist/collection/components/router-outlet/router-outlet.js +1 -1
  287. package/dist/collection/components/row/row.js +1 -1
  288. package/dist/collection/components/searchbar/searchbar.js +84 -5
  289. package/dist/collection/components/searchbar/test/searchbar.spec.js +20 -2
  290. package/dist/collection/components/segment/segment.js +2 -2
  291. package/dist/collection/components/segment/test/a11y/segment.e2e.js +1 -1
  292. package/dist/collection/components/segment-button/segment-button.js +3 -3
  293. package/dist/collection/components/select/select.ios.css +7 -2
  294. package/dist/collection/components/select/select.js +7 -7
  295. package/dist/collection/components/select/select.md.css +6 -29
  296. package/dist/collection/components/select/test/a11y/select.e2e.js +1 -1
  297. package/dist/collection/components/select/test/highlight/select.e2e.js +88 -4
  298. package/dist/collection/components/select/test/select.spec.js +22 -0
  299. package/dist/collection/components/select/test/slot/select.e2e.js +8 -0
  300. package/dist/collection/components/select-option/select-option.js +1 -1
  301. package/dist/collection/components/select-popover/select-popover.js +1 -1
  302. package/dist/collection/components/select-popover/test/a11y/select-popover.e2e.js +1 -1
  303. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  304. package/dist/collection/components/spinner/spinner.js +1 -1
  305. package/dist/collection/components/split-pane/split-pane.js +2 -2
  306. package/dist/collection/components/tab/tab.js +2 -2
  307. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  308. package/dist/collection/components/tab-button/tab-button.js +2 -2
  309. package/dist/collection/components/tabs/tabs.js +1 -1
  310. package/dist/collection/components/text/text.js +2 -2
  311. package/dist/collection/components/textarea/test/a11y/textarea.e2e.js +1 -1
  312. package/dist/collection/components/textarea/test/highlight/textarea.e2e.js +144 -0
  313. package/dist/collection/components/textarea/test/item/textarea.e2e.js +21 -0
  314. package/dist/collection/components/textarea/test/slot/textarea.e2e.js +8 -0
  315. package/dist/collection/components/textarea/textarea.ios.css +4 -22
  316. package/dist/collection/components/textarea/textarea.js +2 -26
  317. package/dist/collection/components/textarea/textarea.md.css +6 -17
  318. package/dist/collection/components/thumbnail/thumbnail.js +1 -1
  319. package/dist/collection/components/title/title.js +2 -2
  320. package/dist/collection/components/toast/test/a11y/toast.e2e.js +2 -2
  321. package/dist/collection/components/toast/toast.js +2 -2
  322. package/dist/collection/components/toggle/test/a11y/toggle.e2e.js +1 -1
  323. package/dist/collection/components/toggle/toggle.js +4 -4
  324. package/dist/collection/components/toolbar/toolbar.js +2 -2
  325. package/dist/collection/css/test/a11y/typography.e2e.js +1 -1
  326. package/dist/collection/themes/test/colors/theme.e2e.js +2 -2
  327. package/dist/collection/utils/animation/animation-utils.js +0 -102
  328. package/dist/collection/utils/animation/animation.js +10 -141
  329. package/dist/collection/utils/animation/test/animation.spec.js +0 -89
  330. package/dist/collection/utils/animation/test/animationbuilder/animation.e2e.js +0 -4
  331. package/dist/collection/utils/animation/test/basic/animation.e2e.js +0 -4
  332. package/dist/collection/utils/animation/test/display/animation.e2e.js +0 -4
  333. package/dist/collection/utils/animation/test/hooks/animation.e2e.js +0 -4
  334. package/dist/collection/utils/animation/test/multiple/animation.e2e.js +0 -7
  335. package/dist/collection/utils/focus-trap.js +78 -0
  336. package/dist/collection/utils/forms/index.js +0 -1
  337. package/dist/collection/utils/hardware-back-button.js +2 -2
  338. package/dist/collection/utils/helpers.js +0 -53
  339. package/dist/collection/utils/input-shims/input-shims.js +2 -1
  340. package/dist/collection/utils/native/haptic.js +6 -54
  341. package/dist/collection/utils/overlays.js +64 -53
  342. package/dist/collection/utils/slot-mutation-controller.js +12 -0
  343. package/dist/collection/utils/test/overlays/overlays.spec.js +53 -0
  344. package/dist/collection/utils/test/playwright/generator.js +17 -17
  345. package/dist/collection/utils/test/playwright/page/utils/set-content.js +6 -6
  346. package/dist/docs.json +341 -193
  347. package/dist/esm/{animation-a4acf150.js → animation-eab5a4ca.js} +9 -250
  348. package/dist/esm/{app-globals-5cf6195b.js → app-globals-80842d68.js} +1 -1
  349. package/dist/esm/{button-active-4407b98c.js → button-active-824983fa.js} +2 -2
  350. package/dist/esm/{data-691286f1.js → data-ae11fd43.js} +23 -38
  351. package/dist/esm/{framework-delegate-1eb3236c.js → framework-delegate-3dede018.js} +1 -1
  352. package/dist/esm/{haptic-554688a5.js → haptic-ac164e4c.js} +6 -54
  353. package/dist/esm/{hardware-back-button-b410a047.js → hardware-back-button-fb295e3a.js} +5 -5
  354. package/dist/esm/{helpers-ae74b3c9.js → helpers-eab4f597.js} +1 -54
  355. package/dist/esm/{index-8758824c.js → index-0089f1fa.js} +4 -4
  356. package/dist/esm/{index-66871a1d.js → index-044b5a86.js} +1 -1
  357. package/dist/esm/{index-4c30cddd.js → index-5d6a0317.js} +443 -15
  358. package/dist/esm/{index-f7dc70ba.js → index-e2cf2ceb.js} +3 -1
  359. package/dist/esm/{index-1eff8599.js → index-f27077ac.js} +4 -4
  360. package/dist/esm/{index-1f563746.js → index-fa221975.js} +1 -1
  361. package/dist/esm/index.js +11 -11
  362. package/dist/esm/{input-shims-d354e359.js → input-shims-196afa11.js} +4 -3
  363. package/dist/esm/{input.utils-482fc893.js → input.utils-426cc674.js} +13 -1
  364. package/dist/esm/ion-accordion_2.entry.js +4 -4
  365. package/dist/esm/ion-action-sheet.entry.js +12 -12
  366. package/dist/esm/ion-alert.entry.js +11 -11
  367. package/dist/esm/ion-app_8.entry.js +30 -30
  368. package/dist/esm/ion-avatar_3.entry.js +6 -6
  369. package/dist/esm/ion-back-button.entry.js +6 -6
  370. package/dist/esm/ion-backdrop.entry.js +3 -3
  371. package/dist/esm/ion-breadcrumb_2.entry.js +8 -8
  372. package/dist/esm/ion-button_2.entry.js +5 -5
  373. package/dist/esm/ion-card_5.entry.js +11 -11
  374. package/dist/esm/ion-checkbox.entry.js +6 -6
  375. package/dist/esm/ion-chip.entry.js +4 -4
  376. package/dist/esm/ion-col_3.entry.js +7 -7
  377. package/dist/esm/ion-datetime-button.entry.js +14 -13
  378. package/dist/esm/ion-datetime_3.entry.js +85 -25
  379. package/dist/esm/ion-fab_3.entry.js +10 -10
  380. package/dist/esm/ion-img.entry.js +4 -4
  381. package/dist/esm/ion-infinite-scroll_2.entry.js +7 -7
  382. package/dist/esm/ion-input-password-toggle.entry.js +89 -0
  383. package/dist/esm/ion-input.entry.js +30 -12
  384. package/dist/esm/ion-item-option_3.entry.js +4 -4
  385. package/dist/esm/ion-item_8.entry.js +38 -93
  386. package/dist/esm/ion-loading.entry.js +9 -9
  387. package/dist/esm/ion-menu_3.entry.js +18 -39
  388. package/dist/esm/ion-modal.entry.js +46 -14
  389. package/dist/esm/ion-nav_2.entry.js +8 -8
  390. package/dist/esm/ion-picker-column-option.entry.js +5 -5
  391. package/dist/esm/ion-picker-column.entry.js +29 -10
  392. package/dist/esm/ion-picker.entry.js +4 -4
  393. package/dist/esm/ion-popover.entry.js +11 -11
  394. package/dist/esm/ion-progress-bar.entry.js +4 -4
  395. package/dist/esm/ion-radio_2.entry.js +3 -3
  396. package/dist/esm/ion-range.entry.js +140 -48
  397. package/dist/esm/ion-refresher_2.entry.js +9 -9
  398. package/dist/esm/ion-reorder_2.entry.js +8 -8
  399. package/dist/esm/ion-ripple-effect.entry.js +3 -3
  400. package/dist/esm/ion-route_4.entry.js +5 -5
  401. package/dist/esm/ion-searchbar.entry.js +32 -8
  402. package/dist/esm/ion-segment_2.entry.js +8 -8
  403. package/dist/esm/ion-select_3.entry.js +18 -18
  404. package/dist/esm/ion-spinner.entry.js +3 -3
  405. package/dist/esm/ion-split-pane.entry.js +4 -4
  406. package/dist/esm/ion-tab-bar_2.entry.js +7 -7
  407. package/dist/esm/ion-tab_2.entry.js +6 -6
  408. package/dist/esm/ion-text.entry.js +4 -4
  409. package/dist/esm/ion-textarea.entry.js +9 -10
  410. package/dist/esm/ion-toast.entry.js +9 -9
  411. package/dist/esm/ion-toggle.entry.js +8 -8
  412. package/dist/esm/{ionic-global-ad9a1810.js → ionic-global-a589c12c.js} +1 -1
  413. package/dist/esm/ionic.js +29 -6
  414. package/dist/esm/{ios.transition-189b73b7.js → ios.transition-632deb95.js} +4 -4
  415. package/dist/esm/loader.js +5 -5
  416. package/dist/esm/{md.transition-c9761eef.js → md.transition-3bcf4011.js} +4 -4
  417. package/dist/esm/{notch-controller-18bf9f76.js → notch-controller-cff691e5.js} +1 -1
  418. package/dist/esm/{overlays-c69d2a07.js → overlays-d41f74ac.js} +142 -57
  419. package/dist/esm/{status-tap-1d638ee6.js → status-tap-45595148.js} +3 -3
  420. package/dist/esm/{swipe-back-348f1971.js → swipe-back-57844616.js} +1 -1
  421. package/dist/esm-es5/animation-eab5a4ca.js +4 -0
  422. package/dist/esm-es5/app-globals-80842d68.js +4 -0
  423. package/dist/esm-es5/{button-active-4407b98c.js → button-active-824983fa.js} +1 -1
  424. package/dist/esm-es5/data-ae11fd43.js +4 -0
  425. package/dist/esm-es5/{framework-delegate-1eb3236c.js → framework-delegate-3dede018.js} +1 -1
  426. package/dist/esm-es5/haptic-ac164e4c.js +4 -0
  427. package/dist/esm-es5/hardware-back-button-fb295e3a.js +4 -0
  428. package/dist/esm-es5/helpers-eab4f597.js +4 -0
  429. package/dist/esm-es5/{index-8758824c.js → index-0089f1fa.js} +1 -1
  430. package/dist/esm-es5/{index-66871a1d.js → index-044b5a86.js} +1 -1
  431. package/dist/esm-es5/index-5d6a0317.js +5 -0
  432. package/dist/esm-es5/{index-f7dc70ba.js → index-e2cf2ceb.js} +1 -1
  433. package/dist/esm-es5/{index-1eff8599.js → index-f27077ac.js} +1 -1
  434. package/dist/esm-es5/{index-1f563746.js → index-fa221975.js} +1 -1
  435. package/dist/esm-es5/index.js +1 -1
  436. package/dist/esm-es5/{input-shims-d354e359.js → input-shims-196afa11.js} +1 -1
  437. package/dist/esm-es5/input.utils-426cc674.js +4 -0
  438. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  439. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  440. package/dist/esm-es5/ion-alert.entry.js +1 -1
  441. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  442. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  443. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  444. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  445. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  446. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  447. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  448. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  449. package/dist/esm-es5/ion-chip.entry.js +1 -1
  450. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  451. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  452. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  453. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  454. package/dist/esm-es5/ion-img.entry.js +1 -1
  455. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  456. package/dist/esm-es5/ion-input-password-toggle.entry.js +4 -0
  457. package/dist/esm-es5/ion-input.entry.js +1 -1
  458. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  459. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  460. package/dist/esm-es5/ion-loading.entry.js +1 -1
  461. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  462. package/dist/esm-es5/ion-modal.entry.js +1 -1
  463. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  464. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  465. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  466. package/dist/esm-es5/ion-picker.entry.js +1 -1
  467. package/dist/esm-es5/ion-popover.entry.js +1 -1
  468. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  469. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  470. package/dist/esm-es5/ion-range.entry.js +1 -1
  471. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  472. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  473. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  474. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  475. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  476. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  477. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  478. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  479. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  480. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  481. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  482. package/dist/esm-es5/ion-text.entry.js +1 -1
  483. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  484. package/dist/esm-es5/ion-toast.entry.js +1 -1
  485. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  486. package/dist/esm-es5/{ionic-global-ad9a1810.js → ionic-global-a589c12c.js} +1 -1
  487. package/dist/esm-es5/ionic.js +1 -1
  488. package/dist/esm-es5/{ios.transition-189b73b7.js → ios.transition-632deb95.js} +1 -1
  489. package/dist/esm-es5/loader.js +1 -1
  490. package/dist/esm-es5/md.transition-3bcf4011.js +4 -0
  491. package/dist/esm-es5/{notch-controller-18bf9f76.js → notch-controller-cff691e5.js} +1 -1
  492. package/dist/esm-es5/overlays-d41f74ac.js +4 -0
  493. package/dist/esm-es5/{status-tap-1d638ee6.js → status-tap-45595148.js} +1 -1
  494. package/dist/esm-es5/{swipe-back-348f1971.js → swipe-back-57844616.js} +1 -1
  495. package/dist/html.html-data.json +93 -27
  496. package/dist/ionic/index.esm.js +1 -1
  497. package/dist/ionic/ionic.esm.js +1 -1
  498. package/dist/ionic/ionic.js +1 -1
  499. package/dist/ionic/{p-5d7e32ce.js → p-031c5621.js} +1 -1
  500. package/dist/ionic/{p-1a4db355.system.entry.js → p-04bdc816.system.entry.js} +2 -2
  501. package/dist/ionic/p-07759435.system.js +4 -0
  502. package/dist/ionic/{p-4bbc949f.system.entry.js → p-07927036.system.entry.js} +1 -1
  503. package/dist/ionic/p-0e4c9e45.system.js +4 -0
  504. package/dist/ionic/{p-3c51cf97.system.entry.js → p-103ec049.system.entry.js} +1 -1
  505. package/dist/ionic/{p-f7d802e1.entry.js → p-126207f8.entry.js} +1 -1
  506. package/dist/ionic/{p-4dfe0487.system.entry.js → p-1d3f79b2.system.entry.js} +1 -1
  507. package/dist/ionic/{p-6e14d3ca.system.entry.js → p-1d528988.system.entry.js} +1 -1
  508. package/dist/ionic/p-1e955a45.system.js +4 -0
  509. package/dist/ionic/p-20bf9f84.entry.js +4 -0
  510. package/dist/ionic/{p-6dbea874.system.entry.js → p-210248f5.system.entry.js} +1 -1
  511. package/dist/ionic/{p-3d77b300.system.entry.js → p-219c17cf.system.entry.js} +1 -1
  512. package/dist/ionic/{p-de0a7606.system.entry.js → p-23838a94.system.entry.js} +1 -1
  513. package/dist/ionic/{p-ceceac26.js → p-239906f1.js} +1 -1
  514. package/dist/ionic/{p-916a4e14.entry.js → p-2807660b.entry.js} +1 -1
  515. package/dist/ionic/{p-0612cdcc.system.entry.js → p-282bd5f9.system.entry.js} +1 -1
  516. package/dist/ionic/p-29ef3b9b.entry.js +4 -0
  517. package/dist/ionic/{p-8a50f8d6.system.js → p-2cc2c631.system.js} +1 -1
  518. package/dist/ionic/p-2d34b04a.system.entry.js +4 -0
  519. package/dist/ionic/p-2f53c3eb.js +4 -0
  520. package/dist/ionic/{p-174856b4.system.js → p-31794e40.system.js} +1 -1
  521. package/dist/ionic/{p-c880c809.js → p-325c61a4.js} +1 -1
  522. package/dist/ionic/p-34b8c5bc.entry.js +4 -0
  523. package/dist/ionic/{p-cefbb7b7.entry.js → p-3599e243.entry.js} +1 -1
  524. package/dist/ionic/p-364044f0.js +4 -0
  525. package/dist/ionic/{p-3807cd45.system.entry.js → p-3739de23.system.entry.js} +1 -1
  526. package/dist/ionic/{p-d84c9fc4.entry.js → p-3785c067.entry.js} +1 -1
  527. package/dist/ionic/p-3895e131.system.entry.js +4 -0
  528. package/dist/ionic/p-38b129b6.entry.js +4 -0
  529. package/dist/ionic/p-38e25e67.js +4 -0
  530. package/dist/ionic/{p-3209217f.entry.js → p-3ad1b1c5.entry.js} +1 -1
  531. package/dist/ionic/p-3bf7a38d.system.entry.js +4 -0
  532. package/dist/ionic/{p-2dcf2ec2.system.entry.js → p-3c1aac30.system.entry.js} +1 -1
  533. package/dist/ionic/{p-d7c78a97.system.entry.js → p-3d55c50f.system.entry.js} +1 -1
  534. package/dist/ionic/{p-fd783a38.system.entry.js → p-3e6e53fe.system.entry.js} +1 -1
  535. package/dist/ionic/{p-174b0d50.system.entry.js → p-40976b1c.system.entry.js} +1 -1
  536. package/dist/ionic/{p-acf70e64.system.entry.js → p-456ae20a.system.entry.js} +1 -1
  537. package/dist/ionic/p-468e20c0.system.entry.js +4 -0
  538. package/dist/ionic/p-49e5401f.entry.js +4 -0
  539. package/dist/ionic/{p-c9e21694.system.entry.js → p-4a20a758.system.entry.js} +1 -1
  540. package/dist/ionic/p-4a3055ef.system.js +4 -0
  541. package/dist/ionic/{p-e46adaf1.system.entry.js → p-4b318f5e.system.entry.js} +1 -1
  542. package/dist/ionic/{p-b2d58604.system.entry.js → p-4d21e85e.system.entry.js} +2 -2
  543. package/dist/ionic/p-4decdc16.system.entry.js +4 -0
  544. package/dist/ionic/{p-ef9736b9.entry.js → p-50633cad.entry.js} +1 -1
  545. package/dist/ionic/{p-1f79e54a.entry.js → p-527e1d8a.entry.js} +1 -1
  546. package/dist/ionic/{p-6aeb0272.entry.js → p-5644df37.entry.js} +1 -1
  547. package/dist/ionic/p-564554d0.system.js +4 -0
  548. package/dist/ionic/{p-16e06393.system.js → p-56864c25.system.js} +1 -1
  549. package/dist/ionic/{p-f7c3d736.system.entry.js → p-57a3b59e.system.entry.js} +1 -1
  550. package/dist/ionic/{p-8fe3c4ef.entry.js → p-5b4b977f.entry.js} +1 -1
  551. package/dist/ionic/p-5b52897c.js +4 -0
  552. package/dist/ionic/{p-415ccddd.entry.js → p-5c6d4276.entry.js} +1 -1
  553. package/dist/ionic/{p-9f84474d.entry.js → p-5f6c0372.entry.js} +1 -1
  554. package/dist/ionic/{p-97248203.system.entry.js → p-647981a4.system.entry.js} +1 -1
  555. package/dist/ionic/{p-f0a7e80b.js → p-652a7913.js} +1 -1
  556. package/dist/ionic/p-659d8f84.entry.js +4 -0
  557. package/dist/ionic/p-668607c2.system.js +4 -0
  558. package/dist/ionic/{p-5d530ae5.entry.js → p-66e50777.entry.js} +1 -1
  559. package/dist/ionic/{p-eb9803e9.system.js → p-6a62da36.system.js} +1 -1
  560. package/dist/ionic/p-6f734552.system.entry.js +4 -0
  561. package/dist/ionic/{p-1df25966.entry.js → p-7002bc75.entry.js} +1 -1
  562. package/dist/ionic/{p-de55ec45.js → p-78b3da77.js} +1 -1
  563. package/dist/ionic/{p-5133c4a3.system.entry.js → p-7abeea68.system.entry.js} +1 -1
  564. package/dist/ionic/{p-df6a1571.entry.js → p-7b8ece87.entry.js} +1 -1
  565. package/dist/ionic/p-7c4c37ae.system.js +4 -0
  566. package/dist/ionic/p-7c7e495d.system.js +4 -0
  567. package/dist/ionic/p-84025e3c.entry.js +4 -0
  568. package/dist/ionic/{p-ec77b7ad.system.entry.js → p-8412860b.system.entry.js} +1 -1
  569. package/dist/ionic/p-8543c360.system.entry.js +4 -0
  570. package/dist/ionic/{p-12b55b00.system.entry.js → p-86bdb32e.system.entry.js} +1 -1
  571. package/dist/ionic/p-8818519d.entry.js +4 -0
  572. package/dist/ionic/{p-ef636601.entry.js → p-887984fc.entry.js} +1 -1
  573. package/dist/ionic/p-89b61afc.js +4 -0
  574. package/dist/ionic/{p-1d545773.entry.js → p-8ed900e4.entry.js} +1 -1
  575. package/dist/ionic/p-9146695e.system.js +4 -0
  576. package/dist/ionic/{p-0dca0eee.system.entry.js → p-91567c90.system.entry.js} +1 -1
  577. package/dist/ionic/{p-f2473724.js → p-91a83ede.js} +1 -1
  578. package/dist/ionic/{p-c8d61b6c.system.entry.js → p-92b05b70.system.entry.js} +1 -1
  579. package/dist/ionic/p-96c06026.entry.js +4 -0
  580. package/dist/ionic/p-978f4710.js +4 -0
  581. package/dist/ionic/{p-973c7550.system.entry.js → p-9a4b9c91.system.entry.js} +1 -1
  582. package/dist/ionic/p-9b5d033a.system.entry.js +4 -0
  583. package/dist/ionic/p-9d00a694.system.entry.js +4 -0
  584. package/dist/ionic/{p-6525a8cd.system.js → p-9e3177a5.system.js} +1 -1
  585. package/dist/ionic/p-9fd5857a.system.entry.js +4 -0
  586. package/dist/ionic/{p-1e07fdb2.system.entry.js → p-a2dc2ef1.system.entry.js} +2 -2
  587. package/dist/ionic/p-a3dae2ce.js +4 -0
  588. package/dist/ionic/{p-8d4d902b.js → p-a600a3e3.js} +1 -1
  589. package/dist/ionic/{p-5f9fbad0.entry.js → p-a668e0d4.entry.js} +1 -1
  590. package/dist/ionic/{p-80704be1.entry.js → p-a6ac25f2.entry.js} +1 -1
  591. package/dist/ionic/p-a6bce1f5.js +4 -0
  592. package/dist/ionic/{p-34d0f143.system.entry.js → p-a7270027.system.entry.js} +1 -1
  593. package/dist/ionic/p-a93873de.system.js +4 -0
  594. package/dist/ionic/p-a9d2fa95.entry.js +4 -0
  595. package/dist/ionic/{p-98e6b3b8.system.js → p-ab6879e7.system.js} +1 -1
  596. package/dist/ionic/{p-717c4b72.entry.js → p-ac585dba.entry.js} +1 -1
  597. package/dist/ionic/{p-89ca4c4b.system.js → p-af9256a0.system.js} +1 -1
  598. package/dist/ionic/p-b05c33d0.system.entry.js +4 -0
  599. package/dist/ionic/{p-2b3544ad.entry.js → p-b141e253.entry.js} +1 -1
  600. package/dist/ionic/{p-5d64e680.entry.js → p-b6d1ce6c.entry.js} +1 -1
  601. package/dist/ionic/p-bb01ff24.system.entry.js +4 -0
  602. package/dist/ionic/p-bb151f4b.entry.js +4 -0
  603. package/dist/ionic/p-c385e49d.entry.js +4 -0
  604. package/dist/ionic/p-c3f5d0e7.js +4 -0
  605. package/dist/ionic/p-c629d22b.system.js +5 -0
  606. package/dist/ionic/{p-15708968.js → p-c6f9f3eb.js} +1 -1
  607. package/dist/ionic/p-c7e16491.js +4 -0
  608. package/dist/ionic/p-c83741f7.entry.js +4 -0
  609. package/dist/ionic/{p-993da5df.entry.js → p-c8383c20.entry.js} +1 -1
  610. package/dist/ionic/{p-d7dc29c5.entry.js → p-c947155d.entry.js} +1 -1
  611. package/dist/ionic/{p-00a762c9.entry.js → p-cb970588.entry.js} +1 -1
  612. package/dist/ionic/{p-31e02742.system.js → p-cbb9269d.system.js} +1 -1
  613. package/dist/ionic/{p-dd7c79ce.system.entry.js → p-cc769fb6.system.entry.js} +1 -1
  614. package/dist/ionic/{p-5797981d.system.entry.js → p-cc978d16.system.entry.js} +2 -2
  615. package/dist/ionic/{p-b434ded7.system.entry.js → p-ce436e94.system.entry.js} +1 -1
  616. package/dist/ionic/{p-6ad90d41.entry.js → p-ce9eafa3.entry.js} +1 -1
  617. package/dist/ionic/p-cf07fee5.entry.js +4 -0
  618. package/dist/ionic/p-d0adc028.system.entry.js +4 -0
  619. package/dist/ionic/p-d0d674d0.entry.js +4 -0
  620. package/dist/ionic/p-d35d485c.entry.js +4 -0
  621. package/dist/ionic/p-d60342e3.js +4 -0
  622. package/dist/ionic/{p-e3a7214b.system.js → p-d704f798.system.js} +1 -1
  623. package/dist/ionic/p-d80b7e31.system.js +4 -0
  624. package/dist/ionic/p-d834c508.entry.js +4 -0
  625. package/dist/ionic/p-da2b833b.js +4 -0
  626. package/dist/ionic/{p-385f66bc.entry.js → p-da5bbd4f.entry.js} +1 -1
  627. package/dist/ionic/{p-5e70f800.system.entry.js → p-dbd782ec.system.entry.js} +1 -1
  628. package/dist/ionic/{p-e1819aee.js → p-e066780e.js} +1 -1
  629. package/dist/ionic/{p-1ea88de9.system.js → p-e0d52ee3.system.js} +2 -2
  630. package/dist/ionic/p-e170e351.js +4 -0
  631. package/dist/ionic/{p-0a8a78db.system.entry.js → p-e1d4298f.system.entry.js} +1 -1
  632. package/dist/ionic/p-e7b0b64d.system.js +4 -0
  633. package/dist/ionic/p-e7cd7553.system.js +4 -0
  634. package/dist/ionic/p-f270059b.entry.js +4 -0
  635. package/dist/ionic/p-f40aa619.entry.js +4 -0
  636. package/dist/ionic/{p-c6dbc089.system.entry.js → p-f47c47f2.system.entry.js} +1 -1
  637. package/dist/ionic/p-f687573e.system.js +4 -0
  638. package/dist/ionic/p-f8502e85.js +5 -0
  639. package/dist/ionic/p-facad328.entry.js +4 -0
  640. package/dist/ionic/{p-ab427719.entry.js → p-fbf23235.entry.js} +1 -1
  641. package/dist/ionic/{p-3c47c5c8.system.entry.js → p-fe5ff8fb.system.entry.js} +1 -1
  642. package/dist/ionic/{p-9d795c4b.entry.js → p-fe8f0dd2.entry.js} +1 -1
  643. package/dist/types/components/datetime/datetime-interface.d.ts +10 -0
  644. package/dist/types/components/datetime/datetime.d.ts +10 -1
  645. package/dist/types/components/datetime/utils/format.d.ts +7 -13
  646. package/dist/types/components/datetime/utils/validate.d.ts +8 -0
  647. package/dist/types/components/input/input.d.ts +7 -6
  648. package/dist/types/components/input-password-toggle/input-password-toggle.d.ts +37 -0
  649. package/dist/types/components/item/item.d.ts +0 -32
  650. package/dist/types/components/menu/menu-interface.d.ts +1 -0
  651. package/dist/types/components/menu/menu.d.ts +2 -4
  652. package/dist/types/components/range/range.d.ts +29 -0
  653. package/dist/types/components/searchbar/searchbar.d.ts +38 -0
  654. package/dist/types/components/textarea/textarea.d.ts +1 -6
  655. package/dist/types/components/toggle/toggle.d.ts +1 -1
  656. package/dist/types/components.d.ts +86 -50
  657. package/dist/types/utils/animation/animation-utils.d.ts +0 -12
  658. package/dist/types/utils/focus-trap.d.ts +35 -0
  659. package/dist/types/utils/forms/index.d.ts +0 -1
  660. package/dist/types/utils/hardware-back-button.d.ts +1 -1
  661. package/dist/types/utils/helpers.d.ts +0 -19
  662. package/dist/types/utils/overlays.d.ts +0 -6
  663. package/dist/types/utils/test/playwright/generator.d.ts +3 -3
  664. package/hydrate/index.js +854 -822
  665. package/package.json +7 -2
  666. package/components/note.js +0 -48
  667. package/css/themes/dark.always.css.map +0 -1
  668. package/css/themes/dark.class.css.map +0 -1
  669. package/css/themes/dark.system.css.map +0 -1
  670. package/css/themes/high-contrast-dark.always.css.map +0 -1
  671. package/css/themes/high-contrast-dark.class.css.map +0 -1
  672. package/css/themes/high-contrast-dark.system.css.map +0 -1
  673. package/css/themes/high-contrast.always.css.map +0 -1
  674. package/css/themes/high-contrast.class.css.map +0 -1
  675. package/css/themes/high-contrast.system.css.map +0 -1
  676. package/dist/collection/components/item/test/legacy/disabled/item.e2e.js +0 -14
  677. package/dist/collection/components/modal/test/a11y/modal.spec.js +0 -22
  678. package/dist/collection/utils/forms/form-controller.js +0 -61
  679. package/dist/collection/utils/test/aria.spec.js +0 -80
  680. package/dist/esm-es5/animation-a4acf150.js +0 -4
  681. package/dist/esm-es5/app-globals-5cf6195b.js +0 -4
  682. package/dist/esm-es5/data-691286f1.js +0 -4
  683. package/dist/esm-es5/haptic-554688a5.js +0 -4
  684. package/dist/esm-es5/hardware-back-button-b410a047.js +0 -4
  685. package/dist/esm-es5/helpers-ae74b3c9.js +0 -4
  686. package/dist/esm-es5/index-4c30cddd.js +0 -5
  687. package/dist/esm-es5/input.utils-482fc893.js +0 -4
  688. package/dist/esm-es5/md.transition-c9761eef.js +0 -4
  689. package/dist/esm-es5/overlays-c69d2a07.js +0 -4
  690. package/dist/ionic/p-069388dd.system.js +0 -4
  691. package/dist/ionic/p-0b34d3a7.system.js +0 -4
  692. package/dist/ionic/p-0dfbbdbe.entry.js +0 -4
  693. package/dist/ionic/p-0f25a7bb.system.js +0 -4
  694. package/dist/ionic/p-0f81df5e.entry.js +0 -4
  695. package/dist/ionic/p-11bb459e.system.entry.js +0 -4
  696. package/dist/ionic/p-13e8ad2e.entry.js +0 -4
  697. package/dist/ionic/p-17082c91.system.js +0 -4
  698. package/dist/ionic/p-19f6ac6c.system.js +0 -4
  699. package/dist/ionic/p-1deadb7f.system.js +0 -4
  700. package/dist/ionic/p-2c768965.entry.js +0 -4
  701. package/dist/ionic/p-32fb7d95.entry.js +0 -4
  702. package/dist/ionic/p-42f189f4.js +0 -4
  703. package/dist/ionic/p-446f3909.system.entry.js +0 -4
  704. package/dist/ionic/p-4a8f173c.system.js +0 -4
  705. package/dist/ionic/p-4e7abe76.js +0 -4
  706. package/dist/ionic/p-5289aade.js +0 -4
  707. package/dist/ionic/p-5dbf7222.entry.js +0 -4
  708. package/dist/ionic/p-5eabaa80.js +0 -4
  709. package/dist/ionic/p-60a92a48.system.entry.js +0 -4
  710. package/dist/ionic/p-640fac4a.system.entry.js +0 -4
  711. package/dist/ionic/p-66e6860f.system.js +0 -4
  712. package/dist/ionic/p-6d659d62.entry.js +0 -4
  713. package/dist/ionic/p-7292add8.entry.js +0 -4
  714. package/dist/ionic/p-72fa96bf.system.js +0 -5
  715. package/dist/ionic/p-75861cd3.entry.js +0 -4
  716. package/dist/ionic/p-760dbd5e.js +0 -4
  717. package/dist/ionic/p-7e185a31.entry.js +0 -4
  718. package/dist/ionic/p-831269de.js +0 -4
  719. package/dist/ionic/p-892e2567.system.entry.js +0 -4
  720. package/dist/ionic/p-8ab308e9.js +0 -4
  721. package/dist/ionic/p-8b8b900d.entry.js +0 -4
  722. package/dist/ionic/p-90b3e3b0.system.entry.js +0 -4
  723. package/dist/ionic/p-93e79b55.js +0 -4
  724. package/dist/ionic/p-94f85e19.system.entry.js +0 -4
  725. package/dist/ionic/p-96107183.js +0 -4
  726. package/dist/ionic/p-986a47ee.system.entry.js +0 -4
  727. package/dist/ionic/p-9c93fdcd.js +0 -4
  728. package/dist/ionic/p-9d6f351e.js +0 -4
  729. package/dist/ionic/p-9e3b3f15.system.js +0 -4
  730. package/dist/ionic/p-9ecc1e42.entry.js +0 -4
  731. package/dist/ionic/p-a6cc38d4.js +0 -4
  732. package/dist/ionic/p-a9126aab.system.entry.js +0 -4
  733. package/dist/ionic/p-bca27ea7.entry.js +0 -4
  734. package/dist/ionic/p-c68e75ea.system.js +0 -4
  735. package/dist/ionic/p-c995da88.system.js +0 -4
  736. package/dist/ionic/p-cb944b1a.system.js +0 -4
  737. package/dist/ionic/p-cd0ffc8c.entry.js +0 -4
  738. package/dist/ionic/p-d13689a6.entry.js +0 -4
  739. package/dist/ionic/p-d47a1a78.system.entry.js +0 -4
  740. package/dist/ionic/p-d8643420.system.entry.js +0 -4
  741. package/dist/ionic/p-d9b6b588.entry.js +0 -4
  742. package/dist/ionic/p-db121960.js +0 -4
  743. package/dist/ionic/p-df504a37.system.js +0 -4
  744. package/dist/ionic/p-dfb6de03.system.js +0 -4
  745. package/dist/ionic/p-e311af42.entry.js +0 -4
  746. package/dist/ionic/p-e755046f.system.entry.js +0 -4
  747. package/dist/ionic/p-ed7a529f.js +0 -5
  748. package/dist/ionic/p-f1437574.entry.js +0 -4
  749. package/dist/ionic/p-f7ccf8d9.entry.js +0 -4
  750. package/dist/types/utils/forms/form-controller.d.ts +0 -15
  751. package/css/{themes → palettes}/dark.always.css +0 -0
  752. package/css/{themes → palettes}/dark.css +0 -0
  753. package/css/{themes → palettes}/dark.css.map +0 -0
  754. package/css/{themes → palettes}/dark.system.css +0 -0
  755. package/css/{themes → palettes}/high-contrast-dark.always.css +1 -1
  756. package/css/{themes → palettes}/high-contrast-dark.css +0 -0
  757. package/css/{themes → palettes}/high-contrast-dark.css.map +0 -0
  758. package/css/{themes → palettes}/high-contrast-dark.system.css +1 -1
  759. package/css/{themes → palettes}/high-contrast.always.css +25 -25
  760. package/css/{themes → palettes}/high-contrast.css +0 -0
  761. package/css/{themes → palettes}/high-contrast.css.map +0 -0
  762. package/css/{themes → palettes}/high-contrast.system.css +25 -25
@@ -233,7 +233,9 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
233
233
  */
234
234
  configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
235
235
  test.describe(title('datetime: visibility'), () => {
236
- test('should reset month/year interface when hiding datetime', async ({ page }) => {
236
+ // TODO FW-6015 re-enable on webkit when bug is fixed
237
+ test('should reset month/year interface when hiding datetime', async ({ page, skip }) => {
238
+ skip.browser('webkit', 'This is buggy in a headless Linux environment: https://bugs.webkit.org/show_bug.cgi?id=270358');
237
239
  await page.setContent(`
238
240
  <ion-datetime></ion-datetime>
239
241
  `, config);
@@ -412,3 +414,80 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
412
414
  });
413
415
  });
414
416
  });
417
+ /**
418
+ * This behavior does not differ across
419
+ * directions.
420
+ */
421
+ configs({ directions: ['ltr'] }).forEach(({ title, config }) => {
422
+ test.describe(title('datetime: formatOptions'), () => {
423
+ test('should format header and time button', async ({ page }) => {
424
+ await page.setContent(`
425
+ <ion-datetime value="2022-02-01T16:30:00">
426
+ <span slot="title">Select Date</span>
427
+ </ion-datetime>
428
+ <script>
429
+ const datetime = document.querySelector('ion-datetime');
430
+ datetime.formatOptions = {
431
+ time: { hour: '2-digit', minute: '2-digit' },
432
+ date: { day: '2-digit', month: 'long', era: 'short' },
433
+ }
434
+ </script>
435
+ `, config);
436
+ await page.locator('.datetime-ready').waitFor();
437
+ const headerDate = page.locator('ion-datetime .datetime-selected-date');
438
+ await expect(headerDate).toHaveText('February 01 AD');
439
+ const timeBody = page.locator('ion-datetime .time-body');
440
+ await expect(timeBody).toHaveText('04:30 PM');
441
+ });
442
+ });
443
+ });
444
+ /**
445
+ * This behavior does not differ across
446
+ * modes/directions.
447
+ */
448
+ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
449
+ test.describe(title('datetime: formatOptions misconfiguration errors'), () => {
450
+ test('should log a warning if time zone is provided', async ({ page }) => {
451
+ const logs = [];
452
+ page.on('console', (msg) => {
453
+ if (msg.type() === 'warning') {
454
+ logs.push(msg.text());
455
+ }
456
+ });
457
+ await page.setContent(`
458
+ <ion-datetime value="2022-02-01T16:30:00" presentation="date">
459
+ <span slot="title">Select Date</span>
460
+ </ion-datetime>
461
+ <script>
462
+ const datetime = document.querySelector('ion-datetime');
463
+ datetime.formatOptions = {
464
+ date: { timeZone: 'UTC' },
465
+ }
466
+ </script>
467
+ `, config);
468
+ await page.locator('.datetime-ready').waitFor();
469
+ expect(logs.length).toBe(1);
470
+ expect(logs[0]).toContain('[Ionic Warning]: Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".');
471
+ });
472
+ test('should log a warning if the required formatOptions are not provided for a presentation', async ({ page }) => {
473
+ const logs = [];
474
+ page.on('console', (msg) => {
475
+ if (msg.type() === 'warning') {
476
+ logs.push(msg.text());
477
+ }
478
+ });
479
+ await page.setContent(`
480
+ <ion-datetime value="2022-02-01T16:30:00">
481
+ <span slot="title">Select Date</span>
482
+ </ion-datetime>
483
+ <script>
484
+ const datetime = document.querySelector('ion-datetime');
485
+ datetime.formatOptions = {}
486
+ </script>
487
+ `, config);
488
+ await page.locator('.datetime-ready').waitFor();
489
+ expect(logs.length).toBe(1);
490
+ expect(logs[0]).toContain("[Ionic Warning]: Datetime: The 'date-time' presentation requires either a date or time object (or both) in formatOptions.");
491
+ });
492
+ });
493
+ });
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { generateDayAriaLabel, getMonthAndDay, getFormattedHour, addTimePadding, getMonthAndYear, getLocalizedDayPeriod, getLocalizedTime, } from "../utils/format";
4
+ import { generateDayAriaLabel, getFormattedHour, addTimePadding, getMonthAndYear, getLocalizedDayPeriod, getLocalizedTime, stripTimeZone, } from "../utils/format";
5
5
  describe('generateDayAriaLabel()', () => {
6
6
  it('should return Wednesday, May 12', () => {
7
7
  const reference = { month: 5, day: 12, year: 2021 };
@@ -24,20 +24,6 @@ describe('generateDayAriaLabel()', () => {
24
24
  expect(generateDayAriaLabel('en-US', false, reference)).toEqual('Saturday, April 1');
25
25
  });
26
26
  });
27
- describe('getMonthAndDay()', () => {
28
- it('should return Tue, May 11', () => {
29
- expect(getMonthAndDay('en-US', { month: 5, day: 11, year: 2021 })).toEqual('Tue, May 11');
30
- });
31
- it('should return mar, 11 may', () => {
32
- expect(getMonthAndDay('es-ES', { month: 5, day: 11, year: 2021 })).toEqual('mar, 11 may');
33
- });
34
- it('should return Sat, Apr 1', () => {
35
- expect(getMonthAndDay('en-US', { month: 4, day: 1, year: 2006 })).toEqual('Sat, Apr 1');
36
- });
37
- it('should return sáb, 1 abr', () => {
38
- expect(getMonthAndDay('es-ES', { month: 4, day: 1, year: 2006 })).toEqual('sáb, 1 abr');
39
- });
40
- });
41
27
  describe('getFormattedHour()', () => {
42
28
  it('should only add padding if using 24 hour time', () => {
43
29
  expect(getFormattedHour(1, 'h11')).toEqual('1');
@@ -121,4 +107,68 @@ describe('getLocalizedTime', () => {
121
107
  expect(getLocalizedTime('en-US', datetimeParts, 'h12')).toEqual('10:40 PM');
122
108
  expect(getLocalizedTime('en-US', datetimeParts, 'h23')).toEqual('22:40');
123
109
  });
110
+ it('should use formatOptions', () => {
111
+ const datetimeParts = {
112
+ day: 1,
113
+ month: 1,
114
+ year: 2022,
115
+ hour: 9,
116
+ minute: 40,
117
+ };
118
+ const formatOptions = {
119
+ hour: '2-digit',
120
+ minute: '2-digit',
121
+ dayPeriod: 'short',
122
+ day: '2-digit',
123
+ };
124
+ // Even though this method is intended to be used for time, the date may be displayed as well when passing formatOptions
125
+ expect(getLocalizedTime('en-US', datetimeParts, 'h12', formatOptions)).toEqual('01, 09:40 in the morning');
126
+ });
127
+ it('should override provided time zone with UTC', () => {
128
+ const datetimeParts = {
129
+ day: 1,
130
+ month: 1,
131
+ year: 2022,
132
+ hour: 9,
133
+ minute: 40,
134
+ };
135
+ const formatOptions = {
136
+ timeZone: 'Australia/Sydney',
137
+ timeZoneName: 'long',
138
+ hour: 'numeric',
139
+ minute: 'numeric',
140
+ };
141
+ expect(getLocalizedTime('en-US', datetimeParts, 'h12', formatOptions)).toEqual('9:40 AM');
142
+ });
143
+ it('should not include time zone name', () => {
144
+ const datetimeParts = {
145
+ day: 1,
146
+ month: 1,
147
+ year: 2022,
148
+ hour: 9,
149
+ minute: 40,
150
+ };
151
+ const formatOptions = {
152
+ timeZone: 'America/Los_Angeles',
153
+ timeZoneName: 'long',
154
+ hour: 'numeric',
155
+ minute: 'numeric',
156
+ };
157
+ expect(getLocalizedTime('en-US', datetimeParts, 'h12', formatOptions)).toEqual('9:40 AM');
158
+ });
159
+ });
160
+ describe('stripTimeZone', () => {
161
+ it('should remove the time zone name from the options and set the time zone to UTC', () => {
162
+ const formatOptions = {
163
+ timeZone: 'America/Los_Angeles',
164
+ timeZoneName: 'long',
165
+ hour: 'numeric',
166
+ minute: 'numeric',
167
+ };
168
+ expect(stripTimeZone(formatOptions)).toEqual({
169
+ timeZone: 'UTC',
170
+ hour: 'numeric',
171
+ minute: 'numeric',
172
+ });
173
+ });
124
174
  });
@@ -9,7 +9,26 @@ const getFormattedDayPeriod = (dayPeriod) => {
9
9
  }
10
10
  return dayPeriod.toUpperCase();
11
11
  };
12
- export const getLocalizedTime = (locale, refParts, hourCycle) => {
12
+ /**
13
+ * Including time zone options may lead to the rendered text showing a
14
+ * different time from what was selected in the Datetime, which could cause
15
+ * confusion.
16
+ */
17
+ export const stripTimeZone = (formatOptions) => {
18
+ return Object.assign(Object.assign({}, formatOptions), {
19
+ /**
20
+ * Setting the time zone to UTC ensures that the value shown is always the
21
+ * same as what was selected and safeguards against older Safari bugs with
22
+ * Intl.DateTimeFormat.
23
+ */
24
+ timeZone: 'UTC',
25
+ /**
26
+ * We do not want to display the time zone name
27
+ */
28
+ timeZoneName: undefined
29
+ });
30
+ };
31
+ export const getLocalizedTime = (locale, refParts, hourCycle, formatOptions = { hour: 'numeric', minute: 'numeric' }) => {
13
32
  const timeParts = {
14
33
  hour: refParts.hour,
15
34
  minute: refParts.minute,
@@ -17,28 +36,13 @@ export const getLocalizedTime = (locale, refParts, hourCycle) => {
17
36
  if (timeParts.hour === undefined || timeParts.minute === undefined) {
18
37
  return 'Invalid Time';
19
38
  }
20
- return new Intl.DateTimeFormat(locale, {
21
- hour: 'numeric',
22
- minute: 'numeric',
23
- /**
24
- * Setting the timeZone to UTC prevents
25
- * new Intl.DatetimeFormat from subtracting
26
- * the user's current timezone offset
27
- * when formatting the time.
28
- */
29
- timeZone: 'UTC',
39
+ return new Intl.DateTimeFormat(locale, Object.assign(Object.assign({}, stripTimeZone(formatOptions)), {
30
40
  /**
31
41
  * We use hourCycle here instead of hour12 due to:
32
42
  * https://bugs.chromium.org/p/chromium/issues/detail?id=1347316&q=hour12&can=2
33
43
  */
34
- hourCycle,
35
- /**
36
- * Setting Z at the end indicates that this
37
- * date string is in the UTC time zone. This
38
- * prevents new Date from adding the time zone
39
- * offset when getting the ISO string.
40
- */
41
- }).format(new Date(convertDataToISO(Object.assign({
44
+ hourCycle
45
+ })).format(new Date(convertDataToISO(Object.assign({
42
46
  /**
43
47
  * JS uses a simplified ISO 8601 format which allows for
44
48
  * date-only formats and date-time formats, but not
@@ -125,14 +129,6 @@ export const generateDayAriaLabel = (locale, today, refParts) => {
125
129
  */
126
130
  return today ? `Today, ${labelString}` : labelString;
127
131
  };
128
- /**
129
- * Gets the day of the week, month, and day
130
- * Used for the header in MD mode.
131
- */
132
- export const getMonthAndDay = (locale, refParts) => {
133
- const date = getNormalizedDate(refParts);
134
- return new Intl.DateTimeFormat(locale, { weekday: 'short', month: 'short', day: 'numeric', timeZone: 'UTC' }).format(date);
135
- };
136
132
  /**
137
133
  * Given a locale and a date object,
138
134
  * return a formatted string that includes
@@ -143,15 +139,6 @@ export const getMonthAndYear = (locale, refParts) => {
143
139
  const date = getNormalizedDate(refParts);
144
140
  return new Intl.DateTimeFormat(locale, { month: 'long', year: 'numeric', timeZone: 'UTC' }).format(date);
145
141
  };
146
- /**
147
- * Given a locale and a date object,
148
- * return a formatted string that includes
149
- * the short month, numeric day, and full year.
150
- * Example: Apr 22, 2021
151
- */
152
- export const getMonthDayAndYear = (locale, refParts) => {
153
- return getLocalizedDateTime(locale, refParts, { month: 'short', day: 'numeric', year: 'numeric' });
154
- };
155
142
  /**
156
143
  * Given a locale and a date object,
157
144
  * return a formatted string that includes
@@ -201,7 +188,7 @@ export const getNormalizedDate = (refParts) => {
201
188
  */
202
189
  export const getLocalizedDateTime = (locale, refParts, options) => {
203
190
  const date = getNormalizedDate(refParts);
204
- return getDateTimeFormat(locale, options).format(date);
191
+ return getDateTimeFormat(locale, stripTimeZone(options)).format(date);
205
192
  };
206
193
  /**
207
194
  * Given a locale, DatetimeParts, and options
@@ -0,0 +1,45 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import { printIonWarning } from "../../../utils/logging/index";
5
+ /**
6
+ * If a time zone is provided in the format options, the rendered text could
7
+ * differ from what was selected in the Datetime, which could cause
8
+ * confusion.
9
+ */
10
+ export const warnIfTimeZoneProvided = (el, formatOptions) => {
11
+ var _a, _b, _c, _d;
12
+ if (((_a = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _a === void 0 ? void 0 : _a.timeZone) ||
13
+ ((_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) === null || _b === void 0 ? void 0 : _b.timeZoneName) ||
14
+ ((_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _c === void 0 ? void 0 : _c.timeZone) ||
15
+ ((_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) === null || _d === void 0 ? void 0 : _d.timeZoneName)) {
16
+ printIonWarning('Datetime: "timeZone" and "timeZoneName" are not supported in "formatOptions".', el);
17
+ }
18
+ };
19
+ export const checkForPresentationFormatMismatch = (el, presentation, formatOptions) => {
20
+ // formatOptions is not required
21
+ if (!formatOptions)
22
+ return;
23
+ // If formatOptions is provided, the date and/or time objects are required, depending on the presentation
24
+ switch (presentation) {
25
+ case 'date':
26
+ case 'month-year':
27
+ case 'month':
28
+ case 'year':
29
+ if (formatOptions.date === undefined) {
30
+ printIonWarning(`Datetime: The '${presentation}' presentation requires a date object in formatOptions.`, el);
31
+ }
32
+ break;
33
+ case 'time':
34
+ if (formatOptions.time === undefined) {
35
+ printIonWarning(`Datetime: The 'time' presentation requires a time object in formatOptions.`, el);
36
+ }
37
+ break;
38
+ case 'date-time':
39
+ case 'time-date':
40
+ if (formatOptions.date === undefined && formatOptions.time === undefined) {
41
+ printIonWarning(`Datetime: The '${presentation}' presentation requires either a date or time object (or both) in formatOptions.`, el);
42
+ }
43
+ break;
44
+ }
45
+ };
@@ -7,7 +7,7 @@ import { printIonError } from "../../utils/logging/index";
7
7
  import { createColorClasses } from "../../utils/theme";
8
8
  import { getIonMode } from "../../global/ionic-global";
9
9
  import { getToday } from "../datetime/utils/data";
10
- import { getMonthAndYear, getMonthDayAndYear, getLocalizedDateTime, getLocalizedTime } from "../datetime/utils/format";
10
+ import { getLocalizedDateTime, getLocalizedTime } from "../datetime/utils/format";
11
11
  import { getHourCycle } from "../datetime/utils/helpers";
12
12
  import { parseDate } from "../datetime/utils/parse";
13
13
  /**
@@ -43,11 +43,12 @@ export class DatetimeButton {
43
43
  * to the locale specified on ion-datetime.
44
44
  */
45
45
  this.setDateTimeText = () => {
46
+ var _a, _b, _c, _d, _e;
46
47
  const { datetimeEl, datetimePresentation } = this;
47
48
  if (!datetimeEl) {
48
49
  return;
49
50
  }
50
- const { value, locale, hourCycle, preferWheel, multiple, titleSelectedDatesFormatter } = datetimeEl;
51
+ const { value, locale, formatOptions, hourCycle, preferWheel, multiple, titleSelectedDatesFormatter } = datetimeEl;
51
52
  const parsedValues = this.getParsedDateValues(value);
52
53
  /**
53
54
  * Both ion-datetime and ion-datetime-button default
@@ -70,8 +71,8 @@ export class DatetimeButton {
70
71
  switch (datetimePresentation) {
71
72
  case 'date-time':
72
73
  case 'time-date':
73
- const dateText = getMonthDayAndYear(locale, firstParsedDatetime);
74
- const timeText = getLocalizedTime(locale, firstParsedDatetime, computedHourCycle);
74
+ const dateText = getLocalizedDateTime(locale, firstParsedDatetime, (_a = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) !== null && _a !== void 0 ? _a : { month: 'short', day: 'numeric', year: 'numeric' });
75
+ const timeText = getLocalizedTime(locale, firstParsedDatetime, computedHourCycle, formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time);
75
76
  if (preferWheel) {
76
77
  this.dateText = `${dateText} ${timeText}`;
77
78
  }
@@ -94,20 +95,20 @@ export class DatetimeButton {
94
95
  this.dateText = headerText;
95
96
  }
96
97
  else {
97
- this.dateText = getMonthDayAndYear(locale, firstParsedDatetime);
98
+ this.dateText = getLocalizedDateTime(locale, firstParsedDatetime, (_b = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) !== null && _b !== void 0 ? _b : { month: 'short', day: 'numeric', year: 'numeric' });
98
99
  }
99
100
  break;
100
101
  case 'time':
101
- this.timeText = getLocalizedTime(locale, firstParsedDatetime, computedHourCycle);
102
+ this.timeText = getLocalizedTime(locale, firstParsedDatetime, computedHourCycle, formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time);
102
103
  break;
103
104
  case 'month-year':
104
- this.dateText = getMonthAndYear(locale, firstParsedDatetime);
105
+ this.dateText = getLocalizedDateTime(locale, firstParsedDatetime, (_c = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.date) !== null && _c !== void 0 ? _c : { month: 'long', year: 'numeric' });
105
106
  break;
106
107
  case 'month':
107
- this.dateText = getLocalizedDateTime(locale, firstParsedDatetime, { month: 'long' });
108
+ this.dateText = getLocalizedDateTime(locale, firstParsedDatetime, (_d = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) !== null && _d !== void 0 ? _d : { month: 'long' });
108
109
  break;
109
110
  case 'year':
110
- this.dateText = getLocalizedDateTime(locale, firstParsedDatetime, { year: 'numeric' });
111
+ this.dateText = getLocalizedDateTime(locale, firstParsedDatetime, (_e = formatOptions === null || formatOptions === void 0 ? void 0 : formatOptions.time) !== null && _e !== void 0 ? _e : { year: 'numeric' });
111
112
  break;
112
113
  }
113
114
  };
@@ -336,7 +337,7 @@ export class DatetimeButton {
336
337
  render() {
337
338
  const { color, dateText, timeText, selectedButton, datetimeActive, disabled } = this;
338
339
  const mode = getIonMode(this);
339
- return (h(Host, { key: 'cff9c4cbabf76a415b3785e9fa6cc682fddcec54', class: createColorClasses(color, {
340
+ return (h(Host, { key: 'f0ee6b859ad193be78cfc49d4d66373adfdbd618', class: createColorClasses(color, {
340
341
  [mode]: true,
341
342
  [`${selectedButton}-active`]: datetimeActive,
342
343
  ['datetime-button-disabled']: disabled,
@@ -186,4 +186,69 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
186
186
  await expect(page.locator('#time-button')).not.toBeVisible();
187
187
  });
188
188
  });
189
+ test.describe(title('datetime-button: formatOptions'), () => {
190
+ test('should include date and time for presentation date-time', async ({ page }) => {
191
+ await page.setContent(`
192
+ <ion-datetime-button datetime="datetime"></ion-datetime-button>
193
+ <ion-datetime id="datetime" presentation="date-time" value="2023-11-02T01:22:00" locale="en-US"></ion-datetime>
194
+ <script>
195
+ const datetime = document.querySelector('ion-datetime');
196
+ datetime.formatOptions = {
197
+ date: {
198
+ weekday: "short",
199
+ month: "long",
200
+ day: "2-digit"
201
+ },
202
+ time: {
203
+ hour: "2-digit",
204
+ minute: "2-digit"
205
+ }
206
+ }
207
+ </script>
208
+ `, config);
209
+ await page.locator('.datetime-ready').waitFor();
210
+ await expect(page.locator('#date-button')).toContainText('Thu, November 02');
211
+ await expect(page.locator('#time-button')).toContainText('01:22 AM');
212
+ });
213
+ test('should include date for presentation date', async ({ page }) => {
214
+ await page.setContent(`
215
+ <ion-datetime-button datetime="datetime"></ion-datetime-button>
216
+ <ion-datetime id="datetime" presentation="date" value="2023-11-02" locale="en-US"></ion-datetime>
217
+ <script>
218
+ const datetime = document.querySelector('ion-datetime');
219
+ datetime.formatOptions = {
220
+ date: {
221
+ weekday: "short",
222
+ month: "long",
223
+ day: "2-digit"
224
+ }
225
+ }
226
+ </script>
227
+ `, config);
228
+ await page.locator('.datetime-ready').waitFor();
229
+ await expect(page.locator('#date-button')).toContainText('Thu, November 02');
230
+ });
231
+ test('should include date and time in same button for preferWheel', async ({ page }) => {
232
+ await page.setContent(`
233
+ <ion-datetime-button datetime="datetime"></ion-datetime-button>
234
+ <ion-datetime id="datetime" presentation="date-time" value="2023-11-02T01:22:00" locale="en-US" prefer-wheel="true"></ion-datetime>
235
+ <script>
236
+ const datetime = document.querySelector('ion-datetime');
237
+ datetime.formatOptions = {
238
+ date: {
239
+ weekday: "short",
240
+ month: "long",
241
+ day: "2-digit"
242
+ },
243
+ time: {
244
+ hour: "2-digit",
245
+ minute: "2-digit"
246
+ }
247
+ }
248
+ </script>
249
+ `, config);
250
+ await page.locator('.datetime-ready').waitFor();
251
+ await expect(page.locator('ion-datetime-button')).toContainText('Thu, November 02 01:22 AM');
252
+ });
253
+ });
189
254
  });
@@ -47,12 +47,12 @@ export class Fab {
47
47
  render() {
48
48
  const { horizontal, vertical, edge } = this;
49
49
  const mode = getIonMode(this);
50
- return (h(Host, { key: '295e4b79449ff102d54b4a415487a26144a47839', class: {
50
+ return (h(Host, { key: 'a25aae31396546595b21a760ced22ee92d2379d6', class: {
51
51
  [mode]: true,
52
52
  [`fab-horizontal-${horizontal}`]: horizontal !== undefined,
53
53
  [`fab-vertical-${vertical}`]: vertical !== undefined,
54
54
  'fab-edge': edge,
55
- } }, h("slot", { key: 'a41871eb5d0a8c6315ba7012cef0e4dfc1126c9d' })));
55
+ } }, h("slot", { key: 'b01cc2572213bfa6c12111e32e2f7702e6d93621' })));
56
56
  }
57
57
  static get is() { return "ion-fab"; }
58
58
  static get encapsulation() { return "shadow"; }
@@ -63,7 +63,7 @@ export class FabButton {
63
63
  rel: this.rel,
64
64
  target: this.target,
65
65
  };
66
- return (h(Host, { key: 'bfc553a86d54b665039512e93c83865232431e61', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
66
+ return (h(Host, { key: 'f342fbd54263de388bc49e54af61ce4aaaef1f2e', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
67
67
  [mode]: true,
68
68
  'fab-button-in-list': inList,
69
69
  'fab-button-translucent-in-list': inList && translucent,
@@ -74,7 +74,7 @@ export class FabButton {
74
74
  'ion-activatable': true,
75
75
  'ion-focusable': true,
76
76
  [`fab-button-${size}`]: size !== undefined,
77
- }) }, h(TagType, Object.assign({ key: '08821f166159c1c0c08a936f8db0cc5b8c121b6b' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => openURL(href, ev, this.routerDirection, this.routerAnimation) }, inheritedAttributes), h("ion-icon", { key: '5b369ce677bb08c2972489be8abad035f2074fee', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: '6b61a3242e6d6ec49e157fe6c7a64b8445e6de3b', class: "button-inner" }, h("slot", { key: 'f6450e5caabb8becd48425547246b6edf96eb4f8' })), mode === 'md' && h("ion-ripple-effect", null))));
77
+ }) }, h(TagType, Object.assign({ key: 'cd29a22c7d8ea02ab3469ba8a5878fd1cb28286a' }, attrs, { class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => openURL(href, ev, this.routerDirection, this.routerAnimation) }, inheritedAttributes), h("ion-icon", { key: '046a1254b728b43e2f4496ad96fff7bb8827df19', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: '9b5c11105d2b7c37c82f7eea2264e29c5f939262', class: "button-inner" }, h("slot", { key: '283fe50749e5537bc7d21159c36c9eb3fbe45415' })), mode === 'md' && h("ion-ripple-effect", null))));
78
78
  }
79
79
  static get is() { return "ion-fab-button"; }
80
80
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@
4
4
  import AxeBuilder from "@axe-core/playwright";
5
5
  import { expect } from "@playwright/test";
6
6
  import { configs, test } from "../../../../utils/test/playwright/index";
7
- configs({ directions: ['ltr'], themes: ['light', 'dark'] }).forEach(({ title, config }) => {
7
+ configs({ directions: ['ltr'], palettes: ['light', 'dark'] }).forEach(({ title, config }) => {
8
8
  test.describe(title('fab-button: a11y'), () => {
9
9
  test('should not have accessibility violations', async ({ page }) => {
10
10
  await page.setContent(`
@@ -18,11 +18,11 @@ export class FabList {
18
18
  }
19
19
  render() {
20
20
  const mode = getIonMode(this);
21
- return (h(Host, { key: '8eca9c8c4f7febe3e0b44604a3854480f5f9e697', class: {
21
+ return (h(Host, { key: '62d22c1907677360d91fc0386ab05379bcc9de8a', class: {
22
22
  [mode]: true,
23
23
  'fab-list-active': this.activated,
24
24
  [`fab-list-side-${this.side}`]: true,
25
- } }, h("slot", { key: '3be8055bbf0dbb928d712e950f6184bd173a2d1e' })));
25
+ } }, h("slot", { key: '4f9b6b9620c0ec79006663c5981140184129b7ce' })));
26
26
  }
27
27
  static get is() { return "ion-fab-list"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -80,7 +80,7 @@ export class Footer {
80
80
  const mode = getIonMode(this);
81
81
  const tabs = this.el.closest('ion-tabs');
82
82
  const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
83
- return (h(Host, { key: 'c86a1139e5004bb523b2ec02ff3056bb392070d8', role: "contentinfo", class: {
83
+ return (h(Host, { key: 'c6f57ef061d44a475dd2c3361e73199a1820e2ea', role: "contentinfo", class: {
84
84
  [mode]: true,
85
85
  // Used internally for styling
86
86
  [`footer-${mode}`]: true,
@@ -88,7 +88,7 @@ export class Footer {
88
88
  [`footer-translucent-${mode}`]: translucent,
89
89
  ['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
90
90
  [`footer-collapse-${collapse}`]: collapse !== undefined,
91
- } }, mode === 'ios' && translucent && h("div", { class: "footer-background" }), h("slot", { key: '6869e534facaf074883643403c8fb03bb2f0dbc5' })));
91
+ } }, mode === 'ios' && translucent && h("div", { class: "footer-background" }), h("slot", { key: '5f27edadd5c05c38d0ba9de0277bac675f5b36b3' })));
92
92
  }
93
93
  static get is() { return "ion-footer"; }
94
94
  static get originalStyleUrls() {
@@ -9,10 +9,10 @@ export class Grid {
9
9
  }
10
10
  render() {
11
11
  const mode = getIonMode(this);
12
- return (h(Host, { key: '6d46d3693c8af7e805cb438dd654485a152e7e40', class: {
12
+ return (h(Host, { key: 'f16254ea58e52b57b2de5cb33a7e84ad544361af', class: {
13
13
  [mode]: true,
14
14
  'grid-fixed': this.fixed,
15
- } }, h("slot", { key: '7f57ee35524880aeb96d081dd8125460156196b3' })));
15
+ } }, h("slot", { key: '42f4eff0d912dc0112fa74d7de69f3a6a8e04a2e' })));
16
16
  }
17
17
  static get is() { return "ion-grid"; }
18
18
  static get encapsulation() { return "shadow"; }
@@ -240,8 +240,11 @@ ion-header ion-toolbar:first-of-type {
240
240
  * We use opacity: 0 to avoid a layout shift.
241
241
  * We target both the attribute and the class in the event that the attribute
242
242
  * is not reflected on the host in some frameworks.
243
+ *
244
+ * Both headers should be scoped to iOS mode otherwise an MD app that uses an
245
+ * iOS header may cause other MD headers to be unexpectedly hidden.
243
246
  */
244
- ion-header:not(.header-collapse-main):has(~ ion-content ion-header[collapse=condense],
245
- ~ ion-content ion-header.header-collapse-condense) {
247
+ ion-header.header-ios:not(.header-collapse-main):has(~ ion-content ion-header.header-ios[collapse=condense],
248
+ ~ ion-content ion-header.header-ios.header-collapse-condense) {
246
249
  opacity: 0;
247
250
  }
@@ -140,14 +140,14 @@ export class Header {
140
140
  const collapse = this.collapse || 'none';
141
141
  // banner role must be at top level, so remove role if inside a menu
142
142
  const roleType = hostContext('ion-menu', this.el) ? 'none' : 'banner';
143
- return (h(Host, Object.assign({ key: 'ab8eb272f275b7802e224c21c166124092fa917b', role: roleType, class: {
143
+ return (h(Host, Object.assign({ key: '9f30ede40eaf89b3e0adbcd03e1d08d0d4ca762b', role: roleType, class: {
144
144
  [mode]: true,
145
145
  // Used internally for styling
146
146
  [`header-${mode}`]: true,
147
147
  [`header-translucent`]: this.translucent,
148
148
  [`header-collapse-${collapse}`]: true,
149
149
  [`header-translucent-${mode}`]: this.translucent,
150
- } }, inheritedAttributes), mode === 'ios' && translucent && h("div", { class: "header-background" }), h("slot", { key: '52409e455c10a25419c4cbd9ed2346dfecb36537' })));
150
+ } }, inheritedAttributes), mode === 'ios' && translucent && h("div", { class: "header-background" }), h("slot", { key: '029aa484210e8dd5c5404a84c134d64a9100ba6e' })));
151
151
  }
152
152
  static get is() { return "ion-header"; }
153
153
  static get originalStyleUrls() {