voyager-ionic-core 8.0.1 → 8.2.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 (601) hide show
  1. package/README.md +1 -1
  2. package/components/checkbox.js +5 -5
  3. package/components/index2.js +119 -1
  4. package/components/ion-accordion-group.js +2 -2
  5. package/components/ion-content.js +6 -4
  6. package/components/ion-datetime-button.js +2 -2
  7. package/components/ion-datetime.js +17 -14
  8. package/components/ion-fab-button.js +2 -2
  9. package/components/ion-fab-list.js +2 -2
  10. package/components/ion-fab.js +2 -2
  11. package/components/ion-footer.js +2 -2
  12. package/components/ion-grid.js +2 -2
  13. package/components/ion-header.js +2 -2
  14. package/components/ion-img.js +1 -1
  15. package/components/ion-infinite-scroll-content.js +2 -2
  16. package/components/ion-infinite-scroll.js +1 -1
  17. package/components/ion-input-password-toggle.js +3 -3
  18. package/components/ion-input.js +8 -4
  19. package/components/ion-item-divider.js +2 -2
  20. package/components/ion-item-group.js +1 -1
  21. package/components/ion-item-option.js +2 -2
  22. package/components/ion-item-options.js +1 -1
  23. package/components/ion-item-sliding.js +1 -1
  24. package/components/ion-loading.js +2 -2
  25. package/components/ion-menu-button.js +2 -2
  26. package/components/ion-menu-toggle.js +2 -2
  27. package/components/ion-menu.js +2 -2
  28. package/components/ion-modal.js +10 -8
  29. package/components/ion-nav-link.js +1 -1
  30. package/components/ion-nav.js +1 -1
  31. package/components/ion-note.js +2 -2
  32. package/components/ion-picker-legacy.js +2 -2
  33. package/components/ion-progress-bar.js +1 -1
  34. package/components/ion-range.js +3 -3
  35. package/components/ion-refresher-content.js +1 -1
  36. package/components/ion-refresher.js +1 -1
  37. package/components/ion-reorder-group.js +1 -1
  38. package/components/ion-reorder.js +1 -1
  39. package/components/ion-router-link.js +2 -2
  40. package/components/ion-router-outlet.js +1 -1
  41. package/components/ion-row.js +1 -1
  42. package/components/ion-searchbar.js +5 -5
  43. package/components/ion-segment-button.js +3 -3
  44. package/components/ion-segment.js +10 -9
  45. package/components/ion-select-option.js +1 -1
  46. package/components/ion-select.js +20 -7
  47. package/components/ion-skeleton-text.js +2 -2
  48. package/components/ion-split-pane.js +2 -2
  49. package/components/ion-tab-bar.js +2 -2
  50. package/components/ion-tab-button.js +2 -2
  51. package/components/ion-tab.js +2 -2
  52. package/components/ion-tabs.js +1 -1
  53. package/components/ion-text.js +2 -2
  54. package/components/ion-textarea.js +2 -2
  55. package/components/ion-thumbnail.js +1 -1
  56. package/components/ion-title.js +2 -2
  57. package/components/ion-toast.js +2 -2
  58. package/components/ion-toggle.js +5 -5
  59. package/components/ion-toolbar.js +2 -2
  60. package/components/ionic-global.js +8 -1
  61. package/components/ios.transition.js +94 -67
  62. package/components/label.js +3 -3
  63. package/components/list-header.js +2 -2
  64. package/components/list.js +1 -1
  65. package/components/overlays.js +3 -2
  66. package/components/picker-column-option.js +2 -2
  67. package/components/picker-column.js +177 -6
  68. package/components/picker-column2.js +2 -2
  69. package/components/picker.js +2 -2
  70. package/components/popover.js +6 -4
  71. package/components/radio-group.js +1 -1
  72. package/components/radio.js +16 -5
  73. package/components/ripple-effect.js +1 -1
  74. package/components/select-popover.js +2 -2
  75. package/components/spinner.js +1 -1
  76. package/css/core.css +1 -1
  77. package/css/core.css.map +1 -1
  78. package/css/global.bundle.css.map +1 -1
  79. package/css/ionic.bundle.css +1 -1
  80. package/css/ionic.bundle.css.map +1 -1
  81. package/css/palettes/dark.always.css +1 -1
  82. package/css/palettes/dark.always.css.map +1 -1
  83. package/css/palettes/dark.class.css +1 -1
  84. package/css/palettes/dark.class.css.map +1 -1
  85. package/css/palettes/dark.system.css +1 -1
  86. package/css/palettes/dark.system.css.map +1 -1
  87. package/css/palettes/high-contrast-dark.always.css.map +1 -1
  88. package/css/palettes/high-contrast-dark.class.css.map +1 -1
  89. package/css/palettes/high-contrast-dark.system.css.map +1 -1
  90. package/css/palettes/high-contrast.always.css.map +1 -1
  91. package/css/palettes/high-contrast.class.css.map +1 -1
  92. package/css/palettes/high-contrast.system.css.map +1 -1
  93. package/css/typography.css.map +1 -1
  94. package/dist/cjs/{app-globals-542c4d91.js → app-globals-1c261a7f.js} +1 -1
  95. package/dist/cjs/{button-active-47528f4c.js → button-active-8da8d63e.js} +1 -1
  96. package/dist/cjs/{hardware-back-button-06ae4d9c.js → hardware-back-button-93f7a8f0.js} +2 -2
  97. package/dist/cjs/{index-57b504ac.js → index-93b3a556.js} +2 -2
  98. package/dist/cjs/index-ceeb4ff8.js +2259 -0
  99. package/dist/cjs/{index-c76a1d14.js → index-fa3cf6ba.js} +124 -6
  100. package/dist/cjs/index.cjs.js +9 -9
  101. package/dist/cjs/ion-accordion_2.cjs.entry.js +4 -4
  102. package/dist/cjs/ion-action-sheet.cjs.entry.js +5 -5
  103. package/dist/cjs/ion-alert.cjs.entry.js +5 -5
  104. package/dist/cjs/ion-app_8.cjs.entry.js +20 -19
  105. package/dist/cjs/ion-avatar_3.cjs.entry.js +3 -3
  106. package/dist/cjs/ion-back-button.cjs.entry.js +2 -2
  107. package/dist/cjs/ion-backdrop.cjs.entry.js +2 -2
  108. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +2 -2
  109. package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
  110. package/dist/cjs/ion-card_5.cjs.entry.js +2 -2
  111. package/dist/cjs/ion-checkbox.cjs.entry.js +7 -7
  112. package/dist/cjs/ion-chip.cjs.entry.js +2 -2
  113. package/dist/cjs/ion-col_3.cjs.entry.js +5 -5
  114. package/dist/cjs/ion-datetime-button.cjs.entry.js +4 -4
  115. package/dist/cjs/ion-datetime_3.cjs.entry.js +25 -22
  116. package/dist/cjs/ion-fab_3.cjs.entry.js +8 -8
  117. package/dist/cjs/ion-img.cjs.entry.js +3 -3
  118. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +5 -5
  119. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +5 -5
  120. package/dist/cjs/ion-input.cjs.entry.js +9 -6
  121. package/dist/cjs/ion-item-option_3.cjs.entry.js +6 -6
  122. package/dist/cjs/ion-item_8.cjs.entry.js +15 -15
  123. package/dist/cjs/ion-loading.cjs.entry.js +6 -6
  124. package/dist/cjs/ion-menu_3.cjs.entry.js +11 -11
  125. package/dist/cjs/ion-modal.cjs.entry.js +13 -12
  126. package/dist/cjs/ion-nav_2.cjs.entry.js +6 -5
  127. package/dist/cjs/ion-picker-column-option.cjs.entry.js +4 -4
  128. package/dist/cjs/ion-picker-column.cjs.entry.js +177 -8
  129. package/dist/cjs/ion-picker.cjs.entry.js +3 -3
  130. package/dist/cjs/ion-popover.cjs.entry.js +9 -8
  131. package/dist/cjs/ion-progress-bar.cjs.entry.js +3 -3
  132. package/dist/cjs/ion-radio_2.cjs.entry.js +19 -8
  133. package/dist/cjs/ion-range.cjs.entry.js +5 -5
  134. package/dist/cjs/ion-refresher_2.cjs.entry.js +4 -4
  135. package/dist/cjs/ion-reorder_2.cjs.entry.js +4 -4
  136. package/dist/cjs/ion-ripple-effect.cjs.entry.js +3 -3
  137. package/dist/cjs/ion-route_4.cjs.entry.js +4 -4
  138. package/dist/cjs/ion-searchbar.cjs.entry.js +7 -7
  139. package/dist/cjs/ion-segment_2.cjs.entry.js +15 -14
  140. package/dist/cjs/ion-select_3.cjs.entry.js +27 -14
  141. package/dist/cjs/ion-spinner.cjs.entry.js +3 -3
  142. package/dist/cjs/ion-split-pane.cjs.entry.js +4 -4
  143. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +6 -6
  144. package/dist/cjs/ion-tab_2.cjs.entry.js +4 -4
  145. package/dist/cjs/ion-text.cjs.entry.js +4 -4
  146. package/dist/cjs/ion-textarea.cjs.entry.js +4 -4
  147. package/dist/cjs/ion-toast.cjs.entry.js +6 -6
  148. package/dist/cjs/ion-toggle.cjs.entry.js +7 -7
  149. package/dist/cjs/{ionic-global-f3622afe.js → ionic-global-f401ca2e.js} +9 -2
  150. package/dist/cjs/ionic.cjs.js +5 -5
  151. package/dist/cjs/{ios.transition-288dfa83.js → ios.transition-ae54d131.js} +98 -69
  152. package/dist/cjs/loader.cjs.js +4 -4
  153. package/dist/cjs/{md.transition-6e5f6a8d.js → md.transition-dbc2d3f3.js} +4 -2
  154. package/dist/cjs/{overlays-32cfd236.js → overlays-d4afb0bd.js} +5 -3
  155. package/dist/cjs/{status-tap-c47ff5f5.js → status-tap-0a82a165.js} +1 -1
  156. package/dist/collection/collection-manifest.json +1 -1
  157. package/dist/collection/components/accordion/test/a11y/accordion.e2e.js +4 -3
  158. package/dist/collection/components/accordion-group/accordion-group.js +3 -3
  159. package/dist/collection/components/alert/test/a11y/alert.e2e.js +3 -1
  160. package/dist/collection/components/breadcrumbs/test/reactive/breadcrumbs.e2e.js +1 -1
  161. package/dist/collection/components/checkbox/checkbox.ios.css +1 -0
  162. package/dist/collection/components/checkbox/checkbox.js +4 -4
  163. package/dist/collection/components/checkbox/checkbox.md.css +1 -0
  164. package/dist/collection/components/content/content.js +23 -4
  165. package/dist/collection/components/content/test/content.spec.js +27 -0
  166. package/dist/collection/components/datetime/datetime.js +18 -15
  167. package/dist/collection/components/datetime/test/overlay-roles/datetime.e2e.js +34 -0
  168. package/dist/collection/components/datetime/test/position/datetime.e2e.js +1 -1
  169. package/dist/collection/components/datetime-button/datetime-button.js +2 -2
  170. package/dist/collection/components/fab/fab.js +2 -2
  171. package/dist/collection/components/fab-button/fab-button.js +2 -2
  172. package/dist/collection/components/fab-list/fab-list.js +2 -2
  173. package/dist/collection/components/footer/footer.js +2 -2
  174. package/dist/collection/components/grid/grid.js +2 -2
  175. package/dist/collection/components/header/header.js +2 -2
  176. package/dist/collection/components/img/img.js +1 -1
  177. package/dist/collection/components/infinite-scroll/infinite-scroll.js +1 -1
  178. package/dist/collection/components/infinite-scroll-content/infinite-scroll-content.js +2 -2
  179. package/dist/collection/components/input/input.js +25 -5
  180. package/dist/collection/components/input/test/input.spec.js +13 -0
  181. package/dist/collection/components/input-password-toggle/input-password-toggle.js +3 -3
  182. package/dist/collection/components/item/test/a11y/item.e2e.js +24 -4
  183. package/dist/collection/components/item/test/inputs/item.e2e.js +46 -0
  184. package/dist/collection/components/item/test/slotted-inputs/item.e2e.js +135 -0
  185. package/dist/collection/components/item-divider/item-divider.js +2 -2
  186. package/dist/collection/components/item-group/item-group.js +1 -1
  187. package/dist/collection/components/item-option/item-option.js +2 -2
  188. package/dist/collection/components/item-options/item-options.js +1 -1
  189. package/dist/collection/components/item-sliding/item-sliding.js +1 -1
  190. package/dist/collection/components/label/label.ios.css +1 -1
  191. package/dist/collection/components/label/label.js +2 -2
  192. package/dist/collection/components/list/list.js +1 -1
  193. package/dist/collection/components/list-header/list-header.js +2 -2
  194. package/dist/collection/components/loading/loading.js +2 -2
  195. package/dist/collection/components/loading/test/basic/loading.e2e.js +1 -1
  196. package/dist/collection/components/menu/menu.js +2 -2
  197. package/dist/collection/components/menu/test/basic/menu.e2e.js +1 -1
  198. package/dist/collection/components/menu-button/menu-button.js +2 -2
  199. package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
  200. package/dist/collection/components/modal/gestures/sheet.js +3 -2
  201. package/dist/collection/components/modal/modal.js +25 -6
  202. package/dist/collection/components/modal/test/basic/modal.spec.js +19 -0
  203. package/dist/collection/components/modal/test/trigger/modal.e2e.js +1 -1
  204. package/dist/collection/components/nav/nav.js +1 -1
  205. package/dist/collection/components/nav/test/basic/nav.e2e.js +5 -5
  206. package/dist/collection/components/nav/test/nested/nav.e2e.js +6 -6
  207. package/dist/collection/components/nav/test/routing/nav.e2e.js +7 -7
  208. package/dist/collection/components/nav-link/nav-link.js +1 -1
  209. package/dist/collection/components/note/note.js +2 -2
  210. package/dist/collection/components/picker/picker.js +2 -2
  211. package/dist/collection/components/picker-column/picker-column.css +19 -0
  212. package/dist/collection/components/picker-column/picker-column.js +180 -6
  213. package/dist/collection/components/picker-column/test/picker-column.spec.js +83 -0
  214. package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
  215. package/dist/collection/components/picker-legacy/picker.js +2 -2
  216. package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
  217. package/dist/collection/components/popover/popover.js +23 -4
  218. package/dist/collection/components/popover/test/basic/popover.spec.js +19 -0
  219. package/dist/collection/components/popover/test/trigger/popover.e2e.js +1 -1
  220. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  221. package/dist/collection/components/radio/radio.ios.css +1 -0
  222. package/dist/collection/components/radio/radio.js +14 -3
  223. package/dist/collection/components/radio/radio.md.css +1 -0
  224. package/dist/collection/components/radio-group/radio-group.js +2 -2
  225. package/dist/collection/components/range/range.js +4 -4
  226. package/dist/collection/components/refresher/refresher.js +1 -1
  227. package/dist/collection/components/refresher-content/refresher-content.js +1 -1
  228. package/dist/collection/components/reorder/reorder.js +1 -1
  229. package/dist/collection/components/reorder-group/reorder-group.js +1 -1
  230. package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
  231. package/dist/collection/components/router-link/router-link.js +2 -2
  232. package/dist/collection/components/router-outlet/router-outlet.js +1 -1
  233. package/dist/collection/components/row/row.js +1 -1
  234. package/dist/collection/components/searchbar/searchbar.js +6 -6
  235. package/dist/collection/components/segment/segment.js +11 -10
  236. package/dist/collection/components/segment-button/segment-button.js +3 -3
  237. package/dist/collection/components/select/select.ios.css +1 -0
  238. package/dist/collection/components/select/select.js +19 -6
  239. package/dist/collection/components/select/select.md.css +1 -0
  240. package/dist/collection/components/select/test/basic/select.e2e.js +1 -1
  241. package/dist/collection/components/select/test/disabled/select.e2e.js +1 -1
  242. package/dist/collection/components/select/test/fill/select.e2e.js +25 -0
  243. package/dist/collection/components/select-option/select-option.js +1 -1
  244. package/dist/collection/components/select-popover/select-popover.js +1 -1
  245. package/dist/collection/components/select-popover/select-popover.md.css +8 -1
  246. package/dist/collection/components/select-popover/test/basic/select-popover.e2e.js +2 -2
  247. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  248. package/dist/collection/components/spinner/spinner.js +1 -1
  249. package/dist/collection/components/split-pane/split-pane.js +2 -2
  250. package/dist/collection/components/tab/tab.js +2 -2
  251. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  252. package/dist/collection/components/tab-button/tab-button.js +2 -2
  253. package/dist/collection/components/tabs/tabs.js +1 -1
  254. package/dist/collection/components/text/text.js +2 -2
  255. package/dist/collection/components/textarea/textarea.js +3 -3
  256. package/dist/collection/components/thumbnail/thumbnail.js +1 -1
  257. package/dist/collection/components/title/title.js +2 -2
  258. package/dist/collection/components/toast/test/basic/toast.e2e.js +1 -0
  259. package/dist/collection/components/toast/toast.js +2 -2
  260. package/dist/collection/components/toggle/toggle.ios.css +1 -0
  261. package/dist/collection/components/toggle/toggle.js +4 -4
  262. package/dist/collection/components/toggle/toggle.md.css +1 -0
  263. package/dist/collection/components/toolbar/toolbar.js +2 -2
  264. package/dist/collection/global/config.js +8 -1
  265. package/dist/collection/global/test/config-controller.spec.js +9 -1
  266. package/dist/collection/utils/focus-controller/index.js +112 -0
  267. package/dist/collection/utils/focus-controller/test/generic/focus-controller.e2e.js +52 -0
  268. package/dist/collection/utils/focus-controller/test/ionic/focus-controller.e2e.js +52 -0
  269. package/dist/collection/utils/overlays.js +2 -1
  270. package/dist/collection/utils/transition/index.js +11 -1
  271. package/dist/collection/utils/transition/ios.transition.js +94 -67
  272. package/dist/docs.d.ts +34 -0
  273. package/dist/docs.json +3616 -497
  274. package/dist/esm/{app-globals-3cbaf9d9.js → app-globals-7c667c11.js} +1 -1
  275. package/dist/esm/{button-active-9e3c1f3b.js → button-active-7c57df95.js} +1 -1
  276. package/dist/esm/{hardware-back-button-804f43bb.js → hardware-back-button-63852d15.js} +2 -2
  277. package/dist/esm/{index-8dbae644.js → index-1e2f8425.js} +2 -2
  278. package/dist/esm/index-8d8c14b0.js +2221 -0
  279. package/dist/esm/{index-f7fbe1fb.js → index-91ed2172.js} +122 -4
  280. package/dist/esm/index.js +9 -9
  281. package/dist/esm/ion-accordion_2.entry.js +4 -4
  282. package/dist/esm/ion-action-sheet.entry.js +5 -5
  283. package/dist/esm/ion-alert.entry.js +5 -5
  284. package/dist/esm/ion-app_8.entry.js +20 -19
  285. package/dist/esm/ion-avatar_3.entry.js +3 -3
  286. package/dist/esm/ion-back-button.entry.js +2 -2
  287. package/dist/esm/ion-backdrop.entry.js +2 -2
  288. package/dist/esm/ion-breadcrumb_2.entry.js +2 -2
  289. package/dist/esm/ion-button_2.entry.js +2 -2
  290. package/dist/esm/ion-card_5.entry.js +2 -2
  291. package/dist/esm/ion-checkbox.entry.js +7 -7
  292. package/dist/esm/ion-chip.entry.js +2 -2
  293. package/dist/esm/ion-col_3.entry.js +5 -5
  294. package/dist/esm/ion-datetime-button.entry.js +4 -4
  295. package/dist/esm/ion-datetime_3.entry.js +25 -22
  296. package/dist/esm/ion-fab_3.entry.js +8 -8
  297. package/dist/esm/ion-img.entry.js +3 -3
  298. package/dist/esm/ion-infinite-scroll_2.entry.js +5 -5
  299. package/dist/esm/ion-input-password-toggle.entry.js +5 -5
  300. package/dist/esm/ion-input.entry.js +9 -6
  301. package/dist/esm/ion-item-option_3.entry.js +6 -6
  302. package/dist/esm/ion-item_8.entry.js +15 -15
  303. package/dist/esm/ion-loading.entry.js +6 -6
  304. package/dist/esm/ion-menu_3.entry.js +11 -11
  305. package/dist/esm/ion-modal.entry.js +13 -12
  306. package/dist/esm/ion-nav_2.entry.js +6 -5
  307. package/dist/esm/ion-picker-column-option.entry.js +4 -4
  308. package/dist/esm/ion-picker-column.entry.js +177 -8
  309. package/dist/esm/ion-picker.entry.js +3 -3
  310. package/dist/esm/ion-popover.entry.js +9 -8
  311. package/dist/esm/ion-progress-bar.entry.js +3 -3
  312. package/dist/esm/ion-radio_2.entry.js +19 -8
  313. package/dist/esm/ion-range.entry.js +5 -5
  314. package/dist/esm/ion-refresher_2.entry.js +4 -4
  315. package/dist/esm/ion-reorder_2.entry.js +4 -4
  316. package/dist/esm/ion-ripple-effect.entry.js +3 -3
  317. package/dist/esm/ion-route_4.entry.js +4 -4
  318. package/dist/esm/ion-searchbar.entry.js +7 -7
  319. package/dist/esm/ion-segment_2.entry.js +15 -14
  320. package/dist/esm/ion-select_3.entry.js +27 -14
  321. package/dist/esm/ion-spinner.entry.js +3 -3
  322. package/dist/esm/ion-split-pane.entry.js +4 -4
  323. package/dist/esm/ion-tab-bar_2.entry.js +6 -6
  324. package/dist/esm/ion-tab_2.entry.js +4 -4
  325. package/dist/esm/ion-text.entry.js +4 -4
  326. package/dist/esm/ion-textarea.entry.js +4 -4
  327. package/dist/esm/ion-toast.entry.js +6 -6
  328. package/dist/esm/ion-toggle.entry.js +7 -7
  329. package/dist/esm/{ionic-global-d2d8f882.js → ionic-global-8180d812.js} +9 -2
  330. package/dist/esm/ionic.js +6 -6
  331. package/dist/esm/{ios.transition-a0041e41.js → ios.transition-140cedc8.js} +98 -69
  332. package/dist/esm/loader.js +5 -5
  333. package/dist/esm/{md.transition-0c0602d9.js → md.transition-4961bea4.js} +4 -2
  334. package/dist/esm/{overlays-696d25f5.js → overlays-e8e5bd06.js} +5 -4
  335. package/dist/esm/{status-tap-37a74d1c.js → status-tap-0502d0fd.js} +1 -1
  336. package/dist/esm-es5/app-globals-7c667c11.js +4 -0
  337. package/dist/esm-es5/{button-active-9e3c1f3b.js → button-active-7c57df95.js} +1 -1
  338. package/dist/esm-es5/{hardware-back-button-804f43bb.js → hardware-back-button-63852d15.js} +1 -1
  339. package/dist/esm-es5/{index-8dbae644.js → index-1e2f8425.js} +1 -1
  340. package/dist/esm-es5/index-8d8c14b0.js +5 -0
  341. package/dist/esm-es5/index-91ed2172.js +4 -0
  342. package/dist/esm-es5/index.js +1 -1
  343. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  344. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  345. package/dist/esm-es5/ion-alert.entry.js +1 -1
  346. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  347. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  348. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  349. package/dist/esm-es5/ion-backdrop.entry.js +1 -1
  350. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  351. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  352. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  353. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  354. package/dist/esm-es5/ion-chip.entry.js +1 -1
  355. package/dist/esm-es5/ion-col_3.entry.js +1 -1
  356. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  357. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  358. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  359. package/dist/esm-es5/ion-img.entry.js +1 -1
  360. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  361. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  362. package/dist/esm-es5/ion-input.entry.js +1 -1
  363. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  364. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  365. package/dist/esm-es5/ion-loading.entry.js +1 -1
  366. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  367. package/dist/esm-es5/ion-modal.entry.js +1 -1
  368. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  369. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  370. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  371. package/dist/esm-es5/ion-picker.entry.js +1 -1
  372. package/dist/esm-es5/ion-popover.entry.js +1 -1
  373. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  374. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  375. package/dist/esm-es5/ion-range.entry.js +1 -1
  376. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  377. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  378. package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
  379. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  380. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  381. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  382. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  383. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  384. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  385. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  386. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  387. package/dist/esm-es5/ion-text.entry.js +1 -1
  388. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  389. package/dist/esm-es5/ion-toast.entry.js +1 -1
  390. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  391. package/dist/esm-es5/ionic-global-8180d812.js +4 -0
  392. package/dist/esm-es5/ionic.js +1 -1
  393. package/dist/esm-es5/ios.transition-140cedc8.js +4 -0
  394. package/dist/esm-es5/loader.js +1 -1
  395. package/dist/esm-es5/md.transition-4961bea4.js +4 -0
  396. package/dist/esm-es5/{overlays-696d25f5.js → overlays-e8e5bd06.js} +1 -1
  397. package/dist/esm-es5/{status-tap-37a74d1c.js → status-tap-0502d0fd.js} +1 -1
  398. package/dist/html.html-data.json +115 -91
  399. package/dist/ionic/index.esm.js +1 -1
  400. package/dist/ionic/ionic.esm.js +1 -1
  401. package/dist/ionic/ionic.js +1 -1
  402. package/dist/ionic/{p-e9ef13be.system.entry.js → p-00343522.system.entry.js} +1 -1
  403. package/dist/ionic/{p-bdd3053f.entry.js → p-00f85ca4.entry.js} +1 -1
  404. package/dist/ionic/p-0213e506.entry.js +4 -0
  405. package/dist/ionic/p-036382b2.system.entry.js +4 -0
  406. package/dist/ionic/{p-c7e0b81a.entry.js → p-0617a85d.entry.js} +1 -1
  407. package/dist/ionic/{p-5d3a8503.system.entry.js → p-06330374.system.entry.js} +2 -2
  408. package/dist/ionic/p-0973cae7.entry.js +4 -0
  409. package/dist/ionic/{p-e3005be4.system.entry.js → p-09bd8558.system.entry.js} +1 -1
  410. package/dist/ionic/{p-6e9bd6ba.system.entry.js → p-0a9c8c36.system.entry.js} +1 -1
  411. package/dist/ionic/p-0f89c47c.js +4 -0
  412. package/dist/ionic/{p-2f308f7f.system.entry.js → p-111b0e11.system.entry.js} +2 -2
  413. package/dist/ionic/{p-93e43f42.system.entry.js → p-11feccde.system.entry.js} +1 -1
  414. package/dist/ionic/p-13a736a9.entry.js +4 -0
  415. package/dist/ionic/{p-bbbe3138.system.entry.js → p-18657fab.system.entry.js} +1 -1
  416. package/dist/ionic/p-1ca3679b.entry.js +4 -0
  417. package/dist/ionic/{p-cdee3a44.system.entry.js → p-1dd59f8d.system.entry.js} +1 -1
  418. package/dist/ionic/p-1e5cabf8.entry.js +4 -0
  419. package/dist/ionic/{p-b799a007.entry.js → p-24b0ece0.entry.js} +1 -1
  420. package/dist/ionic/{p-4e5288de.system.js → p-27317f8f.system.js} +1 -1
  421. package/dist/ionic/p-30bbe61c.system.js +4 -0
  422. package/dist/ionic/{p-4e548bd7.system.entry.js → p-34827988.system.entry.js} +1 -1
  423. package/dist/ionic/p-370835b4.system.js +4 -0
  424. package/dist/ionic/p-39303199.system.js +4 -0
  425. package/dist/ionic/{p-aa0ed22b.system.entry.js → p-3b0711a0.system.entry.js} +1 -1
  426. package/dist/ionic/{p-94180ecc.entry.js → p-3d1951f5.entry.js} +1 -1
  427. package/dist/ionic/p-3fd68f4e.system.entry.js +4 -0
  428. package/dist/ionic/{p-b571cab1.entry.js → p-443cbfcb.entry.js} +1 -1
  429. package/dist/ionic/{p-3f5b86b4.entry.js → p-4455daad.entry.js} +1 -1
  430. package/dist/ionic/{p-aa0f60b2.system.js → p-45a51395.system.js} +1 -1
  431. package/dist/ionic/{p-c671b28e.js → p-4691dc8d.js} +1 -1
  432. package/dist/ionic/{p-7f59064a.entry.js → p-4713f5f0.entry.js} +1 -1
  433. package/dist/ionic/p-479e7655.system.js +5 -0
  434. package/dist/ionic/{p-283fd4e1.system.entry.js → p-47ab6574.system.entry.js} +1 -1
  435. package/dist/ionic/{p-c4676693.entry.js → p-4816d827.entry.js} +1 -1
  436. package/dist/ionic/{p-1930d8e7.entry.js → p-4927bd6e.entry.js} +1 -1
  437. package/dist/ionic/p-4fa57f1e.system.entry.js +4 -0
  438. package/dist/ionic/{p-26d33af2.system.entry.js → p-54b04ed1.system.entry.js} +1 -1
  439. package/dist/ionic/{p-c3ca0292.system.entry.js → p-5cd86cdb.system.entry.js} +1 -1
  440. package/dist/ionic/{p-63265e00.system.entry.js → p-5e1094ae.system.entry.js} +2 -2
  441. package/dist/ionic/{p-4c153abb.entry.js → p-5f610767.entry.js} +1 -1
  442. package/dist/ionic/p-65a8336f.entry.js +4 -0
  443. package/dist/ionic/p-66de062f.system.entry.js +4 -0
  444. package/dist/ionic/{p-5a3a3373.entry.js → p-69cc64ab.entry.js} +1 -1
  445. package/dist/ionic/p-6c16d0e8.js +4 -0
  446. package/dist/ionic/p-6e76ed16.entry.js +4 -0
  447. package/dist/ionic/p-7058dfda.entry.js +4 -0
  448. package/dist/ionic/{p-1980c728.system.js → p-7171dbf4.system.js} +1 -1
  449. package/dist/ionic/p-7198726e.entry.js +4 -0
  450. package/dist/ionic/{p-5d4d89e0.system.entry.js → p-71e2f283.system.entry.js} +1 -1
  451. package/dist/ionic/{p-d6229f05.system.entry.js → p-71f25447.system.entry.js} +1 -1
  452. package/dist/ionic/{p-5fbc2eae.system.entry.js → p-750e902d.system.entry.js} +1 -1
  453. package/dist/ionic/{p-53a3b33c.system.entry.js → p-764eb419.system.entry.js} +1 -1
  454. package/dist/ionic/p-76637161.system.entry.js +4 -0
  455. package/dist/ionic/{p-8627f783.system.entry.js → p-78bf8302.system.entry.js} +2 -2
  456. package/dist/ionic/p-79f4cb29.entry.js +4 -0
  457. package/dist/ionic/p-7a416af9.entry.js +4 -0
  458. package/dist/ionic/{p-e49099b0.entry.js → p-80aae5d7.entry.js} +1 -1
  459. package/dist/ionic/{p-819e8479.system.entry.js → p-8890e47f.system.entry.js} +1 -1
  460. package/dist/ionic/{p-8caca06c.system.entry.js → p-8c7490bc.system.entry.js} +1 -1
  461. package/dist/ionic/{p-051d2d23.js → p-8d0eb68d.js} +1 -1
  462. package/dist/ionic/{p-b76bcd9e.system.entry.js → p-935221f8.system.entry.js} +1 -1
  463. package/dist/ionic/{p-70181008.entry.js → p-941ecbba.entry.js} +1 -1
  464. package/dist/ionic/{p-0af79ebd.entry.js → p-94b46442.entry.js} +1 -1
  465. package/dist/ionic/p-967da5f2.system.js +4 -0
  466. package/dist/ionic/{p-1e4d7975.system.js → p-98125393.system.js} +1 -1
  467. package/dist/ionic/{p-08c4d048.entry.js → p-9b46f7e0.entry.js} +1 -1
  468. package/dist/ionic/{p-6730a2f1.entry.js → p-a00a5621.entry.js} +1 -1
  469. package/dist/ionic/{p-a592f1b8.system.entry.js → p-a055fdcf.system.entry.js} +1 -1
  470. package/dist/ionic/{p-2c3c7cb9.system.entry.js → p-a0abe7ab.system.entry.js} +2 -2
  471. package/dist/ionic/p-a4116282.entry.js +4 -0
  472. package/dist/ionic/p-a4a45ad9.system.js +4 -0
  473. package/dist/ionic/p-a5adb027.entry.js +4 -0
  474. package/dist/ionic/{p-8c4fc85f.system.js → p-a82d4913.system.js} +1 -1
  475. package/dist/ionic/{p-23e440b6.entry.js → p-a87b1500.entry.js} +1 -1
  476. package/dist/ionic/{p-2b1e669d.system.entry.js → p-a931cd3e.system.entry.js} +1 -1
  477. package/dist/ionic/{p-748e6b2b.system.entry.js → p-ae3be67f.system.entry.js} +1 -1
  478. package/dist/ionic/{p-9384565a.entry.js → p-aeb61b82.entry.js} +1 -1
  479. package/dist/ionic/{p-33d926c3.entry.js → p-aeef6ac4.entry.js} +1 -1
  480. package/dist/ionic/p-aef1c744.system.js +4 -0
  481. package/dist/ionic/p-b0ff8469.system.entry.js +4 -0
  482. package/dist/ionic/{p-5ff497dc.system.entry.js → p-b7299e38.system.entry.js} +1 -1
  483. package/dist/ionic/{p-c23627c3.entry.js → p-b7eecfa6.entry.js} +1 -1
  484. package/dist/ionic/{p-45034312.system.entry.js → p-b84d9005.system.entry.js} +1 -1
  485. package/dist/ionic/{p-48888af6.system.entry.js → p-bad2e0c8.system.entry.js} +1 -1
  486. package/dist/ionic/p-bd7ad51d.system.entry.js +4 -0
  487. package/dist/ionic/{p-d11c336d.js → p-bdc1b4e3.js} +1 -1
  488. package/dist/ionic/{p-42f00e72.system.entry.js → p-c1d7a187.system.entry.js} +1 -1
  489. package/dist/ionic/p-c4493e98.system.entry.js +4 -0
  490. package/dist/ionic/p-c44efdb8.entry.js +4 -0
  491. package/dist/ionic/p-c5543c41.system.entry.js +4 -0
  492. package/dist/ionic/p-c5c65bbe.js +4 -0
  493. package/dist/ionic/{p-5d80b741.entry.js → p-c6143912.entry.js} +1 -1
  494. package/dist/ionic/{p-bd6d9610.entry.js → p-c623f0d9.entry.js} +1 -1
  495. package/dist/ionic/p-c6d9d978.system.entry.js +4 -0
  496. package/dist/ionic/p-c7717147.js +4 -0
  497. package/dist/ionic/p-c7a015e4.entry.js +4 -0
  498. package/dist/ionic/{p-c07e7a5d.entry.js → p-c89af27e.entry.js} +1 -1
  499. package/dist/ionic/{p-d1a8f599.entry.js → p-cd681265.entry.js} +1 -1
  500. package/dist/ionic/{p-f5c42f72.entry.js → p-cf8ad0c3.entry.js} +1 -1
  501. package/dist/ionic/p-d6dbda17.js +5 -0
  502. package/dist/ionic/{p-e885f3c4.entry.js → p-d7e957e9.entry.js} +1 -1
  503. package/dist/ionic/p-d8a1f0e2.entry.js +4 -0
  504. package/dist/ionic/p-dba2da82.system.entry.js +4 -0
  505. package/dist/ionic/{p-77ce6034.js → p-ddde112a.js} +1 -1
  506. package/dist/ionic/{p-2ab5db0d.system.entry.js → p-e08d9edc.system.entry.js} +1 -1
  507. package/dist/ionic/{p-c9ba1908.entry.js → p-eaab79f3.entry.js} +1 -1
  508. package/dist/ionic/{p-0b12d1ee.system.entry.js → p-ee8bf348.system.entry.js} +1 -1
  509. package/dist/ionic/{p-9b31ebfa.entry.js → p-eea44228.entry.js} +1 -1
  510. package/dist/ionic/{p-c62571da.entry.js → p-eef82267.entry.js} +1 -1
  511. package/dist/ionic/{p-2a3e98fb.system.entry.js → p-f149e6c3.system.entry.js} +1 -1
  512. package/dist/ionic/{p-fd392e7f.system.entry.js → p-f1c090c5.system.entry.js} +1 -1
  513. package/dist/ionic/{p-ebe0aa6d.entry.js → p-f5efe527.entry.js} +1 -1
  514. package/dist/ionic/p-f6a419d2.js +4 -0
  515. package/dist/ionic/p-f896c857.system.entry.js +4 -0
  516. package/dist/ionic/{p-576786c0.system.entry.js → p-f9046353.system.entry.js} +1 -1
  517. package/dist/ionic/p-f9b3ffd6.system.entry.js +4 -0
  518. package/dist/ionic/{p-320cfcab.entry.js → p-fa7234ee.entry.js} +1 -1
  519. package/dist/ionic/{p-470f73c4.entry.js → p-fba8ea9e.entry.js} +1 -1
  520. package/dist/ionic/p-fc6f99be.js +4 -0
  521. package/dist/ionic/{p-b0093947.system.js → p-fcbd65bc.system.js} +1 -1
  522. package/dist/types/components/accordion-group/accordion-group.d.ts +3 -4
  523. package/dist/types/components/checkbox/checkbox.d.ts +3 -4
  524. package/dist/types/components/content/content.d.ts +8 -0
  525. package/dist/types/components/datetime/datetime.d.ts +2 -0
  526. package/dist/types/components/input/input.d.ts +6 -0
  527. package/dist/types/components/modal/modal-interface.d.ts +1 -0
  528. package/dist/types/components/modal/modal.d.ts +18 -0
  529. package/dist/types/components/picker-column/picker-column.d.ts +37 -0
  530. package/dist/types/components/popover/popover-interface.d.ts +1 -0
  531. package/dist/types/components/popover/popover.d.ts +18 -0
  532. package/dist/types/components/radio/radio.d.ts +1 -0
  533. package/dist/types/components/radio-group/radio-group.d.ts +2 -0
  534. package/dist/types/components/range/range.d.ts +1 -1
  535. package/dist/types/components/searchbar/searchbar.d.ts +2 -0
  536. package/dist/types/components/segment/segment.d.ts +4 -2
  537. package/dist/types/components/select/select.d.ts +4 -1
  538. package/dist/types/components/textarea/textarea.d.ts +2 -0
  539. package/dist/types/components/toggle/toggle.d.ts +3 -2
  540. package/dist/types/components.d.ts +44 -12
  541. package/dist/types/stencil-public-runtime.d.ts +1 -0
  542. package/dist/types/utils/config.d.ts +9 -0
  543. package/dist/types/utils/focus-controller/index.d.ts +13 -0
  544. package/dist/types/utils/overlays.d.ts +1 -0
  545. package/hydrate/index.js +43590 -39248
  546. package/loader/cdn.js +1 -1
  547. package/loader/index.cjs.js +1 -1
  548. package/loader/index.es2017.js +1 -1
  549. package/loader/index.js +1 -1
  550. package/package.json +7 -7
  551. package/dist/cjs/index-1437d080.js +0 -11980
  552. package/dist/esm/index-5dc2b88e.js +0 -11942
  553. package/dist/esm-es5/app-globals-3cbaf9d9.js +0 -4
  554. package/dist/esm-es5/index-5dc2b88e.js +0 -18
  555. package/dist/esm-es5/index-f7fbe1fb.js +0 -4
  556. package/dist/esm-es5/ionic-global-d2d8f882.js +0 -4
  557. package/dist/esm-es5/ios.transition-a0041e41.js +0 -4
  558. package/dist/esm-es5/md.transition-0c0602d9.js +0 -4
  559. package/dist/ionic/p-057b5866.entry.js +0 -4
  560. package/dist/ionic/p-06d5221c.js +0 -4
  561. package/dist/ionic/p-06fad524.system.js +0 -4
  562. package/dist/ionic/p-0d56dea9.entry.js +0 -4
  563. package/dist/ionic/p-0d960144.system.entry.js +0 -4
  564. package/dist/ionic/p-13bfcef4.system.entry.js +0 -4
  565. package/dist/ionic/p-16016625.system.js +0 -4
  566. package/dist/ionic/p-1a5227b3.system.entry.js +0 -4
  567. package/dist/ionic/p-20304962.js +0 -4
  568. package/dist/ionic/p-2dfdda15.system.entry.js +0 -4
  569. package/dist/ionic/p-2fa34b5c.entry.js +0 -4
  570. package/dist/ionic/p-32048e4c.system.js +0 -18
  571. package/dist/ionic/p-34511b1d.js +0 -4
  572. package/dist/ionic/p-385964e6.entry.js +0 -4
  573. package/dist/ionic/p-4324e8a4.entry.js +0 -4
  574. package/dist/ionic/p-45664cb9.system.js +0 -4
  575. package/dist/ionic/p-49cdc4f2.entry.js +0 -4
  576. package/dist/ionic/p-4ad48ec9.system.entry.js +0 -4
  577. package/dist/ionic/p-4af0b730.js +0 -8
  578. package/dist/ionic/p-4fcef939.entry.js +0 -4
  579. package/dist/ionic/p-567a21a2.system.entry.js +0 -4
  580. package/dist/ionic/p-583f8865.system.entry.js +0 -4
  581. package/dist/ionic/p-58f89707.js +0 -4
  582. package/dist/ionic/p-720927ad.entry.js +0 -4
  583. package/dist/ionic/p-7536b4b3.system.js +0 -4
  584. package/dist/ionic/p-7ef5bb32.entry.js +0 -4
  585. package/dist/ionic/p-806aad8f.system.js +0 -4
  586. package/dist/ionic/p-80f85095.system.entry.js +0 -4
  587. package/dist/ionic/p-8664c316.entry.js +0 -4
  588. package/dist/ionic/p-8e031d97.entry.js +0 -4
  589. package/dist/ionic/p-8f48c966.system.entry.js +0 -4
  590. package/dist/ionic/p-94731a92.system.entry.js +0 -4
  591. package/dist/ionic/p-a801da4b.system.entry.js +0 -4
  592. package/dist/ionic/p-adb896a0.entry.js +0 -4
  593. package/dist/ionic/p-cb4f96f3.system.js +0 -4
  594. package/dist/ionic/p-cc856712.entry.js +0 -4
  595. package/dist/ionic/p-cd1b9056.js +0 -4
  596. package/dist/ionic/p-d918e7ef.system.entry.js +0 -4
  597. package/dist/ionic/p-df062892.system.entry.js +0 -4
  598. package/dist/ionic/p-ee3bbaf2.entry.js +0 -4
  599. package/dist/ionic/p-f0be340f.entry.js +0 -4
  600. package/dist/ionic/p-fc94e18f.entry.js +0 -4
  601. package/dist/ionic/p-fdf40b09.js +0 -4
