@ionic/core 8.4.4-dev.11741030124.1142ac6a → 8.4.4-dev.11741046329.16b83b14

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 (369) hide show
  1. package/components/checkbox.js +40 -6
  2. package/components/helpers.js +1 -11
  3. package/components/index6.js +11 -3
  4. package/components/index9.js +1 -1
  5. package/components/ion-segment-button.js +9 -40
  6. package/components/ion-select.js +16 -41
  7. package/components/ion-toggle.js +6 -4
  8. package/components/modal.js +259 -35
  9. package/components/toolbar.js +2 -2
  10. package/css/core.css.map +1 -1
  11. package/css/ionic.bundle.css.map +1 -1
  12. package/dist/cjs/{data-21dc0f81.js → data-108e531d.js} +1 -1
  13. package/dist/cjs/{framework-delegate-05579976.js → framework-delegate-55f5683a.js} +1 -1
  14. package/dist/cjs/{helpers-4be3f90d.js → helpers-afaa9001.js} +0 -11
  15. package/dist/cjs/{index-c441c903.js → index-0d762bba.js} +2 -2
  16. package/dist/cjs/{index-5915f9b3.js → index-2a46a047.js} +11 -3
  17. package/dist/cjs/{index-1ae3f40a.js → index-3652c918.js} +2 -2
  18. package/dist/cjs/{index-ad7a712e.js → index-9509ecad.js} +1 -1
  19. package/dist/cjs/{index-4e14a46e.js → index-e975c92b.js} +4 -4
  20. package/dist/cjs/index.cjs.js +8 -8
  21. package/dist/cjs/{input-shims-e748a364.js → input-shims-cd05268a.js} +5 -3
  22. package/dist/cjs/{input.utils-74e4ec28.js → input.utils-ffb2f81b.js} +2 -2
  23. package/dist/cjs/ion-accordion_2.cjs.entry.js +2 -2
  24. package/dist/cjs/ion-action-sheet.cjs.entry.js +4 -4
  25. package/dist/cjs/ion-alert.cjs.entry.js +4 -4
  26. package/dist/cjs/ion-app_8.cjs.entry.js +11 -11
  27. package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
  28. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +1 -1
  29. package/dist/cjs/ion-button_2.cjs.entry.js +2 -2
  30. package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
  31. package/dist/cjs/ion-checkbox.cjs.entry.js +38 -7
  32. package/dist/cjs/ion-datetime-button.cjs.entry.js +3 -3
  33. package/dist/cjs/ion-datetime_3.cjs.entry.js +5 -5
  34. package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
  35. package/dist/cjs/ion-img.cjs.entry.js +1 -1
  36. package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +3 -3
  37. package/dist/cjs/ion-input-password-toggle.cjs.entry.js +1 -1
  38. package/dist/cjs/ion-input.cjs.entry.js +4 -4
  39. package/dist/cjs/ion-item-option_3.cjs.entry.js +3 -3
  40. package/dist/cjs/ion-item_8.cjs.entry.js +1 -1
  41. package/dist/cjs/ion-loading.cjs.entry.js +4 -4
  42. package/dist/cjs/ion-menu_3.cjs.entry.js +5 -5
  43. package/dist/cjs/ion-modal.cjs.entry.js +264 -41
  44. package/dist/cjs/ion-nav_2.cjs.entry.js +5 -5
  45. package/dist/cjs/ion-picker-column-option.cjs.entry.js +1 -1
  46. package/dist/cjs/ion-picker-column.cjs.entry.js +1 -1
  47. package/dist/cjs/ion-picker.cjs.entry.js +1 -1
  48. package/dist/cjs/ion-popover.cjs.entry.js +5 -5
  49. package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
  50. package/dist/cjs/ion-radio_2.cjs.entry.js +1 -1
  51. package/dist/cjs/ion-range.cjs.entry.js +3 -3
  52. package/dist/cjs/ion-refresher_2.cjs.entry.js +3 -3
  53. package/dist/cjs/ion-reorder_2.cjs.entry.js +3 -3
  54. package/dist/cjs/ion-route_4.cjs.entry.js +1 -1
  55. package/dist/cjs/ion-searchbar.cjs.entry.js +1 -1
  56. package/dist/cjs/ion-segment_2.cjs.entry.js +9 -40
  57. package/dist/cjs/ion-select-modal.cjs.entry.js +4 -4
  58. package/dist/cjs/ion-select_3.cjs.entry.js +19 -45
  59. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
  60. package/dist/cjs/ion-tab_2.cjs.entry.js +2 -2
  61. package/dist/cjs/ion-textarea.cjs.entry.js +4 -4
  62. package/dist/cjs/ion-toast.cjs.entry.js +4 -4
  63. package/dist/cjs/ion-toggle.cjs.entry.js +6 -5
  64. package/dist/cjs/ionic.cjs.js +1 -1
  65. package/dist/cjs/{ios.transition-afdec89f.js → ios.transition-0e664e88.js} +3 -3
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/{md.transition-9f0d3db5.js → md.transition-2e8aef2c.js} +3 -3
  68. package/dist/cjs/{notch-controller-a0c464d1.js → notch-controller-d69150f5.js} +1 -1
  69. package/dist/cjs/{overlays-76b29cd4.js → overlays-65fdaff6.js} +3 -3
  70. package/dist/cjs/{status-tap-fb807fad.js → status-tap-d74f1429.js} +4 -3
  71. package/dist/cjs/{swipe-back-47a52b83.js → swipe-back-0303a5e4.js} +1 -1
  72. package/dist/collection/components/checkbox/checkbox.ios.css +52 -15
  73. package/dist/collection/components/checkbox/checkbox.js +90 -4
  74. package/dist/collection/components/checkbox/checkbox.md.css +52 -15
  75. package/dist/collection/components/modal/animations/ios.enter.js +50 -4
  76. package/dist/collection/components/modal/animations/ios.leave.js +24 -2
  77. package/dist/collection/components/modal/animations/md.enter.js +52 -5
  78. package/dist/collection/components/modal/animations/md.leave.js +26 -3
  79. package/dist/collection/components/modal/animations/sheet.js +11 -2
  80. package/dist/collection/components/modal/gestures/sheet.js +79 -10
  81. package/dist/collection/components/modal/modal.ios.css +16 -0
  82. package/dist/collection/components/modal/modal.js +32 -7
  83. package/dist/collection/components/modal/modal.md.css +6 -0
  84. package/dist/collection/components/segment-button/segment-button.js +9 -40
  85. package/dist/collection/components/select/select.js +32 -40
  86. package/dist/collection/components/toggle/toggle.js +23 -4
  87. package/dist/collection/components/toolbar/toolbar.js +6 -2
  88. package/dist/collection/utils/helpers.js +0 -10
  89. package/dist/collection/utils/logging/index.js +10 -3
  90. package/dist/docs.json +187 -2
  91. package/dist/esm/{data-ae11fd43.js → data-b3284b5e.js} +1 -1
  92. package/dist/esm/{framework-delegate-f683816e.js → framework-delegate-63d1a679.js} +1 -1
  93. package/dist/esm/{helpers-9b49d7d2.js → helpers-da915de8.js} +1 -11
  94. package/dist/esm/{index-7ec5519a.js → index-2f7fde3d.js} +4 -4
  95. package/dist/esm/{index-9b0d46f4.js → index-6ad967f3.js} +11 -3
  96. package/dist/esm/{index-5a0f5fd0.js → index-79b30591.js} +1 -1
  97. package/dist/esm/{index-8785a9c6.js → index-cb21eccb.js} +2 -2
  98. package/dist/esm/{index-33f7e3ff.js → index-efb8ecdf.js} +2 -2
  99. package/dist/esm/index.js +8 -8
  100. package/dist/esm/{input-shims-0e65111b.js → input-shims-2fd7c6ef.js} +5 -3
  101. package/dist/esm/{input.utils-1ad8dafc.js → input.utils-961c9f17.js} +2 -2
  102. package/dist/esm/ion-accordion_2.entry.js +2 -2
  103. package/dist/esm/ion-action-sheet.entry.js +4 -4
  104. package/dist/esm/ion-alert.entry.js +4 -4
  105. package/dist/esm/ion-app_8.entry.js +11 -11
  106. package/dist/esm/ion-back-button.entry.js +1 -1
  107. package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
  108. package/dist/esm/ion-button_2.entry.js +2 -2
  109. package/dist/esm/ion-card_5.entry.js +1 -1
  110. package/dist/esm/ion-checkbox.entry.js +38 -7
  111. package/dist/esm/ion-datetime-button.entry.js +3 -3
  112. package/dist/esm/ion-datetime_3.entry.js +5 -5
  113. package/dist/esm/ion-fab_3.entry.js +1 -1
  114. package/dist/esm/ion-img.entry.js +1 -1
  115. package/dist/esm/ion-infinite-scroll_2.entry.js +3 -3
  116. package/dist/esm/ion-input-password-toggle.entry.js +1 -1
  117. package/dist/esm/ion-input.entry.js +4 -4
  118. package/dist/esm/ion-item-option_3.entry.js +3 -3
  119. package/dist/esm/ion-item_8.entry.js +1 -1
  120. package/dist/esm/ion-loading.entry.js +4 -4
  121. package/dist/esm/ion-menu_3.entry.js +5 -5
  122. package/dist/esm/ion-modal.entry.js +264 -41
  123. package/dist/esm/ion-nav_2.entry.js +5 -5
  124. package/dist/esm/ion-picker-column-option.entry.js +1 -1
  125. package/dist/esm/ion-picker-column.entry.js +1 -1
  126. package/dist/esm/ion-picker.entry.js +1 -1
  127. package/dist/esm/ion-popover.entry.js +5 -5
  128. package/dist/esm/ion-progress-bar.entry.js +1 -1
  129. package/dist/esm/ion-radio_2.entry.js +1 -1
  130. package/dist/esm/ion-range.entry.js +3 -3
  131. package/dist/esm/ion-refresher_2.entry.js +3 -3
  132. package/dist/esm/ion-reorder_2.entry.js +3 -3
  133. package/dist/esm/ion-route_4.entry.js +1 -1
  134. package/dist/esm/ion-searchbar.entry.js +1 -1
  135. package/dist/esm/ion-segment_2.entry.js +9 -40
  136. package/dist/esm/ion-select-modal.entry.js +4 -4
  137. package/dist/esm/ion-select_3.entry.js +19 -45
  138. package/dist/esm/ion-tab-bar_2.entry.js +1 -1
  139. package/dist/esm/ion-tab_2.entry.js +2 -2
  140. package/dist/esm/ion-textarea.entry.js +4 -4
  141. package/dist/esm/ion-toast.entry.js +4 -4
  142. package/dist/esm/ion-toggle.entry.js +6 -5
  143. package/dist/esm/ionic.js +1 -1
  144. package/dist/esm/{ios.transition-085853ff.js → ios.transition-b1da3753.js} +3 -3
  145. package/dist/esm/loader.js +1 -1
  146. package/dist/esm/{md.transition-33826623.js → md.transition-571b3859.js} +3 -3
  147. package/dist/esm/{notch-controller-3dc61260.js → notch-controller-55b09e11.js} +1 -1
  148. package/dist/esm/{overlays-e3d0d356.js → overlays-5deab4de.js} +3 -3
  149. package/dist/esm/{status-tap-163e8128.js → status-tap-79eac0ac.js} +4 -3
  150. package/dist/esm/{swipe-back-23ee7ab1.js → swipe-back-e5394307.js} +1 -1
  151. package/dist/esm-es5/{data-ae11fd43.js → data-b3284b5e.js} +1 -1
  152. package/dist/esm-es5/{framework-delegate-f683816e.js → framework-delegate-63d1a679.js} +1 -1
  153. package/dist/esm-es5/{helpers-9b49d7d2.js → helpers-da915de8.js} +1 -1
  154. package/dist/esm-es5/{index-7ec5519a.js → index-2f7fde3d.js} +1 -1
  155. package/dist/esm-es5/index-6ad967f3.js +4 -0
  156. package/dist/esm-es5/{index-5a0f5fd0.js → index-79b30591.js} +1 -1
  157. package/dist/esm-es5/{index-8785a9c6.js → index-cb21eccb.js} +1 -1
  158. package/dist/esm-es5/{index-33f7e3ff.js → index-efb8ecdf.js} +1 -1
  159. package/dist/esm-es5/index.js +1 -1
  160. package/dist/esm-es5/input-shims-2fd7c6ef.js +4 -0
  161. package/dist/esm-es5/{input.utils-1ad8dafc.js → input.utils-961c9f17.js} +1 -1
  162. package/dist/esm-es5/ion-accordion_2.entry.js +1 -1
  163. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  164. package/dist/esm-es5/ion-alert.entry.js +1 -1
  165. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  166. package/dist/esm-es5/ion-back-button.entry.js +1 -1
  167. package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
  168. package/dist/esm-es5/ion-button_2.entry.js +1 -1
  169. package/dist/esm-es5/ion-card_5.entry.js +1 -1
  170. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  171. package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
  172. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  173. package/dist/esm-es5/ion-fab_3.entry.js +1 -1
  174. package/dist/esm-es5/ion-img.entry.js +1 -1
  175. package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
  176. package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
  177. package/dist/esm-es5/ion-input.entry.js +1 -1
  178. package/dist/esm-es5/ion-item-option_3.entry.js +1 -1
  179. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  180. package/dist/esm-es5/ion-loading.entry.js +1 -1
  181. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  182. package/dist/esm-es5/ion-modal.entry.js +1 -1
  183. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  184. package/dist/esm-es5/ion-picker-column-option.entry.js +1 -1
  185. package/dist/esm-es5/ion-picker-column.entry.js +1 -1
  186. package/dist/esm-es5/ion-picker.entry.js +1 -1
  187. package/dist/esm-es5/ion-popover.entry.js +1 -1
  188. package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
  189. package/dist/esm-es5/ion-radio_2.entry.js +1 -1
  190. package/dist/esm-es5/ion-range.entry.js +1 -1
  191. package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
  192. package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
  193. package/dist/esm-es5/ion-route_4.entry.js +1 -1
  194. package/dist/esm-es5/ion-searchbar.entry.js +1 -1
  195. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  196. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  197. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  198. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  199. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  200. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  201. package/dist/esm-es5/ion-toast.entry.js +1 -1
  202. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  203. package/dist/esm-es5/ionic.js +1 -1
  204. package/dist/esm-es5/{ios.transition-085853ff.js → ios.transition-b1da3753.js} +1 -1
  205. package/dist/esm-es5/loader.js +1 -1
  206. package/dist/esm-es5/md.transition-571b3859.js +4 -0
  207. package/dist/esm-es5/{notch-controller-3dc61260.js → notch-controller-55b09e11.js} +1 -1
  208. package/dist/esm-es5/{overlays-e3d0d356.js → overlays-5deab4de.js} +1 -1
  209. package/dist/esm-es5/status-tap-79eac0ac.js +4 -0
  210. package/dist/esm-es5/{swipe-back-23ee7ab1.js → swipe-back-e5394307.js} +1 -1
  211. package/dist/html.html-data.json +24 -0
  212. package/dist/ionic/index.esm.js +1 -1
  213. package/dist/ionic/ionic.esm.js +1 -1
  214. package/dist/ionic/{p-a9e24ae2.system.entry.js → p-01186920.system.entry.js} +1 -1
  215. package/dist/ionic/p-0430c2e0.entry.js +4 -0
  216. package/dist/ionic/{p-3eaf1444.system.entry.js → p-05b74e45.system.entry.js} +1 -1
  217. package/dist/ionic/{p-bb2a6761.entry.js → p-081a4ce4.entry.js} +1 -1
  218. package/dist/ionic/p-0af823e1.js +4 -0
  219. package/dist/ionic/{p-aa63b365.system.js → p-0eb35a7f.system.js} +1 -1
  220. package/dist/ionic/p-1132ffee.entry.js +4 -0
  221. package/dist/ionic/{p-203633d1.entry.js → p-120fb79a.entry.js} +1 -1
  222. package/dist/ionic/{p-5cde8ef3.entry.js → p-15d18206.entry.js} +1 -1
  223. package/dist/ionic/{p-e8f34871.entry.js → p-15e76dd1.entry.js} +1 -1
  224. package/dist/ionic/{p-7b98cebe.entry.js → p-16188af7.entry.js} +1 -1
  225. package/dist/ionic/{p-5126cf1e.system.js → p-19ea7bff.system.js} +1 -1
  226. package/dist/ionic/{p-d60342e3.js → p-1a5bc5f7.js} +1 -1
  227. package/dist/ionic/{p-42808996.js → p-1ab13b2b.js} +1 -1
  228. package/dist/ionic/{p-84d08aae.system.entry.js → p-1e67b266.system.entry.js} +1 -1
  229. package/dist/ionic/{p-e2e19375.system.entry.js → p-2172893e.system.entry.js} +1 -1
  230. package/dist/ionic/{p-0c9b6d3a.system.entry.js → p-2346ab53.system.entry.js} +1 -1
  231. package/dist/ionic/{p-162c8d0c.system.entry.js → p-248318e0.system.entry.js} +1 -1
  232. package/dist/ionic/{p-f5035354.js → p-28706c6f.js} +1 -1
  233. package/dist/ionic/{p-2515cb4d.system.entry.js → p-2b838f86.system.entry.js} +1 -1
  234. package/dist/ionic/{p-4c252070.entry.js → p-2da9c8a7.entry.js} +1 -1
  235. package/dist/ionic/{p-2ef3c7ee.system.entry.js → p-2e46590d.system.entry.js} +1 -1
  236. package/dist/ionic/{p-e265ae18.system.entry.js → p-302b50bb.system.entry.js} +1 -1
  237. package/dist/ionic/p-322c5fb4.system.js +1 -1
  238. package/dist/ionic/{p-f687573e.system.js → p-343b6b1d.system.js} +1 -1
  239. package/dist/ionic/{p-2bc73fb5.js → p-34b11c24.js} +1 -1
  240. package/dist/ionic/{p-b3680e2f.system.js → p-3ad285e3.system.js} +1 -1
  241. package/dist/ionic/{p-d4ca0475.js → p-3cc276f4.js} +1 -1
  242. package/dist/ionic/p-4c2d5b80.system.js +4 -0
  243. package/dist/ionic/p-4c98e2cf.system.js +4 -0
  244. package/dist/ionic/p-4ec778aa.entry.js +4 -0
  245. package/dist/ionic/{p-4ad78edc.entry.js → p-52d7a191.entry.js} +1 -1
  246. package/dist/ionic/{p-92365bc1.system.entry.js → p-567de071.system.entry.js} +1 -1
  247. package/dist/ionic/p-577bc414.entry.js +4 -0
  248. package/dist/ionic/{p-b91acf8d.system.entry.js → p-585b455c.system.entry.js} +1 -1
  249. package/dist/ionic/{p-da8ef548.system.entry.js → p-58d5df0c.system.entry.js} +1 -1
  250. package/dist/ionic/{p-9eee4de1.system.js → p-5c08627a.system.js} +1 -1
  251. package/dist/ionic/{p-cc700b6b.entry.js → p-5c9eb9af.entry.js} +1 -1
  252. package/dist/ionic/{p-6b1bd0c1.entry.js → p-61db139d.entry.js} +1 -1
  253. package/dist/ionic/{p-f89cf011.system.entry.js → p-63b0abde.system.entry.js} +1 -1
  254. package/dist/ionic/p-67222c16.system.js +4 -0
  255. package/dist/ionic/{p-a4575db1.system.entry.js → p-6933c482.system.entry.js} +1 -1
  256. package/dist/ionic/{p-6190d0d6.entry.js → p-6d6cedc5.entry.js} +1 -1
  257. package/dist/ionic/{p-9a1f985d.system.entry.js → p-6dfb0f39.system.entry.js} +1 -1
  258. package/dist/ionic/{p-7a1766d6.js → p-72812e99.js} +1 -1
  259. package/dist/ionic/p-72bc8a1c.js +4 -0
  260. package/dist/ionic/{p-4346c79d.system.entry.js → p-744c8672.system.entry.js} +1 -1
  261. package/dist/ionic/{p-1bbe8665.system.entry.js → p-74e3f0af.system.entry.js} +2 -2
  262. package/dist/ionic/p-7513b0c4.js +4 -0
  263. package/dist/ionic/{p-f78af648.system.entry.js → p-797eeea8.system.entry.js} +1 -1
  264. package/dist/ionic/{p-83e68c71.entry.js → p-7a02f476.entry.js} +1 -1
  265. package/dist/ionic/{p-14143257.entry.js → p-7a6eaf9e.entry.js} +1 -1
  266. package/dist/ionic/{p-fca17935.entry.js → p-7b9a2b23.entry.js} +1 -1
  267. package/dist/ionic/{p-70ccc275.system.entry.js → p-7ddc46c3.system.entry.js} +1 -1
  268. package/dist/ionic/{p-a2b6dd57.system.js → p-7de1e42c.system.js} +1 -1
  269. package/dist/ionic/{p-0eb2553a.system.entry.js → p-7ed1657c.system.entry.js} +1 -1
  270. package/dist/ionic/{p-95da3ae2.system.js → p-8635f5e6.system.js} +1 -1
  271. package/dist/ionic/{p-803f0bc2.entry.js → p-8694928f.entry.js} +1 -1
  272. package/dist/ionic/{p-da074ff7.entry.js → p-89bf08c7.entry.js} +1 -1
  273. package/dist/ionic/{p-c29f8157.system.entry.js → p-8cfba7e9.system.entry.js} +1 -1
  274. package/dist/ionic/{p-82b931e2.entry.js → p-92763d3d.entry.js} +1 -1
  275. package/dist/ionic/{p-561ddcd4.system.entry.js → p-933727f9.system.entry.js} +2 -2
  276. package/dist/ionic/p-9343a445.js +4 -0
  277. package/dist/ionic/{p-02e23f26.entry.js → p-937a7e21.entry.js} +1 -1
  278. package/dist/ionic/{p-57379000.entry.js → p-948e6c6a.entry.js} +1 -1
  279. package/dist/ionic/{p-77e7b7b6.system.entry.js → p-98231c01.system.entry.js} +1 -1
  280. package/dist/ionic/{p-dc146a2a.system.entry.js → p-985a7e17.system.entry.js} +1 -1
  281. package/dist/ionic/{p-76446a85.entry.js → p-98ff6b32.entry.js} +1 -1
  282. package/dist/ionic/{p-a3c78186.system.entry.js → p-9b122e3c.system.entry.js} +1 -1
  283. package/dist/ionic/{p-0397811d.entry.js → p-9b428d25.entry.js} +1 -1
  284. package/dist/ionic/{p-41780810.entry.js → p-9df2c6fb.entry.js} +1 -1
  285. package/dist/ionic/{p-d3b26da4.system.entry.js → p-9f364443.system.entry.js} +1 -1
  286. package/dist/ionic/{p-3572f86a.system.entry.js → p-a090bce8.system.entry.js} +1 -1
  287. package/dist/ionic/{p-1bc65aec.system.entry.js → p-a0eb506c.system.entry.js} +1 -1
  288. package/dist/ionic/{p-4452a8ac.system.js → p-a15ddedb.system.js} +1 -1
  289. package/dist/ionic/p-a3db8ee3.js +4 -0
  290. package/dist/ionic/{p-e456ee59.system.entry.js → p-a4a2420e.system.entry.js} +1 -1
  291. package/dist/ionic/{p-1a790eef.system.js → p-a88dec0d.system.js} +2 -2
  292. package/dist/ionic/{p-b0d8bbee.entry.js → p-a8f2c254.entry.js} +1 -1
  293. package/dist/ionic/{p-3df889b3.system.entry.js → p-ab674093.system.entry.js} +1 -1
  294. package/dist/ionic/{p-c1b51537.system.js → p-ada36597.system.js} +1 -1
  295. package/dist/ionic/{p-45de8d2a.entry.js → p-b1eb86fd.entry.js} +1 -1
  296. package/dist/ionic/{p-e8232807.system.js → p-b3c60433.system.js} +1 -1
  297. package/dist/ionic/{p-bb11d9fb.js → p-b51e4004.js} +1 -1
  298. package/dist/ionic/{p-13dc21b0.js → p-b6efeab8.js} +1 -1
  299. package/dist/ionic/{p-9b3bb24e.entry.js → p-b9d7015f.entry.js} +1 -1
  300. package/dist/ionic/{p-c32644d7.entry.js → p-bb0db172.entry.js} +1 -1
  301. package/dist/ionic/{p-d06601eb.system.entry.js → p-bdf2cb2e.system.entry.js} +1 -1
  302. package/dist/ionic/{p-c8d645b3.entry.js → p-c41ac815.entry.js} +1 -1
  303. package/dist/ionic/{p-340e3f24.system.js → p-c4238c12.system.js} +1 -1
  304. package/dist/ionic/p-c4b53b16.system.entry.js +4 -0
  305. package/dist/ionic/{p-dd0c9350.system.entry.js → p-cac0e0b3.system.entry.js} +1 -1
  306. package/dist/ionic/{p-51dec25d.js → p-cb13696c.js} +1 -1
  307. package/dist/ionic/{p-7b96e5c1.system.entry.js → p-cba1f9bc.system.entry.js} +1 -1
  308. package/dist/ionic/p-cdc83025.entry.js +4 -0
  309. package/dist/ionic/p-d1c5b60e.system.js +4 -0
  310. package/dist/ionic/{p-881d9e52.system.js → p-d22e2a38.system.js} +1 -1
  311. package/dist/ionic/{p-9be5f3ee.system.entry.js → p-d6eaffb1.system.entry.js} +2 -2
  312. package/dist/ionic/{p-955c3eb8.entry.js → p-d7aa6b00.entry.js} +1 -1
  313. package/dist/ionic/p-d7dd8fb1.entry.js +4 -0
  314. package/dist/ionic/{p-265939f0.entry.js → p-de930745.entry.js} +1 -1
  315. package/dist/ionic/{p-57ceead7.entry.js → p-e06057c9.entry.js} +1 -1
  316. package/dist/ionic/{p-91f17b25.system.entry.js → p-e09d6392.system.entry.js} +2 -2
  317. package/dist/ionic/p-e3171ff3.entry.js +4 -0
  318. package/dist/ionic/{p-f301a694.system.entry.js → p-e4ee80be.system.entry.js} +1 -1
  319. package/dist/ionic/p-e4fde4fb.system.entry.js +4 -0
  320. package/dist/ionic/p-e6376b93.system.entry.js +4 -0
  321. package/dist/ionic/{p-f42743d1.entry.js → p-e76dae93.entry.js} +1 -1
  322. package/dist/ionic/p-e8d56122.js +4 -0
  323. package/dist/ionic/{p-e1bbacb7.entry.js → p-eef505e8.entry.js} +1 -1
  324. package/dist/ionic/{p-26194519.entry.js → p-f1060cd8.entry.js} +1 -1
  325. package/dist/ionic/{p-d192fdf7.system.entry.js → p-f1120724.system.entry.js} +1 -1
  326. package/dist/ionic/{p-02e1ebd9.js → p-f1c4dcd4.js} +1 -1
  327. package/dist/ionic/{p-32e99b0a.entry.js → p-f63c2d12.entry.js} +1 -1
  328. package/dist/ionic/{p-ffc48bc5.system.entry.js → p-fbd41a7e.system.entry.js} +1 -1
  329. package/dist/ionic/{p-e97a3f44.entry.js → p-fceec762.entry.js} +1 -1
  330. package/dist/types/components/checkbox/checkbox.d.ts +25 -0
  331. package/dist/types/components/modal/animations/sheet.d.ts +1 -0
  332. package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
  333. package/dist/types/components/modal/modal-interface.d.ts +1 -0
  334. package/dist/types/components/modal/modal.d.ts +11 -0
  335. package/dist/types/components/segment-button/segment-button.d.ts +1 -2
  336. package/dist/types/components/select/select.d.ts +6 -0
  337. package/dist/types/components/toggle/toggle.d.ts +6 -0
  338. package/dist/types/components/toolbar/toolbar.d.ts +4 -0
  339. package/dist/types/components.d.ts +48 -0
  340. package/dist/types/utils/config.d.ts +9 -0
  341. package/dist/types/utils/helpers.d.ts +0 -1
  342. package/dist/types/utils/logging/index.d.ts +13 -1
  343. package/hydrate/index.js +346 -139
  344. package/hydrate/index.mjs +346 -139
  345. package/package.json +3 -3
  346. package/dist/esm-es5/index-9b0d46f4.js +0 -4
  347. package/dist/esm-es5/input-shims-0e65111b.js +0 -4
  348. package/dist/esm-es5/md.transition-33826623.js +0 -4
  349. package/dist/esm-es5/status-tap-163e8128.js +0 -4
  350. package/dist/ionic/p-06fee233.js +0 -4
  351. package/dist/ionic/p-075a94bd.js +0 -4
  352. package/dist/ionic/p-0a59f4fa.entry.js +0 -4
  353. package/dist/ionic/p-0e43be1b.entry.js +0 -4
  354. package/dist/ionic/p-0ee3b5a2.system.js +0 -4
  355. package/dist/ionic/p-135e5731.js +0 -4
  356. package/dist/ionic/p-1f405274.js +0 -4
  357. package/dist/ionic/p-25fa1d30.system.entry.js +0 -4
  358. package/dist/ionic/p-2c9eb774.system.js +0 -4
  359. package/dist/ionic/p-48a8d9b4.system.entry.js +0 -4
  360. package/dist/ionic/p-56da53ad.system.entry.js +0 -4
  361. package/dist/ionic/p-61d044b4.entry.js +0 -4
  362. package/dist/ionic/p-68dc53a5.js +0 -4
  363. package/dist/ionic/p-84b1b9a0.entry.js +0 -4
  364. package/dist/ionic/p-8a836849.entry.js +0 -4
  365. package/dist/ionic/p-af09741c.entry.js +0 -4
  366. package/dist/ionic/p-b7433d7d.js +0 -4
  367. package/dist/ionic/p-df862603.entry.js +0 -4
  368. package/dist/ionic/p-e308de5b.system.js +0 -4
  369. package/dist/ionic/p-ff4b7e40.system.js +0 -4
