@baloise/ds-core 16.4.0 → 16.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/components/all.d.ts +4 -0
  2. package/components/all.js +6 -0
  3. package/components/bal-checkbox-group.js +8 -2
  4. package/components/bal-checkbox2.js +10 -3
  5. package/components/bal-content.js +1 -69
  6. package/{dist/esm/bal-content.entry.js → components/bal-content2.js} +31 -12
  7. package/components/bal-icon2.js +1 -1
  8. package/components/bal-label2.js +3 -2
  9. package/components/bal-progress-bar.js +23 -10
  10. package/components/bal-radio2.js +1 -1
  11. package/components/bal-segment-item.d.ts +11 -0
  12. package/components/bal-segment-item.js +203 -0
  13. package/components/bal-segment.d.ts +11 -0
  14. package/components/bal-segment.js +337 -0
  15. package/components/bal-stack2.js +1 -1
  16. package/components/breakpoints.subject.js +3 -3
  17. package/components/index.esm.js +25 -1
  18. package/components/index.js +1 -1
  19. package/components/tokens.esm.js +1 -1
  20. package/components/window-resize.decorator.js +46 -0
  21. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  22. package/dist/baloise-design-system/index.esm.js +1 -1
  23. package/dist/baloise-design-system/{p-e60c936359.system.entry.js → p-0530e008e9.system.entry.js} +1 -1
  24. package/dist/baloise-design-system/p-09ea5913.js +1 -0
  25. package/dist/baloise-design-system/p-0fb6cbda.system.js +1 -0
  26. package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
  27. package/dist/baloise-design-system/{p-b487614e8b.entry.js → p-190b5cd469.entry.js} +1 -1
  28. package/dist/baloise-design-system/{p-e18ec1401d.system.entry.js → p-23b7426d09.system.entry.js} +1 -1
  29. package/dist/baloise-design-system/p-265f9d51c9.system.entry.js +1 -0
  30. package/dist/baloise-design-system/{p-51c0348938.entry.js → p-2905abdfb8.entry.js} +1 -1
  31. package/dist/baloise-design-system/p-29ba4f9afe.system.entry.js +1 -0
  32. package/dist/baloise-design-system/{p-b069b55a8d.entry.js → p-2cd1f1dedb.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-f6599f64b7.entry.js → p-2db4ff4c5b.entry.js} +1 -1
  34. package/dist/baloise-design-system/{p-0295f5df96.entry.js → p-305cffd8aa.entry.js} +1 -1
  35. package/dist/baloise-design-system/{p-39bc49bc3d.entry.js → p-33028eda8b.entry.js} +1 -1
  36. package/dist/baloise-design-system/{p-c0f4b35c8c.system.entry.js → p-370575b8cb.system.entry.js} +1 -1
  37. package/dist/baloise-design-system/{p-95c6192efb.system.entry.js → p-372474e989.system.entry.js} +1 -1
  38. package/dist/baloise-design-system/{p-6d9afce4c2.entry.js → p-3801afd625.entry.js} +1 -1
  39. package/dist/baloise-design-system/p-380aabd5bc.entry.js +1 -0
  40. package/dist/baloise-design-system/{p-330b875d9d.system.entry.js → p-3818fa189f.system.entry.js} +1 -1
  41. package/dist/baloise-design-system/{p-68eead378f.entry.js → p-39bf8adcde.entry.js} +1 -1
  42. package/dist/baloise-design-system/p-3befc6f9.system.js +1 -0
  43. package/dist/baloise-design-system/{p-167594de04.entry.js → p-3c25811c44.entry.js} +1 -1
  44. package/dist/baloise-design-system/p-3eb68d7e.js +1 -0
  45. package/dist/baloise-design-system/{p-8754258843.entry.js → p-407ffd9c55.entry.js} +1 -1
  46. package/dist/baloise-design-system/p-445d2e1c70.system.entry.js +1 -0
  47. package/dist/baloise-design-system/{p-4afba8511a.system.entry.js → p-47a8ad4d7a.system.entry.js} +1 -1
  48. package/dist/baloise-design-system/{p-83ff83d0.system.js → p-4809d5c4.system.js} +1 -1
  49. package/dist/baloise-design-system/{p-19542d9bfc.system.entry.js → p-487816db33.system.entry.js} +1 -1
  50. package/dist/baloise-design-system/{p-976ed5bcf1.entry.js → p-488c4a8ce1.entry.js} +1 -1
  51. package/dist/baloise-design-system/{p-aee4ebe860.system.entry.js → p-4fe64c3ec6.system.entry.js} +1 -1
  52. package/dist/baloise-design-system/p-53e98a0f71.entry.js +1 -0
  53. package/dist/baloise-design-system/{p-cef24f8c62.entry.js → p-547aae9610.entry.js} +1 -1
  54. package/dist/baloise-design-system/p-54f81c32.js +1 -1
  55. package/dist/baloise-design-system/{p-6f4a362824.system.entry.js → p-5db0544e97.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-67e6932c19.entry.js → p-5fae3f5478.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-22b041a511.entry.js → p-6c2bf02eb3.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-a7c3119418.system.entry.js → p-6e3a79cce0.system.entry.js} +1 -1
  59. package/dist/baloise-design-system/p-71588db3.system.js +1 -0
  60. package/dist/baloise-design-system/{p-b779742f50.entry.js → p-77350b27fc.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-b33c021c08.entry.js → p-7c586fb89f.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-ba14aa7026.system.entry.js → p-8080a1192c.system.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-685405e0.system.js → p-88eb14fd.system.js} +1 -1
  64. package/dist/baloise-design-system/p-8de1a12660.entry.js +1 -0
  65. package/dist/baloise-design-system/{p-8870e1f3e0.system.entry.js → p-8e17b76e7c.system.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-b97d9336a7.system.entry.js → p-9bb8778cdc.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-8b6aca042a.system.entry.js → p-9f54cac588.system.entry.js} +1 -1
  68. package/dist/baloise-design-system/p-a507ff25cb.system.entry.js +1 -0
  69. package/dist/baloise-design-system/{p-ad00d94e7f.entry.js → p-a5ee486a2b.entry.js} +1 -1
  70. package/dist/baloise-design-system/p-a78d1ca569.system.entry.js +1 -0
  71. package/dist/baloise-design-system/p-b0c22ff9d1.entry.js +1 -0
  72. package/dist/baloise-design-system/{p-982fa892e8.system.entry.js → p-b8251b8f68.system.entry.js} +1 -1
  73. package/dist/baloise-design-system/p-b87c29c80b.entry.js +1 -0
  74. package/dist/baloise-design-system/p-bcca1ed3.system.js +1 -1
  75. package/dist/baloise-design-system/{p-098f268743.entry.js → p-bee13e834e.entry.js} +1 -1
  76. package/dist/baloise-design-system/p-c1c17f8edc.system.entry.js +1 -0
  77. package/dist/baloise-design-system/{p-3f1c49d0.js → p-caec1f9e.js} +1 -1
  78. package/dist/baloise-design-system/{p-45e0c0783b.entry.js → p-cafe624e35.entry.js} +1 -1
  79. package/dist/baloise-design-system/{p-2f4c6257f4.entry.js → p-cda868a6a5.entry.js} +1 -1
  80. package/dist/baloise-design-system/p-ced37553e2.entry.js +1 -0
  81. package/dist/baloise-design-system/{p-a52564d27f.system.entry.js → p-d059465399.system.entry.js} +1 -1
  82. package/dist/baloise-design-system/{p-44d845a857.system.entry.js → p-d3fabdb142.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-b397abec9a.system.entry.js → p-d7d6937d59.system.entry.js} +1 -1
  84. package/dist/baloise-design-system/{p-c92eb37957.system.entry.js → p-df40272425.system.entry.js} +1 -1
  85. package/dist/baloise-design-system/{p-e9c3c1c4cc.entry.js → p-e0384bfc0c.entry.js} +1 -1
  86. package/dist/baloise-design-system/{p-b0f4388e4c.system.entry.js → p-e137e273b7.system.entry.js} +1 -1
  87. package/dist/baloise-design-system/{p-55faac1d.system.js → p-e187b9de.system.js} +1 -1
  88. package/dist/baloise-design-system/{p-86b8ffa1ab.system.entry.js → p-e1ccb7023c.system.entry.js} +1 -1
  89. package/dist/baloise-design-system/p-e75ccb92.js +1 -0
  90. package/dist/baloise-design-system/{p-9e167705ca.entry.js → p-ecab0d67d5.entry.js} +1 -1
  91. package/dist/baloise-design-system/p-ef916aafa5.entry.js +1 -0
  92. package/dist/baloise-design-system/{p-544a0af68d.system.entry.js → p-f03e63bd1e.system.entry.js} +1 -1
  93. package/dist/baloise-design-system/{p-94efe2aa.js → p-f5940253.js} +1 -1
  94. package/dist/baloise-design-system/{p-3e8b5dec38.system.entry.js → p-f62d0ccdd1.system.entry.js} +1 -1
  95. package/dist/baloise-design-system/{p-e066dc532d.entry.js → p-f819d47031.entry.js} +1 -1
  96. package/dist/baloise-design-system/{p-d66c8f0da9.system.entry.js → p-fb0af77320.system.entry.js} +1 -1
  97. package/dist/cjs/bal-accordion_4.cjs.entry.js +1 -1
  98. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  99. package/dist/cjs/bal-checkbox_2.cjs.entry.js +4 -3
  100. package/dist/cjs/{bal-label.cjs.entry.js → bal-content_2.cjs.entry.js} +48 -2
  101. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +2 -2
  102. package/dist/cjs/bal-date.cjs.entry.js +2 -2
  103. package/dist/cjs/bal-datepicker.cjs.entry.js +4 -4
  104. package/dist/cjs/bal-dropdown.cjs.entry.js +1 -1
  105. package/dist/cjs/bal-file-upload.cjs.entry.js +1 -1
  106. package/dist/cjs/bal-footer.cjs.entry.js +1 -1
  107. package/dist/cjs/bal-hint_3.cjs.entry.js +3 -3
  108. package/dist/cjs/bal-icon.cjs.entry.js +1 -1
  109. package/dist/cjs/bal-input-stepper.cjs.entry.js +1 -1
  110. package/dist/cjs/bal-list_8.cjs.entry.js +4 -4
  111. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  112. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  113. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  114. package/dist/cjs/bal-number-input.cjs.entry.js +1 -1
  115. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  116. package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
  117. package/dist/cjs/bal-popup.cjs.entry.js +1 -1
  118. package/dist/cjs/bal-progress-bar.cjs.entry.js +27 -15
  119. package/dist/cjs/bal-radio_2.cjs.entry.js +2 -2
  120. package/dist/cjs/bal-segment-item.cjs.entry.js +156 -0
  121. package/dist/cjs/bal-segment.cjs.entry.js +319 -0
  122. package/dist/cjs/bal-select_2.cjs.entry.js +1 -1
  123. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  124. package/dist/cjs/bal-stack.cjs.entry.js +1 -1
  125. package/dist/cjs/bal-steps.cjs.entry.js +4 -4
  126. package/dist/cjs/bal-tab-item_2.cjs.entry.js +4 -4
  127. package/dist/cjs/baloise-design-system.cjs.js +1 -1
  128. package/dist/cjs/{breakpoints.decorator-e278a735.js → breakpoints.decorator-a4a5bd7a.js} +1 -1
  129. package/dist/cjs/{breakpoints.subject-0802767f.js → breakpoints.subject-fbf85930.js} +4 -4
  130. package/dist/cjs/{date-3e33b208.js → date-20be7524.js} +1 -1
  131. package/dist/cjs/index.cjs.js +4 -4
  132. package/dist/cjs/{index.esm-4587dbf0.js → index.esm-54a3d84e.js} +28 -0
  133. package/dist/cjs/initialize-2a19d091.js +1 -1
  134. package/dist/cjs/loader.cjs.js +1 -1
  135. package/dist/cjs/{tokens.esm-be397f27.js → tokens.esm-aa4bb7f7.js} +1 -1
  136. package/dist/cjs/window-resize.decorator-c7a521b0.js +48 -0
  137. package/dist/collection/collection-manifest.json +2 -0
  138. package/dist/collection/components/bal-checkbox/bal-checkbox.js +2 -1
  139. package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -1
  140. package/dist/collection/components/bal-content/bal-content.css +1 -1
  141. package/dist/collection/components/bal-content/bal-content.js +1 -1
  142. package/dist/collection/components/bal-icon/bal-icon.css +1 -1
  143. package/dist/collection/components/bal-label/bal-label.js +20 -2
  144. package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +23 -10
  145. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.css +1 -0
  146. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +332 -0
  147. package/dist/collection/components/bal-segment/bal-segment.css +1 -0
  148. package/dist/collection/components/bal-segment/bal-segment.interfaces.js +4 -0
  149. package/dist/collection/components/bal-segment/bal-segment.js +537 -0
  150. package/dist/collection/components/bal-segment/bal-segment.types.js +1 -0
  151. package/dist/collection/components/bal-stack/bal-stack.css +1 -1
  152. package/dist/collection/utils/constants/version.constant.js +1 -1
  153. package/dist/collection/utils/resize/index.js +4 -1
  154. package/dist/collection/utils/resize/window-resize.decorator.js +20 -0
  155. package/dist/collection/utils/resize/window-resize.interfaces.js +1 -0
  156. package/dist/collection/utils/resize/window-resize.listener.js +3 -3
  157. package/dist/collection/utils/resize/window-resize.subject.js +23 -0
  158. package/dist/esm/bal-accordion_4.entry.js +1 -1
  159. package/dist/esm/bal-carousel_2.entry.js +3 -3
  160. package/dist/esm/bal-checkbox_2.entry.js +4 -3
  161. package/dist/esm/{bal-label.entry.js → bal-content_2.entry.js} +48 -3
  162. package/dist/esm/bal-date-calendar_2.entry.js +2 -2
  163. package/dist/esm/bal-date.entry.js +2 -2
  164. package/dist/esm/bal-datepicker.entry.js +4 -4
  165. package/dist/esm/bal-dropdown.entry.js +1 -1
  166. package/dist/esm/bal-file-upload.entry.js +1 -1
  167. package/dist/esm/bal-footer.entry.js +1 -1
  168. package/dist/esm/bal-hint_3.entry.js +3 -3
  169. package/dist/esm/bal-icon.entry.js +1 -1
  170. package/dist/esm/bal-input-stepper.entry.js +1 -1
  171. package/dist/esm/bal-list_8.entry.js +4 -4
  172. package/dist/esm/bal-logo.entry.js +3 -3
  173. package/dist/esm/bal-nav_8.entry.js +3 -3
  174. package/dist/esm/bal-navbar_5.entry.js +3 -3
  175. package/dist/esm/bal-number-input.entry.js +1 -1
  176. package/dist/esm/bal-pagination.entry.js +3 -3
  177. package/dist/esm/bal-popover_2.entry.js +3 -3
  178. package/dist/esm/bal-popup.entry.js +1 -1
  179. package/dist/esm/bal-progress-bar.entry.js +27 -15
  180. package/dist/esm/bal-radio_2.entry.js +2 -2
  181. package/dist/esm/bal-segment-item.entry.js +152 -0
  182. package/dist/esm/bal-segment.entry.js +315 -0
  183. package/dist/esm/bal-select_2.entry.js +1 -1
  184. package/dist/esm/bal-shape.entry.js +1 -1
  185. package/dist/esm/bal-stack.entry.js +1 -1
  186. package/dist/esm/bal-steps.entry.js +4 -4
  187. package/dist/esm/bal-tab-item_2.entry.js +4 -4
  188. package/dist/esm/baloise-design-system.js +1 -1
  189. package/dist/esm/{breakpoints.decorator-d0f1affe.js → breakpoints.decorator-f2ac9963.js} +1 -1
  190. package/dist/esm/{breakpoints.subject-f57eda2c.js → breakpoints.subject-3605e395.js} +4 -4
  191. package/dist/esm/{date-38a0b208.js → date-aba2d404.js} +1 -1
  192. package/dist/esm/{index.esm-83b1f9c4.js → index.esm-76abd8e3.js} +25 -1
  193. package/dist/esm/index.js +5 -5
  194. package/dist/esm/initialize-e216cfe4.js +1 -1
  195. package/dist/esm/loader.js +1 -1
  196. package/dist/esm/{tokens.esm-70c16b84.js → tokens.esm-337782ae.js} +1 -1
  197. package/dist/esm/window-resize.decorator-d5198831.js +46 -0
  198. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  199. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  200. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  201. package/dist/esm-es5/bal-content_2.entry.js +1 -0
  202. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  203. package/dist/esm-es5/bal-date.entry.js +1 -1
  204. package/dist/esm-es5/bal-datepicker.entry.js +1 -1
  205. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  206. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  207. package/dist/esm-es5/bal-footer.entry.js +1 -1
  208. package/dist/esm-es5/bal-hint_3.entry.js +1 -1
  209. package/dist/esm-es5/bal-icon.entry.js +1 -1
  210. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  211. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  212. package/dist/esm-es5/bal-logo.entry.js +1 -1
  213. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  214. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  215. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  216. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  217. package/dist/esm-es5/bal-popover_2.entry.js +1 -1
  218. package/dist/esm-es5/bal-popup.entry.js +1 -1
  219. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  220. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  221. package/dist/esm-es5/bal-segment-item.entry.js +1 -0
  222. package/dist/esm-es5/bal-segment.entry.js +1 -0
  223. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  224. package/dist/esm-es5/bal-shape.entry.js +1 -1
  225. package/dist/esm-es5/bal-stack.entry.js +1 -1
  226. package/dist/esm-es5/bal-steps.entry.js +1 -1
  227. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  228. package/dist/esm-es5/baloise-design-system.js +1 -1
  229. package/dist/esm-es5/{breakpoints.decorator-d0f1affe.js → breakpoints.decorator-f2ac9963.js} +1 -1
  230. package/dist/esm-es5/breakpoints.subject-3605e395.js +1 -0
  231. package/dist/esm-es5/{date-38a0b208.js → date-aba2d404.js} +1 -1
  232. package/dist/esm-es5/{index.esm-83b1f9c4.js → index.esm-76abd8e3.js} +1 -1
  233. package/dist/esm-es5/index.js +1 -1
  234. package/dist/esm-es5/initialize-e216cfe4.js +1 -1
  235. package/dist/esm-es5/loader.js +1 -1
  236. package/dist/esm-es5/window-resize.decorator-d5198831.js +1 -0
  237. package/dist/html.html-data.json +80 -0
  238. package/dist/types/components/bal-content/bal-content.interfaces.d.ts +1 -1
  239. package/dist/types/components/bal-icon/bal-icon.interfaces.d.ts +1 -1
  240. package/dist/types/components/bal-label/bal-label.d.ts +4 -1
  241. package/dist/types/components/bal-progress-bar/bal-progress-bar.d.ts +3 -1
  242. package/dist/types/components/bal-segment/bal-segment-item/bal-segment-item.d.ts +62 -0
  243. package/dist/types/components/bal-segment/bal-segment.d.ts +111 -0
  244. package/dist/types/components/bal-segment/bal-segment.interfaces.d.ts +20 -0
  245. package/dist/types/components/bal-segment/bal-segment.types.d.ts +1 -0
  246. package/dist/types/components.d.ts +164 -0
  247. package/dist/types/interfaces.d.ts +1 -0
  248. package/dist/types/utils/resize/index.d.ts +4 -1
  249. package/dist/types/utils/resize/window-resize.decorator.d.ts +3 -0
  250. package/dist/types/utils/resize/window-resize.interfaces.d.ts +5 -0
  251. package/dist/types/utils/resize/window-resize.listener.d.ts +1 -1
  252. package/dist/types/utils/resize/window-resize.subject.d.ts +9 -0
  253. package/package.json +8 -8
  254. package/dist/baloise-design-system/p-0d69371467.entry.js +0 -1
  255. package/dist/baloise-design-system/p-126c79c9e9.system.entry.js +0 -1
  256. package/dist/baloise-design-system/p-2d8bd11634.entry.js +0 -1
  257. package/dist/baloise-design-system/p-77ccb1f4.system.js +0 -1
  258. package/dist/baloise-design-system/p-88493e9537.system.entry.js +0 -1
  259. package/dist/baloise-design-system/p-886bedebf9.entry.js +0 -1
  260. package/dist/baloise-design-system/p-8a87b9a8.system.js +0 -1
  261. package/dist/baloise-design-system/p-c69783ee18.entry.js +0 -1
  262. package/dist/baloise-design-system/p-d585a3ad56.system.entry.js +0 -1
  263. package/dist/baloise-design-system/p-e71a27141c.entry.js +0 -1
  264. package/dist/baloise-design-system/p-e851f284.js +0 -1
  265. package/dist/baloise-design-system/p-e93d9571f5.system.entry.js +0 -1
  266. package/dist/baloise-design-system/p-ecd39e3bec.entry.js +0 -1
  267. package/dist/baloise-design-system/p-f076d1ed4f.system.entry.js +0 -1
  268. package/dist/baloise-design-system/p-f7091a61.js +0 -1
  269. package/dist/cjs/bal-content.cjs.entry.js +0 -56
  270. package/dist/esm-es5/bal-content.entry.js +0 -1
  271. package/dist/esm-es5/bal-label.entry.js +0 -1
  272. package/dist/esm-es5/breakpoints.subject-f57eda2c.js +0 -1
  273. /package/dist/baloise-design-system/{p-83486137.system.js → p-36074466.system.js} +0 -0
  274. /package/dist/baloise-design-system/{p-ec4875a2.js → p-e1994e2c.js} +0 -0
  275. /package/dist/esm-es5/{tokens.esm-70c16b84.js → tokens.esm-337782ae.js} +0 -0