@@ -151,3 +151,49 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
151
151
  });
152
152
  });
153
153
  });
154
+ /**
155
+ * This behavior does not vary across directions
156
+ */
157
+ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
158
+ test.describe(title('item: inputs'), () => {
159
+ test('should not shrink the width of a div next to a checkbox, radio, select or toggle', async ({ page, }, testInfo) => {
160
+ testInfo.annotations.push({
161
+ type: 'issue',
162
+ description: 'https://github.com/ionic-team/ionic-framework/issues/29319',
163
+ });
164
+ await page.setContent(`
165
+ <style>
166
+ .box {
167
+ background: lightgreen;
168
+
169
+ width: 60px;
170
+ height: 60px;
171
+ }
172
+ </style>
173
+
174
+ <ion-list lines="none">
175
+ <ion-item>
176
+ <div class="box"></div>
177
+ <ion-checkbox>Checkbox</ion-checkbox>
178
+ </ion-item>
179
+ <ion-item>
180
+ <div class="box"></div>
181
+ <ion-radio>Radio</ion-radio>
182
+ </ion-item>
183
+ <ion-item>
184
+ <div class="box"></div>
185
+ <ion-select label="Select">
186
+ <ion-select-option>Option</ion-select-option>
187
+ </ion-select>
188
+ </ion-item>
189
+ <ion-item>
190
+ <div class="box"></div>
191
+ <ion-toggle>Toggle</ion-toggle>
192
+ </ion-item>
193
+ </ion-list>
194
+ `, config);
195
+ const list = page.locator('ion-list');
196
+ await expect(list).toHaveScreenshot(screenshot(`item-inputs-div-with-inputs`));
197
+ });
198
+ });
199
+ });
@@ -12,3 +12,138 @@ configs().forEach(({ title, screenshot, config }) => {
12
12
  });