@@ -7,7 +7,7 @@ import { clamp, raf, getElementRoot } from "../../../utils/helpers";
7
7
  import { FOCUS_TRAP_DISABLE_CLASS } from "../../../utils/overlays";
8
8
  import { getBackdropValueForSheet } from "../utils";
9
9
  import { calculateSpringStep, handleCanDismiss } from "./utils";
10
- export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
10
+ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, animation, breakpoints = [], expandToScroll, getCurrentBreakpoint, onDismiss, onBreakpointChange) => {
11
11
  // Defaults for the sheet swipe animation
12
12
  const defaultBackdrop = [
13
13
  { offset: 0, opacity: 'var(--backdrop-opacity)' },
@@ -24,6 +24,10 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
24
24
  { offset: 1, transform: 'translateY(100%)' },
25
25
  ],
26
26
  BACKDROP_KEYFRAMES: backdropBreakpoint !== 0 ? customBackdrop : defaultBackdrop,
27
+ CONTENT_KEYFRAMES: [
28
+ { offset: 0, maxHeight: '100%' },
29
+ { offset: 1, maxHeight: '0%' },
30
+ ],
27
31
  };
28
32
  const contentEl = baseEl.querySelector('ion-content');
29
33
  const height = wrapperEl.clientHeight;
@@ -31,10 +35,11 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
31
35
  let offset = 0;
