@baloise/ds-core 16.0.3 → 16.1.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 (473) hide show
  1. package/components/all.d.ts +234 -0
  2. package/components/all.js +350 -0
  3. package/components/aria.js +3 -0
  4. package/components/bal-accordion-details.js +4 -4
  5. package/components/bal-card.js +2 -2
  6. package/components/bal-card2.js +3 -3
  7. package/components/bal-carousel2.js +1 -1
  8. package/components/bal-checkbox-button.js +6 -6
  9. package/components/bal-checkbox-group.js +1 -1
  10. package/components/bal-checkbox2.js +3 -2
  11. package/components/bal-close2.js +1 -1
  12. package/components/bal-content.js +4 -4
  13. package/components/bal-date-calendar-cell.js +2 -2
  14. package/components/bal-date-calendar-cell2.js +3 -3
  15. package/components/bal-date-calendar2.js +3 -3
  16. package/components/bal-datepicker.js +3 -3
  17. package/components/bal-divider.js +4 -4
  18. package/components/bal-dropdown.d.ts +11 -0
  19. package/components/bal-dropdown.js +710 -0
  20. package/components/bal-field.js +12 -2
  21. package/components/bal-file-upload.js +1 -1
  22. package/components/bal-footer.js +4 -4
  23. package/components/bal-input-slider.js +1 -1
  24. package/components/bal-label.js +2 -2
  25. package/components/bal-label2.js +5 -5
  26. package/components/bal-nav-link-grid-col.js +2 -2
  27. package/components/bal-nav-link-grid-col2.js +4 -4
  28. package/components/bal-nav-link-grid.js +2 -2
  29. package/components/bal-nav-link-grid2.js +4 -4
  30. package/components/bal-nav-link-group.js +4 -4
  31. package/components/bal-nav-link.js +2 -2
  32. package/components/bal-nav-link2.js +4 -4
  33. package/components/bal-nav.js +8 -8
  34. package/components/bal-notices.js +3 -3
  35. package/components/bal-number-input.js +31 -13
  36. package/components/bal-option-list.d.ts +11 -0
  37. package/components/bal-option-list.js +459 -0
  38. package/components/bal-option.d.ts +11 -0
  39. package/components/bal-option.js +171 -0
  40. package/components/bal-popup.js +1 -1
  41. package/components/bal-radio-button.js +5 -5
  42. package/components/bal-radio-group.js +1 -1
  43. package/components/bal-radio2.js +1 -1
  44. package/components/bal-select2.js +4 -4
  45. package/components/bal-spinner2.js +54 -6
  46. package/components/bal-stack.js +2 -2
  47. package/components/bal-stack2.js +4 -4
  48. package/components/bal-steps.js +1 -1
  49. package/components/bal-tabs2.js +2 -2
  50. package/components/bal-tag2.js +1 -1
  51. package/components/config.default.js +1 -0
  52. package/components/date.js +5 -1
  53. package/components/index.esm.js +1 -1
  54. package/components/index.js +9 -1
  55. package/components/option.js +46 -0
  56. package/components/tokens.esm.js +1 -1
  57. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  58. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  59. package/dist/baloise-design-system/index.esm.js +1 -1
  60. package/dist/baloise-design-system/p-013b4c72.system.js +1 -0
  61. package/dist/baloise-design-system/p-0639833837.system.entry.js +1 -0
  62. package/dist/baloise-design-system/{p-88852ce68d.system.entry.js → p-06e9a468fc.system.entry.js} +1 -1
  63. package/dist/baloise-design-system/p-0793c0159f.system.entry.js +1 -0
  64. package/dist/baloise-design-system/{p-720c90ea90.system.entry.js → p-0fed7a5f26.system.entry.js} +1 -1
  65. package/dist/baloise-design-system/p-10b8686d91.entry.js +1 -0
  66. package/dist/baloise-design-system/{p-e113196061.system.entry.js → p-126c79c9e9.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-bb2ec275bb.system.entry.js → p-12bb6ea3e7.system.entry.js} +1 -1
  68. package/dist/baloise-design-system/p-12bcc7da.js +1 -0
  69. package/dist/baloise-design-system/{p-762f45ff6f.entry.js → p-135c5759c5.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-62770d5d.system.js → p-14ae0709.system.js} +1 -1
  71. package/dist/baloise-design-system/{p-3bbf43bb.system.js → p-1509eaa7.system.js} +1 -1
  72. package/dist/baloise-design-system/{p-946e9e784d.system.entry.js → p-1659bb968c.system.entry.js} +1 -1
  73. package/dist/baloise-design-system/p-187f98a1.system.js +1 -0
  74. package/dist/baloise-design-system/p-18e2e391e0.system.entry.js +1 -0
  75. package/dist/baloise-design-system/p-1de6b20b1c.system.entry.js +1 -0
  76. package/dist/baloise-design-system/{p-1c2dee82c4.system.entry.js → p-222bc9b30e.system.entry.js} +1 -1
  77. package/dist/baloise-design-system/p-22b041a511.entry.js +1 -0
  78. package/dist/baloise-design-system/{p-f62222a85d.entry.js → p-25da216e4f.entry.js} +1 -1
  79. package/dist/baloise-design-system/p-25e0d82e89.system.entry.js +1 -0
  80. package/dist/baloise-design-system/p-2d82b78410.entry.js +1 -0
  81. package/dist/baloise-design-system/{p-a0db085f89.entry.js → p-2d8bd11634.entry.js} +1 -1
  82. package/dist/baloise-design-system/p-2db9030ad9.system.entry.js +1 -0
  83. package/dist/baloise-design-system/{p-8444cfcbed.system.entry.js → p-3128128969.system.entry.js} +1 -1
  84. package/dist/baloise-design-system/{p-9a5cb17cb9.entry.js → p-39bc49bc3d.entry.js} +1 -1
  85. package/dist/baloise-design-system/p-3bad0907.system.js +1 -0
  86. package/dist/baloise-design-system/{p-12786937.js → p-3f1c49d0.js} +1 -1
  87. package/dist/baloise-design-system/{p-33fca72859.entry.js → p-4aba4c66ee.entry.js} +1 -1
  88. package/dist/baloise-design-system/{p-9e4fcb76.js → p-54f81c32.js} +1 -1
  89. package/dist/baloise-design-system/{p-922fd809.system.js → p-55faac1d.system.js} +1 -1
  90. package/dist/baloise-design-system/p-5b571a9fb1.entry.js +1 -0
  91. package/dist/baloise-design-system/{p-671a986aff.entry.js → p-60e94f8144.entry.js} +1 -1
  92. package/dist/baloise-design-system/{p-06e959a11a.entry.js → p-6164f99bb8.entry.js} +1 -1
  93. package/dist/baloise-design-system/p-62ab1f0ae2.system.entry.js +1 -0
  94. package/dist/baloise-design-system/{p-6b80dee13f.system.entry.js → p-62b792a34b.system.entry.js} +1 -1
  95. package/dist/baloise-design-system/{p-8998eeb2a7.system.entry.js → p-74f4b9818b.system.entry.js} +1 -1
  96. package/dist/baloise-design-system/p-77f5e777e6.entry.js +1 -0
  97. package/dist/baloise-design-system/p-7c42a363f3.entry.js +1 -0
  98. package/dist/baloise-design-system/p-7cd815d3e8.entry.js +1 -0
  99. package/dist/baloise-design-system/p-80b45dd4d6.system.entry.js +1 -0
  100. package/dist/baloise-design-system/{p-af5b58ab1c.system.entry.js → p-8870e1f3e0.system.entry.js} +1 -1
  101. package/dist/baloise-design-system/{p-3cb83cf9.system.js → p-8a87b9a8.system.js} +1 -1
  102. package/dist/baloise-design-system/{p-a5568e05fb.system.entry.js → p-8c209ac52b.system.entry.js} +1 -1
  103. package/dist/baloise-design-system/p-8f77c423ad.entry.js +1 -0
  104. package/dist/baloise-design-system/{p-32bc2b926a.entry.js → p-8fe94b9e21.entry.js} +1 -1
  105. package/dist/baloise-design-system/{p-1b76afbf.js → p-94efe2aa.js} +1 -1
  106. package/dist/baloise-design-system/{p-0ce86357bd.entry.js → p-9658f4a66f.entry.js} +1 -1
  107. package/dist/baloise-design-system/p-9a0640d065.entry.js +1 -0
  108. package/dist/baloise-design-system/{p-c3bd665a8b.entry.js → p-9e167705ca.entry.js} +1 -1
  109. package/dist/baloise-design-system/p-9ecce014c2.system.entry.js +1 -0
  110. package/dist/baloise-design-system/p-a19d1e1d.js +1 -0
  111. package/dist/baloise-design-system/p-a7e5ee75e2.entry.js +1 -0
  112. package/dist/baloise-design-system/{p-9cc5ae9e5c.entry.js → p-a8022ee701.entry.js} +1 -1
  113. package/dist/baloise-design-system/p-a97cbb7dda.entry.js +1 -0
  114. package/dist/baloise-design-system/p-acb5cea0.system.js +1 -0
  115. package/dist/baloise-design-system/p-ae28b86fe5.entry.js +1 -0
  116. package/dist/baloise-design-system/p-b779742f50.entry.js +1 -0
  117. package/dist/baloise-design-system/{p-cee3cd08.js → p-b8d99064.js} +1 -1
  118. package/dist/baloise-design-system/p-b8f085f7b5.system.entry.js +1 -0
  119. package/dist/baloise-design-system/p-b97d9336a7.system.entry.js +1 -0
  120. package/dist/baloise-design-system/{p-b3a2290c0d.entry.js → p-b9f197815f.entry.js} +1 -1
  121. package/dist/baloise-design-system/{p-9e7610a20f.system.entry.js → p-bb3914c87a.system.entry.js} +1 -1
  122. package/dist/baloise-design-system/p-bb6304d0.system.js +1 -0
  123. package/dist/baloise-design-system/p-bcbb5b59f3.system.entry.js +1 -0
  124. package/dist/baloise-design-system/p-bcca1ed3.system.js +1 -0
  125. package/dist/baloise-design-system/{p-1cdfb98b54.entry.js → p-bcebf41b74.entry.js} +1 -1
  126. package/dist/baloise-design-system/p-bd5de78b2c.entry.js +1 -0
  127. package/dist/baloise-design-system/p-c304d5fa9c.entry.js +1 -0
  128. package/dist/baloise-design-system/{p-8177dec3.system.js → p-cc61fac8.system.js} +1 -1
  129. package/dist/baloise-design-system/{p-ac825842e4.system.entry.js → p-cd8e72d87f.system.entry.js} +1 -1
  130. package/dist/baloise-design-system/{p-a9300668b4.system.entry.js → p-d16557d133.system.entry.js} +1 -1
  131. package/dist/baloise-design-system/p-d7a758b3.js +1 -0
  132. package/dist/baloise-design-system/{p-33cd610840.system.entry.js → p-d919753ed0.system.entry.js} +1 -1
  133. package/dist/baloise-design-system/p-d9b38501.js +1 -0
  134. package/dist/baloise-design-system/p-d9d229a026.entry.js +1 -0
  135. package/dist/baloise-design-system/{p-13227d037a.system.entry.js → p-dbc2d22240.system.entry.js} +1 -1
  136. package/dist/baloise-design-system/{p-aacb0cee66.system.entry.js → p-dce3764ee5.system.entry.js} +1 -1
  137. package/dist/baloise-design-system/p-ddf9b2a289.entry.js +1 -0
  138. package/dist/baloise-design-system/{p-49a8bfb790.system.entry.js → p-e4de708de1.system.entry.js} +1 -1
  139. package/dist/baloise-design-system/p-e60c936359.system.entry.js +1 -0
  140. package/dist/baloise-design-system/p-e78a6409.js +1 -0
  141. package/dist/baloise-design-system/{p-f55c50abfa.system.entry.js → p-f076d1ed4f.system.entry.js} +1 -1
  142. package/dist/baloise-design-system/{p-b34e0daa6e.system.entry.js → p-f0b43f1452.system.entry.js} +1 -1
  143. package/dist/baloise-design-system/p-f12abda2db.entry.js +1 -0
  144. package/dist/baloise-design-system/{p-31d9c875c0.system.entry.js → p-f1b95d78af.system.entry.js} +1 -1
  145. package/dist/baloise-design-system/p-f56fb1a197.entry.js +1 -0
  146. package/dist/baloise-design-system/{p-681d41fc97.entry.js → p-f8974d743d.entry.js} +1 -1
  147. package/dist/baloise-design-system/p-f8a98657a1.entry.js +1 -0
  148. package/dist/cjs/{app-globals-d6bc7866.js → app-globals-ae3a8623.js} +1 -1
  149. package/dist/cjs/aria-c8955a5c.js +5 -0
  150. package/dist/cjs/bal-accordion_4.cjs.entry.js +4 -4
  151. package/dist/cjs/bal-card_6.cjs.entry.js +3 -3
  152. package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
  153. package/dist/cjs/bal-checkbox-button.cjs.entry.js +6 -6
  154. package/dist/cjs/bal-checkbox_2.cjs.entry.js +4 -3
  155. package/dist/cjs/bal-close.cjs.entry.js +2 -2
  156. package/dist/cjs/bal-content.cjs.entry.js +4 -4
  157. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +2 -2
  158. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +5 -5
  159. package/dist/cjs/bal-date.cjs.entry.js +2 -2
  160. package/dist/cjs/bal-datepicker.cjs.entry.js +7 -7
  161. package/dist/cjs/bal-divider.cjs.entry.js +4 -4
  162. package/dist/cjs/bal-dropdown.cjs.entry.js +660 -0
  163. package/dist/cjs/bal-field_5.cjs.entry.js +12 -2
  164. package/dist/cjs/bal-file-upload.cjs.entry.js +1 -1
  165. package/dist/cjs/bal-footer.cjs.entry.js +4 -4
  166. package/dist/cjs/bal-hint_3.cjs.entry.js +3 -3
  167. package/dist/cjs/bal-icon.cjs.entry.js +1 -1
  168. package/dist/cjs/bal-input-slider.cjs.entry.js +1 -1
  169. package/dist/cjs/bal-input-stepper.cjs.entry.js +1 -1
  170. package/dist/cjs/bal-label.cjs.entry.js +6 -6
  171. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  172. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  173. package/dist/cjs/bal-nav_8.cjs.entry.js +28 -28
  174. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  175. package/dist/cjs/bal-notices.cjs.entry.js +3 -3
  176. package/dist/cjs/bal-number-input.cjs.entry.js +32 -14
  177. package/dist/cjs/bal-option_2.cjs.entry.js +541 -0
  178. package/dist/cjs/bal-pagination.cjs.entry.js +4 -4
  179. package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
  180. package/dist/cjs/bal-progress-bar.cjs.entry.js +3 -3
  181. package/dist/cjs/bal-radio-button.cjs.entry.js +5 -5
  182. package/dist/cjs/bal-radio_2.cjs.entry.js +2 -2
  183. package/dist/cjs/bal-select_2.cjs.entry.js +3 -3
  184. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  185. package/dist/cjs/bal-spinner.cjs.entry.js +49 -4
  186. package/dist/cjs/bal-stack.cjs.entry.js +4 -4
  187. package/dist/cjs/bal-steps.cjs.entry.js +4 -4
  188. package/dist/cjs/bal-tab-item_2.cjs.entry.js +5 -5
  189. package/dist/cjs/bal-tag_2.cjs.entry.js +1 -1
  190. package/dist/cjs/bal-time-input.cjs.entry.js +1 -1
  191. package/dist/cjs/baloise-design-system.cjs.js +4 -4
  192. package/dist/cjs/{breakpoints.decorator-7f888011.js → breakpoints.decorator-47fd6060.js} +1 -1
  193. package/dist/cjs/{breakpoints.subject-28c980cd.js → breakpoints.subject-66093c8f.js} +1 -1
  194. package/dist/cjs/{config.default-32725178.js → config.default-5bdd6e3d.js} +1 -0
  195. package/dist/cjs/{date-df1d61a8.js → date-3e33b208.js} +5 -1
  196. package/dist/cjs/index.cjs.js +7 -5
  197. package/dist/cjs/{initialize-e38e7028.js → initialize-2a19d091.js} +9 -2
  198. package/dist/cjs/loader.cjs.js +4 -4
  199. package/dist/cjs/option-c33cf2b8.js +49 -0
  200. package/dist/cjs/{tokens.esm-89d0f18d.js → tokens.esm-bb0ef2db.js} +1 -1
  201. package/dist/collection/collection-manifest.json +14 -0
  202. package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +2 -2
  203. package/dist/collection/components/bal-card/bal-card.js +1 -1
  204. package/dist/collection/components/bal-carousel/controls/tab-control.js +1 -1
  205. package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.css +1 -1
  206. package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +3 -3
  207. package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +1 -1
  208. package/dist/collection/components/bal-checkbox/bal-checkbox.js +2 -1
  209. package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -1
  210. package/dist/collection/components/bal-close/bal-close.js +1 -1
  211. package/dist/collection/components/bal-content/bal-content.js +2 -2
  212. package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__gird.js +1 -1
  213. package/dist/collection/components/bal-date/bal-date-calendar/components/bal-date-calendar__list.js +1 -1
  214. package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +1 -1
  215. package/dist/collection/components/bal-datepicker/bal-datepicker.js +3 -3
  216. package/dist/collection/components/bal-divider/bal-divider.js +2 -2
  217. package/dist/collection/components/bal-dropdown/bal-dropdown.css +1 -0
  218. package/dist/collection/components/bal-dropdown/bal-dropdown.interfaces.js +4 -0
  219. package/dist/collection/components/bal-dropdown/bal-dropdown.js +882 -0
  220. package/dist/collection/components/bal-field/bal-field.js +12 -2
  221. package/dist/collection/components/bal-file-upload/components/file-list.js +1 -1
  222. package/dist/collection/components/bal-footer/bal-footer.js +3 -3
  223. package/dist/collection/components/bal-input-slider/bal-input-slider.js +1 -1
  224. package/dist/collection/components/bal-label/bal-label.js +3 -3
  225. package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +2 -2
  226. package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +2 -2
  227. package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +2 -2
  228. package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +2 -2
  229. package/dist/collection/components/bal-nav/bal-nav.js +6 -6
  230. package/dist/collection/components/bal-nav/components/section-list.js +2 -2
  231. package/dist/collection/components/bal-nav/components/service-list.js +2 -2
  232. package/dist/collection/components/bal-notices/bal-notices.js +1 -1
  233. package/dist/collection/components/bal-number-input/bal-number-input.js +5 -0
  234. package/dist/collection/components/bal-number-input/bal-number-input.utils.js +27 -14
  235. package/dist/collection/components/bal-number-input/bal-number-input.utils.spec.js +82 -0
  236. package/dist/collection/components/bal-option/bal-option.css +1 -0
  237. package/dist/collection/components/bal-option/bal-option.interfaces.js +4 -0
  238. package/dist/collection/components/bal-option/bal-option.js +360 -0
  239. package/dist/collection/components/bal-option-list/bal-option-list.css +1 -0
  240. package/dist/collection/components/bal-option-list/bal-option-list.interfaces.js +4 -0
  241. package/dist/collection/components/bal-option-list/bal-option-list.js +939 -0
  242. package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +3 -3
  243. package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +1 -1
  244. package/dist/collection/components/bal-select/bal-select.js +4 -4
  245. package/dist/collection/components/bal-spinner/bal-spinner.css +1 -1
  246. package/dist/collection/components/bal-spinner/bal-spinner.interfaces.js +4 -0
  247. package/dist/collection/components/bal-spinner/bal-spinner.js +83 -4
  248. package/dist/collection/components/bal-stack/bal-stack.js +2 -2
  249. package/dist/collection/components/bal-steps/bal-steps.js +1 -1
  250. package/dist/collection/components/bal-tabs/components/tab-nav.js +1 -1
  251. package/dist/collection/components/bal-tabs/components/tab-select.js +1 -1
  252. package/dist/collection/components/bal-tag/bal-tag.css +1 -1
  253. package/dist/collection/index.js +1 -0
  254. package/dist/collection/utils/aria.js +1 -0
  255. package/dist/collection/utils/config/config.default.js +1 -0
  256. package/dist/collection/utils/config/config.js +7 -0
  257. package/dist/collection/utils/constants/version.constant.js +1 -1
  258. package/dist/collection/utils/date/date.js +5 -1
  259. package/dist/collection/utils/date/date.spec.js +11 -5
  260. package/dist/collection/utils/dropdown/auto-fill.js +38 -0
  261. package/dist/collection/utils/dropdown/component.js +1 -0
  262. package/dist/collection/utils/dropdown/dropdown.i18n.js +52 -0
  263. package/dist/collection/utils/dropdown/events.js +43 -0
  264. package/dist/collection/utils/dropdown/filters.js +10 -0
  265. package/dist/collection/utils/dropdown/focus.js +19 -0
  266. package/dist/collection/utils/dropdown/form-submit.js +35 -0
  267. package/dist/collection/utils/dropdown/icon.js +15 -0
  268. package/dist/collection/utils/dropdown/index.js +13 -0
  269. package/dist/collection/utils/dropdown/input.js +12 -0
  270. package/dist/collection/utils/dropdown/option-list.js +8 -0
  271. package/dist/collection/utils/dropdown/option.js +44 -0
  272. package/dist/collection/utils/dropdown/popup.js +45 -0
  273. package/dist/collection/utils/dropdown/value.js +103 -0
  274. package/dist/esm/{app-globals-89691d80.js → app-globals-b0dd0fc4.js} +1 -1
  275. package/dist/esm/aria-d5877698.js +3 -0
  276. package/dist/esm/bal-accordion_4.entry.js +4 -4
  277. package/dist/esm/bal-card_6.entry.js +3 -3
  278. package/dist/esm/bal-carousel_2.entry.js +5 -5
  279. package/dist/esm/bal-checkbox-button.entry.js +6 -6
  280. package/dist/esm/bal-checkbox_2.entry.js +5 -4
  281. package/dist/esm/bal-close.entry.js +2 -2
  282. package/dist/esm/bal-content.entry.js +4 -4
  283. package/dist/esm/bal-date-calendar-cell.entry.js +2 -2
  284. package/dist/esm/bal-date-calendar_2.entry.js +6 -6
  285. package/dist/esm/bal-date.entry.js +3 -3
  286. package/dist/esm/bal-datepicker.entry.js +8 -8
  287. package/dist/esm/bal-divider.entry.js +4 -4
  288. package/dist/esm/bal-dropdown.entry.js +656 -0
  289. package/dist/esm/bal-field_5.entry.js +12 -2
  290. package/dist/esm/bal-file-upload.entry.js +2 -2
  291. package/dist/esm/bal-footer.entry.js +5 -5
  292. package/dist/esm/bal-hint_3.entry.js +3 -3
  293. package/dist/esm/bal-icon.entry.js +1 -1
  294. package/dist/esm/bal-input-slider.entry.js +1 -1
  295. package/dist/esm/bal-input-stepper.entry.js +2 -2
  296. package/dist/esm/bal-label.entry.js +6 -6
  297. package/dist/esm/bal-list_8.entry.js +3 -3
  298. package/dist/esm/bal-logo.entry.js +3 -3
  299. package/dist/esm/bal-nav_8.entry.js +24 -24
  300. package/dist/esm/bal-navbar_5.entry.js +3 -3
  301. package/dist/esm/bal-notices.entry.js +3 -3
  302. package/dist/esm/bal-number-input.entry.js +33 -15
  303. package/dist/esm/bal-option_2.entry.js +536 -0
  304. package/dist/esm/bal-pagination.entry.js +4 -4
  305. package/dist/esm/bal-popover_2.entry.js +3 -3
  306. package/dist/esm/bal-popup.entry.js +1 -1
  307. package/dist/esm/bal-progress-bar.entry.js +3 -3
  308. package/dist/esm/bal-radio-button.entry.js +5 -5
  309. package/dist/esm/bal-radio_2.entry.js +3 -3
  310. package/dist/esm/bal-select_2.entry.js +4 -4
  311. package/dist/esm/bal-shape.entry.js +1 -1
  312. package/dist/esm/bal-spinner.entry.js +50 -5
  313. package/dist/esm/bal-stack.entry.js +4 -4
  314. package/dist/esm/bal-steps.entry.js +5 -5
  315. package/dist/esm/bal-tab-item_2.entry.js +6 -6
  316. package/dist/esm/bal-tag_2.entry.js +1 -1
  317. package/dist/esm/bal-time-input.entry.js +1 -1
  318. package/dist/esm/baloise-design-system.js +4 -4
  319. package/dist/esm/{breakpoints.decorator-52979d29.js → breakpoints.decorator-021fbaf0.js} +1 -1
  320. package/dist/esm/{breakpoints.subject-64327a3b.js → breakpoints.subject-ef464f89.js} +1 -1
  321. package/dist/esm/{config.default-79f94bf7.js → config.default-7efdc82d.js} +1 -0
  322. package/dist/esm/{date-db6afc26.js → date-38a0b208.js} +6 -2
  323. package/dist/esm/{index.esm-ec4cba26.js → index.esm-83b1f9c4.js} +1 -1
  324. package/dist/esm/index.js +8 -7
  325. package/dist/esm/{initialize-66615dde.js → initialize-e216cfe4.js} +9 -2
  326. package/dist/esm/loader.js +4 -4
  327. package/dist/esm/option-37cb0282.js +46 -0
  328. package/dist/esm/{tokens.esm-12daa3af.js → tokens.esm-aab9bd61.js} +1 -1
  329. package/dist/esm-es5/app-globals-b0dd0fc4.js +1 -0
  330. package/dist/esm-es5/aria-d5877698.js +1 -0
  331. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  332. package/dist/esm-es5/bal-card_6.entry.js +1 -1
  333. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  334. package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
  335. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  336. package/dist/esm-es5/bal-close.entry.js +1 -1
  337. package/dist/esm-es5/bal-content.entry.js +1 -1
  338. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  339. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  340. package/dist/esm-es5/bal-date.entry.js +1 -1
  341. package/dist/esm-es5/bal-datepicker.entry.js +1 -1
  342. package/dist/esm-es5/bal-divider.entry.js +1 -1
  343. package/dist/esm-es5/bal-dropdown.entry.js +1 -0
  344. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  345. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  346. package/dist/esm-es5/bal-footer.entry.js +1 -1
  347. package/dist/esm-es5/bal-hint_3.entry.js +1 -1
  348. package/dist/esm-es5/bal-icon.entry.js +1 -1
  349. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  350. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  351. package/dist/esm-es5/bal-label.entry.js +1 -1
  352. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  353. package/dist/esm-es5/bal-logo.entry.js +1 -1
  354. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  355. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  356. package/dist/esm-es5/bal-notices.entry.js +1 -1
  357. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  358. package/dist/esm-es5/bal-option_2.entry.js +1 -0
  359. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  360. package/dist/esm-es5/bal-popover_2.entry.js +1 -1
  361. package/dist/esm-es5/bal-popup.entry.js +1 -1
  362. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  363. package/dist/esm-es5/bal-radio-button.entry.js +1 -1
  364. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  365. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  366. package/dist/esm-es5/bal-shape.entry.js +1 -1
  367. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  368. package/dist/esm-es5/bal-stack.entry.js +1 -1
  369. package/dist/esm-es5/bal-steps.entry.js +1 -1
  370. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  371. package/dist/esm-es5/bal-tag_2.entry.js +1 -1
  372. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  373. package/dist/esm-es5/baloise-design-system.js +1 -1
  374. package/dist/esm-es5/breakpoints.decorator-021fbaf0.js +1 -0
  375. package/dist/esm-es5/{breakpoints.subject-64327a3b.js → breakpoints.subject-ef464f89.js} +1 -1
  376. package/dist/esm-es5/{config.default-79f94bf7.js → config.default-7efdc82d.js} +1 -1
  377. package/dist/esm-es5/{date-db6afc26.js → date-38a0b208.js} +1 -1
  378. package/dist/esm-es5/{index.esm-ec4cba26.js → index.esm-83b1f9c4.js} +1 -1
  379. package/dist/esm-es5/index.js +1 -1
  380. package/dist/esm-es5/{initialize-66615dde.js → initialize-e216cfe4.js} +1 -1
  381. package/dist/esm-es5/loader.js +1 -1
  382. package/dist/esm-es5/option-37cb0282.js +1 -0
  383. package/dist/html.html-data.json +357 -0
  384. package/dist/types/components/bal-accordion/bal-accordion-details/bal-accordion-details.d.ts +1 -1
  385. package/dist/types/components/bal-card/bal-card.d.ts +1 -1
  386. package/dist/types/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.d.ts +1 -1
  387. package/dist/types/components/bal-content/bal-content.d.ts +1 -1
  388. package/dist/types/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.d.ts +1 -1
  389. package/dist/types/components/bal-divider/bal-divider.d.ts +1 -1
  390. package/dist/types/components/bal-dropdown/bal-dropdown.d.ts +187 -0
  391. package/dist/types/components/bal-dropdown/bal-dropdown.interfaces.d.ts +14 -0
  392. package/dist/types/components/bal-field/bal-field.d.ts +1 -0
  393. package/dist/types/components/bal-label/bal-label.d.ts +1 -1
  394. package/dist/types/components/bal-nav/bal-nav-link/bal-nav-link.d.ts +1 -1
  395. package/dist/types/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.d.ts +1 -1
  396. package/dist/types/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.d.ts +1 -1
  397. package/dist/types/components/bal-nav/bal-nav-link-group/bal-nav-link-group.d.ts +1 -1
  398. package/dist/types/components/bal-nav/bal-nav.d.ts +1 -1
  399. package/dist/types/components/bal-notices/bal-notices.d.ts +1 -1
  400. package/dist/types/components/bal-number-input/bal-number-input.d.ts +1 -0
  401. package/dist/types/components/bal-number-input/bal-number-input.utils.d.ts +3 -1
  402. package/dist/types/components/bal-option/bal-option.d.ts +91 -0
  403. package/dist/types/components/bal-option/bal-option.interfaces.d.ts +19 -0
  404. package/dist/types/components/bal-option-list/bal-option-list.d.ts +168 -0
  405. package/dist/types/components/bal-option-list/bal-option-list.interfaces.d.ts +5 -0
  406. package/dist/types/components/bal-radio/bal-radio-button/bal-radio-button.d.ts +1 -1
  407. package/dist/types/components/bal-select/bal-select.d.ts +1 -1
  408. package/dist/types/components/bal-spinner/bal-spinner.d.ts +14 -2
  409. package/dist/types/components/bal-spinner/bal-spinner.interfaces.d.ts +6 -0
  410. package/dist/types/components/bal-stack/bal-stack.d.ts +1 -1
  411. package/dist/types/components.d.ts +451 -3
  412. package/dist/types/index.d.ts +1 -0
  413. package/dist/types/interfaces.d.ts +4 -0
  414. package/dist/types/utils/aria.d.ts +1 -0
  415. package/dist/types/utils/config/config.d.ts +2 -0
  416. package/dist/types/utils/config/config.types.d.ts +2 -0
  417. package/dist/types/utils/date/date.d.ts +1 -0
  418. package/dist/types/utils/dropdown/auto-fill.d.ts +8 -0
  419. package/dist/types/utils/dropdown/component.d.ts +34 -0
  420. package/dist/types/utils/dropdown/dropdown.i18n.d.ts +8 -0
  421. package/dist/types/utils/dropdown/events.d.ts +13 -0
  422. package/dist/types/utils/dropdown/filters.d.ts +2 -0
  423. package/dist/types/utils/dropdown/focus.d.ts +13 -0
  424. package/dist/types/utils/dropdown/form-submit.d.ts +22 -0
  425. package/dist/types/utils/dropdown/icon.d.ts +13 -0
  426. package/dist/types/utils/dropdown/index.d.ts +13 -0
  427. package/dist/types/utils/dropdown/input.d.ts +27 -0
  428. package/dist/types/utils/dropdown/option-list.d.ts +17 -0
  429. package/dist/types/utils/dropdown/option.d.ts +25 -0
  430. package/dist/types/utils/dropdown/popup.d.ts +9 -0
  431. package/dist/types/utils/dropdown/value.d.ts +28 -0
  432. package/package.json +8 -7
  433. package/dist/baloise-design-system/p-05b55c958d.system.entry.js +0 -1
  434. package/dist/baloise-design-system/p-0d30cbfab8.entry.js +0 -1
  435. package/dist/baloise-design-system/p-15ca43f2.system.js +0 -1
  436. package/dist/baloise-design-system/p-1e0e5892a3.system.entry.js +0 -1
  437. package/dist/baloise-design-system/p-2c3370fdbe.system.entry.js +0 -1
  438. package/dist/baloise-design-system/p-2d10e25c6b.entry.js +0 -1
  439. package/dist/baloise-design-system/p-2dda46c5f8.entry.js +0 -1
  440. package/dist/baloise-design-system/p-34a9557f.system.js +0 -1
  441. package/dist/baloise-design-system/p-34d1472a.system.js +0 -1
  442. package/dist/baloise-design-system/p-3990d97696.entry.js +0 -1
  443. package/dist/baloise-design-system/p-48a2de5d.js +0 -1
  444. package/dist/baloise-design-system/p-4e218ac923.system.entry.js +0 -1
  445. package/dist/baloise-design-system/p-4f4df156.js +0 -1
  446. package/dist/baloise-design-system/p-5eea406ac6.system.entry.js +0 -1
  447. package/dist/baloise-design-system/p-6496dcd5.js +0 -1
  448. package/dist/baloise-design-system/p-67f25817a6.entry.js +0 -1
  449. package/dist/baloise-design-system/p-6dd26958d2.system.entry.js +0 -1
  450. package/dist/baloise-design-system/p-7e180ac10f.system.entry.js +0 -1
  451. package/dist/baloise-design-system/p-8ea27b553e.system.entry.js +0 -1
  452. package/dist/baloise-design-system/p-90c4c1a5c0.system.entry.js +0 -1
  453. package/dist/baloise-design-system/p-99dcda2fcd.entry.js +0 -1
  454. package/dist/baloise-design-system/p-a9d8b71709.entry.js +0 -1
  455. package/dist/baloise-design-system/p-af8604cef2.entry.js +0 -1
  456. package/dist/baloise-design-system/p-b1c7ddc442.system.entry.js +0 -1
  457. package/dist/baloise-design-system/p-b1e3fc0bc8.entry.js +0 -1
  458. package/dist/baloise-design-system/p-bb291d6067.system.entry.js +0 -1
  459. package/dist/baloise-design-system/p-c0a3d422.system.js +0 -1
  460. package/dist/baloise-design-system/p-c34504aa32.entry.js +0 -1
  461. package/dist/baloise-design-system/p-c6900b09e7.entry.js +0 -1
  462. package/dist/baloise-design-system/p-cf6ccb4dd1.entry.js +0 -1
  463. package/dist/baloise-design-system/p-d4fd428711.entry.js +0 -1
  464. package/dist/baloise-design-system/p-d6fc0dd434.entry.js +0 -1
  465. package/dist/baloise-design-system/p-db3e6b861f.entry.js +0 -1
  466. package/dist/baloise-design-system/p-eba35b2adf.entry.js +0 -1
  467. package/dist/baloise-design-system/p-ec180f9bbf.entry.js +0 -1
  468. package/dist/baloise-design-system/p-f15b12d84f.entry.js +0 -1
  469. package/dist/esm-es5/app-globals-89691d80.js +0 -1
  470. package/dist/esm-es5/breakpoints.decorator-52979d29.js +0 -1
  471. /package/dist/baloise-design-system/{p-61eda028.system.js → p-03c136e2.system.js} +0 -0
  472. /package/dist/baloise-design-system/{p-979368af.js → p-7b9c33ba.js} +0 -0
  473. /package/dist/esm-es5/{tokens.esm-12daa3af.js → tokens.esm-aab9bd61.js} +0 -0