13
13
  });
14
14
  });
15
+ /**
16
+ * This behavior does not vary across directions
17
+ */
18
+ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
19
+ test.describe(title('item: slotted inputs'), () => {
20
+ test.describe('checkbox', () => {
21
+ test('should not expand the slotted checkbox width larger than its content', async ({ page }, testInfo) => {
22
+ testInfo.annotations.push({
23
+ type: 'issue',
24
+ description: 'https://github.com/ionic-team/ionic-framework/issues/29423',
25
+ });
26
+ await page.setContent(`
27
+ <ion-list>
28
+ <ion-item>
29
+ <ion-checkbox slot="start"></ion-checkbox>
30
+ <ion-label>Label</ion-label>
31
+ </ion-item>
32
+ <ion-item>
33
+ <ion-label>Label</ion-label>
34
+ <ion-checkbox slot="end"></ion-checkbox>
35
+ </ion-item>
36
+ <ion-item>
37
+ <ion-checkbox slot="start">Start</ion-checkbox>
38
+ <ion-label>Label</ion-label>
39
+ </ion-item>
40
+ <ion-item>
41
+ <ion-label>Label</ion-label>
42
+ <ion-checkbox slot="end">End</ion-checkbox>
43
+ </ion-item>
44
+ </ion-list>
45
+ `, config);
46
+ const list = page.locator('ion-list');
47
+ await expect(list).toHaveScreenshot(screenshot(`item-slotted-inputs-checkbox`));
48
+ });
49
+ });
50
+ test.describe('radio', () => {
51
+ test('should not expand the slotted radio width larger than its content', async ({ page }, testInfo) => {
52
+ testInfo.annotations.push({
53
+ type: 'issue',
54
+ description: 'https://github.com/ionic-team/ionic-framework/issues/29423',
55
+ });
56
+ await page.setContent(`
57
+ <ion-list>
58
+ <ion-item>
59
+ <ion-radio slot="start"></ion-radio>
60
+ <ion-label>Label</ion-label>
61
+ </ion-item>
62
+ <ion-item>
63
+ <ion-label>Label</ion-label>
64
+ <ion-radio slot="end"></ion-radio>
65
+ </ion-item>
66
+ <ion-item>
67
+ <ion-radio slot="start">Start</ion-radio>
68
+ <ion-label>Label</ion-label>
69
+ </ion-item>
70
+ <ion-item>
71
+ <ion-label>Label</ion-label>
72
+ <ion-radio slot="end">End</ion-radio>
73
+ </ion-item>
74
+ </ion-list>
75
+ `, config);
76
+ const list = page.locator('ion-list');
77
+ await expect(list).toHaveScreenshot(screenshot(`item-slotted-inputs-radio`));
78
+ });
79
+ });
80
+ test.describe('select', () => {
81
+ test('should not expand the slotted select width larger than its content', async ({ page }, testInfo) => {
82
+ testInfo.annotations.push({
83
+ type: 'issue',
84
+ description: 'https://github.com/ionic-team/ionic-framework/issues/29423',
85
+ });
86
+ await page.setContent(`
87
+ <ion-list>
88
+ <ion-item>
89
+ <ion-select slot="start">
90
+ <ion-select-option>Option</ion-select-option>
91
+ </ion-select>
92
+ <ion-label>Label</ion-label>
93
+ </ion-item>
94
+ <ion-item>
95
+ <ion-label>Label</ion-label>
96
+ <ion-select slot="end">
97
+ <ion-select-option>Option</ion-select-option>
98
+ </ion-select>
99
+ </ion-item>
100
+ <ion-item>
101
+ <ion-select slot="start" label="Start">
102
+ <ion-select-option>Option</ion-select-option>
103
+ </ion-select>
104
+ <ion-label>Label</ion-label>
105
+ </ion-item>
106
+ <ion-item>
107
+ <ion-label>Label</ion-label>
108
+ <ion-select slot="end" label="End">
109
+ <ion-select-option>Option</ion-select-option>
110
+ </ion-select>
111
+ </ion-item>
112
+ </ion-list>
113
+ `, config);
114
+ const list = page.locator('ion-list');
115
+ await expect(list).toHaveScreenshot(screenshot(`item-slotted-inputs-select`));
116
+ });
117
+ });
118
+ test.describe('toggle', () => {
119
+ test('should not expand the slotted toggle width larger than its content', async ({ page }, testInfo) => {
120
+ testInfo.annotations.push({
121
+ type: 'issue',
122
+ description: 'https://github.com/ionic-team/ionic-framework/issues/29423',
123
+ });
124
+ await page.setContent(`
125
+ <ion-list>
126
+ <ion-item>
127
+ <ion-toggle slot="start"></ion-toggle>
128
+ <ion-label>Label</ion-label>
129
+ </ion-item>
130
+ <ion-item>
131
+ <ion-label>Label</ion-label>
132
+ <ion-toggle slot="end"></ion-toggle>
133
+ </ion-item>
134
+ <ion-item>
135
+ <ion-toggle slot="start">Start</ion-toggle>
136
+ <ion-label>Label</ion-label>
137
+ </ion-item>
138
+ <ion-item>
139
+ <ion-label>Label</ion-label>
140
+ <ion-toggle slot="end">End</ion-toggle>
141
+ </ion-item>
142
+ </ion-list>
143
+ `, config);
144
+ const list = page.locator('ion-list');
145
+ await expect(list).toHaveScreenshot(screenshot(`item-slotted-inputs-toggle`));
146
+ });
147
+ });
148
+ });
149
+ });
@@ -18,11 +18,11 @@ export class ItemDivider {
18
18
  }
