@db-ux/wc-core-components 2.0.0-0-custom-select-16b8cce → 2.0.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 (483) hide show
  1. package/dist/cjs/db-accordion-item.cjs.entry.js +42 -8
  2. package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -1
  3. package/dist/cjs/db-accordion-item.entry.cjs.js.map +1 -1
  4. package/dist/cjs/db-accordion.cjs.entry.js +12 -12
  5. package/dist/cjs/db-accordion.cjs.entry.js.map +1 -1
  6. package/dist/cjs/db-accordion.entry.cjs.js.map +1 -1
  7. package/dist/cjs/db-badge.cjs.entry.js +3 -3
  8. package/dist/cjs/db-badge.cjs.entry.js.map +1 -1
  9. package/dist/cjs/db-badge.entry.cjs.js.map +1 -1
  10. package/dist/cjs/db-brand.cjs.entry.js +3 -3
  11. package/dist/cjs/db-brand.cjs.entry.js.map +1 -1
  12. package/dist/cjs/db-brand.entry.cjs.js.map +1 -1
  13. package/dist/cjs/db-button.cjs.entry.js +7 -7
  14. package/dist/cjs/db-button.cjs.entry.js.map +1 -1
  15. package/dist/cjs/db-button.entry.cjs.js.map +1 -1
  16. package/dist/cjs/db-card.cjs.entry.js +7 -7
  17. package/dist/cjs/db-card.cjs.entry.js.map +1 -1
  18. package/dist/cjs/db-card.entry.cjs.js.map +1 -1
  19. package/dist/cjs/db-checkbox.cjs.entry.js +59 -44
  20. package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
  21. package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
  22. package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.cjs.js.map +1 -1
  23. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js +78 -64
  24. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js.map +1 -1
  25. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
  26. package/dist/cjs/db-custom-select-form-field.cjs.entry.js.map +1 -1
  27. package/dist/cjs/db-custom-select-form-field.entry.cjs.js.map +1 -1
  28. package/dist/cjs/db-custom-select.cjs.entry.js +203 -189
  29. package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
  30. package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
  31. package/dist/cjs/db-divider.cjs.entry.js +3 -3
  32. package/dist/cjs/db-divider.cjs.entry.js.map +1 -1
  33. package/dist/cjs/db-divider.entry.cjs.js.map +1 -1
  34. package/dist/cjs/db-drawer.cjs.entry.js +8 -9
  35. package/dist/cjs/db-drawer.cjs.entry.js.map +1 -1
  36. package/dist/cjs/db-drawer.entry.cjs.js.map +1 -1
  37. package/dist/cjs/db-header.cjs.entry.js +13 -11
  38. package/dist/cjs/db-header.cjs.entry.js.map +1 -1
  39. package/dist/cjs/db-header.entry.cjs.js.map +1 -1
  40. package/dist/cjs/db-icon.cjs.entry.js +3 -3
  41. package/dist/cjs/db-icon.cjs.entry.js.map +1 -1
  42. package/dist/cjs/db-icon.entry.cjs.js.map +1 -1
  43. package/dist/cjs/db-infotext.cjs.entry.js +3 -3
  44. package/dist/cjs/db-infotext.cjs.entry.js.map +1 -1
  45. package/dist/cjs/db-infotext.entry.cjs.js.map +1 -1
  46. package/dist/cjs/db-link.cjs.entry.js +7 -7
  47. package/dist/cjs/db-link.cjs.entry.js.map +1 -1
  48. package/dist/cjs/db-link.entry.cjs.js.map +1 -1
  49. package/dist/cjs/db-navigation-item.cjs.entry.js +26 -28
  50. package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
  51. package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
  52. package/dist/cjs/db-navigation.cjs.entry.js +4 -4
  53. package/dist/cjs/db-navigation.cjs.entry.js.map +1 -1
  54. package/dist/cjs/db-navigation.entry.cjs.js.map +1 -1
  55. package/dist/cjs/db-notification.cjs.entry.js +7 -7
  56. package/dist/cjs/db-notification.cjs.entry.js.map +1 -1
  57. package/dist/cjs/db-notification.entry.cjs.js.map +1 -1
  58. package/dist/cjs/db-page.cjs.entry.js +4 -4
  59. package/dist/cjs/db-page.cjs.entry.js.map +1 -1
  60. package/dist/cjs/db-page.entry.cjs.js.map +1 -1
  61. package/dist/cjs/db-popover.cjs.entry.js +4 -4
  62. package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
  63. package/dist/cjs/db-popover.entry.cjs.js.map +1 -1
  64. package/dist/cjs/db-radio.cjs.entry.js +10 -19
  65. package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
  66. package/dist/cjs/db-radio.entry.cjs.js.map +1 -1
  67. package/dist/cjs/db-section.cjs.entry.js +4 -4
  68. package/dist/cjs/db-section.cjs.entry.js.map +1 -1
  69. package/dist/cjs/db-section.entry.cjs.js.map +1 -1
  70. package/dist/cjs/db-select.cjs.entry.js +70 -57
  71. package/dist/cjs/db-select.cjs.entry.js.map +1 -1
  72. package/dist/cjs/db-select.entry.cjs.js.map +1 -1
  73. package/dist/cjs/db-stack.cjs.entry.js +4 -4
  74. package/dist/cjs/db-stack.cjs.entry.js.map +1 -1
  75. package/dist/cjs/db-stack.entry.cjs.js.map +1 -1
  76. package/dist/cjs/db-switch.cjs.entry.js +11 -20
  77. package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
  78. package/dist/cjs/db-switch.entry.cjs.js.map +1 -1
  79. package/dist/cjs/db-tab-item.db-tab-list.db-tab-panel.entry.cjs.js.map +1 -1
  80. package/dist/cjs/db-tab-item_3.cjs.entry.js +38 -17
  81. package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -1
  82. package/dist/cjs/db-tabs.cjs.entry.js +24 -23
  83. package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
  84. package/dist/cjs/db-tabs.entry.cjs.js.map +1 -1
  85. package/dist/cjs/db-textarea.cjs.entry.js +60 -45
  86. package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
  87. package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
  88. package/dist/cjs/db-ux.cjs.js +3 -3
  89. package/dist/cjs/db-ux.cjs.js.map +1 -1
  90. package/dist/cjs/document-click-listener-CrbHspH2.js +37 -0
  91. package/dist/cjs/document-click-listener-CrbHspH2.js.map +1 -0
  92. package/dist/cjs/{index-DeqKGVDx.js → index-9h8KqOUd.js} +25 -7
  93. package/dist/cjs/index-9h8KqOUd.js.map +1 -0
  94. package/dist/cjs/{index-DBEtsnky.js → index-w2CAlvjJ.js} +6 -5
  95. package/dist/cjs/index-w2CAlvjJ.js.map +1 -0
  96. package/dist/cjs/index.cjs.js +6 -5
  97. package/dist/cjs/index.cjs.js.map +1 -1
  98. package/dist/cjs/loader.cjs.js +2 -2
  99. package/dist/cjs/{navigation-Cfm1OFWB.js → navigation-DjZJIxIq.js} +3 -3
  100. package/dist/cjs/{navigation-Cfm1OFWB.js.map → navigation-DjZJIxIq.js.map} +1 -1
  101. package/dist/collection/collection-manifest.json +1 -1
  102. package/dist/collection/components/accordion/accordion.js +26 -25
  103. package/dist/collection/components/accordion/accordion.js.map +1 -1
  104. package/dist/collection/components/accordion/model.js.map +1 -1
  105. package/dist/collection/components/accordion-item/accordion-item.js +87 -17
  106. package/dist/collection/components/accordion-item/accordion-item.js.map +1 -1
  107. package/dist/collection/components/accordion-item/model.js.map +1 -1
  108. package/dist/collection/components/badge/badge.js +10 -10
  109. package/dist/collection/components/badge/badge.js.map +1 -1
  110. package/dist/collection/components/badge/model.js.map +1 -1
  111. package/dist/collection/components/brand/brand.js +9 -9
  112. package/dist/collection/components/brand/brand.js.map +1 -1
  113. package/dist/collection/components/button/button.js +57 -32
  114. package/dist/collection/components/button/button.js.map +1 -1
  115. package/dist/collection/components/button/model.js.map +1 -1
  116. package/dist/collection/components/card/card.js +12 -12
  117. package/dist/collection/components/card/card.js.map +1 -1
  118. package/dist/collection/components/checkbox/checkbox.js +118 -166
  119. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  120. package/dist/collection/components/checkbox/model.js.map +1 -1
  121. package/dist/collection/components/custom-select/custom-select.js +340 -335
  122. package/dist/collection/components/custom-select/custom-select.js.map +1 -1
  123. package/dist/collection/components/custom-select/model.js.map +1 -1
  124. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +5 -5
  125. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js.map +1 -1
  126. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +4 -4
  127. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js.map +1 -1
  128. package/dist/collection/components/custom-select-list/custom-select-list.js +6 -6
  129. package/dist/collection/components/custom-select-list/custom-select-list.js.map +1 -1
  130. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +27 -52
  131. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js.map +1 -1
  132. package/dist/collection/components/divider/divider.js +7 -7
  133. package/dist/collection/components/divider/divider.js.map +1 -1
  134. package/dist/collection/components/drawer/drawer.js +23 -24
  135. package/dist/collection/components/drawer/drawer.js.map +1 -1
  136. package/dist/collection/components/drawer/model.js.map +1 -1
  137. package/dist/collection/components/header/header.js +22 -20
  138. package/dist/collection/components/header/header.js.map +1 -1
  139. package/dist/collection/components/header/model.js.map +1 -1
  140. package/dist/collection/components/icon/icon.js +7 -7
  141. package/dist/collection/components/icon/icon.js.map +1 -1
  142. package/dist/collection/components/infotext/infotext.js +10 -10
  143. package/dist/collection/components/infotext/infotext.js.map +1 -1
  144. package/dist/collection/components/input/input.js +218 -213
  145. package/dist/collection/components/input/input.js.map +1 -1
  146. package/dist/collection/components/input/model.js.map +1 -1
  147. package/dist/collection/components/link/link.js +29 -29
  148. package/dist/collection/components/link/link.js.map +1 -1
  149. package/dist/collection/components/navigation/navigation.js +5 -5
  150. package/dist/collection/components/navigation/navigation.js.map +1 -1
  151. package/dist/collection/components/navigation-item/model.js.map +1 -1
  152. package/dist/collection/components/navigation-item/navigation-item.js +43 -43
  153. package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
  154. package/dist/collection/components/notification/model.js.map +1 -1
  155. package/dist/collection/components/notification/notification.js +32 -32
  156. package/dist/collection/components/notification/notification.js.map +1 -1
  157. package/dist/collection/components/page/model.js.map +1 -1
  158. package/dist/collection/components/page/page.js +10 -10
  159. package/dist/collection/components/page/page.js.map +1 -1
  160. package/dist/collection/components/popover/model.js.map +1 -1
  161. package/dist/collection/components/popover/popover.js +17 -17
  162. package/dist/collection/components/popover/popover.js.map +1 -1
  163. package/dist/collection/components/radio/radio.js +32 -110
  164. package/dist/collection/components/radio/radio.js.map +1 -1
  165. package/dist/collection/components/section/section.js +6 -6
  166. package/dist/collection/components/section/section.js.map +1 -1
  167. package/dist/collection/components/select/model.js.map +1 -1
  168. package/dist/collection/components/select/select.js +130 -203
  169. package/dist/collection/components/select/select.js.map +1 -1
  170. package/dist/collection/components/stack/model.js.map +1 -1
  171. package/dist/collection/components/stack/stack.js +12 -12
  172. package/dist/collection/components/stack/stack.js.map +1 -1
  173. package/dist/collection/components/switch/model.js.map +1 -1
  174. package/dist/collection/components/switch/switch.js +39 -117
  175. package/dist/collection/components/switch/switch.js.map +1 -1
  176. package/dist/collection/components/tab-item/model.js.map +1 -1
  177. package/dist/collection/components/tab-item/tab-item.js +66 -40
  178. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  179. package/dist/collection/components/tab-list/tab-list.js +4 -4
  180. package/dist/collection/components/tab-list/tab-list.js.map +1 -1
  181. package/dist/collection/components/tab-panel/tab-panel.js +6 -6
  182. package/dist/collection/components/tab-panel/tab-panel.js.map +1 -1
  183. package/dist/collection/components/tabs/model.js.map +1 -1
  184. package/dist/collection/components/tabs/tabs.js +63 -62
  185. package/dist/collection/components/tabs/tabs.js.map +1 -1
  186. package/dist/collection/components/tag/model.js.map +1 -1
  187. package/dist/collection/components/tag/tag.js +27 -27
  188. package/dist/collection/components/tag/tag.js.map +1 -1
  189. package/dist/collection/components/textarea/model.js.map +1 -1
  190. package/dist/collection/components/textarea/textarea.js +171 -168
  191. package/dist/collection/components/textarea/textarea.js.map +1 -1
  192. package/dist/collection/components/tooltip/model.js.map +1 -1
  193. package/dist/collection/components/tooltip/tooltip.js +14 -14
  194. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  195. package/dist/collection/shared/model.js +0 -1
  196. package/dist/collection/shared/model.js.map +1 -1
  197. package/dist/collection/utils/document-click-listener.js +30 -0
  198. package/dist/collection/utils/document-click-listener.js.map +1 -0
  199. package/dist/collection/utils/index.js +21 -21
  200. package/dist/collection/utils/index.js.map +1 -1
  201. package/dist/custom-elements.json +2629 -1698
  202. package/dist/db-ux/db-accordion-item.entry.esm.js.map +1 -1
  203. package/dist/db-ux/db-accordion.entry.esm.js.map +1 -1
  204. package/dist/db-ux/db-badge.entry.esm.js.map +1 -1
  205. package/dist/db-ux/db-brand.entry.esm.js.map +1 -1
  206. package/dist/db-ux/db-button.entry.esm.js.map +1 -1
  207. package/dist/db-ux/db-card.entry.esm.js.map +1 -1
  208. package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
  209. package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.esm.js.map +1 -1
  210. package/dist/db-ux/db-custom-select-form-field.entry.esm.js.map +1 -1
  211. package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
  212. package/dist/db-ux/db-divider.entry.esm.js.map +1 -1
  213. package/dist/db-ux/db-drawer.entry.esm.js.map +1 -1
  214. package/dist/db-ux/db-header.entry.esm.js.map +1 -1
  215. package/dist/db-ux/db-icon.entry.esm.js.map +1 -1
  216. package/dist/db-ux/db-infotext.entry.esm.js.map +1 -1
  217. package/dist/db-ux/db-link.entry.esm.js.map +1 -1
  218. package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -1
  219. package/dist/db-ux/db-navigation.entry.esm.js.map +1 -1
  220. package/dist/db-ux/db-notification.entry.esm.js.map +1 -1
  221. package/dist/db-ux/db-page.entry.esm.js.map +1 -1
  222. package/dist/db-ux/db-popover.entry.esm.js.map +1 -1
  223. package/dist/db-ux/db-radio.entry.esm.js.map +1 -1
  224. package/dist/db-ux/db-section.entry.esm.js.map +1 -1
  225. package/dist/db-ux/db-select.entry.esm.js.map +1 -1
  226. package/dist/db-ux/db-stack.entry.esm.js.map +1 -1
  227. package/dist/db-ux/db-switch.entry.esm.js.map +1 -1
  228. package/dist/db-ux/db-tab-item.db-tab-list.db-tab-panel.entry.esm.js.map +1 -1
  229. package/dist/db-ux/db-tabs.entry.esm.js.map +1 -1
  230. package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
  231. package/dist/db-ux/db-ux.esm.js +1 -1
  232. package/dist/db-ux/db-ux.esm.js.map +1 -1
  233. package/dist/db-ux/index.esm.js +1 -1
  234. package/dist/db-ux/index.esm.js.map +1 -1
  235. package/dist/db-ux/p-0c1b4216.entry.js +2 -0
  236. package/dist/db-ux/p-0c1b4216.entry.js.map +1 -0
  237. package/dist/db-ux/p-19ebdb92.entry.js +2 -0
  238. package/dist/db-ux/p-19ebdb92.entry.js.map +1 -0
  239. package/dist/db-ux/p-20f2efec.entry.js +2 -0
  240. package/dist/db-ux/p-20f2efec.entry.js.map +1 -0
  241. package/dist/db-ux/p-2ea85ed3.entry.js +2 -0
  242. package/dist/db-ux/p-2ea85ed3.entry.js.map +1 -0
  243. package/dist/db-ux/p-3d9cfe8d.entry.js +2 -0
  244. package/dist/db-ux/p-3d9cfe8d.entry.js.map +1 -0
  245. package/dist/db-ux/p-56fa0857.entry.js +2 -0
  246. package/dist/db-ux/p-56fa0857.entry.js.map +1 -0
  247. package/dist/db-ux/p-6f9de31b.entry.js +2 -0
  248. package/dist/db-ux/p-6f9de31b.entry.js.map +1 -0
  249. package/dist/db-ux/p-797ccaa9.entry.js +2 -0
  250. package/dist/db-ux/p-797ccaa9.entry.js.map +1 -0
  251. package/dist/db-ux/{p-0b9779be.entry.js → p-7bc56311.entry.js} +2 -2
  252. package/dist/db-ux/p-7bc56311.entry.js.map +1 -0
  253. package/dist/db-ux/p-828bb611.entry.js +2 -0
  254. package/dist/db-ux/p-828bb611.entry.js.map +1 -0
  255. package/dist/db-ux/{p-d10ee6dc.entry.js → p-84136093.entry.js} +2 -2
  256. package/dist/db-ux/p-84136093.entry.js.map +1 -0
  257. package/dist/db-ux/p-861c92ee.entry.js +2 -0
  258. package/dist/db-ux/p-861c92ee.entry.js.map +1 -0
  259. package/dist/db-ux/{p-0414dab3.entry.js → p-924110bd.entry.js} +2 -2
  260. package/dist/db-ux/p-924110bd.entry.js.map +1 -0
  261. package/dist/db-ux/p-96a0c7de.entry.js +2 -0
  262. package/dist/db-ux/p-96a0c7de.entry.js.map +1 -0
  263. package/dist/db-ux/p-B_W_wePN.js +2 -0
  264. package/dist/db-ux/p-B_W_wePN.js.map +1 -0
  265. package/dist/db-ux/p-BkYjDIed.js +3 -0
  266. package/dist/db-ux/p-BkYjDIed.js.map +1 -0
  267. package/dist/db-ux/{p-VkX3SW7K.js → p-Duz60W3r.js} +2 -2
  268. package/dist/db-ux/{p-VkX3SW7K.js.map → p-Duz60W3r.js.map} +1 -1
  269. package/dist/db-ux/p-TU0pfK1i.js +2 -0
  270. package/dist/db-ux/p-TU0pfK1i.js.map +1 -0
  271. package/dist/db-ux/p-a20f9b38.entry.js +2 -0
  272. package/dist/db-ux/p-a20f9b38.entry.js.map +1 -0
  273. package/dist/db-ux/{p-9a3c9ffe.entry.js → p-aad2b065.entry.js} +2 -2
  274. package/dist/db-ux/p-aad2b065.entry.js.map +1 -0
  275. package/dist/db-ux/p-abc1afa7.entry.js +2 -0
  276. package/dist/db-ux/p-abc1afa7.entry.js.map +1 -0
  277. package/dist/db-ux/p-b074eb7f.entry.js +2 -0
  278. package/dist/db-ux/p-b074eb7f.entry.js.map +1 -0
  279. package/dist/db-ux/p-b6821ac2.entry.js +2 -0
  280. package/dist/db-ux/p-b6821ac2.entry.js.map +1 -0
  281. package/dist/db-ux/p-b7cd9e31.entry.js +2 -0
  282. package/dist/db-ux/p-b7cd9e31.entry.js.map +1 -0
  283. package/dist/db-ux/p-b92bbd61.entry.js +2 -0
  284. package/dist/db-ux/p-b92bbd61.entry.js.map +1 -0
  285. package/dist/db-ux/p-bcb3d891.entry.js +2 -0
  286. package/dist/db-ux/p-bcb3d891.entry.js.map +1 -0
  287. package/dist/db-ux/{p-65983b83.entry.js → p-be35b5b4.entry.js} +2 -2
  288. package/dist/db-ux/p-be35b5b4.entry.js.map +1 -0
  289. package/dist/db-ux/p-d60822ce.entry.js +2 -0
  290. package/dist/db-ux/p-d60822ce.entry.js.map +1 -0
  291. package/dist/db-ux/p-dc71d000.entry.js +2 -0
  292. package/dist/db-ux/p-dc71d000.entry.js.map +1 -0
  293. package/dist/db-ux/p-e397a44c.entry.js +2 -0
  294. package/dist/db-ux/p-e397a44c.entry.js.map +1 -0
  295. package/dist/db-ux/p-e4f73b24.entry.js +2 -0
  296. package/dist/db-ux/p-e4f73b24.entry.js.map +1 -0
  297. package/dist/db-ux/p-e72a0bfe.entry.js +2 -0
  298. package/dist/db-ux/p-e72a0bfe.entry.js.map +1 -0
  299. package/dist/db-ux/p-fba19a3f.entry.js +2 -0
  300. package/dist/db-ux/p-fba19a3f.entry.js.map +1 -0
  301. package/dist/esm/db-accordion-item.entry.js +42 -8
  302. package/dist/esm/db-accordion-item.entry.js.map +1 -1
  303. package/dist/esm/db-accordion.entry.js +12 -12
  304. package/dist/esm/db-accordion.entry.js.map +1 -1
  305. package/dist/esm/db-badge.entry.js +3 -3
  306. package/dist/esm/db-badge.entry.js.map +1 -1
  307. package/dist/esm/db-brand.entry.js +3 -3
  308. package/dist/esm/db-brand.entry.js.map +1 -1
  309. package/dist/esm/db-button.entry.js +7 -7
  310. package/dist/esm/db-button.entry.js.map +1 -1
  311. package/dist/esm/db-card.entry.js +7 -7
  312. package/dist/esm/db-card.entry.js.map +1 -1
  313. package/dist/esm/db-checkbox.entry.js +60 -45
  314. package/dist/esm/db-checkbox.entry.js.map +1 -1
  315. package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.js.map +1 -1
  316. package/dist/esm/db-custom-select-dropdown_6.entry.js +79 -65
  317. package/dist/esm/db-custom-select-dropdown_6.entry.js.map +1 -1
  318. package/dist/esm/db-custom-select-form-field.entry.js +4 -4
  319. package/dist/esm/db-custom-select-form-field.entry.js.map +1 -1
  320. package/dist/esm/db-custom-select.entry.js +204 -190
  321. package/dist/esm/db-custom-select.entry.js.map +1 -1
  322. package/dist/esm/db-divider.entry.js +3 -3
  323. package/dist/esm/db-divider.entry.js.map +1 -1
  324. package/dist/esm/db-drawer.entry.js +8 -9
  325. package/dist/esm/db-drawer.entry.js.map +1 -1
  326. package/dist/esm/db-header.entry.js +13 -11
  327. package/dist/esm/db-header.entry.js.map +1 -1
  328. package/dist/esm/db-icon.entry.js +3 -3
  329. package/dist/esm/db-icon.entry.js.map +1 -1
  330. package/dist/esm/db-infotext.entry.js +3 -3
  331. package/dist/esm/db-infotext.entry.js.map +1 -1
  332. package/dist/esm/db-link.entry.js +7 -7
  333. package/dist/esm/db-link.entry.js.map +1 -1
  334. package/dist/esm/db-navigation-item.entry.js +26 -28
  335. package/dist/esm/db-navigation-item.entry.js.map +1 -1
  336. package/dist/esm/db-navigation.entry.js +4 -4
  337. package/dist/esm/db-navigation.entry.js.map +1 -1
  338. package/dist/esm/db-notification.entry.js +7 -7
  339. package/dist/esm/db-notification.entry.js.map +1 -1
  340. package/dist/esm/db-page.entry.js +4 -4
  341. package/dist/esm/db-page.entry.js.map +1 -1
  342. package/dist/esm/db-popover.entry.js +4 -4
  343. package/dist/esm/db-popover.entry.js.map +1 -1
  344. package/dist/esm/db-radio.entry.js +10 -19
  345. package/dist/esm/db-radio.entry.js.map +1 -1
  346. package/dist/esm/db-section.entry.js +4 -4
  347. package/dist/esm/db-section.entry.js.map +1 -1
  348. package/dist/esm/db-select.entry.js +71 -58
  349. package/dist/esm/db-select.entry.js.map +1 -1
  350. package/dist/esm/db-stack.entry.js +4 -4
  351. package/dist/esm/db-stack.entry.js.map +1 -1
  352. package/dist/esm/db-switch.entry.js +11 -20
  353. package/dist/esm/db-switch.entry.js.map +1 -1
  354. package/dist/esm/db-tab-item.db-tab-list.db-tab-panel.entry.js.map +1 -1
  355. package/dist/esm/db-tab-item_3.entry.js +38 -17
  356. package/dist/esm/db-tab-item_3.entry.js.map +1 -1
  357. package/dist/esm/db-tabs.entry.js +24 -23
  358. package/dist/esm/db-tabs.entry.js.map +1 -1
  359. package/dist/esm/db-textarea.entry.js +61 -46
  360. package/dist/esm/db-textarea.entry.js.map +1 -1
  361. package/dist/esm/db-ux.js +4 -4
  362. package/dist/esm/db-ux.js.map +1 -1
  363. package/dist/esm/document-click-listener-B2jDrCt8.js +35 -0
  364. package/dist/esm/document-click-listener-B2jDrCt8.js.map +1 -0
  365. package/dist/esm/{index-D-D8lQAG.js → index-BkYjDIed.js} +6 -5
  366. package/dist/esm/index-BkYjDIed.js.map +1 -0
  367. package/dist/esm/{index-fw8E73KY.js → index-TU0pfK1i.js} +24 -8
  368. package/dist/esm/index-TU0pfK1i.js.map +1 -0
  369. package/dist/esm/index.js +5 -5
  370. package/dist/esm/index.js.map +1 -1
  371. package/dist/esm/loader.js +3 -3
  372. package/dist/esm/{navigation-1ba3zvi0.js → navigation-BjeAmWrQ.js} +3 -3
  373. package/dist/esm/{navigation-1ba3zvi0.js.map → navigation-BjeAmWrQ.js.map} +1 -1
  374. package/dist/types/components/accordion/accordion.d.ts +2 -2
  375. package/dist/types/components/accordion/model.d.ts +2 -2
  376. package/dist/types/components/accordion-item/accordion-item.d.ts +11 -2
  377. package/dist/types/components/accordion-item/model.d.ts +5 -5
  378. package/dist/types/components/badge/model.d.ts +2 -2
  379. package/dist/types/components/button/button.d.ts +3 -1
  380. package/dist/types/components/button/model.d.ts +11 -7
  381. package/dist/types/components/card/card.d.ts +2 -1
  382. package/dist/types/components/checkbox/checkbox.d.ts +13 -10
  383. package/dist/types/components/checkbox/model.d.ts +3 -3
  384. package/dist/types/components/custom-select/custom-select.d.ts +18 -15
  385. package/dist/types/components/custom-select/model.d.ts +49 -29
  386. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +2 -2
  387. package/dist/types/components/drawer/drawer.d.ts +2 -1
  388. package/dist/types/components/drawer/model.d.ts +2 -2
  389. package/dist/types/components/header/header.d.ts +3 -2
  390. package/dist/types/components/header/model.d.ts +2 -2
  391. package/dist/types/components/input/input.d.ts +19 -14
  392. package/dist/types/components/input/model.d.ts +3 -3
  393. package/dist/types/components/link/link.d.ts +2 -1
  394. package/dist/types/components/navigation-item/model.d.ts +2 -3
  395. package/dist/types/components/navigation-item/navigation-item.d.ts +4 -4
  396. package/dist/types/components/notification/model.d.ts +3 -3
  397. package/dist/types/components/notification/notification.d.ts +3 -2
  398. package/dist/types/components/page/model.d.ts +1 -1
  399. package/dist/types/components/popover/model.d.ts +1 -1
  400. package/dist/types/components/radio/radio.d.ts +7 -9
  401. package/dist/types/components/select/model.d.ts +2 -2
  402. package/dist/types/components/select/select.d.ts +18 -16
  403. package/dist/types/components/stack/model.d.ts +1 -1
  404. package/dist/types/components/switch/model.d.ts +2 -2
  405. package/dist/types/components/switch/switch.d.ts +4 -6
  406. package/dist/types/components/tab-item/model.d.ts +6 -6
  407. package/dist/types/components/tab-item/tab-item.d.ts +8 -3
  408. package/dist/types/components/tabs/model.d.ts +11 -3
  409. package/dist/types/components/tabs/tabs.d.ts +5 -4
  410. package/dist/types/components/tag/model.d.ts +9 -5
  411. package/dist/types/components/tag/tag.d.ts +2 -1
  412. package/dist/types/components/textarea/model.d.ts +4 -4
  413. package/dist/types/components/textarea/textarea.d.ts +17 -12
  414. package/dist/types/components/tooltip/model.d.ts +1 -1
  415. package/dist/types/components.d.ts +96 -124
  416. package/dist/types/shared/model.d.ts +56 -31
  417. package/dist/types/stencil-public-runtime.d.ts +2 -0
  418. package/dist/types/utils/document-click-listener.d.ts +8 -0
  419. package/dist/types/utils/index.d.ts +5 -28
  420. package/dist/vscode.html-custom-data.json +143 -122
  421. package/dist/web-types.json +803 -475
  422. package/package.json +4 -4
  423. package/dist/cjs/index-DBEtsnky.js.map +0 -1
  424. package/dist/cjs/index-DeqKGVDx.js.map +0 -1
  425. package/dist/db-ux/p-0414dab3.entry.js.map +0 -1
  426. package/dist/db-ux/p-05505797.entry.js +0 -2
  427. package/dist/db-ux/p-05505797.entry.js.map +0 -1
  428. package/dist/db-ux/p-0b9779be.entry.js.map +0 -1
  429. package/dist/db-ux/p-1799c085.entry.js +0 -2
  430. package/dist/db-ux/p-1799c085.entry.js.map +0 -1
  431. package/dist/db-ux/p-30261cf0.entry.js +0 -2
  432. package/dist/db-ux/p-30261cf0.entry.js.map +0 -1
  433. package/dist/db-ux/p-43f2df95.entry.js +0 -2
  434. package/dist/db-ux/p-43f2df95.entry.js.map +0 -1
  435. package/dist/db-ux/p-463c100b.entry.js +0 -2
  436. package/dist/db-ux/p-463c100b.entry.js.map +0 -1
  437. package/dist/db-ux/p-4cf2c595.entry.js +0 -2
  438. package/dist/db-ux/p-4cf2c595.entry.js.map +0 -1
  439. package/dist/db-ux/p-56a39c64.entry.js +0 -2
  440. package/dist/db-ux/p-56a39c64.entry.js.map +0 -1
  441. package/dist/db-ux/p-5ceb34d7.entry.js +0 -2
  442. package/dist/db-ux/p-5ceb34d7.entry.js.map +0 -1
  443. package/dist/db-ux/p-65983b83.entry.js.map +0 -1
  444. package/dist/db-ux/p-6e1aa320.entry.js +0 -2
  445. package/dist/db-ux/p-6e1aa320.entry.js.map +0 -1
  446. package/dist/db-ux/p-70b6a633.entry.js +0 -2
  447. package/dist/db-ux/p-70b6a633.entry.js.map +0 -1
  448. package/dist/db-ux/p-72cbf9ff.entry.js +0 -2
  449. package/dist/db-ux/p-72cbf9ff.entry.js.map +0 -1
  450. package/dist/db-ux/p-7346f78f.entry.js +0 -2
  451. package/dist/db-ux/p-7346f78f.entry.js.map +0 -1
  452. package/dist/db-ux/p-7b3689ea.entry.js +0 -2
  453. package/dist/db-ux/p-7b3689ea.entry.js.map +0 -1
  454. package/dist/db-ux/p-93ee59f3.entry.js +0 -2
  455. package/dist/db-ux/p-93ee59f3.entry.js.map +0 -1
  456. package/dist/db-ux/p-969ce4ec.entry.js +0 -2
  457. package/dist/db-ux/p-969ce4ec.entry.js.map +0 -1
  458. package/dist/db-ux/p-97cfc836.entry.js +0 -2
  459. package/dist/db-ux/p-97cfc836.entry.js.map +0 -1
  460. package/dist/db-ux/p-9a3c9ffe.entry.js.map +0 -1
  461. package/dist/db-ux/p-D-D8lQAG.js +0 -3
  462. package/dist/db-ux/p-D-D8lQAG.js.map +0 -1
  463. package/dist/db-ux/p-a2f461ee.entry.js +0 -2
  464. package/dist/db-ux/p-a2f461ee.entry.js.map +0 -1
  465. package/dist/db-ux/p-acca879a.entry.js +0 -2
  466. package/dist/db-ux/p-acca879a.entry.js.map +0 -1
  467. package/dist/db-ux/p-b09d7817.entry.js +0 -2
  468. package/dist/db-ux/p-b09d7817.entry.js.map +0 -1
  469. package/dist/db-ux/p-b858ced9.entry.js +0 -2
  470. package/dist/db-ux/p-b858ced9.entry.js.map +0 -1
  471. package/dist/db-ux/p-bb06aac0.entry.js +0 -2
  472. package/dist/db-ux/p-bb06aac0.entry.js.map +0 -1
  473. package/dist/db-ux/p-d10ee6dc.entry.js.map +0 -1
  474. package/dist/db-ux/p-d4d01646.entry.js +0 -2
  475. package/dist/db-ux/p-d4d01646.entry.js.map +0 -1
  476. package/dist/db-ux/p-e393938c.entry.js +0 -2
  477. package/dist/db-ux/p-e393938c.entry.js.map +0 -1
  478. package/dist/db-ux/p-ea7da771.entry.js +0 -2
  479. package/dist/db-ux/p-ea7da771.entry.js.map +0 -1
  480. package/dist/db-ux/p-fw8E73KY.js +0 -2
  481. package/dist/db-ux/p-fw8E73KY.js.map +0 -1
  482. package/dist/esm/index-D-D8lQAG.js.map +0 -1
  483. package/dist/esm/index-fw8E73KY.js.map +0 -1
