@baloise/ds-core 16.5.0 → 16.5.1

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 (283) hide show
  1. package/components/bal-field.js +3 -0
  2. package/components/bal-input-date2.js +2 -3
  3. package/components/bal-input.js +1 -1
  4. package/components/bal-number-input.js +1 -1
  5. package/components/bal-segment-item.js +64 -47
  6. package/components/bal-segment.js +61 -17
  7. package/components/bal-textarea.js +1 -1
  8. package/components/bal-time-input.js +1 -1
  9. package/components/form-input.js +14 -1
  10. package/components/index.js +1 -1
  11. package/components/tokens.esm.js +1 -1
  12. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  13. package/dist/baloise-design-system/index.esm.js +1 -1
  14. package/dist/baloise-design-system/{p-dd30661db2.system.entry.js → p-00014af866.system.entry.js} +1 -1
  15. package/dist/baloise-design-system/{p-b0c22ff9d1.entry.js → p-08b0e345a2.entry.js} +1 -1
  16. package/dist/baloise-design-system/{p-3eb68d7e.js → p-0db6b19e.js} +1 -1
  17. package/dist/baloise-design-system/{p-9bb8778cdc.system.entry.js → p-10c13a369c.system.entry.js} +1 -1
  18. package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
  19. package/dist/baloise-design-system/{p-09ea5913.js → p-15a85377.js} +1 -1
  20. package/dist/baloise-design-system/p-15c5fe4d6d.system.entry.js +1 -0
  21. package/dist/baloise-design-system/{p-cda868a6a5.entry.js → p-16b50b08e4.entry.js} +1 -1
  22. package/dist/baloise-design-system/{p-5fae3f5478.entry.js → p-27bc71c322.entry.js} +1 -1
  23. package/dist/baloise-design-system/{p-0530e008e9.system.entry.js → p-2aa4f352d9.system.entry.js} +1 -1
  24. package/dist/baloise-design-system/{p-8080a1192c.system.entry.js → p-2e498736fc.system.entry.js} +1 -1
  25. package/dist/baloise-design-system/{p-6e3a79cce0.system.entry.js → p-2e8508812d.system.entry.js} +1 -1
  26. package/dist/baloise-design-system/{p-f798011b48.system.entry.js → p-2ea7550d1b.system.entry.js} +1 -1
  27. package/dist/baloise-design-system/{p-380aabd5bc.entry.js → p-3180888825.entry.js} +1 -1
  28. package/dist/baloise-design-system/{p-305cffd8aa.entry.js → p-342b27632b.entry.js} +1 -1
  29. package/dist/baloise-design-system/{p-39bf8adcde.entry.js → p-34671b9410.entry.js} +1 -1
  30. package/dist/baloise-design-system/{p-e187b9de.system.js → p-368bd6ac.system.js} +1 -1
  31. package/dist/baloise-design-system/p-449ffc7a7e.entry.js +1 -0
  32. package/dist/baloise-design-system/{p-0ab43941ba.entry.js → p-462b20f382.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-f5940253.js → p-4ae121b6.js} +1 -1
  34. package/dist/baloise-design-system/p-4f083c5352.entry.js +1 -0
  35. package/dist/baloise-design-system/{p-df40272425.system.entry.js → p-52a4a89073.system.entry.js} +1 -1
  36. package/dist/baloise-design-system/p-54f81c32.js +1 -1
  37. package/dist/baloise-design-system/{p-4809d5c4.system.js → p-590da25b.system.js} +1 -1
  38. package/dist/baloise-design-system/{p-e137e273b7.system.entry.js → p-5b5d1c626d.system.entry.js} +1 -1
  39. package/dist/baloise-design-system/{p-71588db3.system.js → p-5c0b0099.system.js} +1 -1
  40. package/dist/baloise-design-system/{p-3befc6f9.system.js → p-5de0bd8a.system.js} +1 -1
  41. package/dist/baloise-design-system/{p-0fb6cbda.system.js → p-60a6af04.system.js} +1 -1
  42. package/dist/baloise-design-system/{p-d3fabdb142.system.entry.js → p-60e74d3515.system.entry.js} +1 -1
  43. package/dist/baloise-design-system/p-6139ff78d7.system.entry.js +1 -0
  44. package/dist/baloise-design-system/{p-47a8ad4d7a.system.entry.js → p-619afa0ba5.system.entry.js} +1 -1
  45. package/dist/baloise-design-system/{p-4192ad4350.entry.js → p-63c685b62d.entry.js} +1 -1
  46. package/dist/baloise-design-system/{p-77350b27fc.entry.js → p-648814edf8.entry.js} +1 -1
  47. package/dist/baloise-design-system/{p-2905abdfb8.entry.js → p-663cc3242c.entry.js} +1 -1
  48. package/dist/baloise-design-system/{p-2db4ff4c5b.entry.js → p-6f18ca5500.entry.js} +1 -1
  49. package/dist/baloise-design-system/{p-12bb6ea3e7.system.entry.js → p-760797ae02.system.entry.js} +1 -1
  50. package/dist/baloise-design-system/{p-190b5cd469.entry.js → p-784c10d48f.entry.js} +1 -1
  51. package/dist/baloise-design-system/p-7957c3c0.system.js +1 -0
  52. package/dist/baloise-design-system/{p-8e17b76e7c.system.entry.js → p-7d2709b193.system.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-7c586fb89f.entry.js → p-80e59744a7.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-a7e5ee75e2.entry.js → p-82333c3ce3.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-bcb892a723.system.entry.js → p-82afff07ac.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-488c4a8ce1.entry.js → p-83c70a6b53.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-f62d0ccdd1.system.entry.js → p-8613444e15.system.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-9658f4a66f.entry.js → p-898f7862e4.entry.js} +1 -1
  59. package/dist/baloise-design-system/p-8f89168b60.system.entry.js +1 -0
  60. package/dist/baloise-design-system/{p-88eb14fd.system.js → p-910b2f3d.system.js} +1 -1
  61. package/dist/baloise-design-system/{p-3818fa189f.system.entry.js → p-959fc8c170.system.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-ecab0d67d5.entry.js → p-9f5eda0e22.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-9f54cac588.system.entry.js → p-a7de2305e0.system.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-c0153f8edf.system.entry.js → p-ac6d5570d8.system.entry.js} +1 -1
  65. package/dist/baloise-design-system/{p-4fe64c3ec6.system.entry.js → p-aed4d3ac0f.system.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-372474e989.system.entry.js → p-b4941441f4.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-bee13e834e.entry.js → p-b4c5b5e53f.entry.js} +1 -1
  68. package/dist/baloise-design-system/p-b60576a064.entry.js +1 -0
  69. package/dist/baloise-design-system/{p-853fe65e14.system.entry.js → p-b7ceb9e59e.system.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-caec1f9e.js → p-b7cef472.js} +1 -1
  71. package/dist/baloise-design-system/p-bcca1ed3.system.js +1 -1
  72. package/dist/baloise-design-system/{p-8f77c423ad.entry.js → p-be366c8428.entry.js} +1 -1
  73. package/dist/baloise-design-system/{p-cafe624e35.entry.js → p-c00e0f64c8.entry.js} +1 -1
  74. package/dist/baloise-design-system/{p-6c2bf02eb3.entry.js → p-c442bb2db2.entry.js} +1 -1
  75. package/dist/baloise-design-system/{p-a5ee486a2b.entry.js → p-c4e11d3813.entry.js} +1 -1
  76. package/dist/baloise-design-system/{p-420d88737c.entry.js → p-c539ee8edf.entry.js} +1 -1
  77. package/dist/baloise-design-system/{p-407ffd9c55.entry.js → p-c716d30de1.entry.js} +1 -1
  78. package/dist/baloise-design-system/{p-7c7e593e07.entry.js → p-c7338c255f.entry.js} +1 -1
  79. package/dist/baloise-design-system/p-cfa901cb.js +1 -0
  80. package/dist/baloise-design-system/{p-0639833837.system.entry.js → p-d800ecde35.system.entry.js} +1 -1
  81. package/dist/baloise-design-system/{p-fb0af77320.system.entry.js → p-d8a71bc5b4.system.entry.js} +1 -1
  82. package/dist/baloise-design-system/{p-d7d6937d59.system.entry.js → p-d94b2cb869.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-3801afd625.entry.js → p-d9f2d48be1.entry.js} +1 -1
  84. package/dist/baloise-design-system/p-dd162dc12e.system.entry.js +1 -0
  85. package/dist/baloise-design-system/{p-ad9a7657.js → p-de08fd27.js} +1 -1
  86. package/dist/baloise-design-system/{p-d1b16f9cc2.entry.js → p-dec8453a4d.entry.js} +1 -1
  87. package/dist/baloise-design-system/{p-e1ccb7023c.system.entry.js → p-e227dcfaa1.system.entry.js} +1 -1
  88. package/dist/baloise-design-system/{p-f03e63bd1e.system.entry.js → p-e2316d2aea.system.entry.js} +1 -1
  89. package/dist/baloise-design-system/p-e45eb6121d.system.entry.js +1 -0
  90. package/dist/baloise-design-system/{p-ef916aafa5.entry.js → p-e6162b978e.entry.js} +1 -1
  91. package/dist/baloise-design-system/{p-d059465399.system.entry.js → p-e7bcca66c5.system.entry.js} +1 -1
  92. package/dist/baloise-design-system/p-e829652c7a.entry.js +1 -0
  93. package/dist/baloise-design-system/p-e833841822.entry.js +1 -0
  94. package/dist/baloise-design-system/{p-2cd1f1dedb.entry.js → p-e8cab53413.entry.js} +1 -1
  95. package/dist/baloise-design-system/p-ec044ce124.system.entry.js +1 -0
  96. package/dist/baloise-design-system/{p-23b7426d09.system.entry.js → p-efe5a8806d.system.entry.js} +1 -1
  97. package/dist/baloise-design-system/{p-1659bb968c.system.entry.js → p-f00b5e9fa4.system.entry.js} +1 -1
  98. package/dist/baloise-design-system/p-f22c8e0c59.entry.js +1 -0
  99. package/dist/baloise-design-system/{p-445d2e1c70.system.entry.js → p-f3bb565972.system.entry.js} +1 -1
  100. package/dist/baloise-design-system/{p-b8251b8f68.system.entry.js → p-fad86a959d.system.entry.js} +1 -1
  101. package/dist/baloise-design-system/{p-f819d47031.entry.js → p-fcfee1c692.entry.js} +1 -1
  102. package/dist/cjs/bal-accordion_4.cjs.entry.js +1 -1
  103. package/dist/cjs/bal-carousel_2.cjs.entry.js +4 -4
  104. package/dist/cjs/bal-checkbox-button.cjs.entry.js +1 -1
  105. package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
  106. package/dist/cjs/bal-content.cjs.entry.js +56 -0
  107. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +1 -1
  108. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +2 -3
  109. package/dist/cjs/bal-date.cjs.entry.js +1 -1
  110. package/dist/cjs/bal-datepicker.cjs.entry.js +4 -4
  111. package/dist/cjs/bal-dropdown.cjs.entry.js +1 -1
  112. package/dist/cjs/bal-field_5.cjs.entry.js +3 -0
  113. package/dist/cjs/bal-file-upload.cjs.entry.js +1 -1
  114. package/dist/cjs/bal-footer.cjs.entry.js +1 -1
  115. package/dist/cjs/{bal-popover_2.cjs.entry.js → bal-hint_5.cjs.entry.js} +172 -3
  116. package/dist/cjs/bal-input-slider.cjs.entry.js +1 -1
  117. package/dist/cjs/bal-input-stepper.cjs.entry.js +1 -1
  118. package/dist/cjs/bal-input.cjs.entry.js +1 -1
  119. package/dist/cjs/{bal-content_2.cjs.entry.js → bal-label.cjs.entry.js} +0 -46
  120. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  121. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  122. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  123. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  124. package/dist/cjs/bal-number-input.cjs.entry.js +1 -1
  125. package/dist/cjs/bal-option_2.cjs.entry.js +1 -1
  126. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  127. package/dist/cjs/bal-popup.cjs.entry.js +1 -1
  128. package/dist/cjs/bal-progress-bar.cjs.entry.js +5 -5
  129. package/dist/cjs/bal-radio-button.cjs.entry.js +1 -1
  130. package/dist/cjs/bal-radio_2.cjs.entry.js +1 -1
  131. package/dist/cjs/bal-segment_2.cjs.entry.js +516 -0
  132. package/dist/cjs/bal-select_2.cjs.entry.js +1 -1
  133. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  134. package/dist/cjs/bal-steps.cjs.entry.js +4 -4
  135. package/dist/cjs/bal-tab-item_2.cjs.entry.js +4 -4
  136. package/dist/cjs/bal-textarea.cjs.entry.js +1 -1
  137. package/dist/cjs/bal-time-input.cjs.entry.js +1 -1
  138. package/dist/cjs/baloise-design-system.cjs.js +1 -1
  139. package/dist/cjs/{breakpoints.decorator-a4a5bd7a.js → breakpoints.decorator-f4da1834.js} +1 -1
  140. package/dist/cjs/{breakpoints.subject-fbf85930.js → breakpoints.subject-6fc372a8.js} +1 -1
  141. package/dist/cjs/{form-input-134c5116.js → form-input-b61eb894.js} +14 -0
  142. package/dist/cjs/index.cjs.js +2 -2
  143. package/dist/cjs/initialize-2a19d091.js +1 -1
  144. package/dist/cjs/loader.cjs.js +1 -1
  145. package/dist/cjs/{tokens.esm-aa4bb7f7.js → tokens.esm-cd3fab6c.js} +1 -1
  146. package/dist/cjs/{window-resize.decorator-c7a521b0.js → window-resize.decorator-67e1f4de.js} +1 -1
  147. package/dist/collection/collection-manifest.json +15 -13
  148. package/dist/collection/components/bal-field/bal-field.js +3 -0
  149. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +92 -69
  150. package/dist/collection/components/bal-segment/bal-segment.js +115 -19
  151. package/dist/collection/utils/constants/version.constant.js +1 -1
  152. package/dist/collection/utils/form-input.js +13 -0
  153. package/dist/collection/utils/form-input.spec.js +30 -0
  154. package/dist/collection/utils/mask/context/mask-context.js +2 -2
  155. package/dist/esm/bal-accordion_4.entry.js +2 -2
  156. package/dist/esm/bal-carousel_2.entry.js +4 -4
  157. package/dist/esm/bal-checkbox-button.entry.js +1 -1
  158. package/dist/esm/bal-checkbox_2.entry.js +2 -2
  159. package/dist/esm/bal-content.entry.js +52 -0
  160. package/dist/esm/bal-date-calendar-cell.entry.js +1 -1
  161. package/dist/esm/bal-date-calendar_2.entry.js +4 -5
  162. package/dist/esm/bal-date.entry.js +3 -3
  163. package/dist/esm/bal-datepicker.entry.js +5 -5
  164. package/dist/esm/bal-dropdown.entry.js +2 -2
  165. package/dist/esm/bal-field_5.entry.js +3 -0
  166. package/dist/esm/bal-file-upload.entry.js +2 -2
  167. package/dist/esm/bal-footer.entry.js +2 -2
  168. package/dist/esm/{bal-popover_2.entry.js → bal-hint_5.entry.js} +171 -5
  169. package/dist/esm/bal-input-slider.entry.js +1 -1
  170. package/dist/esm/bal-input-stepper.entry.js +2 -2
  171. package/dist/esm/bal-input.entry.js +1 -1
  172. package/dist/esm/{bal-content_2.entry.js → bal-label.entry.js} +1 -46
  173. package/dist/esm/bal-list_8.entry.js +4 -4
  174. package/dist/esm/bal-logo.entry.js +3 -3
  175. package/dist/esm/bal-nav_8.entry.js +3 -3
  176. package/dist/esm/bal-navbar_5.entry.js +3 -3
  177. package/dist/esm/bal-number-input.entry.js +2 -2
  178. package/dist/esm/bal-option_2.entry.js +1 -1
  179. package/dist/esm/bal-pagination.entry.js +3 -3
  180. package/dist/esm/bal-popup.entry.js +2 -2
  181. package/dist/esm/bal-progress-bar.entry.js +5 -5
  182. package/dist/esm/bal-radio-button.entry.js +1 -1
  183. package/dist/esm/bal-radio_2.entry.js +2 -2
  184. package/dist/esm/bal-segment_2.entry.js +511 -0
  185. package/dist/esm/bal-select_2.entry.js +2 -2
  186. package/dist/esm/bal-shape.entry.js +1 -1
  187. package/dist/esm/bal-steps.entry.js +5 -5
  188. package/dist/esm/bal-tab-item_2.entry.js +5 -5
  189. package/dist/esm/bal-textarea.entry.js +1 -1
  190. package/dist/esm/bal-time-input.entry.js +1 -1
  191. package/dist/esm/baloise-design-system.js +1 -1
  192. package/dist/esm/{breakpoints.decorator-f2ac9963.js → breakpoints.decorator-8a50482f.js} +1 -1
  193. package/dist/esm/{breakpoints.subject-3605e395.js → breakpoints.subject-e3538fe7.js} +1 -1
  194. package/dist/esm/{date-aba2d404.js → date-6e8f5617.js} +1 -1
  195. package/dist/esm/{form-input-28a08ec5.js → form-input-a8fdaaef.js} +14 -1
  196. package/dist/esm/{index.esm-76abd8e3.js → index.esm-cc299511.js} +1 -1
  197. package/dist/esm/index.js +5 -5
  198. package/dist/esm/initialize-e216cfe4.js +1 -1
  199. package/dist/esm/loader.js +1 -1
  200. package/dist/esm/{tokens.esm-337782ae.js → tokens.esm-7cf87670.js} +1 -1
  201. package/dist/esm/{window-resize.decorator-d5198831.js → window-resize.decorator-9c08027e.js} +1 -1
  202. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  203. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  204. package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
  205. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  206. package/dist/esm-es5/bal-content.entry.js +1 -0
  207. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  208. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  209. package/dist/esm-es5/bal-date.entry.js +1 -1
  210. package/dist/esm-es5/bal-datepicker.entry.js +1 -1
  211. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  212. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  213. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  214. package/dist/esm-es5/bal-footer.entry.js +1 -1
  215. package/dist/esm-es5/bal-hint_5.entry.js +1 -0
  216. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  217. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  218. package/dist/esm-es5/bal-input.entry.js +1 -1
  219. package/dist/esm-es5/bal-label.entry.js +1 -0
  220. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  221. package/dist/esm-es5/bal-logo.entry.js +1 -1
  222. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  223. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  224. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  225. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  226. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  227. package/dist/esm-es5/bal-popup.entry.js +1 -1
  228. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  229. package/dist/esm-es5/bal-radio-button.entry.js +1 -1
  230. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  231. package/dist/esm-es5/bal-segment_2.entry.js +1 -0
  232. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  233. package/dist/esm-es5/bal-shape.entry.js +1 -1
  234. package/dist/esm-es5/bal-steps.entry.js +1 -1
  235. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  236. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  237. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  238. package/dist/esm-es5/baloise-design-system.js +1 -1
  239. package/dist/esm-es5/{breakpoints.decorator-f2ac9963.js → breakpoints.decorator-8a50482f.js} +1 -1
  240. package/dist/esm-es5/{breakpoints.subject-3605e395.js → breakpoints.subject-e3538fe7.js} +1 -1
  241. package/dist/esm-es5/{date-aba2d404.js → date-6e8f5617.js} +1 -1
  242. package/dist/esm-es5/{form-input-28a08ec5.js → form-input-a8fdaaef.js} +1 -1
  243. package/dist/esm-es5/{index.esm-76abd8e3.js → index.esm-cc299511.js} +1 -1
  244. package/dist/esm-es5/index.js +1 -1
  245. package/dist/esm-es5/initialize-e216cfe4.js +1 -1
  246. package/dist/esm-es5/loader.js +1 -1
  247. package/dist/esm-es5/{window-resize.decorator-d5198831.js → window-resize.decorator-9c08027e.js} +1 -1
  248. package/dist/types/components/bal-segment/bal-segment-item/bal-segment-item.d.ts +17 -13
  249. package/dist/types/components/bal-segment/bal-segment.d.ts +22 -3
  250. package/dist/types/components/bal-segment/bal-segment.interfaces.d.ts +2 -0
  251. package/dist/types/components.d.ts +7 -19
  252. package/dist/types/utils/form-input.d.ts +3 -0
  253. package/package.json +7 -7
  254. package/dist/baloise-design-system/p-265f9d51c9.system.entry.js +0 -1
  255. package/dist/baloise-design-system/p-370575b8cb.system.entry.js +0 -1
  256. package/dist/baloise-design-system/p-3c25811c44.entry.js +0 -1
  257. package/dist/baloise-design-system/p-487816db33.system.entry.js +0 -1
  258. package/dist/baloise-design-system/p-53e98a0f71.entry.js +0 -1
  259. package/dist/baloise-design-system/p-547aae9610.entry.js +0 -1
  260. package/dist/baloise-design-system/p-5db0544e97.system.entry.js +0 -1
  261. package/dist/baloise-design-system/p-8de1a12660.entry.js +0 -1
  262. package/dist/baloise-design-system/p-a507ff25cb.system.entry.js +0 -1
  263. package/dist/baloise-design-system/p-b8f085f7b5.system.entry.js +0 -1
  264. package/dist/baloise-design-system/p-c1c17f8edc.system.entry.js +0 -1
  265. package/dist/baloise-design-system/p-ced37553e2.entry.js +0 -1
  266. package/dist/baloise-design-system/p-d2ee9b0a.system.js +0 -1
  267. package/dist/baloise-design-system/p-d9d229a026.entry.js +0 -1
  268. package/dist/baloise-design-system/p-e0384bfc0c.entry.js +0 -1
  269. package/dist/baloise-design-system/p-e75ccb92.js +0 -1
  270. package/dist/cjs/bal-hint_3.cjs.entry.js +0 -186
  271. package/dist/cjs/bal-segment-item.cjs.entry.js +0 -156
  272. package/dist/cjs/bal-segment.cjs.entry.js +0 -319
  273. package/dist/esm/bal-hint_3.entry.js +0 -180
  274. package/dist/esm/bal-segment-item.entry.js +0 -152
  275. package/dist/esm/bal-segment.entry.js +0 -315
  276. package/dist/esm-es5/bal-content_2.entry.js +0 -1
  277. package/dist/esm-es5/bal-hint_3.entry.js +0 -1
  278. package/dist/esm-es5/bal-popover_2.entry.js +0 -1
  279. package/dist/esm-es5/bal-segment-item.entry.js +0 -1
  280. package/dist/esm-es5/bal-segment.entry.js +0 -1
  281. /package/dist/baloise-design-system/{p-e1994e2c.js → p-46bed129.js} +0 -0
  282. /package/dist/baloise-design-system/{p-36074466.system.js → p-9ffefe27.system.js} +0 -0
  283. /package/dist/esm-es5/{tokens.esm-337782ae.js → tokens.esm-7cf87670.js} +0 -0