19
19
  render() {
20
20
  const mode = getIonMode(this);
21
- return (h(Host, { key: '6cff318230a9b2a9db529df154285d3dd9822efe', class: createColorClasses(this.color, {
21
+ return (h(Host, { key: '60fda1dab7dbc0038ec7ff68a661896430f7d5c5', class: createColorClasses(this.color, {
22
22
  [mode]: true,
23
23
  'item-divider-sticky': this.sticky,
24
24
  item: true,
25
- }) }, h("slot", { key: 'eb50dfab74ab0fd13697db17ecd60e8fa0bf1750', name: "start" }), h("div", { key: '2806efd89d086f4fb844a479d9c095e1e0775713', class: "item-divider-inner" }, h("div", { key: '77b7d5fa987e5f1c26d8023cd1f974a8a263a3de', class: "item-divider-wrapper" }, h("slot", { key: 'dbafb0deb140a19a2a9748fd5b48760c39c6fd2e' })), h("slot", { key: 'ef9a848fe21e84ef21cd273b8a4d9f95f558175b', name: "end" }))));
25
+ }) }, h("slot", { key: '6ce072dfc2adfa699a2c34ffe25ed221c74d9eea', name: "start" }), h("div", { key: '9a441be204ee2f0b567432722407c75e3cbbe942', class: "item-divider-inner" }, h("div", { key: 'fd6f2969b345dba51400a290473e594d2d019dc5', class: "item-divider-wrapper" }, h("slot", { key: 'ebf5601b21c4cf199c01bf142865b8da0c1ba4a6' })), h("slot", { key: '249af8f30113f2c986976d518126661f65531121', name: "end" }))));
26
26
  }
