@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,22 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DBEtsnky.js');
4
- var index$1 = require('./index-DeqKGVDx.js');
3
+ var index = require('./index-w2CAlvjJ.js');
4
+ var index$1 = require('./index-9h8KqOUd.js');
5
5
  var constants = require('./constants-CTtyzyuo.js');
6
+ var documentClickListener = require('./document-click-listener-CrbHspH2.js');
6
7
 
7
8
  const DBCustomSelect = class {
8
9
  constructor(hostRef) {
9
10
  index.registerInstance(this, hostRef);
10
- this.onSelect = index.createEvent(this, "onSelect");
11
- this.onAmountChange = index.createEvent(this, "onAmountChange");
12
- this.onDropdownToggle = index.createEvent(this, "onDropdownToggle");
11
+ this.amountChange = index.createEvent(this, "amountChange");
12
+ this.dropdownToggle = index.createEvent(this, "dropdownToggle");
13
+ this.optionSelected = index.createEvent(this, "optionSelected");
13
14
  this.showClearSelection = true;
14
- this.clearSelectionLabel = "Clear selection";
15
- this._name = undefined;
15
+ this.clearSelectionText = "Clear selection";
16
16
  this._id = undefined;
17
17
  this._messageId = undefined;
18
18
  this._validMessageId = undefined;
19
19
  this._invalidMessageId = undefined;
20
+ this._invalidMessage = undefined;
20
21
  this._selectId = undefined;
21
22
  this._labelId = undefined;
22
23
  this._summaryId = undefined;
@@ -34,14 +35,67 @@ const DBCustomSelect = class {
34
35
  this._values = [];
35
36
  this._options = [];
36
37
  this._hasNoOptions = false;
37
- this._internalChangeTimestamp = -1;
38
- this._externalChangeTimestamp = -1;
38
+ this._documentClickListenerCallbackId = undefined;
39
+ this._internalChangeTimestamp = 0;
39
40
  this.selectAllChecked = false;
40
41
  this.selectAllIndeterminate = false;
42
+ this.satisfyReact = function satisfyReact() {
43
+ // This is an empty function to satisfy React
44
+ };
45
+ }
46
+ hasValidState() {
47
+ var _a;
48
+ return !!((_a = this.validMessage) !== null && _a !== void 0 ? _a : this.validation === "valid");
49
+ }
50
+ handleValidation() {
51
+ var _a, _b, _c, _d, _e, _f, _g, _h;
52
+ if (this.selectRef) {
53
+ this.selectRef.value = this.getNativeSelectValue();
54
+ }
55
+ /* For a11y reasons we need to map the correct message with the select */
56
+ if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
57
+ this._descByIds = this._invalidMessageId;
58
+ this._invalidMessage =
59
+ this.invalidMessage ||
60
+ ((_b = this.selectRef) === null || _b === void 0 ? void 0 : _b.validationMessage) ||
61
+ constants.DEFAULT_INVALID_MESSAGE;
62
+ if (index$1.hasVoiceOver()) {
63
+ this._voiceOverFallback = this._invalidMessage;
64
+ index$1.delay(() => (this._voiceOverFallback = ""), 1000);
65
+ }
66
+ this._validity = (_c = this.validation) !== null && _c !== void 0 ? _c : "invalid";
67
+ }
68
+ else if (this.hasValidState() &&
69
+ ((_d = this.selectRef) === null || _d === void 0 ? void 0 : _d.validity.valid) &&
70
+ this.required) {
71
+ this._descByIds = this._validMessageId;
72
+ if (index$1.hasVoiceOver()) {
73
+ this._voiceOverFallback = (_e = this.validMessage) !== null && _e !== void 0 ? _e : constants.DEFAULT_VALID_MESSAGE;
74
+ index$1.delay(() => (this._voiceOverFallback = ""), 1000);
75
+ }
76
+ this._validity = (_f = this.validation) !== null && _f !== void 0 ? _f : "valid";
77
+ }
78
+ else if (index$1.stringPropVisible(this.message, this.showMessage)) {
79
+ this._descByIds = this._messageId;
80
+ this._validity = (_g = this.validation) !== null && _g !== void 0 ? _g : "no-validation";
81
+ }
82
+ else {
83
+ this._descByIds = this._placeholderId;
84
+ this._validity = (_h = this.validation) !== null && _h !== void 0 ? _h : "no-validation";
85
+ }
41
86
  }
42
87
  handleDropdownToggle(event) {
43
- if (this.onDropdownToggle) {
44
- this.onDropdownToggle.emit(event);
88
+ if (this.dropdownToggle) {
89
+ this.dropdownToggle.emit(event);
90
+ }
91
+ if (event.target.open) {
92
+ this._documentClickListenerCallbackId =
93
+ new documentClickListener.DocumentClickListener().addCallback((event) => this.handleDocumentClose(event));
94
+ }
95
+ else {
96
+ if (this._documentClickListenerCallbackId) {
97
+ new documentClickListener.DocumentClickListener().removeCallback(this._documentClickListenerCallbackId);
98
+ }
45
99
  }
46
100
  }
47
101
  getNativeSelectValue() {
@@ -63,24 +117,17 @@ const DBCustomSelect = class {
63
117
  this._descByIds = descByIds.join(" ");
64
118
  }
65
119
  getSelectAllLabel() {
66
- var _a, _b, _c;
67
- if (!this.selectAllRef)
68
- return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL;
69
- if (this.selectAllRef.indeterminate || !this.selectAllChecked) {
70
- return (_b = this.selectAllLabel) !== null && _b !== void 0 ? _b : constants.DEFAULT_LABEL;
71
- }
72
- else {
73
- return (_c = this.deSelectAllLabel) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL;
74
- }
120
+ var _a;
121
+ return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL;
75
122
  }
76
123
  getOptionLabel(option) {
77
124
  var _a, _b, _c;
78
125
  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 : "";
79
126
  }
80
127
  getOptionChecked(value) {
81
- var _a;
82
- if (value && this._values && this._values.includes) {
83
- return (_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value);
128
+ var _a, _b;
129
+ if (value && ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes)) {
130
+ return (_b = this._values) === null || _b === void 0 ? void 0 : _b.includes(value);
84
131
  }
85
132
  return false;
86
133
  }
@@ -111,7 +158,7 @@ const DBCustomSelect = class {
111
158
  }
112
159
  }
113
160
  handleArrowDownUp(event) {
114
- var _a, _b, _c, _d, _e;
161
+ var _a, _b, _c, _d, _e, _f, _g;
115
162
  if ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) {
116
163
  if (document) {
117
164
  const activeElement = document.activeElement;
@@ -123,7 +170,7 @@ const DBCustomSelect = class {
123
170
  const listElement = activeElement === null || activeElement === void 0 ? void 0 : activeElement.closest("li");
124
171
  if (event.key === "ArrowDown" || event.key === "ArrowRight") {
125
172
  if (listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling) {
126
- (_b = listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling.querySelector("input")) === null || _b === void 0 ? void 0 : _b.focus();
173
+ (_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();
127
174
  }
128
175
  else {
129
176
  // We are on the last checkbox we move to the top checkbox
@@ -132,7 +179,7 @@ const DBCustomSelect = class {
132
179
  }
133
180
  else {
134
181
  if (listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling) {
135
- (_c = listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling.querySelector("input")) === null || _c === void 0 ? void 0 : _c.focus();
182
+ (_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();
136
183
  }
137
184
  else if (this.detailsRef.querySelector(`input[type="checkbox"]`) !==
138
185
  activeElement) {
@@ -149,9 +196,9 @@ const DBCustomSelect = class {
149
196
  }, 100);
150
197
  }
151
198
  else {
152
- const checkboxList = Array.from((_d = this.detailsRef) === null || _d === void 0 ? void 0 : _d.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
199
+ const checkboxList = Array.from((_f = this.detailsRef) === null || _f === void 0 ? void 0 : _f.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
153
200
  if (checkboxList.length) {
154
- (_e = checkboxList.at(-1)) === null || _e === void 0 ? void 0 : _e.focus();
201
+ (_g = checkboxList.at(-1)) === null || _g === void 0 ? void 0 : _g.focus();
155
202
  }
156
203
  }
157
204
  }
@@ -214,41 +261,57 @@ const DBCustomSelect = class {
214
261
  }
215
262
  handleDocumentClose(event) {
216
263
  var _a;
217
- if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(event.target)) {
264
+ // stencil is sending a custom event which wraps the pointer event into details
265
+ const target = typeof event.detail === "number" ? event.target : event.detail.target;
266
+ if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(target)) {
218
267
  this.detailsRef.open = false;
219
268
  }
220
269
  }
270
+ handleOptionSelected(values) {
271
+ const skip = new Date().getTime() - this._internalChangeTimestamp < 200;
272
+ if (skip)
273
+ return;
274
+ if (this.optionSelected) {
275
+ this._values = values;
276
+ this.optionSelected.emit(values !== null && values !== void 0 ? values : []);
277
+ }
278
+ this._internalChangeTimestamp = new Date().getTime();
279
+ }
221
280
  handleSelect(value) {
222
- var _a, _b;
281
+ var _a;
223
282
  if (value) {
224
283
  if (this.multiple) {
225
284
  if ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value)) {
226
- this._values = (_b = this._values) === null || _b === void 0 ? void 0 : _b.filter((v) => v !== value);
285
+ this.handleOptionSelected(this._values.filter((v) => v !== value));
227
286
  }
228
287
  else {
229
- this._values = [...(this._values || []), value];
288
+ this.handleOptionSelected([...(this._values || []), value]);
230
289
  }
231
290
  }
232
291
  else {
233
- this._values = [value];
292
+ this.handleOptionSelected([value]);
234
293
  this.handleClose("close");
235
294
  }
236
- this._internalChangeTimestamp = new Date().getTime();
237
295
  }
238
296
  }
239
297
  handleSelectAll() {
240
298
  var _a;
241
299
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === this.amountOptions) {
242
- this._values = [];
300
+ this.handleOptionSelected([]);
243
301
  }
244
302
  else {
245
- this._values = this.options
246
- ? this.options
247
- .filter((option) => !option.isGroupTitle)
248
- .map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
249
- : [];
303
+ const searchValue = this.searchEnabled && this.searchInputRef
304
+ ? this.searchInputRef.value
305
+ : undefined;
306
+ this.handleOptionSelected(this.options
307
+ ? this.options.filter((option) => {
308
+ var _a;
309
+ return !option.isGroupTitle &&
310
+ (!searchValue ||
311
+ ((_a = option.value) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchValue.toLowerCase())));
312
+ }).map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
313
+ : []);
250
314
  }
251
- this._internalChangeTimestamp = new Date().getTime();
252
315
  }
253
316
  handleFocusFirstDropdownCheckbox(activeElement) {
254
317
  if (this.detailsRef) {
@@ -284,6 +347,7 @@ const DBCustomSelect = class {
284
347
  }
285
348
  }
286
349
  handleSearch(event) {
350
+ event.stopPropagation();
287
351
  const filterText = event.target.value;
288
352
  this._options =
289
353
  !this.options || !filterText || filterText.length === 0
@@ -294,7 +358,7 @@ const DBCustomSelect = class {
294
358
  .includes(filterText.toLowerCase()));
295
359
  }
296
360
  handleClearAll() {
297
- this._values = [];
361
+ this.handleOptionSelected([]);
298
362
  this.handleSummaryFocus();
299
363
  }
300
364
  handleSummaryFocus() {
@@ -334,8 +398,22 @@ const DBCustomSelect = class {
334
398
  }
335
399
  }
336
400
  watch0Fn() {
337
- var _a;
338
- this._name = (_a = this.name) !== null && _a !== void 0 ? _a : this._id;
401
+ if (this.detailsRef) {
402
+ const summary = this.detailsRef.querySelector("summary");
403
+ if (summary) {
404
+ summary.addEventListener("click", () => {
405
+ this.handleAutoPlacement();
406
+ this.handleOpenByKeyboardFocus(true);
407
+ });
408
+ summary.addEventListener("keydown", (event) => {
409
+ var _a;
410
+ if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
411
+ this.handleOpenByKeyboardFocus();
412
+ }
413
+ });
414
+ }
415
+ this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
416
+ }
339
417
  }
340
418
  watch0() {
341
419
  this.watch0Fn();
@@ -371,27 +449,6 @@ const DBCustomSelect = class {
371
449
  this.watch2Fn();
372
450
  }
373
451
  watch3Fn() {
374
- if (this.detailsRef) {
375
- const summary = this.detailsRef.querySelector("summary");
376
- if (summary) {
377
- summary.addEventListener("click", () => {
378
- this.handleAutoPlacement();
379
- this.handleOpenByKeyboardFocus(true);
380
- });
381
- summary.addEventListener("keydown", (event) => {
382
- var _a;
383
- if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
384
- this.handleOpenByKeyboardFocus();
385
- }
386
- });
387
- }
388
- this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
389
- }
390
- }
391
- watch3() {
392
- this.watch3Fn();
393
- }
394
- watch4Fn() {
395
452
  if (this.showNoResults !== undefined) {
396
453
  this._hasNoOptions = this.showNoResults;
397
454
  }
@@ -399,90 +456,45 @@ const DBCustomSelect = class {
399
456
  this._hasNoOptions = this._options.length === 0;
400
457
  }
401
458
  }
459
+ watch3() {
460
+ this.watch3Fn();
461
+ }
462
+ watch4Fn() {
463
+ this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
464
+ }
402
465
  watch4() {
403
466
  this.watch4Fn();
404
467
  }
405
468
  watch5Fn() {
406
- this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
469
+ this.searchEnabled = this.showSearch || this.amountOptions > 9;
407
470
  }
408
471
  watch5() {
409
472
  this.watch5Fn();
410
473
  }
411
474
  watch6Fn() {
412
- this.searchEnabled = this.showSearch || this.amountOptions > 9;
475
+ var _a;
476
+ if (this.values &&
477
+ Array.isArray(this.values) &&
478
+ this.values !== this._values) {
479
+ this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
480
+ }
413
481
  }
414
482
  watch6() {
415
483
  this.watch6Fn();
416
484
  }
417
485
  watch7Fn() {
418
- var _a;
419
- if (this.onSelect &&
420
- (this._externalChangeTimestamp || this._internalChangeTimestamp)) {
421
- const onlyInternalChange = this._internalChangeTimestamp && !this._externalChangeTimestamp;
422
- const bothChangeButInternalNew = this._internalChangeTimestamp &&
423
- this._externalChangeTimestamp &&
424
- this._internalChangeTimestamp > this._externalChangeTimestamp;
425
- if (onlyInternalChange || bothChangeButInternalNew) {
426
- this.onSelect.emit((_a = this._values) !== null && _a !== void 0 ? _a : []);
427
- }
428
- }
486
+ this.handleValidation();
429
487
  }
430
488
  watch7() {
431
489
  this.watch7Fn();
432
490
  }
433
491
  watch8Fn() {
434
- var _a;
435
- if (this.values && Array.isArray(this.values)) {
436
- this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
437
- this._externalChangeTimestamp = new Date().getTime();
438
- }
492
+ this._validity = this.validation;
439
493
  }
440
494
  watch8() {
441
495
  this.watch8Fn();
442
496
  }
443
497
  watch9Fn() {
444
- var _a, _b, _c, _d, _e, _f;
445
- if (this.selectRef) {
446
- this.selectRef.value = this.getNativeSelectValue();
447
- }
448
- /* For a11y reasons we need to map the correct message with the select */
449
- if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
450
- this._validity = "invalid";
451
- this.setDescById(this._invalidMessageId);
452
- if (index$1.hasVoiceOver()) {
453
- this._voiceOverFallback =
454
- (_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 : constants.DEFAULT_INVALID_MESSAGE;
455
- index$1.delay(() => (this._voiceOverFallback = ""), 1000);
456
- }
457
- }
458
- else if (this.validation === "valid" ||
459
- (((_e = this.selectRef) === null || _e === void 0 ? void 0 : _e.validity.valid) && this.required)) {
460
- this._validity = "valid";
461
- this.setDescById(this._validMessageId);
462
- if (index$1.hasVoiceOver()) {
463
- this._voiceOverFallback = (_f = this.validMessage) !== null && _f !== void 0 ? _f : constants.DEFAULT_VALID_MESSAGE;
464
- index$1.delay(() => (this._voiceOverFallback = ""), 1000);
465
- }
466
- }
467
- else if (this.message) {
468
- this._validity = "no-validation";
469
- this.setDescById(this._messageId);
470
- }
471
- else {
472
- this._validity = "no-validation";
473
- this.setDescById(this._placeholderId);
474
- }
475
- }
476
- watch9() {
477
- this.watch9Fn();
478
- }
479
- watch10Fn() {
480
- this._validity = this.validation;
481
- }
482
- watch10() {
483
- this.watch10Fn();
484
- }
485
- watch11Fn() {
486
498
  var _a, _b;
487
499
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
488
500
  this.selectAllChecked = false;
@@ -496,19 +508,19 @@ const DBCustomSelect = class {
496
508
  this.selectAllIndeterminate = true;
497
509
  }
498
510
  }
499
- watch11() {
500
- this.watch11Fn();
511
+ watch9() {
512
+ this.watch9Fn();
501
513
  }
502
- watch12Fn() {
514
+ watch10Fn() {
503
515
  var _a, _b;
504
516
  this._options = this.options;
505
517
  this.amountOptions =
506
518
  (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
507
519
  }
508
- watch12() {
509
- this.watch12Fn();
520
+ watch10() {
521
+ this.watch10Fn();
510
522
  }
511
- watch13Fn() {
523
+ watch11Fn() {
512
524
  var _a, _b;
513
525
  if ((_a = this._options) === null || _a === void 0 ? void 0 : _a.length) {
514
526
  this._selectedOptions = (_b = this._options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
@@ -520,10 +532,10 @@ const DBCustomSelect = class {
520
532
  });
521
533
  }
522
534
  }
523
- watch13() {
524
- this.watch13Fn();
535
+ watch11() {
536
+ this.watch11Fn();
525
537
  }
526
- watch14Fn() {
538
+ watch12Fn() {
527
539
  var _a, _b, _c;
528
540
  if ((_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) {
529
541
  if (this.selectedType === "amount") {
@@ -539,25 +551,35 @@ const DBCustomSelect = class {
539
551
  this._selectedLabels = "";
540
552
  }
541
553
  }
542
- watch14() {
543
- this.watch14Fn();
554
+ watch12() {
555
+ this.watch12Fn();
544
556
  }
545
- watch15Fn() {
557
+ watch13Fn() {
546
558
  var _a, _b;
547
- if (this.onAmountChange) {
548
- this.onAmountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
559
+ if (this.amountChange) {
560
+ this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
549
561
  }
550
562
  }
551
- watch15() {
552
- this.watch15Fn();
563
+ watch13() {
564
+ this.watch13Fn();
553
565
  }
554
- watch16Fn() {
566
+ watch14Fn() {
555
567
  if (this.selectAllRef) {
556
568
  this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
557
569
  }
558
570
  }
559
- watch16() {
560
- this.watch16Fn();
571
+ watch14() {
572
+ this.watch14Fn();
573
+ }
574
+ watch15Fn() {
575
+ var _a;
576
+ this._invalidMessage =
577
+ this.invalidMessage ||
578
+ ((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
579
+ constants.DEFAULT_INVALID_MESSAGE;
580
+ }
581
+ watch15() {
582
+ this.watch15Fn();
561
583
  }
562
584
  componentDidLoad() {
563
585
  var _a;
@@ -573,9 +595,7 @@ const DBCustomSelect = class {
573
595
  this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
574
596
  this._selectedLabelsId = mId + "-selected-labels";
575
597
  this._infoTextId = mId + "-info";
576
- if (document) {
577
- document.addEventListener("click", this.handleDocumentClose);
578
- }
598
+ this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
579
599
  this.watch0Fn();
580
600
  this.watch1Fn();
581
601
  this.watch2Fn();
@@ -592,60 +612,54 @@ const DBCustomSelect = class {
592
612
  this.watch13Fn();
593
613
  this.watch14Fn();
594
614
  this.watch15Fn();
595
- this.watch16Fn();
596
- }
597
- disconnectedCallback() {
598
- if (document) {
599
- document.removeEventListener("click", this.handleDocumentClose);
600
- }
601
615
  }
602
616
  render() {
603
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
604
- return (index.h("div", { key: '7bcd0b065dd492b5e1e00c4b22948143d947552a', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
617
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
618
+ return (index.h("div", { key: 'ba168e109d3b2e75b46145033a88119ac46cf3f7', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
605
619
  this._ref = el;
606
- }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.width, "data-variant": this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-hide-icon": index$1.getHideProp(this.showIcon) }, index.h("label", { key: '1ddb2c43327a9f046728c57d3da93ef4872f9e3c', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: 'c69f10fe071860ff5478aedc614565a6387d5d13', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
620
+ }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
621
+ this.selectedType === "tag" &&
622
+ this.multiple
623
+ ? "above"
624
+ : this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-hide-icon": index$1.getHideProp(this.showIcon) }, index.h("label", { key: 'a92ba45f913e2c7a78140da705da166af94484b5', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '093c76705744d56d0d3c2c33f108a74b088381a5', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
607
625
  this.selectRef = el;
608
- }, 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) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option)))))), index.h("details", { key: 'd3229a4f6bda6ba5f1c64d3e60c48fd35aec95f5', ref: (el) => {
626
+ }, form: this.form, name: this.name, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: () => this.satisfyReact() }, ((_b = this._options) === null || _b === void 0 ? void 0 : _b.length)
627
+ ? (_c = this._options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
628
+ : null)), index.h("details", { key: '64c5745a0fc32954f792b7fb81c8b26f11304565', ref: (el) => {
609
629
  this.detailsRef = el;
610
- }, open: this.open, "aria-disabled": this.disabled, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: 'd6c5cfde8195408d10dd586242d27e676be3f9ab' }), this.options ? (index.h(index.Fragment, null, index.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) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_d = this._selectedOptions) === null || _d === void 0 ? void 0 : _d.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index$1), onRemove: (event) => {
611
- this.handleTagRemove(option, event);
612
- }, key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", showLabel: false, label: (_e = this.searchLabel) !== null && _e !== void 0 ? _e : constants.DEFAULT_LABEL, placeholder: (_f = this.searchPlaceholder) !== null && _f !== void 0 ? _f : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
630
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '1b1683fa3e54c249efd67e1ca960d61accd125c3' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index$1), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
631
+ this.searchInputRef = el;
632
+ }, name: this._id, form: this._id, showLabel: false, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : constants.DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
613
633
  ? this._infoTextId
614
- : undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-infotext", { id: this._infoTextId, icon: this._hasNoOptions ? undefined : "circular_arrows", semantic: this._hasNoOptions ? "warning" : "informational" }, (_g = (this._hasNoOptions
634
+ : undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-infotext", { id: this._infoTextId, icon: this._hasNoOptions ? undefined : "circular_arrows", semantic: this._hasNoOptions ? "warning" : "informational" }, (_h = (this._hasNoOptions
615
635
  ? this.noResultsText
616
- : this.loadingText)) !== null && _g !== void 0 ? _g : constants.DEFAULT_MESSAGE)) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
636
+ : this.loadingText)) !== null && _h !== void 0 ? _h : constants.DEFAULT_MESSAGE)) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
617
637
  this.selectAllRef = el;
618
- }, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: this.multiple, label: (_h = this.label) !== null && _h !== void 0 ? _h : constants.DEFAULT_LABEL }, (_j = this._options) === null || _j === void 0 ? void 0 : _j.map((option) => (index.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: () => {
619
- this.handleSelect(option.value);
620
- }, key: undefined }, !option.isGroupTitle
638
+ }, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.ariaListLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : constants.DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (index.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
621
639
  ? this.getOptionLabel(option)
622
- : null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", onClick: () => {
623
- this.handleClose("close");
624
- } }, (_k = this.mobileCloseButtonText) !== null && _k !== void 0 ? _k : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_l = this.showClearSelection) !== null && _l !== void 0 ? _l : true) && ((_m = this._values) === null || _m === void 0 ? void 0 : _m.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, onClick: () => this.handleClearAll() }, this.clearSelectionLabel, index.h("db-tooltip", { placement: "top" }, this.clearSelectionLabel))) : null, index.h("span", { key: '4d15f0a5d709cb329a3c18b907b5e9cf952a6252', "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_o = this.placeholder) !== null && _o !== void 0 ? _o : this.label), this.message ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, index.h("db-infotext", { key: '8e63397ef220c396c55d7d228fbc7e0ee7664688', size: "small", semantic: "successful", id: this._validMessageId }, (_p = this.validMessage) !== null && _p !== void 0 ? _p : constants.DEFAULT_VALID_MESSAGE), index.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) || constants.DEFAULT_INVALID_MESSAGE)), index.h("span", { key: '28db5cbc1feca0e5738148bb87e0df78d596e975', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
640
+ : null)))))), index.h("div", null, index.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 : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: () => this.handleClearAll() }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '309d5096cdbdfee24bd9a8a1941241586b60b3a4', "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '8f0fe04ea553fbffd86a7e30baa9cab7be708fd6', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: 'c106041467983c90b5a56ee4a6a56f8653dccaab', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
625
641
  }