@@ -0,0 +1,511 @@
1
+ import { r as registerInstance, c as createEvent, w as writeTask, h, H as Host, g as getElement } from './index-b6003bc7.js';
2
+ import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
3
+ import { B as BEM } from './bem-8c7d2eb0.js';
4
+ import { L as Logger } from './log-dfd1c19f.js';
5
+ import { e as isSpaceKey, s as isArrowUpKey, y as isArrowLeftKey, q as isArrowDownKey, z as isArrowRightKey, A as isHomeKey, B as isEndKey } from './index.esm-cc299511.js';
6
+ import { s as stopEventBubbling } from './form-input-a8fdaaef.js';
7
+ import { F as FOCUS_KEYS } from './focus-visible-f0cdd043.js';
8
+ import { l as raf, j as addEventListener, r as removeEventListener } from './helpers-c201154e.js';
9
+ import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
10
+ import { L as ListenToFocus } from './focus.decorator-8acd79c3.js';
11
+ import { L as ListenToWindowResize } from './window-resize.decorator-9c08027e.js';
12
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-8a50482f.js';
13
+ import { i as inheritAttributes } from './attributes-4fa7040f.js';
14
+ import './browser-a8073d92.js';
15
+ import './index-82aff103.js';
16
+ import './_commonjsHelpers-1c8beb5f.js';
17
+ import './icons.constant-a7885631.js';
18
+ import './config.utils-6ac6c9bd.js';
19
+ import './listener-04842ae9.js';
20
+ import './breakpoints.subject-e3538fe7.js';
21
+ import './device-8c6d2881.js';
22
+ import './tokens.esm-7cf87670.js';
23
+
24
+ const balSegmentCss = ":root{--bal-segment-background:var(--bal-color-grey-2);--bal-segment-background-invalid:var(--bal-color-danger-1);--bal-segment-item-focus-border:var(--bal-color-border-primary);--bal-segment-item-text-color:var(--bal-color-text-primary);--bal-segment-item-text-color-checked:var(--bal-color-text-primary);--bal-segment-item-text-color-checked-hovered:var(--bal-color-text-primary-hovered);--bal-segment-item-text-color-checked-pressed:var(--bal-color-text-primary-pressed);--bal-segment-item-text-color-invalid:var(--bal-color-text-danger);--bal-segment-item-text-color-invalid-hovered:var(--bal-color-text-danger-hovered);--bal-segment-item-text-color-invalid-pressed:var(--bal-color-text-danger-pressed);--bal-segment-item-text-color-disabled:var(--bal-color-text-grey);--bal-segment-item-text-color-disabled-checked:var(--bal-color-text-grey-dark);--bal-segment-item-divider-background:var(--bal-color-grey);--bal-segment-item-divider-background-invalid:var(--bal-color-danger-2);--bal-segment-item-indicator-background:var(--bal-color-purple-2);--bal-segment-item-indicator-background-invalid:var(--bal-color-danger-4);--bal-segment-item-indicator-background-disabled:var(--bal-color-grey-3)}.bal-segment{display:-ms-flexbox;display:flex;background:var(--bal-segment-background);border-radius:var(--bal-radius-normal);gap:.125rem;gap:.125rem;padding:.25rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-segment--invalid{background:var(--bal-segment-background-invalid)}.bal-segment--vertical{-ms-flex-direction:column;flex-direction:column;width:100%}.bal-segment--vertical .bal-segment-item__button{width:100%;-ms-flex:1;flex:1}.bal-segment--vertical.bal-segment--scrollable{overflow:auto;max-height:240px}.bal-segment--expanded{width:100%;min-width:100%;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.bal-segment--expanded .bal-segment-item,.bal-segment--expanded .bal-segment-item>button{-ms-flex:1;flex:1;width:100%}.bal-segment--expanded .bal-segment-item .bal-content,.bal-segment--expanded .bal-segment-item>button .bal-content{-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";
25
+ const BalSegmentStyle0 = balSegmentCss;
26
+
27
+ const Segment = class {
28
+ constructor(hostRef) {
29
+ registerInstance(this, hostRef);
30
+ this.balFocus = createEvent(this, "balFocus", 7);
31
+ this.balBlur = createEvent(this, "balBlur", 7);
32
+ this.balChange = createEvent(this, "balChange", 7);
33
+ this.balSelect = createEvent(this, "balSelect", 7);
34
+ this.balVertical = createEvent(this, "balVertical", 7);
35
+ /**
36
+ * LISTENERS
37
+ * ------------------------------------------------------
38
+ */
39
+ this.hasFocus = false;
40
+ this.getSegmentItem = (selector) => {
41
+ var _a, _b;
42
+ const items = this.allItems.filter(item => !item.disabled);
43
+ const currIndex = items.findIndex(item => item === document.activeElement.closest('bal-segment-item'));
44
+ switch (selector) {
45
+ case 'current':
46
+ return items[currIndex];
47
+ case 'first':
48
+ return items[0];
49
+ case 'last':
50
+ return items[items.length - 1];
51
+ case 'next':
52
+ return (_a = items[currIndex + 1]) !== null && _a !== void 0 ? _a : items[0];
53
+ case 'previous':
54
+ return (_b = items[currIndex - 1]) !== null && _b !== void 0 ? _b : items[items.length - 1];
55
+ default:
56
+ return null;
57
+ }
58
+ };
59
+ /**
60
+ * PRIVATE EVENT HANDLERS
61
+ * ------------------------------------------------------
62
+ */
63
+ this.onPointerDown = () => {
64
+ this.keyboardMode = false;
65
+ };
66
+ this.onSlottedItemsChange = () => {
67
+ /**
68
+ * When the slotted segment buttons change we need to
69
+ * ensure that the new segment buttons are checked if
70
+ * the value matches the segment button value.
71
+ */
72
+ this.valueChanged(this.value);
73
+ this.defineWidth();
74
+ };
75
+ this.onClick = (ev) => {
76
+ if (this.disabled) {
77
+ return;
78
+ }
79
+ const current = ev.target;
80
+ const previous = this.checked;
81
+ // If the current element is a segment then that means
82
+ // the user tried to swipe to a segment button and
83
+ // click a segment button at the same time so we should
84
+ // not update the checked segment button
85
+ if (current.tagName === 'BAL-SEGMENT') {
86
+ return;
87
+ }
88
+ if (current && current.setFocus) {
89
+ current.setFocus();
90
+ }
91
+ if (previous) {
92
+ this.checkButton(previous, current);
93
+ }
94
+ else {
95
+ this.setCheckedClasses();
96
+ this.checkButton(current, current);
97
+ }
98
+ if (current !== previous) {
99
+ this.emitValueChange();
100
+ }
101
+ };
102
+ this.focusedValue = undefined;
103
+ this.keyboardMode = true;
104
+ this.isVertical = false;
105
+ this.isMobile = false;
106
+ this.maxWidth = 0;
107
+ this.ariaForm = defaultBalAriaForm;
108
+ this.invalid = false;
109
+ this.disabled = false;
110
+ this.vertical = false;
111
+ this.scrollable = false;
112
+ this.expanded = false;
113
+ this.value = undefined;
114
+ }
115
+ createLogger(log) {
116
+ this.log = log;
117
+ }
118
+ disabledChanged() {
119
+ this.allItems.map(item => (item.disabled = this.disabled));
120
+ }
121
+ valueChanged(value) {
122
+ /**
123
+ * `balSelect` is emitted every time the value changes (internal or external changes).
124
+ * Used by `bal-segment-item` to determine if the button should be checked.
125
+ */
126
+ this.balSelect.emit(value);
127
+ }
128
+ /**
129
+ * LIFECYCLE
130
+ * ------------------------------------------------------
131
+ */
132
+ connectedCallback() {
133
+ this.el.addEventListener('touchstart', this.onPointerDown);
134
+ this.el.addEventListener('mousedown', this.onPointerDown);
135
+ this.disabledChanged();
136
+ }
137
+ disconnectedCallback() {
138
+ this.el.removeEventListener('touchstart', this.onPointerDown);
139
+ this.el.removeEventListener('mousedown', this.onPointerDown);
140
+ }
141
+ async componentDidLoad() {
142
+ this.setCheckedClasses();
143
+ this.defineWidth();
144
+ }
145
+ focusInListener(ev) {
146
+ this.balFocus.emit(ev);
147
+ }
148
+ focusOutListener(ev) {
149
+ this.balBlur.emit(ev);
150
+ }
151
+ breakpointListener(breakpoints) {
152
+ this.isMobile = breakpoints.mobile;
153
+ }
154
+ windowResizeListener() {
155
+ if (this.vertical === false && this.maxWidth > 0) {
156
+ const parent = this.el.parentElement.getBoundingClientRect();
157
+ if (parent.width < this.maxWidth) {
158
+ //
159
+ // element in horizontal is to big
160
+ this.emitVerticalChange(true);
161
+ }
162
+ else {
163
+ //
164
+ // element has enough space in parent element
165
+ this.emitVerticalChange(false);
166
+ }
167
+ }
168
+ else {
169
+ this.emitVerticalChange(true);
170
+ }
171
+ }
172
+ listenOnKeyDownOutside() {
173
+ this.keyboardMode = true;
174
+ }
175
+ listenOnKeyDown(ev) {
176
+ this.keyboardMode = FOCUS_KEYS.includes(ev.key);
177
+ let current;
178
+ if (isSpaceKey(ev)) {
179
+ stopEventBubbling(ev);
180
+ current = this.getSegmentItem('current');
181
+ this.value = current.value;
182
+ }
183
+ else if (isArrowUpKey(ev) || isArrowLeftKey(ev)) {
184
+ stopEventBubbling(ev);
185
+ current = this.getSegmentItem('previous');
186
+ }
187
+ else if (isArrowDownKey(ev) || isArrowRightKey(ev)) {
188
+ stopEventBubbling(ev);
189
+ current = this.getSegmentItem('next');
190
+ }
191
+ else if (isHomeKey(ev)) {
192
+ stopEventBubbling(ev);
193
+ current = this.getSegmentItem('first');
194
+ }
195
+ else if (isEndKey(ev)) {
196
+ stopEventBubbling(ev);
197
+ current = this.getSegmentItem('last');
198
+ }
199
+ if (!current) {
200
+ return;
201
+ }
202
+ const previous = this.checked;
203
+ if (current !== previous) {
204
+ this.checkButton(previous, current);
205
+ this.emitValueChange();
206
+ }
207
+ if (current) {
208
+ current.setFocus();
209
+ }
210
+ }
211
+ /**
212
+ * PUBLIC METHODS
213
+ * ------------------------------------------------------
214
+ */
215
+ /**
216
+ * @internal
217
+ */
218
+ async setAriaForm(ariaForm) {
219
+ this.ariaForm = Object.assign({}, ariaForm);
220
+ }
221
+ /**
222
+ * GETTERS
223
+ * ------------------------------------------------------
224
+ */
225
+ get allItems() {
226
+ return Array.from(this.el.querySelectorAll('bal-segment-item'));
227
+ }
228
+ get checked() {
229
+ return this.allItems.find(item => item.value === this.value);
230
+ }
231
+ /**
232
+ * PRIVATE METHODS
233
+ * ------------------------------------------------------
234
+ */
235
+ emitValueChange() {
236
+ this.balChange.emit(this.value);
237
+ }
238
+ emitVerticalChange(isVertical) {
239
+ if (this.isVertical !== isVertical) {
240
+ this.isVertical = isVertical;
241
+ this.balVertical.emit(this.isVertical);
242
+ }
243
+ }
244
+ defineWidth() {
245
+ raf(() => {
246
+ if (this.isVertical === false) {
247
+ const childRect = this.el.getBoundingClientRect();
248
+ this.maxWidth = childRect.width;
249
+ }
250
+ this.windowResizeListener();
251
+ });
252
+ }
253
+ getIndicator(item) {
254
+ if (item) {
255
+ const root = item.shadowRoot || item;
256
+ return root.querySelector('.bal-segment-item__indicator');
257
+ }
258
+ return null;
259
+ }
260
+ checkButton(previous, current) {
261
+ const previousIndicator = this.getIndicator(previous);
262
+ const currentIndicator = this.getIndicator(current);
263
+ if (previousIndicator === null || currentIndicator === null) {
264
+ return;
265
+ }
266
+ const previousClientRect = previousIndicator.getBoundingClientRect();
267
+ const currentClientRect = currentIndicator.getBoundingClientRect();
268
+ const widthDelta = previousClientRect.width / currentClientRect.width;
269
+ const xPosition = previousClientRect.left - currentClientRect.left;
270
+ // Scale the indicator width to match the previous indicator width
271
+ // and translate it on top of the previous indicator
272
+ let transform = `translate3d(${xPosition}px, 0, 0) scaleX(${widthDelta})`;
273
+ if (this.isVertical) {
274
+ const heightDelta = previousClientRect.height / currentClientRect.height;
275
+ const yPosition = previousClientRect.top - currentClientRect.top;
276
+ // Scale the indicator width to match the previous indicator width
277
+ // and translate it on top of the previous indicator
278
+ transform = `translate3d(0, ${yPosition}px, 0) scaleY(${heightDelta})`;
279
+ }
280
+ writeTask(() => {
281
+ // Remove the transition before positioning on top of the previous indicator
282
+ currentIndicator.classList.remove('bal-segment-item__indicator--animated');
283
+ currentIndicator.style.setProperty('transform', transform);
284
+ // Force a repaint to ensure the transform happens
285
+ currentIndicator.getBoundingClientRect();
286
+ // Add the transition to move the indicator into place
287
+ currentIndicator.classList.add('bal-segment-item__indicator--animated');
288
+ // Remove the transform to slide the indicator back to the button clicked
289
+ currentIndicator.style.setProperty('transform', '');
290
+ });
291
+ this.value = current.value;
292
+ this.setCheckedClasses();
293
+ }
294
+ setCheckedClasses() {
295
+ const items = this.allItems;
296
+ const index = items.findIndex(item => item.value === this.value);
297
+ const next = index + 1;
298
+ const previous = index - 1;
299
+ for (const item of items) {
300
+ item.classList.remove('bal-segment-item--after-checked');
301
+ item.classList.remove('bal-segment-item--before-checked');
302
+ }
303
+ if (next < items.length) {
304
+ items[next].classList.add('bal-segment-item--after-checked');
305
+ }
306
+ if (previous < items.length && previous >= 0) {
307
+ items[previous].classList.add('bal-segment-item--before-checked');
308
+ }
309
+ }
310
+ /**
311
+ * RENDER
312
+ * ------------------------------------------------------
313
+ */
314
+ render() {
315
+ const { invalid, isVertical, scrollable, keyboardMode, expanded, isMobile, disabled } = this;
316
+ const block = BEM.block('segment');
317
+ return (h(Host, { role: "radiogroup", "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, class: Object.assign(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('disabled').class(disabled)), block.modifier('expanded').class((expanded || isMobile) && !isVertical)), onClick: this.onClick }, h("slot", { onSlotchange: this.onSlottedItemsChange })));
318
+ }
319
+ get el() { return getElement(this); }
320
+ static get watchers() { return {
321
+ "disabled": ["disabledChanged"],
322
+ "value": ["valueChanged"]
323
+ }; }
324
+ };
325
+ __decorate([
326
+ Logger('bal-segment'),
327
+ __metadata("design:type", Function),
328
+ __metadata("design:paramtypes", [Function]),
329
+ __metadata("design:returntype", void 0)
330
+ ], Segment.prototype, "createLogger", null);
331
+ __decorate([
332
+ ListenToFocus(),
333
+ __metadata("design:type", Function),
334
+ __metadata("design:paramtypes", [FocusEvent]),
335
+ __metadata("design:returntype", void 0)
336
+ ], Segment.prototype, "focusInListener", null);
337
+ __decorate([
338
+ ListenToFocus(),
339
+ __metadata("design:type", Function),
340
+ __metadata("design:paramtypes", [FocusEvent]),
341
+ __metadata("design:returntype", void 0)
342
+ ], Segment.prototype, "focusOutListener", null);
343
+ __decorate([
344
+ ListenToBreakpoints(),
345
+ __metadata("design:type", Function),
346
+ __metadata("design:paramtypes", [Object]),
347
+ __metadata("design:returntype", void 0)
348
+ ], Segment.prototype, "breakpointListener", null);
349
+ __decorate([
350
+ ListenToWindowResize(),
351
+ __metadata("design:type", Function),
352
+ __metadata("design:paramtypes", []),
353
+ __metadata("design:returntype", void 0)
354
+ ], Segment.prototype, "windowResizeListener", null);
355
+ Segment.style = BalSegmentStyle0;
356
+
357
+ const balSegmentItemCss = ":root{--bal-segment-background:var(--bal-color-grey-2);--bal-segment-background-invalid:var(--bal-color-danger-1);--bal-segment-item-focus-border:var(--bal-color-border-primary);--bal-segment-item-text-color:var(--bal-color-text-primary);--bal-segment-item-text-color-checked:var(--bal-color-text-primary);--bal-segment-item-text-color-checked-hovered:var(--bal-color-text-primary-hovered);--bal-segment-item-text-color-checked-pressed:var(--bal-color-text-primary-pressed);--bal-segment-item-text-color-invalid:var(--bal-color-text-danger);--bal-segment-item-text-color-invalid-hovered:var(--bal-color-text-danger-hovered);--bal-segment-item-text-color-invalid-pressed:var(--bal-color-text-danger-pressed);--bal-segment-item-text-color-disabled:var(--bal-color-text-grey);--bal-segment-item-text-color-disabled-checked:var(--bal-color-text-grey-dark);--bal-segment-item-divider-background:var(--bal-color-grey);--bal-segment-item-divider-background-invalid:var(--bal-color-danger-2);--bal-segment-item-indicator-background:var(--bal-color-purple-2);--bal-segment-item-indicator-background-invalid:var(--bal-color-danger-4);--bal-segment-item-indicator-background-disabled:var(--bal-color-grey-3)}.bal-segment-item{display:block;position:relative;height:auto;text-decoration:none;text-overflow:ellipsis;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.bal-segment-item--disabled{cursor:default !important;pointer-events:none !important}.bal-segment-item__button{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:2.5rem;min-width:3rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1;padding-top:.375rem;padding-bottom:.375rem;padding-left:20px;padding-right:20px;outline:none;border-color:rgba(0,0,0,0);border-width:var(--bal-border-width-normal);border-style:solid;border-radius:var(--bal-radius-normal);background:rgba(0,0,0,0);font-size:var(--bal-text-size-normal);font-weight:var(--bal-font-weight-bold);color:var(--bal-segment-item-text-color);overflow:hidden;position:relative;contain:content;pointer-events:none;cursor:pointer;z-index:2}.bal-segment-item__button--vertical{padding-left:.75rem;padding-right:.75rem}.bal-segment-item__button span{font-size:var(--bal-text-size-small);font-weight:var(--bal-font-weight-regular)}.bal-segment-item__button{will-change:color,padding;-webkit-transition:color 160ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 160ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition:padding 160ms cubic-bezier(0.4, 0, 0.2, 1);transition:padding 160ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{content:\"\";position:absolute;background:var(--bal-segment-item-divider-background);border-radius:var(--bal-radius-normal)}.bal-segment-item:not(.bal-segment-item--vertical):not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{top:2px;bottom:2px;right:-1px;width:2px}.bal-segment-item.bal-segment-item--vertical:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{left:2px;right:2px;bottom:-1px;height:2px}.bal-segment-item--invalid:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{background:var(--bal-segment-item-divider-background-invalid)}.bal-segment-item__indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;border-radius:var(--bal-radius-normal);background:var(--bal-segment-item-indicator-background);top:0;left:0}.bal-segment-item__indicator--vertical{-webkit-transform-origin:top;transform-origin:top}.bal-segment-item__indicator--invalid{background:var(--bal-segment-item-indicator-background-invalid)}.bal-segment-item__indicator--background{min-width:100%;min-height:100%;-webkit-transform:none;transform:none;pointer-events:none}.bal-segment-item__indicator--animated{will-change:transform,opacity,top,bottom,left,right,min-width,min-heigth;-webkit-transition:min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1),min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease;transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1),min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item__indicator--checked{opacity:1}.bal-segment-item:active .bal-segment-item__indicator{min-width:calc(100% - 4px);min-height:calc(100% - 4px);top:2px !important;bottom:2px !important;left:2px !important;right:2px !important}.bal-segment-item__button__icon{position:absolute !important;opacity:0;width:0 !important;-webkit-transform:translateX(0.1rem);transform:translateX(0.1rem);pointer-events:none !important;cursor:inherit;will-change:transform,opacity}.bal-segment-item__button__icon:not(.bal-segment-item__button__icon--vertical){left:10px}.bal-segment-item__button__icon--vertical{right:10px}.bal-segment-item__button__icon--animated{opacity:1;width:.875rem !important;-webkit-transform:translateX(-4px);transform:translateX(-4px);-webkit-transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),transform 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item__button--checked{color:var(--bal-segment-item-text-color-checked);padding-right:40px}.bal-segment-item__button--checked:not(.bal-segment-item__button--vertical){padding-left:26px;padding-right:12px}@media (hover: hover)and (pointer: fine){.bal-segment-item:not(.bal-segment-item--disabled):hover .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-checked-hovered)}}.bal-segment-item:not(.bal-segment-item--disabled):active .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-checked-pressed)}.bal-segment--keyboard .bal-segment-item__button:not(.bal-segment-item__button--disabled):focus-visible,.bal-segment--keyboard .bal-segment-item__button--focused:not(.bal-segment-item__button--disabled){border-color:var(--bal-segment-item-focus-border);border-width:var(--bal-border-width-normal);border-style:solid;-webkit-transition:border 300ms ease-in-out;transition:border 300ms ease-in-out}.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled) .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid)}@media (hover: hover)and (pointer: fine){.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled):hover .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid-hovered)}}.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled):active .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid-pressed)}.bal-segment-item__button--invalid.bal-segment-item__button--checked{color:var(--bal-color-text-white)}.bal-segment-item__button--disabled{background:rgba(0,0,0,0);color:var(--bal-segment-item-text-color-disabled)}.bal-segment-item__button--disabled.bal-segment-item__button--checked{background:var(--bal-segment-item-indicator-background-disabled);color:var(--bal-segment-item-text-color-disabled-checked)}.bal-segment-item__button__slot--hidden{display:none !important}";
358
+ const BalSegmentItemStyle0 = balSegmentItemCss;
359
+
360
+ let SegmentItemIds = 0;
361
+ const SegmentItem = class {
362
+ constructor(hostRef) {
363
+ registerInstance(this, hostRef);
364
+ this.segmentEl = null;
365
+ this.inheritedAttributes = {};
366
+ this.internalId = SegmentItemIds++;
367
+ this.inputId = `bal-si-${this.internalId}`;
368
+ this.updateVertical = (ev) => {
369
+ this.isVertical = ev.detail;
370
+ };
371
+ this.updateState = () => {
372
+ const { segmentEl } = this;
373
+ if (segmentEl) {
374
+ if (segmentEl.value === '' || segmentEl.value === undefined || segmentEl.value === null) {
375
+ const items = this.allAvailableOptions;
376
+ if (items.length > 0) {
377
+ const first = items[0];
378
+ this.isFocusable = first === this.el;
379
+ }
380
+ }
381
+ else {
382
+ this.checked = segmentEl.value === this.value;
383
+ this.isFocusable = segmentEl.value === this.value;
384
+ }
385
+ if (segmentEl.disabled) {
386
+ this.disabled = true;
387
+ }
388
+ this.isLast = segmentEl.lastElementChild === this.el;
389
+ this.isFirst = segmentEl.firstElementChild === this.el;
390
+ this.calculateEmptyValue();
391
+ }
392
+ };
393
+ this.onSlottedItemsChange = () => {
394
+ /**
395
+ * When the slotted segment buttons change we need to
396
+ * ensure that the new segment buttons are checked if
397
+ * the value matches the segment button value.
398
+ */
399
+ this.checkSlotContent();
400
+ };
401
+ this.hasSlotContent = false;
402
+ this.isFocusable = false;
403
+ this.isVertical = false;
404
+ this.isLast = false;
405
+ this.isFirst = false;
406
+ this.hasEmptyValue = true;
407
+ this.ariaForm = defaultBalAriaForm;
408
+ this.disabled = false;
409
+ this.invalid = false;
410
+ this.focused = false;
411
+ this.checked = false;
412
+ this.label = '';
413
+ this.value = 'bal-si-' + this.internalId;
414
+ }
415
+ valueChanged(newValue, oldValue) {
416
+ if (newValue !== oldValue) {
417
+ this.updateState();
418
+ }
419
+ }
420
+ componentWillLoad() {
421
+ this.inheritedAttributes = Object.assign({}, inheritAttributes(this.el, ['aria-label']));
422
+ }
423
+ componentDidLoad() {
424
+ const segmentEl = (this.segmentEl = this.el.closest('bal-segment'));
425
+ if (segmentEl) {
426
+ addEventListener(segmentEl, 'balSelect', this.updateState);
427
+ addEventListener(segmentEl, 'balVertical', this.updateVertical);
428
+ }
429
+ raf(() => {
430
+ this.checkSlotContent();
431
+ this.updateState();
432
+ });
433
+ }
434
+ disconnectedCallback() {
435
+ const segmentEl = this.segmentEl;
436
+ if (segmentEl) {
437
+ removeEventListener(segmentEl, 'balSelect', this.updateState);
438
+ removeEventListener(segmentEl, 'balVertical', this.updateVertical);
439
+ this.segmentEl = null;
440
+ }
441
+ }
442
+ calculateEmptyValue() {
443
+ if (this.segmentEl) {
444
+ const segments = Array.from(this.segmentEl.querySelectorAll('bal-segment-item'));
445
+ this.hasEmptyValue = !segments.some(item => item.value === this.segmentEl.value);
446
+ }
447
+ else {
448
+ this.hasEmptyValue = false;
449
+ }
450
+ }
451
+ /**
452
+ * @internal
453
+ * Focuses the native <button> element
454
+ * inside of ion-segment-button.
455
+ */
456
+ async setFocus() {
457
+ const { nativeEl } = this;
458
+ if (nativeEl !== undefined) {
459
+ nativeEl.focus();
460
+ }
461
+ }
462
+ /**
463
+ * @internal
464
+ */
465
+ async setAriaForm(ariaForm) {
466
+ this.ariaForm = Object.assign({}, ariaForm);
467
+ }
468
+ get allAvailableOptions() {
469
+ return this.allOptions.filter(item => !item.disabled);
470
+ }
471
+ get allOptions() {
472
+ const { segmentEl } = this;
473
+ if (segmentEl) {
474
+ return Array.from(segmentEl.querySelectorAll('bal-segment-item'));
475
+ }
476
+ return [];
477
+ }
478
+ checkSlotContent() {
479
+ const slot = this.el.querySelector('[part="slot"]');
480
+ const children = slot ? slot.innerHTML.trim() : '';
481
+ this.hasSlotContent = children.length > 0;
482
+ }
483
+ render() {
484
+ const { checked, focused, segmentEl, label, isFocusable, isFirst, hasEmptyValue } = this;
485
+ const block = BEM.block('segment-item');
486
+ const buttonBem = block.element('button');
487
+ const indicatorBem = block.element('indicator');
488
+ const invalid = this.invalid || (segmentEl && segmentEl.invalid);
489
+ const disabled = this.disabled || (segmentEl && segmentEl.disabled);
490
+ const vertical = this.isVertical;
491
+ const hasTabindex = (hasEmptyValue && isFirst) || (isFocusable && !disabled);
492
+ const id = (hasTabindex && this.ariaForm.controlId) || this.inputId;
493
+ let buttonAttributes = {};
494
+ if (hasTabindex) {
495
+ let labelId = this.ariaForm.labelId || null;
496
+ labelId = `${labelId || ''} ${id}-lbl`.trim();
497
+ buttonAttributes = {
498
+ 'aria-labelledby': labelId,
499
+ 'aria-describedby': this.ariaForm.messageId,
500
+ };
501
+ }
502
+ return (h(Host, { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('vertical').class(vertical)), block.modifier('disabled').class(disabled)), block.modifier('checked').class(checked)), block.modifier('invalid').class(invalid)), block.modifier('last').class(this.isLast && !checked)) }, h("button", Object.assign({ id: id, role: "radio", "aria-checked": checked ? 'true' : 'false' }, buttonAttributes, { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, buttonBem.class()), buttonBem.modifier('checked').class(checked)), buttonBem.modifier('invalid').class(invalid)), buttonBem.modifier('disabled').class(disabled)), buttonBem.modifier('focused').class(focused)), buttonBem.modifier('vertical').class(vertical)), type: 'button', tabIndex: hasTabindex ? 0 : -1, part: "native", disabled: disabled, ref: el => (this.nativeEl = el) }, this.inheritedAttributes), h("bal-icon", { name: "check", size: "small", class: Object.assign(Object.assign(Object.assign({}, buttonBem.element('icon').class()), buttonBem.element('icon').modifier('animated').class(checked)), buttonBem.element('icon').modifier('vertical').class(vertical)), color: disabled ? 'grey-dark' : invalid ? 'white' : 'primary' }), h("bal-stack", { space: "x-small", layout: 'horizontal' }, h("bal-content", { space: "none" }, h("bal-label", { htmlId: `bal-si-${this.internalId}-label` }, label), h("span", { part: "slot", class: Object.assign({}, buttonBem.element('slot').modifier('hidden').class(!this.hasSlotContent)) }, ' ', h("slot", { onSlotchange: this.onSlottedItemsChange }))))), h("div", { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, indicatorBem.class()), indicatorBem.modifier('animated').class()), indicatorBem.modifier('background').class()), indicatorBem.modifier('disabled').class(disabled)), indicatorBem.modifier('invalid').class(invalid)), indicatorBem.modifier('checked').class(checked)), indicatorBem.modifier('vertical').class(vertical)) })));
503
+ }
504
+ get el() { return getElement(this); }
505
+ static get watchers() { return {
506
+ "value": ["valueChanged"]
507
+ }; }
508
+ };
509
+ SegmentItem.style = BalSegmentItemStyle0;
510
+
511
+ export { Segment as bal_segment, SegmentItem as bal_segment_item };
@@ -2,9 +2,9 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
3
3
  import { l as lodash_isnil } from './index-82aff103.js';