32
36
  let canDismissBlocksGesture = false;
33
37
  const canDismissMaxStep = 0.95;
34
- const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
35
- const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
36
38
  const maxBreakpoint = breakpoints[breakpoints.length - 1];
37
39
  const minBreakpoint = breakpoints[0];
40
+ const wrapperAnimation = animation.childAnimations.find((ani) => ani.id === 'wrapperAnimation');
41
+ const backdropAnimation = animation.childAnimations.find((ani) => ani.id === 'backdropAnimation');
42
+ const contentAnimation = animation.childAnimations.find((ani) => ani.id === 'contentAnimation');
38
43
  const enableBackdrop = () => {
39
44
  baseEl.style.setProperty('pointer-events', 'auto');
40
45
  backdropEl.style.setProperty('pointer-events', 'auto');
@@ -57,6 +62,31 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
57
62
  */
58
63
  baseEl.classList.add(FOCUS_TRAP_DISABLE_CLASS);
59
64
  };
65
+ /**
66
+ * Toggles the visible modal footer when `expandToScroll` is disabled.
67
+ * @param footer The footer to show.
68
+ */
69
+ const swapFooterVisibility = (footer) => {
70
+ const originalFooter = baseEl.querySelector('ion-footer');
71
+ if (!originalFooter) {
72
+ return;
73
+ }
74
+ const clonedFooter = wrapperEl.nextElementSibling;
75
+ const footerToHide = footer === 'original' ? clonedFooter : originalFooter;
76
+ const footerToShow = footer === 'original' ? originalFooter : clonedFooter;
77
+ footerToShow.style.removeProperty('display');
78
+ footerToShow.removeAttribute('aria-hidden');
79
+ const page = baseEl.querySelector('.ion-page');
80
+ if (footer === 'original') {
81
+ page.style.removeProperty('padding-bottom');
82
+ }
83
+ else {
84
+ const pagePadding = footerToShow.clientHeight;
85
+ page.style.setProperty('padding-bottom', `${pagePadding}px`);
86
+ }
87
+ footerToHide.style.setProperty('display', 'none');
88
+ footerToHide.setAttribute('aria-hidden', 'true');
89
+ };
60
90
  /**
61
91
  * After the entering animation completes,
62
92
  * we need to set the animation to go from
@@ -68,6 +98,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
68
98
  if (wrapperAnimation && backdropAnimation) {
69
99
  wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
70
100
  backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
101
+ contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
71
102
  animation.progressStart(true, 1 - currentBreakpoint);
72
103
  /**
73
104
  * If backdrop is not enabled, then content
@@ -84,7 +115,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
84
115
  disableBackdrop();
85
116
  }
86
117
  }
87
- if (contentEl && currentBreakpoint !== maxBreakpoint) {
118
+ if (contentEl && currentBreakpoint !== maxBreakpoint && expandToScroll) {
88
119
  contentEl.scrollY = false;
89
120
  }
90
121
  const canStart = (detail) => {
@@ -98,6 +129,13 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
98
129
  */