@@ -0,0 +1,537 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { h, Host, writeTask, } from "@stencil/core";
3
+ import { BEM } from "../../utils/bem";
4
+ import { Logger } from "../../utils/log";
5
+ import { isArrowDownKey, isArrowUpKey, isSpaceKey, isHomeKey, isEndKey, isArrowLeftKey, isArrowRightKey, } from "@baloise/web-app-utils";
6
+ import { stopEventBubbling } from "../../utils/form-input";
7
+ import { FOCUS_KEYS } from "../../utils/focus-visible";
8
+ import { ListenToWindowResize } from "../../utils/resize";
9
+ import { raf } from "../../utils/helpers";
10
+ import { ListenToBreakpoints } from "../../utils/breakpoints";
11
+ export class Segment {
12
+ constructor() {
13
+ this.getSegmentItem = (selector) => {
14
+ var _a, _b;
15
+ const items = this.items.filter(item => !item.disabled);
16
+ const currIndex = items.findIndex(item => item === document.activeElement.closest('bal-segment-item'));
17
+ switch (selector) {
18
+ case 'current':
19
+ return items[currIndex];
20
+ case 'first':
21
+ return items[0];
22
+ case 'last':
23
+ return items[items.length - 1];
24
+ case 'next':
25
+ return (_a = items[currIndex + 1]) !== null && _a !== void 0 ? _a : items[0];
26
+ case 'previous':
27
+ return (_b = items[currIndex - 1]) !== null && _b !== void 0 ? _b : items[items.length - 1];
28
+ default:
29
+ return null;
30
+ }
31
+ };
32
+ /**
33
+ * PRIVATE EVENT HANDLERS
34
+ * ------------------------------------------------------
35
+ */
36
+ this.onPointerDown = () => {
37
+ this.keyboardMode = false;
38
+ };
39
+ this.onSlottedItemsChange = () => {
40
+ /**
41
+ * When the slotted segment buttons change we need to
42
+ * ensure that the new segment buttons are checked if
43
+ * the value matches the segment button value.
44
+ */
45
+ this.valueChanged(this.value);
46
+ this.defineWidth();
47
+ };
48
+ this.onClick = (ev) => {
49
+ if (this.disabled) {
50
+ return;
51
+ }
52
+ const current = ev.target;
53
+ const previous = this.checked;
54
+ // If the current element is a segment then that means
55
+ // the user tried to swipe to a segment button and
56
+ // click a segment button at the same time so we should
57
+ // not update the checked segment button
58
+ if (current.tagName === 'BAL-SEGMENT') {
59
+ return;
60
+ }
61
+ if (current && current.setFocus) {
62
+ current.setFocus();
63
+ }
64
+ if (previous) {
65
+ this.checkButton(previous, current);
66
+ }
67
+ else {
68
+ this.setCheckedClasses();
69
+ this.checkButton(current, current);
70
+ }
71
+ if (current !== previous) {
72
+ this.emitValueChange();
73
+ }
74
+ };
75
+ this.focusedValue = undefined;
76
+ this.keyboardMode = true;
77
+ this.isVertical = false;
78
+ this.isMobile = false;
79
+ this.maxWidth = 0;
80
+ this.invalid = false;
81
+ this.disabled = false;
82
+ this.vertical = false;
83
+ this.scrollable = false;
84
+ this.expanded = false;
85
+ this.value = undefined;
86
+ }
87
+ createLogger(log) {
88
+ this.log = log;
89
+ }
90
+ valueChanged(value) {
91
+ /**
92
+ * `balSelect` is emitted every time the value changes (internal or external changes).
93
+ * Used by `bal-segment-item` to determine if the button should be checked.
94
+ */
95
+ this.balSelect.emit(value);
96
+ }
97
+ /**
98
+ * LIFECYCLE
99
+ * ------------------------------------------------------
100
+ */
101
+ connectedCallback() {
102
+ this.el.addEventListener('touchstart', this.onPointerDown);
103
+ this.el.addEventListener('mousedown', this.onPointerDown);
104
+ }
105
+ disconnectedCallback() {
106
+ this.el.removeEventListener('touchstart', this.onPointerDown);
107
+ this.el.removeEventListener('mousedown', this.onPointerDown);
108
+ }
109
+ async componentDidLoad() {
110
+ this.setCheckedClasses();
111
+ this.defineWidth();
112
+ }
113
+ /**
114
+ * LISTENERS
115
+ * ------------------------------------------------------
116
+ */
117
+ breakpointListener(breakpoints) {
118
+ this.isMobile = breakpoints.mobile;
119
+ }
120
+ windowResizeListener() {
121
+ if (this.vertical === false && this.maxWidth > 0) {
122
+ const parent = this.el.parentElement.getBoundingClientRect();
123
+ if (parent.width < this.maxWidth) {
124
+ //
125
+ // element in horizontal is to big
126
+ this.emitVerticalChange(true);
127
+ }
128
+ else {
129
+ //
130
+ // element has enough space in parent element
131
+ this.emitVerticalChange(false);
132
+ }
133
+ }
134
+ else {
135
+ this.emitVerticalChange(true);
136
+ }
137
+ }
138
+ listenOnBalBlur(ev) {
139
+ stopEventBubbling(ev);
140
+ this.balBlur.emit(ev.detail);
141
+ }
142
+ listenOnKeyDown(ev) {
143
+ this.keyboardMode = FOCUS_KEYS.includes(ev.key);
144
+ let current;
145
+ if (isSpaceKey(ev)) {
146
+ stopEventBubbling(ev);
147
+ current = this.getSegmentItem('current');
148
+ }
149
+ else if (isArrowUpKey(ev) || isArrowLeftKey(ev)) {
150
+ stopEventBubbling(ev);
151
+ current = this.getSegmentItem('previous');
152
+ }
153
+ else if (isArrowDownKey(ev) || isArrowRightKey(ev)) {
154
+ stopEventBubbling(ev);
155
+ current = this.getSegmentItem('next');
156
+ }
157
+ else if (isHomeKey(ev)) {
158
+ stopEventBubbling(ev);
159
+ current = this.getSegmentItem('first');
160
+ }
161
+ else if (isEndKey(ev)) {
162
+ stopEventBubbling(ev);
163
+ current = this.getSegmentItem('last');
164
+ }
165
+ if (!current) {
166
+ return;
167
+ }
168
+ const previous = this.checked;
169
+ if (current !== previous) {
170
+ this.checkButton(previous, current);
171
+ this.emitValueChange();
172
+ }
173
+ if (current) {
174
+ current.setFocus();
175
+ }
176
+ }
177
+ /**
178
+ * GETTERS
179
+ * ------------------------------------------------------
180
+ */
181
+ get items() {
182
+ return Array.from(this.el.querySelectorAll('bal-segment-item'));
183
+ }
184
+ get checked() {
185
+ return this.items.find(item => item.value === this.value);
186
+ }
187
+ /**
188
+ * PRIVATE METHODS
189
+ * ------------------------------------------------------
190
+ */
191
+ emitValueChange() {
192
+ this.balChange.emit(this.value);
193
+ }
194
+ emitVerticalChange(isVertical) {
195
+ if (this.isVertical !== isVertical) {
196
+ this.isVertical = isVertical;
197
+ this.balVertical.emit(this.isVertical);
198
+ }
199
+ }
200
+ defineWidth() {
201
+ raf(() => {
202
+ if (this.isVertical === false) {
203
+ const childRect = this.el.getBoundingClientRect();
204
+ this.maxWidth = childRect.width;
205
+ }
206
+ this.windowResizeListener();
207
+ });
208
+ }
209
+ getIndicator(item) {
210
+ const root = item.shadowRoot || item;
211
+ return root.querySelector('.bal-segment-item__indicator');
212
+ }
213
+ checkButton(previous, current) {
214
+ const previousIndicator = this.getIndicator(previous);
215
+ const currentIndicator = this.getIndicator(current);
216
+ if (previousIndicator === null || currentIndicator === null) {
217
+ return;
218
+ }
219
+ const previousClientRect = previousIndicator.getBoundingClientRect();
220
+ const currentClientRect = currentIndicator.getBoundingClientRect();
221
+ const widthDelta = previousClientRect.width / currentClientRect.width;
222
+ const xPosition = previousClientRect.left - currentClientRect.left;
223
+ // Scale the indicator width to match the previous indicator width
224
+ // and translate it on top of the previous indicator
225
+ let transform = `translate3d(${xPosition}px, 0, 0) scaleX(${widthDelta})`;
226
+ if (this.isVertical) {
227
+ const heightDelta = previousClientRect.height / currentClientRect.height;
228
+ const yPosition = previousClientRect.top - currentClientRect.top;
229
+ // Scale the indicator width to match the previous indicator width
230
+ // and translate it on top of the previous indicator
231
+ transform = `translate3d(0, ${yPosition}px, 0) scaleY(${heightDelta})`;
232
+ }
233
+ writeTask(() => {
234
+ // Remove the transition before positioning on top of the previous indicator
235
+ currentIndicator.classList.remove('bal-segment-item__indicator--animated');
236
+ currentIndicator.style.setProperty('transform', transform);
237
+ // Force a repaint to ensure the transform happens
238
+ currentIndicator.getBoundingClientRect();
239
+ // Add the transition to move the indicator into place
240
+ currentIndicator.classList.add('bal-segment-item__indicator--animated');
241
+ // Remove the transform to slide the indicator back to the button clicked
242
+ currentIndicator.style.setProperty('transform', '');
243
+ });
244
+ this.value = current.value;
245
+ this.setCheckedClasses();
246
+ }
247
+ setCheckedClasses() {
248
+ const items = this.items;
249
+ const index = items.findIndex(item => item.value === this.value);
250
+ const next = index + 1;
251
+ const previous = index - 1;
252
+ for (const item of items) {
253
+ item.classList.remove('bal-segment-item--after-checked');
254
+ item.classList.remove('bal-segment-item--before-checked');
255
+ }
256
+ if (next < items.length) {
257
+ items[next].classList.add('bal-segment-item--after-checked');
258
+ }
259
+ if (previous < items.length && previous >= 0) {
260
+ items[previous].classList.add('bal-segment-item--before-checked');
261
+ }
262
+ }
263
+ /**
264
+ * RENDER
265
+ * ------------------------------------------------------
266
+ */
267
+ render() {
268
+ const { invalid, isVertical, scrollable, keyboardMode, expanded, isMobile } = this;
269
+ const block = BEM.block('segment');
270
+ return (h(Host, { role: "radiogroup", class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('invalid').class(invalid)), block.modifier('vertical').class(isVertical)), block.modifier('scrollable').class(scrollable)), block.modifier('keyboard').class(keyboardMode)), block.modifier('expanded').class((expanded || isMobile) && !isVertical)), onClick: this.onClick }, h("slot", { onSlotchange: this.onSlottedItemsChange })));
271
+ }
272
+ static get is() { return "bal-segment"; }
273
+ static get originalStyleUrls() {
274
+ return {
275
+ "$": ["bal-segment.sass"]
276
+ };
277
+ }
278
+ static get styleUrls() {
279
+ return {
280
+ "$": ["bal-segment.css"]
281
+ };
282
+ }
283
+ static get properties() {
284
+ return {
285
+ "invalid": {
286
+ "type": "boolean",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "boolean",
290
+ "resolved": "boolean",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": "If `true`, the segment is shown red."
298
+ },
299
+ "attribute": "invalid",
300
+ "reflect": false,
301
+ "defaultValue": "false"
302
+ },
303
+ "disabled": {
304
+ "type": "boolean",
305
+ "mutable": false,
306
+ "complexType": {
307
+ "original": "boolean",
308
+ "resolved": "boolean",
309
+ "references": {}
310
+ },
311
+ "required": false,
312
+ "optional": false,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": "If `true`, the user cannot interact with the segment."
316
+ },
317
+ "attribute": "disabled",
318
+ "reflect": false,
319
+ "defaultValue": "false"
320
+ },
321
+ "vertical": {
322
+ "type": "boolean",
323
+ "mutable": false,
324
+ "complexType": {
325
+ "original": "boolean",
326
+ "resolved": "boolean",
327
+ "references": {}
328
+ },
329
+ "required": false,
330
+ "optional": false,
331
+ "docs": {
332
+ "tags": [],
333
+ "text": "If `true`, the segment items are presented vertical as a list."
334
+ },
335
+ "attribute": "vertical",
336
+ "reflect": false,
337
+ "defaultValue": "false"
338
+ },
339
+ "scrollable": {
340
+ "type": "boolean",
341
+ "mutable": false,
342
+ "complexType": {
343
+ "original": "boolean",
344
+ "resolved": "boolean",
345
+ "references": {}
346
+ },
347
+ "required": false,
348
+ "optional": false,
349
+ "docs": {
350
+ "tags": [],
351
+ "text": "If `true`, and is vertical then the list height is limited and scrollable."
352
+ },
353
+ "attribute": "scrollable",
354
+ "reflect": false,
355
+ "defaultValue": "false"
356
+ },
357
+ "expanded": {
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`, the element uses the whole width"
370
+ },
371
+ "attribute": "expanded",
372
+ "reflect": false,
373
+ "defaultValue": "false"
374
+ },
375
+ "value": {
376
+ "type": "any",
377
+ "mutable": true,
378
+ "complexType": {
379
+ "original": "BalProps.BalSegmentValue",
380
+ "resolved": "number | string",
381
+ "references": {
382
+ "BalProps": {
383
+ "location": "global",
384
+ "id": "global::BalProps"
385
+ }
386
+ }
387
+ },
388
+ "required": false,
389
+ "optional": true,
390
+ "docs": {
391
+ "tags": [],
392
+ "text": "the value of the segment."
393
+ },
394
+ "attribute": "value",
395
+ "reflect": false
396
+ }
397
+ };
398
+ }
399
+ static get states() {
400
+ return {
401
+ "focusedValue": {},
402
+ "keyboardMode": {},
403
+ "isVertical": {},
404
+ "isMobile": {},
405
+ "maxWidth": {}
406
+ };
407
+ }
408
+ static get events() {
409
+ return [{
410
+ "method": "balBlur",
411
+ "name": "balBlur",
412
+ "bubbles": true,
413
+ "cancelable": true,
414
+ "composed": true,
415
+ "docs": {
416
+ "tags": [],
417
+ "text": "Emitted when the component was touched"
418
+ },
419
+ "complexType": {
420
+ "original": "BalEvents.BalSegmentBlurDetail",
421
+ "resolved": "FocusEvent",
422
+ "references": {
423
+ "BalEvents": {
424
+ "location": "global",
425
+ "id": "global::BalEvents"
426
+ }
427
+ }
428
+ }
429
+ }, {
430
+ "method": "balChange",
431
+ "name": "balChange",
432
+ "bubbles": true,
433
+ "cancelable": true,
434
+ "composed": true,
435
+ "docs": {
436
+ "tags": [],
437
+ "text": "Emitted when the value property has changed and any dragging pointer has been released from `bal-segment`.\n\nThis event will not emit when programmatically setting the `value` property."
438
+ },
439
+ "complexType": {
440
+ "original": "BalEvents.BalSegmentChangeDetail",
441
+ "resolved": "number | string",
442
+ "references": {
443
+ "BalEvents": {
444
+ "location": "global",
445
+ "id": "global::BalEvents"
446
+ }
447
+ }
448
+ }
449
+ }, {
450
+ "method": "balSelect",
451
+ "name": "balSelect",
452
+ "bubbles": true,
453
+ "cancelable": true,
454
+ "composed": true,
455
+ "docs": {
456
+ "tags": [{
457
+ "name": "internal",
458
+ "text": undefined
459
+ }],
460
+ "text": "Emitted when the value of the segment changes from user committed actions\nor from externally assigning a value."
461
+ },
462
+ "complexType": {
463
+ "original": "BalEvents.BalSegmentChangeDetail",
464
+ "resolved": "number | string",
465
+ "references": {
466
+ "BalEvents": {
467
+ "location": "global",
468
+ "id": "global::BalEvents"
469
+ }
470
+ }
471
+ }
472
+ }, {
473
+ "method": "balVertical",
474
+ "name": "balVertical",
475
+ "bubbles": true,
476
+ "cancelable": true,
477
+ "composed": true,
478
+ "docs": {
479
+ "tags": [{
480
+ "name": "internal",
481
+ "text": undefined
482
+ }],
483
+ "text": "Emitted when the vertical style changes"
484
+ },
485
+ "complexType": {
486
+ "original": "BalEvents.BalSegmentVerticalDetail",
487
+ "resolved": "boolean",
488
+ "references": {
489
+ "BalEvents": {
490
+ "location": "global",
491
+ "id": "global::BalEvents"
492
+ }
493
+ }
494
+ }
495
+ }];
496
+ }
497
+ static get elementRef() { return "el"; }
498
+ static get watchers() {
499
+ return [{
500
+ "propName": "value",
501
+ "methodName": "valueChanged"
502
+ }];
503
+ }
504
+ static get listeners() {
505
+ return [{
506
+ "name": "balBlur",
507
+ "method": "listenOnBalBlur",
508
+ "target": undefined,
509
+ "capture": false,
510
+ "passive": false
511
+ }, {
512
+ "name": "keydown",
513
+ "method": "listenOnKeyDown",
514
+ "target": undefined,
515
+ "capture": false,
516
+ "passive": false
517
+ }];
518
+ }
519
+ }
520
+ __decorate([
521
+ Logger('bal-segment'),
522
+ __metadata("design:type", Function),
523
+ __metadata("design:paramtypes", [Function]),
524
+ __metadata("design:returntype", void 0)
525
+ ], Segment.prototype, "createLogger", null);
526
+ __decorate([
527
+ ListenToBreakpoints(),
528
+ __metadata("design:type", Function),
529
+ __metadata("design:paramtypes", [Object]),
530
+ __metadata("design:returntype", void 0)
531
+ ], Segment.prototype, "breakpointListener", null);
532
+ __decorate([
533
+ ListenToWindowResize(),
534
+ __metadata("design:type", Function),
535
+ __metadata("design:paramtypes", []),
536
+ __metadata("design:returntype", void 0)
537
+ ], Segment.prototype, "windowResizeListener", null);
@@ -1 +1 @@
1
- .bal-stack{display:flex;flex:1;flex-direction:row;align-items:center;height:100%;width:100%;gap:1rem;flex-wrap:nowrap}.bal-stack--use-wrap{flex-wrap:wrap}.bal-stack--fit-content{flex:unset;width:fit-content}.bal-stack--layout-horizontal{flex-direction:row;align-items:center}.bal-stack--layout-vertical{flex-direction:column;align-items:flex-start}.bal-stack--layout-horizontal-reverse{flex-direction:row;align-items:center}.bal-stack--layout-vertical-reverse{flex-direction:column;align-items:flex-start}.bal-stack--align-top-start{align-items:flex-start;justify-content:flex-start}.bal-stack--align-top-center{align-items:flex-start;justify-content:center}.bal-stack--align-top-end{align-items:flex-start;justify-content:flex-end}.bal-stack--align-start{align-items:center;justify-content:flex-start}.bal-stack--align-center{align-items:center;justify-content:center}.bal-stack--align-end{align-items:center;justify-content:flex-end}.bal-stack--align-bottom-start{align-items:flex-end;justify-content:flex-start}.bal-stack--align-bottom-center{align-items:flex-end;justify-content:center}.bal-stack--align-bottom-end{align-items:flex-end;justify-content:flex-end}.bal-stack--layout-vertical.bal-stack--align-top-start{align-items:flex-start;justify-content:flex-start}.bal-stack--layout-vertical.bal-stack--align-top-center{align-items:center;justify-content:flex-start}.bal-stack--layout-vertical.bal-stack--align-top-end{align-items:flex-end;justify-content:flex-start}.bal-stack--layout-vertical.bal-stack--align-start{align-items:flex-start;justify-content:center}.bal-stack--layout-vertical.bal-stack--align-center{align-items:center;justify-content:center}.bal-stack--layout-vertical.bal-stack--align-end{align-items:flex-end;justify-content:center}.bal-stack--layout-vertical.bal-stack--align-bottom-start{align-items:flex-start;justify-content:flex-end}.bal-stack--layout-vertical.bal-stack--align-bottom-center{align-items:center;justify-content:flex-end}.bal-stack--layout-vertical.bal-stack--align-bottom-end{align-items:flex-end;justify-content:flex-end}.bal-stack--px-none{padding-left:0;padding-right:0}.bal-stack--px-xx-small{padding-left:var(--bal-space-xx-small);padding-right:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--px-xx-small{padding-left:var(--bal-space-xx-small-tablet);padding-right:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-xx-small{padding-left:var(--bal-space-xx-small-desktop);padding-right:var(--bal-space-xx-small-desktop)}}.bal-stack--px-x-small{padding-left:var(--bal-space-x-small);padding-right:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--px-x-small{padding-left:var(--bal-space-x-small-tablet);padding-right:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-x-small{padding-left:var(--bal-space-x-small-desktop);padding-right:var(--bal-space-x-small-desktop)}}.bal-stack--px-small{padding-left:var(--bal-space-small);padding-right:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--px-small{padding-left:var(--bal-space-small-tablet);padding-right:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-small{padding-left:var(--bal-space-small-desktop);padding-right:var(--bal-space-small-desktop)}}.bal-stack--px-normal{padding-left:var(--bal-space-normal);padding-right:var(--bal-space-normal)}@media screen and (min-width: 769px),print{.bal-stack--px-normal{padding-left:var(--bal-space-normal-tablet);padding-right:var(--bal-space-normal-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-normal{padding-left:var(--bal-space-normal-desktop);padding-right:var(--bal-space-normal-desktop)}}.bal-stack--px-medium{padding-left:var(--bal-space-medium);padding-right:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--px-medium{padding-left:var(--bal-space-medium-tablet);padding-right:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-medium{padding-left:var(--bal-space-medium-desktop);padding-right:var(--bal-space-medium-desktop)}}.bal-stack--px-large{padding-left:var(--bal-space-large);padding-right:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--px-large{padding-left:var(--bal-space-large-tablet);padding-right:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-large{padding-left:var(--bal-space-large-desktop);padding-right:var(--bal-space-large-desktop)}}.bal-stack--px-x-large{padding-left:var(--bal-space-x-large);padding-right:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--px-x-large{padding-left:var(--bal-space-x-large-tablet);padding-right:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-x-large{padding-left:var(--bal-space-x-large-desktop);padding-right:var(--bal-space-x-large-desktop)}}.bal-stack--px-xx-large{padding-left:var(--bal-space-xx-large);padding-right:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--px-xx-large{padding-left:var(--bal-space-xx-large-tablet);padding-right:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-xx-large{padding-left:var(--bal-space-xx-large-desktop);padding-right:var(--bal-space-xx-large-desktop)}}.bal-stack--py-none{padding-top:0;padding-bottom:0}.bal-stack--py-xx-small{padding-top:var(--bal-space-xx-small);padding-bottom:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--py-xx-small{padding-top:var(--bal-space-xx-small-tablet);padding-bottom:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-xx-small{padding-top:var(--bal-space-xx-small-desktop);padding-bottom:var(--bal-space-xx-small-desktop)}}.bal-stack--py-x-small{padding-top:var(--bal-space-x-small);padding-bottom:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--py-x-small{padding-top:var(--bal-space-x-small-tablet);padding-bottom:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-x-small{padding-top:var(--bal-space-x-small-desktop);padding-bottom:var(--bal-space-x-small-desktop)}}.bal-stack--py-small{padding-top:var(--bal-space-small);padding-bottom:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--py-small{padding-top:var(--bal-space-small-tablet);padding-bottom:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-small{padding-top:var(--bal-space-small-desktop);padding-bottom:var(--bal-space-small-desktop)}}.bal-stack--py-normal{padding-top:var(--bal-space-normal);padding-bottom:var(--bal-space-normal)}@media screen and (min-width: 769px),print{.bal-stack--py-normal{padding-top:var(--bal-space-normal-tablet);padding-bottom:var(--bal-space-normal-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-normal{padding-top:var(--bal-space-normal-desktop);padding-bottom:var(--bal-space-normal-desktop)}}.bal-stack--py-medium{padding-top:var(--bal-space-medium);padding-bottom:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--py-medium{padding-top:var(--bal-space-medium-tablet);padding-bottom:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-medium{padding-top:var(--bal-space-medium-desktop);padding-bottom:var(--bal-space-medium-desktop)}}.bal-stack--py-large{padding-top:var(--bal-space-large);padding-bottom:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--py-large{padding-top:var(--bal-space-large-tablet);padding-bottom:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-large{padding-top:var(--bal-space-large-desktop);padding-bottom:var(--bal-space-large-desktop)}}.bal-stack--py-x-large{padding-top:var(--bal-space-x-large);padding-bottom:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--py-x-large{padding-top:var(--bal-space-x-large-tablet);padding-bottom:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-x-large{padding-top:var(--bal-space-x-large-desktop);padding-bottom:var(--bal-space-x-large-desktop)}}.bal-stack--py-xx-large{padding-top:var(--bal-space-xx-large);padding-bottom:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--py-xx-large{padding-top:var(--bal-space-xx-large-tablet);padding-bottom:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-xx-large{padding-top:var(--bal-space-xx-large-desktop);padding-bottom:var(--bal-space-xx-large-desktop)}}.bal-stack--space-auto{justify-content:space-between}.bal-stack--space-none{gap:0}@media screen and (min-width: 769px),print{.bal-stack--space-none{gap:0}}@media screen and (min-width: 1024px){.bal-stack--space-none{gap:0}}.bal-stack--space-xx-small{gap:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--space-xx-small{gap:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-xx-small{gap:var(--bal-space-xx-small-desktop)}}.bal-stack--space-x-small{gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--space-x-small{gap:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-x-small{gap:var(--bal-space-x-small-desktop)}}.bal-stack--space-small{gap:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--space-small{gap:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-small{gap:var(--bal-space-small-desktop)}}.bal-stack--space-medium{gap:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--space-medium{gap:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-medium{gap:var(--bal-space-medium-desktop)}}.bal-stack--space-large{gap:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--space-large{gap:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-large{gap:var(--bal-space-large-desktop)}}.bal-stack--space-x-large{gap:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--space-x-large{gap:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-x-large{gap:var(--bal-space-x-large-desktop)}}.bal-stack--space-xx-large{gap:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--space-xx-large{gap:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-xx-large{gap:var(--bal-space-xx-large-desktop)}}.bal-stack--space-row-auto{justify-content:space-between}.bal-stack--space-row-none{row-gap:0}@media screen and (min-width: 769px),print{.bal-stack--space-row-none{row-gap:0}}@media screen and (min-width: 1024px){.bal-stack--space-row-none{row-gap:0}}.bal-stack--space-row-xx-small{row-gap:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--space-row-xx-small{row-gap:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-xx-small{row-gap:var(--bal-space-xx-small-desktop)}}.bal-stack--space-row-x-small{row-gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--space-row-x-small{row-gap:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-x-small{row-gap:var(--bal-space-x-small-desktop)}}.bal-stack--space-row-small{row-gap:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--space-row-small{row-gap:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-small{row-gap:var(--bal-space-small-desktop)}}.bal-stack--space-row-medium{row-gap:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--space-row-medium{row-gap:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-medium{row-gap:var(--bal-space-medium-desktop)}}.bal-stack--space-row-large{row-gap:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--space-row-large{row-gap:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-large{row-gap:var(--bal-space-large-desktop)}}.bal-stack--space-row-x-large{row-gap:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--space-row-x-large{row-gap:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-x-large{row-gap:var(--bal-space-x-large-desktop)}}.bal-stack--space-row-xx-large{row-gap:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--space-row-xx-large{row-gap:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-xx-large{row-gap:var(--bal-space-xx-large-desktop)}}.bal-stack--space-column-auto{justify-content:space-between}.bal-stack--space-column-none{column-gap:0}@media screen and (min-width: 769px),print{.bal-stack--space-column-none{column-gap:0}}@media screen and (min-width: 1024px){.bal-stack--space-column-none{column-gap:0}}.bal-stack--space-column-xx-small{column-gap:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--space-column-xx-small{column-gap:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-xx-small{column-gap:var(--bal-space-xx-small-desktop)}}.bal-stack--space-column-x-small{column-gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--space-column-x-small{column-gap:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-x-small{column-gap:var(--bal-space-x-small-desktop)}}.bal-stack--space-column-small{column-gap:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--space-column-small{column-gap:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-small{column-gap:var(--bal-space-small-desktop)}}.bal-stack--space-column-medium{column-gap:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--space-column-medium{column-gap:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-medium{column-gap:var(--bal-space-medium-desktop)}}.bal-stack--space-column-large{column-gap:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--space-column-large{column-gap:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-large{column-gap:var(--bal-space-large-desktop)}}.bal-stack--space-column-x-large{column-gap:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--space-column-x-large{column-gap:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-x-large{column-gap:var(--bal-space-x-large-desktop)}}.bal-stack--space-column-xx-large{column-gap:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--space-column-xx-large{column-gap:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-xx-large{column-gap:var(--bal-space-xx-large-desktop)}}.bal-stack>bal-radio{margin-top:-0.25rem}.bal-stack>.bal-text,.bal-stack>.bal-heading,.bal-stack>.bal-heading:not(:last-child),.bal-stack>.title,.bal-stack>.subtitle,.bal-stack>.is-link,.bal-stack>p{margin:0}
1
+ .bal-stack{display:flex;flex:1;flex-direction:row;align-items:center;height:100%;width:100%;gap:1rem;flex-wrap:nowrap}.bal-stack--use-wrap{flex-wrap:wrap}.bal-stack--fit-content{flex:unset;width:fit-content}.bal-stack--layout-horizontal{flex-direction:row;align-items:center}.bal-stack--layout-vertical{flex-direction:column;align-items:flex-start}.bal-stack--layout-horizontal-reverse{flex-direction:row-reverse;align-items:center}.bal-stack--layout-vertical-reverse{flex-direction:column-reverse;align-items:flex-start}.bal-stack--align-top-start{align-items:flex-start;justify-content:flex-start}.bal-stack--align-top-center{align-items:flex-start;justify-content:center}.bal-stack--align-top-end{align-items:flex-start;justify-content:flex-end}.bal-stack--align-start{align-items:center;justify-content:flex-start}.bal-stack--align-center{align-items:center;justify-content:center}.bal-stack--align-end{align-items:center;justify-content:flex-end}.bal-stack--align-bottom-start{align-items:flex-end;justify-content:flex-start}.bal-stack--align-bottom-center{align-items:flex-end;justify-content:center}.bal-stack--align-bottom-end{align-items:flex-end;justify-content:flex-end}.bal-stack--layout-vertical.bal-stack--align-top-start{align-items:flex-start;justify-content:flex-start}.bal-stack--layout-vertical.bal-stack--align-top-center{align-items:center;justify-content:flex-start}.bal-stack--layout-vertical.bal-stack--align-top-end{align-items:flex-end;justify-content:flex-start}.bal-stack--layout-vertical.bal-stack--align-start{align-items:flex-start;justify-content:center}.bal-stack--layout-vertical.bal-stack--align-center{align-items:center;justify-content:center}.bal-stack--layout-vertical.bal-stack--align-end{align-items:flex-end;justify-content:center}.bal-stack--layout-vertical.bal-stack--align-bottom-start{align-items:flex-start;justify-content:flex-end}.bal-stack--layout-vertical.bal-stack--align-bottom-center{align-items:center;justify-content:flex-end}.bal-stack--layout-vertical.bal-stack--align-bottom-end{align-items:flex-end;justify-content:flex-end}.bal-stack--px-none{padding-left:0;padding-right:0}.bal-stack--px-xx-small{padding-left:var(--bal-space-xx-small);padding-right:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--px-xx-small{padding-left:var(--bal-space-xx-small-tablet);padding-right:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-xx-small{padding-left:var(--bal-space-xx-small-desktop);padding-right:var(--bal-space-xx-small-desktop)}}.bal-stack--px-x-small{padding-left:var(--bal-space-x-small);padding-right:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--px-x-small{padding-left:var(--bal-space-x-small-tablet);padding-right:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-x-small{padding-left:var(--bal-space-x-small-desktop);padding-right:var(--bal-space-x-small-desktop)}}.bal-stack--px-small{padding-left:var(--bal-space-small);padding-right:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--px-small{padding-left:var(--bal-space-small-tablet);padding-right:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-small{padding-left:var(--bal-space-small-desktop);padding-right:var(--bal-space-small-desktop)}}.bal-stack--px-normal{padding-left:var(--bal-space-normal);padding-right:var(--bal-space-normal)}@media screen and (min-width: 769px),print{.bal-stack--px-normal{padding-left:var(--bal-space-normal-tablet);padding-right:var(--bal-space-normal-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-normal{padding-left:var(--bal-space-normal-desktop);padding-right:var(--bal-space-normal-desktop)}}.bal-stack--px-medium{padding-left:var(--bal-space-medium);padding-right:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--px-medium{padding-left:var(--bal-space-medium-tablet);padding-right:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-medium{padding-left:var(--bal-space-medium-desktop);padding-right:var(--bal-space-medium-desktop)}}.bal-stack--px-large{padding-left:var(--bal-space-large);padding-right:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--px-large{padding-left:var(--bal-space-large-tablet);padding-right:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-large{padding-left:var(--bal-space-large-desktop);padding-right:var(--bal-space-large-desktop)}}.bal-stack--px-x-large{padding-left:var(--bal-space-x-large);padding-right:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--px-x-large{padding-left:var(--bal-space-x-large-tablet);padding-right:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-x-large{padding-left:var(--bal-space-x-large-desktop);padding-right:var(--bal-space-x-large-desktop)}}.bal-stack--px-xx-large{padding-left:var(--bal-space-xx-large);padding-right:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--px-xx-large{padding-left:var(--bal-space-xx-large-tablet);padding-right:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--px-xx-large{padding-left:var(--bal-space-xx-large-desktop);padding-right:var(--bal-space-xx-large-desktop)}}.bal-stack--py-none{padding-top:0;padding-bottom:0}.bal-stack--py-xx-small{padding-top:var(--bal-space-xx-small);padding-bottom:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--py-xx-small{padding-top:var(--bal-space-xx-small-tablet);padding-bottom:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-xx-small{padding-top:var(--bal-space-xx-small-desktop);padding-bottom:var(--bal-space-xx-small-desktop)}}.bal-stack--py-x-small{padding-top:var(--bal-space-x-small);padding-bottom:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--py-x-small{padding-top:var(--bal-space-x-small-tablet);padding-bottom:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-x-small{padding-top:var(--bal-space-x-small-desktop);padding-bottom:var(--bal-space-x-small-desktop)}}.bal-stack--py-small{padding-top:var(--bal-space-small);padding-bottom:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--py-small{padding-top:var(--bal-space-small-tablet);padding-bottom:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-small{padding-top:var(--bal-space-small-desktop);padding-bottom:var(--bal-space-small-desktop)}}.bal-stack--py-normal{padding-top:var(--bal-space-normal);padding-bottom:var(--bal-space-normal)}@media screen and (min-width: 769px),print{.bal-stack--py-normal{padding-top:var(--bal-space-normal-tablet);padding-bottom:var(--bal-space-normal-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-normal{padding-top:var(--bal-space-normal-desktop);padding-bottom:var(--bal-space-normal-desktop)}}.bal-stack--py-medium{padding-top:var(--bal-space-medium);padding-bottom:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--py-medium{padding-top:var(--bal-space-medium-tablet);padding-bottom:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-medium{padding-top:var(--bal-space-medium-desktop);padding-bottom:var(--bal-space-medium-desktop)}}.bal-stack--py-large{padding-top:var(--bal-space-large);padding-bottom:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--py-large{padding-top:var(--bal-space-large-tablet);padding-bottom:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-large{padding-top:var(--bal-space-large-desktop);padding-bottom:var(--bal-space-large-desktop)}}.bal-stack--py-x-large{padding-top:var(--bal-space-x-large);padding-bottom:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--py-x-large{padding-top:var(--bal-space-x-large-tablet);padding-bottom:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-x-large{padding-top:var(--bal-space-x-large-desktop);padding-bottom:var(--bal-space-x-large-desktop)}}.bal-stack--py-xx-large{padding-top:var(--bal-space-xx-large);padding-bottom:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--py-xx-large{padding-top:var(--bal-space-xx-large-tablet);padding-bottom:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--py-xx-large{padding-top:var(--bal-space-xx-large-desktop);padding-bottom:var(--bal-space-xx-large-desktop)}}.bal-stack--space-auto{justify-content:space-between}.bal-stack--space-none{gap:0}@media screen and (min-width: 769px),print{.bal-stack--space-none{gap:0}}@media screen and (min-width: 1024px){.bal-stack--space-none{gap:0}}.bal-stack--space-xx-small{gap:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--space-xx-small{gap:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-xx-small{gap:var(--bal-space-xx-small-desktop)}}.bal-stack--space-x-small{gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--space-x-small{gap:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-x-small{gap:var(--bal-space-x-small-desktop)}}.bal-stack--space-small{gap:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--space-small{gap:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-small{gap:var(--bal-space-small-desktop)}}.bal-stack--space-medium{gap:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--space-medium{gap:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-medium{gap:var(--bal-space-medium-desktop)}}.bal-stack--space-large{gap:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--space-large{gap:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-large{gap:var(--bal-space-large-desktop)}}.bal-stack--space-x-large{gap:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--space-x-large{gap:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-x-large{gap:var(--bal-space-x-large-desktop)}}.bal-stack--space-xx-large{gap:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--space-xx-large{gap:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-xx-large{gap:var(--bal-space-xx-large-desktop)}}.bal-stack--space-row-auto{justify-content:space-between}.bal-stack--space-row-none{row-gap:0}@media screen and (min-width: 769px),print{.bal-stack--space-row-none{row-gap:0}}@media screen and (min-width: 1024px){.bal-stack--space-row-none{row-gap:0}}.bal-stack--space-row-xx-small{row-gap:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--space-row-xx-small{row-gap:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-xx-small{row-gap:var(--bal-space-xx-small-desktop)}}.bal-stack--space-row-x-small{row-gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--space-row-x-small{row-gap:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-x-small{row-gap:var(--bal-space-x-small-desktop)}}.bal-stack--space-row-small{row-gap:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--space-row-small{row-gap:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-small{row-gap:var(--bal-space-small-desktop)}}.bal-stack--space-row-medium{row-gap:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--space-row-medium{row-gap:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-medium{row-gap:var(--bal-space-medium-desktop)}}.bal-stack--space-row-large{row-gap:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--space-row-large{row-gap:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-large{row-gap:var(--bal-space-large-desktop)}}.bal-stack--space-row-x-large{row-gap:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--space-row-x-large{row-gap:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-x-large{row-gap:var(--bal-space-x-large-desktop)}}.bal-stack--space-row-xx-large{row-gap:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--space-row-xx-large{row-gap:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-row-xx-large{row-gap:var(--bal-space-xx-large-desktop)}}.bal-stack--space-column-auto{justify-content:space-between}.bal-stack--space-column-none{column-gap:0}@media screen and (min-width: 769px),print{.bal-stack--space-column-none{column-gap:0}}@media screen and (min-width: 1024px){.bal-stack--space-column-none{column-gap:0}}.bal-stack--space-column-xx-small{column-gap:var(--bal-space-xx-small)}@media screen and (min-width: 769px),print{.bal-stack--space-column-xx-small{column-gap:var(--bal-space-xx-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-xx-small{column-gap:var(--bal-space-xx-small-desktop)}}.bal-stack--space-column-x-small{column-gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-stack--space-column-x-small{column-gap:var(--bal-space-x-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-x-small{column-gap:var(--bal-space-x-small-desktop)}}.bal-stack--space-column-small{column-gap:var(--bal-space-small)}@media screen and (min-width: 769px),print{.bal-stack--space-column-small{column-gap:var(--bal-space-small-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-small{column-gap:var(--bal-space-small-desktop)}}.bal-stack--space-column-medium{column-gap:var(--bal-space-medium)}@media screen and (min-width: 769px),print{.bal-stack--space-column-medium{column-gap:var(--bal-space-medium-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-medium{column-gap:var(--bal-space-medium-desktop)}}.bal-stack--space-column-large{column-gap:var(--bal-space-large)}@media screen and (min-width: 769px),print{.bal-stack--space-column-large{column-gap:var(--bal-space-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-large{column-gap:var(--bal-space-large-desktop)}}.bal-stack--space-column-x-large{column-gap:var(--bal-space-x-large)}@media screen and (min-width: 769px),print{.bal-stack--space-column-x-large{column-gap:var(--bal-space-x-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-x-large{column-gap:var(--bal-space-x-large-desktop)}}.bal-stack--space-column-xx-large{column-gap:var(--bal-space-xx-large)}@media screen and (min-width: 769px),print{.bal-stack--space-column-xx-large{column-gap:var(--bal-space-xx-large-tablet)}}@media screen and (min-width: 1024px){.bal-stack--space-column-xx-large{column-gap:var(--bal-space-xx-large-desktop)}}.bal-stack>bal-radio{margin-top:-0.25rem}.bal-stack>.bal-text,.bal-stack>.bal-heading,.bal-stack>.bal-heading:not(:last-child),.bal-stack>.title,.bal-stack>.subtitle,.bal-stack>.is-link,.bal-stack>p{margin:0}
@@ -1,2 +1,2 @@
1
1
  // generated by .build/version.js
2
- export const VERSION = '16.4.0';
2
+ export const VERSION = '16.5.0';
@@ -1,5 +1,8 @@
1
- export * from './window-resize.listener';
1
+ export * from './window-resize.decorator';
2
2
  export * from './window-resize.handler';
3
+ export * from './window-resize.interfaces';
4
+ export * from './window-resize.listener';
5
+ export * from './window-resize.subject';
3
6
  export * from './resize.interfaces';
4
7
  export * from './resize.decorator';
5
8
  export * from './resize.subject';
@@ -0,0 +1,20 @@
1
+ import { BalWindowResizeSubject } from "./window-resize.subject";
2
+ export function ListenToWindowResize() {
3
+ return function (target, _propertyKey, _descriptor) {
4
+ const { connectedCallback, disconnectedCallback } = target;
5
+ target.connectedCallback = function () {
6
+ if (!this._balWindowResizeSubject) {
7
+ this._balWindowResizeSubject = new BalWindowResizeSubject();
8
+ this._balWindowResizeSubject.attach(this);
9
+ }
10
+ return connectedCallback && connectedCallback.call(this);
11
+ };
12
+ target.disconnectedCallback = function () {
13
+ if (this._balWindowResizeSubject) {
14
+ this._balWindowResizeSubject.detach();
15
+ this._balWindowResizeSubject = undefined;
16
+ }
17
+ return disconnectedCallback && disconnectedCallback.call(this);
18
+ };
19
+ };
20
+ }
@@ -5,15 +5,15 @@ export class BalWindowResizeListener extends ListenerAbstract {
5
5
  constructor() {
6
6
  super(...arguments);
7
7
  this.resizeHandler = new BalWindowResizeHandler({ onlyListenToWidthChanges: true });
8
- this.debouncedNotify = debounce(() => this.notify(), 10);
8
+ this.debouncedNotify = debounce(() => this.notify(), 100);
9
9
  this.notify = async () => {
10
10
  if (await this.resizeHandler.hasResized()) {
11
11
  super.notify(undefined);
12
12
  }
13
13
  };
14
14
  }
15
- connect() {
16
- super.connect();
15
+ connect(el) {
16
+ super.connect(el);
17
17
  if (this.el) {
18
18
  addEventListener(this.el, 'resize', this.debouncedNotify, { passive: true });
19
19
  }