@@ -0,0 +1,660 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-219b2f52.js');
6
+ const tslib_es6 = require('./tslib.es6-a680968e.js');
7
+ const index_esm = require('./index.esm-4587dbf0.js');
8
+ const bem = require('./bem-81bc6a2d.js');
9
+ const log = require('./log-33398c2a.js');
10
+ const formInput = require('./form-input-134c5116.js');
11
+ const attributes = require('./attributes-9f366716.js');
12
+ const form = require('./form-2279fb2f.js');
13
+ const helpers = require('./helpers-2a8c8333.js');
14
+ const index$1 = require('./index-e6a233be.js');
15
+ const floatingUi_dom_esm = require('./floating-ui.dom.esm-5dbdcff9.js');
16
+ const option = require('./option-c33cf2b8.js');
17
+ const aria = require('./aria-c8955a5c.js');
18
+ const config_default = require('./config.default-5bdd6e3d.js');
19
+ const config_decorator = require('./config.decorator-b393a72f.js');
20
+ require('./_commonjsHelpers-68cdf74f.js');
21
+ require('./browser-1d542d0f.js');
22
+ require('./icons.constant-7c82086a.js');
23
+ require('./config.utils-e4cd49d6.js');
24
+
25
+ class DropdownAutoFillUtil {
26
+ constructor() {
27
+ this.handleAutoFill = async (ev) => {
28
+ formInput.stopEventBubbling(ev);
29
+ if (this.isAutoFillAllowed()) {
30
+ this.component.isAutoFilled = true;
31
+ const autoFillValue = this.component.nativeEl.value;
32
+ const newValue = await this.parseAutoFillValueWithOptions(autoFillValue);
33
+ if (newValue === undefined) {
34
+ this.component.isAutoFilled = false;
35
+ return;
36
+ }
37
+ if (!index_esm.areArraysEqual(newValue, this.component.rawValue)) {
38
+ this.component.valueUtil.updateRawValueBySelection(newValue, true);
39
+ }
40
+ }
41
+ };
42
+ }
43
+ connectedCallback(component) {
44
+ this.component = component;
45
+ }
46
+ isAutoFillAllowed() {
47
+ return !this.component.multiple;
48
+ }
49
+ async parseAutoFillValueWithOptions(autoFillValue) {
50
+ const options = await this.component.listEl.getOptions();
51
+ const value = undefined;
52
+ for (let index = 0; index < options.length; index++) {
53
+ const option = options[index];
54
+ if (option.value === autoFillValue || option.label === autoFillValue) {
55
+ return [option.value];
56
+ }
57
+ }
58
+ return value;
59
+ }
60
+ }
61
+
62
+ const i18nBalDropdown = {
63
+ de: {
64
+ clearable: 'Löschen',
65
+ open: 'Öffnen',
66
+ close: 'Schließen',
67
+ },
68
+ en: {
69
+ clearable: 'clear',
70
+ open: 'Open',
71
+ close: 'Close',
72
+ },
73
+ fr: {
74
+ clearable: 'Effacer',
75
+ open: 'Ouvrir',
76
+ close: 'Fermer',
77
+ },
78
+ it: {
79
+ clearable: 'Cancellare',
80
+ open: 'Apri',
81
+ close: 'Chiudi',
82
+ },
83
+ nl: {
84
+ clearable: 'Wissen',
85
+ open: 'Open',
86
+ close: 'Sluiten',
87
+ },
88
+ es: {
89
+ clearable: 'Limpiar',
90
+ open: 'Abrir',
91
+ close: 'Cerrar',
92
+ },
93
+ pl: {
94
+ clearable: 'Wyczyść',
95
+ open: 'Otwórz',
96
+ close: 'Zamknij',
97
+ },
98
+ pt: {
99
+ clearable: 'Limpar',
100
+ open: 'Abrir',
101
+ close: 'Fechar',
102
+ },
103
+ sv: {
104
+ clearable: 'Rensa',
105
+ open: 'Öppna',
106
+ close: 'Stäng',
107
+ },
108
+ fi: {
109
+ clearable: 'Tyhjennä',
110
+ open: 'Avaa',
111
+ close: 'Sulje',
112
+ },
113
+ };
114
+
115
+ class DropdownEventsUtil {
116
+ connectedCallback(component) {
117
+ this.component = component;
118
+ }
119
+ handleFocus(ev) {
120
+ this.component.hasFocus = true;
121
+ this.component.balFocus.emit(ev);
122
+ }
123
+ handleBlur(ev) {
124
+ this.component.hasFocus = false;
125
+ this.component.balBlur.emit(ev);
126
+ }
127
+ handleClick(ev) {
128
+ if (!this.component.valueUtil.isDisabled()) {
129
+ if (this.component.chips) {
130
+ const targetEl = ev.target;
131
+ const closeEl = targetEl.closest('bal-close');
132
+ if (closeEl) {
133
+ return;
134
+ }
135
+ }
136
+ if (this.component.clearable) {
137
+ const targetEl = ev.target;
138
+ const clearEl = targetEl.closest('.bal-dropdown__clear');
139
+ if (clearEl) {
140
+ this.component.valueUtil.updateRawValueBySelection([]);
141
+ return;
142
+ }
143
+ }
144
+ this.component.popupUtil.toggleList();
145
+ }
146
+ }
147
+ // @Listen('click', { target: 'document' })
148
+ handleOutsideClick(ev) {
149
+ var _a;
150
+ if (this.component.isExpanded) {
151
+ if (!this.component.el.contains(ev.target)) {
152
+ this.component.isExpanded = false;
153
+ (_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.resetFocus();
154
+ }
155
+ }
156
+ }
157
+ }
158
+
159
+ class DropdownFocusUtil {
160
+ connectedCallback(component) {
161
+ this.component = component;
162
+ }
163
+ focusOptionByLabel(key, options = {}) {
164
+ this.component.labelToFocus = (this.component.labelToFocus + key).trim();
165
+ if (this.component.labelToFocus.length > 0) {
166
+ clearTimeout(this.keyHitTimeout);
167
+ this.keyHitTimeout = setTimeout(() => {
168
+ var _a;
169
+ (_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.focusByLabel(this.component.labelToFocus, options);
170
+ }, 100);
171
+ clearTimeout(this.timeout);
172
+ this.timeout = setTimeout(async () => {
173
+ this.component.labelToFocus = '';
174
+ }, 1000);
175
+ }
176
+ }
177
+ }
178
+
179
+ class DropdownFormSubmitUtil {
180
+ connectedCallback(component) {
181
+ this.component = component;
182
+ this.component.initialValue = this.component.value;
183
+ }
184
+ componentDidRender() {
185
+ if (this.component.selectEl) {
186
+ const options = this.component.selectEl.querySelectorAll('option');
187
+ options.forEach(option => {
188
+ if (this.component.rawValue.includes(option.value)) {
189
+ option.selected = true;
190
+ }
191
+ });
192
+ }
193
+ }
194
+ // @Listen('reset', { capture: true, target: 'document' })
195
+ handle(ev) {
196
+ const formElement = ev.target;
197
+ if (formElement === null || formElement === void 0 ? void 0 : formElement.contains(this.component.el)) {
198
+ if (this.resetHandlerTimer) {
199
+ clearTimeout(this.resetHandlerTimer);
200
+ }
201
+ this.resetHandlerTimer = setTimeout(() => {
202
+ const newRawValue = this.component.valueUtil.parseValueString(this.component.initialValue);
203
+ this.component.valueUtil.updateRawValueBySelection(newRawValue);
204
+ }, 0);
205
+ }
206
+ }
207
+ }
208
+ const DropdownNativeSelect = ({ name, httpFormSubmit, multiple, required, disabled, rawValue, refSelectEl, }) => {
209
+ const block = bem.BEM.block('dropdown');
210
+ return httpFormSubmit ? (index.h("select", { class: Object.assign({}, block.element('root').element('select').class()), "aria-hidden": "true", name: name, multiple: multiple, required: required, disabled: disabled, tabindex: -1, ref: refSelectEl }, rawValue.map((value) => (index.h("option", { key: value, value: value, selected: true }, value))))) : ('');
211
+ };
212
+
213
+ const DropdownIcon = ({ icon, language, loading, clearable, invalid, filled, expanded, disabled, }) => {
214
+ const block = bem.BEM.block('dropdown');
215
+ if (loading) {
216
+ return index.h("bal-spinner", { class: Object.assign({}, block.element('rear').class()), small: true, variation: "circle" });
217
+ }
218
+ else if (clearable && filled && !disabled) {
219
+ return (index.h("button", { title: i18nBalDropdown[language].clearable, class: Object.assign(Object.assign(Object.assign({}, block.element('rear').class()), block.element('clear').class()), block.element('clear').modifier('invalid').class(invalid)) },
220
+ index.h("bal-icon", { class: Object.assign({}, block.element('rear').class()), name: 'close-circle', size: "", color: 'grey' })));
221
+ }
222
+ else {
223
+ return (index.h("bal-icon", { class: Object.assign({}, block.element('rear').class()), name: icon, turn: expanded, color: disabled ? 'grey' : invalid ? 'danger' : 'primary' }));
224
+ }
225
+ };
226
+
227
+ const DropdownOptionList = ({ inputId, isExpanded, rawOptions, isDisabled, hasPropOptions, required, filter, multiple, contentHeight, refPanelEl, refListEl, }) => {
228
+ const block = bem.BEM.block('dropdown');
229
+ return (index.h("div", { id: `${inputId}-menu`, class: Object.assign(Object.assign({}, block.element('list').class()), block.element('list').modifier('expanded').class(isExpanded)), ref: refPanelEl },
230
+ index.h("bal-option-list", { multiple: multiple, disabled: isDisabled, filter: filter, required: required, contentHeight: contentHeight, ref: refListEl },
231
+ index.h("slot", null),
232
+ hasPropOptions
233
+ ? rawOptions.map(option => (index.h("bal-option", { key: option.value, value: option.value, label: option.label, disabled: option.disabled, multiline: option.multiline, invalid: option.invalid, hidden: option.hidden, selected: option.selected, focused: option.focused }, option.label)))
234
+ : '')));
235
+ };
236
+
237
+ class DropdownPopupUtil {
238
+ constructor() {
239
+ this.updatePanelPosition = (referenceEl, floatingEl) => () => {
240
+ floatingUi_dom_esm.computePosition(referenceEl, floatingEl, {
241
+ placement: 'bottom-start',
242
+ middleware: [floatingUi_dom_esm.flip(), floatingUi_dom_esm.shift()],
243
+ }).then(({ x, y }) => {
244
+ Object.assign(floatingEl.style, {
245
+ left: `${x}px`,
246
+ top: `${y}px`,
247
+ });
248
+ });
249
+ };
250
+ }
251
+ connectedCallback(component) {
252
+ this.component = component;
253
+ }
254
+ toggleList() {
255
+ if (!this.component.valueUtil.isDisabled()) {
256
+ if (this.component.isExpanded) {
257
+ this.collapseList();
258
+ }
259
+ else {
260
+ this.expandList();
261
+ }
262
+ }
263
+ }
264
+ expandList() {
265
+ var _a;
266
+ if (this.component.panelEl) {
267
+ this.component.panelCleanup = floatingUi_dom_esm.autoUpdate(this.component.el, this.component.panelEl, this.updatePanelPosition(this.component.el, this.component.panelEl));
268
+ }
269
+ this.component.isExpanded = true;
270
+ (_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.focusFirst();
271
+ }
272
+ collapseList() {
273
+ var _a;
274
+ this.component.isExpanded = false;
275
+ (_a = this.component.listEl) === null || _a === void 0 ? void 0 : _a.resetFocus();
276
+ if (this.component.panelCleanup) {
277
+ this.component.panelCleanup();
278
+ }
279
+ }
280
+ }
281
+
282
+ class DropdownValueUtil {
283
+ connectedCallback(component) {
284
+ this.component = component;
285
+ }
286
+ componentDidLoad() {
287
+ setTimeout(() => this.valueChanged(this.component.value, undefined), 0);
288
+ }
289
+ isDisabled() {
290
+ return this.component.disabled || this.component.readonly;
291
+ }
292
+ isFilled() {
293
+ return this.component.rawValue && this.component.rawValue.length > 0;
294
+ }
295
+ valueChanged(newValue, oldValue) {
296
+ const newValueType = typeof newValue;
297
+ const oldValueType = typeof oldValue;
298
+ if (newValueType !== oldValueType) {
299
+ this.updateRawValueByValueProp(newValue);
300
+ }
301
+ if (newValueType === 'string' && newValue !== oldValue) {
302
+ this.updateRawValueByValueProp(newValue);
303
+ }
304
+ if (Array.isArray(newValue) && Array.isArray(oldValue) && !index_esm.areArraysEqual(newValue, oldValue)) {
305
+ this.updateRawValueByValueProp(newValue);
306
+ }
307
+ }
308
+ updateRawValueBySelection(newRawValue = [], isAutoFilled = false) {
309
+ this.component.isAutoFilled = isAutoFilled;
310
+ this.updateRawValue(newRawValue);
311
+ if (this.component.multiple) {
312
+ this.component.balChange.emit(this.component.rawValue);
313
+ }
314
+ else {
315
+ this.component.balChange.emit(this.component.rawValue[0]);
316
+ }
317
+ }
318
+ parseValueString(newValue = []) {
319
+ let newRawValue = [];
320
+ if (!index$1.lodash_isnil(newValue) && newValue !== '') {
321
+ if (Array.isArray(newValue)) {
322
+ newRawValue = [...newValue.filter(v => !index$1.lodash_isnil(v))];
323
+ }
324
+ else {
325
+ if (newValue.split('').includes(',')) {
326
+ newRawValue = [
327
+ ...newValue
328
+ .split(',')
329
+ .filter(v => v)
330
+ .map(v => v.trim()),
331
+ ];
332
+ }
333
+ else {
334
+ newRawValue = [newValue];
335
+ }
336
+ }
337
+ }
338
+ return newRawValue;
339
+ }
340
+ updateRawValueByValueProp(newValue = []) {
341
+ const newRawValue = this.parseValueString(newValue);
342
+ this.updateRawValue(newRawValue);
343
+ }
344
+ async updateRawValue(newRawValue = []) {
345
+ this.component.rawValue = newRawValue;
346
+ if (this.component.listEl) {
347
+ await this.component.listEl.updateSelected(this.component.rawValue);
348
+ }
349
+ await this.updateInputContent();
350
+ }
351
+ removeOption(option) {
352
+ const newRawValue = this.component.rawValue.filter(value => value !== option.value);
353
+ this.updateRawValueBySelection(newRawValue);
354
+ }
355
+ async updateInputContent() {
356
+ await helpers.waitAfterFramePaint();
357
+ if (this.component.listEl) {
358
+ this.component.choices = await this.component.listEl.getSelectedOptions(this.component.rawValue);
359
+ this.component.inputLabel = this.component.choices
360
+ .map(option => option.label.trim())
361
+ .sort()
362
+ .join(',');
363
+ }
364
+ }
365
+ }
366
+ const DropdownValue = ({ filled, chips, placeholder, choices, invalid, disabled, readonly, onRemoveChip, }) => {
367
+ const block = bem.BEM.block('dropdown');
368
+ if (filled) {
369
+ if (chips) {
370
+ return (index.h("div", { class: Object.assign({}, block.element('root').element('content').element('chips').class()) }, choices.map(option => (index.h("bal-tag", { key: option.value, "data-test": "bal-dropdown-chip", size: "small", invalid: invalid, disabled: disabled || readonly, closable: !(disabled || readonly), onBalCloseClick: () => onRemoveChip(option) }, option.label)))));
371
+ }
372
+ else {
373
+ return choices.map(option => option.label).join(', ');
374
+ }
375
+ }
376
+ else {
377
+ return placeholder;
378
+ }
379
+ };
380
+
381
+ const DropdownInput = ({ name, inputId, httpFormSubmit, ariaForm, rawValue, autocomplete, required, disabled, readonly, placeholder, expanded, invalid, language, inputLabel, inheritedAttributes, refInputEl, onChange, onFocus, onBlur, onKeyDown, }) => {
382
+ const block = bem.BEM.block('dropdown');
383
+ const Input = () => (index.h("input", Object.assign({ id: ariaForm.controlId || `${inputId}-ctrl`, class: Object.assign({}, block.element('root').element('input').class()), type: "text", size: 1, inputmode: "none", tabindex: "0", name: name, autoComplete: autocomplete, value: rawValue.join(','), required: required, disabled: disabled, readonly: readonly, placeholder: placeholder, title: expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-label": expanded ? i18nBalDropdown[language].close : i18nBalDropdown[language].open, "aria-owns": `${inputId}-menu`, "aria-invalid": aria.ariaBooleanToString(invalid), "aria-disabled": aria.ariaBooleanToString(disabled || readonly), "aria-labelledby": ariaForm.labelId, "aria-describedby": ariaForm.messageId, "aria-haspopup": 'listbox', "data-native": true, "data-label": inputLabel, "data-value": rawValue.join(','), ref: el => refInputEl(el), onChange: ev => onChange(ev), onFocus: ev => onFocus(ev), onBlur: ev => onBlur(ev), onKeyDown: ev => onKeyDown(ev) }, inheritedAttributes)));
384
+ if (httpFormSubmit) {
385
+ return index.h(Input, null);
386
+ }
387
+ return (index.h("form", { novalidate: true },
388
+ index.h(Input, null)));
389
+ };
390
+
391
+ const balDropdownCss = ":root{--bal-dropdown-control-background:var(--bal-color-white);--bal-dropdown-control-background-hover:var(--bal-form-field-control-background-hover);--bal-dropdown-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-dropdown-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-dropdown-control-input-background:var(--bal-color-grey-1);--bal-dropdown-control-native-input-background:transparent;--bal-dropdown-control-native-input-background-hover:transparent;--bal-dropdown-control-input-inverted-footer-background:transparent;--bal-dropdown-control-input-inverted-footer-background-hover:transparent;--bal-dropdown-control-input-multiple-background:transparent;--bal-dropdown-control-input-multiple-background-read-only-selection:transparent;--bal-dropdown-control-input-option-background:transparent;--bal-dropdown-control-input-option-background-selected:var(--bal-color-primary-1);--bal-dropdown-control-input-option-background-focused:var(--bal-color-grey-2);--bal-dropdown-control-input-option-background-hover:var(--bal-color-grey-2);--bal-dropdown-control-border-radius:var(--bal-form-field-control-radius);--bal-dropdown-popover-border-color:var(--bal-color-grey-2);--bal-dropdown-control-border-color:var(--bal-form-field-control-border-color);--bal-dropdown-control-border-color-focused:var(--bal-color-primary);--bal-dropdown-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-dropdown-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-dropdown-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-dropdown-control-border-color-focus-within:var(--bal-color-primary);--bal-dropdown-option-border-top-color:var(--bal-color-grey-2);--bal-dropdown-popover-empty-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color-focused:var(--bal-color-primary);--bal-dropdown-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-dropdown-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-dropdown-option-content-label-text-color:var(--bal-form-field-control-color)}.bal-dropdown{display:block;position:relative;-ms-flex:1;flex:1}.bal-dropdown__root{border-width:.125rem;border-style:solid;border-color:var(--bal-dropdown-control-border-color);border-radius:var(--bal-dropdown-control-border-radius);background:var(--bal-dropdown-control-background);font-size:var(--bal-weight-regular);font-family:var(--bal-font-family-text);color:var(--bal-dropdown-control-text-color);outline:none;-webkit-box-shadow:var(--bal-shadow-none);box-shadow:var(--bal-shadow-none);padding-right:1rem;height:auto;min-height:3rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:-ms-flexbox;display:flex;width:100%;text-align:left;gap:.5rem;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-dropdown__root--autofill{background:#faffbd !important;background:light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important}.bal-dropdown__root>span{-ms-flex:1;flex:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bal-dropdown__root--focused{border-color:var(--bal-dropdown-control-border-color-focused)}.bal-dropdown__root--invalid{border-color:var(--bal-dropdown-control-border-color-invalid);background:var(--bal-dropdown-control-background-invalid)}.bal-dropdown__root--disabled{border-color:var(--bal-dropdown-control-border-color-disabled);background:var(--bal-dropdown-control-background-disabled)}.bal-dropdown__root__content--placeholder{color:var(--bal-form-field-control-placeholder-color)}.bal-dropdown__root__content--disabled{color:var(--bal-dropdown-input-text-color-disabled)}.bal-dropdown__root__content__chips{--bal-tag-size-small-font-size:var(--bal-text-size-normal);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-xx-small);padding-top:var(--bal-space-x-small);padding-bottom:var(--bal-space-x-small)}.bal-dropdown__root__content__chips>bal-tag{z-index:1}.bal-dropdown__root__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:rgba(0,0,0,0);position:absolute;right:var(--bal-border-width-normal);left:var(--bal-border-width-normal);top:var(--bal-border-width-normal);bottom:var(--bal-border-width-normal);opacity:0;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));cursor:pointer}.bal-dropdown__root__input:disabled{cursor:default}.bal-dropdown__root__input:-webkit-autofill{opacity:1}.bal-dropdown__root__input:autofill{opacity:1}.bal-dropdown__root__input:-internal-autofill-selected{opacity:0}.bal-dropdown__root__select{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}.bal-dropdown__root--autofill .bal-dropdown__root__input{opacity:0}.bal-dropdown__list{display:block;visibility:hidden;opacity:0;min-width:100%;width:100%;position:absolute;top:0;left:0;will-change:left,top,opacity;background:var(--bal-color-white);border-radius:var(--bal-radius-normal);-webkit-box-shadow:var(--bal-shadow-normal);box-shadow:var(--bal-shadow-normal);z-index:var(--bal-z-index-popup)}.bal-dropdown__list--expanded{visibility:visible;opacity:1}.bal-dropdown__native{bottom:0;left:0;position:absolute;opacity:0;pointer-events:none;width:100%}.bal-dropdown__clear{background:rgba(0,0,0,0);border:none;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer}.bal-dropdown__rear{z-index:1}";
392
+ const BalDropdownStyle0 = balDropdownCss;
393
+
394
+ const Dropdown = class {
395
+ constructor(hostRef) {
396
+ index.registerInstance(this, hostRef);
397
+ this.balChange = index.createEvent(this, "balChange", 7);
398
+ this.balFocus = index.createEvent(this, "balFocus", 7);
399
+ this.balBlur = index.createEvent(this, "balBlur", 7);
400
+ this.inputId = `bal-dropdown-${balDropdownIds++}`;
401
+ this.inheritedAttributes = {};
402
+ this.initialValue = [];
403
+ this.nativeOptions = [];
404
+ this.valueUtil = new DropdownValueUtil();
405
+ this.eventsUtil = new DropdownEventsUtil();
406
+ this.popupUtil = new DropdownPopupUtil();
407
+ this.optionUtil = new option.DropdownOptionUtil();
408
+ this.formSubmitUtil = new DropdownFormSubmitUtil();
409
+ this.focusUtil = new DropdownFocusUtil();
410
+ this.autoFillUtil = new DropdownAutoFillUtil();
411
+ /**
412
+ * EVENT BINDING
413
+ * ------------------------------------------------------
414
+ */
415
+ this.handleAutoFill = async (ev) => {
416
+ this.log('(handleAutoFill)', ev, this.nativeEl.value);
417
+ this.autoFillUtil.handleAutoFill(ev);
418
+ };
419
+ this.handleKeyDown = (ev) => {
420
+ var _a, _b, _c, _d, _e;
421
+ if (ev && ev.key) {
422
+ if (this.isExpanded) {
423
+ /**
424
+ * ⬇️ Arrow up key
425
+ */
426
+ if (index_esm.isArrowDownKey(ev)) {
427
+ formInput.stopEventBubbling(ev);
428
+ (_a = this.listEl) === null || _a === void 0 ? void 0 : _a.focusNext();
429
+ /**
430
+ * ⬆️ Arrow up key
431
+ */
432
+ }
433
+ else if (index_esm.isArrowUpKey(ev)) {
434
+ formInput.stopEventBubbling(ev);
435
+ (_b = this.listEl) === null || _b === void 0 ? void 0 : _b.focusPrevious();
436
+ /**
437
+ * Go to top of the list
438
+ */
439
+ }
440
+ else if (ev.key === 'Home' || ev.key === 'PageUp') {
441
+ formInput.stopEventBubbling(ev);
442
+ (_c = this.listEl) === null || _c === void 0 ? void 0 : _c.focusFirst();
443
+ /**
444
+ * Go to bottom of the list
445
+ */
446
+ }
447
+ else if (ev.key === 'End' || ev.key === 'PageDown') {
448
+ formInput.stopEventBubbling(ev);
449
+ (_d = this.listEl) === null || _d === void 0 ? void 0 : _d.focusLast();
450
+ /**
451
+ * Select focused option
452
+ */
453
+ }
454
+ else if (index_esm.isEnterKey(ev)) {
455
+ formInput.stopEventBubbling(ev);
456
+ (_e = this.listEl) === null || _e === void 0 ? void 0 : _e.selectByFocus();
457
+ /**
458
+ * Close list
459
+ */
460
+ }
461
+ else if (ev.key === 'Tab' || index_esm.isEscapeKey(ev)) {
462
+ this.popupUtil.collapseList();
463
+ /**
464
+ * Focus on label
465
+ */
466
+ }
467
+ else if (ev.key.length === 1) {
468
+ this.focusUtil.focusOptionByLabel(ev.key);
469
+ }
470
+ }
471
+ else {
472
+ /**
473
+ * Open list
474
+ */
475
+ if (index_esm.isEnterKey(ev) || index_esm.isSpaceKey(ev)) {
476
+ formInput.stopEventBubbling(ev);
477
+ this.popupUtil.expandList();
478
+ /**
479
+ * Focus on label
480
+ */
481
+ }
482
+ else if (ev.key.length === 1) {
483
+ this.focusUtil.focusOptionByLabel(ev.key, { select: true });
484
+ }
485
+ }
486
+ }
487
+ else {
488
+ // Close the popup on autofill
489
+ if (this.isExpanded) {
490
+ this.popupUtil.collapseList();
491
+ }
492
+ }
493
+ };
494
+ this.rawOptions = [];
495
+ this.choices = [];
496
+ this.rawValue = [];
497
+ this.hasFocus = false;
498
+ this.isExpanded = false;
499
+ this.isAutoFilled = false;
500
+ this.inputLabel = '';
501
+ this.ariaForm = form.defaultBalAriaForm;
502
+ this.language = config_default.defaultConfig.language;
503
+ this.region = config_default.defaultConfig.region;
504
+ this.httpFormSubmit = config_default.defaultConfig.httpFormSubmit;
505
+ this.labelToFocus = '';
506
+ this.autocomplete = 'off';
507
+ this.name = this.inputId;
508
+ this.placeholder = '';
509
+ this.icon = 'caret-down';
510
+ this.disabled = false;
511
+ this.readonly = false;
512
+ this.multiple = false;
513
+ this.chips = false;
514
+ this.clearable = false;
515
+ this.invalid = false;
516
+ this.required = false;
517
+ this.loading = false;
518
+ this.filter = 'includes';
519
+ this.contentHeight = 262;
520
+ this.inverted = false;
521
+ this.options = [];
522
+ this.value = [];
523
+ }
524
+ createLogger(log) {
525
+ this.log = log;
526
+ }
527
+ async optionChanged() {
528
+ this.optionUtil.optionChanged();
529
+ }
530
+ valueChanged(newValue, oldValue) {
531
+ this.valueUtil.valueChanged(newValue, oldValue);
532
+ }
533
+ /**
534
+ * LIFECYCLE
535
+ * ------------------------------------------------------
536
+ */
537
+ connectedCallback() {
538
+ this.eventsUtil.connectedCallback(this);
539
+ this.valueUtil.connectedCallback(this);
540
+ this.popupUtil.connectedCallback(this);
541
+ this.optionUtil.connectedCallback(this);
542
+ this.formSubmitUtil.connectedCallback(this);
543
+ this.focusUtil.connectedCallback(this);
544
+ this.autoFillUtil.connectedCallback(this);
545
+ }
546
+ async componentWillRender() {
547
+ this.inheritedAttributes = attributes.inheritAttributes(this.el, ['tabindex']);
548
+ await this.optionUtil.componentWillRender();
549
+ }
550
+ componentDidRender() {
551
+ this.formSubmitUtil.componentDidRender();
552
+ }
553
+ componentDidLoad() {
554
+ this.valueUtil.componentDidLoad();
555
+ }
556
+ /**
557
+ * LISTENERS
558
+ * ------------------------------------------------------
559
+ */
560
+ /**
561
+ * @internal define config for the component
562
+ */
563
+ async configChanged(state) {
564
+ this.language = state.language;
565
+ this.region = state.region;
566
+ this.httpFormSubmit = state.httpFormSubmit;
567
+ }
568
+ async listenToOptionChange(ev) {
569
+ this.optionUtil.listenToOptionChange(ev);
570
+ }
571
+ listenOnClickOutside(ev) {
572
+ this.eventsUtil.handleOutsideClick(ev);
573
+ }
574
+ resetHandler(ev) {
575
+ this.formSubmitUtil.handle(ev);
576
+ }
577
+ /**
578
+ * PUBLIC METHODS
579
+ * ------------------------------------------------------
580
+ */
581
+ /**
582
+ * Sets the focus on the input element
583
+ */
584
+ async setFocus() {
585
+ if (this.nativeEl && !this.valueUtil.isDisabled()) {
586
+ await helpers.waitAfterIdleCallback();
587
+ this.nativeEl.focus();
588
+ }
589
+ }
590
+ /**
591
+ * Returns the value of the component
592
+ */
593
+ async getValue() {
594
+ return this.rawValue;
595
+ }
596
+ /**
597
+ * Sets the value to `[]`, the input value to ´''´ and the focus index to ´0´.
598
+ */
599
+ async clear() {
600
+ this.valueUtil.updateRawValueBySelection([]);
601
+ }
602
+ /**
603
+ * Opens the popup with option list
604
+ */
605
+ async open() {
606
+ if (!this.valueUtil.isDisabled() && this.panelEl) {
607
+ await this.popupUtil.expandList();
608
+ }
609
+ }
610
+ /**
611
+ * Closes the popup with option list
612
+ */
613
+ async close() {
614
+ if (!this.valueUtil.isDisabled() && this.panelEl) {
615
+ await this.popupUtil.collapseList();
616
+ }
617
+ }
618
+ /**
619
+ * Select option by passed value
620
+ */
621
+ async select(newValue) {
622
+ const parsedNewValue = this.valueUtil.parseValueString(newValue);
623
+ this.valueUtil.updateRawValueBySelection(parsedNewValue);
624
+ }
625
+ /**
626
+ * @internal
627
+ */
628
+ async setAriaForm(ariaForm) {
629
+ this.ariaForm = Object.assign({}, ariaForm);
630
+ }
631
+ /**
632
+ * RENDER
633
+ * ------------------------------------------------------
634
+ */
635
+ render() {
636
+ const block = bem.BEM.block('dropdown');
637
+ return (index.h(index.Host, { class: Object.assign({}, block.class()), tabindex: "-1", id: `${this.inputId}` }, index.h("div", { class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('root').class()), block.element('root').modifier('focused').class(this.hasFocus)), block.element('root').modifier('invalid').class(this.invalid)), block.element('root').modifier('disabled').class(this.valueUtil.isDisabled())), block.element('root').modifier('autofill').class(this.isAutoFilled)), "data-test": "bal-dropdown-trigger", onClick: ev => this.eventsUtil.handleClick(ev) }, index.h("span", { class: Object.assign(Object.assign(Object.assign({}, block.element('root').element('content').class()), block.element('root').element('content').modifier('disabled').class(this.valueUtil.isDisabled())), block.element('root').element('content').modifier('placeholder').class(!this.valueUtil.isFilled())) }, index.h(DropdownValue, { filled: this.valueUtil.isFilled(), chips: this.chips, placeholder: this.placeholder, choices: this.choices, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, onRemoveChip: option => this.valueUtil.removeOption(option) })), index.h(DropdownInput, { name: this.name, inputId: this.inputId, httpFormSubmit: this.httpFormSubmit, ariaForm: this.ariaForm, rawValue: this.rawValue, autocomplete: this.autocomplete, required: this.required, disabled: this.disabled, readonly: this.readonly, placeholder: this.placeholder, expanded: this.isExpanded, invalid: this.invalid, language: this.language, inputLabel: this.inputLabel, inheritedAttributes: this.inheritedAttributes, refInputEl: el => (this.nativeEl = el), onChange: ev => this.handleAutoFill(ev), onFocus: ev => this.eventsUtil.handleFocus(ev), onBlur: ev => this.eventsUtil.handleBlur(ev), onKeyDown: ev => this.handleKeyDown(ev) }), index.h(DropdownNativeSelect, { name: this.name, httpFormSubmit: this.httpFormSubmit, multiple: this.multiple, required: this.required, disabled: this.valueUtil.isDisabled(), rawValue: this.rawValue, refSelectEl: el => (this.selectEl = el) }), index.h(DropdownIcon, { icon: this.icon, language: this.language, loading: this.loading, clearable: this.clearable, invalid: this.invalid, expanded: this.isExpanded, filled: this.valueUtil.isFilled(), disabled: this.valueUtil.isDisabled() })), index.h(DropdownOptionList, { inputId: this.inputId, block: this.inputId, filter: this.filter, required: this.required, isExpanded: this.isExpanded, isDisabled: this.valueUtil.isDisabled(), hasPropOptions: this.optionUtil.hasPropOptions(), multiple: this.multiple, contentHeight: this.contentHeight, rawOptions: this.rawOptions, refPanelEl: el => (this.panelEl = el), refListEl: el => (this.listEl = el) }, index.h("slot", null))));
638
+ }
639
+ get el() { return index.getElement(this); }
640
+ static get watchers() { return {
641
+ "options": ["optionChanged"],
642
+ "value": ["valueChanged"]
643
+ }; }
644
+ };
645
+ tslib_es6.__decorate([
646
+ log.Logger('bal-dropdown'),
647
+ tslib_es6.__metadata("design:type", Function),
648
+ tslib_es6.__metadata("design:paramtypes", [Function]),
649
+ tslib_es6.__metadata("design:returntype", void 0)
650
+ ], Dropdown.prototype, "createLogger", null);
651
+ tslib_es6.__decorate([
652
+ config_decorator.ListenToConfig(),
653
+ tslib_es6.__metadata("design:type", Function),
654
+ tslib_es6.__metadata("design:paramtypes", [Object]),
655
+ tslib_es6.__metadata("design:returntype", Promise)
656
+ ], Dropdown.prototype, "configChanged", null);
657
+ let balDropdownIds = 0;
658
+ Dropdown.style = BalDropdownStyle0;
659
+
660
+ exports.bal_dropdown = Dropdown;