@@ -1,20 +1,21 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-D-D8lQAG.js';
2
- import { u as uuid, f as delay, h as handleDataOutside, k as getSearchInput, s as stringPropVisible, e as hasVoiceOver, g as getBooleanAsString, j as getHideProp, c as cls } from './index-fw8E73KY.js';
3
- import { a as DEFAULT_LABEL, m as DEFAULT_REMOVE, d as DEFAULT_LABEL_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, l as DEFAULT_INVALID_MESSAGE, k as DEFAULT_VALID_MESSAGE, o as DEFAULT_SELECTED, f as DEFAULT_MESSAGE_ID_SUFFIX, c as DEFAULT_MESSAGE, s as DEFAULT_CLOSE_BUTTON } from './constants-DC9V_oNU.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BkYjDIed.js';
2
+ import { e as hasVoiceOver, f as delay, s as stringPropVisible, u as uuid, h as handleDataOutside, m as getSearchInput, g as getBooleanAsString, j as getBoolean, l as getHideProp, c as cls } from './index-TU0pfK1i.js';
3
+ import { l as DEFAULT_INVALID_MESSAGE, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, d as DEFAULT_LABEL_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, o as DEFAULT_SELECTED, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, c as DEFAULT_MESSAGE, s as DEFAULT_CLOSE_BUTTON } from './constants-DC9V_oNU.js';
4
+ import { D as DocumentClickListener } from './document-click-listener-B2jDrCt8.js';
4
5
 
