@baloise/ds-core 17.3.0 → 17.4.0-snapshot.1609-d2bcc38d3

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 (745) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/aria.js +6 -1
  4. package/components/attributes.js +1 -0
  5. package/components/bal-accordion-details.js +1 -1
  6. package/components/bal-accordion-summary.js +1 -1
  7. package/components/bal-accordion-trigger.js +67 -2
  8. package/components/bal-app.js +1 -93
  9. package/components/bal-app2.js +95 -0
  10. package/components/bal-badge2.js +1 -1
  11. package/components/bal-button-group2.js +2 -2
  12. package/components/bal-button2.js +13 -2
  13. package/components/bal-card-actions.js +1 -1
  14. package/components/bal-card-button.js +1 -1
  15. package/components/bal-card-content2.js +1 -1
  16. package/components/bal-card-subtitle.js +1 -1
  17. package/components/bal-card-title.js +1 -1
  18. package/components/bal-card2.js +2 -2
  19. package/components/bal-carousel.js +12 -4
  20. package/components/bal-checkbox-button.js +1 -1
  21. package/components/bal-checkbox-group.js +2 -1
  22. package/components/bal-checkbox2.js +2 -2
  23. package/components/bal-close2.js +2 -2
  24. package/components/bal-content2.js +1 -1
  25. package/components/bal-data-item.js +1 -1
  26. package/components/bal-data-label.js +1 -1
  27. package/components/bal-data-value.js +1 -1
  28. package/components/bal-data.js +1 -1
  29. package/components/bal-date-calendar-cell2.js +2 -1
  30. package/components/bal-date-calendar2.js +2 -2
  31. package/components/bal-date.js +2 -1
  32. package/components/bal-divider.js +1 -1
  33. package/components/bal-doc-app.d.ts +11 -0
  34. package/components/bal-doc-app.js +262 -0
  35. package/components/bal-dropdown.js +4 -4
  36. package/components/bal-field-control.js +2 -2
  37. package/components/bal-field-hint.js +1 -1
  38. package/components/bal-field-label.js +1 -1
  39. package/components/bal-field-message.js +2 -2
  40. package/components/bal-field.js +4 -4
  41. package/components/bal-file-upload.js +5 -4
  42. package/components/bal-footer.js +6 -12
  43. package/components/bal-form-col.js +2 -2
  44. package/components/bal-form-grid.js +2 -2
  45. package/components/bal-form.js +1 -1
  46. package/components/bal-heading2.js +1 -1
  47. package/components/bal-hint-text2.js +1 -1
  48. package/components/bal-hint-title2.js +1 -1
  49. package/components/bal-icon2.js +3 -2
  50. package/components/bal-input-date2.js +3 -2
  51. package/components/bal-input-group2.js +1 -1
  52. package/components/bal-input-slider.js +4 -3
  53. package/components/bal-input-stepper.js +4 -3
  54. package/components/bal-input.js +3 -2
  55. package/components/bal-label2.js +1 -1
  56. package/components/bal-list-item-accordion-body2.js +30 -8
  57. package/components/bal-list-item-accordion-head2.js +106 -3
  58. package/components/bal-list-item-content2.js +2 -2
  59. package/components/bal-list-item-icon2.js +2 -2
  60. package/components/bal-list-item-subtitle2.js +1 -1
  61. package/components/bal-list-item-title2.js +1 -1
  62. package/components/bal-list2.js +1 -1
  63. package/components/bal-modal-body.js +1 -1
  64. package/components/bal-modal-header.js +1 -1
  65. package/components/bal-modal.js +9 -7
  66. package/components/bal-nav-link-grid-col2.js +1 -1
  67. package/components/bal-nav-link-grid2.js +1 -1
  68. package/components/bal-nav-link-group.js +1 -1
  69. package/components/bal-nav-link2.js +2 -2
  70. package/components/bal-nav-menu-bar2.js +1 -1
  71. package/components/bal-nav-menu-flyout2.js +1 -1
  72. package/components/bal-nav-meta-bar2.js +1 -1
  73. package/components/bal-nav.js +8 -8
  74. package/components/bal-navbar-brand.js +58 -2
  75. package/components/bal-navbar-menu-end.js +1 -1
  76. package/components/bal-navbar-menu-start.js +1 -1
  77. package/components/bal-navbar-menu.js +1 -1
  78. package/components/bal-navbar.js +1 -1
  79. package/components/bal-notices.js +1 -1
  80. package/components/bal-notification.js +1 -1
  81. package/components/bal-number-input.js +8 -6
  82. package/components/bal-option-list.js +2 -1
  83. package/components/bal-option.js +1 -1
  84. package/components/bal-pagination.js +4 -4
  85. package/components/bal-popover-content2.js +1 -1
  86. package/components/bal-popover2.js +3 -2
  87. package/components/bal-popup.js +1 -1
  88. package/components/bal-progress-bar.js +1 -1
  89. package/components/bal-radio-button.js +1 -1
  90. package/components/bal-radio-group.js +2 -1
  91. package/components/bal-radio2.js +3 -2
  92. package/components/bal-segment-item.js +1 -1
  93. package/components/bal-segment.js +1 -1
  94. package/components/bal-select-option2.js +1 -1
  95. package/components/bal-select2.js +6 -5
  96. package/components/bal-shape2.js +4 -4
  97. package/components/bal-sheet.js +1 -1
  98. package/components/bal-snackbar.js +1 -1
  99. package/components/bal-spinner2.js +1 -1
  100. package/components/bal-stack2.js +1 -1
  101. package/components/bal-stage-back-link.js +2 -2
  102. package/components/bal-stage-body.js +1 -1
  103. package/components/bal-stage-foot.js +1 -1
  104. package/components/bal-stage-head.js +1 -1
  105. package/components/bal-stage-image.js +1 -1
  106. package/components/bal-stage.js +1 -1
  107. package/components/bal-step-item.js +2 -2
  108. package/components/bal-steps.js +1 -1
  109. package/components/bal-tab-item.js +2 -2
  110. package/components/bal-table.js +1 -1
  111. package/components/bal-tabs2.js +6 -5
  112. package/components/bal-tag-group.js +1 -1
  113. package/components/bal-tag2.js +2 -1
  114. package/components/bal-text2.js +2 -2
  115. package/components/bal-textarea.js +2 -1
  116. package/components/bal-time-input.js +3 -2
  117. package/components/bal-toast.js +1 -1
  118. package/components/bal-tooltip.js +1 -1
  119. package/components/floating-ui.dom.esm.js +205 -77
  120. package/components/form.js +2 -2
  121. package/components/index.js +7 -314
  122. package/components/initialize.js +312 -0
  123. package/components/overlays.js +285 -1
  124. package/components/swiper.util.js +8 -3
  125. package/components/tokens.esm.js +1 -1
  126. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  127. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  128. package/dist/baloise-design-system/index.esm.js +1 -1
  129. package/dist/baloise-design-system/p-0242cdf474.entry.js +1 -0
  130. package/dist/baloise-design-system/p-055ec952e0.system.entry.js +1 -0
  131. package/dist/baloise-design-system/{p-3f88c54b.js → p-070b692d.js} +1 -1
  132. package/dist/baloise-design-system/p-07bae1fdcc.system.entry.js +1 -0
  133. package/dist/baloise-design-system/p-0a00140ece.system.entry.js +1 -0
  134. package/dist/baloise-design-system/p-0b6380a77a.entry.js +1 -0
  135. package/dist/baloise-design-system/p-0d5459caac.system.entry.js +1 -0
  136. package/dist/baloise-design-system/p-10ff0eaf.js +1 -0
  137. package/dist/baloise-design-system/p-111d37ae18.system.entry.js +1 -0
  138. package/dist/baloise-design-system/{p-516488d5fc.system.entry.js → p-12af198b96.system.entry.js} +1 -1
  139. package/dist/baloise-design-system/{p-f80438cdac.entry.js → p-12db0c3477.entry.js} +1 -1
  140. package/dist/baloise-design-system/{p-35baa468.js → p-13d7688b.js} +1 -1
  141. package/dist/baloise-design-system/{p-95bf3ca0ae.entry.js → p-187e7da1ed.entry.js} +1 -1
  142. package/dist/baloise-design-system/{p-3664ca2ce5.system.entry.js → p-18820ca258.system.entry.js} +1 -1
  143. package/dist/baloise-design-system/p-1c8e64e58b.system.entry.js +1 -0
  144. package/dist/baloise-design-system/{p-7042d9e34c.system.entry.js → p-208bd3127d.system.entry.js} +1 -1
  145. package/dist/baloise-design-system/{p-c1ca39528d.entry.js → p-2697b88cca.entry.js} +1 -1
  146. package/dist/baloise-design-system/p-2724ad9065.entry.js +1 -0
  147. package/dist/baloise-design-system/p-273fb2c2.system.js +1 -1
  148. package/dist/baloise-design-system/p-279428d318.entry.js +1 -0
  149. package/dist/baloise-design-system/p-2d98519440.system.entry.js +1 -0
  150. package/dist/baloise-design-system/p-2da669b4.system.js +1 -0
  151. package/dist/baloise-design-system/{p-66f6b46fd4.system.entry.js → p-3114657eb7.system.entry.js} +1 -1
  152. package/dist/baloise-design-system/p-312a3215.js +1 -0
  153. package/dist/baloise-design-system/p-31c7ac3a.system.js +1 -0
  154. package/dist/baloise-design-system/p-341c9b6c63.entry.js +1 -0
  155. package/dist/baloise-design-system/{p-06e89742d9.system.entry.js → p-34a93475db.system.entry.js} +1 -1
  156. package/dist/baloise-design-system/{p-a5964c8a.system.js → p-363254ce.system.js} +1 -1
  157. package/dist/baloise-design-system/p-36c4bd2450.system.entry.js +1 -0
  158. package/dist/baloise-design-system/{p-e7c9357245.entry.js → p-374e5904fa.entry.js} +1 -1
  159. package/dist/baloise-design-system/p-3ae755102b.system.entry.js +1 -0
  160. package/dist/baloise-design-system/{p-34ca390a2c.system.entry.js → p-3bcfc7b117.system.entry.js} +1 -1
  161. package/dist/baloise-design-system/{p-92e27ad87b.entry.js → p-3c447e2884.entry.js} +1 -1
  162. package/dist/baloise-design-system/p-3cb3bf6ca0.system.entry.js +1 -0
  163. package/dist/baloise-design-system/p-3d5fac87cb.entry.js +1 -0
  164. package/dist/baloise-design-system/p-3f559c384a.system.entry.js +1 -0
  165. package/dist/baloise-design-system/p-426219f4.js +1 -0
  166. package/dist/baloise-design-system/p-43174c7095.entry.js +1 -0
  167. package/dist/baloise-design-system/p-4440f31c6b.system.entry.js +1 -0
  168. package/dist/baloise-design-system/p-44539ccf68.entry.js +1 -0
  169. package/dist/baloise-design-system/{p-7ced24b550.system.entry.js → p-447acd07e7.system.entry.js} +1 -1
  170. package/dist/baloise-design-system/{p-2f23758d56.entry.js → p-447bb8d6ce.entry.js} +1 -1
  171. package/dist/baloise-design-system/p-462f564b70.entry.js +1 -0
  172. package/dist/baloise-design-system/{p-596000a871.entry.js → p-469a18b468.entry.js} +1 -1
  173. package/dist/baloise-design-system/{p-c6f86d0612.entry.js → p-48809a4768.entry.js} +1 -1
  174. package/dist/baloise-design-system/{p-1e7d65ac70.entry.js → p-4affef9b9b.entry.js} +1 -1
  175. package/dist/baloise-design-system/{p-8594937575.entry.js → p-4d9a45256c.entry.js} +1 -1
  176. package/dist/baloise-design-system/{p-71eb478cc0.system.entry.js → p-4dc30ed346.system.entry.js} +1 -1
  177. package/dist/baloise-design-system/p-50a49c0e5c.system.entry.js +1 -0
  178. package/dist/baloise-design-system/p-50f3b012.js +1 -0
  179. package/dist/baloise-design-system/p-525a4b8a95.entry.js +1 -0
  180. package/dist/baloise-design-system/{p-649e542e.system.js → p-540bfa19.system.js} +1 -1
  181. package/dist/baloise-design-system/{p-1b5f932fe9.system.entry.js → p-5514228033.system.entry.js} +1 -1
  182. package/dist/baloise-design-system/p-55fc8522eb.system.entry.js +1 -0
  183. package/dist/baloise-design-system/{p-1c08d81e34.entry.js → p-56021799ec.entry.js} +1 -1
  184. package/dist/baloise-design-system/p-570a1d673a.entry.js +1 -0
  185. package/dist/baloise-design-system/p-5776d1fde6.entry.js +1 -0
  186. package/dist/baloise-design-system/p-5821d4bbb2.system.entry.js +1 -0
  187. package/dist/baloise-design-system/p-59d9918c.system.js +1 -0
  188. package/dist/baloise-design-system/p-5d6f66047b.system.entry.js +1 -0
  189. package/dist/baloise-design-system/{p-f385e205.js → p-5eb3fbb9.js} +1 -1
  190. package/dist/baloise-design-system/p-6079fa35e4.system.entry.js +1 -0
  191. package/dist/baloise-design-system/p-649eedce8a.system.entry.js +1 -0
  192. package/dist/baloise-design-system/{p-2b4970ea09.system.entry.js → p-6b14f26a4d.system.entry.js} +1 -1
  193. package/dist/baloise-design-system/{p-4a746f645b.entry.js → p-6e37071912.entry.js} +1 -1
  194. package/dist/baloise-design-system/{p-e034c068.system.js → p-6e4a8fa7.system.js} +1 -1
  195. package/dist/baloise-design-system/{p-62f6d6e101.system.entry.js → p-6ee0ee61c1.system.entry.js} +1 -1
  196. package/dist/baloise-design-system/{p-dc61e01d7b.entry.js → p-71162da762.entry.js} +1 -1
  197. package/dist/baloise-design-system/p-73fdcff369.entry.js +1 -0
  198. package/dist/baloise-design-system/{p-6c85b9106b.entry.js → p-774cad80b8.entry.js} +1 -1
  199. package/dist/baloise-design-system/p-7ab2e7b846.entry.js +1 -0
  200. package/dist/baloise-design-system/p-7afa264997.system.entry.js +1 -0
  201. package/dist/baloise-design-system/{p-270deaf56d.entry.js → p-7bd7839936.entry.js} +1 -1
  202. package/dist/baloise-design-system/{p-ea27183b2a.system.entry.js → p-7c074055e7.system.entry.js} +1 -1
  203. package/dist/baloise-design-system/{p-715f1670d4.entry.js → p-808cc1fd05.entry.js} +1 -1
  204. package/dist/baloise-design-system/p-857f898475.system.entry.js +1 -0
  205. package/dist/baloise-design-system/{p-48c06e18ca.system.entry.js → p-8723e490bf.system.entry.js} +1 -1
  206. package/dist/baloise-design-system/p-8869d8fe38.system.entry.js +1 -0
  207. package/dist/baloise-design-system/p-8f2e9a7f.js +1 -0
  208. package/dist/baloise-design-system/{p-fbc35458.js → p-8f2ebeb2.js} +1 -1
  209. package/dist/baloise-design-system/{p-6e5745c8.system.js → p-907368ff.system.js} +1 -1
  210. package/dist/baloise-design-system/{p-a7bbafcf3c.entry.js → p-93906ca075.entry.js} +1 -1
  211. package/dist/baloise-design-system/p-94b7fba934.entry.js +1 -0
  212. package/dist/baloise-design-system/p-9727e05e.system.js +1 -0
  213. package/dist/baloise-design-system/p-9a1a9c980a.entry.js +1 -0
  214. package/dist/baloise-design-system/{p-57777973d0.entry.js → p-9b542bd976.entry.js} +1 -1
  215. package/dist/baloise-design-system/{p-652816cc.system.js → p-9e489928.system.js} +1 -1
  216. package/dist/baloise-design-system/p-9ec2c3e050.entry.js +1 -0
  217. package/dist/baloise-design-system/p-9fbf3690.system.js +1 -0
  218. package/dist/baloise-design-system/p-a576a58b09.system.entry.js +1 -0
  219. package/dist/baloise-design-system/{p-d56a7e63df.system.entry.js → p-a5c70dd2dd.system.entry.js} +1 -1
  220. package/dist/baloise-design-system/{p-48a601d6f0.system.entry.js → p-a85fe6d188.system.entry.js} +1 -1
  221. package/dist/baloise-design-system/{p-d96cc18c2d.system.entry.js → p-a8eef09399.system.entry.js} +1 -1
  222. package/dist/baloise-design-system/{p-31443ba141.entry.js → p-aa2b2147a2.entry.js} +1 -1
  223. package/dist/baloise-design-system/p-afca130b59.system.entry.js +1 -0
  224. package/dist/baloise-design-system/p-afef265b5f.entry.js +1 -0
  225. package/dist/baloise-design-system/p-b21f2874.system.js +1 -0
  226. package/dist/baloise-design-system/{p-6d51888831.entry.js → p-b2e3f97a3f.entry.js} +1 -1
  227. package/dist/baloise-design-system/p-b51a692e99.entry.js +1 -0
  228. package/dist/baloise-design-system/p-b721864305.entry.js +1 -0
  229. package/dist/baloise-design-system/p-b726b9f4c9.entry.js +1 -0
  230. package/dist/baloise-design-system/p-bb308299af.entry.js +1 -0
  231. package/dist/baloise-design-system/{p-84a762f80d.entry.js → p-be02300bdd.entry.js} +1 -1
  232. package/dist/baloise-design-system/p-bf200caec0.entry.js +1 -0
  233. package/dist/baloise-design-system/p-c017695c41.entry.js +1 -0
  234. package/dist/baloise-design-system/p-c0461c69d6.entry.js +1 -0
  235. package/dist/baloise-design-system/p-c08cbae3ec.system.entry.js +1 -0
  236. package/dist/baloise-design-system/p-c0eefa4060.entry.js +1 -0
  237. package/dist/baloise-design-system/{p-e4c30a31a7.system.entry.js → p-c22c22090f.system.entry.js} +1 -1
  238. package/dist/baloise-design-system/p-c641bed817.entry.js +1 -0
  239. package/dist/baloise-design-system/p-c991d944.js +1 -1
  240. package/dist/baloise-design-system/{p-eaadfca758.entry.js → p-c9c007a260.entry.js} +1 -1
  241. package/dist/baloise-design-system/{p-8f1c2e77b6.entry.js → p-cca78c7a8e.entry.js} +1 -1
  242. package/dist/baloise-design-system/{p-dacc50ec18.entry.js → p-cf570c9464.entry.js} +1 -1
  243. package/dist/baloise-design-system/{p-54166d49.system.js → p-d5cb701b.system.js} +1 -1
  244. package/dist/baloise-design-system/{p-ce1ce7d198.system.entry.js → p-db9b4e132d.system.entry.js} +1 -1
  245. package/dist/baloise-design-system/{p-63b89f722f.system.entry.js → p-db9f48c0d5.system.entry.js} +1 -1
  246. package/dist/baloise-design-system/{p-9ba757663f.system.entry.js → p-dcb77164fc.system.entry.js} +1 -1
  247. package/dist/baloise-design-system/p-deaa160f21.system.entry.js +1 -0
  248. package/dist/baloise-design-system/p-e0a3b80c8c.system.entry.js +1 -0
  249. package/dist/baloise-design-system/p-e0b6c2eaf9.system.entry.js +1 -0
  250. package/dist/baloise-design-system/{p-fbc010987b.system.entry.js → p-e0c8d647b3.system.entry.js} +1 -1
  251. package/dist/baloise-design-system/p-e48a46d6d7.entry.js +1 -0
  252. package/dist/baloise-design-system/p-e4b50159.js +1 -0
  253. package/dist/baloise-design-system/{p-594112b9e7.system.entry.js → p-e4ff14c5bf.system.entry.js} +1 -1
  254. package/dist/baloise-design-system/p-e562e98c7e.system.entry.js +1 -0
  255. package/dist/baloise-design-system/{p-1e726ce985.system.entry.js → p-e6196821f7.system.entry.js} +1 -1
  256. package/dist/baloise-design-system/{p-aa125ebac6.system.entry.js → p-e63b388285.system.entry.js} +1 -1
  257. package/dist/baloise-design-system/{p-975634d334.system.entry.js → p-ebae74f9d4.system.entry.js} +1 -1
  258. package/dist/baloise-design-system/p-ec5776f5.js +1 -0
  259. package/dist/baloise-design-system/{p-aa101747b4.system.entry.js → p-eeb954c6bc.system.entry.js} +1 -1
  260. package/dist/baloise-design-system/p-f1849ab83d.entry.js +1 -0
  261. package/dist/baloise-design-system/p-f285a977e8.entry.js +1 -0
  262. package/dist/baloise-design-system/p-f4641c6a16.entry.js +1 -0
  263. package/dist/baloise-design-system/p-f55c127cb5.system.entry.js +1 -0
  264. package/dist/baloise-design-system/{p-5c0ac570ac.entry.js → p-f669df60fb.entry.js} +1 -1
  265. package/dist/baloise-design-system/{p-8d1dc2f0d6.system.entry.js → p-f6f93e74c1.system.entry.js} +1 -1
  266. package/dist/baloise-design-system/{p-9438e5c989.entry.js → p-f7e9758f60.entry.js} +1 -1
  267. package/dist/baloise-design-system/{p-195ee683.system.js → p-fa246bef.system.js} +1 -1
  268. package/dist/baloise-design-system/{p-717d8ea880.entry.js → p-fca0dcccde.entry.js} +1 -1
  269. package/dist/baloise-design-system/{p-5d0768fd46.system.entry.js → p-fe6d53dfdf.system.entry.js} +1 -1
  270. package/dist/baloise-design-system/{p-245629d7ca.system.entry.js → p-ff2a5eae24.system.entry.js} +1 -1
  271. package/dist/baloise-design-system/{p-4f74bac34b.system.entry.js → p-ff31e0e340.system.entry.js} +1 -1
  272. package/dist/baloise-design-system/p-ffe0476dde.entry.js +1 -0
  273. package/dist/cjs/app-globals-44d3a5af.js +7 -0
  274. package/dist/cjs/aria-7672033f.js +10 -0
  275. package/dist/cjs/{attributes-9f366716.js → attributes-11acd153.js} +1 -0
  276. package/dist/cjs/bal-accordion_4.cjs.entry.js +65 -3
  277. package/dist/cjs/bal-app.cjs.entry.js +2 -2
  278. package/dist/cjs/bal-badge.cjs.entry.js +1 -1
  279. package/dist/cjs/bal-button_2.cjs.entry.js +15 -5
  280. package/dist/cjs/bal-card_6.cjs.entry.js +7 -7
  281. package/dist/cjs/bal-carousel_2.cjs.entry.js +16 -10
  282. package/dist/cjs/bal-checkbox-button.cjs.entry.js +1 -1
  283. package/dist/cjs/bal-checkbox_2.cjs.entry.js +6 -6
  284. package/dist/cjs/bal-close.cjs.entry.js +2 -2
  285. package/dist/cjs/bal-content.cjs.entry.js +1 -1
  286. package/dist/cjs/bal-data_4.cjs.entry.js +4 -4
  287. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +2 -1
  288. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +7 -6
  289. package/dist/cjs/bal-date.cjs.entry.js +5 -4
  290. package/dist/cjs/bal-divider.cjs.entry.js +1 -1
  291. package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
  292. package/dist/cjs/bal-dropdown.cjs.entry.js +8 -8
  293. package/dist/cjs/bal-field_5.cjs.entry.js +11 -11
  294. package/dist/cjs/bal-file-upload.cjs.entry.js +6 -5
  295. package/dist/cjs/bal-footer.cjs.entry.js +4 -4
  296. package/dist/cjs/bal-form-col_2.cjs.entry.js +4 -4
  297. package/dist/cjs/bal-form.cjs.entry.js +2 -2
  298. package/dist/cjs/bal-heading_2.cjs.entry.js +3 -3
  299. package/dist/cjs/bal-hint_5.cjs.entry.js +9 -8
  300. package/dist/cjs/bal-icon.cjs.entry.js +3 -2
  301. package/dist/cjs/bal-input-group.cjs.entry.js +1 -1
  302. package/dist/cjs/bal-input-slider.cjs.entry.js +5 -4
  303. package/dist/cjs/bal-input-stepper.cjs.entry.js +6 -5
  304. package/dist/cjs/bal-input.cjs.entry.js +5 -4
  305. package/dist/cjs/bal-label.cjs.entry.js +2 -2
  306. package/dist/cjs/bal-list_8.cjs.entry.js +137 -19
  307. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  308. package/dist/cjs/bal-modal_3.cjs.entry.js +10 -9
  309. package/dist/cjs/bal-nav_8.cjs.entry.js +19 -19
  310. package/dist/cjs/bal-navbar_5.cjs.entry.js +61 -9
  311. package/dist/cjs/bal-notices_3.cjs.entry.js +3 -3
  312. package/dist/cjs/bal-notification.cjs.entry.js +1 -1
  313. package/dist/cjs/bal-number-input.cjs.entry.js +9 -7
  314. package/dist/cjs/bal-option_2.cjs.entry.js +5 -5
  315. package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
  316. package/dist/cjs/bal-popup.cjs.entry.js +2 -2
  317. package/dist/cjs/bal-progress-bar.cjs.entry.js +5 -5
  318. package/dist/cjs/bal-radio-button.cjs.entry.js +1 -1
  319. package/dist/cjs/bal-radio_2.cjs.entry.js +6 -5
  320. package/dist/cjs/bal-segment_2.cjs.entry.js +8 -8
  321. package/dist/cjs/bal-select_2.cjs.entry.js +8 -7
  322. package/dist/cjs/bal-shape.cjs.entry.js +5 -5
  323. package/dist/cjs/bal-sheet.cjs.entry.js +1 -1
  324. package/dist/cjs/bal-spinner.cjs.entry.js +1 -1
  325. package/dist/cjs/bal-stack.cjs.entry.js +1 -1
  326. package/dist/cjs/bal-stage_6.cjs.entry.js +8 -8
  327. package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
  328. package/dist/cjs/bal-steps.cjs.entry.js +4 -4
  329. package/dist/cjs/bal-tab-item_2.cjs.entry.js +13 -12
  330. package/dist/cjs/bal-table.cjs.entry.js +1 -1
  331. package/dist/cjs/bal-tag_2.cjs.entry.js +4 -3
  332. package/dist/cjs/bal-textarea.cjs.entry.js +4 -3
  333. package/dist/cjs/bal-time-input.cjs.entry.js +5 -4
  334. package/dist/cjs/bal-tooltip.cjs.entry.js +2 -2
  335. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  336. package/dist/cjs/{breakpoints.decorator-02f40938.js → breakpoints.decorator-f4800188.js} +1 -1
  337. package/dist/cjs/{breakpoints.subject-37ab025d.js → breakpoints.subject-3244205b.js} +1 -1
  338. package/dist/cjs/{floating-ui-3147d2ff.js → floating-ui-838f057c.js} +1 -1
  339. package/dist/cjs/{floating-ui.dom.esm-2ece9686.js → floating-ui.dom.esm-13e3f667.js} +205 -77
  340. package/dist/cjs/{form-2279fb2f.js → form-17c98ac2.js} +2 -2
  341. package/dist/cjs/{app-globals-fa3c14cc.js → global-872cca8d.js} +2 -4
  342. package/dist/cjs/index.cjs.js +4 -4
  343. package/dist/cjs/initialize-3059001f.js +1 -1
  344. package/dist/cjs/loader.cjs.js +3 -2
  345. package/dist/cjs/overlays-f6884b7e.js +367 -0
  346. package/dist/cjs/{swiper.util-9bad4b2d.js → swiper.util-62ca48ba.js} +8 -3
  347. package/dist/cjs/{tokens.esm-2b08bc6c.js → tokens.esm-b1eb9ac4.js} +1 -1
  348. package/dist/cjs/{window-resize.decorator-7153a9f2.js → window-resize.decorator-6133d79a.js} +1 -1
  349. package/dist/collection/collection-manifest.json +4 -3
  350. package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +1 -1
  351. package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +1 -1
  352. package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +56 -2
  353. package/dist/collection/components/bal-accordion/bal-accordion.i18n.js +42 -0
  354. package/dist/collection/components/bal-app/bal-app.js +2 -2
  355. package/dist/collection/components/bal-badge/bal-badge.js +1 -1
  356. package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +2 -2
  357. package/dist/collection/components/bal-button/bal-button.js +33 -3
  358. package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +1 -1
  359. package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +1 -1
  360. package/dist/collection/components/bal-card/bal-card-content/bal-card-content.js +1 -1
  361. package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +1 -1
  362. package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +1 -1
  363. package/dist/collection/components/bal-card/bal-card.js +2 -2
  364. package/dist/collection/components/bal-carousel/bal-carousel.css +1 -1
  365. package/dist/collection/components/bal-carousel/bal-carousel.js +31 -3
  366. package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +1 -1
  367. package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +2 -1
  368. package/dist/collection/components/bal-checkbox/bal-checkbox.js +1 -1
  369. package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -1
  370. package/dist/collection/components/bal-close/bal-close.css +1 -1
  371. package/dist/collection/components/bal-close/bal-close.js +1 -1
  372. package/dist/collection/components/bal-content/bal-content.js +1 -1
  373. package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +1 -1
  374. package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +1 -1
  375. package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +1 -1
  376. package/dist/collection/components/bal-data/bal-data.js +1 -1
  377. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.css +1 -1
  378. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +1 -1
  379. package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +2 -1
  380. package/dist/collection/components/bal-date/bal-date.js +2 -1
  381. package/dist/collection/components/bal-divider/bal-divider.js +1 -1
  382. package/dist/collection/components/bal-dropdown/bal-dropdown.js +2 -2
  383. package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +2 -2
  384. package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +1 -1
  385. package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +1 -1
  386. package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +2 -2
  387. package/dist/collection/components/bal-field/bal-field.css +1 -1
  388. package/dist/collection/components/bal-field/bal-field.js +3 -3
  389. package/dist/collection/components/bal-file-upload/bal-file-upload.js +5 -4
  390. package/dist/collection/components/bal-footer/bal-footer.css +1 -1
  391. package/dist/collection/components/bal-footer/bal-footer.js +3 -3
  392. package/dist/collection/components/bal-form/bal-form.js +1 -1
  393. package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +2 -2
  394. package/dist/collection/components/bal-form-grid/bal-form-grid.css +1 -1
  395. package/dist/collection/components/bal-form-grid/bal-form-grid.js +1 -1
  396. package/dist/collection/components/bal-heading/bal-heading.js +1 -1
  397. package/dist/collection/components/bal-hint/bal-hint-text/bal-hint-text.js +1 -1
  398. package/dist/collection/components/bal-hint/bal-hint-title/bal-hint-title.js +1 -1
  399. package/dist/collection/components/bal-icon/bal-icon.css +1 -1
  400. package/dist/collection/components/bal-icon/bal-icon.js +2 -1
  401. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +3 -2
  402. package/dist/collection/components/bal-input/bal-input.js +3 -2
  403. package/dist/collection/components/bal-input-group/bal-input-group.js +1 -1
  404. package/dist/collection/components/bal-input-slider/bal-input-slider.js +4 -3
  405. package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +4 -3
  406. package/dist/collection/components/bal-label/bal-label.js +1 -1
  407. package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +65 -7
  408. package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.i18n.js +42 -0
  409. package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +127 -3
  410. package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +2 -2
  411. package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +2 -2
  412. package/dist/collection/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.js +1 -1
  413. package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +1 -1
  414. package/dist/collection/components/bal-list/bal-list.js +1 -1
  415. package/dist/collection/components/bal-modal/bal-modal-body/bal-modal-body.js +1 -1
  416. package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
  417. package/dist/collection/components/bal-modal/bal-modal.css +1 -1
  418. package/dist/collection/components/bal-modal/bal-modal.js +27 -6
  419. package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +2 -2
  420. package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +1 -1
  421. package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +1 -1
  422. package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +1 -1
  423. package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +1 -1
  424. package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +1 -1
  425. package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +1 -1
  426. package/dist/collection/components/bal-nav/bal-nav.js +2 -2
  427. package/dist/collection/components/bal-nav/models/bal-nav-meta-button.js +6 -6
  428. package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.i18n.js +32 -0
  429. package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +93 -1
  430. package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +1 -1
  431. package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +1 -1
  432. package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +1 -1
  433. package/dist/collection/components/bal-navbar/bal-navbar.js +1 -1
  434. package/dist/collection/components/bal-notices/bal-notices.js +1 -1
  435. package/dist/collection/components/bal-notification/bal-notification.js +1 -1
  436. package/dist/collection/components/bal-number-input/bal-number-input.js +10 -8
  437. package/dist/collection/components/bal-option/bal-option.js +1 -1
  438. package/dist/collection/components/bal-option-list/bal-option-list.js +2 -1
  439. package/dist/collection/components/bal-pagination/bal-pagination.js +4 -4
  440. package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +1 -1
  441. package/dist/collection/components/bal-popover/bal-popover.js +3 -2
  442. package/dist/collection/components/bal-popup/bal-popup.js +1 -1
  443. package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +1 -1
  444. package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +1 -1
  445. package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +2 -1
  446. package/dist/collection/components/bal-radio/bal-radio.js +2 -1
  447. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +1 -1
  448. package/dist/collection/components/bal-segment/bal-segment.js +1 -1
  449. package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +1 -1
  450. package/dist/collection/components/bal-select/bal-select.js +6 -5
  451. package/dist/collection/components/bal-shape/bal-shape.js +4 -4
  452. package/dist/collection/components/bal-sheet/bal-sheet.js +1 -1
  453. package/dist/collection/components/bal-snackbar/bal-snackbar.js +1 -1
  454. package/dist/collection/components/bal-spinner/bal-spinner.js +1 -1
  455. package/dist/collection/components/bal-stack/bal-stack.js +1 -1
  456. package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +2 -2
  457. package/dist/collection/components/bal-stage/bal-stage-body/bal-stage-body.js +1 -1
  458. package/dist/collection/components/bal-stage/bal-stage-foot/bal-stage-foot.js +1 -1
  459. package/dist/collection/components/bal-stage/bal-stage-head/bal-stage-head.js +1 -1
  460. package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +1 -1
  461. package/dist/collection/components/bal-stage/bal-stage.js +1 -1
  462. package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +2 -2
  463. package/dist/collection/components/bal-steps/bal-steps.css +1 -1
  464. package/dist/collection/components/bal-table/bal-table.js +1 -1
  465. package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +2 -2
  466. package/dist/collection/components/bal-tabs/bal-tabs.css +1 -1
  467. package/dist/collection/components/bal-tabs/bal-tabs.js +2 -2
  468. package/dist/collection/components/bal-tabs/components/tab-button.js +3 -2
  469. package/dist/collection/components/bal-tag/bal-tag-group/bal-tag-group.js +1 -1
  470. package/dist/collection/components/bal-tag/bal-tag.js +2 -1
  471. package/dist/collection/components/bal-text/bal-text.js +2 -2
  472. package/dist/collection/components/bal-textarea/bal-textarea.js +2 -1
  473. package/dist/collection/components/bal-time-input/bal-time-input.css +1 -1
  474. package/dist/collection/components/bal-time-input/bal-time-input.js +2 -1
  475. package/dist/collection/components/bal-toast/bal-toast.js +1 -1
  476. package/dist/collection/components/bal-tooltip/bal-tooltip.js +1 -1
  477. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  478. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
  479. package/dist/collection/utils/aria.js +6 -1
  480. package/dist/collection/utils/attributes.js +1 -0
  481. package/dist/collection/utils/constants/version.constant.js +1 -1
  482. package/dist/collection/utils/dropdown/input.js +2 -2
  483. package/dist/collection/utils/form.js +2 -2
  484. package/dist/collection/utils/overlays/focus-trap.js +91 -0
  485. package/dist/collection/utils/overlays/overlays.js +193 -0
  486. package/dist/collection/utils/swiper/swiper.util.js +8 -3
  487. package/dist/esm/app-globals-c5ea8144.js +5 -0
  488. package/dist/esm/aria-ea150568.js +8 -0
  489. package/dist/esm/{attributes-4fa7040f.js → attributes-a3e70948.js} +1 -0
  490. package/dist/esm/bal-accordion_4.entry.js +65 -3
  491. package/dist/esm/bal-app.entry.js +2 -2
  492. package/dist/esm/bal-badge.entry.js +1 -1
  493. package/dist/esm/bal-button_2.entry.js +15 -5
  494. package/dist/esm/bal-card_6.entry.js +7 -7
  495. package/dist/esm/bal-carousel_2.entry.js +16 -10
  496. package/dist/esm/bal-checkbox-button.entry.js +1 -1
  497. package/dist/esm/bal-checkbox_2.entry.js +6 -6
  498. package/dist/esm/bal-close.entry.js +2 -2
  499. package/dist/esm/bal-content.entry.js +1 -1
  500. package/dist/esm/bal-data_4.entry.js +4 -4
  501. package/dist/esm/bal-date-calendar-cell.entry.js +2 -1
  502. package/dist/esm/bal-date-calendar_2.entry.js +7 -6
  503. package/dist/esm/bal-date.entry.js +5 -4
  504. package/dist/esm/bal-divider.entry.js +1 -1
  505. package/dist/esm/bal-doc-app.entry.js +229 -0
  506. package/dist/esm/bal-dropdown.entry.js +8 -8
  507. package/dist/esm/bal-field_5.entry.js +11 -11
  508. package/dist/esm/bal-file-upload.entry.js +6 -5
  509. package/dist/esm/bal-footer.entry.js +4 -4
  510. package/dist/esm/bal-form-col_2.entry.js +4 -4
  511. package/dist/esm/bal-form.entry.js +2 -2
  512. package/dist/esm/bal-heading_2.entry.js +3 -3
  513. package/dist/esm/bal-hint_5.entry.js +9 -8
  514. package/dist/esm/bal-icon.entry.js +3 -2
  515. package/dist/esm/bal-input-group.entry.js +1 -1
  516. package/dist/esm/bal-input-slider.entry.js +5 -4
  517. package/dist/esm/bal-input-stepper.entry.js +6 -5
  518. package/dist/esm/bal-input.entry.js +5 -4
  519. package/dist/esm/bal-label.entry.js +2 -2
  520. package/dist/esm/bal-list_8.entry.js +137 -19
  521. package/dist/esm/bal-logo.entry.js +3 -3
  522. package/dist/esm/bal-modal_3.entry.js +10 -9
  523. package/dist/esm/bal-nav_8.entry.js +19 -19
  524. package/dist/esm/bal-navbar_5.entry.js +61 -9
  525. package/dist/esm/bal-notices_3.entry.js +3 -3
  526. package/dist/esm/bal-notification.entry.js +1 -1
  527. package/dist/esm/bal-number-input.entry.js +9 -7
  528. package/dist/esm/bal-option_2.entry.js +5 -5
  529. package/dist/esm/bal-pagination.entry.js +7 -7
  530. package/dist/esm/bal-popup.entry.js +2 -2
  531. package/dist/esm/bal-progress-bar.entry.js +5 -5
  532. package/dist/esm/bal-radio-button.entry.js +1 -1
  533. package/dist/esm/bal-radio_2.entry.js +6 -5
  534. package/dist/esm/bal-segment_2.entry.js +8 -8
  535. package/dist/esm/bal-select_2.entry.js +8 -7
  536. package/dist/esm/bal-shape.entry.js +5 -5
  537. package/dist/esm/bal-sheet.entry.js +1 -1
  538. package/dist/esm/bal-spinner.entry.js +1 -1
  539. package/dist/esm/bal-stack.entry.js +1 -1
  540. package/dist/esm/bal-stage_6.entry.js +8 -8
  541. package/dist/esm/bal-step-item.entry.js +3 -3
  542. package/dist/esm/bal-steps.entry.js +4 -4
  543. package/dist/esm/bal-tab-item_2.entry.js +13 -12
  544. package/dist/esm/bal-table.entry.js +1 -1
  545. package/dist/esm/bal-tag_2.entry.js +4 -3
  546. package/dist/esm/bal-textarea.entry.js +4 -3
  547. package/dist/esm/bal-time-input.entry.js +5 -4
  548. package/dist/esm/bal-tooltip.entry.js +2 -2
  549. package/dist/esm/baloise-design-system.js +3 -2
  550. package/dist/esm/{breakpoints.decorator-fbc04097.js → breakpoints.decorator-43a5539d.js} +1 -1
  551. package/dist/esm/{breakpoints.subject-336f3c8b.js → breakpoints.subject-41117dc4.js} +1 -1
  552. package/dist/esm/{floating-ui-90bc6e58.js → floating-ui-d05a7ad6.js} +1 -1
  553. package/dist/esm/{floating-ui.dom.esm-8dcdb8d6.js → floating-ui.dom.esm-efb93616.js} +205 -77
  554. package/dist/esm/{form-fb8dd9f5.js → form-841232ff.js} +2 -2
  555. package/dist/esm/{app-globals-5b18a75c.js → global-181336dc.js} +2 -4
  556. package/dist/esm/index.js +5 -5
  557. package/dist/esm/initialize-66a526c0.js +1 -1
  558. package/dist/esm/loader.js +3 -2
  559. package/dist/esm/overlays-df27551b.js +360 -0
  560. package/dist/esm/{swiper.util-a4c7d0f9.js → swiper.util-9564f1e8.js} +8 -3
  561. package/dist/esm/{tokens.esm-d6bf7bd8.js → tokens.esm-376de6fe.js} +1 -1
  562. package/dist/esm/{window-resize.decorator-f894e34b.js → window-resize.decorator-66d8fd79.js} +1 -1
  563. package/dist/esm-es5/app-globals-c5ea8144.js +1 -0
  564. package/dist/esm-es5/aria-ea150568.js +1 -0
  565. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  566. package/dist/esm-es5/bal-app.entry.js +1 -1
  567. package/dist/esm-es5/bal-badge.entry.js +1 -1
  568. package/dist/esm-es5/bal-button_2.entry.js +1 -1
  569. package/dist/esm-es5/bal-card_6.entry.js +1 -1
  570. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  571. package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
  572. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  573. package/dist/esm-es5/bal-close.entry.js +1 -1
  574. package/dist/esm-es5/bal-content.entry.js +1 -1
  575. package/dist/esm-es5/bal-data_4.entry.js +1 -1
  576. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  577. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  578. package/dist/esm-es5/bal-date.entry.js +1 -1
  579. package/dist/esm-es5/bal-divider.entry.js +1 -1
  580. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  581. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  582. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  583. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  584. package/dist/esm-es5/bal-footer.entry.js +1 -1
  585. package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
  586. package/dist/esm-es5/bal-form.entry.js +1 -1
  587. package/dist/esm-es5/bal-heading_2.entry.js +1 -1
  588. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  589. package/dist/esm-es5/bal-icon.entry.js +1 -1
  590. package/dist/esm-es5/bal-input-group.entry.js +1 -1
  591. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  592. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  593. package/dist/esm-es5/bal-input.entry.js +1 -1
  594. package/dist/esm-es5/bal-label.entry.js +1 -1
  595. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  596. package/dist/esm-es5/bal-logo.entry.js +1 -1
  597. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  598. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  599. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  600. package/dist/esm-es5/bal-notices_3.entry.js +1 -1
  601. package/dist/esm-es5/bal-notification.entry.js +1 -1
  602. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  603. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  604. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  605. package/dist/esm-es5/bal-popup.entry.js +1 -1
  606. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  607. package/dist/esm-es5/bal-radio-button.entry.js +1 -1
  608. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  609. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  610. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  611. package/dist/esm-es5/bal-shape.entry.js +1 -1
  612. package/dist/esm-es5/bal-sheet.entry.js +1 -1
  613. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  614. package/dist/esm-es5/bal-stack.entry.js +1 -1
  615. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  616. package/dist/esm-es5/bal-step-item.entry.js +1 -1
  617. package/dist/esm-es5/bal-steps.entry.js +1 -1
  618. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  619. package/dist/esm-es5/bal-table.entry.js +1 -1
  620. package/dist/esm-es5/bal-tag_2.entry.js +1 -1
  621. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  622. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  623. package/dist/esm-es5/bal-tooltip.entry.js +1 -1
  624. package/dist/esm-es5/baloise-design-system.js +1 -1
  625. package/dist/esm-es5/{breakpoints.decorator-fbc04097.js → breakpoints.decorator-43a5539d.js} +1 -1
  626. package/dist/esm-es5/{breakpoints.subject-336f3c8b.js → breakpoints.subject-41117dc4.js} +1 -1
  627. package/dist/esm-es5/{floating-ui-90bc6e58.js → floating-ui-d05a7ad6.js} +1 -1
  628. package/dist/esm-es5/floating-ui.dom.esm-efb93616.js +1 -0
  629. package/dist/esm-es5/{form-fb8dd9f5.js → form-841232ff.js} +1 -1
  630. package/dist/esm-es5/global-181336dc.js +1 -0
  631. package/dist/esm-es5/index.js +1 -1
  632. package/dist/esm-es5/initialize-66a526c0.js +1 -1
  633. package/dist/esm-es5/loader.js +1 -1
  634. package/dist/esm-es5/overlays-df27551b.js +1 -0
  635. package/dist/esm-es5/swiper.util-9564f1e8.js +1 -0
  636. package/dist/esm-es5/{window-resize.decorator-f894e34b.js → window-resize.decorator-66d8fd79.js} +1 -1
  637. package/dist/html.html-data.json +31 -0
  638. package/dist/types/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.d.ts +10 -0
  639. package/dist/types/components/bal-accordion/bal-accordion.i18n.d.ts +7 -0
  640. package/dist/types/components/bal-button/bal-button.d.ts +4 -0
  641. package/dist/types/components/bal-button/bal-button.interfaces.d.ts +1 -0
  642. package/dist/types/components/bal-carousel/bal-carousel.d.ts +5 -0
  643. package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +14 -0
  644. package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.d.ts +33 -0
  645. package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.i18n.d.ts +7 -0
  646. package/dist/types/components/bal-modal/bal-modal.d.ts +18 -0
  647. package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.d.ts +14 -0
  648. package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.i18n.d.ts +5 -0
  649. package/dist/types/components/bal-number-input/bal-number-input.d.ts +5 -5
  650. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  651. package/dist/types/components.d.ts +88 -2
  652. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  653. package/dist/types/utils/aria.d.ts +1 -1
  654. package/dist/types/utils/attributes.d.ts +1 -0
  655. package/dist/types/utils/dropdown/input.d.ts +0 -1
  656. package/dist/types/utils/overlays/focus-trap.d.ts +36 -0
  657. package/dist/types/utils/overlays/overlays.d.ts +4 -0
  658. package/dist/types/utils/swiper/swiper.type.d.ts +1 -0
  659. package/dist/types/utils/swiper/swiper.util.d.ts +2 -2
  660. package/package.json +6 -8
  661. package/dist/baloise-design-system/p-007fc954.js +0 -1
  662. package/dist/baloise-design-system/p-0170c59c18.system.entry.js +0 -1
  663. package/dist/baloise-design-system/p-02c5d9fe7e.entry.js +0 -1
  664. package/dist/baloise-design-system/p-0932b2841b.system.entry.js +0 -1
  665. package/dist/baloise-design-system/p-1756cf373c.entry.js +0 -1
  666. package/dist/baloise-design-system/p-187f98a1.system.js +0 -1
  667. package/dist/baloise-design-system/p-18b510f972.entry.js +0 -1
  668. package/dist/baloise-design-system/p-1a91f0403a.system.entry.js +0 -1
  669. package/dist/baloise-design-system/p-1e9d6d442d.entry.js +0 -1
  670. package/dist/baloise-design-system/p-22bf3854a2.system.entry.js +0 -1
  671. package/dist/baloise-design-system/p-233258cd04.system.entry.js +0 -1
  672. package/dist/baloise-design-system/p-29e7d95fdf.entry.js +0 -1
  673. package/dist/baloise-design-system/p-2f3c628b01.system.entry.js +0 -1
  674. package/dist/baloise-design-system/p-32f2098f72.entry.js +0 -1
  675. package/dist/baloise-design-system/p-34797e19f0.system.entry.js +0 -1
  676. package/dist/baloise-design-system/p-36218e79.js +0 -1
  677. package/dist/baloise-design-system/p-38b11e34b4.system.entry.js +0 -1
  678. package/dist/baloise-design-system/p-3a7c9c15.js +0 -1
  679. package/dist/baloise-design-system/p-3b18905319.entry.js +0 -1
  680. package/dist/baloise-design-system/p-3fcdc7bf1d.entry.js +0 -1
  681. package/dist/baloise-design-system/p-403f40e26a.entry.js +0 -1
  682. package/dist/baloise-design-system/p-43078d9a20.entry.js +0 -1
  683. package/dist/baloise-design-system/p-444d11044c.system.entry.js +0 -1
  684. package/dist/baloise-design-system/p-4543306ed6.system.entry.js +0 -1
  685. package/dist/baloise-design-system/p-45bbf6330f.entry.js +0 -1
  686. package/dist/baloise-design-system/p-47660601a1.entry.js +0 -1
  687. package/dist/baloise-design-system/p-477a9f8a40.entry.js +0 -1
  688. package/dist/baloise-design-system/p-489cda24c4.system.entry.js +0 -1
  689. package/dist/baloise-design-system/p-4a614fb255.system.entry.js +0 -1
  690. package/dist/baloise-design-system/p-4dfdd589d8.system.entry.js +0 -1
  691. package/dist/baloise-design-system/p-513f6b88.js +0 -1
  692. package/dist/baloise-design-system/p-51e22c0c.js +0 -1
  693. package/dist/baloise-design-system/p-56d4310416.system.entry.js +0 -1
  694. package/dist/baloise-design-system/p-578047988c.system.entry.js +0 -1
  695. package/dist/baloise-design-system/p-5a3e5f6551.entry.js +0 -1
  696. package/dist/baloise-design-system/p-630b9272b1.entry.js +0 -1
  697. package/dist/baloise-design-system/p-725eed2595.entry.js +0 -1
  698. package/dist/baloise-design-system/p-72d3d56c55.entry.js +0 -1
  699. package/dist/baloise-design-system/p-732df3f390.system.entry.js +0 -1
  700. package/dist/baloise-design-system/p-759f25a3e5.entry.js +0 -1
  701. package/dist/baloise-design-system/p-7c76d17d2f.entry.js +0 -1
  702. package/dist/baloise-design-system/p-7e7d73b667.entry.js +0 -1
  703. package/dist/baloise-design-system/p-82ff80d9f0.entry.js +0 -1
  704. package/dist/baloise-design-system/p-89a8d47c12.entry.js +0 -1
  705. package/dist/baloise-design-system/p-8b0bd1adc7.entry.js +0 -1
  706. package/dist/baloise-design-system/p-8cb8360dcd.system.entry.js +0 -1
  707. package/dist/baloise-design-system/p-974e5cb5ec.system.entry.js +0 -1
  708. package/dist/baloise-design-system/p-9b6e9746c1.entry.js +0 -1
  709. package/dist/baloise-design-system/p-b2198343bf.entry.js +0 -1
  710. package/dist/baloise-design-system/p-c09a268beb.system.entry.js +0 -1
  711. package/dist/baloise-design-system/p-c2a4a78d58.system.entry.js +0 -1
  712. package/dist/baloise-design-system/p-cc899b3f92.entry.js +0 -1
  713. package/dist/baloise-design-system/p-d24c5aa8ad.entry.js +0 -1
  714. package/dist/baloise-design-system/p-d296994410.system.entry.js +0 -1
  715. package/dist/baloise-design-system/p-d404537f.system.js +0 -1
  716. package/dist/baloise-design-system/p-d5e8e2bec8.entry.js +0 -1
  717. package/dist/baloise-design-system/p-d9b38501.js +0 -1
  718. package/dist/baloise-design-system/p-d9bc111444.system.entry.js +0 -1
  719. package/dist/baloise-design-system/p-ddfbabb4d5.system.entry.js +0 -1
  720. package/dist/baloise-design-system/p-de59bd37.system.js +0 -1
  721. package/dist/baloise-design-system/p-e104ac3699.system.entry.js +0 -1
  722. package/dist/baloise-design-system/p-e2a70f10.system.js +0 -1
  723. package/dist/baloise-design-system/p-e5c0a1dbb2.entry.js +0 -1
  724. package/dist/baloise-design-system/p-e70c7951.system.js +0 -1
  725. package/dist/baloise-design-system/p-edd4a77fd5.system.entry.js +0 -1
  726. package/dist/baloise-design-system/p-f01ae7b55b.entry.js +0 -1
  727. package/dist/baloise-design-system/p-f8ab470d9d.system.entry.js +0 -1
  728. package/dist/baloise-design-system/p-fa43380807.system.entry.js +0 -1
  729. package/dist/baloise-design-system/p-ff859bec24.system.entry.js +0 -1
  730. package/dist/baloise-design-system/p-ffeef88a26.entry.js +0 -1
  731. package/dist/cjs/aria-c8955a5c.js +0 -5
  732. package/dist/cjs/overlays-81ea4414.js +0 -82
  733. package/dist/esm/aria-d5877698.js +0 -3
  734. package/dist/esm/overlays-9a5950bd.js +0 -76
  735. package/dist/esm-es5/app-globals-5b18a75c.js +0 -1
  736. package/dist/esm-es5/aria-d5877698.js +0 -1
  737. package/dist/esm-es5/floating-ui.dom.esm-8dcdb8d6.js +0 -1
  738. package/dist/esm-es5/overlays-9a5950bd.js +0 -1
  739. package/dist/esm-es5/swiper.util-a4c7d0f9.js +0 -1
  740. /package/dist/baloise-design-system/{p-dd5e13d1.js → p-063808d7.js} +0 -0
  741. /package/dist/baloise-design-system/{p-ca9e987e.js → p-6e1e6cc5.js} +0 -0
  742. /package/dist/baloise-design-system/{p-8949aa8b.system.js → p-7720b262.system.js} +0 -0
  743. /package/dist/baloise-design-system/{p-d1847366.system.js → p-b119ef19.system.js} +0 -0
  744. /package/dist/esm-es5/{attributes-4fa7040f.js → attributes-a3e70948.js} +0 -0
  745. /package/dist/esm-es5/{tokens.esm-d6bf7bd8.js → tokens.esm-376de6fe.js} +0 -0
