@db-ux/wc-core-components 2.0.8 → 2.0.10-popover-d7e8b9a

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 (312) hide show
  1. package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
  2. package/dist/cjs/db-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/db-badge.cjs.entry.js +1 -1
  4. package/dist/cjs/db-brand.cjs.entry.js +1 -1
  5. package/dist/cjs/db-button.cjs.entry.js +3 -3
  6. package/dist/cjs/db-button.cjs.entry.js.map +1 -1
  7. package/dist/cjs/db-button.entry.cjs.js.map +1 -1
  8. package/dist/cjs/db-card.cjs.entry.js +4 -4
  9. package/dist/cjs/db-card.cjs.entry.js.map +1 -1
  10. package/dist/cjs/db-card.entry.cjs.js.map +1 -1
  11. package/dist/cjs/db-checkbox.cjs.entry.js +4 -3
  12. package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
  13. package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
  14. 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
  15. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js +65 -13
  16. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js.map +1 -1
  17. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
  18. package/dist/cjs/db-custom-select.cjs.entry.js +104 -67
  19. package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
  20. package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
  21. package/dist/cjs/db-divider.cjs.entry.js +1 -1
  22. package/dist/cjs/db-drawer.cjs.entry.js +1 -1
  23. package/dist/cjs/db-header.cjs.entry.js +3 -2
  24. package/dist/cjs/db-header.cjs.entry.js.map +1 -1
  25. package/dist/cjs/db-header.entry.cjs.js.map +1 -1
  26. package/dist/cjs/db-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/db-infotext.cjs.entry.js +1 -1
  28. package/dist/cjs/db-link.cjs.entry.js +3 -3
  29. package/dist/cjs/db-link.cjs.entry.js.map +1 -1
  30. package/dist/cjs/db-link.entry.cjs.js.map +1 -1
  31. package/dist/cjs/db-navigation-item.cjs.entry.js +5 -4
  32. package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
  33. package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
  34. package/dist/cjs/db-navigation.cjs.entry.js +1 -1
  35. package/dist/cjs/db-notification.cjs.entry.js +1 -1
  36. package/dist/cjs/db-page.cjs.entry.js +1 -1
  37. package/dist/cjs/db-popover.cjs.entry.js +64 -10
  38. package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
  39. package/dist/cjs/db-popover.entry.cjs.js.map +1 -1
  40. package/dist/cjs/db-radio.cjs.entry.js +4 -3
  41. package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
  42. package/dist/cjs/db-radio.entry.cjs.js.map +1 -1
  43. package/dist/cjs/db-section.cjs.entry.js +1 -1
  44. package/dist/cjs/db-select.cjs.entry.js +6 -6
  45. package/dist/cjs/db-select.cjs.entry.js.map +1 -1
  46. package/dist/cjs/db-select.entry.cjs.js.map +1 -1
  47. package/dist/cjs/db-stack.cjs.entry.js +1 -1
  48. package/dist/cjs/db-switch.cjs.entry.js +4 -3
  49. package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
  50. package/dist/cjs/db-switch.entry.cjs.js.map +1 -1
  51. package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
  52. package/dist/cjs/db-tabs.cjs.entry.js +1 -1
  53. package/dist/cjs/db-textarea.cjs.entry.js +4 -4
  54. package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
  55. package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
  56. package/dist/cjs/db-ux.cjs.js +1 -1
  57. package/dist/cjs/{document-click-listener-BbGE8WyV.js → document-click-listener-BqewuQFB.js} +7 -7
  58. package/dist/cjs/document-click-listener-BqewuQFB.js.map +1 -0
  59. package/dist/cjs/document-scroll-listener-DsZwE3e9.js +46 -0
  60. package/dist/cjs/document-scroll-listener-DsZwE3e9.js.map +1 -0
  61. package/dist/cjs/floating-components-BNCfdqZJ.js +299 -0
  62. package/dist/cjs/floating-components-BNCfdqZJ.js.map +1 -0
  63. package/dist/cjs/{index-7lbP4BU6.js → index-4GRgVEnx.js} +2 -76
  64. package/dist/cjs/index-4GRgVEnx.js.map +1 -0
  65. package/dist/cjs/index.cjs.js +5 -7
  66. package/dist/cjs/index.cjs.js.map +1 -1
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{navigation-BLjJ1vaO.js → navigation-U4SBgT7D.js} +4 -4
  69. package/dist/cjs/navigation-U4SBgT7D.js.map +1 -0
  70. package/dist/collection/components/button/button.js +2 -2
  71. package/dist/collection/components/button/button.js.map +1 -1
  72. package/dist/collection/components/card/card.js +3 -3
  73. package/dist/collection/components/card/card.js.map +1 -1
  74. package/dist/collection/components/checkbox/checkbox.js +28 -2
  75. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  76. package/dist/collection/components/custom-select/custom-select.js +144 -80
  77. package/dist/collection/components/custom-select/custom-select.js.map +1 -1
  78. package/dist/collection/components/custom-select/model.js.map +1 -1
  79. package/dist/collection/components/icon/icon.js +1 -1
  80. package/dist/collection/components/icon/model.js +0 -1
  81. package/dist/collection/components/icon/model.js.map +1 -1
  82. package/dist/collection/components/link/link.js +2 -2
  83. package/dist/collection/components/link/link.js.map +1 -1
  84. package/dist/collection/components/navigation-item/navigation-item.js +2 -2
  85. package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
  86. package/dist/collection/components/popover/model.js.map +1 -1
  87. package/dist/collection/components/popover/popover.js +92 -36
  88. package/dist/collection/components/popover/popover.js.map +1 -1
  89. package/dist/collection/components/radio/model.js.map +1 -1
  90. package/dist/collection/components/radio/radio.js +28 -2
  91. package/dist/collection/components/radio/radio.js.map +1 -1
  92. package/dist/collection/components/select/model.js.map +1 -1
  93. package/dist/collection/components/select/select.js +30 -5
  94. package/dist/collection/components/select/select.js.map +1 -1
  95. package/dist/collection/components/switch/switch.js +28 -2
  96. package/dist/collection/components/switch/switch.js.map +1 -1
  97. package/dist/collection/components/textarea/textarea.js +28 -3
  98. package/dist/collection/components/textarea/textarea.js.map +1 -1
  99. package/dist/collection/components/tooltip/model.js.map +1 -1
  100. package/dist/collection/components/tooltip/tooltip.js +93 -39
  101. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  102. package/dist/collection/shared/model.js.map +1 -1
  103. package/dist/collection/utils/document-click-listener.js +4 -4
  104. package/dist/collection/utils/document-click-listener.js.map +1 -1
  105. package/dist/collection/utils/document-scroll-listener.js +39 -0
  106. package/dist/collection/utils/document-scroll-listener.js.map +1 -0
  107. package/dist/collection/utils/floating-components.js +291 -0
  108. package/dist/collection/utils/floating-components.js.map +1 -0
  109. package/dist/collection/utils/index.js +0 -70
  110. package/dist/collection/utils/index.js.map +1 -1
  111. package/dist/collection/utils/navigation.js +1 -1
  112. package/dist/collection/utils/navigation.js.map +1 -1
  113. package/dist/custom-elements.json +425 -114
  114. package/dist/db-ux/db-button.entry.esm.js.map +1 -1
  115. package/dist/db-ux/db-card.entry.esm.js.map +1 -1
  116. package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
  117. 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
  118. package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
  119. package/dist/db-ux/db-header.entry.esm.js.map +1 -1
  120. package/dist/db-ux/db-link.entry.esm.js.map +1 -1
  121. package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -1
  122. package/dist/db-ux/db-popover.entry.esm.js.map +1 -1
  123. package/dist/db-ux/db-radio.entry.esm.js.map +1 -1
  124. package/dist/db-ux/db-select.entry.esm.js.map +1 -1
  125. package/dist/db-ux/db-switch.entry.esm.js.map +1 -1
  126. package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
  127. package/dist/db-ux/db-ux.esm.js +1 -1
  128. package/dist/db-ux/index.esm.js +1 -1
  129. package/dist/db-ux/index.esm.js.map +1 -1
  130. package/dist/db-ux/{p-8b7d868b.entry.js → p-00ae6c1c.entry.js} +2 -2
  131. package/dist/db-ux/{p-50c9112b.entry.js → p-0bf63ec2.entry.js} +2 -2
  132. package/dist/db-ux/p-0bf63ec2.entry.js.map +1 -0
  133. package/dist/db-ux/p-166b337e.entry.js +2 -0
  134. package/dist/db-ux/{p-39d957bb.entry.js.map → p-166b337e.entry.js.map} +1 -1
  135. package/dist/db-ux/p-16f8a2d5.entry.js +2 -0
  136. package/dist/db-ux/p-16f8a2d5.entry.js.map +1 -0
  137. package/dist/db-ux/p-199c8a0f.entry.js +2 -0
  138. package/dist/db-ux/p-199c8a0f.entry.js.map +1 -0
  139. package/dist/db-ux/{p-55b02c80.entry.js → p-240497d9.entry.js} +2 -2
  140. package/dist/db-ux/p-2e0f291f.entry.js +2 -0
  141. package/dist/db-ux/p-2e0f291f.entry.js.map +1 -0
  142. package/dist/db-ux/p-3df47dd9.entry.js +2 -0
  143. package/dist/db-ux/p-3df47dd9.entry.js.map +1 -0
  144. package/dist/db-ux/p-423bf8f8.entry.js +2 -0
  145. package/dist/db-ux/p-423bf8f8.entry.js.map +1 -0
  146. package/dist/db-ux/p-4aa47b47.entry.js +2 -0
  147. package/dist/db-ux/p-4aa47b47.entry.js.map +1 -0
  148. package/dist/db-ux/{p-b3148401.entry.js → p-4b52b854.entry.js} +2 -2
  149. package/dist/db-ux/{p-63f30576.entry.js → p-57c4486c.entry.js} +2 -2
  150. package/dist/db-ux/p-5fdc8db6.entry.js +2 -0
  151. package/dist/db-ux/p-5fdc8db6.entry.js.map +1 -0
  152. package/dist/db-ux/{p-49cc4a11.entry.js → p-63f1d771.entry.js} +2 -2
  153. package/dist/db-ux/p-75a55c2c.entry.js +2 -0
  154. package/dist/db-ux/{p-5c2e9373.entry.js.map → p-75a55c2c.entry.js.map} +1 -1
  155. package/dist/db-ux/{p-d7ccd983.entry.js → p-7636be02.entry.js} +2 -2
  156. package/dist/db-ux/{p-52e736c3.entry.js → p-769c530c.entry.js} +2 -2
  157. package/dist/db-ux/p-80f23995.entry.js +2 -0
  158. package/dist/db-ux/p-80f23995.entry.js.map +1 -0
  159. package/dist/db-ux/{p-6wgV8aKO.js → p-BDA9dlfd.js} +2 -2
  160. package/dist/db-ux/p-BDA9dlfd.js.map +1 -0
  161. package/dist/db-ux/p-C8WY_RwJ.js +2 -0
  162. package/dist/db-ux/p-C8WY_RwJ.js.map +1 -0
  163. package/dist/db-ux/p-CQCQcuvr.js +2 -0
  164. package/dist/db-ux/p-CQCQcuvr.js.map +1 -0
  165. package/dist/db-ux/p-CqteyeC3.js +2 -0
  166. package/dist/db-ux/p-CqteyeC3.js.map +1 -0
  167. package/dist/db-ux/p-DYeQU2bY.js +2 -0
  168. package/dist/db-ux/p-DYeQU2bY.js.map +1 -0
  169. package/dist/db-ux/{p-c151750e.entry.js → p-a4d62218.entry.js} +2 -2
  170. package/dist/db-ux/{p-6b6dbd54.entry.js → p-aae2a35a.entry.js} +2 -2
  171. package/dist/db-ux/{p-61410d87.entry.js → p-ab7f29be.entry.js} +2 -2
  172. package/dist/db-ux/p-ab7f29be.entry.js.map +1 -0
  173. package/dist/db-ux/{p-c5909b40.entry.js → p-b5e12faa.entry.js} +2 -2
  174. package/dist/db-ux/{p-33aaf986.entry.js → p-c615e5e6.entry.js} +2 -2
  175. package/dist/db-ux/p-c615e5e6.entry.js.map +1 -0
  176. package/dist/db-ux/{p-b4bc8f26.entry.js → p-cc6df17e.entry.js} +2 -2
  177. package/dist/db-ux/{p-4400f077.entry.js → p-d28395c3.entry.js} +2 -2
  178. package/dist/db-ux/p-d45c03e4.entry.js +2 -0
  179. package/dist/db-ux/p-d45c03e4.entry.js.map +1 -0
  180. package/dist/db-ux/{p-5c4d25b8.entry.js → p-d64ea737.entry.js} +2 -2
  181. package/dist/db-ux/{p-14c44b94.entry.js → p-da2d2518.entry.js} +2 -2
  182. package/dist/db-ux/p-f17426ab.entry.js +2 -0
  183. package/dist/db-ux/{p-01112955.entry.js.map → p-f17426ab.entry.js.map} +1 -1
  184. package/dist/esm/db-accordion-item.entry.js +1 -1
  185. package/dist/esm/db-accordion.entry.js +1 -1
  186. package/dist/esm/db-badge.entry.js +1 -1
  187. package/dist/esm/db-brand.entry.js +1 -1
  188. package/dist/esm/db-button.entry.js +3 -3
  189. package/dist/esm/db-button.entry.js.map +1 -1
  190. package/dist/esm/db-card.entry.js +4 -4
  191. package/dist/esm/db-card.entry.js.map +1 -1
  192. package/dist/esm/db-checkbox.entry.js +4 -3
  193. package/dist/esm/db-checkbox.entry.js.map +1 -1
  194. 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
  195. package/dist/esm/db-custom-select-dropdown_6.entry.js +65 -13
  196. package/dist/esm/db-custom-select-dropdown_6.entry.js.map +1 -1
  197. package/dist/esm/db-custom-select-form-field.entry.js +1 -1
  198. package/dist/esm/db-custom-select.entry.js +104 -67
  199. package/dist/esm/db-custom-select.entry.js.map +1 -1
  200. package/dist/esm/db-divider.entry.js +1 -1
  201. package/dist/esm/db-drawer.entry.js +1 -1
  202. package/dist/esm/db-header.entry.js +3 -2
  203. package/dist/esm/db-header.entry.js.map +1 -1
  204. package/dist/esm/db-icon.entry.js +1 -1
  205. package/dist/esm/db-infotext.entry.js +1 -1
  206. package/dist/esm/db-link.entry.js +3 -3
  207. package/dist/esm/db-link.entry.js.map +1 -1
  208. package/dist/esm/db-navigation-item.entry.js +5 -4
  209. package/dist/esm/db-navigation-item.entry.js.map +1 -1
  210. package/dist/esm/db-navigation.entry.js +1 -1
  211. package/dist/esm/db-notification.entry.js +1 -1
  212. package/dist/esm/db-page.entry.js +1 -1
  213. package/dist/esm/db-popover.entry.js +64 -10
  214. package/dist/esm/db-popover.entry.js.map +1 -1
  215. package/dist/esm/db-radio.entry.js +4 -3
  216. package/dist/esm/db-radio.entry.js.map +1 -1
  217. package/dist/esm/db-section.entry.js +1 -1
  218. package/dist/esm/db-select.entry.js +6 -6
  219. package/dist/esm/db-select.entry.js.map +1 -1
  220. package/dist/esm/db-stack.entry.js +1 -1
  221. package/dist/esm/db-switch.entry.js +4 -3
  222. package/dist/esm/db-switch.entry.js.map +1 -1
  223. package/dist/esm/db-tab-item_3.entry.js +1 -1
  224. package/dist/esm/db-tabs.entry.js +1 -1
  225. package/dist/esm/db-textarea.entry.js +4 -4
  226. package/dist/esm/db-textarea.entry.js.map +1 -1
  227. package/dist/esm/db-ux.js +1 -1
  228. package/dist/esm/{document-click-listener-Bn3nIGhA.js → document-click-listener-CsfOzbMG.js} +7 -7
  229. package/dist/esm/document-click-listener-CsfOzbMG.js.map +1 -0
  230. package/dist/esm/document-scroll-listener-QnsLRkL2.js +44 -0
  231. package/dist/esm/document-scroll-listener-QnsLRkL2.js.map +1 -0
  232. package/dist/esm/floating-components-DYeQU2bY.js +295 -0
  233. package/dist/esm/floating-components-DYeQU2bY.js.map +1 -0
  234. package/dist/esm/{index-pglUTSkG.js → index-CQCQcuvr.js} +3 -73
  235. package/dist/esm/index-CQCQcuvr.js.map +1 -0
  236. package/dist/esm/index.js +5 -3
  237. package/dist/esm/index.js.map +1 -1
  238. package/dist/esm/loader.js +1 -1
  239. package/dist/esm/{navigation-C1ssnmpm.js → navigation-CE_2IUA4.js} +3 -3
  240. package/dist/esm/navigation-CE_2IUA4.js.map +1 -0
  241. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  242. package/dist/types/components/custom-select/custom-select.d.ts +10 -6
  243. package/dist/types/components/custom-select/model.d.ts +6 -5
  244. package/dist/types/components/icon/model.d.ts +1 -3
  245. package/dist/types/components/popover/model.d.ts +0 -1
  246. package/dist/types/components/popover/popover.d.ts +7 -2
  247. package/dist/types/components/radio/model.d.ts +1 -3
  248. package/dist/types/components/radio/radio.d.ts +1 -0
  249. package/dist/types/components/select/model.d.ts +2 -1
  250. package/dist/types/components/select/select.d.ts +1 -0
  251. package/dist/types/components/switch/switch.d.ts +1 -0
  252. package/dist/types/components/textarea/textarea.d.ts +1 -0
  253. package/dist/types/components/tooltip/model.d.ts +5 -3
  254. package/dist/types/components/tooltip/tooltip.d.ts +9 -2
  255. package/dist/types/components.d.ts +12 -0
  256. package/dist/types/shared/model.d.ts +12 -3
  257. package/dist/types/utils/document-scroll-listener.d.ts +9 -0
  258. package/dist/types/utils/floating-components.d.ts +7 -0
  259. package/dist/types/utils/index.d.ts +0 -13
  260. package/dist/types/utils/navigation.d.ts +1 -1
  261. package/dist/vscode.html-custom-data.json +52 -41
  262. package/dist/web-types.json +110 -58
  263. package/package.json +3 -3
  264. package/dist/cjs/document-click-listener-BbGE8WyV.js.map +0 -1
  265. package/dist/cjs/index-7lbP4BU6.js.map +0 -1
  266. package/dist/cjs/navigation-BLjJ1vaO.js.map +0 -1
  267. package/dist/db-ux/p-01112955.entry.js +0 -2
  268. package/dist/db-ux/p-049844c6.entry.js +0 -2
  269. package/dist/db-ux/p-049844c6.entry.js.map +0 -1
  270. package/dist/db-ux/p-1d40e8cd.entry.js +0 -2
  271. package/dist/db-ux/p-1d40e8cd.entry.js.map +0 -1
  272. package/dist/db-ux/p-33aaf986.entry.js.map +0 -1
  273. package/dist/db-ux/p-39d957bb.entry.js +0 -2
  274. package/dist/db-ux/p-44f6404b.entry.js +0 -2
  275. package/dist/db-ux/p-44f6404b.entry.js.map +0 -1
  276. package/dist/db-ux/p-50c9112b.entry.js.map +0 -1
  277. package/dist/db-ux/p-5c2e9373.entry.js +0 -2
  278. package/dist/db-ux/p-61410d87.entry.js.map +0 -1
  279. package/dist/db-ux/p-623a9409.entry.js +0 -2
  280. package/dist/db-ux/p-623a9409.entry.js.map +0 -1
  281. package/dist/db-ux/p-6wgV8aKO.js.map +0 -1
  282. package/dist/db-ux/p-DszXleuv.js +0 -2
  283. package/dist/db-ux/p-DszXleuv.js.map +0 -1
  284. package/dist/db-ux/p-a1ee66b3.entry.js +0 -2
  285. package/dist/db-ux/p-a1ee66b3.entry.js.map +0 -1
  286. package/dist/db-ux/p-b5a8e9c3.entry.js +0 -2
  287. package/dist/db-ux/p-b5a8e9c3.entry.js.map +0 -1
  288. package/dist/db-ux/p-c989b5d8.entry.js +0 -2
  289. package/dist/db-ux/p-c989b5d8.entry.js.map +0 -1
  290. package/dist/db-ux/p-d9ff0c75.entry.js +0 -2
  291. package/dist/db-ux/p-d9ff0c75.entry.js.map +0 -1
  292. package/dist/db-ux/p-f2ef5e71.entry.js +0 -2
  293. package/dist/db-ux/p-f2ef5e71.entry.js.map +0 -1
  294. package/dist/db-ux/p-pglUTSkG.js +0 -2
  295. package/dist/db-ux/p-pglUTSkG.js.map +0 -1
  296. package/dist/esm/document-click-listener-Bn3nIGhA.js.map +0 -1
  297. package/dist/esm/index-pglUTSkG.js.map +0 -1
  298. package/dist/esm/navigation-C1ssnmpm.js.map +0 -1
  299. /package/dist/db-ux/{p-8b7d868b.entry.js.map → p-00ae6c1c.entry.js.map} +0 -0
  300. /package/dist/db-ux/{p-55b02c80.entry.js.map → p-240497d9.entry.js.map} +0 -0
  301. /package/dist/db-ux/{p-b3148401.entry.js.map → p-4b52b854.entry.js.map} +0 -0
  302. /package/dist/db-ux/{p-63f30576.entry.js.map → p-57c4486c.entry.js.map} +0 -0
  303. /package/dist/db-ux/{p-49cc4a11.entry.js.map → p-63f1d771.entry.js.map} +0 -0
  304. /package/dist/db-ux/{p-d7ccd983.entry.js.map → p-7636be02.entry.js.map} +0 -0
  305. /package/dist/db-ux/{p-52e736c3.entry.js.map → p-769c530c.entry.js.map} +0 -0
  306. /package/dist/db-ux/{p-c151750e.entry.js.map → p-a4d62218.entry.js.map} +0 -0
  307. /package/dist/db-ux/{p-6b6dbd54.entry.js.map → p-aae2a35a.entry.js.map} +0 -0
  308. /package/dist/db-ux/{p-c5909b40.entry.js.map → p-b5e12faa.entry.js.map} +0 -0
  309. /package/dist/db-ux/{p-b4bc8f26.entry.js.map → p-cc6df17e.entry.js.map} +0 -0
  310. /package/dist/db-ux/{p-4400f077.entry.js.map → p-d28395c3.entry.js.map} +0 -0
  311. /package/dist/db-ux/{p-5c4d25b8.entry.js.map → p-d64ea737.entry.js.map} +0 -0
  312. /package/dist/db-ux/{p-14c44b94.entry.js.map → p-da2d2518.entry.js.map} +0 -0