5
6
  const DBCustomSelect = class {
6
7
  constructor(hostRef) {
7
8
  registerInstance(this, hostRef);
8
- this.onSelect = createEvent(this, "onSelect");
9
- this.onAmountChange = createEvent(this, "onAmountChange");
10
- this.onDropdownToggle = createEvent(this, "onDropdownToggle");
9
+ this.amountChange = createEvent(this, "amountChange");
10
+ this.dropdownToggle = createEvent(this, "dropdownToggle");
11
+ this.optionSelected = createEvent(this, "optionSelected");
11
12
  this.showClearSelection = true;
12
- this.clearSelectionLabel = "Clear selection";
13
- this._name = undefined;
13
+ this.clearSelectionText = "Clear selection";
14
14
  this._id = undefined;
15
15
  this._messageId = undefined;
16
16
  this._validMessageId = undefined;
17
17
  this._invalidMessageId = undefined;
18
+ this._invalidMessage = undefined;
18
19
  this._selectId = undefined;
19
20
  this._labelId = undefined;
20
21
  this._summaryId = undefined;
@@ -32,14 +33,67 @@ const DBCustomSelect = class {
32
33
  this._values = [];
33
34
  this._options = [];
34
35
  this._hasNoOptions = false;
35
- this._internalChangeTimestamp = -1;
36
- this._externalChangeTimestamp = -1;
36
+ this._documentClickListenerCallbackId = undefined;
37
+ this._internalChangeTimestamp = 0;
37
38
  this.selectAllChecked = false;
38
39
  this.selectAllIndeterminate = false;
40
+ this.satisfyReact = function satisfyReact() {
41
+ // This is an empty function to satisfy React
42
+ };
43
+ }
44
+ hasValidState() {
45
+ var _a;
46
+ return !!((_a = this.validMessage) !== null && _a !== void 0 ? _a : this.validation === "valid");
47
+ }
48
+ handleValidation() {
49
+ var _a, _b, _c, _d, _e, _f, _g, _h;
50
+ if (this.selectRef) {
51
+ this.selectRef.value = this.getNativeSelectValue();
52
+ }
53
+ /* For a11y reasons we need to map the correct message with the select */
54
+ if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
55
+ this._descByIds = this._invalidMessageId;
56
+ this._invalidMessage =
57
+ this.invalidMessage ||
58
+ ((_b = this.selectRef) === null || _b === void 0 ? void 0 : _b.validationMessage) ||
59
+ DEFAULT_INVALID_MESSAGE;
60
+ if (hasVoiceOver()) {
61
+ this._voiceOverFallback = this._invalidMessage;
62
+ delay(() => (this._voiceOverFallback = ""), 1000);
63
+ }
64
+ this._validity = (_c = this.validation) !== null && _c !== void 0 ? _c : "invalid";
65
+ }
66
+ else if (this.hasValidState() &&
67
+ ((_d = this.selectRef) === null || _d === void 0 ? void 0 : _d.validity.valid) &&
68
+ this.required) {
69
+ this._descByIds = this._validMessageId;
70
+ if (hasVoiceOver()) {
71
+ this._voiceOverFallback = (_e = this.validMessage) !== null && _e !== void 0 ? _e : DEFAULT_VALID_MESSAGE;
72
+ delay(() => (this._voiceOverFallback = ""), 1000);
73
+ }
74
+ this._validity = (_f = this.validation) !== null && _f !== void 0 ? _f : "valid";
75
+ }
76
+ else if (stringPropVisible(this.message, this.showMessage)) {
77
+ this._descByIds = this._messageId;
78
+ this._validity = (_g = this.validation) !== null && _g !== void 0 ? _g : "no-validation";
79
+ }
80
+ else {
81
+ this._descByIds = this._placeholderId;
82
+ this._validity = (_h = this.validation) !== null && _h !== void 0 ? _h : "no-validation";
83
+ }
39
84
  }
40
85
  handleDropdownToggle(event) {
41
- if (this.onDropdownToggle) {
42
- this.onDropdownToggle.emit(event);
86
+ if (this.dropdownToggle) {
87
+ this.dropdownToggle.emit(event);
88
+ }
89
+ if (event.target.open) {
90
+ this._documentClickListenerCallbackId =
91
+ new DocumentClickListener().addCallback((event) => this.handleDocumentClose(event));
92
+ }
93
+ else {
94
+ if (this._documentClickListenerCallbackId) {
95
+ new DocumentClickListener().removeCallback(this._documentClickListenerCallbackId);
96
+ }
43
97
  }
44
98
  }
45
99
  getNativeSelectValue() {
@@ -61,24 +115,17 @@ const DBCustomSelect = class {
61
115
  this._descByIds = descByIds.join(" ");
62
116
  }
63
117
  getSelectAllLabel() {
64
- var _a, _b, _c;
65
- if (!this.selectAllRef)
66
- return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : DEFAULT_LABEL;
67
- if (this.selectAllRef.indeterminate || !this.selectAllChecked) {
68
- return (_b = this.selectAllLabel) !== null && _b !== void 0 ? _b : DEFAULT_LABEL;
69
- }
70
- else {
71
- return (_c = this.deSelectAllLabel) !== null && _c !== void 0 ? _c : DEFAULT_LABEL;
72
- }
118
+ var _a;
119
+ return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : DEFAULT_LABEL;
73
120
  }
74
121
  getOptionLabel(option) {
75
122
  var _a, _b, _c;
76
123
  return (_c = (_a = option.label) !== null && _a !== void 0 ? _a : (_b = option.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "";
77
124
  }
78
125
  getOptionChecked(value) {
79
- var _a;
80
- if (value && this._values && this._values.includes) {
81
- return (_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value);
126
+ var _a, _b;
127
+ if (value && ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes)) {
128
+ return (_b = this._values) === null || _b === void 0 ? void 0 : _b.includes(value);
82
129
  }
83
130
  return false;
84
131
  }
@@ -109,7 +156,7 @@ const DBCustomSelect = class {
109
156
  }
110
157
  }
111
158
  handleArrowDownUp(event) {
112
- var _a, _b, _c, _d, _e;
159
+ var _a, _b, _c, _d, _e, _f, _g;
113
160
  if ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) {
114
161
  if (document) {
115
162
  const activeElement = document.activeElement;
@@ -121,7 +168,7 @@ const DBCustomSelect = class {
121
168
  const listElement = activeElement === null || activeElement === void 0 ? void 0 : activeElement.closest("li");
122
169
  if (event.key === "ArrowDown" || event.key === "ArrowRight") {
123
170
  if (listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling) {
124
- (_b = listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling.querySelector("input")) === null || _b === void 0 ? void 0 : _b.focus();
171
+ (_c = (_b = listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling) === null || _b === void 0 ? void 0 : _b.querySelector("input")) === null || _c === void 0 ? void 0 : _c.focus();
125
172
  }
126
173
  else {
127
174
  // We are on the last checkbox we move to the top checkbox
@@ -130,7 +177,7 @@ const DBCustomSelect = class {
130
177
  }
131
178
  else {
132
179
  if (listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling) {
133
- (_c = listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling.querySelector("input")) === null || _c === void 0 ? void 0 : _c.focus();
180
+ (_e = (_d = listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling) === null || _d === void 0 ? void 0 : _d.querySelector("input")) === null || _e === void 0 ? void 0 : _e.focus();
134
181
  }
135
182
  else if (this.detailsRef.querySelector(`input[type="checkbox"]`) !==
136
183
  activeElement) {
@@ -147,9 +194,9 @@ const DBCustomSelect = class {
147
194
  }, 100);
148
195
  }
149
196
  else {
150
- const checkboxList = Array.from((_d = this.detailsRef) === null || _d === void 0 ? void 0 : _d.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
197
+ const checkboxList = Array.from((_f = this.detailsRef) === null || _f === void 0 ? void 0 : _f.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
151
198
  if (checkboxList.length) {
152
- (_e = checkboxList.at(-1)) === null || _e === void 0 ? void 0 : _e.focus();
199
+ (_g = checkboxList.at(-1)) === null || _g === void 0 ? void 0 : _g.focus();
153
200
  }
154
201
  }
155
202
  }
@@ -212,41 +259,57 @@ const DBCustomSelect = class {
212
259
  }
213
260
  handleDocumentClose(event) {
214
261
  var _a;
215
- if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(event.target)) {
262
+ // stencil is sending a custom event which wraps the pointer event into details
263
+ const target = typeof event.detail === "number" ? event.target : event.detail.target;
264
+ if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(target)) {
216
265
  this.detailsRef.open = false;
217
266
  }
218
267
  }
268
+ handleOptionSelected(values) {
269
+ const skip = new Date().getTime() - this._internalChangeTimestamp < 200;
270
+ if (skip)
271
+ return;
272
+ if (this.optionSelected) {
273
+ this._values = values;
274
+ this.optionSelected.emit(values !== null && values !== void 0 ? values : []);
275
+ }
276
+ this._internalChangeTimestamp = new Date().getTime();
277
+ }
219
278
  handleSelect(value) {
220
- var _a, _b;
279
+ var _a;
221
280
  if (value) {
222
281
  if (this.multiple) {
223
282
  if ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value)) {
224
- this._values = (_b = this._values) === null || _b === void 0 ? void 0 : _b.filter((v) => v !== value);
283
+ this.handleOptionSelected(this._values.filter((v) => v !== value));
225
284
  }
226
285
  else {
227
- this._values = [...(this._values || []), value];
286
+ this.handleOptionSelected([...(this._values || []), value]);
228
287
  }
229
288
  }
230
289
  else {
231
- this._values = [value];
290
+ this.handleOptionSelected([value]);
232
291
  this.handleClose("close");
233
292
  }
234
- this._internalChangeTimestamp = new Date().getTime();
235
293
  }
236
294
  }
237
295
  handleSelectAll() {
238
296
  var _a;
239
297
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === this.amountOptions) {
240
- this._values = [];
298
+ this.handleOptionSelected([]);
241
299
  }
242
300
  else {
243
- this._values = this.options
244
- ? this.options
245
- .filter((option) => !option.isGroupTitle)
246
- .map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
247
- : [];
301
+ const searchValue = this.searchEnabled && this.searchInputRef
302
+ ? this.searchInputRef.value
303
+ : undefined;
304
+ this.handleOptionSelected(this.options
305
+ ? this.options.filter((option) => {
306
+ var _a;
307
+ return !option.isGroupTitle &&
308
+ (!searchValue ||
309
+ ((_a = option.value) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchValue.toLowerCase())));
310
+ }).map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
311
+ : []);
248
312
  }
249
- this._internalChangeTimestamp = new Date().getTime();
250
313
  }
251
314
  handleFocusFirstDropdownCheckbox(activeElement) {
252
315
  if (this.detailsRef) {
@@ -282,6 +345,7 @@ const DBCustomSelect = class {
282
345
  }
283
346
  }
284
347
  handleSearch(event) {
348
+ event.stopPropagation();
285
349
  const filterText = event.target.value;
286
350
  this._options =
287
351
  !this.options || !filterText || filterText.length === 0
@@ -292,7 +356,7 @@ const DBCustomSelect = class {
292
356
  .includes(filterText.toLowerCase()));
293
357
  }
294
358
  handleClearAll() {
295
- this._values = [];
359
+ this.handleOptionSelected([]);
296
360
  this.handleSummaryFocus();
297
361
  }
298
362
  handleSummaryFocus() {
@@ -332,8 +396,22 @@ const DBCustomSelect = class {
332
396
  }
333
397
  }
334
398
  watch0Fn() {
335
- var _a;
336
- this._name = (_a = this.name) !== null && _a !== void 0 ? _a : this._id;
399
+ if (this.detailsRef) {
400
+ const summary = this.detailsRef.querySelector("summary");
401
+ if (summary) {
402
+ summary.addEventListener("click", () => {
403
+ this.handleAutoPlacement();
404
+ this.handleOpenByKeyboardFocus(true);
405
+ });
406
+ summary.addEventListener("keydown", (event) => {
407
+ var _a;
408
+ if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
409
+ this.handleOpenByKeyboardFocus();
410
+ }
411
+ });
412
+ }
413
+ this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
414
+ }
337
415
  }
338
416
  watch0() {
339
417
  this.watch0Fn();
@@ -369,27 +447,6 @@ const DBCustomSelect = class {
369
447
  this.watch2Fn();
370
448
  }
371
449
  watch3Fn() {
372
- if (this.detailsRef) {
373
- const summary = this.detailsRef.querySelector("summary");
374
- if (summary) {
375
- summary.addEventListener("click", () => {
376
- this.handleAutoPlacement();
377
- this.handleOpenByKeyboardFocus(true);
378
- });
379
- summary.addEventListener("keydown", (event) => {
380
- var _a;
381
- if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
382
- this.handleOpenByKeyboardFocus();
383
- }
384
- });
385
- }
386
- this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
387
- }
388
- }
389
- watch3() {
390
- this.watch3Fn();
391
- }
392
- watch4Fn() {
393
450
  if (this.showNoResults !== undefined) {
394
451
  this._hasNoOptions = this.showNoResults;
395
452
  }
@@ -397,90 +454,45 @@ const DBCustomSelect = class {
397
454
  this._hasNoOptions = this._options.length === 0;
398
455
  }
399
456
  }
457
+ watch3() {
458
+ this.watch3Fn();
459
+ }
460
+ watch4Fn() {
461
+ this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
462
+ }
400
463
  watch4() {
401
464
  this.watch4Fn();
402
465
  }
403
466
  watch5Fn() {
404
- this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
467
+ this.searchEnabled = this.showSearch || this.amountOptions > 9;
405
468
  }
406
469
  watch5() {
407
470
  this.watch5Fn();
408
471
  }
409
472
  watch6Fn() {
410
- this.searchEnabled = this.showSearch || this.amountOptions > 9;
473
+ var _a;
474
+ if (this.values &&
475
+ Array.isArray(this.values) &&
476
+ this.values !== this._values) {
477
+ this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
478
+ }
411
479
  }
412
480
  watch6() {
413
481
  this.watch6Fn();
414
482
  }
415
483
  watch7Fn() {
416
- var _a;
417
- if (this.onSelect &&
418
- (this._externalChangeTimestamp || this._internalChangeTimestamp)) {
419
- const onlyInternalChange = this._internalChangeTimestamp && !this._externalChangeTimestamp;
420
- const bothChangeButInternalNew = this._internalChangeTimestamp &&
421
- this._externalChangeTimestamp &&
422
- this._internalChangeTimestamp > this._externalChangeTimestamp;
423
- if (onlyInternalChange || bothChangeButInternalNew) {
424
- this.onSelect.emit((_a = this._values) !== null && _a !== void 0 ? _a : []);
425
- }
426
- }
484
+ this.handleValidation();
427
485
  }
428
486
  watch7() {
429
487
  this.watch7Fn();
430
488
  }
431
489
  watch8Fn() {
432
- var _a;
433
- if (this.values && Array.isArray(this.values)) {
434
- this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
435
- this._externalChangeTimestamp = new Date().getTime();
436
- }
490
+ this._validity = this.validation;
437
491
  }
438
492
  watch8() {
439
493
  this.watch8Fn();
440
494
  }
441
495
  watch9Fn() {
442
- var _a, _b, _c, _d, _e, _f;
443
- if (this.selectRef) {
444
- this.selectRef.value = this.getNativeSelectValue();
445
- }
446
- /* For a11y reasons we need to map the correct message with the select */
447
- if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
448
- this._validity = "invalid";
449
- this.setDescById(this._invalidMessageId);
450
- if (hasVoiceOver()) {
451
- this._voiceOverFallback =
452
- (_d = (_b = this.invalidMessage) !== null && _b !== void 0 ? _b : (_c = this.selectRef) === null || _c === void 0 ? void 0 : _c.validationMessage) !== null && _d !== void 0 ? _d : DEFAULT_INVALID_MESSAGE;
453
- delay(() => (this._voiceOverFallback = ""), 1000);
454
- }
455
- }
456
- else if (this.validation === "valid" ||
457
- (((_e = this.selectRef) === null || _e === void 0 ? void 0 : _e.validity.valid) && this.required)) {
458
- this._validity = "valid";
459
- this.setDescById(this._validMessageId);
460
- if (hasVoiceOver()) {
461
- this._voiceOverFallback = (_f = this.validMessage) !== null && _f !== void 0 ? _f : DEFAULT_VALID_MESSAGE;
462
- delay(() => (this._voiceOverFallback = ""), 1000);
463
- }
464
- }
465
- else if (this.message) {
466
- this._validity = "no-validation";
467
- this.setDescById(this._messageId);
468
- }
469
- else {
470
- this._validity = "no-validation";
471
- this.setDescById(this._placeholderId);
472
- }
473
- }
474
- watch9() {
475
- this.watch9Fn();
476
- }
477
- watch10Fn() {
478
- this._validity = this.validation;
479
- }
480
- watch10() {
481
- this.watch10Fn();
482
- }
483
- watch11Fn() {
484
496
  var _a, _b;
485
497
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
486
498
  this.selectAllChecked = false;
@@ -494,19 +506,19 @@ const DBCustomSelect = class {
494
506
  this.selectAllIndeterminate = true;
495
507
  }
496
508
  }
497
- watch11() {
498
- this.watch11Fn();
509
+ watch9() {
510
+ this.watch9Fn();
499
511
  }
500
- watch12Fn() {
512
+ watch10Fn() {
501
513
  var _a, _b;
502
514
  this._options = this.options;
503
515
  this.amountOptions =
504
516
  (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
505
517
  }
506
- watch12() {
507
- this.watch12Fn();
518
+ watch10() {
519
+ this.watch10Fn();
508
520
  }
509
- watch13Fn() {
521
+ watch11Fn() {
510
522
  var _a, _b;
511
523
  if ((_a = this._options) === null || _a === void 0 ? void 0 : _a.length) {
512
524
  this._selectedOptions = (_b = this._options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
@@ -518,10 +530,10 @@ const DBCustomSelect = class {
518
530
  });
519
531
  }
520
532
  }
521
- watch13() {
522
- this.watch13Fn();
533
+ watch11() {
534
+ this.watch11Fn();
523
535
  }
524
- watch14Fn() {
536
+ watch12Fn() {
525
537
  var _a, _b, _c;
526
538
  if ((_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) {
527
539
  if (this.selectedType === "amount") {
@@ -537,25 +549,35 @@ const DBCustomSelect = class {
537
549
  this._selectedLabels = "";
538
550
  }
539
551
  }
540
- watch14() {
541
- this.watch14Fn();
552
+ watch12() {
553
+ this.watch12Fn();
542
554
  }
543
- watch15Fn() {
555
+ watch13Fn() {
544
556
  var _a, _b;
545
- if (this.onAmountChange) {
546
- this.onAmountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
557
+ if (this.amountChange) {
558
+ this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
547
559
  }
548
560
  }
549
- watch15() {
550
- this.watch15Fn();
561
+ watch13() {
562
+ this.watch13Fn();
551
563
  }
552
- watch16Fn() {
564
+ watch14Fn() {
553
565
  if (this.selectAllRef) {
554
566
  this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
555
567
  }
556
568
  }
557
- watch16() {
558
- this.watch16Fn();
569
+ watch14() {
570
+ this.watch14Fn();
571
+ }
572
+ watch15Fn() {
573
+ var _a;
574
+ this._invalidMessage =
575
+ this.invalidMessage ||
576
+ ((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
577
+ DEFAULT_INVALID_MESSAGE;
578
+ }
579
+ watch15() {
580
+ this.watch15Fn();
559
581
  }
560
582
  componentDidLoad() {
561
583
  var _a;
@@ -571,9 +593,7 @@ const DBCustomSelect = class {
571
593
  this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
572
594
  this._selectedLabelsId = mId + "-selected-labels";
573
595
  this._infoTextId = mId + "-info";
574
- if (document) {
575
- document.addEventListener("click", this.handleDocumentClose);
576
- }
596
+ this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
577
597
  this.watch0Fn();
578
598
  this.watch1Fn();
579
599
  this.watch2Fn();
@@ -590,60 +610,54 @@ const DBCustomSelect = class {
590
610
  this.watch13Fn();
591
611
  this.watch14Fn();
592
612
  this.watch15Fn();
593
- this.watch16Fn();
594
- }
595
- disconnectedCallback() {
596
- if (document) {
597
- document.removeEventListener("click", this.handleDocumentClose);
598
- }
599
613
  }
600
614
  render() {
601
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
602
- return (h("div", { key: '7bcd0b065dd492b5e1e00c4b22948143d947552a', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
615
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
616
+ return (h("div", { key: 'ba168e109d3b2e75b46145033a88119ac46cf3f7', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
603
617
  this._ref = el;
604
- }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.width, "data-variant": this.variant, "data-required": getBooleanAsString(this.required), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-hide-icon": getHideProp(this.showIcon) }, h("label", { key: '1ddb2c43327a9f046728c57d3da93ef4872f9e3c', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: 'c69f10fe071860ff5478aedc614565a6387d5d13', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
618
+ }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
619
+ this.selectedType === "tag" &&
620
+ this.multiple
621
+ ? "above"
622
+ : this.variant, "data-required": getBooleanAsString(this.required), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-hide-icon": getHideProp(this.showIcon) }, h("label", { key: 'a92ba45f913e2c7a78140da705da166af94484b5', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '093c76705744d56d0d3c2c33f108a74b088381a5', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
605
623
  this.selectRef = el;
606
- }, form: this.form, disabled: this.disabled, multiple: this.multiple, required: this.required, onChange: () => { } }, (_b = this._options) === null || _b === void 0 ? void 0 : _b.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option)))))), h("details", { key: 'd3229a4f6bda6ba5f1c64d3e60c48fd35aec95f5', ref: (el) => {
624
+ }, form: this.form, name: this.name, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: () => this.satisfyReact() }, ((_b = this._options) === null || _b === void 0 ? void 0 : _b.length)
625
+ ? (_c = this._options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
626
+ : null)), h("details", { key: '64c5745a0fc32954f792b7fb81c8b26f11304565', ref: (el) => {
607
627
  this.detailsRef = el;
608
- }, open: this.open, "aria-disabled": this.disabled, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: 'd6c5cfde8195408d10dd586242d27e676be3f9ab' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-labelledby": this._labelId }, ((_c = this._selectedLabels) === null || _c === void 0 ? void 0 : _c.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_d = this._selectedOptions) === null || _d === void 0 ? void 0 : _d.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index), onRemove: (event) => {
609
- this.handleTagRemove(option, event);
610
- }, key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", showLabel: false, label: (_e = this.searchLabel) !== null && _e !== void 0 ? _e : DEFAULT_LABEL, placeholder: (_f = this.searchPlaceholder) !== null && _f !== void 0 ? _f : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
628
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '1b1683fa3e54c249efd67e1ca960d61accd125c3' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
629
+ this.searchInputRef = el;
630
+ }, name: this._id, form: this._id, showLabel: false, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
611
631
  ? this._infoTextId
612
- : undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (h("db-infotext", { id: this._infoTextId, icon: this._hasNoOptions ? undefined : "circular_arrows", semantic: this._hasNoOptions ? "warning" : "informational" }, (_g = (this._hasNoOptions
632
+ : undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (h("db-infotext", { id: this._infoTextId, icon: this._hasNoOptions ? undefined : "circular_arrows", semantic: this._hasNoOptions ? "warning" : "informational" }, (_h = (this._hasNoOptions
613
633
  ? this.noResultsText
614
- : this.loadingText)) !== null && _g !== void 0 ? _g : DEFAULT_MESSAGE)) : (h(Fragment, null, this.selectAllEnabled ? (h("div", null, h("div", { class: "db-checkbox db-custom-select-list-item" }, h("label", null, h("input", { type: "checkbox", value: "select-all", ref: (el) => {
634
+ : this.loadingText)) !== null && _h !== void 0 ? _h : DEFAULT_MESSAGE)) : (h(Fragment, null, this.selectAllEnabled ? (h("div", null, h("div", { class: "db-checkbox db-custom-select-list-item" }, h("label", null, h("input", { type: "checkbox", value: "select-all", ref: (el) => {
615
635
  this.selectAllRef = el;
616
- }, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: this.multiple, label: (_h = this.label) !== null && _h !== void 0 ? _h : DEFAULT_LABEL }, (_j = this._options) === null || _j === void 0 ? void 0 : _j.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._name, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => {
617
- this.handleSelect(option.value);
618
- }, key: undefined }, !option.isGroupTitle
636
+ }, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.ariaListLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
619
637
  ? this.getOptionLabel(option)
620
- : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", onClick: () => {
621
- this.handleClose("close");
622
- } }, (_k = this.mobileCloseButtonText) !== null && _k !== void 0 ? _k : DEFAULT_CLOSE_BUTTON))))) : null), ((_l = this.showClearSelection) !== null && _l !== void 0 ? _l : true) && ((_m = this._values) === null || _m === void 0 ? void 0 : _m.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, onClick: () => this.handleClearAll() }, this.clearSelectionLabel, h("db-tooltip", { placement: "top" }, this.clearSelectionLabel))) : null, h("span", { key: '4d15f0a5d709cb329a3c18b907b5e9cf952a6252', "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_o = this.placeholder) !== null && _o !== void 0 ? _o : this.label), this.message ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, h("db-infotext", { key: '8e63397ef220c396c55d7d228fbc7e0ee7664688', size: "small", semantic: "successful", id: this._validMessageId }, (_p = this.validMessage) !== null && _p !== void 0 ? _p : DEFAULT_VALID_MESSAGE), h("db-infotext", { key: 'a8bc6cbd7a61e70f9956b1c47b175fd4b5d25004', size: "small", semantic: "critical", id: this._invalidMessageId }, (_q = this.invalidMessage) !== null && _q !== void 0 ? _q : (((_r = this.selectRef) === null || _r === void 0 ? void 0 : _r.validationMessage) || DEFAULT_INVALID_MESSAGE)), h("span", { key: '28db5cbc1feca0e5738148bb87e0df78d596e975', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
638
+ : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose("close") }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: () => this.handleClearAll() }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '309d5096cdbdfee24bd9a8a1941241586b60b3a4', "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '8f0fe04ea553fbffd86a7e30baa9cab7be708fd6', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'c106041467983c90b5a56ee4a6a56f8653dccaab', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
623
639
  }
624
640
  static get watchers() { return {
625
- "name": ["watch0"],
626
- "_id": ["watch0", "watch1"],
627
- "detailsRef": ["watch2", "watch3"],
641
+ "detailsRef": ["watch0", "watch2"],
642
+ "_id": ["watch1"],
628
643
  "_descByIds": ["watch2"],
629
- "showNoResults": ["watch4"],
630
- "_options": ["watch4", "watch13"],
631
- "showSelectAll": ["watch5"],
632
- "amountOptions": ["watch5", "watch6", "watch11"],
633
- "multiple": ["watch5"],
634
- "showSearch": ["watch6"],
635
- "_externalChangeTimestamp": ["watch7"],
636
- "_internalChangeTimestamp": ["watch7"],
637
- "onSelect": ["watch7"],
638
- "values": ["watch8"],
639
- "_values": ["watch9", "watch11", "watch13"],
640
- "validation": ["watch10"],
641
- "options": ["watch12"],
642
- "_selectedOptions": ["watch14", "watch15"],
643
- "selectedType": ["watch14"],
644
- "amountText": ["watch14"],
645
- "selectAllIndeterminate": ["watch16"],
646
- "selectAllRef": ["watch16"]
644
+ "showNoResults": ["watch3"],
645
+ "_options": ["watch3", "watch11"],
646
+ "showSelectAll": ["watch4"],
647
+ "amountOptions": ["watch4", "watch5", "watch9"],
648
+ "multiple": ["watch4"],
649
+ "showSearch": ["watch5"],
650
+ "values": ["watch6"],
651
+ "_values": ["watch7", "watch9", "watch11"],
652
+ "validation": ["watch8"],
653
+ "options": ["watch10"],
654
+ "_selectedOptions": ["watch12", "watch13"],
655
+ "selectedType": ["watch12"],
656
+ "amountText": ["watch12"],
657
+ "selectAllIndeterminate": ["watch14"],
658
+ "selectAllRef": ["watch14"],
659
+ "selectRef": ["watch15"],
660
+ "invalidMessage": ["watch15"]
647
661
  }; }
648
662
  };
649
663