4
4
  import { k as rIC, d as waitAfterIdleCallback, e as deepReady, i as isDescendant, h as debounce } from './helpers-c201154e.js';
5
- import { e as isSpaceKey, o as areArraysEqual, q as isArrowDownKey, s as isArrowUpKey, h as isEnterKey, u as isEscapeKey, y as isBackspaceKey } from './index.esm-76abd8e3.js';
5
+ import { e as isSpaceKey, o as areArraysEqual, q as isArrowDownKey, s as isArrowUpKey, h as isEnterKey, u as isEscapeKey, C as isBackspaceKey } from './index.esm-cc299511.js';
6
6
  import { r as removeValue, p as preventDefault, l as length, g as getValues, i as includes, s as startsWith, a as addValue, f as findLabelByValue, b as findOptionByLabel, v as validateAfterBlur } from './utils-9fbab1d3.js';
7
- import { s as stopEventBubbling } from './form-input-28a08ec5.js';
7
+ import { s as stopEventBubbling } from './form-input-a8fdaaef.js';
8
8
  import { B as BEM } from './bem-8c7d2eb0.js';
9
9
  import { L as Logger } from './log-dfd1c19f.js';
10
10
  import { d as defaultBalAriaForm } from './form-fb8dd9f5.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-b6003bc7.js';