626
642
  static get watchers() { return {
627
- "name": ["watch0"],
628
- "_id": ["watch0", "watch1"],
629
- "detailsRef": ["watch2", "watch3"],
643
+ "detailsRef": ["watch0", "watch2"],
644
+ "_id": ["watch1"],
630
645
  "_descByIds": ["watch2"],
631
- "showNoResults": ["watch4"],
632
- "_options": ["watch4", "watch13"],
633
- "showSelectAll": ["watch5"],
634
- "amountOptions": ["watch5", "watch6", "watch11"],
635
- "multiple": ["watch5"],
636
- "showSearch": ["watch6"],
637
- "_externalChangeTimestamp": ["watch7"],
638
- "_internalChangeTimestamp": ["watch7"],
639
- "onSelect": ["watch7"],
640
- "values": ["watch8"],
641
- "_values": ["watch9", "watch11", "watch13"],
642
- "validation": ["watch10"],
643
- "options": ["watch12"],
644
- "_selectedOptions": ["watch14", "watch15"],
645
- "selectedType": ["watch14"],
646
- "amountText": ["watch14"],
647
- "selectAllIndeterminate": ["watch16"],
648
- "selectAllRef": ["watch16"]
646
+ "showNoResults": ["watch3"],
647
+ "_options": ["watch3", "watch11"],
648
+ "showSelectAll": ["watch4"],
649
+ "amountOptions": ["watch4", "watch5", "watch9"],
650
+ "multiple": ["watch4"],
651
+ "showSearch": ["watch5"],
652
+ "values": ["watch6"],
653
+ "_values": ["watch7", "watch9", "watch11"],
654
+ "validation": ["watch8"],
655
+ "options": ["watch10"],
656
+ "_selectedOptions": ["watch12", "watch13"],
657
+ "selectedType": ["watch12"],
658
+ "amountText": ["watch12"],
659
+ "selectAllIndeterminate": ["watch14"],
660
+ "selectAllRef": ["watch14"],
661
+ "selectRef": ["watch15"],
662
+ "invalidMessage": ["watch15"]
649
663
  }; }
650
664
  };
651
665