@@ -1,7 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-bH2PZLSq.js';
2
- import { e as hasVoiceOver, f as delay, s as stringPropVisible, u as uuid, h as handleDataOutside, n as getSearchInput, g as getBooleanAsString, j as getBoolean, m as getHideProp, c as cls } from './index-pglUTSkG.js';
2
+ import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, k as getSearchInput, g as getBooleanAsString, b as getBoolean, j as getHideProp, c as cls } from './index-CQCQcuvr.js';
3
3
  import { l as DEFAULT_INVALID_MESSAGE, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, d as DEFAULT_LABEL_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, o as DEFAULT_SELECTED, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, c as DEFAULT_MESSAGE, s as DEFAULT_CLOSE_BUTTON } from './constants-DC9V_oNU.js';
4
- import { D as DocumentClickListener } from './document-click-listener-Bn3nIGhA.js';
4
+ import { D as DocumentClickListener } from './document-click-listener-CsfOzbMG.js';
5
+ import { D as DocumentScrollListener } from './document-scroll-listener-QnsLRkL2.js';
6
+ import { h as handleFixedDropdown } from './floating-components-DYeQU2bY.js';
5
7
 
6
8
  const DBCustomSelect = class {
7
9
  constructor(hostRef) {
@@ -35,12 +37,21 @@ const DBCustomSelect = class {
35
37
  this._hasNoOptions = false;
36
38
  this._documentClickListenerCallbackId = undefined;
37
39
  this._internalChangeTimestamp = 0;
40
+ this._documentScrollListenerCallbackId = undefined;
41
+ this._observer = undefined;
38
42
  this.selectAllChecked = false;
39
43
  this.selectAllIndeterminate = false;
40
- this.satisfyReact = function satisfyReact() {
41
- // This is an empty function to satisfy React
44
+ this.satisfyReact = function satisfyReact(event) {
45
+ // This is a function to satisfy React
46
+ event.stopPropagation();
42
47
  };
43
48
  }
49
+ handleDocumentScroll(event) {
50
+ var _a, _b;
51
+ if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.contains) && ((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.contains(this.detailsRef))) {
52
+ this.handleAutoPlacement();
53
+ }
54
+ }
44
55
  hasValidState() {
45
56
  var _a;
46
57
  return !!((_a = this.validMessage) !== null && _a !== void 0 ? _a : this.validation === "valid");
@@ -83,17 +94,31 @@ const DBCustomSelect = class {
83
94
  }
84
95
  }
85
96
  handleDropdownToggle(event) {
97
+ var _a, _b;
86
98
  if (this.dropdownToggle) {
99
+ event.stopPropagation();
87
100
  this.dropdownToggle.emit(event);
88
101
  }
89
102
  if (event.target.open) {
90
103
  this._documentClickListenerCallbackId =
91
104
  new DocumentClickListener().addCallback((event) => this.handleDocumentClose(event));
105
+ this._documentScrollListenerCallbackId =
106
+ new DocumentScrollListener().addCallback((event) => this.handleDocumentScroll(event));
107
+ this.handleAutoPlacement();
108
+ (_a = this._observer) === null || _a === void 0 ? void 0 : _a.observe(this.detailsRef);
109
+ if (!event.target.dataset.test) {
110
+ // We need this workaround for snapshot testing
111
+ this.handleOpenByKeyboardFocus();
112
+ }
92
113
  }
93
114
  else {
94
115
  if (this._documentClickListenerCallbackId) {
95
116
  new DocumentClickListener().removeCallback(this._documentClickListenerCallbackId);
96
117
  }
118
+ if (this._documentScrollListenerCallbackId) {
119
+ new DocumentScrollListener().removeCallback(this._documentScrollListenerCallbackId);
120
+ }
121
+ (_b = this._observer) === null || _b === void 0 ? void 0 : _b.unobserve(this.detailsRef);
97
122
  }
98
123
  }
99
124
  getNativeSelectValue() {
@@ -134,11 +159,14 @@ const DBCustomSelect = class {
134
159
  return ((_b = (_a = option.id) !== null && _a !== void 0 ? _a : option.value) !== null && _b !== void 0 ? _b : uuid()).toString();
135
160
  }
136
161
  getTagRemoveLabel(index) {
137
- return this.removeTagsTexts && this.removeTagsTexts.length > index
138
- ? this.removeTagsTexts.at(index)
139
- : `${DEFAULT_REMOVE} ${this._selectedOptions
162
+ if (this.removeTagsTexts && this.removeTagsTexts.length > index) {
163
+ return this.removeTagsTexts.at(index);
164
+ }
165
+ else {
166
+ return `${DEFAULT_REMOVE} ${this._selectedOptions
140
167
  ? this.getOptionLabel(this._selectedOptions[index])
141
168
  : ""}`;
169
+ }
142
170
  }
143
171
  handleTagRemove(option, event) {
144
172
  event.stopPropagation();
@@ -149,17 +177,19 @@ const DBCustomSelect = class {
149
177
  if (this.detailsRef) {
150
178
  const dropdown = this.detailsRef.querySelector("article");
151
179
  if (dropdown) {
180
+ // This is a workaround for Angular
152
181
  delay(() => {
153
- handleDataOutside(dropdown);
154
- }, 100);
182
+ var _a;
183
+ handleFixedDropdown(dropdown, this.detailsRef, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
184
+ }, 1);
155
185
  }
156
186
  }
157
187
  }
158
188
  handleArrowDownUp(event) {
159
189
  var _a, _b, _c, _d, _e, _f, _g;
160
190
  if ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) {
161
- if (document) {
162
- const activeElement = document.activeElement;
191
+ if (self.document) {
192
+ const activeElement = self.document.activeElement;
163
193
  if (activeElement) {
164
194
  // 1. we check if we are currently focusing a checkbox in the dropdown
165
195
  const isCheckbox = activeElement.getAttribute("type") === "checkbox" ||
@@ -216,8 +246,6 @@ const DBCustomSelect = class {
216
246
  }
217
247
  }
218
248
  }
219
- event.stopPropagation();
220
- event.preventDefault();
221
249
  }
222
250
  else if (event.key === "ArrowDown" || event.key === "ArrowRight") {
223
251
  // Open dropdown with arrows see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/#keyboardinteraction
@@ -226,13 +254,14 @@ const DBCustomSelect = class {
226
254
  this.detailsRef.open = true;
227
255
  }
228
256
  this.handleOpenByKeyboardFocus();
229
- event.stopPropagation();
230
- event.preventDefault();
231
257
  }
258
+ event.stopPropagation();
259
+ event.preventDefault();
232
260
  }
233
261
  handleKeyboardPress(event) {
234
262
  var _a;
235
- if (event.key === "Escape" && this.detailsRef && ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
263
+ event.stopPropagation();
264
+ if (event.key === "Escape" && ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
236
265
  this.handleClose("close");
237
266
  this.handleSummaryFocus();
238
267
  }
@@ -252,25 +281,29 @@ const DBCustomSelect = class {
252
281
  else if (this.detailsRef.open && (event === null || event === void 0 ? void 0 : event.relatedTarget)) {
253
282
  const relatedTarget = event.relatedTarget;
254
283
  if (!this.detailsRef.contains(relatedTarget)) {
255
- this.detailsRef.open = false;
284
+ // We need to use delay here because the combination of `contains`
285
+ // and changing the DOM element causes a race condition inside browser
286
+ delay(() => (this.detailsRef.open = false), 1);
256
287
  }
257
288
  }
258
289
  }
259
290
  }
260
291
  handleDocumentClose(event) {
261
- var _a;
262
- // stencil is sending a custom event which wraps the pointer event into details
263
- const target = typeof event.detail === "number" ? event.target : event.detail.target;
264
- if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(target)) {
265
- this.detailsRef.open = false;
292
+ var _a, _b;
293
+ if (event) {
294
+ // stencil is sending a custom event which wraps the pointer event into details
295
+ const target = typeof event.detail === "number" ? event.target : (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
296
+ if (((_b = this.detailsRef) === null || _b === void 0 ? void 0 : _b.open) && !this.detailsRef.contains(target)) {
297
+ this.detailsRef.open = false;
298
+ }
266
299
  }
267
300
  }
268
301
  handleOptionSelected(values) {
269
302
  const skip = new Date().getTime() - this._internalChangeTimestamp < 200;
270
303
  if (skip)
271
304
  return;
305
+ this._values = values;
272
306
  if (this.optionSelected) {
273
- this._values = values;
274
307
  this.optionSelected.emit(values !== null && values !== void 0 ? values : []);
275
308
  }
276
309
  this._internalChangeTimestamp = new Date().getTime();
@@ -292,8 +325,9 @@ const DBCustomSelect = class {
292
325
  }
293
326
  }
294
327
  }
295
- handleSelectAll() {
328
+ handleSelectAll(event) {
296
329
  var _a;
330
+ event.stopPropagation();
297
331
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === this.amountOptions) {
298
332
  this.handleOptionSelected([]);
299
333
  }
@@ -323,12 +357,12 @@ const DBCustomSelect = class {
323
357
  delay(() => {
324
358
  // Takes some time until element can be focused
325
359
  checkbox.focus();
326
- }, 100);
360
+ }, 1);
327
361
  }
328
362
  }
329
363
  }
330
364
  }
331
- handleOpenByKeyboardFocus(onlySearch) {
365
+ handleOpenByKeyboardFocus() {
332
366
  if (this.detailsRef) {
333
367
  // Focus search if possible
334
368
  const search = getSearchInput(this.detailsRef);
@@ -336,9 +370,9 @@ const DBCustomSelect = class {
336
370
  delay(() => {
337
371
  // Takes some time until element can be focused
338
372
  search.focus();
339
- }, 100);
373
+ }, 1);
340
374
  }
341
- else if (!onlySearch) {
375
+ else {
342
376
  // Focus first checkbox otherwise
343
377
  this.handleFocusFirstDropdownCheckbox();
344
378
  }
@@ -347,21 +381,26 @@ const DBCustomSelect = class {
347
381
  handleSearch(event) {
348
382
  event.stopPropagation();
349
383
  const filterText = event.target.value;
350
- this._options =
351
- !this.options || !filterText || filterText.length === 0
352
- ? this.options
353
- : this.options.filter((option) => !option.isGroupTitle &&
354
- this.getOptionLabel(option)
355
- .toLowerCase()
356
- .includes(filterText.toLowerCase()));
357
- }
358
- handleClearAll() {
384
+ if (!this.options || !filterText || filterText.length === 0) {
385
+ this._options = this.options;
386
+ }
387
+ else {
388
+ this._options = this.options.filter((option) => !option.isGroupTitle &&
389
+ this.getOptionLabel(option)
390
+ .toLowerCase()
391
+ .includes(filterText.toLowerCase()));
392
+ }
393
+ }
394
+ handleClearAll(event) {
395
+ event.stopPropagation();
359
396
  this.handleOptionSelected([]);
360
397
  this.handleSummaryFocus();
361
398
  }
362
399
  handleSummaryFocus() {
363
- var _a, _b;
364
- (_b = (_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.querySelector("summary")) === null || _b === void 0 ? void 0 : _b.focus();
400
+ var _a;
401
+ if (this.detailsRef) {
402
+ (_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
403
+ }
365
404
  }
366
405
  /**
367
406
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -397,19 +436,6 @@ const DBCustomSelect = class {
397
436
  }
398
437
  watch0Fn() {
399
438
  if (this.detailsRef) {
400
- const summary = this.detailsRef.querySelector("summary");
401
- if (summary) {
402
- summary.addEventListener("click", () => {
403
- this.handleAutoPlacement();
404
- this.handleOpenByKeyboardFocus(true);
405
- });
406
- summary.addEventListener("keydown", (event) => {
407
- var _a;
408
- if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
409
- this.handleOpenByKeyboardFocus();
410
- }
411
- });
412
- }
413
439
  this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
414
440
  }
415
441
  }
@@ -436,10 +462,11 @@ const DBCustomSelect = class {
436
462
  this.watch1Fn();
437
463
  }
438
464
  watch2Fn() {
465
+ var _a;
439
466
  if (this.detailsRef) {
440
467
  const summary = this.detailsRef.querySelector("summary");
441
468
  if (summary) {
442
- summary.setAttribute("aria-describedby", this._descByIds || "");
469
+ summary.setAttribute("aria-describedby", (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : (this._descByIds || ""));
443
470
  }
444
471
  }
445
472
  }
@@ -458,13 +485,15 @@ const DBCustomSelect = class {
458
485
  this.watch3Fn();
459
486
  }
460
487
  watch4Fn() {
461
- this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
488
+ var _a;
489
+ this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
462
490
  }
463
491
  watch4() {
464
492
  this.watch4Fn();
465
493
  }
466
494
  watch5Fn() {
467
- this.searchEnabled = this.showSearch || this.amountOptions > 9;
495
+ var _a;
496
+ this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
468
497
  }
469
498
  watch5() {
470
499
  this.watch5Fn();
@@ -520,8 +549,8 @@ const DBCustomSelect = class {
520
549
  }
521
550
  watch11Fn() {
522
551
  var _a, _b;
523
- if ((_a = this._options) === null || _a === void 0 ? void 0 : _a.length) {
524
- this._selectedOptions = (_b = this._options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
552
+ if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
553
+ this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
525
554
  var _a, _b;
526
555
  if (!option.value || !((_a = this._values) === null || _a === void 0 ? void 0 : _a["includes"])) {
527
556
  return false;
@@ -594,6 +623,14 @@ const DBCustomSelect = class {
594
623
  this._selectedLabelsId = mId + "-selected-labels";
595
624
  this._infoTextId = mId + "-info";
596
625
  this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
626
+ this._observer = new IntersectionObserver((payload) => {
627
+ if (this.detailsRef) {
628
+ const entry = payload.find(({ target }) => target === this.detailsRef);
629
+ if (entry && !entry.isIntersecting && this.detailsRef.open) {
630
+ this.detailsRef.open = false;
631
+ }
632
+ }
633
+ });
597
634
  this.watch0Fn();
598
635
  this.watch1Fn();
599
636
  this.watch2Fn();
@@ -613,19 +650,19 @@ const DBCustomSelect = class {
613
650
  }
614
651
  render() {
615
652
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
616
- return (h("div", { key: 'ba168e109d3b2e75b46145033a88119ac46cf3f7', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
653
+ return (h("div", { key: '7400da8599cc1504f7231b7634d35aa977124cc4', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
617
654
  this._ref = el;
618
655
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
619
656
  this.selectedType === "tag" &&
620
657
  this.multiple
621
658
  ? "above"
622
- : this.variant, "data-required": getBooleanAsString(this.required), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-hide-icon": getHideProp(this.showIcon) }, h("label", { key: 'a92ba45f913e2c7a78140da705da166af94484b5', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '093c76705744d56d0d3c2c33f108a74b088381a5', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
659
+ : 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: 'adbc7c87ddc7ee3c18f968908a6c70237562d677', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '1f6c49037b713f8c86b80706c3d04a835a4b2bc9', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
623
660
  this.selectRef = el;
624
- }, form: this.form, name: this.name, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: () => this.satisfyReact() }, ((_b = this._options) === null || _b === void 0 ? void 0 : _b.length)
625
- ? (_c = this._options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
626
- : null)), h("details", { key: '64c5745a0fc32954f792b7fb81c8b26f11304565', ref: (el) => {
661
+ }, form: this.form, name: this.name, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
662
+ ? (_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))))
663
+ : null)), h("details", { key: '446bcf73bf7145aa477230787213d80a9adfac20', ref: (el) => {
627
664
  this.detailsRef = el;
628
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '1b1683fa3e54c249efd67e1ca960d61accd125c3' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
665
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '4683060808c2b7c561e2707f6e6bde5a74170abf' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
629
666
  this.searchInputRef = el;
630
667
  }, 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
631
668
  ? this._infoTextId
@@ -633,16 +670,16 @@ const DBCustomSelect = class {
633
670
  ? this.noResultsText
634
671
  : 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) => {
635
672
  this.selectAllRef = el;
636
- }, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.ariaListLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
673
+ }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), 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
637
674
  ? this.getOptionLabel(option)
638
- : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose("close") }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: () => this.handleClearAll() }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '309d5096cdbdfee24bd9a8a1941241586b60b3a4', "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '8f0fe04ea553fbffd86a7e30baa9cab7be708fd6', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'c106041467983c90b5a56ee4a6a56f8653dccaab', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
675
+ : 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: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '08eba6ae310a5049fb26036984c706da224d1dda', "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: '2ceb092c5680a395d3b8a2ec532bcd38df7a0ab9', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '997e41f87225827a6fd73fb1645f3f6e3a1fe569', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
639
676
  }
640
677
  static get watchers() { return {
641
678
  "detailsRef": ["watch0", "watch2"],
642
679
  "_id": ["watch1"],
643
680
  "_descByIds": ["watch2"],
644
681
  "showNoResults": ["watch3"],
645
- "_options": ["watch3", "watch11"],
682
+ "_options": ["watch3"],
646
683
  "showSelectAll": ["watch4"],
647
684
  "amountOptions": ["watch4", "watch5", "watch9"],
648
685
  "multiple": ["watch4"],
@@ -650,7 +687,7 @@ const DBCustomSelect = class {
650
687
  "values": ["watch6"],
651
688
  "_values": ["watch7", "watch9", "watch11"],
652
689
  "validation": ["watch8"],
653
- "options": ["watch10"],
690
+ "options": ["watch10", "watch11"],
654
691
  "_selectedOptions": ["watch12", "watch13"],
655
692
  "selectedType": ["watch12"],
656
693
  "amountText": ["watch12"],