2
2
  import { B as BEM } from './bem-8c7d2eb0.js';
3
- import { f as balColorGrey4, g as balColorYellow3, h as balColorYellow5, i as balColorPurple3, j as balColorPurple6, k as balColorRed3, l as balColorRed5, m as balColorGreen3, n as balColorGreen6 } from './tokens.esm-337782ae.js';
3
+ import { f as balColorGrey4, g as balColorYellow3, h as balColorYellow5, i as balColorPurple3, j as balColorPurple6, k as balColorRed3, l as balColorRed5, m as balColorGreen3, n as balColorGreen6 } from './tokens.esm-7cf87670.js';
4
4
 
5
5
  const balShapeCss = ".bal-shape{display:block;overflow:hidden;border-radius:var(--bal-radius-normal);width:66px;height:66px}@media screen and (min-width: 769px),print{.bal-shape{width:120px;height:120px}}@media screen and (min-width: 1024px){.bal-shape{width:198px;height:198px;border-radius:unset}}.bal-shape--is-rotation-0{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.bal-shape--is-rotation-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.bal-shape--is-rotation-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bal-shape--is-rotation-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}";
6
6
  const BalShapeStyle0 = balShapeCss;
@@ -3,12 +3,12 @@ import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
3
3
  import { m as debounceEvent } from './helpers-c201154e.js';