99
130
  const contentEl = findClosestIonContent(detail.event.target);
100
131
  currentBreakpoint = getCurrentBreakpoint();
132
+ /**
133
+ * If we have expandToScroll disabled, we should not allow the swipe gesture to start
134
+ * if the content is being swiped.
135
+ */
136
+ if (!expandToScroll && contentEl) {
137
+ return false;
138
+ }
101
139
  if (currentBreakpoint === 1 && contentEl) {
102
140
  /**
103
141
  * The modal should never swipe to close on the content with a refresher.
@@ -128,6 +166,15 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
128
166
  * Remove undefined check
129
167
  */
130
168
  canDismissBlocksGesture = baseEl.canDismiss !== undefined && baseEl.canDismiss !== true && minBreakpoint === 0;
169
+ /**
170
+ * If expandToScroll is disabled, we need to swap
171
+ * the footer visibility to the original, so if the modal
172
+ * is dismissed, the footer dismisses with the modal
173
+ * and doesn't stay on the screen after the modal is gone.
174
+ */
175
+ if (!expandToScroll) {
176
+ swapFooterVisibility('original');
177
+ }
131
178
  /**
132
179
  * If we are pulling down, then it is possible we are pulling on the content.
133
180
  * We do not want scrolling to happen at the same time as the gesture.
@@ -243,6 +290,19 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
243
290
  opacity: `calc(var(--backdrop-opacity) * ${getBackdropValueForSheet(snapToBreakpoint, backdropBreakpoint)})`,
244
291
  },
245
292
  ]);
293
+ if (contentAnimation) {
294
+ /**
295
+ * The modal content should scroll at any breakpoint when expandToScroll
296
+ * is disabled. In order to do this, the content needs to be completely
297
+ * viewable so scrolling can access everything. Otherwise, the default
298
+ * behavior would show the content off the screen and only allow
299
+ * scrolling when the sheet is fully expanded.
300
+ */
301
+ contentAnimation.keyframes([
302
+ { offset: 0, maxHeight: `${(1 - breakpointOffset) * 100}%` },
303
+ { offset: 1, maxHeight: `${snapToBreakpoint * 100}%` },
304
+ ]);
305
+ }
246
306
  animation.progressStep(0);