27
27
  static get is() { return "ion-item-divider"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ import { getIonMode } from "../../global/ionic-global";
6
6
  export class ItemGroup {
7
7
  render() {
8
8
  const mode = getIonMode(this);
9
- return (h(Host, { key: 'f9ffe0290d3fa546494fe55f952d8554f2a8abf8', role: "group", class: {
9
+ return (h(Host, { key: '24ff047b7c45f963f0dad072c65d38a230c2bc97', role: "group", class: {
10
10
  [mode]: true,
11
11
  // Used internally for styling
12
12
  [`item-group-${mode}`]: true,
@@ -44,12 +44,12 @@ export class ItemOption {
44
44
  href: this.href,
45
45
  target: this.target,
46
46
  };
47
- return (h(Host, { key: '89310624997821858c1abde60c0ffb142ca466e0', onClick: this.onClick, class: createColorClasses(this.color, {
47
+ return (h(Host, { key: '1900e015f593fefd710478a2088e052399c957eb', onClick: this.onClick, class: createColorClasses(this.color, {
48
48
  [mode]: true,
49
49
  'item-option-disabled': disabled,
50
50
  'item-option-expandable': expandable,
51
51
  'ion-activatable': true,
52
- }) }, h(TagType, Object.assign({ key: 'e4dfbb3048eed03a7f7e84c6f75545e0ca9b45fb' }, attrs, { class: "button-native", part: "native", disabled: disabled }), h("span", { key: 'dffcf437fbdc15f2e7a19e60a015e90c73c8377d', class: "button-inner" }, h("slot", { key: '48a23512e0601e062118d8b2c46c8bb96f25509f', name: "top" }), h("div", { key: '952a9a9aa3a476aa1f4408d7e208bf9e916b8c30', class: "horizontal-wrapper" }, h("slot", { key: 'f8d18a61c1ecec4a22a55443cf72bbc51383b64f', name: "start" }), h("slot", { key: '1f9f219e6f879d2e0bf6d80cf0d3f518eb14ce0e', name: "icon-only" }), h("slot", { key: 'a55adcdbe68131e5b1855c2dd45dd9454ab544fb' }), h("slot", { key: '3c4c85a4fbb7efc797d8bc5adf6d238da022ff9f', name: "end" })), h("slot", { key: '503c7e4b306745c523f57f24399ea06ba9b1e21d', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", { key: 'b0e270b0c4f3ff9f9b6d74bad12a9278d7633226' }))));
52
+ }) }, h(TagType, Object.assign({ key: '5db2bb9bc72b7b00c324e4189cd1b5f862680ebb' }, attrs, { class: "button-native", part: "native", disabled: disabled }), h("span", { key: '6927e812ad001c5e7bd17f440d82c3830c58957b', class: "button-inner" }, h("slot", { key: '0fde4333def94c55d1318868c2bc71e780d5876a', name: "top" }), h("div", { key: '7ecc9ae8ddf66d7ed5d9f30becc9faf820e1c62e', class: "horizontal-wrapper" }, h("slot", { key: 'a15567fd4bd91080e9fbb6bb0c9b0e67d8a67051', name: "start" }), h("slot", { key: '7f86cdd28063e23f9d78997623333c5037c4f364', name: "icon-only" }), h("slot", { key: '4abb69ce3ad6c4917dd87b7b1eb0fa1c69917d73' }), h("slot", { key: '8b35a29f48722040465f182679ac17209937578d', name: "end" })), h("slot", { key: 'fa15a00891b41d66a4ccb51575dec54b72d0059e', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", { key: '0c071910c90fafca8026f59d78f4d9d5224d150a' }))));
53
53
  }
54
54
  static get is() { return "ion-item-option"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -17,7 +17,7 @@ export class ItemOptions {
17
17
  render() {
18
18
  const mode = getIonMode(this);
19
19
  const isEnd = isEndSide(this.side);
20
- return (h(Host, { key: '6d91399d2aaaa81d514d0bbc8dffe53eeec25d36', class: {
20
+ return (h(Host, { key: 'e28cd6a236323b5cc203c9b96782aa81024da924', class: {
21
21
  [mode]: true,
22
22
  // Used internally for styling
23
23
  [`item-options-${mode}`]: true,
@@ -386,7 +386,7 @@ export class ItemSliding {
386
386
  }
387
387
  render() {
388
388
  const mode = getIonMode(this);
389
- return (h(Host, { key: '47a3edd2ef2080ed9cfc2784277dea09785c7dc4', class: {
389
+ return (h(Host, { key: '99f87c8bd794ae69830b407ba55013ac44793c26', class: {
390
390
  [mode]: true,
391
391
  'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
392
392
  'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
@@ -312,7 +312,7 @@
312
312
  }
313
313
 
314
314
  ::slotted(p) {
315
- color: var(--ion-text-color-step-550, #a3a3a3);
315
+ color: var(--ion-color-step-400, var(--ion-text-color-step-600, #999999));
316
316
  }
317
317
 
318
318
  :host(.in-item-color)::slotted(p) {
@@ -55,13 +55,13 @@ export class Label {
55
55
  render() {
56
56
  const position = this.position;
57
57
  const mode = getIonMode(this);
58
- return (h(Host, { key: '6353a70565ef6fbbbf4042b000e536c61bcf99a9', class: createColorClasses(this.color, {
58
+ return (h(Host, { key: 'c2c0f388dab910d294efb9fbb409ee4ef829c1ed', class: createColorClasses(this.color, {
59
59
  [mode]: true,
60
60
  'in-item-color': hostContext('ion-item.ion-color', this.el),
61
61
  [`label-${position}`]: position !== undefined,
62
62
  [`label-no-animate`]: this.noAnimate,
63
63
  'label-rtl': document.dir === 'rtl',
64
- }) }, h("slot", { key: '6ef9c2758c0168442aa84941af0a6cec1ef1ec21' })));
64
+ }) }, h("slot", { key: '4de6b69950f417873a13c851018ec31ea2686f0a' })));
65
65
  }
66
66
  static get is() { return "ion-label"; }
67
67
  static get encapsulation() { return "scoped"; }
@@ -27,7 +27,7 @@ export class List {
27
27
  render() {
28
28
  const mode = getIonMode(this);
29
29
  const { lines, inset } = this;
30
- return (h(Host, { key: '5ff2b0b3989cc99ce17abb8bcd7ec1847940d1ec', role: "list", class: {
30
+ return (h(Host, { key: '8bde220025a7eeca6da075379c6487c4c9bdddc1', role: "list", class: {
31
31
  [mode]: true,
32
32
  // Used internally for styling
33
33
  [`list-${mode}`]: true,
@@ -15,10 +15,10 @@ export class ListHeader {
15
15
  render() {
16
16
  const { lines } = this;
17
17
  const mode = getIonMode(this);
18
- return (h(Host, { key: 'fb78bd8601cbd7b90ec84a96e0c8325be1132b1e', class: createColorClasses(this.color, {
18
+ return (h(Host, { key: '7e2e050f13722f2b870a2415d99a9e631e9ca267', class: createColorClasses(this.color, {
19
19
  [mode]: true,
20
20
  [`list-header-lines-${lines}`]: lines !== undefined,
21
- }) }, h("div", { key: '2580ad49f3a54973e15f14d645a1e55a6fa066ac', class: "list-header-inner" }, h("slot", { key: '677b2e2ec8eeb3ae6ad329e86c76451cf3ae6c2f' }))));
21
+ }) }, h("div", { key: '6117bebc45800d874e9b75355476fbced5cc8398', class: "list-header-inner" }, h("slot", { key: '9165fb274cd2c45a5a65c271d8b1f30e8a00c890' }))));
22
22
  }
23
23
  static get is() { return "ion-list-header"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -158,9 +158,9 @@ export class Loading {
158
158
  * Otherwise, don't set aria-labelledby.
159
159
  */
160
160
  const ariaLabelledBy = message !== undefined ? msgId : null;
161
- return (h(Host, Object.assign({ key: 'f48fc35c38f3c200f39a44f3e741c1676057248e', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
161
+ return (h(Host, Object.assign({ key: '4610b316b10a4df3416d0e83062935f3079baff2', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
162
162
  zIndex: `${40000 + this.overlayIndex}`,
163
- }, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: 'e46058f693235c8ce5474df167595f6a80e4559d', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '2ecd77581a2f130616033b8a78fb9da9d508b588', tabindex: "0" }), h("div", { key: '0243f93c41684f30c81623a8fbb533fd8f17b679', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: '0643bc42b6e691580d29af27ea5a9fe395a6c5ce', class: "loading-spinner" }, h("ion-spinner", { key: 'f0417802dfbcad6ab9903b84bad692eedd326c88', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '3d3a256fe1074bda91cd09212460aa6460c4c723', tabindex: "0" })));
163
+ }, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: 'd07d0759ed13093c4c4fe06be442dde4bd9c2c31', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'ed3ec8b48f049b592fbea9767cc3d448dc037938', tabindex: "0" }), h("div", { key: 'c515f3badf149d83c1d67374ef3507415fe51422', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: '265d1673c2deb751aeca285f5a18863bb629ca5e', class: "loading-spinner" }, h("ion-spinner", { key: '155bf7c92f6d7afd8edbb39f2b47ad05b7d503f1', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: 'b0e21df5cf54f9b48a218a03543d8c86f5406522', tabindex: "0" })));
164
164
  }
165
165
  static get is() { return "ion-loading"; }
166
166
  static get encapsulation() { return "scoped"; }
@@ -60,7 +60,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, screenshot, c
60
60
  const ionLoadingDidPresent = await page.spyOnEvent('ionLoadingDidPresent');
61
61
  await page.click('#html-content-loading');
62
62
  await ionLoadingDidPresent.next();
63
- const button = page.locator('ion-loading ion-button');
63
+ const button = page.locator('ion-loading button');
64
64
  if (browserName === 'webkit') {
65
65
  await page.keyboard.down('Alt');
66
66
  }
@@ -586,14 +586,14 @@ export class Menu {
586
586
  * the ionBackButton listener in the menu controller
587
587
  * will handle closing the menu when Escape is pressed.
588
588
  */
589
- return (h(Host, { key: '68ea0bdf902c1f6369db93d69cacc0f30e1df32b', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
589
+ return (h(Host, { key: '30c0c9bfb8973e4a6feb658f8c4ee8e362f464ed', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
590
590
  [mode]: true,
591
591
  [`menu-type-${type}`]: true,
592
592
  'menu-enabled': !disabled,
593
593
  [`menu-side-${side}`]: true,
594
594
  'menu-pane-visible': isPaneVisible,
595
595
  'split-pane-side': hostContext('ion-split-pane', el),
596
- } }, h("div", { key: '7f32097faa4dcf64a568c7cf4b8397bbffc9f7a4', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: '3d4fbc9142297708aa1b31eed875afe6ea79de04' })), h("ion-backdrop", { key: 'f29f4615913da302212d54a43dce94ca5bfa86a5', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
596
+ } }, h("div", { key: '34b0e5840906862cf1bc27207e089004b0402c56', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: '2cd7e61a8c0987ca4b3f1f8b33cba7152f1275fe' })), h("ion-backdrop", { key: 'd190b1f9b66c76e276f27bfe074d3aab796180fb', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
597
597
  }
598
598
  static get is() { return "ion-menu"; }
599
599
  static get encapsulation() { return "shadow"; }
@@ -26,7 +26,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
26
26
  });
27
27
  test('should trap focus', async ({ page, skip, browserName }) => {
28
28
  skip.browser('firefox', 'Firefox incorrectly allows keyboard focus to move to ion-content');
29
- // TODO (FW-2979)
29
+ // TODO (ROU-5437)
30
30
  skip.browser('webkit', 'Safari 16 only allows text fields and pop-up menus to be focused.');
31
31
  const ionDidOpen = await page.spyOnEvent('ionDidOpen');
32
32
  await page.click('#open-start');
@@ -46,7 +46,7 @@ export class MenuButton {
46
46
  type: this.type,
47
47
  };
48
48
  const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
49
- return (h(Host, { key: '7ec29715ce7926b7c2b08f3d9cac8aaa16b3dc28', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
49
+ return (h(Host, { key: '95a8b9f09c7fae9713a8dc003ed277f6f31403da', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
50
50
  [mode]: true,
51
51
  button: true, // ion-buttons target .button
52
52
  'menu-button-hidden': hidden,
@@ -55,7 +55,7 @@ export class MenuButton {
55
55
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
56
56
  'ion-activatable': true,
57
57
  'ion-focusable': true,
58
- }) }, h("button", Object.assign({ key: 'd4c5929264af3ba0328118bcc27d2ab7ef5d3809' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), h("span", { key: '7bfa6e9a93105486623d044861e879ec79ff64f1', class: "button-inner" }, h("slot", { key: '071ab58e285832fc188706166f5547d45d501ac5' }, h("ion-icon", { key: '918ec5d791921de9821c347af4f65f97dd94aabf', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: '00ffdd53f635e706c1dbd01b8e7944498650fe81', type: "unbounded" }))));
58
+ }) }, h("button", Object.assign({ key: '39f3ce20c400d2fac4890a042e8e44426709fca5' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), h("span", { key: '310978dc1cdef668de6720cde2a2304253679176', class: "button-inner" }, h("slot", { key: '2a2b9de524c1fc3c526fe9559cb077b976852725' }, h("ion-icon", { key: '9c22d7ea9fc3d76c32ec1c1b4b13d982c60b8c2d', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: 'c58c9e29c763070383472f65a9d322a684bcb564', type: "unbounded" }))));
59
59
  }
60
60
  static get is() { return "ion-menu-button"; }
61
61
  static get encapsulation() { return "shadow"; }
@@ -26,10 +26,10 @@ export class MenuToggle {
26
26
  render() {
27
27
  const mode = getIonMode(this);
28
28
  const hidden = this.autoHide && !this.visible;
29
- return (h(Host, { key: '7c27ea5b0795676bf5cb33e1f83aa142c197f64e', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
29
+ return (h(Host, { key: '90e621f09792383f1badcc1b402b1ac7d08c5f98', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
30
30
  [mode]: true,
31
31
  'menu-toggle-hidden': hidden,
32
- } }, h("slot", { key: '69f187becedc0fe34603d41d279f043cf0fdf776' })));
32
+ } }, h("slot", { key: 'c0abdd1d91e9d80ee3704e3e374ebe1f29078460' })));
33
33
  }
34
34
  static get is() { return "ion-menu-toggle"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -4,6 +4,7 @@
4
4
  import { isIonContent, findClosestIonContent } from "../../../utils/content/index";
5
5
  import { createGesture } from "../../../utils/gesture/index";
6
6
  import { clamp, raf, getElementRoot } from "../../../utils/helpers";
7
+ import { FOCUS_TRAP_DISABLE_CLASS } from "../../../utils/overlays";
7
8
  import { getBackdropValueForSheet } from "../utils";
8
9
  import { calculateSpringStep, handleCanDismiss } from "./utils";
9
10
  export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
@@ -42,7 +43,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
42
43
  * as inputs should not be focusable outside
43
44
  * the sheet.
44
45
  */
45
- baseEl.classList.remove('ion-disable-focus-trap');
46
+ baseEl.classList.remove(FOCUS_TRAP_DISABLE_CLASS);
46
47
  };
47
48
  const disableBackdrop = () => {
48
49
  baseEl.style.setProperty('pointer-events', 'none');
@@ -54,7 +55,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
54
55
  * Adding this class disables focus trapping
55
56
  * for the sheet temporarily.
56
57
  */
57
- baseEl.classList.add('ion-disable-focus-trap');
58
+ baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
58
59
  };
59
60
  /**
60
61
  * After the entering animation completes,
@@ -8,7 +8,7 @@ import { raf, inheritAttributes, hasLazyBuild } from "../../utils/helpers";
8
8
  import { createLockController } from "../../utils/lock-controller";
9
9
  import { printIonWarning } from "../../utils/logging/index";
10
10
  import { Style as StatusBarStyle, StatusBar } from "../../utils/native/status-bar";
11
- import { GESTURE, BACKDROP, dismiss, eventMethod, prepareOverlay, present, createTriggerController, setOverlayId, } from "../../utils/overlays";
11
+ import { GESTURE, BACKDROP, dismiss, eventMethod, prepareOverlay, present, createTriggerController, setOverlayId, FOCUS_TRAP_DISABLE_CLASS, } from "../../utils/overlays";
12
12
  import { getClassMap } from "../../utils/theme";
13
13
  import { deepReady, waitForMount } from "../../utils/transition/index";
14
14
  import { config } from "../../global/config";
@@ -101,6 +101,7 @@ export class Modal {
101
101
  this.isOpen = false;
102
102
  this.trigger = undefined;
103
103
  this.keepContentsMounted = false;
104
+ this.focusTrap = true;
104
105
  this.canDismiss = true;
105
106
  }
106
107
  onIsOpenChange(newValue, oldValue) {
@@ -557,23 +558,23 @@ export class Modal {
557
558
  return true;
558
559
  }
559
560
  render() {
560
- const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes } = this;
561
+ const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap } = this;
561
562
  const showHandle = handle !== false && isSheetModal;
562
563
  const mode = getIonMode(this);
563
564
  const isCardModal = presentingElement !== undefined && mode === 'ios';
564
565
  const isHandleCycle = handleBehavior === 'cycle';
565
- return (h(Host, Object.assign({ key: 'bb00efb8cbbdb2d1bbcc5e9c638586e2904882a8', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
566
+ return (h(Host, Object.assign({ key: 'fe6fd17cf857127f89d652b9aa3e9473d28c55db', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
566
567
  zIndex: `${20000 + this.overlayIndex}`,
567
- }, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: 'd2d50f736fdc34b933c00309fe0b67e4aff7ee63', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '5d3523a04da9350ae435a4f3247198095b71f206', class: "modal-shadow" }), h("div", Object.assign({ key: '09b3c4b629155f8c32f5c896cf689ffbe7004de8',
568
+ }, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '0f3a31363c2717e5483bc0412c25804897d4aff8', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '0e5ed59162ff08fe0a9f757e06bdacc75f65c0ed', class: "modal-shadow" }), h("div", Object.assign({ key: '35cdbe2238765e5f346ad7be64f7eefa8c78f0c0',
568
569
  /*
569
570
  role and aria-modal must be used on the
570
571
  same element. They must also be set inside the
571
572
  shadow DOM otherwise ion-button will not be highlighted
572
573
  when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
573
574
  */
574
- role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: 'e47d90068927f3a518e4144e17f18ac326126712', class: "modal-handle",
575
+ role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '7a4031eaebf9a098f4c4220a5fe9d1c25cc0ec92', class: "modal-handle",
575
576
  // Prevents the handle from receiving keyboard focus when it does not cycle
576
- tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '5733e94b3ecc4ed9bfb6aec5cd254cd0e43ee8f7' }))));
577
+ tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '534adc8e5bd850199fe2e9e16f0e7c19217d8486' }))));
577
578
  }
578
579
  static get is() { return "ion-modal"; }
579
580
  static get encapsulation() { return "shadow"; }
@@ -1019,6 +1020,24 @@ export class Modal {
1019
1020
  "reflect": false,
1020
1021
  "defaultValue": "false"
1021
1022
  },
1023
+ "focusTrap": {
1024
+ "type": "boolean",
1025
+ "mutable": false,
1026
+ "complexType": {
1027
+ "original": "boolean",
1028
+ "resolved": "boolean",
1029
+ "references": {}
1030
+ },
1031
+ "required": false,
1032
+ "optional": false,
1033
+ "docs": {
1034
+ "tags": [],
1035
+ "text": "If `true`, focus will not be allowed to move outside of this overlay.\nIf `false`, focus will be allowed to move outside of the overlay.\n\nIn most scenarios this property should remain set to `true`. Setting\nthis property to `false` can cause severe accessibility issues as users\nrelying on assistive technologies may be able to move focus into\na confusing state. We recommend only setting this to `false` when\nabsolutely necessary.\n\nDevelopers may want to consider disabling focus trapping if this\noverlay presents a non-Ionic overlay from a 3rd party library.\nDevelopers would disable focus trapping on the Ionic overlay\nwhen presenting the 3rd party overlay and then re-enable\nfocus trapping when dismissing the 3rd party overlay and moving\nfocus back to the Ionic overlay."
1036
+ },
1037
+ "attribute": "focus-trap",
1038
+ "reflect": false,
1039
+ "defaultValue": "true"
1040
+ },
1022
1041
  "canDismiss": {
1023
1042
  "type": "boolean",
1024
1043
  "mutable": false,
@@ -4,6 +4,7 @@
4
4
  import { h } from "@stencil/core";
5
5
  import { newSpecPage } from "@stencil/core/testing";
6
6
  import { Modal } from "../../modal";
7
+ import { FOCUS_TRAP_DISABLE_CLASS } from "../../../../utils/overlays";
7
8
  describe('modal: htmlAttributes inheritance', () => {
8
9
  it('should correctly inherit attributes on host', async () => {
9
10
  const page = await newSpecPage({
@@ -14,3 +15,21 @@ describe('modal: htmlAttributes inheritance', () => {
14
15
  await expect(modal.getAttribute('data-testid')).toBe('basic-modal');
15
16
  });
16
17
  });
18
+ describe('modal: focus trap', () => {
19
+ it('should set the focus trap class when disabled', async () => {
20
+ const page = await newSpecPage({
21
+ components: [Modal],
22
+ template: () => h("ion-modal", { focusTrap: false, overlayIndex: 1 }),
23
+ });
24
+ const modal = page.body.querySelector('ion-modal');
25
+ expect(modal.classList.contains(FOCUS_TRAP_DISABLE_CLASS)).toBe(true);
26
+ });
27
+ it('should not set the focus trap class by default', async () => {
28
+ const page = await newSpecPage({
29
+ components: [Modal],
30
+ template: () => h("ion-modal", { overlayIndex: 1 }),
31
+ });
32
+ const modal = page.body.querySelector('ion-modal');
33
+ expect(modal.classList.contains(FOCUS_TRAP_DISABLE_CLASS)).toBe(false);
34
+ });
35
+ });
@@ -21,7 +21,7 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
21
21
  await modal.evaluate((modal) => {
22
22
  var _a;
23
23
  modal.remove();
24
- (_a = document.querySelector('ion-button')) === null || _a === void 0 ? void 0 : _a.insertAdjacentElement('afterend', modal);
24
+ (_a = document.querySelector('button')) === null || _a === void 0 ? void 0 : _a.insertAdjacentElement('afterend', modal);
25
25
  });
26
26
  await page.waitForChanges();
27
27
  await button.click();
@@ -830,7 +830,7 @@ export class Nav {
830
830
  }
831
831
  }
832
832
  render() {
833
- return h("slot", { key: 'dfe98cb6604a2015a49f41beffebdd2da957dfff' });
833
+ return h("slot", { key: 'e9d99a8a0b84f02f9964d8143cd5e647e43334f9' });
834
834
  }
835
835
  static get is() { return "ion-nav"; }
836
836
  static get encapsulation() { return "shadow"; }
@@ -17,7 +17,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
17
17
  });
18
18
  test.describe('pushing a new page', () => {
19
19
  test('should render the pushed component', async ({ page }) => {
20
- const pageTwoButton = page.locator('ion-button:has-text("Go to Page Two")');
20
+ const pageTwoButton = page.locator('button:has-text("Go to Page Two")');
21
21
  const pageOne = page.locator('page-one');
22
22
  const pageTwo = page.locator('page-two');
23
23
  await pageTwoButton.click();
@@ -27,7 +27,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
27
27
  await expect(pageOne).not.toBeVisible();
28
28
  });
29
29
  test('should render the back button', async ({ page }) => {
30
- const pageTwoButton = page.locator('ion-button:has-text("Go to Page Two")');
30
+ const pageTwoButton = page.locator('button:has-text("Go to Page Two")');
31
31
  const pageTwoBackButton = page.locator('page-two ion-back-button');
32
32
  await pageTwoButton.click();
33
33
  await page.waitForChanges();
@@ -37,7 +37,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
37
37
  test('back button should pop to the previous page', async ({ page }) => {
38
38
  const pageOne = page.locator('page-one');
39
39
  const pageTwo = page.locator('page-two');
40
- const pageTwoButton = page.locator('ion-button:has-text("Go to Page Two")');
40
+ const pageTwoButton = page.locator('button:has-text("Go to Page Two")');
41
41
  const pageTwoBackButton = page.locator('page-two ion-back-button');
42
42
  await pageTwoButton.click();
43
43
  await page.waitForChanges();
@@ -52,8 +52,8 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
52
52
  const pageOne = page.locator('page-one');
53
53
  const pageTwo = page.locator('page-two');
54
54
  const pageThree = page.locator('page-three');
55
- const pageTwoButton = page.locator('ion-button:has-text("Go to Page Two")');
56
- const pageThreeButton = page.locator('ion-button:has-text("Go to Page Three")');
55
+ const pageTwoButton = page.locator('button:has-text("Go to Page Two")');
56
+ const pageThreeButton = page.locator('button:has-text("Go to Page Three")');
57
57
  await pageTwoButton.click();
58
58
  await page.waitForChanges();
59
59
  await expect(pageOne).toHaveCount(1);