4
4
  import { B as BEM } from './bem-8c7d2eb0.js';
5
5
  import { L as Logger } from './log-dfd1c19f.js';
6
- import { o as areArraysEqual } from './index.esm-76abd8e3.js';
7
- import { s as stopEventBubbling } from './form-input-28a08ec5.js';
6
+ import { o as areArraysEqual } from './index.esm-cc299511.js';
7
+ import { s as stopEventBubbling } from './form-input-a8fdaaef.js';
8
8
  import { n as newBalStepOption } from './bal-step.util-3905ad56.js';
9
- import { b as balBreakpoints } from './breakpoints.subject-3605e395.js';
9
+ import { b as balBreakpoints } from './breakpoints.subject-e3538fe7.js';
10
10
  import { L as ListenToMutation } from './mutation.decorator-c7b24839.js';
11
- import { L as ListenToBreakpoints } from './breakpoints.decorator-f2ac9963.js';
11
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-8a50482f.js';
12
12
  import './browser-a8073d92.js';
13
13
  import './icons.constant-a7885631.js';
14
14
  import './config.utils-6ac6c9bd.js';
@@ -16,7 +16,7 @@ import './index-82aff103.js';
16
16
  import './_commonjsHelpers-1c8beb5f.js';
17
17
  import './device-8c6d2881.js';