247
307
  }
248
308
  /**
@@ -250,6 +310,14 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
250
310
  * snapping animation completes.
251
311
  */
252
312
  gesture.enable(false);
313
+ /**
314
+ * If expandToScroll is disabled, we need to swap
315
+ * the footer visibility to the cloned one so the footer
316
+ * doesn't flicker when the sheet's height is animated.
317
+ */
318
+ if (!expandToScroll && shouldRemainOpen) {
319
+ swapFooterVisibility('cloned');
320
+ }
253
321
  if (shouldPreventDismiss) {
254
322
  handleCanDismiss(baseEl, animation);
255
323
  }
@@ -257,13 +325,13 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
257
325
  onDismiss();
258
326
  }
259
327
  /**
260
- * If the sheet is going to be fully expanded then we should enable
261
- * scrolling immediately. The sheet modal animation takes ~500ms to finish
262
- * so if we wait until then there is a visible delay for when scrolling is
263
- * re-enabled. Native iOS allows for scrolling on the sheet modal as soon
264
- * as the gesture is released, so we align with that.
328
+ * Enables scrolling immediately if the sheet is about to fully expand
329
+ * or if it allows scrolling at any breakpoint. Without this, there would
330
+ * be a ~500ms delay while the modal animation completes, causing a
331
+ * noticeable lag. Native iOS allows scrolling as soon as the gesture is
332
+ * released, so we align with that behavior.
265
333
  */
