@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,5 +1,6 @@
1
- import { cls, delay, getBooleanAsString, getHideProp, getSearchInput, handleDataOutside, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
1
+ import { cls, delay, getBoolean, getBooleanAsString, getHideProp, getSearchInput, handleDataOutside, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
2
2
  import { DEFAULT_CLOSE_BUTTON, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_SELECTED, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
3
+ import { DocumentClickListener } from "../../utils/document-click-listener";
3
4
  import { h, Fragment, } from "@stencil/core";
4
5
  /**
5
6
  * @slot children - This is a default/unnamed slot
@@ -8,12 +9,12 @@ import { h, Fragment, } from "@stencil/core";
8
9
  export class DBCustomSelect {
9
10
  constructor() {
10
11
  this.showClearSelection = true;
11
- this.clearSelectionLabel = "Clear selection";
12
- this._name = undefined;
12
+ this.clearSelectionText = "Clear selection";
13
13
  this._id = undefined;
14
14
  this._messageId = undefined;
15
15
  this._validMessageId = undefined;
16
16
  this._invalidMessageId = undefined;
17
+ this._invalidMessage = undefined;
17
18
  this._selectId = undefined;
18
19
  this._labelId = undefined;
19
20
  this._summaryId = undefined;
@@ -31,14 +32,67 @@ export class DBCustomSelect {
31
32
  this._values = [];
32
33
  this._options = [];
33
34
  this._hasNoOptions = false;
34
- this._internalChangeTimestamp = -1;
35
- this._externalChangeTimestamp = -1;
35
+ this._documentClickListenerCallbackId = undefined;
36
+ this._internalChangeTimestamp = 0;
36
37
  this.selectAllChecked = false;
37
38
  this.selectAllIndeterminate = false;
39
+ this.satisfyReact = function satisfyReact() {
40
+ // This is an empty function to satisfy React
41
+ };
42
+ }
43
+ hasValidState() {
44
+ var _a;
45
+ return !!((_a = this.validMessage) !== null && _a !== void 0 ? _a : this.validation === "valid");
46
+ }
47
+ handleValidation() {
48
+ var _a, _b, _c, _d, _e, _f, _g, _h;
49
+ if (this.selectRef) {
50
+ this.selectRef.value = this.getNativeSelectValue();
51
+ }
52
+ /* For a11y reasons we need to map the correct message with the select */
53
+ if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
54
+ this._descByIds = this._invalidMessageId;
55
+ this._invalidMessage =
56
+ this.invalidMessage ||
57
+ ((_b = this.selectRef) === null || _b === void 0 ? void 0 : _b.validationMessage) ||
58
+ DEFAULT_INVALID_MESSAGE;
59
+ if (hasVoiceOver()) {
60
+ this._voiceOverFallback = this._invalidMessage;
61
+ delay(() => (this._voiceOverFallback = ""), 1000);
62
+ }
63
+ this._validity = (_c = this.validation) !== null && _c !== void 0 ? _c : "invalid";
64
+ }
65
+ else if (this.hasValidState() &&
66
+ ((_d = this.selectRef) === null || _d === void 0 ? void 0 : _d.validity.valid) &&
67
+ this.required) {
68
+ this._descByIds = this._validMessageId;
69
+ if (hasVoiceOver()) {
70
+ this._voiceOverFallback = (_e = this.validMessage) !== null && _e !== void 0 ? _e : DEFAULT_VALID_MESSAGE;
71
+ delay(() => (this._voiceOverFallback = ""), 1000);
72
+ }
73
+ this._validity = (_f = this.validation) !== null && _f !== void 0 ? _f : "valid";
74
+ }
75
+ else if (stringPropVisible(this.message, this.showMessage)) {
76
+ this._descByIds = this._messageId;
77
+ this._validity = (_g = this.validation) !== null && _g !== void 0 ? _g : "no-validation";
78
+ }
79
+ else {
80
+ this._descByIds = this._placeholderId;
81
+ this._validity = (_h = this.validation) !== null && _h !== void 0 ? _h : "no-validation";
82
+ }
38
83
  }
39
84
  handleDropdownToggle(event) {
40
- if (this.onDropdownToggle) {
41
- this.onDropdownToggle.emit(event);
85
+ if (this.dropdownToggle) {
86
+ this.dropdownToggle.emit(event);
87
+ }
88
+ if (event.target.open) {
89
+ this._documentClickListenerCallbackId =
90
+ new DocumentClickListener().addCallback((event) => this.handleDocumentClose(event));
91
+ }
92
+ else {
93
+ if (this._documentClickListenerCallbackId) {
94
+ new DocumentClickListener().removeCallback(this._documentClickListenerCallbackId);
95
+ }
42
96
  }
43
97
  }
44
98
  getNativeSelectValue() {
@@ -60,24 +114,17 @@ export class DBCustomSelect {
60
114
  this._descByIds = descByIds.join(" ");
61
115
  }
62
116
  getSelectAllLabel() {
63
- var _a, _b, _c;
64
- if (!this.selectAllRef)
65
- return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : DEFAULT_LABEL;
66
- if (this.selectAllRef.indeterminate || !this.selectAllChecked) {
67
- return (_b = this.selectAllLabel) !== null && _b !== void 0 ? _b : DEFAULT_LABEL;
68
- }
69
- else {
70
- return (_c = this.deSelectAllLabel) !== null && _c !== void 0 ? _c : DEFAULT_LABEL;
71
- }
117
+ var _a;
118
+ return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : DEFAULT_LABEL;
72
119
  }
73
120
  getOptionLabel(option) {
74
121
  var _a, _b, _c;
75
122
  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 : "";
76
123
  }
77
124
  getOptionChecked(value) {
78
- var _a;
79
- if (value && this._values && this._values.includes) {
80
- return (_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value);
125
+ var _a, _b;
126
+ if (value && ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes)) {
127
+ return (_b = this._values) === null || _b === void 0 ? void 0 : _b.includes(value);
81
128
  }
82
129
  return false;
83
130
  }
@@ -108,7 +155,7 @@ export class DBCustomSelect {
108
155
  }
109
156
  }
110
157
  handleArrowDownUp(event) {
111
- var _a, _b, _c, _d, _e;
158
+ var _a, _b, _c, _d, _e, _f, _g;
112
159
  if ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) {
113
160
  if (document) {
114
161
  const activeElement = document.activeElement;
@@ -120,7 +167,7 @@ export class DBCustomSelect {
120
167
  const listElement = activeElement === null || activeElement === void 0 ? void 0 : activeElement.closest("li");
121
168
  if (event.key === "ArrowDown" || event.key === "ArrowRight") {
122
169
  if (listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling) {
123
- (_b = listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling.querySelector("input")) === null || _b === void 0 ? void 0 : _b.focus();
170
+ (_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();
124
171
  }
125
172
  else {
126
173
  // We are on the last checkbox we move to the top checkbox
@@ -129,7 +176,7 @@ export class DBCustomSelect {
129
176
  }
130
177
  else {
131
178
  if (listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling) {
132
- (_c = listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling.querySelector("input")) === null || _c === void 0 ? void 0 : _c.focus();
179
+ (_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();
133
180
  }
134
181
  else if (this.detailsRef.querySelector(`input[type="checkbox"]`) !==
135
182
  activeElement) {
@@ -146,9 +193,9 @@ export class DBCustomSelect {
146
193
  }, 100);
147
194
  }
148
195
  else {
149
- const checkboxList = Array.from((_d = this.detailsRef) === null || _d === void 0 ? void 0 : _d.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
196
+ const checkboxList = Array.from((_f = this.detailsRef) === null || _f === void 0 ? void 0 : _f.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
150
197
  if (checkboxList.length) {
151
- (_e = checkboxList.at(-1)) === null || _e === void 0 ? void 0 : _e.focus();
198
+ (_g = checkboxList.at(-1)) === null || _g === void 0 ? void 0 : _g.focus();
152
199
  }
153
200
  }
154
201
  }
@@ -211,41 +258,57 @@ export class DBCustomSelect {
211
258
  }
212
259
  handleDocumentClose(event) {
213
260
  var _a;
214
- if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(event.target)) {
261
+ // stencil is sending a custom event which wraps the pointer event into details
262
+ const target = typeof event.detail === "number" ? event.target : event.detail.target;
263
+ if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(target)) {
215
264
  this.detailsRef.open = false;
216
265
  }
217
266
  }
267
+ handleOptionSelected(values) {
268
+ const skip = new Date().getTime() - this._internalChangeTimestamp < 200;
269
+ if (skip)
270
+ return;
271
+ if (this.optionSelected) {
272
+ this._values = values;
273
+ this.optionSelected.emit(values !== null && values !== void 0 ? values : []);
274
+ }
275
+ this._internalChangeTimestamp = new Date().getTime();
276
+ }
218
277
  handleSelect(value) {
219
- var _a, _b;
278
+ var _a;
220
279
  if (value) {
221
280
  if (this.multiple) {
222
281
  if ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value)) {
223
- this._values = (_b = this._values) === null || _b === void 0 ? void 0 : _b.filter((v) => v !== value);
282
+ this.handleOptionSelected(this._values.filter((v) => v !== value));
224
283
  }
225
284
  else {
226
- this._values = [...(this._values || []), value];
285
+ this.handleOptionSelected([...(this._values || []), value]);
227
286
  }
228
287
  }
229
288
  else {
230
- this._values = [value];
289
+ this.handleOptionSelected([value]);
231
290
  this.handleClose("close");
232
291
  }
233
- this._internalChangeTimestamp = new Date().getTime();
234
292
  }
235
293
  }
236
294
  handleSelectAll() {
237
295
  var _a;
238
296
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === this.amountOptions) {
239
- this._values = [];
297
+ this.handleOptionSelected([]);
240
298
  }
241
299
  else {
242
- this._values = this.options
243
- ? this.options
244
- .filter((option) => !option.isGroupTitle)
245
- .map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
246
- : [];
300
+ const searchValue = this.searchEnabled && this.searchInputRef
301
+ ? this.searchInputRef.value
302
+ : undefined;
303
+ this.handleOptionSelected(this.options
304
+ ? this.options.filter((option) => {
305
+ var _a;
306
+ return !option.isGroupTitle &&
307
+ (!searchValue ||
308
+ ((_a = option.value) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchValue.toLowerCase())));
309
+ }).map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
310
+ : []);
247
311
  }
248
- this._internalChangeTimestamp = new Date().getTime();
249
312
  }
250
313
  handleFocusFirstDropdownCheckbox(activeElement) {
251
314
  if (this.detailsRef) {
@@ -281,6 +344,7 @@ export class DBCustomSelect {
281
344
  }
282
345
  }
283
346
  handleSearch(event) {
347
+ event.stopPropagation();
284
348
  const filterText = event.target.value;
285
349
  this._options =
286
350
  !this.options || !filterText || filterText.length === 0
@@ -291,7 +355,7 @@ export class DBCustomSelect {
291
355
  .includes(filterText.toLowerCase()));
292
356
  }
293
357
  handleClearAll() {
294
- this._values = [];
358
+ this.handleOptionSelected([]);
295
359
  this.handleSummaryFocus();
296
360
  }
297
361
  handleSummaryFocus() {
@@ -331,8 +395,22 @@ export class DBCustomSelect {
331
395
  }
332
396
  }
333
397
  watch0Fn() {
334
- var _a;
335
- this._name = (_a = this.name) !== null && _a !== void 0 ? _a : this._id;
398
+ if (this.detailsRef) {
399
+ const summary = this.detailsRef.querySelector("summary");
400
+ if (summary) {
401
+ summary.addEventListener("click", () => {
402
+ this.handleAutoPlacement();
403
+ this.handleOpenByKeyboardFocus(true);
404
+ });
405
+ summary.addEventListener("keydown", (event) => {
406
+ var _a;
407
+ if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
408
+ this.handleOpenByKeyboardFocus();
409
+ }
410
+ });
411
+ }
412
+ this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
413
+ }
336
414
  }
337
415
  watch0() {
338
416
  this.watch0Fn();
@@ -368,27 +446,6 @@ export class DBCustomSelect {
368
446
  this.watch2Fn();
369
447
  }
370
448
  watch3Fn() {
371
- if (this.detailsRef) {
372
- const summary = this.detailsRef.querySelector("summary");
373
- if (summary) {
374
- summary.addEventListener("click", () => {
375
- this.handleAutoPlacement();
376
- this.handleOpenByKeyboardFocus(true);
377
- });
378
- summary.addEventListener("keydown", (event) => {
379
- var _a;
380
- if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
381
- this.handleOpenByKeyboardFocus();
382
- }
383
- });
384
- }
385
- this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
386
- }
387
- }
388
- watch3() {
389
- this.watch3Fn();
390
- }
391
- watch4Fn() {
392
449
  if (this.showNoResults !== undefined) {
393
450
  this._hasNoOptions = this.showNoResults;
394
451
  }
@@ -396,95 +453,45 @@ export class DBCustomSelect {
396
453
  this._hasNoOptions = this._options.length === 0;
397
454
  }
398
455
  }
456
+ watch3() {
457
+ this.watch3Fn();
458
+ }
459
+ watch4Fn() {
460
+ this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
461
+ }
399
462
  watch4() {
400
463
  this.watch4Fn();
401
464
  }
402
465
  watch5Fn() {
403
- this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
466
+ this.searchEnabled = this.showSearch || this.amountOptions > 9;
404
467
  }
405
468
  watch5() {
406
469
  this.watch5Fn();
407
470
  }
408
471
  watch6Fn() {
409
- this.searchEnabled = this.showSearch || this.amountOptions > 9;
472
+ var _a;
473
+ if (this.values &&
474
+ Array.isArray(this.values) &&
475
+ this.values !== this._values) {
476
+ this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
477
+ }
410
478
  }
411
479
  watch6() {
412
480
  this.watch6Fn();
413
481
  }
414
482
  watch7Fn() {
415
- var _a;
416
- if (this.onSelect &&
417
- (this._externalChangeTimestamp || this._internalChangeTimestamp)) {
418
- const onlyInternalChange = this._internalChangeTimestamp && !this._externalChangeTimestamp;
419
- const bothChangeButInternalNew = this._internalChangeTimestamp &&
420
- this._externalChangeTimestamp &&
421
- this._internalChangeTimestamp > this._externalChangeTimestamp;
422
- if (onlyInternalChange || bothChangeButInternalNew) {
423
- this.onSelect.emit((_a = this._values) !== null && _a !== void 0 ? _a : []);
424
- const fakeEvent = {
425
- target: {
426
- values: this._values,
427
- },
428
- };
429
- }
430
- }
483
+ this.handleValidation();
431
484
  }
432
485
  watch7() {
433
486
  this.watch7Fn();
434
487
  }
435
488
  watch8Fn() {
436
- var _a;
437
- if (this.values && Array.isArray(this.values)) {
438
- this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
439
- this._externalChangeTimestamp = new Date().getTime();
440
- }
489
+ this._validity = this.validation;
441
490
  }
442
491
  watch8() {
443
492
  this.watch8Fn();
444
493
  }
445
494
  watch9Fn() {
446
- var _a, _b, _c, _d, _e, _f;
447
- if (this.selectRef) {
448
- this.selectRef.value = this.getNativeSelectValue();
449
- }
450
- /* For a11y reasons we need to map the correct message with the select */
451
- if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
452
- this._validity = "invalid";
453
- this.setDescById(this._invalidMessageId);
454
- if (hasVoiceOver()) {
455
- this._voiceOverFallback =
456
- (_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;
457
- delay(() => (this._voiceOverFallback = ""), 1000);
458
- }
459
- }
460
- else if (this.validation === "valid" ||
461
- (((_e = this.selectRef) === null || _e === void 0 ? void 0 : _e.validity.valid) && this.required)) {
462
- this._validity = "valid";
463
- this.setDescById(this._validMessageId);
464
- if (hasVoiceOver()) {
465
- this._voiceOverFallback = (_f = this.validMessage) !== null && _f !== void 0 ? _f : DEFAULT_VALID_MESSAGE;
466
- delay(() => (this._voiceOverFallback = ""), 1000);
467
- }
468
- }
469
- else if (this.message) {
470
- this._validity = "no-validation";
471
- this.setDescById(this._messageId);
472
- }
473
- else {
474
- this._validity = "no-validation";
475
- this.setDescById(this._placeholderId);
476
- }
477
- }
478
- watch9() {
479
- this.watch9Fn();
480
- }
481
- watch10Fn() {
482
- this._validity = this.validation;
483
- }
484
- watch10() {
485
- this.watch10Fn();
486
- }
487
- watch11Fn() {
488
495
  var _a, _b;
489
496
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
490
497
  this.selectAllChecked = false;
@@ -498,19 +505,19 @@ export class DBCustomSelect {
498
505
  this.selectAllIndeterminate = true;
499
506
  }
500
507
  }
501
- watch11() {
502
- this.watch11Fn();
508
+ watch9() {
509
+ this.watch9Fn();
503
510
  }
504
- watch12Fn() {
511
+ watch10Fn() {
505
512
  var _a, _b;
506
513
  this._options = this.options;
507
514
  this.amountOptions =
508
515
  (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
509
516
  }
510
- watch12() {
511
- this.watch12Fn();
517
+ watch10() {
518
+ this.watch10Fn();
512
519
  }
513
- watch13Fn() {
520
+ watch11Fn() {
514
521
  var _a, _b;
515
522
  if ((_a = this._options) === null || _a === void 0 ? void 0 : _a.length) {
516
523
  this._selectedOptions = (_b = this._options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
@@ -522,10 +529,10 @@ export class DBCustomSelect {
522
529
  });
523
530
  }
524
531
  }
525
- watch13() {
526
- this.watch13Fn();
532
+ watch11() {
533
+ this.watch11Fn();
527
534
  }
528
- watch14Fn() {
535
+ watch12Fn() {
529
536
  var _a, _b, _c;
530
537
  if ((_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) {
531
538
  if (this.selectedType === "amount") {
@@ -541,25 +548,35 @@ export class DBCustomSelect {
541
548
  this._selectedLabels = "";
542
549
  }
543
550
  }
544
- watch14() {
545
- this.watch14Fn();
551
+ watch12() {
552
+ this.watch12Fn();
546
553
  }
547
- watch15Fn() {
554
+ watch13Fn() {
548
555
  var _a, _b;
549
- if (this.onAmountChange) {
550
- this.onAmountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
556
+ if (this.amountChange) {
557
+ this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
551
558
  }
552
559
  }
553
- watch15() {
554
- this.watch15Fn();
560
+ watch13() {
561
+ this.watch13Fn();
555
562
  }
556
- watch16Fn() {
563
+ watch14Fn() {
557
564
  if (this.selectAllRef) {
558
565
  this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
559
566
  }
560
567
  }
561
- watch16() {
562
- this.watch16Fn();
568
+ watch14() {
569
+ this.watch14Fn();
570
+ }
571
+ watch15Fn() {
572
+ var _a;
573
+ this._invalidMessage =
574
+ this.invalidMessage ||
575
+ ((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
576
+ DEFAULT_INVALID_MESSAGE;
577
+ }
578
+ watch15() {
579
+ this.watch15Fn();
563
580
  }
564
581
  componentDidLoad() {
565
582
  var _a;
@@ -575,9 +592,7 @@ export class DBCustomSelect {
575
592
  this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
576
593
  this._selectedLabelsId = mId + "-selected-labels";
577
594
  this._infoTextId = mId + "-info";
578
- if (document) {
579
- document.addEventListener("click", this.handleDocumentClose);
580
- }
595
+ this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
581
596
  this.watch0Fn();
582
597
  this.watch1Fn();
583
598
  this.watch2Fn();
@@ -594,42 +609,39 @@ export class DBCustomSelect {
594
609
  this.watch13Fn();
595
610
  this.watch14Fn();
596
611
  this.watch15Fn();
597
- this.watch16Fn();
598
- }
599
- disconnectedCallback() {
600
- if (document) {
601
- document.removeEventListener("click", this.handleDocumentClose);
602
- }
603
612
  }
604
613
  render() {
605
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
606
- return (h("div", { key: '7bcd0b065dd492b5e1e00c4b22948143d947552a', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
614
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
615
+ return (h("div", { key: 'ba168e109d3b2e75b46145033a88119ac46cf3f7', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
607
616
  this._ref = el;
608
- }, "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) => {
617
+ }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
618
+ this.selectedType === "tag" &&
619
+ this.multiple
620
+ ? "above"
621
+ : 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) => {
609
622
  this.selectRef = el;
610
- }, 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) => {
623
+ }, 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)
624
+ ? (_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))))
625
+ : null)), h("details", { key: '64c5745a0fc32954f792b7fb81c8b26f11304565', ref: (el) => {
611
626
  this.detailsRef = el;
612
- }, 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) => {
613
- this.handleTagRemove(option, event);
614
- }, 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
627
+ }, 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) => {
628
+ this.searchInputRef = el;
629
+ }, 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
615
630
  ? this._infoTextId
616
- : 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
631
+ : 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
617
632
  ? this.noResultsText
618
- : 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) => {
633
+ : 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) => {
619
634
  this.selectAllRef = el;
620
- }, 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: () => {
621
- this.handleSelect(option.value);
622
- }, key: undefined }, !option.isGroupTitle
635
+ }, 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
623
636
  ? this.getOptionLabel(option)
624
- : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", onClick: () => {
625
- this.handleClose("close");
626
- } }, (_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)));
637
+ : 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)));
627
638
  }
628
639
  static get is() { return "db-custom-select"; }
629
640
  static get properties() {
630
641
  return {
631
642
  "id": {
632
643
  "type": "string",
644
+ "attribute": "id",
633
645
  "mutable": false,
634
646
  "complexType": {
635
647
  "original": "DBCustomSelectProps[\"id\"]",
@@ -650,14 +662,14 @@ export class DBCustomSelect {
650
662
  },
651
663
  "getter": false,
652
664
  "setter": false,
653
- "attribute": "id",
654
665
  "reflect": false
655
666
  },
656
- "name": {
667
+ "invalidMessage": {
657
668
  "type": "string",
669
+ "attribute": "invalid-message",
658
670
  "mutable": false,
659
671
  "complexType": {
660
- "original": "DBCustomSelectProps[\"name\"]",
672
+ "original": "DBCustomSelectProps[\"invalidMessage\"]",
661
673
  "resolved": "string",
662
674
  "references": {
663
675
  "DBCustomSelectProps": {
@@ -675,11 +687,11 @@ export class DBCustomSelect {
675
687
  },
676
688
  "getter": false,
677
689
  "setter": false,
678
- "attribute": "name",
679
690
  "reflect": false
680
691
  },
681
692
  "message": {
682
693
  "type": "string",
694
+ "attribute": "message",
683
695
  "mutable": false,
684
696
  "complexType": {
685
697
  "original": "DBCustomSelectProps[\"message\"]",
@@ -700,15 +712,15 @@ export class DBCustomSelect {
700
712
  },
701
713
  "getter": false,
702
714
  "setter": false,
703
- "attribute": "message",
704
715
  "reflect": false
705
716
  },
706
717
  "showMessage": {
707
- "type": "boolean",
718
+ "type": "any",
719
+ "attribute": "show-message",
708
720
  "mutable": false,
709
721
  "complexType": {
710
722
  "original": "DBCustomSelectProps[\"showMessage\"]",
711
- "resolved": "boolean",
723
+ "resolved": "boolean | string",
712
724
  "references": {
713
725
  "DBCustomSelectProps": {
714
726
  "location": "import",
@@ -725,11 +737,11 @@ export class DBCustomSelect {
725
737
  },
726
738
  "getter": false,
727
739
  "setter": false,
728
- "attribute": "show-message",
729
740
  "reflect": false
730
741
  },
731
742
  "showNoResults": {
732
743
  "type": "boolean",
744
+ "attribute": "show-no-results",
733
745
  "mutable": false,
734
746
  "complexType": {
735
747
  "original": "DBCustomSelectProps[\"showNoResults\"]",
@@ -750,15 +762,15 @@ export class DBCustomSelect {
750
762
  },
751
763
  "getter": false,
752
764
  "setter": false,
753
- "attribute": "show-no-results",
754
765
  "reflect": false
755
766
  },
756
767
  "multiple": {
757
- "type": "boolean",
768
+ "type": "any",
769
+ "attribute": "multiple",
758
770
  "mutable": false,
759
771
  "complexType": {
760
772
  "original": "DBCustomSelectProps[\"multiple\"]",
761
- "resolved": "boolean",
773
+ "resolved": "boolean | string",
762
774
  "references": {
763
775
  "DBCustomSelectProps": {
764
776
  "location": "import",
@@ -775,11 +787,11 @@ export class DBCustomSelect {
775
787
  },
776
788
  "getter": false,
777
789
  "setter": false,
778
- "attribute": "multiple",
779
790
  "reflect": false
780
791
  },
781
792
  "showSelectAll": {
782
793
  "type": "boolean",
794
+ "attribute": "show-select-all",
783
795
  "mutable": false,
784
796
  "complexType": {
785
797
  "original": "DBCustomSelectProps[\"showSelectAll\"]",
@@ -800,11 +812,11 @@ export class DBCustomSelect {
800
812
  },
801
813
  "getter": false,
802
814
  "setter": false,
803
- "attribute": "show-select-all",
804
815
  "reflect": false
805
816
  },
806
817
  "showSearch": {
807
818
  "type": "boolean",
819
+ "attribute": "show-search",
808
820
  "mutable": false,
809
821
  "complexType": {
810
822
  "original": "DBCustomSelectProps[\"showSearch\"]",
@@ -825,11 +837,11 @@ export class DBCustomSelect {
825
837
  },
826
838
  "getter": false,
827
839
  "setter": false,
828
- "attribute": "show-search",
829
840
  "reflect": false
830
841
  },
831
842
  "values": {
832
843
  "type": "unknown",
844
+ "attribute": "values",
833
845
  "mutable": false,
834
846
  "complexType": {
835
847
  "original": "DBCustomSelectProps[\"values\"]",
@@ -853,6 +865,7 @@ export class DBCustomSelect {
853
865
  },
854
866
  "validation": {
855
867
  "type": "string",
868
+ "attribute": "validation",
856
869
  "mutable": false,
857
870
  "complexType": {
858
871
  "original": "DBCustomSelectProps[\"validation\"]",
@@ -873,15 +886,15 @@ export class DBCustomSelect {
873
886
  },
874
887
  "getter": false,
875
888
  "setter": false,
876
- "attribute": "validation",
877
889
  "reflect": false
878
890
  },
879
- "invalidMessage": {
880
- "type": "string",
891
+ "options": {
892
+ "type": "unknown",
893
+ "attribute": "options",
881
894
  "mutable": false,
882
895
  "complexType": {
883
- "original": "DBCustomSelectProps[\"invalidMessage\"]",
884
- "resolved": "string",
896
+ "original": "DBCustomSelectProps[\"options\"]",
897
+ "resolved": "CustomSelectOptionType[]",
885
898
  "references": {
886
899
  "DBCustomSelectProps": {
887
900
  "location": "import",
@@ -897,16 +910,15 @@ export class DBCustomSelect {
897
910
  "text": ""
898
911
  },
899
912
  "getter": false,
900
- "setter": false,
901
- "attribute": "invalid-message",
902
- "reflect": false
913
+ "setter": false
903
914
  },
904
- "required": {
905
- "type": "boolean",
915
+ "selectedType": {
916
+ "type": "string",
917
+ "attribute": "selected-type",
906
918
  "mutable": false,
907
919
  "complexType": {
908
- "original": "DBCustomSelectProps[\"required\"]",
909
- "resolved": "boolean",
920
+ "original": "DBCustomSelectProps[\"selectedType\"]",
921
+ "resolved": "\"amount\" | \"tag\" | \"text\"",
910
922
  "references": {
911
923
  "DBCustomSelectProps": {
912
924
  "location": "import",
@@ -923,14 +935,14 @@ export class DBCustomSelect {
923
935
  },
924
936
  "getter": false,
925
937
  "setter": false,
926
- "attribute": "required",
927
938
  "reflect": false
928
939
  },
929
- "validMessage": {
940
+ "amountText": {
930
941
  "type": "string",
942
+ "attribute": "amount-text",
931
943
  "mutable": false,
932
944
  "complexType": {
933
- "original": "DBCustomSelectProps[\"validMessage\"]",
945
+ "original": "DBCustomSelectProps[\"amountText\"]",
934
946
  "resolved": "string",
935
947
  "references": {
936
948
  "DBCustomSelectProps": {
@@ -948,38 +960,15 @@ export class DBCustomSelect {
948
960
  },
949
961
  "getter": false,
950
962
  "setter": false,
951
- "attribute": "valid-message",
952
963
  "reflect": false
953
964
  },
954
- "options": {
955
- "type": "unknown",
956
- "mutable": false,
957
- "complexType": {
958
- "original": "DBCustomSelectProps[\"options\"]",
959
- "resolved": "CustomSelectOptionType[]",
960
- "references": {
961
- "DBCustomSelectProps": {
962
- "location": "import",
963
- "path": "./model",
964
- "id": "src/components/custom-select/model.ts::DBCustomSelectProps"
965
- }
966
- }
967
- },
968
- "required": false,
969
- "optional": false,
970
- "docs": {
971
- "tags": [],
972
- "text": ""
973
- },
974
- "getter": false,
975
- "setter": false
976
- },
977
- "selectedType": {
965
+ "validMessage": {
978
966
  "type": "string",
967
+ "attribute": "valid-message",
979
968
  "mutable": false,
980
969
  "complexType": {
981
- "original": "DBCustomSelectProps[\"selectedType\"]",
982
- "resolved": "\"amount\" | \"tag\" | \"text\"",
970
+ "original": "DBCustomSelectProps[\"validMessage\"]",
971
+ "resolved": "string",
983
972
  "references": {
984
973
  "DBCustomSelectProps": {
985
974
  "location": "import",
@@ -996,15 +985,15 @@ export class DBCustomSelect {
996
985
  },
997
986
  "getter": false,
998
987
  "setter": false,
999
- "attribute": "selected-type",
1000
988
  "reflect": false
1001
989
  },
1002
- "amountText": {
1003
- "type": "string",
990
+ "required": {
991
+ "type": "any",
992
+ "attribute": "required",
1004
993
  "mutable": false,
1005
994
  "complexType": {
1006
- "original": "DBCustomSelectProps[\"amountText\"]",
1007
- "resolved": "string",
995
+ "original": "DBCustomSelectProps[\"required\"]",
996
+ "resolved": "boolean | string",
1008
997
  "references": {
1009
998
  "DBCustomSelectProps": {
1010
999
  "location": "import",
@@ -1021,39 +1010,14 @@ export class DBCustomSelect {
1021
1010
  },
1022
1011
  "getter": false,
1023
1012
  "setter": false,
1024
- "attribute": "amount-text",
1025
1013
  "reflect": false
1026
1014
  },
1027
1015
  "selectAllLabel": {
1028
1016
  "type": "string",
1029
- "mutable": false,
1030
- "complexType": {
1031
- "original": "DBCustomSelectProps[\"selectAllLabel\"]",
1032
- "resolved": "string",
1033
- "references": {
1034
- "DBCustomSelectProps": {
1035
- "location": "import",
1036
- "path": "./model",
1037
- "id": "src/components/custom-select/model.ts::DBCustomSelectProps"
1038
- }
1039
- }
1040
- },
1041
- "required": false,
1042
- "optional": false,
1043
- "docs": {
1044
- "tags": [],
1045
- "text": ""
1046
- },
1047
- "getter": false,
1048
- "setter": false,
1049
1017
  "attribute": "select-all-label",
1050
- "reflect": false
1051
- },
1052
- "deSelectAllLabel": {
1053
- "type": "string",
1054
1018
  "mutable": false,
1055
1019
  "complexType": {
1056
- "original": "DBCustomSelectProps[\"deSelectAllLabel\"]",
1020
+ "original": "DBCustomSelectProps[\"selectAllLabel\"]",
1057
1021
  "resolved": "string",
1058
1022
  "references": {
1059
1023
  "DBCustomSelectProps": {
@@ -1071,11 +1035,11 @@ export class DBCustomSelect {
1071
1035
  },
1072
1036
  "getter": false,
1073
1037
  "setter": false,
1074
- "attribute": "de-select-all-label",
1075
1038
  "reflect": false
1076
1039
  },
1077
1040
  "removeTagsTexts": {
1078
1041
  "type": "unknown",
1042
+ "attribute": "remove-tags-texts",
1079
1043
  "mutable": false,
1080
1044
  "complexType": {
1081
1045
  "original": "DBCustomSelectProps[\"removeTagsTexts\"]",
@@ -1099,6 +1063,7 @@ export class DBCustomSelect {
1099
1063
  },
1100
1064
  "className": {
1101
1065
  "type": "string",
1066
+ "attribute": "classname",
1102
1067
  "mutable": false,
1103
1068
  "complexType": {
1104
1069
  "original": "DBCustomSelectProps[\"className\"]",
@@ -1119,14 +1084,14 @@ export class DBCustomSelect {
1119
1084
  },
1120
1085
  "getter": false,
1121
1086
  "setter": false,
1122
- "attribute": "classname",
1123
1087
  "reflect": false
1124
1088
  },
1125
- "width": {
1089
+ "formFieldWidth": {
1126
1090
  "type": "string",
1091
+ "attribute": "form-field-width",
1127
1092
  "mutable": false,
1128
1093
  "complexType": {
1129
- "original": "DBCustomSelectProps[\"width\"]",
1094
+ "original": "DBCustomSelectProps[\"formFieldWidth\"]",
1130
1095
  "resolved": "string",
1131
1096
  "references": {
1132
1097
  "DBCustomSelectProps": {
@@ -1144,11 +1109,11 @@ export class DBCustomSelect {
1144
1109
  },
1145
1110
  "getter": false,
1146
1111
  "setter": false,
1147
- "attribute": "width",
1148
1112
  "reflect": false
1149
1113
  },
1150
1114
  "variant": {
1151
1115
  "type": "string",
1116
+ "attribute": "variant",
1152
1117
  "mutable": false,
1153
1118
  "complexType": {
1154
1119
  "original": "DBCustomSelectProps[\"variant\"]",
@@ -1169,11 +1134,11 @@ export class DBCustomSelect {
1169
1134
  },
1170
1135
  "getter": false,
1171
1136
  "setter": false,
1172
- "attribute": "variant",
1173
1137
  "reflect": false
1174
1138
  },
1175
1139
  "placement": {
1176
1140
  "type": "string",
1141
+ "attribute": "placement",
1177
1142
  "mutable": false,
1178
1143
  "complexType": {
1179
1144
  "original": "DBCustomSelectProps[\"placement\"]",
@@ -1194,15 +1159,15 @@ export class DBCustomSelect {
1194
1159
  },
1195
1160
  "getter": false,
1196
1161
  "setter": false,
1197
- "attribute": "placement",
1198
1162
  "reflect": false
1199
1163
  },
1200
1164
  "showLabel": {
1201
- "type": "boolean",
1165
+ "type": "any",
1166
+ "attribute": "show-label",
1202
1167
  "mutable": false,
1203
1168
  "complexType": {
1204
1169
  "original": "DBCustomSelectProps[\"showLabel\"]",
1205
- "resolved": "boolean",
1170
+ "resolved": "boolean | string",
1206
1171
  "references": {
1207
1172
  "DBCustomSelectProps": {
1208
1173
  "location": "import",
@@ -1219,11 +1184,11 @@ export class DBCustomSelect {
1219
1184
  },
1220
1185
  "getter": false,
1221
1186
  "setter": false,
1222
- "attribute": "show-label",
1223
1187
  "reflect": false
1224
1188
  },
1225
1189
  "icon": {
1226
1190
  "type": "string",
1191
+ "attribute": "icon",
1227
1192
  "mutable": false,
1228
1193
  "complexType": {
1229
1194
  "original": "DBCustomSelectProps[\"icon\"]",
@@ -1244,15 +1209,15 @@ export class DBCustomSelect {
1244
1209
  },
1245
1210
  "getter": false,
1246
1211
  "setter": false,
1247
- "attribute": "icon",
1248
1212
  "reflect": false
1249
1213
  },
1250
1214
  "showIcon": {
1251
- "type": "boolean",
1215
+ "type": "any",
1216
+ "attribute": "show-icon",
1252
1217
  "mutable": false,
1253
1218
  "complexType": {
1254
1219
  "original": "DBCustomSelectProps[\"showIcon\"]",
1255
- "resolved": "boolean",
1220
+ "resolved": "boolean | string",
1256
1221
  "references": {
1257
1222
  "DBCustomSelectProps": {
1258
1223
  "location": "import",
@@ -1269,11 +1234,11 @@ export class DBCustomSelect {
1269
1234
  },
1270
1235
  "getter": false,
1271
1236
  "setter": false,
1272
- "attribute": "show-icon",
1273
1237
  "reflect": false
1274
1238
  },
1275
1239
  "label": {
1276
1240
  "type": "string",
1241
+ "attribute": "label",
1277
1242
  "mutable": false,
1278
1243
  "complexType": {
1279
1244
  "original": "DBCustomSelectProps[\"label\"]",
@@ -1294,11 +1259,11 @@ export class DBCustomSelect {
1294
1259
  },
1295
1260
  "getter": false,
1296
1261
  "setter": false,
1297
- "attribute": "label",
1298
1262
  "reflect": false
1299
1263
  },
1300
1264
  "form": {
1301
1265
  "type": "string",
1266
+ "attribute": "form",
1302
1267
  "mutable": false,
1303
1268
  "complexType": {
1304
1269
  "original": "DBCustomSelectProps[\"form\"]",
@@ -1319,15 +1284,40 @@ export class DBCustomSelect {
1319
1284
  },
1320
1285
  "getter": false,
1321
1286
  "setter": false,
1322
- "attribute": "form",
1287
+ "reflect": false
1288
+ },
1289
+ "name": {
1290
+ "type": "string",
1291
+ "attribute": "name",
1292
+ "mutable": false,
1293
+ "complexType": {
1294
+ "original": "DBCustomSelectProps[\"name\"]",
1295
+ "resolved": "string",
1296
+ "references": {
1297
+ "DBCustomSelectProps": {
1298
+ "location": "import",
1299
+ "path": "./model",
1300
+ "id": "src/components/custom-select/model.ts::DBCustomSelectProps"
1301
+ }
1302
+ }
1303
+ },
1304
+ "required": false,
1305
+ "optional": false,
1306
+ "docs": {
1307
+ "tags": [],
1308
+ "text": ""
1309
+ },
1310
+ "getter": false,
1311
+ "setter": false,
1323
1312
  "reflect": false
1324
1313
  },
1325
1314
  "disabled": {
1326
- "type": "boolean",
1315
+ "type": "any",
1316
+ "attribute": "disabled",
1327
1317
  "mutable": false,
1328
1318
  "complexType": {
1329
1319
  "original": "DBCustomSelectProps[\"disabled\"]",
1330
- "resolved": "boolean",
1320
+ "resolved": "boolean | string",
1331
1321
  "references": {
1332
1322
  "DBCustomSelectProps": {
1333
1323
  "location": "import",
@@ -1344,11 +1334,11 @@ export class DBCustomSelect {
1344
1334
  },
1345
1335
  "getter": false,
1346
1336
  "setter": false,
1347
- "attribute": "disabled",
1348
1337
  "reflect": false
1349
1338
  },
1350
1339
  "open": {
1351
1340
  "type": "boolean",
1341
+ "attribute": "open",
1352
1342
  "mutable": false,
1353
1343
  "complexType": {
1354
1344
  "original": "DBCustomSelectProps[\"open\"]",
@@ -1369,15 +1359,15 @@ export class DBCustomSelect {
1369
1359
  },
1370
1360
  "getter": false,
1371
1361
  "setter": false,
1372
- "attribute": "open",
1373
1362
  "reflect": false
1374
1363
  },
1375
1364
  "dropdownWidth": {
1376
1365
  "type": "string",
1366
+ "attribute": "dropdown-width",
1377
1367
  "mutable": false,
1378
1368
  "complexType": {
1379
1369
  "original": "DBCustomSelectProps[\"dropdownWidth\"]",
1380
- "resolved": "\"auto\" | \"fixed\" | \"full\" | \"string\"",
1370
+ "resolved": "string",
1381
1371
  "references": {
1382
1372
  "DBCustomSelectProps": {
1383
1373
  "location": "import",
@@ -1394,11 +1384,11 @@ export class DBCustomSelect {
1394
1384
  },
1395
1385
  "getter": false,
1396
1386
  "setter": false,
1397
- "attribute": "dropdown-width",
1398
1387
  "reflect": false
1399
1388
  },
1400
1389
  "searchLabel": {
1401
1390
  "type": "string",
1391
+ "attribute": "search-label",
1402
1392
  "mutable": false,
1403
1393
  "complexType": {
1404
1394
  "original": "DBCustomSelectProps[\"searchLabel\"]",
@@ -1419,11 +1409,11 @@ export class DBCustomSelect {
1419
1409
  },
1420
1410
  "getter": false,
1421
1411
  "setter": false,
1422
- "attribute": "search-label",
1423
1412
  "reflect": false
1424
1413
  },
1425
1414
  "searchPlaceholder": {
1426
1415
  "type": "string",
1416
+ "attribute": "search-placeholder",
1427
1417
  "mutable": false,
1428
1418
  "complexType": {
1429
1419
  "original": "DBCustomSelectProps[\"searchPlaceholder\"]",
@@ -1444,11 +1434,11 @@ export class DBCustomSelect {
1444
1434
  },
1445
1435
  "getter": false,
1446
1436
  "setter": false,
1447
- "attribute": "search-placeholder",
1448
1437
  "reflect": false
1449
1438
  },
1450
1439
  "showLoading": {
1451
1440
  "type": "boolean",
1441
+ "attribute": "show-loading",
1452
1442
  "mutable": false,
1453
1443
  "complexType": {
1454
1444
  "original": "DBCustomSelectProps[\"showLoading\"]",
@@ -1469,11 +1459,36 @@ export class DBCustomSelect {
1469
1459
  },
1470
1460
  "getter": false,
1471
1461
  "setter": false,
1472
- "attribute": "show-loading",
1462
+ "reflect": false
1463
+ },
1464
+ "ariaListLabel": {
1465
+ "type": "string",
1466
+ "attribute": "aria-list-label",
1467
+ "mutable": false,
1468
+ "complexType": {
1469
+ "original": "DBCustomSelectProps[\"ariaListLabel\"]",
1470
+ "resolved": "string",
1471
+ "references": {
1472
+ "DBCustomSelectProps": {
1473
+ "location": "import",
1474
+ "path": "./model",
1475
+ "id": "src/components/custom-select/model.ts::DBCustomSelectProps"
1476
+ }
1477
+ }
1478
+ },
1479
+ "required": false,
1480
+ "optional": false,
1481
+ "docs": {
1482
+ "tags": [],
1483
+ "text": ""
1484
+ },
1485
+ "getter": false,
1486
+ "setter": false,
1473
1487
  "reflect": false
1474
1488
  },
1475
1489
  "noResultsText": {
1476
1490
  "type": "string",
1491
+ "attribute": "no-results-text",
1477
1492
  "mutable": false,
1478
1493
  "complexType": {
1479
1494
  "original": "DBCustomSelectProps[\"noResultsText\"]",
@@ -1494,11 +1509,11 @@ export class DBCustomSelect {
1494
1509
  },
1495
1510
  "getter": false,
1496
1511
  "setter": false,
1497
- "attribute": "no-results-text",
1498
1512
  "reflect": false
1499
1513
  },
1500
1514
  "loadingText": {
1501
1515
  "type": "string",
1516
+ "attribute": "loading-text",
1502
1517
  "mutable": false,
1503
1518
  "complexType": {
1504
1519
  "original": "DBCustomSelectProps[\"loadingText\"]",
@@ -1519,11 +1534,11 @@ export class DBCustomSelect {
1519
1534
  },
1520
1535
  "getter": false,
1521
1536
  "setter": false,
1522
- "attribute": "loading-text",
1523
1537
  "reflect": false
1524
1538
  },
1525
1539
  "mobileCloseButtonText": {
1526
1540
  "type": "string",
1541
+ "attribute": "mobile-close-button-text",
1527
1542
  "mutable": false,
1528
1543
  "complexType": {
1529
1544
  "original": "DBCustomSelectProps[\"mobileCloseButtonText\"]",
@@ -1544,11 +1559,11 @@ export class DBCustomSelect {
1544
1559
  },
1545
1560
  "getter": false,
1546
1561
  "setter": false,
1547
- "attribute": "mobile-close-button-text",
1548
1562
  "reflect": false
1549
1563
  },
1550
1564
  "showClearSelection": {
1551
1565
  "type": "boolean",
1566
+ "attribute": "show-clear-selection",
1552
1567
  "mutable": false,
1553
1568
  "complexType": {
1554
1569
  "original": "DBCustomSelectProps[\"showClearSelection\"]",
@@ -1569,15 +1584,15 @@ export class DBCustomSelect {
1569
1584
  },
1570
1585
  "getter": false,
1571
1586
  "setter": false,
1572
- "attribute": "show-clear-selection",
1573
1587
  "reflect": false,
1574
1588
  "defaultValue": "true"
1575
1589
  },
1576
- "clearSelectionLabel": {
1590
+ "clearSelectionText": {
1577
1591
  "type": "string",
1592
+ "attribute": "clear-selection-text",
1578
1593
  "mutable": false,
1579
1594
  "complexType": {
1580
- "original": "DBCustomSelectProps[\"clearSelectionLabel\"]",
1595
+ "original": "DBCustomSelectProps[\"clearSelectionText\"]",
1581
1596
  "resolved": "string",
1582
1597
  "references": {
1583
1598
  "DBCustomSelectProps": {
@@ -1595,12 +1610,12 @@ export class DBCustomSelect {
1595
1610
  },
1596
1611
  "getter": false,
1597
1612
  "setter": false,
1598
- "attribute": "clear-selection-label",
1599
1613
  "reflect": false,
1600
1614
  "defaultValue": "\"Clear selection\""
1601
1615
  },
1602
1616
  "placeholder": {
1603
1617
  "type": "string",
1618
+ "attribute": "placeholder",
1604
1619
  "mutable": false,
1605
1620
  "complexType": {
1606
1621
  "original": "DBCustomSelectProps[\"placeholder\"]",
@@ -1621,11 +1636,11 @@ export class DBCustomSelect {
1621
1636
  },
1622
1637
  "getter": false,
1623
1638
  "setter": false,
1624
- "attribute": "placeholder",
1625
1639
  "reflect": false
1626
1640
  },
1627
1641
  "messageIcon": {
1628
1642
  "type": "string",
1643
+ "attribute": "message-icon",
1629
1644
  "mutable": false,
1630
1645
  "complexType": {
1631
1646
  "original": "DBCustomSelectProps[\"messageIcon\"]",
@@ -1646,18 +1661,17 @@ export class DBCustomSelect {
1646
1661
  },
1647
1662
  "getter": false,
1648
1663
  "setter": false,
1649
- "attribute": "message-icon",
1650
1664
  "reflect": false
1651
1665
  }
1652
1666
  };
1653
1667
  }
1654
1668
  static get states() {
1655
1669
  return {
1656
- "_name": {},
1657
1670
  "_id": {},
1658
1671
  "_messageId": {},
1659
1672
  "_validMessageId": {},
1660
1673
  "_invalidMessageId": {},
1674
+ "_invalidMessage": {},
1661
1675
  "_selectId": {},
1662
1676
  "_labelId": {},
1663
1677
  "_summaryId": {},
@@ -1675,16 +1689,16 @@ export class DBCustomSelect {
1675
1689
  "_values": {},
1676
1690
  "_options": {},
1677
1691
  "_hasNoOptions": {},
1692
+ "_documentClickListenerCallbackId": {},
1678
1693
  "_internalChangeTimestamp": {},
1679
- "_externalChangeTimestamp": {},
1680
1694
  "selectAllChecked": {},
1681
1695
  "selectAllIndeterminate": {}
1682
1696
  };
1683
1697
  }
1684
1698
  static get events() {
1685
1699
  return [{
1686
- "method": "onSelect",
1687
- "name": "onSelect",
1700
+ "method": "amountChange",
1701
+ "name": "amountChange",
1688
1702
  "bubbles": true,
1689
1703
  "cancelable": true,
1690
1704
  "composed": true,
@@ -1698,8 +1712,8 @@ export class DBCustomSelect {
1698
1712
  "references": {}
1699
1713
  }
1700
1714
  }, {
1701
- "method": "onAmountChange",
1702
- "name": "onAmountChange",
1715
+ "method": "dropdownToggle",
1716
+ "name": "dropdownToggle",
1703
1717
  "bubbles": true,
1704
1718
  "cancelable": true,
1705
1719
  "composed": true,
@@ -1713,8 +1727,8 @@ export class DBCustomSelect {
1713
1727
  "references": {}
1714
1728
  }
1715
1729
  }, {
1716
- "method": "onDropdownToggle",
1717
- "name": "onDropdownToggle",
1730
+ "method": "optionSelected",
1731
+ "name": "optionSelected",
1718
1732
  "bubbles": true,
1719
1733
  "cancelable": true,
1720
1734
  "composed": true,
@@ -1731,10 +1745,7 @@ export class DBCustomSelect {
1731
1745
  }
1732
1746
  static get watchers() {
1733
1747
  return [{
1734
- "propName": "name",
1735
- "methodName": "watch0"
1736
- }, {
1737
- "propName": "_id",
1748
+ "propName": "detailsRef",
1738
1749
  "methodName": "watch0"
1739
1750
  }, {
1740
1751
  "propName": "_id",
@@ -1745,81 +1756,75 @@ export class DBCustomSelect {
1745
1756
  }, {
1746
1757
  "propName": "_descByIds",
1747
1758
  "methodName": "watch2"
1748
- }, {
1749
- "propName": "detailsRef",
1750
- "methodName": "watch3"
1751
1759
  }, {
1752
1760
  "propName": "showNoResults",
1753
- "methodName": "watch4"
1761
+ "methodName": "watch3"
1754
1762
  }, {
1755
1763
  "propName": "_options",
1756
- "methodName": "watch4"
1764
+ "methodName": "watch3"
1757
1765
  }, {
1758
1766
  "propName": "showSelectAll",
1759
- "methodName": "watch5"
1767
+ "methodName": "watch4"
1760
1768
  }, {
1761
1769
  "propName": "amountOptions",
1762
- "methodName": "watch5"
1770
+ "methodName": "watch4"
1763
1771
  }, {
1764
1772
  "propName": "multiple",
1765
- "methodName": "watch5"
1773
+ "methodName": "watch4"
1766
1774
  }, {
1767
1775
  "propName": "showSearch",
1768
- "methodName": "watch6"
1776
+ "methodName": "watch5"
1769
1777
  }, {
1770
1778
  "propName": "amountOptions",
1771
- "methodName": "watch6"
1772
- }, {
1773
- "propName": "_externalChangeTimestamp",
1774
- "methodName": "watch7"
1775
- }, {
1776
- "propName": "_internalChangeTimestamp",
1777
- "methodName": "watch7"
1778
- }, {
1779
- "propName": "onSelect",
1780
- "methodName": "watch7"
1779
+ "methodName": "watch5"
1781
1780
  }, {
1782
1781
  "propName": "values",
1783
- "methodName": "watch8"
1782
+ "methodName": "watch6"
1784
1783
  }, {
1785
1784
  "propName": "_values",
1786
- "methodName": "watch9"
1785
+ "methodName": "watch7"
1787
1786
  }, {
1788
1787
  "propName": "validation",
1789
- "methodName": "watch10"
1788
+ "methodName": "watch8"
1790
1789
  }, {
1791
1790
  "propName": "_values",
1792
- "methodName": "watch11"
1791
+ "methodName": "watch9"
1793
1792
  }, {
1794
1793
  "propName": "amountOptions",
1795
- "methodName": "watch11"
1794
+ "methodName": "watch9"
1796
1795
  }, {
1797
1796
  "propName": "options",
1798
- "methodName": "watch12"
1797
+ "methodName": "watch10"
1799
1798
  }, {
1800
1799
  "propName": "_options",
1801
- "methodName": "watch13"
1800
+ "methodName": "watch11"
1802
1801
  }, {
1803
1802
  "propName": "_values",
1804
- "methodName": "watch13"
1803
+ "methodName": "watch11"
1805
1804
  }, {
1806
1805
  "propName": "_selectedOptions",
1807
- "methodName": "watch14"
1806
+ "methodName": "watch12"
1808
1807
  }, {
1809
1808
  "propName": "selectedType",
1810
- "methodName": "watch14"
1809
+ "methodName": "watch12"
1811
1810
  }, {
1812
1811
  "propName": "amountText",
1813
- "methodName": "watch14"
1812
+ "methodName": "watch12"
1814
1813
  }, {
1815
1814
  "propName": "_selectedOptions",
1816
- "methodName": "watch15"
1815
+ "methodName": "watch13"
1817
1816
  }, {
1818
1817
  "propName": "selectAllIndeterminate",
1819
- "methodName": "watch16"
1818
+ "methodName": "watch14"
1820
1819
  }, {
1821
1820
  "propName": "selectAllRef",
1822
- "methodName": "watch16"
1821
+ "methodName": "watch14"
1822
+ }, {
1823
+ "propName": "selectRef",
1824
+ "methodName": "watch15"
1825
+ }, {
1826
+ "propName": "invalidMessage",
1827
+ "methodName": "watch15"
1823
1828
  }];
1824
1829
  }
1825
1830
  }