18
18
  import './listener-04842ae9.js';
19
- import './tokens.esm-337782ae.js';
19
+ import './tokens.esm-7cf87670.js';
20
20
 
21
21
  const StepIcon = ({ item, isMobile }) => {
22
22
  const bemEl = BEM.block('steps').element('nav').element('item').element('icon');
@@ -1,17 +1,17 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b6003bc7.js';
2
2
  import { a as inheritTrackingAttributes } from './attributes-4fa7040f.js';
3
3
  import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
4
- import { o as areArraysEqual } from './index.esm-76abd8e3.js';
4
+ import { o as areArraysEqual } from './index.esm-cc299511.js';
5
5
  import { l as raf, e as deepReady, t as transitionEndAsync, m as debounceEvent, n as hasParent, o as isChildOfEventTarget, i as isDescendant, b as waitAfterFramePaint } from './helpers-c201154e.js';
6
6
  import { B as BEM } from './bem-8c7d2eb0.js';
7
7
  import { L as Logger } from './log-dfd1c19f.js';
8
8
  import { n as newBalTabOption } from './bal-tab.util-933315fe.js';
9
- import { s as stopEventBubbling } from './form-input-28a08ec5.js';
9
+ import { s as stopEventBubbling } from './form-input-a8fdaaef.js';
10
10
  import { b as balBrowser } from './browser-a8073d92.js';
11
11
  import { a as getComputedPadding } from './style-ca1bd202.js';
12
- import { b as balBreakpoints } from './breakpoints.subject-3605e395.js';
12
+ import { b as balBreakpoints } from './breakpoints.subject-e3538fe7.js';
13
13
  import { L as ListenToMutation } from './mutation.decorator-c7b24839.js';
14
- import { L as ListenToBreakpoints } from './breakpoints.decorator-f2ac9963.js';
14
+ import { L as ListenToBreakpoints } from './breakpoints.decorator-8a50482f.js';
15
15
  import { L as ListenToResize } from './resize.decorator-f70563b5.js';
16
16
  import { L as ListenToConfig } from './config.decorator-d18abfe1.js';
17
17
  import './index-82aff103.js';
@@ -20,7 +20,7 @@ import './icons.constant-a7885631.js';
20
20
  import './config.utils-6ac6c9bd.js';
21
21
  import './device-8c6d2881.js';
22
22
  import './listener-04842ae9.js';
23
- import './tokens.esm-337782ae.js';
23
+ import './tokens.esm-7cf87670.js';
24
24
 
25
25
  const TabItem = class {
26
26
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b6003bc7.js';
2
- import { g as getInputTarget, i as inputHandleFocus, e as inputHandleBlur, f as inputHandleChange, h as inputHandleClick, a as inputHandleHostClick, b as inputListenOnClick, j as inputHandleReset, c as inputSetFocus, d as inputSetBlur } from './form-input-28a08ec5.js';
2
+ import { g as getInputTarget, i as inputHandleFocus, e as inputHandleBlur, f as inputHandleChange, h as inputHandleClick, a as inputHandleHostClick, b as inputListenOnClick, j as inputHandleReset, c as inputSetFocus, d as inputSetBlur } from './form-input-a8fdaaef.js';
3
3
  import { m as debounceEvent } from './helpers-c201154e.js';
4
4
  import { i as inheritAttributes } from './attributes-4fa7040f.js';
5
5
  import { B as BEM } from './bem-8c7d2eb0.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b6003bc7.js';
2
2
  import { _ as __decorate, a as __metadata } from './tslib.es6-654e2c24.js';
3
3
  import { l as lodash_isnil } from './index-82aff103.js';
4
- import { g as getInputTarget, i as inputHandleFocus, e as inputHandleBlur, f as inputHandleChange, s as stopEventBubbling, b as inputListenOnClick, j as inputHandleReset, c as inputSetFocus, d as inputSetBlur } from './form-input-28a08ec5.js';
4
+ import { g as getInputTarget, i as inputHandleFocus, e as inputHandleBlur, f as inputHandleChange, s as stopEventBubbling, b as inputListenOnClick, j as inputHandleReset, c as inputSetFocus, d as inputSetBlur } from './form-input-a8fdaaef.js';
5
5
  import { m as debounceEvent } from './helpers-c201154e.js';
6
6
  import { i as inheritAttributes } from './attributes-4fa7040f.js';
7
7
  import { i as isCtrlOrCommandKey, N as NUMBER_KEYS, A as ACTION_KEYS } from './keys.constant-0eb059e0.js';