@@ -0,0 +1,247 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import * as balIcons from "../../../../../../icons/src/index";
3
+ import { updateBalIcons } from "../../../utils/config";
4
+ import { balBrowser } from "../../../utils/browser";
5
+ import globalScript from "../../../global";
6
+ /**
7
+ * @internal
8
+ */
9
+ export class DocApp {
10
+ constructor() {
11
+ this.logComponents = '';
12
+ this.logLifecycle = true;
13
+ this.logEvents = true;
14
+ this.logRender = true;
15
+ this.logCustom = true;
16
+ this.stickyFooter = false;
17
+ this.region = undefined;
18
+ this.language = undefined;
19
+ this.animated = true;
20
+ }
21
+ connectedCallback() {
22
+ globalScript();
23
+ updateBalIcons(balIcons);
24
+ }
25
+ componentDidRender() {
26
+ const logConfig = {
27
+ components: this.logComponents
28
+ .split(',')
29
+ .map(c => c.trim())
30
+ .filter(c => c !== ''),
31
+ lifecycle: this.logLifecycle,
32
+ event: this.logEvents,
33
+ render: this.logRender,
34
+ custom: this.logCustom,
35
+ };
36
+ if (balBrowser.hasWindow) {
37
+ if (this.logComponents) {
38
+ ;
39
+ window.BaloiseDesignSystem.config.logger = logConfig;
40
+ }
41
+ if (this.region) {
42
+ ;
43
+ window.BaloiseDesignSystem.config.region = this.region;
44
+ }
45
+ if (this.language) {
46
+ ;
47
+ window.BaloiseDesignSystem.config.language = this.language;
48
+ }
49
+ }
50
+ }
51
+ render() {
52
+ return (h(Host, { key: '4b12119a66b0c5a70e512df42c10a71fe6f91e02' }, h("bal-app", { key: 'e1993ad8d9aad13abff747bbd198b6cf0f83452b', animated: this.animated }, h("div", { key: '065fcd36e50dd584628657b15e171686712819e3', class: { 'has-sticky-footer': this.stickyFooter } }, h("slot", { key: 'bdd49335612ea7960f3dda4f1ca2bbad68a527bf' })))));
53
+ }
54
+ static get is() { return "bal-doc-app"; }
55
+ static get originalStyleUrls() {
56
+ return {
57
+ "$": ["bal-doc-app.sass"]
58
+ };
59
+ }
60
+ static get styleUrls() {
61
+ return {
62
+ "$": ["bal-doc-app.css"]
63
+ };
64
+ }
65
+ static get properties() {
66
+ return {
67
+ "logComponents": {
68
+ "type": "string",
69
+ "mutable": false,
70
+ "complexType": {
71
+ "original": "string",
72
+ "resolved": "string",
73
+ "references": {}
74
+ },
75
+ "required": false,
76
+ "optional": false,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": ""
80
+ },
81
+ "getter": false,
82
+ "setter": false,
83
+ "attribute": "log-components",
84
+ "reflect": false,
85
+ "defaultValue": "''"
86
+ },
87
+ "logLifecycle": {
88
+ "type": "boolean",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "boolean",
92
+ "resolved": "boolean",
93
+ "references": {}
94
+ },
95
+ "required": false,
96
+ "optional": false,
97
+ "docs": {
98
+ "tags": [],
99
+ "text": ""
100
+ },
101
+ "getter": false,
102
+ "setter": false,
103
+ "attribute": "log-lifecycle",
104
+ "reflect": false,
105
+ "defaultValue": "true"
106
+ },
107
+ "logEvents": {
108
+ "type": "boolean",
109
+ "mutable": false,
110
+ "complexType": {
111
+ "original": "boolean",
112
+ "resolved": "boolean",
113
+ "references": {}
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": ""
120
+ },
121
+ "getter": false,
122
+ "setter": false,
123
+ "attribute": "log-events",
124
+ "reflect": false,
125
+ "defaultValue": "true"
126
+ },
127
+ "logRender": {
128
+ "type": "boolean",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "boolean",
132
+ "resolved": "boolean",
133
+ "references": {}
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": ""
140
+ },
141
+ "getter": false,
142
+ "setter": false,
143
+ "attribute": "log-render",
144
+ "reflect": false,
145
+ "defaultValue": "true"
146
+ },
147
+ "logCustom": {
148
+ "type": "boolean",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "boolean",
152
+ "resolved": "boolean",
153
+ "references": {}
154
+ },
155
+ "required": false,
156
+ "optional": false,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": ""
160
+ },
161
+ "getter": false,
162
+ "setter": false,
163
+ "attribute": "log-custom",
164
+ "reflect": false,
165
+ "defaultValue": "true"
166
+ },
167
+ "stickyFooter": {
168
+ "type": "boolean",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "boolean",
172
+ "resolved": "boolean",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": false,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ },
181
+ "getter": false,
182
+ "setter": false,
183
+ "attribute": "sticky-footer",
184
+ "reflect": false,
185
+ "defaultValue": "false"
186
+ },
187
+ "region": {
188
+ "type": "string",
189
+ "mutable": false,
190
+ "complexType": {
191
+ "original": "string",
192
+ "resolved": "string",
193
+ "references": {}
194
+ },
195
+ "required": false,
196
+ "optional": true,
197
+ "docs": {
198
+ "tags": [],
199
+ "text": ""
200
+ },
201
+ "getter": false,
202
+ "setter": false,
203
+ "attribute": "region",
204
+ "reflect": false
205
+ },
206
+ "language": {
207
+ "type": "string",
208
+ "mutable": false,
209
+ "complexType": {
210
+ "original": "string",
211
+ "resolved": "string",
212
+ "references": {}
213
+ },
214
+ "required": false,
215
+ "optional": true,
216
+ "docs": {
217
+ "tags": [],
218
+ "text": ""
219
+ },
220
+ "getter": false,
221
+ "setter": false,
222
+ "attribute": "language",
223
+ "reflect": false
224
+ },
225
+ "animated": {
226
+ "type": "boolean",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "boolean",
230
+ "resolved": "boolean",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Disables all animation inside the bal-app. Can be used for simplify e2e testing."
238
+ },
239
+ "getter": false,
240
+ "setter": false,
241
+ "attribute": "animated",
242
+ "reflect": true,
243
+ "defaultValue": "true"
244
+ }
245
+ };
246
+ }
247
+ }
@@ -1 +1,6 @@
1
- export const ariaBooleanToString = (bool) => (!!bool ? 'true' : 'false');
1
+ export const ariaBooleanToString = (value) => {
2
+ if (value === undefined || value === null) {
3
+ return undefined;
4
+ }
5
+ return !!value ? 'true' : 'false';
6
+ };
@@ -5,6 +5,7 @@ const trackingAttributes = ['data-tracking-style', 'data-tracking-topic', 'data-
5
5
  * the `title` attribute that developers set directly on `bal-input`. This
6
6
  * helper function should be called in componentWillLoad and assigned to a variable
7
7
  * that is later used in the render function.
8
+ * This function also removes the attribute from the parent when its set on child.
8
9
  *
9
10
  * This does not need to be reactive as changing attributes on the host element
10
11
  * does not trigger a re-render.
@@ -1,2 +1,2 @@
1
1
  // generated by .build/version.js
2
- export const VERSION = '17.3.0';
2
+ export const VERSION = '17.4.0-snapshot.1609-d2bcc38d3';
@@ -2,9 +2,9 @@ import { h } from "@stencil/core";
2
2
  import { BEM } from "../bem";
3
3
  import { i18nBalDropdown } from "./dropdown.i18n";
4
4
  import { ariaBooleanToString } from "../aria";
5
- export const DropdownInput = ({ name, inputId, httpFormSubmit, ariaForm, rawValue, autocomplete, required, disabled, readonly, placeholder, expanded, invalid, language, inputLabel, inheritedAttributes, refInputEl, onChange, onFocus, onBlur, onKeyDown, }) => {
5
+ export const DropdownInput = ({ inputId, httpFormSubmit, ariaForm, rawValue, autocomplete, required, disabled, readonly, placeholder, expanded, invalid, language, inputLabel, inheritedAttributes, refInputEl, onChange, onFocus, onBlur, onKeyDown, }) => {
6
6
  const block = BEM.block('dropdown');
7
- const Input = () => (h("input", Object.assign({ id: ariaForm.controlId || `${inputId}-ctrl`, class: Object.assign({}, block.element('root').element('input').class()), type: "text", size: 1, inputmode: "none", tabindex: "0", name: name, autoComplete: autocomplete, value: rawValue.join(','), required: required, disabled: disabled, readonly: readonly, placeholder: placeholder, title: expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-label": expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-owns": `${inputId}-menu`, "aria-invalid": ariaBooleanToString(invalid), "aria-disabled": ariaBooleanToString(disabled || readonly), "aria-labelledby": ariaForm.labelId, "aria-describedby": ariaForm.messageId, "aria-haspopup": 'listbox', "data-native": true, "data-label": inputLabel, "data-value": rawValue.join(','), ref: el => refInputEl(el), onChange: ev => onChange(ev), onFocus: ev => onFocus(ev), onBlur: ev => onBlur(ev), onKeyDown: ev => onKeyDown(ev) }, inheritedAttributes)));
7
+ const Input = () => (h("input", Object.assign({ id: ariaForm.controlId || `${inputId}-ctrl`, class: Object.assign({}, block.element('root').element('input').class()), type: "text", size: 1, inputmode: "none", tabindex: "0", autoComplete: autocomplete, value: rawValue.join(','), required: required, disabled: disabled, readonly: readonly, placeholder: placeholder, title: expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-label": expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-owns": `${inputId}-menu`, "aria-invalid": ariaBooleanToString(invalid), "aria-disabled": ariaBooleanToString(disabled || readonly), "aria-labelledby": ariaForm.labelId, "aria-describedby": ariaForm.messageId, "aria-haspopup": 'listbox', "data-native": true, "data-label": inputLabel, "data-value": rawValue.join(','), ref: el => refInputEl(el), onChange: ev => onChange(ev), onFocus: ev => onFocus(ev), onBlur: ev => onBlur(ev), onKeyDown: ev => onKeyDown(ev) }, inheritedAttributes)));
8
8
  if (httpFormSubmit) {
9
9
  return h(Input, null);
10
10
  }
@@ -12,8 +12,8 @@ export const scrollToFirstInvalidField = (options) => {
12
12
  }
13
13
  }
14
14
  };
15
- export const defaultBalAriaForm = {
15
+ export const defaultBalAriaForm = Object.freeze({
16
16
  controlId: undefined,
17
17
  labelId: undefined,
18
18
  messageId: undefined,
19
- };
19
+ });
@@ -0,0 +1,91 @@
1
+ /**
2
+ * This query string selects elements that
3
+ * are eligible to receive focus. We select
4
+ * interactive elements that meet the following
5
+ * criteria:
6
+ * 1. Element does not have a negative tabindex
7
+ * 2. Element does not have `hidden`
8
+ * 3. Element does not have `disabled` for non-Ionic components.
9
+ * 4. Element does not have `disabled` or `disabled="true"` for Ionic components.
10
+ * Note: We need this distinction because `disabled="false"` is
11
+ * valid usage for the disabled property on bal-button.
12
+ */
13
+ export const focusableQueryString = '[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .bal-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .bal-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])';
14
+ /**
15
+ * Focuses the first descendant in a context
16
+ * that can receive focus. If none exists,
17
+ * a fallback element will be focused.
18
+ * This fallback is typically an ancestor
19
+ * container such as a menu or overlay so focus does not
20
+ * leave the container we are trying to trap focus in.
21
+ *
22
+ * If no fallback is specified then we focus the container itself.
23
+ */
24
+ export const focusFirstDescendant = (ref, fallbackElement) => {
25
+ const firstInput = ref.querySelector(focusableQueryString);
26
+ focusElementInContext(firstInput, fallbackElement !== null && fallbackElement !== void 0 ? fallbackElement : ref);
27
+ };
28
+ /**
29
+ * Focuses the last descendant in a context
30
+ * that can receive focus. If none exists,
31
+ * a fallback element will be focused.
32
+ * This fallback is typically an ancestor
33
+ * container such as a menu or overlay so focus does not
34
+ * leave the container we are trying to trap focus in.
35
+ *
36
+ * If no fallback is specified then we focus the container itself.
37
+ */
38
+ export const focusLastDescendant = (ref, fallbackElement) => {
39
+ const inputs = Array.from(ref.querySelectorAll(focusableQueryString));
40
+ const lastInput = inputs.length > 0 ? inputs[inputs.length - 1] : null;
41
+ focusElementInContext(lastInput, fallbackElement !== null && fallbackElement !== void 0 ? fallbackElement : ref);
42
+ };
43
+ /**
44
+ * Focuses a particular element in a context. If the element
45
+ * doesn't have anything focusable associated with it then
46
+ * a fallback element will be focused.
47
+ *
48
+ * This fallback is typically an ancestor
49
+ * container such as a menu or overlay so focus does not
50
+ * leave the container we are trying to trap focus in.
51
+ * This should be used instead of the focus() method
52
+ * on most elements because the focusable element
53
+ * may not be the host element.
54
+ *
55
+ * For example, if an bal-button should be focused
56
+ * then we should actually focus the native <button>
57
+ * element inside of bal-button's shadow root, not
58
+ * the host element itself.
59
+ */
60
+ const focusElementInContext = (hostToFocus, fallbackElement) => {
61
+ let elementToFocus = hostToFocus;
62
+ const shadowRoot = hostToFocus === null || hostToFocus === void 0 ? void 0 : hostToFocus.shadowRoot;
63
+ if (shadowRoot) {
64
+ // If there are no inner focusable elements, just focus the host element.
65
+ elementToFocus = shadowRoot.querySelector(focusableQueryString) || hostToFocus;
66
+ }
67
+ if (elementToFocus) {
68
+ focusVisibleElement(elementToFocus);
69
+ }
70
+ else {
71
+ // Focus fallback element instead of letting focus escape
72
+ fallbackElement.focus();
73
+ }
74
+ };
75
+ export const focusVisibleElement = (el) => {
76
+ el.focus();
77
+ /**
78
+ * When programmatically focusing an element,
79
+ * the focus-visible utility will not run because
80
+ * it is expecting a keyboard event to have triggered this;
81
+ * however, there are times when we need to manually control
82
+ * this behavior so we call the `setFocus` method on bal-app
83
+ * which will let us explicitly set the elements to focus.
84
+ */
85
+ if (el.classList.contains('bal-focusable')) {
86
+ const app = el.closest('bal-app');
87
+ if (app) {
88
+ app.setFocus([el]);
89
+ }
90
+ }
91
+ };
@@ -1,5 +1,6 @@
1
1
  import { balBrowser } from "../browser";
2
2
  import { addEventListener, removeEventListener } from "../helpers";
3
+ import { focusableQueryString, focusFirstDescendant, focusLastDescendant, focusVisibleElement } from "./focus-trap";
3
4
  let lastId = 0;
4
5
  export const OVERLAY_BACK_BUTTON_PRIORITY = 100;
5
6
  export const MENU_BACK_BUTTON_PRIORITY = 99;
@@ -28,6 +29,9 @@ export const getOverlay = (doc, overlayTag, id) => {
28
29
  export const connectListeners = (doc) => {
29
30
  if (lastId === 0) {
30
31
  lastId = 1;
32
+ doc.addEventListener('focus', (ev) => {
33
+ trapKeyboardFocus(ev, doc);
34
+ }, true);
31
35
  // handle ESC to close overlay
32
36
  doc.addEventListener('keyup', ev => {
33
37
  if (ev.key === 'Escape') {
@@ -39,6 +43,166 @@ export const connectListeners = (doc) => {
39
43
  });
40
44
  }
41
45
  };
46
+ export const getPresentedOverlay = (doc, overlayTag, id) => {
47
+ const overlays = getPresentedOverlays(doc, overlayTag);
48
+ return id === undefined ? overlays[overlays.length - 1] : overlays.find(o => o.id === id);
49
+ };
50
+ const getPresentedOverlays = (doc, overlayTag) => {
51
+ return getOverlays(doc, overlayTag).filter(o => !isOverlayHidden(o));
52
+ };
53
+ const isOverlayHidden = (overlay) => overlay.classList.contains('is-hidden');
54
+ const trapKeyboardFocus = (ev, doc) => {
55
+ const lastOverlay = getPresentedOverlay(doc, 'bal-modal');
56
+ const target = ev.target;
57
+ /**
58
+ * If no active overlay, ignore this event.
59
+ *
60
+ * If this component uses the shadow dom,
61
+ * this global listener is pointless
62
+ * since it will not catch the focus
63
+ * traps as they are inside the shadow root.
64
+ * We need to add a listener to the shadow root
65
+ * itself to ensure the focus trap works.
66
+ */
67
+ if (!lastOverlay || !target) {
68
+ return;
69
+ }
70
+ const trapScopedFocus = () => {
71
+ /**
72
+ * If we are focusing the overlay, clear
73
+ * the last focused element so that hitting
74
+ * tab activates the first focusable element
75
+ * in the overlay wrapper.
76
+ */
77
+ if (lastOverlay === target) {
78
+ lastOverlay.lastFocus = undefined;
79
+ /**
80
+ * Toasts can be presented from an overlay.
81
+ * However, focus should still be returned to
82
+ * the overlay when clicking a toast. Normally,
83
+ * focus would be returned to the last focusable
84
+ * descendant in the overlay which may not always be
85
+ * the button that the toast was presented from. In this case,
86
+ * the focus may be returned to an unexpected element.
87
+ * To account for this, we make sure to return focus to the
88
+ * last focused element in the overlay if focus is
89
+ * moved to the toast.
90
+ */
91
+ }
92
+ else {
93
+ /**
94
+ * We do not want to focus the traps, so get the overlay
95
+ * wrapper element as the traps live outside of the wrapper.
96
+ */
97
+ const overlayRoot = lastOverlay;
98
+ const overlayWrapper = overlayRoot.querySelector('.bal-modal__container');
99
+ if (!overlayWrapper) {
100
+ return;
101
+ }
102
+ /**
103
+ * If the target is inside the wrapper, let the browser
104
+ * focus as normal and keep a log of the last focused element.
105
+ * Additionally, if the backdrop was tapped we should not
106
+ * move focus back inside the wrapper as that could cause
107
+ * an interactive elements focus state to activate.
108
+ */
109
+ if (overlayWrapper.contains(target) || target === overlayRoot.querySelector('bal-modal__background')) {
110
+ lastOverlay.lastFocus = target;
111
+ }
112
+ else {
113
+ /**
114
+ * Otherwise, we must have focused one of the focus traps.
115
+ * We need to wrap the focus to either the first element
116
+ * or the last element.
117
+ */
118
+ /**
119
+ * Once we call `focusFirstDescendant` and focus the first
120
+ * descendant, another focus event will fire which will
121
+ * cause `lastOverlay.lastFocus` to be updated before
122
+ * we can run the code after that. We will cache the value
123
+ * here to avoid that.
124
+ */
125
+ const lastFocus = lastOverlay.lastFocus;
126
+ // Focus the first element in the overlay wrapper
127
+ focusFirstDescendant(overlayWrapper, lastOverlay);
128
+ /**
129
+ * If the cached last focused element is the
130
+ * same as the active element, then we need
131
+ * to wrap focus to the last descendant. This happens
132
+ * when the first descendant is focused, and the user
133
+ * presses Shift + Tab. The previous line will focus
134
+ * the same descendant again (the first one), causing
135
+ * last focus to equal the active element.
136
+ */
137
+ if (lastFocus === doc.activeElement) {
138
+ focusLastDescendant(overlayWrapper, lastOverlay);
139
+ }
140
+ lastOverlay.lastFocus = doc.activeElement;
141
+ }
142
+ }
143
+ };
144
+ const trapShadowFocus = () => {
145
+ /**
146
+ * If the target is inside the wrapper, let the browser
147
+ * focus as normal and keep a log of the last focused element.
148
+ */
149
+ if (lastOverlay.contains(target)) {
150
+ lastOverlay.lastFocus = target;
151
+ /**
152
+ * Toasts can be presented from an overlay.
153
+ * However, focus should still be returned to
154
+ * the overlay when clicking a toast. Normally,
155
+ * focus would be returned to the last focusable
156
+ * descendant in the overlay which may not always be
157
+ * the button that the toast was presented from. In this case,
158
+ * the focus may be returned to an unexpected element.
159
+ * To account for this, we make sure to return focus to the
160
+ * last focused element in the overlay if focus is
161
+ * moved to the toast.
162
+ */
163
+ }
164
+ else if (target.tagName === 'BAL-TOAST') {
165
+ focusElementInOverlay(lastOverlay.lastFocus, lastOverlay);
166
+ }
167
+ else {
168
+ /**
169
+ * Otherwise, we are about to have focus
170
+ * go out of the overlay. We need to wrap
171
+ * the focus to either the first element
172
+ * or the last element.
173
+ */
174
+ /**
175
+ * Once we call `focusFirstDescendant` and focus the first
176
+ * descendant, another focus event will fire which will
177
+ * cause `lastOverlay.lastFocus` to be updated before
178
+ * we can run the code after that. We will cache the value
179
+ * here to avoid that.
180
+ */
181
+ const lastFocus = lastOverlay.lastFocus;
182
+ // Focus the first element in the overlay wrapper
183
+ focusFirstDescendant(lastOverlay);
184
+ /**
185
+ * If the cached last focused element is the
186
+ * same as the active element, then we need
187
+ * to wrap focus to the last descendant. This happens
188
+ * when the first descendant is focused, and the user
189
+ * presses Shift + Tab. The previous line will focus
190
+ * the same descendant again (the first one), causing
191
+ * last focus to equal the active element.
192
+ */
193
+ if (lastFocus === doc.activeElement) {
194
+ focusLastDescendant(lastOverlay);
195
+ }
196
+ lastOverlay.lastFocus = doc.activeElement;
197
+ }
198
+ };
199
+ if (lastOverlay.shadowRoot) {
200
+ trapShadowFocus();
201
+ }
202
+ else {
203
+ trapScopedFocus();
204
+ }
205
+ };
42
206
  export const dismiss = async (overlay, data, role, animation) => {
43
207
  if (!overlay.presented) {
44
208
  return false;
@@ -73,3 +237,32 @@ export const onceEvent = (element, eventName, callback) => {
73
237
  };
74
238
  addEventListener(element, eventName, handler);
75
239
  };
240
+ /**
241
+ * Focuses a particular element in an overlay. If the element
242
+ * doesn't have anything focusable associated with it then
243
+ * the overlay itself will be focused.
244
+ * This should be used instead of the focus() method
245
+ * on most elements because the focusable element
246
+ * may not be the host element.
247
+ *
248
+ * For example, if an bal-button should be focused
249
+ * then we should actually focus the native <button>
250
+ * element inside of bal-button's shadow root, not
251
+ * the host element itself.
252
+ */
253
+ const focusElementInOverlay = (hostToFocus, overlay) => {
254
+ let elementToFocus = hostToFocus;
255
+ const shadowRoot = hostToFocus === null || hostToFocus === void 0 ? void 0 : hostToFocus.shadowRoot;
256
+ if (shadowRoot) {
257
+ // If there are no inner focusable elements, just focus the host element.
258
+ elementToFocus = shadowRoot.querySelector(focusableQueryString) || hostToFocus;
259
+ }
260
+ if (elementToFocus) {
261
+ focusVisibleElement(elementToFocus);
262
+ }
263
+ else {
264
+ // Focus overlay instead of letting focus escape
265
+ overlay.focus();
266
+ }
267
+ };
268
+ export const FOCUS_TRAP_DISABLE_CLASS = 'bal-disable-focus-trap';
@@ -15,12 +15,12 @@ export class SwiperUtil {
15
15
  this.id = `bal-swiper-${SwiperIds++}`;
16
16
  this.containerId = `${this.id}-container`;
17
17
  this.index = 0;
18
- this.gapSize = 0;
19
18
  this.steps = 1;
20
19
  this.noNeedForControls = true;
21
20
  this.isLastSlideVisible = false;
22
21
  this.itemsPerView = 1;
23
22
  this.controls = 'none';
23
+ this.gapSpace = 'none';
24
24
  /**
25
25
  * EVENTS
26
26
  * ------------------------------------------------------
@@ -83,7 +83,7 @@ export class SwiperUtil {
83
83
  this.cssBlock = BEM.block('swiper');
84
84
  this.cssSwiper = () => (Object.assign({}, this.cssBlock.class(this.active)));
85
85
  this.cssInnerSwiper = () => (Object.assign(Object.assign(Object.assign(Object.assign({}, this.cssBlock.element('inner').class(this.active)), this.cssBlock.element('inner').modifier(`items-per-view-${this.itemsPerView}`).class(this.active)), this.cssBlock.element('inner').modifier(`shadow-left`).class(this.hasShadowLeft())), this.cssBlock.element('inner').modifier(`shadow-right`).class(this.hasShadowRight())));
86
- this.cssSwiperContainer = () => (Object.assign({}, this.cssBlock.element('container').class(this.active)));
86
+ this.cssSwiperContainer = () => (Object.assign(Object.assign({}, this.cssBlock.element('container').class(this.active)), this.cssBlock.element('container').modifier(`gap-${this.gapSpace}`).class(this.active)));
87
87
  /**
88
88
  * PUBLIC METHODS
89
89
  * ------------------------------------------------------
@@ -248,7 +248,12 @@ export class SwiperUtil {
248
248
  const items = this.component.swiperGetAllChildrenElements();
249
249
  const index = slideIndex === undefined ? this.lastIndex() : slideIndex;
250
250
  if (items.length > index && index >= 0) {
251
- const gapSize = this.gapSize;
251
+ const gaps = {
252
+ none: 0,
253
+ normal: 16,
254
+ medium: 24,
255
+ };
256
+ const gapSize = gaps[this.gapSpace];
252
257
  const transformNext = items
253
258
  .filter((_, n) => n < index + 1)
254
259
  .reduce((acc, item) => acc + getComputedWidth(item) + gapSize, 0);
@@ -0,0 +1,5 @@
1
+ import { g as globalScript } from './global-181336dc.js';
2
+
3
+ const globalScripts = globalScript;
4
+
5
+ export { globalScripts as g };
@@ -0,0 +1,8 @@
1
+ const ariaBooleanToString = (value) => {
2
+ if (value === undefined || value === null) {
3
+ return undefined;
4
+ }
5
+ return !!value ? 'true' : 'false';
6
+ };
7
+
8
+ export { ariaBooleanToString as a };
@@ -5,6 +5,7 @@ const trackingAttributes = ['data-tracking-style', 'data-tracking-topic', 'data-
5
5
  * the `title` attribute that developers set directly on `bal-input`. This
6
6
  * helper function should be called in componentWillLoad and assigned to a variable
7
7
  * that is later used in the render function.
8
+ * This function also removes the attribute from the parent when its set on child.
8
9
  *
9
10
  * This does not need to be reactive as changing attributes on the host element
10
11
  * does not trigger a re-render.