266
- if (contentEl && snapToBreakpoint === breakpoints[breakpoints.length - 1]) {
334
+ if (contentEl && (snapToBreakpoint === breakpoints[breakpoints.length - 1] || !expandToScroll)) {
267
335
  contentEl.scrollY = true;
268
336
  }
269
337
  return new Promise((resolve) => {
@@ -281,6 +349,7 @@ export const createSheetGesture = (baseEl, backdropEl, wrapperEl, initialBreakpo
281
349
  raf(() => {
282
350
  wrapperAnimation.keyframes([...SheetDefaults.WRAPPER_KEYFRAMES]);
283
351
  backdropAnimation.keyframes([...SheetDefaults.BACKDROP_KEYFRAMES]);
352
+ contentAnimation === null || contentAnimation === void 0 ? void 0 : contentAnimation.keyframes([...SheetDefaults.CONTENT_KEYFRAMES]);
284
353
  animation.progressStart(true, 1 - snapToBreakpoint);
285
354
  currentBreakpoint = snapToBreakpoint;
286
355
  onBreakpointChange(currentBreakpoint);
@@ -201,6 +201,12 @@ ion-backdrop {
201
201
  bottom: 0;
202
202
  }
203
203
 
204
+ :host(.modal-sheet.modal-no-expand-scroll) ion-footer {
205
+ position: absolute;
206
+ bottom: 0;
207
+ width: var(--width);
208
+ }
209
+
204
210
  /**
205
211
  * Convert a font size to a dynamic font size.
206
212
  * Fonts that participate in Dynamic Type should use
@@ -325,4 +331,14 @@ ion-backdrop {
325
331
  border-start-end-radius: var(--border-radius);
326
332
  border-end-end-radius: 0;
327
333
  border-end-start-radius: 0;
334
+ }
335
+
336
+ /**
337
+ * Sheet modals require an additional padding as mentioned in the
338
+ * `core.scss` file. However, there's a workaround that requires
339
+ * a cloned footer to be added to the modal. This is only necessary
340
+ * because the core styles are not being applied to the cloned footer.
341
+ */
342
+ :host(.modal-sheet.modal-no-expand-scroll) ion-footer ion-toolbar:first-of-type {
343
+ padding-top: 6px;
328
344
  }
@@ -86,6 +86,7 @@ export class Modal {
86
86
  this.enterAnimation = undefined;
87
87
  this.leaveAnimation = undefined;
88
88
  this.breakpoints = undefined;
89
+ this.expandToScroll = true;
89
90
  this.initialBreakpoint = undefined;
90
91
  this.backdropBreakpoint = 0;
91
92
  this.handle = undefined;
@@ -301,6 +302,7 @@ export class Modal {
301
302
  presentingEl: presentingElement,
302
303
  currentBreakpoint: this.initialBreakpoint,
303
304
  backdropBreakpoint: this.backdropBreakpoint,
305
+ expandToScroll: this.expandToScroll,
304
306
  });
305
307
  /* tslint:disable-next-line */
306
308
  if (typeof window !== 'undefined') {
@@ -351,7 +353,10 @@ export class Modal {
351
353
  // should be in the DOM and referenced by now, except
352
354
  // for the presenting el
353
355
  const animationBuilder = this.leaveAnimation || config.get('modalLeave', iosLeaveAnimation);
354
- const ani = (this.animation = animationBuilder(el, { presentingEl: this.presentingElement }));
356
+ const ani = (this.animation = animationBuilder(el, {
357
+ presentingEl: this.presentingElement,
358
+ expandToScroll: this.expandToScroll,
359
+ }));
355
360
  const contentEl = findIonContent(el);
356
361
  if (!contentEl) {
357
362
  printIonContentErrorMsg(el);
@@ -396,9 +401,10 @@ export class Modal {
396
401
  presentingEl: this.presentingElement,
397
402
  currentBreakpoint: initialBreakpoint,
398
403
  backdropBreakpoint,
404
+ expandToScroll: this.expandToScroll,
399
405
  }));
400
406
  ani.progressStart(true, 1);
401
- const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
407
+ const { gesture, moveSheetToBreakpoint } = createSheetGesture(this.el, this.backdropEl, wrapperEl, initialBreakpoint, backdropBreakpoint, ani, this.sortedBreakpoints, this.expandToScroll, () => { var _a; return (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : 0; }, () => this.sheetOnDismiss(), (breakpoint) => {
402
408
  if (this.currentBreakpoint !== breakpoint) {
403
409
  this.currentBreakpoint = breakpoint;
404
410
  this.ionBreakpointDidChange.emit({ breakpoint });
@@ -476,6 +482,7 @@ export class Modal {
476
482
  presentingEl: presentingElement,
477
483
  currentBreakpoint: (_a = this.currentBreakpoint) !== null && _a !== void 0 ? _a : this.initialBreakpoint,
478
484
  backdropBreakpoint: this.backdropBreakpoint,
485
+ expandToScroll: this.expandToScroll,
479
486
  });
480
487
  if (dismissed) {
481
488
  const { delegate } = this.getDelegate();
@@ -561,23 +568,23 @@ export class Modal {
561
568
  return true;
562
569
  }
563
570
  render() {
564
- const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap } = this;
571
+ const { handle, isSheetModal, presentingElement, htmlAttributes, handleBehavior, inheritedAttributes, focusTrap, expandToScroll, } = this;
565
572
  const showHandle = handle !== false && isSheetModal;
566
573
  const mode = getIonMode(this);
567
574
  const isCardModal = presentingElement !== undefined && mode === 'ios';
568
575
  const isHandleCycle = handleBehavior === 'cycle';
569
- return (h(Host, Object.assign({ key: 'b4da5111fe4719fa450c39b2d4bd884a302a7924', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
576
+ return (h(Host, Object.assign({ key: 'ff15df63e72caaeb0a4ad68e9eedeaaa7d3f3bde', "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
570
577
  zIndex: `${20000 + this.overlayIndex}`,
571
- }, 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: 'c12dbf747e0eb914eaf1331798548ffc7e147763', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: 'da546ee80c6576b5acc66e959fd5009e0b9a8160', class: "modal-shadow" }), h("div", Object.assign({ key: '306ebe6427440ad5f7ed36d590e562d15a503b75',
578
+ }, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, '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: '27a73655779af9d175a829d3d2d29e42fd2a63ee', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: '406a65080087e7895026ecc2f04e9d707439e86f', class: "modal-shadow" }), h("div", Object.assign({ key: '8e410eb925374158996c82cbbd522f07d741679e',
572
579
  /*
573
580
  role and aria-modal must be used on the
574
581
  same element. They must also be set inside the
575
582
  shadow DOM otherwise ion-button will not be highlighted
576
583
  when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
577
584
  */
578
- role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: 'c5d17e346fe255a7c0cacbbf15c0083f2d09c488', class: "modal-handle",
585
+ role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '7326c969ebe5a70a35e83b09d3db2bb848c90e47', class: "modal-handle",
579
586
  // Prevents the handle from receiving keyboard focus when it does not cycle
580
- 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: '5cc714170a00b67f3eda0cd1d6f37c1489a99c83' }))));
587
+ 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: '0b65cdb9e337a27edf437b9e754e79f1449c217d' }))));
581
588
  }
582
589
  static get is() { return "ion-modal"; }
583
590
  static get encapsulation() { return "shadow"; }
@@ -735,6 +742,24 @@ export class Modal {
735
742
  "text": "The breakpoints to use when creating a sheet modal. Each value in the\narray must be a decimal between 0 and 1 where 0 indicates the modal is fully\nclosed and 1 indicates the modal is fully open. Values are relative\nto the height of the modal, not the height of the screen. One of the values in this\narray must be the value of the `initialBreakpoint` property.\nFor example: [0, .25, .5, 1]"
736
743
  }
737
744
  },
745
+ "expandToScroll": {
746
+ "type": "boolean",
747
+ "mutable": false,
748
+ "complexType": {
749
+ "original": "boolean",
750
+ "resolved": "boolean",
751
+ "references": {}
752
+ },
753
+ "required": false,
754
+ "optional": false,
755
+ "docs": {
756
+ "tags": [],
757
+ "text": "Controls whether scrolling or dragging within the sheet modal expands\nit to a larger breakpoint. This only takes effect when `breakpoints`\nand `initialBreakpoint` are set.\n\nIf `true`, scrolling or dragging anywhere in the modal will first expand\nit to the next breakpoint. Once fully expanded, scrolling will affect the content.\nIf `false`, scrolling will always affect the content, and the modal will only expand\nwhen dragging the header or handle."
758
+ },
759
+ "attribute": "expand-to-scroll",
760
+ "reflect": false,
761
+ "defaultValue": "true"
762
+ },
738
763
  "initialBreakpoint": {
739
764
  "type": "number",
740
765
  "mutable": false,
@@ -201,6 +201,12 @@ ion-backdrop {
201
201
  bottom: 0;
202
202
  }
203
203
 
204
+ :host(.modal-sheet.modal-no-expand-scroll) ion-footer {
205
+ position: absolute;
206
+ bottom: 0;
207
+ width: var(--width);
208
+ }
209
+
204
210
  /**
205
211
  * Convert a font size to a dynamic font size.
206
212
  * Fonts that participate in Dynamic Type should use
@@ -2,7 +2,7 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { Host, forceUpdate, h } from "@stencil/core";
5
- import { addEventListener, removeEventListener, inheritAttributes, getNextSiblingOfType } from "../../utils/helpers";
5
+ import { addEventListener, removeEventListener, inheritAttributes } from "../../utils/helpers";
6
6
  import { hostContext } from "../../utils/theme";
7
7
  import { getIonMode } from "../../global/ionic-global";
8
8
  let ids = 0;
@@ -39,35 +39,7 @@ export class SegmentButton {
39
39
  valueChanged() {
40
40
  this.updateState();
41
41
  }
42
- waitForSegmentContent(ionSegment, contentId) {
43
- return new Promise((resolve, reject) => {
44
- let timeoutId = undefined;
45
- let animationFrameId;
46
- const check = () => {
47
- if (!ionSegment) {
48
- reject(new Error(`Segment not found when looking for Segment Content`));
49
- return;
50
- }
51
- const segmentView = getNextSiblingOfType(ionSegment); // Skip the text nodes
52
- const segmentContent = segmentView === null || segmentView === void 0 ? void 0 : segmentView.querySelector(`ion-segment-content[id="${contentId}"]`);
53
- if (segmentContent && timeoutId) {
54
- clearTimeout(timeoutId); // Clear the timeout if the segmentContent is found
55
- cancelAnimationFrame(animationFrameId);
56
- resolve(segmentContent);
57
- }
58
- else {
59
- animationFrameId = requestAnimationFrame(check); // Keep checking on the next animation frame
60
- }
61
- };
62
- check();
63
- // Set a timeout to reject the promise
64
- timeoutId = setTimeout(() => {
65
- cancelAnimationFrame(animationFrameId);
66
- reject(new Error(`Unable to find Segment Content with id="${contentId} within 1000 ms`));
67
- }, 1000);
68
- });
69
- }
70
- async connectedCallback() {
42
+ connectedCallback() {
71
43
  const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
72
44
  if (segmentEl) {
73
45
  this.updateState();
@@ -77,14 +49,11 @@ export class SegmentButton {
77
49
  // Return if there is no contentId defined
78
50
  if (!this.contentId)
79
51
  return;
80
- let segmentContent;
81
- try {
82
- // Attempt to find the Segment Content by its contentId
83
- segmentContent = await this.waitForSegmentContent(segmentEl, this.contentId);
84
- }
85
- catch (error) {
86
- // If no associated Segment Content exists, log an error and return
87
- console.error('Segment Button: ', error.message);
52
+ // Attempt to find the Segment Content by its contentId
53
+ const segmentContent = document.getElementById(this.contentId);
54
+ // If no associated Segment Content exists, log an error and return
55
+ if (!segmentContent) {
56
+ console.error(`Segment Button: Unable to find Segment Content with id="${this.contentId}".`);
88
57
  return;
89
58
  }
90
59
  // Ensure the found element is a valid ION-SEGMENT-CONTENT
@@ -130,7 +99,7 @@ export class SegmentButton {
130
99
  const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
131
100
  const mode = getIonMode(this);
132
101
  const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
133
- return (h(Host, { key: 'f9da656c8eccb80e4ef30e3fa977f2dbbefbc988', class: {
102
+ return (h(Host, { key: 'd50a5d5e2f6206e8523598f258d8217d2903f69b', class: {
134
103
  [mode]: true,
135
104
  'in-toolbar': hostContext('ion-toolbar', this.el),
136
105
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
@@ -146,7 +115,7 @@ export class SegmentButton {
146
115
  'ion-activatable': true,
147
116
  'ion-activatable-instant': true,
148
117
  'ion-focusable': true,
149
- } }, h("button", Object.assign({ key: '00dbcdbd81cd74abdd39803f6840a6e477cc7b0c', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), h("span", { key: '5200c082a9c4788010c4fc33fe75e2b2ad28364a', class: "button-inner" }, h("slot", { key: 'cf3fce2b5d22436b84cd4367a5885df7d6a2715f' })), mode === 'md' && h("ion-ripple-effect", { key: 'f1a2816465f4c2c06644be07315bff2da77e2342' })), h("div", { key: 'aaf31c0ed39641fca698ee98d0773131f4eea6bd', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: 'fc556651361b7ac305aaedd25ea4afe3173abd20', part: "indicator-background", class: "segment-button-indicator-background" }))));
118
+ } }, h("button", Object.assign({ key: 'b4f6f145286ba8ab79669e11035b906daa85ae7e', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), h("span", { key: '67965996c9ffe70553875e00d3da0ae5b2b1d814', class: "button-inner" }, h("slot", { key: '5087988fe45a8fdf388ec44c395d0b745b207806' })), mode === 'md' && h("ion-ripple-effect", { key: 'b24858de0750bbc769b3183fac0077dfe817ba27' })), h("div", { key: '97b4359432acd1c9da0816360cd1df9472e183f7', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: '0561738ea15b0986f4ed3d8276d5e6f2d13f7e51', part: "indicator-background", class: "segment-button-indicator-background" }))));
150
119
  }
151
120
  static get is() { return "ion-segment-button"; }
152
121
  static get encapsulation() { return "shadow"; }
@@ -91,6 +91,7 @@ export class Select {
91
91
  this.expandedIcon = undefined;
92
92
  this.shape = undefined;
93
93
  this.value = undefined;
94
+ this.required = false;
94
95
  }
95
96
  styleChanged() {
96
97
  this.emitStyle();
@@ -153,8 +154,15 @@ export class Select {
153
154
  }
154
155
  this.isExpanded = true;
155
156
  const overlay = (this.overlay = await this.createOverlay(event));
156
- // Add logic to scroll selected item into view before presenting
157
- const scrollSelectedIntoView = () => {
157
+ overlay.onDidDismiss().then(() => {
158
+ this.overlay = undefined;
159
+ this.isExpanded = false;
160
+ this.ionDismiss.emit();
161
+ this.setFocus();
162
+ });
163
+ await overlay.present();
164
+ // focus selected option for popovers and modals
165
+ if (this.interface === 'popover' || this.interface === 'modal') {
158
166
  const indexOfSelected = this.childOpts.findIndex((o) => o.value === this.value);
159
167
  if (indexOfSelected > -1) {
160
168
  const selectedItem = overlay.querySelector(`.select-interface-option:nth-child(${indexOfSelected + 1})`);
@@ -172,7 +180,6 @@ export class Select {
172
180
  */
173
181
  const interactiveEl = selectedItem.querySelector('ion-radio, ion-checkbox');
174
182
  if (interactiveEl) {
175
- selectedItem.scrollIntoView({ block: 'nearest' });
176
183
  // Needs to be called before `focusVisibleElement` to prevent issue with focus event bubbling
177
184
  // and removing `ion-focused` style
178
185
  interactiveEl.setFocus();
@@ -196,40 +203,7 @@ export class Select {
196
203
  focusVisibleElement(firstEnabledOption.closest('ion-item'));
197
204
  }
198
205
  }
199
- };
200
- // For modals and popovers, we can scroll before they're visible
201
- if (this.interface === 'modal') {
202
- overlay.addEventListener('ionModalWillPresent', scrollSelectedIntoView, { once: true });
203
206
  }
204
- else if (this.interface === 'popover') {
205
- overlay.addEventListener('ionPopoverWillPresent', scrollSelectedIntoView, { once: true });
206
- }
207
- else {
208
- /**
209
- * For alerts and action sheets, we need to wait a frame after willPresent
210
- * because these overlays don't have their content in the DOM immediately
211
- * when willPresent fires. By waiting a frame, we ensure the content is
212
- * rendered and can be properly scrolled into view.
213
- */
214
- const scrollAfterRender = () => {
215
- requestAnimationFrame(() => {
216
- scrollSelectedIntoView();
217
- });
218
- };
219
- if (this.interface === 'alert') {
220
- overlay.addEventListener('ionAlertWillPresent', scrollAfterRender, { once: true });
221
- }
222
- else if (this.interface === 'action-sheet') {
223
- overlay.addEventListener('ionActionSheetWillPresent', scrollAfterRender, { once: true });
224
- }
225
- }
226
- overlay.onDidDismiss().then(() => {
227
- this.overlay = undefined;
228
- this.isExpanded = false;
229
- this.ionDismiss.emit();
230
- this.setFocus();
231
- });
232
- await overlay.present();
233
207
  return overlay;
234
208
  }
235
209
  createOverlay(ev) {
@@ -655,8 +629,8 @@ export class Select {
655
629
  return renderedLabel;
656
630
  }
657
631
  renderListbox() {
658
- const { disabled, inputId, isExpanded } = this;
659
- return (h("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl) }));
632
+ const { disabled, inputId, isExpanded, required } = this;
633
+ return (h("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, "aria-required": `${required}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl) }));
660
634
  }
661
635
  render() {
662
636
  const { disabled, el, isExpanded, expandedIcon, labelPlacement, justify, placeholder, fill, shape, name, value } = this;
@@ -687,7 +661,7 @@ export class Select {
687
661
  * TODO(FW-5592): Remove hasStartEndSlots condition
688
662
  */
689
663
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
690
- return (h(Host, { key: 'b2dca9ae25d88e4d9fdb55003041a66be5668fcf', onClick: this.onClick, class: createColorClasses(this.color, {
664
+ return (h(Host, { key: '491cf1b0e3aa31e7c9cfad3e87d83eb54272312a', onClick: this.onClick, class: createColorClasses(this.color, {
691
665
  [mode]: true,
692
666
  'in-item': inItem,
693
667
  'in-item-color': hostContext('ion-item.ion-color', el),
@@ -703,7 +677,7 @@ export class Select {
703
677
  [`select-justify-${justify}`]: justifyEnabled,
704
678
  [`select-shape-${shape}`]: shape !== undefined,
705
679
  [`select-label-placement-${labelPlacement}`]: true,
706
- }) }, h("label", { key: 'c22fe9aee8cd448223497ef143e89529fcef8af6', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '601972df4579f4fa6a9c2c12865593e807decb72', class: "select-wrapper-inner" }, h("slot", { key: '5f7b1261862f74b978b26f026533e3fd1cc666ba', name: "start" }), h("div", { key: '39616da89f4b4b78432f6da85116a7de2ca589e7', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '1d7b3601b73af7c05b3627cfc8e5147ea379bb03', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'b0344f0ac15003e22fee66d3d7ed03a07da7e8b7', class: "select-highlight" }))));
680
+ }) }, h("label", { key: '07bf3cb57bd1121383d8c746e3ac49da38300082', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '884facd18342797576bbacc761d18d83c52762e3', class: "select-wrapper-inner" }, h("slot", { key: 'c4f2a2a7a76f52db15f9a0b806017caea443c47a', name: "start" }), h("div", { key: '235cf383f268cc74412722cd31e246cbd4c2abe5', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '1481302e11c494d49dfd80a7aaf743f7e851558f', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: '8a45ea9280651695c8e5435f266c286f3e3f6a18', class: "select-highlight" }))));
707
681
  }
708
682
  static get is() { return "ion-select"; }
709
683
  static get encapsulation() { return "shadow"; }
@@ -1069,6 +1043,24 @@ export class Select {
1069
1043
  },
1070
1044
  "attribute": "value",
1071
1045
  "reflect": false
1046
+ },
1047
+ "required": {
1048
+ "type": "boolean",
1049
+ "mutable": false,
1050
+ "complexType": {
1051
+ "original": "boolean",
1052
+ "resolved": "boolean",
1053
+ "references": {}
1054
+ },
1055
+ "required": false,
1056
+ "optional": false,
1057
+ "docs": {
1058
+ "tags": [],
1059
+ "text": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid."
1060
+ },
1061
+ "attribute": "required",
1062
+ "reflect": false,
1063
+ "defaultValue": "false"
1072
1064
  }
1073
1065
  };
1074
1066
  }
@@ -71,6 +71,7 @@ export class Toggle {
71
71
  this.labelPlacement = 'start';
72
72
  this.justify = undefined;
73
73
  this.alignment = undefined;
74
+ this.required = false;
74
75
  }
75
76
  disabledChanged() {
76
77
  if (this.gesture) {
@@ -152,12 +153,12 @@ export class Toggle {
152
153
  return this.el.textContent !== '';
153
154
  }
154
155
  render() {
155
- const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
156
+ const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment, required } = this;
156
157
  const mode = getIonMode(this);
157
158
  const value = this.getValue();
158
159
  const rtl = isRTL(el) ? 'rtl' : 'ltr';
159
160
  renderHiddenInput(true, el, name, checked ? value : '', disabled);
160
- return (h(Host, { key: 'f52195ec3bc14c024647cb41319c32a4cd330e19', onClick: this.onClick, class: createColorClasses(color, {
161
+ return (h(Host, { key: 'ed75573caa6e37011f1453dd7f723fb9bd8a3656', onClick: this.onClick, class: createColorClasses(color, {
161
162
  [mode]: true,
162
163
  'in-item': hostContext('ion-item', el),
163
164
  'toggle-activated': activated,
@@ -167,10 +168,10 @@ export class Toggle {
167
168
  [`toggle-alignment-${alignment}`]: alignment !== undefined,
168
169
  [`toggle-label-placement-${labelPlacement}`]: true,
169
170
  [`toggle-${rtl}`]: true,
170
- }) }, h("label", { key: 'f8b3a215ad85b2cee611ad63449b584e1640f27f', class: "toggle-wrapper" }, h("input", Object.assign({ key: 'f387b1ea840737a9737917e516834c887be99c09', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: '936af880db59fe377cd2de9101eb28a1c4fb8914', class: {
171
+ }) }, h("label", { key: '484860e2a33f4d123904edb96159f0e1972d3add', class: "toggle-wrapper" }, h("input", Object.assign({ key: '360b53080aacfd99a9ff60ffb5219816bd4163ee', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl), required: required }, this.inheritedAttributes)), h("div", { key: 'f7239fa668fe11257239ea30cf0198e4f3274f6b', class: {
171
172
  'label-text-wrapper': true,
172
173
  'label-text-wrapper-hidden': !this.hasLabel,
173
- }, part: "label" }, h("slot", { key: '80a6672e2e792c15011a9496dcd75363cdba31c6' })), h("div", { key: '2b2b318b38ab27b194c0dab4cecd77d9d780f2ca', class: "native-wrapper" }, this.renderToggleControl()))));
174
+ }, part: "label" }, h("slot", { key: '9495a4a39889822ee68e0d89dc5a2f863d1feb3c' })), h("div", { key: '55f1eb08c4b705e94fbcf02220bbe1d292f06155', class: "native-wrapper" }, this.renderToggleControl()))));
174
175
  }
175
176
  static get is() { return "ion-toggle"; }
176
177
  static get encapsulation() { return "shadow"; }
@@ -352,6 +353,24 @@ export class Toggle {
352
353
  },
353
354
  "attribute": "alignment",
354
355
  "reflect": false
356
+ },
357
+ "required": {
358
+ "type": "boolean",
359
+ "mutable": false,
360
+ "complexType": {
361
+ "original": "boolean",
362
+ "resolved": "boolean",
363
+ "references": {}
364
+ },
365
+ "required": false,
366
+ "optional": false,
367
+ "docs": {
368
+ "tags": [],
369
+ "text": "If true, screen readers will announce it as a required field. This property\nworks only for accessibility purposes, it will not prevent the form from\nsubmitting if the value is invalid."
370
+ },
371
+ "attribute": "required",
372
+ "reflect": false,
373
+ "defaultValue": "false"
355
374
  }
356
375
  };
357
376
  }
@@ -12,6 +12,10 @@ import { getIonMode } from "../../global/ionic-global";
12
12
  * @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
13
13
  * @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
14
14
  * @slot end - Content is placed to the right of the toolbar text in LTR, and to the left in RTL.
15
+ *
16
+ * @part background - The background of the toolbar, covering the entire area behind the toolbar content.
17
+ * @part container - The container that wraps all toolbar content, including the default slot and named slot content.
18
+ * @part content - The container for the default slot, wrapping content provided without a named slot.
15
19
  */
16
20
  export class Toolbar {
17
21
  constructor() {
@@ -62,10 +66,10 @@ export class Toolbar {
62
66
  this.childrenStyles.forEach((value) => {
63
67
  Object.assign(childStyles, value);
64
68
  });
65
- return (h(Host, { key: '462538a5ecd01baf3cde116c9f029aeda26c81be', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
69
+ return (h(Host, { key: '4fdc9ae82a93237cc28ceb95b0ebd8069b62839d', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
66
70
  [mode]: true,
67
71
  'in-toolbar': hostContext('ion-toolbar', this.el),
68
- })) }, h("div", { key: 'c0b4415d3b2472de643a9be7cb3b13b3b628621b', class: "toolbar-background" }), h("div", { key: '0ccb8a2dbeaa28d8f9bed87629c0c097446690c2', class: "toolbar-container" }, h("slot", { key: '3e726dac359e923df21d80301651f16063a3de20', name: "start" }), h("slot", { key: 'cd799330b56a7f8833bc61bb2807aafb21846f71', name: "secondary" }), h("div", { key: '395282e6ac8c53576922dcdb5f08c25d34638c86', class: "toolbar-content" }, h("slot", { key: 'a437c60e4ba5aae65e55169ae82a6f379868ec1d' })), h("slot", { key: '711af9b9d321a7b31ede924c9bdcad767aa9a1ca', name: "primary" }), h("slot", { key: 'ecc02edeaf80a837890bcb08d5096df1e22a0b9a', name: "end" }))));
72
+ })) }, h("div", { key: '443a216362bbbf1c149ed12140d52b0f0ea2d664', class: "toolbar-background", part: "background" }), h("div", { key: '1df87f4027d605e42757a13d4828df45b90a4fdc', class: "toolbar-container", part: "container" }, h("slot", { key: 'f66f34972be8e3f4915b9c6f5808600dbaedb1ea', name: "start" }), h("slot", { key: '14f38b0975e956f404c4eb3ee56f2055c6615276', name: "secondary" }), h("div", { key: '75ba5953a25c7544793484d2b245792cb0a5af75', class: "toolbar-content", part: "content" }, h("slot", { key: '149dfa58ff7106f318fecb4134e7c69edf8bc231' })), h("slot", { key: '807ab9ad21d7f1d9d427a4086460bcb9e5e8c019', name: "primary" }), h("slot", { key: 'bd2f9da95d2fa8e74dc6e0666587ceecbba99d9f', name: "end" }))));
69
73
  }
70
74
  static get is() { return "ion-toolbar"; }
71
75
  static get encapsulation() { return "shadow"; }
@@ -364,13 +364,3 @@ export const shallowEqualStringMap = (map1, map2) => {
364
364
  }
365
365
  return true;
366
366
  };
367
- export const getNextSiblingOfType = (element) => {
368
- let sibling = element.nextSibling;
369
- while (sibling) {
370
- if (sibling.nodeType === Node.ELEMENT_NODE && sibling !== null) {
371
- return sibling;
372
- }
373
- sibling = sibling.nextSibling;
374
- }
375
- return null;
376
- };