@db-ux/wc-core-components 1.1.1 → 2.0.0-0-custom-select-16b8cce

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 (453) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  4. package/dist/cjs/{constants-89822e5f.js → constants-CTtyzyuo.js} +13 -2
  5. package/dist/cjs/constants-CTtyzyuo.js.map +1 -0
  6. package/dist/cjs/db-accordion-item.cjs.entry.js +5 -6
  7. package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -1
  8. package/dist/cjs/db-accordion-item.entry.cjs.js.map +1 -0
  9. package/dist/cjs/db-accordion.cjs.entry.js +4 -5
  10. package/dist/cjs/db-accordion.cjs.entry.js.map +1 -1
  11. package/dist/cjs/db-accordion.entry.cjs.js.map +1 -0
  12. package/dist/cjs/db-badge.cjs.entry.js +4 -5
  13. package/dist/cjs/db-badge.cjs.entry.js.map +1 -1
  14. package/dist/cjs/db-badge.entry.cjs.js.map +1 -0
  15. package/dist/cjs/db-brand.cjs.entry.js +4 -5
  16. package/dist/cjs/db-brand.cjs.entry.js.map +1 -1
  17. package/dist/cjs/db-brand.entry.cjs.js.map +1 -0
  18. package/dist/cjs/db-button.cjs.entry.js +4 -5
  19. package/dist/cjs/db-button.cjs.entry.js.map +1 -1
  20. package/dist/cjs/db-button.entry.cjs.js.map +1 -0
  21. package/dist/cjs/db-card.cjs.entry.js +4 -5
  22. package/dist/cjs/db-card.cjs.entry.js.map +1 -1
  23. package/dist/cjs/db-card.entry.cjs.js.map +1 -0
  24. package/dist/cjs/db-checkbox.cjs.entry.js +9 -10
  25. package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
  26. package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -0
  27. 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 -0
  28. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js +512 -0
  29. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js.map +1 -0
  30. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +55 -0
  31. package/dist/cjs/db-custom-select-form-field.cjs.entry.js.map +1 -0
  32. package/dist/cjs/db-custom-select-form-field.entry.cjs.js.map +1 -0
  33. package/dist/cjs/db-custom-select.cjs.entry.js +655 -0
  34. package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -0
  35. package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -0
  36. package/dist/cjs/db-divider.cjs.entry.js +3 -4
  37. package/dist/cjs/db-divider.cjs.entry.js.map +1 -1
  38. package/dist/cjs/db-divider.entry.cjs.js.map +1 -0
  39. package/dist/cjs/db-drawer.cjs.entry.js +5 -6
  40. package/dist/cjs/db-drawer.cjs.entry.js.map +1 -1
  41. package/dist/cjs/db-drawer.entry.cjs.js.map +1 -0
  42. package/dist/cjs/db-header.cjs.entry.js +6 -7
  43. package/dist/cjs/db-header.cjs.entry.js.map +1 -1
  44. package/dist/cjs/db-header.entry.cjs.js.map +1 -0
  45. package/dist/cjs/db-icon.cjs.entry.js +3 -4
  46. package/dist/cjs/db-icon.cjs.entry.js.map +1 -1
  47. package/dist/cjs/db-icon.entry.cjs.js.map +1 -0
  48. package/dist/cjs/db-infotext.cjs.entry.js +3 -4
  49. package/dist/cjs/db-infotext.cjs.entry.js.map +1 -1
  50. package/dist/cjs/db-infotext.entry.cjs.js.map +1 -0
  51. package/dist/cjs/db-link.cjs.entry.js +4 -5
  52. package/dist/cjs/db-link.cjs.entry.js.map +1 -1
  53. package/dist/cjs/db-link.entry.cjs.js.map +1 -0
  54. package/dist/cjs/db-navigation-item.cjs.entry.js +6 -7
  55. package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
  56. package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -0
  57. package/dist/cjs/db-navigation.cjs.entry.js +4 -5
  58. package/dist/cjs/db-navigation.cjs.entry.js.map +1 -1
  59. package/dist/cjs/db-navigation.entry.cjs.js.map +1 -0
  60. package/dist/cjs/db-notification.cjs.entry.js +5 -6
  61. package/dist/cjs/db-notification.cjs.entry.js.map +1 -1
  62. package/dist/cjs/db-notification.entry.cjs.js.map +1 -0
  63. package/dist/cjs/db-page.cjs.entry.js +5 -6
  64. package/dist/cjs/db-page.cjs.entry.js.map +1 -1
  65. package/dist/cjs/db-page.entry.cjs.js.map +1 -0
  66. package/dist/cjs/db-popover.cjs.entry.js +3 -4
  67. package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
  68. package/dist/cjs/db-popover.entry.cjs.js.map +1 -0
  69. package/dist/cjs/db-radio.cjs.entry.js +6 -7
  70. package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
  71. package/dist/cjs/db-radio.entry.cjs.js.map +1 -0
  72. package/dist/cjs/db-section.cjs.entry.js +4 -5
  73. package/dist/cjs/db-section.cjs.entry.js.map +1 -1
  74. package/dist/cjs/db-section.entry.cjs.js.map +1 -0
  75. package/dist/cjs/db-select.cjs.entry.js +15 -16
  76. package/dist/cjs/db-select.cjs.entry.js.map +1 -1
  77. package/dist/cjs/db-select.entry.cjs.js.map +1 -0
  78. package/dist/cjs/db-stack.cjs.entry.js +3 -4
  79. package/dist/cjs/db-stack.cjs.entry.js.map +1 -1
  80. package/dist/cjs/db-stack.entry.cjs.js.map +1 -0
  81. package/dist/cjs/db-switch.cjs.entry.js +6 -7
  82. package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
  83. package/dist/cjs/db-switch.entry.cjs.js.map +1 -0
  84. package/dist/cjs/db-tab-item.db-tab-list.db-tab-panel.entry.cjs.js.map +1 -0
  85. package/dist/cjs/db-tab-item_3.cjs.entry.js +5 -6
  86. package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -1
  87. package/dist/cjs/db-tabs.cjs.entry.js +5 -6
  88. package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
  89. package/dist/cjs/db-tabs.entry.cjs.js.map +1 -0
  90. package/dist/cjs/db-textarea.cjs.entry.js +10 -11
  91. package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
  92. package/dist/cjs/db-textarea.entry.cjs.js.map +1 -0
  93. package/dist/cjs/db-ux.cjs.js +8 -7
  94. package/dist/cjs/db-ux.cjs.js.map +1 -1
  95. package/dist/cjs/{index-6e2cf235.js → index-DBEtsnky.js} +18 -46
  96. package/dist/cjs/index-DBEtsnky.js.map +1 -0
  97. package/dist/cjs/{index-403366c7.js → index-DeqKGVDx.js} +4 -1
  98. package/dist/cjs/index-DeqKGVDx.js.map +1 -0
  99. package/dist/cjs/index.cjs.js +24 -23
  100. package/dist/cjs/index.cjs.js.map +1 -1
  101. package/dist/cjs/loader.cjs.js +4 -5
  102. package/dist/cjs/loader.cjs.js.map +1 -1
  103. package/dist/cjs/{navigation-5586b826.js → navigation-Cfm1OFWB.js} +3 -2
  104. package/dist/cjs/navigation-Cfm1OFWB.js.map +1 -0
  105. package/dist/collection/collection-manifest.json +7 -2
  106. package/dist/collection/components/accordion/model.js.map +1 -1
  107. package/dist/collection/components/badge/model.js.map +1 -1
  108. package/dist/collection/components/button/button.js +1 -1
  109. package/dist/collection/components/button/model.js.map +1 -1
  110. package/dist/collection/components/card/card.js +1 -1
  111. package/dist/collection/components/card/model.js.map +1 -1
  112. package/dist/collection/components/checkbox/checkbox.js +2 -2
  113. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  114. package/dist/collection/components/custom-select/custom-select.js +1826 -0
  115. package/dist/collection/components/custom-select/custom-select.js.map +1 -0
  116. package/dist/collection/components/custom-select/index.js +3 -0
  117. package/dist/collection/components/custom-select/index.js.map +1 -0
  118. package/dist/collection/components/custom-select/model.js +2 -0
  119. package/dist/collection/components/custom-select/model.js.map +1 -0
  120. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +133 -0
  121. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js.map +1 -0
  122. package/dist/collection/components/custom-select-dropdown/index.js +3 -0
  123. package/dist/collection/components/custom-select-dropdown/index.js.map +1 -0
  124. package/dist/collection/components/custom-select-dropdown/model.js +2 -0
  125. package/dist/collection/components/custom-select-dropdown/model.js.map +1 -0
  126. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +104 -0
  127. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js.map +1 -0
  128. package/dist/collection/components/custom-select-form-field/index.js +3 -0
  129. package/dist/collection/components/custom-select-form-field/index.js.map +1 -0
  130. package/dist/collection/components/custom-select-form-field/model.js +2 -0
  131. package/dist/collection/components/custom-select-form-field/model.js.map +1 -0
  132. package/dist/collection/components/custom-select-list/custom-select-list.js +154 -0
  133. package/dist/collection/components/custom-select-list/custom-select-list.js.map +1 -0
  134. package/dist/collection/components/custom-select-list/index.js +3 -0
  135. package/dist/collection/components/custom-select-list/index.js.map +1 -0
  136. package/dist/collection/components/custom-select-list/model.js +2 -0
  137. package/dist/collection/components/custom-select-list/model.js.map +1 -0
  138. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +465 -0
  139. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js.map +1 -0
  140. package/dist/collection/components/custom-select-list-item/index.js +3 -0
  141. package/dist/collection/components/custom-select-list-item/index.js.map +1 -0
  142. package/dist/collection/components/custom-select-list-item/model.js +2 -0
  143. package/dist/collection/components/custom-select-list-item/model.js.map +1 -0
  144. package/dist/collection/components/divider/divider.js +1 -1
  145. package/dist/collection/components/divider/model.js.map +1 -1
  146. package/dist/collection/components/drawer/drawer.js +2 -2
  147. package/dist/collection/components/drawer/model.js.map +1 -1
  148. package/dist/collection/components/icon/model.js.map +1 -1
  149. package/dist/collection/components/input/input.js +27 -2
  150. package/dist/collection/components/input/input.js.map +1 -1
  151. package/dist/collection/components/input/model.js.map +1 -1
  152. package/dist/collection/components/link/model.js.map +1 -1
  153. package/dist/collection/components/navigation-item/model.js.map +1 -1
  154. package/dist/collection/components/navigation-item/navigation-item.js +1 -1
  155. package/dist/collection/components/notification/model.js.map +1 -1
  156. package/dist/collection/components/page/model.js.map +1 -1
  157. package/dist/collection/components/page/page.js +27 -2
  158. package/dist/collection/components/page/page.js.map +1 -1
  159. package/dist/collection/components/popover/popover.js +1 -1
  160. package/dist/collection/components/section/section.js +1 -1
  161. package/dist/collection/components/select/model.js.map +1 -1
  162. package/dist/collection/components/select/select.js +31 -6
  163. package/dist/collection/components/select/select.js.map +1 -1
  164. package/dist/collection/components/stack/model.js.map +1 -1
  165. package/dist/collection/components/tabs/model.js.map +1 -1
  166. package/dist/collection/components/tabs/tabs.js +2 -2
  167. package/dist/collection/components/tag/model.js.map +1 -1
  168. package/dist/collection/components/tag/tag.js +9 -8
  169. package/dist/collection/components/tag/tag.js.map +1 -1
  170. package/dist/collection/components/textarea/model.js.map +1 -1
  171. package/dist/collection/components/textarea/textarea.js +2 -2
  172. package/dist/collection/components/textarea/textarea.js.map +1 -1
  173. package/dist/collection/index.js +5 -0
  174. package/dist/collection/index.js.map +1 -1
  175. package/dist/collection/shared/constants.js +6 -1
  176. package/dist/collection/shared/constants.js.map +1 -1
  177. package/dist/collection/shared/model.js +3 -1
  178. package/dist/collection/shared/model.js.map +1 -1
  179. package/dist/collection/utils/index.js +2 -0
  180. package/dist/collection/utils/index.js.map +1 -1
  181. package/dist/collection/utils/navigation.js.map +1 -1
  182. package/dist/collection/utils/react.js.map +1 -1
  183. package/dist/custom-elements.json +3176 -139
  184. package/dist/db-ux/db-accordion-item.entry.esm.js.map +1 -0
  185. package/dist/db-ux/db-accordion.entry.esm.js.map +1 -0
  186. package/dist/db-ux/db-badge.entry.esm.js.map +1 -0
  187. package/dist/db-ux/db-brand.entry.esm.js.map +1 -0
  188. package/dist/db-ux/db-button.entry.esm.js.map +1 -0
  189. package/dist/db-ux/db-card.entry.esm.js.map +1 -0
  190. package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -0
  191. 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 -0
  192. package/dist/db-ux/db-custom-select-form-field.entry.esm.js.map +1 -0
  193. package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -0
  194. package/dist/db-ux/db-divider.entry.esm.js.map +1 -0
  195. package/dist/db-ux/db-drawer.entry.esm.js.map +1 -0
  196. package/dist/db-ux/db-header.entry.esm.js.map +1 -0
  197. package/dist/db-ux/db-icon.entry.esm.js.map +1 -0
  198. package/dist/db-ux/db-infotext.entry.esm.js.map +1 -0
  199. package/dist/db-ux/db-link.entry.esm.js.map +1 -0
  200. package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -0
  201. package/dist/db-ux/db-navigation.entry.esm.js.map +1 -0
  202. package/dist/db-ux/db-notification.entry.esm.js.map +1 -0
  203. package/dist/db-ux/db-page.entry.esm.js.map +1 -0
  204. package/dist/db-ux/db-popover.entry.esm.js.map +1 -0
  205. package/dist/db-ux/db-radio.entry.esm.js.map +1 -0
  206. package/dist/db-ux/db-section.entry.esm.js.map +1 -0
  207. package/dist/db-ux/db-select.entry.esm.js.map +1 -0
  208. package/dist/db-ux/db-stack.entry.esm.js.map +1 -0
  209. package/dist/db-ux/db-switch.entry.esm.js.map +1 -0
  210. package/dist/db-ux/db-tab-item.db-tab-list.db-tab-panel.entry.esm.js.map +1 -0
  211. package/dist/db-ux/db-tabs.entry.esm.js.map +1 -0
  212. package/dist/db-ux/db-textarea.entry.esm.js.map +1 -0
  213. package/dist/db-ux/db-ux.esm.js +1 -1
  214. package/dist/db-ux/db-ux.esm.js.map +1 -1
  215. package/dist/db-ux/index.esm.js +1 -1
  216. package/dist/db-ux/index.esm.js.map +1 -1
  217. package/dist/db-ux/loader.esm.js.map +1 -0
  218. package/dist/db-ux/{p-97028dbd.entry.js → p-0414dab3.entry.js} +2 -2
  219. package/dist/db-ux/{p-97028dbd.entry.js.map → p-0414dab3.entry.js.map} +1 -1
  220. package/dist/db-ux/p-05505797.entry.js +2 -0
  221. package/dist/db-ux/{p-15a0a59a.entry.js.map → p-05505797.entry.js.map} +1 -1
  222. package/dist/db-ux/{p-8a557e62.entry.js → p-0b9779be.entry.js} +2 -2
  223. package/dist/db-ux/{p-8a557e62.entry.js.map → p-0b9779be.entry.js.map} +1 -1
  224. package/dist/db-ux/p-1799c085.entry.js +2 -0
  225. package/dist/db-ux/{p-2c5a50cb.entry.js.map → p-1799c085.entry.js.map} +1 -1
  226. package/dist/db-ux/p-30261cf0.entry.js +2 -0
  227. package/dist/db-ux/{p-7962a728.entry.js.map → p-30261cf0.entry.js.map} +1 -1
  228. package/dist/db-ux/{p-b995d4f1.entry.js → p-43f2df95.entry.js} +2 -2
  229. package/dist/db-ux/{p-b995d4f1.entry.js.map → p-43f2df95.entry.js.map} +1 -1
  230. package/dist/db-ux/p-463c100b.entry.js +2 -0
  231. package/dist/db-ux/p-463c100b.entry.js.map +1 -0
  232. package/dist/db-ux/p-4cf2c595.entry.js +2 -0
  233. package/dist/db-ux/p-4cf2c595.entry.js.map +1 -0
  234. package/dist/db-ux/p-56a39c64.entry.js +2 -0
  235. package/dist/db-ux/p-56a39c64.entry.js.map +1 -0
  236. package/dist/db-ux/p-5ceb34d7.entry.js +2 -0
  237. package/dist/db-ux/{p-79b19742.entry.js.map → p-5ceb34d7.entry.js.map} +1 -1
  238. package/dist/db-ux/{p-57674cda.entry.js → p-65983b83.entry.js} +2 -2
  239. package/dist/db-ux/{p-57674cda.entry.js.map → p-65983b83.entry.js.map} +1 -1
  240. package/dist/db-ux/p-6e1aa320.entry.js +2 -0
  241. package/dist/db-ux/{p-3a1dfb26.entry.js.map → p-6e1aa320.entry.js.map} +1 -1
  242. package/dist/db-ux/p-70b6a633.entry.js +2 -0
  243. package/dist/db-ux/{p-ecdbfa7d.entry.js.map → p-70b6a633.entry.js.map} +1 -1
  244. package/dist/db-ux/p-72cbf9ff.entry.js +2 -0
  245. package/dist/db-ux/p-72cbf9ff.entry.js.map +1 -0
  246. package/dist/db-ux/{p-bb08ea68.entry.js → p-7346f78f.entry.js} +2 -2
  247. package/dist/db-ux/{p-bb08ea68.entry.js.map → p-7346f78f.entry.js.map} +1 -1
  248. package/dist/db-ux/p-7b3689ea.entry.js +2 -0
  249. package/dist/db-ux/{p-d94a3bf9.entry.js.map → p-7b3689ea.entry.js.map} +1 -1
  250. package/dist/db-ux/p-93ee59f3.entry.js +2 -0
  251. package/dist/db-ux/{p-e0c996ca.entry.js.map → p-93ee59f3.entry.js.map} +1 -1
  252. package/dist/db-ux/p-969ce4ec.entry.js +2 -0
  253. package/dist/db-ux/{p-ae744b8c.entry.js.map → p-969ce4ec.entry.js.map} +1 -1
  254. package/dist/db-ux/p-97cfc836.entry.js +2 -0
  255. package/dist/db-ux/p-97cfc836.entry.js.map +1 -0
  256. package/dist/db-ux/{p-2e931b97.entry.js → p-9a3c9ffe.entry.js} +2 -2
  257. package/dist/db-ux/{p-2e931b97.entry.js.map → p-9a3c9ffe.entry.js.map} +1 -1
  258. package/dist/db-ux/p-D-D8lQAG.js +3 -0
  259. package/dist/db-ux/p-D-D8lQAG.js.map +1 -0
  260. package/dist/db-ux/p-DC9V_oNU.js +2 -0
  261. package/dist/db-ux/p-DC9V_oNU.js.map +1 -0
  262. package/dist/db-ux/p-DQuL1Twl.js +2 -0
  263. package/dist/db-ux/p-DQuL1Twl.js.map +1 -0
  264. package/dist/db-ux/{p-0cdf053e.js → p-VkX3SW7K.js} +2 -2
  265. package/dist/db-ux/p-VkX3SW7K.js.map +1 -0
  266. package/dist/db-ux/p-a2f461ee.entry.js +2 -0
  267. package/dist/db-ux/{p-0f85a724.entry.js.map → p-a2f461ee.entry.js.map} +1 -1
  268. package/dist/db-ux/p-acca879a.entry.js +2 -0
  269. package/dist/db-ux/{p-16da89d8.entry.js.map → p-acca879a.entry.js.map} +1 -1
  270. package/dist/db-ux/p-b09d7817.entry.js +2 -0
  271. package/dist/db-ux/{p-df8a20f6.entry.js.map → p-b09d7817.entry.js.map} +1 -1
  272. package/dist/db-ux/p-b858ced9.entry.js +2 -0
  273. package/dist/db-ux/p-b858ced9.entry.js.map +1 -0
  274. package/dist/db-ux/p-bb06aac0.entry.js +2 -0
  275. package/dist/db-ux/{p-b7ca81eb.entry.js.map → p-bb06aac0.entry.js.map} +1 -1
  276. package/dist/db-ux/{p-5d3a6be9.entry.js → p-d10ee6dc.entry.js} +2 -2
  277. package/dist/db-ux/{p-5d3a6be9.entry.js.map → p-d10ee6dc.entry.js.map} +1 -1
  278. package/dist/db-ux/p-d4d01646.entry.js +2 -0
  279. package/dist/db-ux/{p-184fc0f3.entry.js.map → p-d4d01646.entry.js.map} +1 -1
  280. package/dist/db-ux/{p-dc43adca.entry.js → p-e393938c.entry.js} +2 -2
  281. package/dist/db-ux/{p-dc43adca.entry.js.map → p-e393938c.entry.js.map} +1 -1
  282. package/dist/db-ux/p-ea7da771.entry.js +2 -0
  283. package/dist/db-ux/{p-bf771913.entry.js.map → p-ea7da771.entry.js.map} +1 -1
  284. package/dist/db-ux/{p-45bb9feb.js → p-fw8E73KY.js} +2 -2
  285. package/dist/db-ux/p-fw8E73KY.js.map +1 -0
  286. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  287. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  288. package/dist/esm/{constants-745cf8d7.js → constants-DC9V_oNU.js} +9 -3
  289. package/dist/esm/constants-DC9V_oNU.js.map +1 -0
  290. package/dist/esm/db-accordion-item.entry.js +5 -4
  291. package/dist/esm/db-accordion-item.entry.js.map +1 -1
  292. package/dist/esm/db-accordion.entry.js +4 -3
  293. package/dist/esm/db-accordion.entry.js.map +1 -1
  294. package/dist/esm/db-badge.entry.js +4 -3
  295. package/dist/esm/db-badge.entry.js.map +1 -1
  296. package/dist/esm/db-brand.entry.js +4 -3
  297. package/dist/esm/db-brand.entry.js.map +1 -1
  298. package/dist/esm/db-button.entry.js +4 -3
  299. package/dist/esm/db-button.entry.js.map +1 -1
  300. package/dist/esm/db-card.entry.js +4 -3
  301. package/dist/esm/db-card.entry.js.map +1 -1
  302. package/dist/esm/db-checkbox.entry.js +9 -8
  303. package/dist/esm/db-checkbox.entry.js.map +1 -1
  304. 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 -0
  305. package/dist/esm/db-custom-select-dropdown_6.entry.js +505 -0
  306. package/dist/esm/db-custom-select-dropdown_6.entry.js.map +1 -0
  307. package/dist/esm/db-custom-select-form-field.entry.js +53 -0
  308. package/dist/esm/db-custom-select-form-field.entry.js.map +1 -0
  309. package/dist/esm/db-custom-select.entry.js +653 -0
  310. package/dist/esm/db-custom-select.entry.js.map +1 -0
  311. package/dist/esm/db-divider.entry.js +3 -2
  312. package/dist/esm/db-divider.entry.js.map +1 -1
  313. package/dist/esm/db-drawer.entry.js +5 -4
  314. package/dist/esm/db-drawer.entry.js.map +1 -1
  315. package/dist/esm/db-header.entry.js +6 -5
  316. package/dist/esm/db-header.entry.js.map +1 -1
  317. package/dist/esm/db-icon.entry.js +3 -2
  318. package/dist/esm/db-icon.entry.js.map +1 -1
  319. package/dist/esm/db-infotext.entry.js +3 -2
  320. package/dist/esm/db-infotext.entry.js.map +1 -1
  321. package/dist/esm/db-link.entry.js +4 -3
  322. package/dist/esm/db-link.entry.js.map +1 -1
  323. package/dist/esm/db-navigation-item.entry.js +6 -5
  324. package/dist/esm/db-navigation-item.entry.js.map +1 -1
  325. package/dist/esm/db-navigation.entry.js +4 -3
  326. package/dist/esm/db-navigation.entry.js.map +1 -1
  327. package/dist/esm/db-notification.entry.js +5 -4
  328. package/dist/esm/db-notification.entry.js.map +1 -1
  329. package/dist/esm/db-page.entry.js +5 -4
  330. package/dist/esm/db-page.entry.js.map +1 -1
  331. package/dist/esm/db-popover.entry.js +3 -2
  332. package/dist/esm/db-popover.entry.js.map +1 -1
  333. package/dist/esm/db-radio.entry.js +6 -5
  334. package/dist/esm/db-radio.entry.js.map +1 -1
  335. package/dist/esm/db-section.entry.js +4 -3
  336. package/dist/esm/db-section.entry.js.map +1 -1
  337. package/dist/esm/db-select.entry.js +15 -14
  338. package/dist/esm/db-select.entry.js.map +1 -1
  339. package/dist/esm/db-stack.entry.js +3 -2
  340. package/dist/esm/db-stack.entry.js.map +1 -1
  341. package/dist/esm/db-switch.entry.js +6 -5
  342. package/dist/esm/db-switch.entry.js.map +1 -1
  343. package/dist/esm/db-tab-item.db-tab-list.db-tab-panel.entry.js.map +1 -0
  344. package/dist/esm/db-tab-item_3.entry.js +5 -4
  345. package/dist/esm/db-tab-item_3.entry.js.map +1 -1
  346. package/dist/esm/db-tabs.entry.js +5 -4
  347. package/dist/esm/db-tabs.entry.js.map +1 -1
  348. package/dist/esm/db-textarea.entry.js +10 -9
  349. package/dist/esm/db-textarea.entry.js.map +1 -1
  350. package/dist/esm/db-ux.js +7 -5
  351. package/dist/esm/db-ux.js.map +1 -1
  352. package/dist/esm/{index-389cc56c.js → index-D-D8lQAG.js} +16 -24
  353. package/dist/esm/index-D-D8lQAG.js.map +1 -0
  354. package/dist/esm/{index-7d31752e.js → index-fw8E73KY.js} +4 -2
  355. package/dist/esm/index-fw8E73KY.js.map +1 -0
  356. package/dist/esm/index.js +9 -6
  357. package/dist/esm/index.js.map +1 -1
  358. package/dist/esm/loader.js +5 -4
  359. package/dist/esm/loader.js.map +1 -1
  360. package/dist/esm/{navigation-09e3ace3.js → navigation-1ba3zvi0.js} +3 -2
  361. package/dist/esm/navigation-1ba3zvi0.js.map +1 -0
  362. package/dist/types/components/custom-select/custom-select.d.ts +145 -0
  363. package/dist/types/components/custom-select/index.d.ts +2 -0
  364. package/dist/types/components/custom-select/model.d.ts +173 -0
  365. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +19 -0
  366. package/dist/types/components/custom-select-dropdown/index.d.ts +2 -0
  367. package/dist/types/components/custom-select-dropdown/model.d.ts +15 -0
  368. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +18 -0
  369. package/dist/types/components/custom-select-form-field/index.d.ts +2 -0
  370. package/dist/types/components/custom-select-form-field/model.d.ts +5 -0
  371. package/dist/types/components/custom-select-list/custom-select-list.d.ts +20 -0
  372. package/dist/types/components/custom-select-list/index.d.ts +2 -0
  373. package/dist/types/components/custom-select-list/model.d.ts +8 -0
  374. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +38 -0
  375. package/dist/types/components/custom-select-list-item/index.d.ts +2 -0
  376. package/dist/types/components/custom-select-list-item/model.d.ts +29 -0
  377. package/dist/types/components/input/input.d.ts +1 -0
  378. package/dist/types/components/page/model.d.ts +4 -0
  379. package/dist/types/components/page/page.d.ts +1 -0
  380. package/dist/types/components/select/model.d.ts +3 -3
  381. package/dist/types/components/select/select.d.ts +1 -0
  382. package/dist/types/components/tag/model.d.ts +3 -3
  383. package/dist/types/components/tag/tag.d.ts +3 -2
  384. package/dist/types/components.d.ts +247 -2
  385. package/dist/types/index.d.ts +5 -0
  386. package/dist/types/shared/constants.d.ts +5 -0
  387. package/dist/types/shared/model.d.ts +36 -19
  388. package/dist/types/stencil-public-runtime.d.ts +1 -0
  389. package/dist/types/utils/index.d.ts +2 -0
  390. package/dist/types/utils/react.d.ts +4 -4
  391. package/dist/vscode.html-custom-data.json +402 -47
  392. package/dist/web-types.json +849 -98
  393. package/package.json +5 -5
  394. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  395. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  396. package/dist/cjs/constants-89822e5f.js.map +0 -1
  397. package/dist/cjs/db-input.cjs.entry.js +0 -171
  398. package/dist/cjs/db-input.cjs.entry.js.map +0 -1
  399. package/dist/cjs/db-tag.cjs.entry.js +0 -92
  400. package/dist/cjs/db-tag.cjs.entry.js.map +0 -1
  401. package/dist/cjs/db-tooltip.cjs.entry.js +0 -94
  402. package/dist/cjs/db-tooltip.cjs.entry.js.map +0 -1
  403. package/dist/cjs/index-403366c7.js.map +0 -1
  404. package/dist/cjs/index-6e2cf235.js.map +0 -1
  405. package/dist/cjs/navigation-5586b826.js.map +0 -1
  406. package/dist/db-ux/p-0cdf053e.js.map +0 -1
  407. package/dist/db-ux/p-0f85a724.entry.js +0 -2
  408. package/dist/db-ux/p-15a0a59a.entry.js +0 -2
  409. package/dist/db-ux/p-16da89d8.entry.js +0 -2
  410. package/dist/db-ux/p-184fc0f3.entry.js +0 -2
  411. package/dist/db-ux/p-1fc85f53.entry.js +0 -2
  412. package/dist/db-ux/p-1fc85f53.entry.js.map +0 -1
  413. package/dist/db-ux/p-2c5a50cb.entry.js +0 -2
  414. package/dist/db-ux/p-3a1dfb26.entry.js +0 -2
  415. package/dist/db-ux/p-45bb9feb.js.map +0 -1
  416. package/dist/db-ux/p-680cb6b9.entry.js +0 -2
  417. package/dist/db-ux/p-680cb6b9.entry.js.map +0 -1
  418. package/dist/db-ux/p-6e619ac9.js +0 -3
  419. package/dist/db-ux/p-6e619ac9.js.map +0 -1
  420. package/dist/db-ux/p-7962a728.entry.js +0 -2
  421. package/dist/db-ux/p-79b19742.entry.js +0 -2
  422. package/dist/db-ux/p-79fdb910.entry.js +0 -2
  423. package/dist/db-ux/p-79fdb910.entry.js.map +0 -1
  424. package/dist/db-ux/p-a0a07ca5.entry.js +0 -2
  425. package/dist/db-ux/p-a0a07ca5.entry.js.map +0 -1
  426. package/dist/db-ux/p-a123f227.entry.js +0 -2
  427. package/dist/db-ux/p-a123f227.entry.js.map +0 -1
  428. package/dist/db-ux/p-ae744b8c.entry.js +0 -2
  429. package/dist/db-ux/p-af3834b6.js +0 -2
  430. package/dist/db-ux/p-af3834b6.js.map +0 -1
  431. package/dist/db-ux/p-b7ca81eb.entry.js +0 -2
  432. package/dist/db-ux/p-bf771913.entry.js +0 -2
  433. package/dist/db-ux/p-d4755d20.entry.js +0 -2
  434. package/dist/db-ux/p-d4755d20.entry.js.map +0 -1
  435. package/dist/db-ux/p-d94a3bf9.entry.js +0 -2
  436. package/dist/db-ux/p-df8a20f6.entry.js +0 -2
  437. package/dist/db-ux/p-e0c996ca.entry.js +0 -2
  438. package/dist/db-ux/p-e1255160.js +0 -2
  439. package/dist/db-ux/p-e1255160.js.map +0 -1
  440. package/dist/db-ux/p-ecdbfa7d.entry.js +0 -2
  441. package/dist/esm/app-globals-0f993ce5.js +0 -5
  442. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  443. package/dist/esm/constants-745cf8d7.js.map +0 -1
  444. package/dist/esm/db-input.entry.js +0 -167
  445. package/dist/esm/db-input.entry.js.map +0 -1
  446. package/dist/esm/db-tag.entry.js +0 -88
  447. package/dist/esm/db-tag.entry.js.map +0 -1
  448. package/dist/esm/db-tooltip.entry.js +0 -90
  449. package/dist/esm/db-tooltip.entry.js.map +0 -1
  450. package/dist/esm/index-389cc56c.js.map +0 -1
  451. package/dist/esm/index-7d31752e.js.map +0 -1
  452. package/dist/esm/navigation-09e3ace3.js.map +0 -1
  453. package/dist/loader/package.json +0 -11
@@ -0,0 +1,655 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-DBEtsnky.js');
4
+ var index$1 = require('./index-DeqKGVDx.js');
5
+ var constants = require('./constants-CTtyzyuo.js');
6
+
7
+ const DBCustomSelect = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ this.onSelect = index.createEvent(this, "onSelect");
11
+ this.onAmountChange = index.createEvent(this, "onAmountChange");
12
+ this.onDropdownToggle = index.createEvent(this, "onDropdownToggle");
13
+ this.showClearSelection = true;
14
+ this.clearSelectionLabel = "Clear selection";
15
+ this._name = undefined;
16
+ this._id = undefined;
17
+ this._messageId = undefined;
18
+ this._validMessageId = undefined;
19
+ this._invalidMessageId = undefined;
20
+ this._selectId = undefined;
21
+ this._labelId = undefined;
22
+ this._summaryId = undefined;
23
+ this._placeholderId = undefined;
24
+ this._infoTextId = undefined;
25
+ this._validity = "no-validation";
26
+ this._descByIds = "";
27
+ this._selectedLabels = "";
28
+ this._selectedLabelsId = undefined;
29
+ this._voiceOverFallback = "";
30
+ this._selectedOptions = [];
31
+ this.selectAllEnabled = false;
32
+ this.searchEnabled = false;
33
+ this.amountOptions = 0;
34
+ this._values = [];
35
+ this._options = [];
36
+ this._hasNoOptions = false;
37
+ this._internalChangeTimestamp = -1;
38
+ this._externalChangeTimestamp = -1;
39
+ this.selectAllChecked = false;
40
+ this.selectAllIndeterminate = false;
41
+ }
42
+ handleDropdownToggle(event) {
43
+ if (this.onDropdownToggle) {
44
+ this.onDropdownToggle.emit(event);
45
+ }
46
+ }
47
+ getNativeSelectValue() {
48
+ var _a, _b;
49
+ if ((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) {
50
+ return (_b = this._values.at(0)) !== null && _b !== void 0 ? _b : "";
51
+ }
52
+ return "";
53
+ }
54
+ setDescById(descId) {
55
+ var _a;
56
+ const descByIds = [];
57
+ if (descId) {
58
+ descByIds.push(descId);
59
+ }
60
+ if (this._selectedLabelsId && ((_a = this._selectedLabels) === null || _a === void 0 ? void 0 : _a.length)) {
61
+ descByIds.push(this._selectedLabelsId);
62
+ }
63
+ this._descByIds = descByIds.join(" ");
64
+ }
65
+ getSelectAllLabel() {
66
+ var _a, _b, _c;
67
+ if (!this.selectAllRef)
68
+ return (_a = this.selectAllLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL;
69
+ if (this.selectAllRef.indeterminate || !this.selectAllChecked) {
70
+ return (_b = this.selectAllLabel) !== null && _b !== void 0 ? _b : constants.DEFAULT_LABEL;
71
+ }
72
+ else {
73
+ return (_c = this.deSelectAllLabel) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL;
74
+ }
75
+ }
76
+ getOptionLabel(option) {
77
+ var _a, _b, _c;
78
+ return (_c = (_a = option.label) !== null && _a !== void 0 ? _a : (_b = option.value) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "";
79
+ }
80
+ getOptionChecked(value) {
81
+ var _a;
82
+ if (value && this._values && this._values.includes) {
83
+ return (_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value);
84
+ }
85
+ return false;
86
+ }
87
+ getOptionKey(option) {
88
+ var _a, _b;
89
+ return ((_b = (_a = option.id) !== null && _a !== void 0 ? _a : option.value) !== null && _b !== void 0 ? _b : index$1.uuid()).toString();
90
+ }
91
+ getTagRemoveLabel(index) {
92
+ return this.removeTagsTexts && this.removeTagsTexts.length > index
93
+ ? this.removeTagsTexts.at(index)
94
+ : `${constants.DEFAULT_REMOVE} ${this._selectedOptions
95
+ ? this.getOptionLabel(this._selectedOptions[index])
96
+ : ""}`;
97
+ }
98
+ handleTagRemove(option, event) {
99
+ event.stopPropagation();
100
+ this.handleSelect(option.value);
101
+ this.handleSummaryFocus();
102
+ }
103
+ handleAutoPlacement() {
104
+ if (this.detailsRef) {
105
+ const dropdown = this.detailsRef.querySelector("article");
106
+ if (dropdown) {
107
+ index$1.delay(() => {
108
+ index$1.handleDataOutside(dropdown);
109
+ }, 100);
110
+ }
111
+ }
112
+ }
113
+ handleArrowDownUp(event) {
114
+ var _a, _b, _c, _d, _e;
115
+ if ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) {
116
+ if (document) {
117
+ const activeElement = document.activeElement;
118
+ if (activeElement) {
119
+ // 1. we check if we are currently focusing a checkbox in the dropdown
120
+ const isCheckbox = activeElement.getAttribute("type") === "checkbox" ||
121
+ activeElement.getAttribute("type") === "radio";
122
+ if (isCheckbox) {
123
+ const listElement = activeElement === null || activeElement === void 0 ? void 0 : activeElement.closest("li");
124
+ if (event.key === "ArrowDown" || event.key === "ArrowRight") {
125
+ if (listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling) {
126
+ (_b = listElement === null || listElement === void 0 ? void 0 : listElement.nextElementSibling.querySelector("input")) === null || _b === void 0 ? void 0 : _b.focus();
127
+ }
128
+ else {
129
+ // We are on the last checkbox we move to the top checkbox
130
+ this.handleFocusFirstDropdownCheckbox(activeElement);
131
+ }
132
+ }
133
+ else {
134
+ if (listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling) {
135
+ (_c = listElement === null || listElement === void 0 ? void 0 : listElement.previousElementSibling.querySelector("input")) === null || _c === void 0 ? void 0 : _c.focus();
136
+ }
137
+ else if (this.detailsRef.querySelector(`input[type="checkbox"]`) !==
138
+ activeElement) {
139
+ // We are on the top list checkbox but there is a select all checkbox as well
140
+ this.handleFocusFirstDropdownCheckbox(activeElement);
141
+ }
142
+ else {
143
+ // We are on the top checkbox, we need to move to the search
144
+ // or to the last checkbox
145
+ const search = index$1.getSearchInput(this.detailsRef);
146
+ if (search) {
147
+ index$1.delay(() => {
148
+ search.focus();
149
+ }, 100);
150
+ }
151
+ else {
152
+ const checkboxList = Array.from((_d = this.detailsRef) === null || _d === void 0 ? void 0 : _d.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
153
+ if (checkboxList.length) {
154
+ (_e = checkboxList.at(-1)) === null || _e === void 0 ? void 0 : _e.focus();
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ else {
161
+ // 2. If we are on the search, and press up we go back to summary and close
162
+ if (activeElement.getAttribute("type") === "search" &&
163
+ (event.key === "ArrowUp" || event.key === "ArrowLeft")) {
164
+ this.handleClose("close");
165
+ this.handleSummaryFocus();
166
+ }
167
+ else {
168
+ // 3. Otherwise, we need to move to the first checkbox
169
+ this.handleFocusFirstDropdownCheckbox(activeElement);
170
+ }
171
+ }
172
+ }
173
+ }
174
+ event.stopPropagation();
175
+ event.preventDefault();
176
+ }
177
+ else if (event.key === "ArrowDown" || event.key === "ArrowRight") {
178
+ // Open dropdown with arrows see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/#keyboardinteraction
179
+ this.handleAutoPlacement();
180
+ if (this.detailsRef) {
181
+ this.detailsRef.open = true;
182
+ }
183
+ this.handleOpenByKeyboardFocus();
184
+ event.stopPropagation();
185
+ event.preventDefault();
186
+ }
187
+ }
188
+ handleKeyboardPress(event) {
189
+ var _a;
190
+ if (event.key === "Escape" && this.detailsRef && ((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
191
+ this.handleClose("close");
192
+ this.handleSummaryFocus();
193
+ }
194
+ else if (event.key === "ArrowDown" ||
195
+ event.key === "ArrowUp" ||
196
+ event.key === "ArrowLeft" ||
197
+ event.key === "ArrowRight") {
198
+ this.handleArrowDownUp(event);
199
+ }
200
+ }
201
+ handleClose(event) {
202
+ if (this.detailsRef) {
203
+ if (event === "close") {
204
+ this.detailsRef.open = false;
205
+ this.handleSummaryFocus();
206
+ }
207
+ else if (this.detailsRef.open && (event === null || event === void 0 ? void 0 : event.relatedTarget)) {
208
+ const relatedTarget = event.relatedTarget;
209
+ if (!this.detailsRef.contains(relatedTarget)) {
210
+ this.detailsRef.open = false;
211
+ }
212
+ }
213
+ }
214
+ }
215
+ handleDocumentClose(event) {
216
+ var _a;
217
+ if (((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open) && !this.detailsRef.contains(event.target)) {
218
+ this.detailsRef.open = false;
219
+ }
220
+ }
221
+ handleSelect(value) {
222
+ var _a, _b;
223
+ if (value) {
224
+ if (this.multiple) {
225
+ if ((_a = this._values) === null || _a === void 0 ? void 0 : _a.includes(value)) {
226
+ this._values = (_b = this._values) === null || _b === void 0 ? void 0 : _b.filter((v) => v !== value);
227
+ }
228
+ else {
229
+ this._values = [...(this._values || []), value];
230
+ }
231
+ }
232
+ else {
233
+ this._values = [value];
234
+ this.handleClose("close");
235
+ }
236
+ this._internalChangeTimestamp = new Date().getTime();
237
+ }
238
+ }
239
+ handleSelectAll() {
240
+ var _a;
241
+ if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === this.amountOptions) {
242
+ this._values = [];
243
+ }
244
+ else {
245
+ this._values = this.options
246
+ ? this.options
247
+ .filter((option) => !option.isGroupTitle)
248
+ .map((option) => { var _a; return (_a = option.value) !== null && _a !== void 0 ? _a : ""; })
249
+ : [];
250
+ }
251
+ this._internalChangeTimestamp = new Date().getTime();
252
+ }
253
+ handleFocusFirstDropdownCheckbox(activeElement) {
254
+ if (this.detailsRef) {
255
+ const checkboxes = Array.from(this.detailsRef.querySelectorAll(`input[type="checkbox"],input[type="radio"]`));
256
+ if (checkboxes.length) {
257
+ const first = checkboxes.at(0);
258
+ const checkbox = first === activeElement && checkboxes.length > 1
259
+ ? checkboxes.at(1)
260
+ : first;
261
+ if (checkbox) {
262
+ index$1.delay(() => {
263
+ // Takes some time until element can be focused
264
+ checkbox.focus();
265
+ }, 100);
266
+ }
267
+ }
268
+ }
269
+ }
270
+ handleOpenByKeyboardFocus(onlySearch) {
271
+ if (this.detailsRef) {
272
+ // Focus search if possible
273
+ const search = index$1.getSearchInput(this.detailsRef);
274
+ if (search) {
275
+ index$1.delay(() => {
276
+ // Takes some time until element can be focused
277
+ search.focus();
278
+ }, 100);
279
+ }
280
+ else if (!onlySearch) {
281
+ // Focus first checkbox otherwise
282
+ this.handleFocusFirstDropdownCheckbox();
283
+ }
284
+ }
285
+ }
286
+ handleSearch(event) {
287
+ const filterText = event.target.value;
288
+ this._options =
289
+ !this.options || !filterText || filterText.length === 0
290
+ ? this.options
291
+ : this.options.filter((option) => !option.isGroupTitle &&
292
+ this.getOptionLabel(option)
293
+ .toLowerCase()
294
+ .includes(filterText.toLowerCase()));
295
+ }
296
+ handleClearAll() {
297
+ this._values = [];
298
+ this.handleSummaryFocus();
299
+ }
300
+ handleSummaryFocus() {
301
+ var _a, _b;
302
+ (_b = (_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.querySelector("summary")) === null || _b === void 0 ? void 0 : _b.focus();
303
+ }
304
+ /**
305
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
306
+ * @param element the ref for the component
307
+ * @param customElementSelector the custom element like `my-component`
308
+ */
309
+ enableAttributePassing(element, customElementSelector) {
310
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
311
+ if (element && parent) {
312
+ const attributes = parent.attributes;
313
+ for (let i = 0; i < attributes.length; i++) {
314
+ const attr = attributes.item(i);
315
+ if (attr &&
316
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
317
+ element.setAttribute(attr.name, attr.value);
318
+ parent.removeAttribute(attr.name);
319
+ }
320
+ if (attr && attr.name === "class") {
321
+ const isWebComponent = attr.value.includes("hydrated");
322
+ const value = attr.value.replace("hydrated", "").trim();
323
+ const currentClass = element.getAttribute("class");
324
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
325
+ if (isWebComponent) {
326
+ // Stencil is using this class for lazy loading component
327
+ parent.setAttribute("class", "hydrated");
328
+ }
329
+ else {
330
+ parent.removeAttribute(attr.name);
331
+ }
332
+ }
333
+ }
334
+ }
335
+ }
336
+ watch0Fn() {
337
+ var _a;
338
+ this._name = (_a = this.name) !== null && _a !== void 0 ? _a : this._id;
339
+ }
340
+ watch0() {
341
+ this.watch0Fn();
342
+ }
343
+ watch1Fn() {
344
+ if (this._id) {
345
+ const messageId = this._id + constants.DEFAULT_MESSAGE_ID_SUFFIX;
346
+ this._labelId = this._id + constants.DEFAULT_LABEL_ID_SUFFIX;
347
+ this._selectId = this._id + constants.DEFAULT_SELECT_ID_SUFFIX;
348
+ this._validMessageId = this._id + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
349
+ this._invalidMessageId = this._id + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
350
+ this._placeholderId = this._id + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
351
+ if (index$1.stringPropVisible(this.message, this.showMessage)) {
352
+ this.setDescById(messageId);
353
+ }
354
+ else {
355
+ this.setDescById();
356
+ }
357
+ }
358
+ }
359
+ watch1() {
360
+ this.watch1Fn();
361
+ }
362
+ watch2Fn() {
363
+ if (this.detailsRef) {
364
+ const summary = this.detailsRef.querySelector("summary");
365
+ if (summary) {
366
+ summary.setAttribute("aria-describedby", this._descByIds || "");
367
+ }
368
+ }
369
+ }
370
+ watch2() {
371
+ this.watch2Fn();
372
+ }
373
+ watch3Fn() {
374
+ if (this.detailsRef) {
375
+ const summary = this.detailsRef.querySelector("summary");
376
+ if (summary) {
377
+ summary.addEventListener("click", () => {
378
+ this.handleAutoPlacement();
379
+ this.handleOpenByKeyboardFocus(true);
380
+ });
381
+ summary.addEventListener("keydown", (event) => {
382
+ var _a;
383
+ if (event.code === "Space" && !((_a = this.detailsRef) === null || _a === void 0 ? void 0 : _a.open)) {
384
+ this.handleOpenByKeyboardFocus();
385
+ }
386
+ });
387
+ }
388
+ this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
389
+ }
390
+ }
391
+ watch3() {
392
+ this.watch3Fn();
393
+ }
394
+ watch4Fn() {
395
+ if (this.showNoResults !== undefined) {
396
+ this._hasNoOptions = this.showNoResults;
397
+ }
398
+ else if (this._options) {
399
+ this._hasNoOptions = this._options.length === 0;
400
+ }
401
+ }
402
+ watch4() {
403
+ this.watch4Fn();
404
+ }
405
+ watch5Fn() {
406
+ this.selectAllEnabled = Boolean(this.multiple && (this.showSelectAll || this.amountOptions > 5));
407
+ }
408
+ watch5() {
409
+ this.watch5Fn();
410
+ }
411
+ watch6Fn() {
412
+ this.searchEnabled = this.showSearch || this.amountOptions > 9;
413
+ }
414
+ watch6() {
415
+ this.watch6Fn();
416
+ }
417
+ watch7Fn() {
418
+ var _a;
419
+ if (this.onSelect &&
420
+ (this._externalChangeTimestamp || this._internalChangeTimestamp)) {
421
+ const onlyInternalChange = this._internalChangeTimestamp && !this._externalChangeTimestamp;
422
+ const bothChangeButInternalNew = this._internalChangeTimestamp &&
423
+ this._externalChangeTimestamp &&
424
+ this._internalChangeTimestamp > this._externalChangeTimestamp;
425
+ if (onlyInternalChange || bothChangeButInternalNew) {
426
+ this.onSelect.emit((_a = this._values) !== null && _a !== void 0 ? _a : []);
427
+ }
428
+ }
429
+ }
430
+ watch7() {
431
+ this.watch7Fn();
432
+ }
433
+ watch8Fn() {
434
+ var _a;
435
+ if (this.values && Array.isArray(this.values)) {
436
+ this._values = (_a = this.values) !== null && _a !== void 0 ? _a : [];
437
+ this._externalChangeTimestamp = new Date().getTime();
438
+ }
439
+ }
440
+ watch8() {
441
+ this.watch8Fn();
442
+ }
443
+ watch9Fn() {
444
+ var _a, _b, _c, _d, _e, _f;
445
+ if (this.selectRef) {
446
+ this.selectRef.value = this.getNativeSelectValue();
447
+ }
448
+ /* For a11y reasons we need to map the correct message with the select */
449
+ if (!((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validity.valid) || this.validation === "invalid") {
450
+ this._validity = "invalid";
451
+ this.setDescById(this._invalidMessageId);
452
+ if (index$1.hasVoiceOver()) {
453
+ this._voiceOverFallback =
454
+ (_d = (_b = this.invalidMessage) !== null && _b !== void 0 ? _b : (_c = this.selectRef) === null || _c === void 0 ? void 0 : _c.validationMessage) !== null && _d !== void 0 ? _d : constants.DEFAULT_INVALID_MESSAGE;
455
+ index$1.delay(() => (this._voiceOverFallback = ""), 1000);
456
+ }
457
+ }
458
+ else if (this.validation === "valid" ||
459
+ (((_e = this.selectRef) === null || _e === void 0 ? void 0 : _e.validity.valid) && this.required)) {
460
+ this._validity = "valid";
461
+ this.setDescById(this._validMessageId);
462
+ if (index$1.hasVoiceOver()) {
463
+ this._voiceOverFallback = (_f = this.validMessage) !== null && _f !== void 0 ? _f : constants.DEFAULT_VALID_MESSAGE;
464
+ index$1.delay(() => (this._voiceOverFallback = ""), 1000);
465
+ }
466
+ }
467
+ else if (this.message) {
468
+ this._validity = "no-validation";
469
+ this.setDescById(this._messageId);
470
+ }
471
+ else {
472
+ this._validity = "no-validation";
473
+ this.setDescById(this._placeholderId);
474
+ }
475
+ }
476
+ watch9() {
477
+ this.watch9Fn();
478
+ }
479
+ watch10Fn() {
480
+ this._validity = this.validation;
481
+ }
482
+ watch10() {
483
+ this.watch10Fn();
484
+ }
485
+ watch11Fn() {
486
+ var _a, _b;
487
+ if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
488
+ this.selectAllChecked = false;
489
+ this.selectAllIndeterminate = false;
490
+ }
491
+ else if (((_b = this._values) === null || _b === void 0 ? void 0 : _b.length) === this.amountOptions) {
492
+ this.selectAllIndeterminate = false;
493
+ this.selectAllChecked = true;
494
+ }
495
+ else if (this._values) {
496
+ this.selectAllIndeterminate = true;
497
+ }
498
+ }
499
+ watch11() {
500
+ this.watch11Fn();
501
+ }
502
+ watch12Fn() {
503
+ var _a, _b;
504
+ this._options = this.options;
505
+ this.amountOptions =
506
+ (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
507
+ }
508
+ watch12() {
509
+ this.watch12Fn();
510
+ }
511
+ watch13Fn() {
512
+ var _a, _b;
513
+ if ((_a = this._options) === null || _a === void 0 ? void 0 : _a.length) {
514
+ this._selectedOptions = (_b = this._options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
515
+ var _a, _b;
516
+ if (!option.value || !((_a = this._values) === null || _a === void 0 ? void 0 : _a["includes"])) {
517
+ return false;
518
+ }
519
+ return !option.isGroupTitle && ((_b = this._values) === null || _b === void 0 ? void 0 : _b.includes(option.value));
520
+ });
521
+ }
522
+ }
523
+ watch13() {
524
+ this.watch13Fn();
525
+ }
526
+ watch14Fn() {
527
+ var _a, _b, _c;
528
+ if ((_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) {
529
+ if (this.selectedType === "amount") {
530
+ this._selectedLabels = this.amountText
531
+ ? this.amountText
532
+ : `${(_b = this._selectedOptions) === null || _b === void 0 ? void 0 : _b.length} ${constants.DEFAULT_SELECTED}`;
533
+ }
534
+ else {
535
+ this._selectedLabels = (_c = this._selectedOptions) === null || _c === void 0 ? void 0 : _c.map((option) => this.getOptionLabel(option)).join(", ");
536
+ }
537
+ }
538
+ else {
539
+ this._selectedLabels = "";
540
+ }
541
+ }
542
+ watch14() {
543
+ this.watch14Fn();
544
+ }
545
+ watch15Fn() {
546
+ var _a, _b;
547
+ if (this.onAmountChange) {
548
+ this.onAmountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
549
+ }
550
+ }
551
+ watch15() {
552
+ this.watch15Fn();
553
+ }
554
+ watch16Fn() {
555
+ if (this.selectAllRef) {
556
+ this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
557
+ }
558
+ }
559
+ watch16() {
560
+ this.watch16Fn();
561
+ }
562
+ componentDidLoad() {
563
+ var _a;
564
+ this.enableAttributePassing(this._ref, "db-custom-select");
565
+ const mId = (_a = this.id) !== null && _a !== void 0 ? _a : `custom-select-${index$1.uuid()}`;
566
+ this._id = mId;
567
+ this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
568
+ this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
569
+ this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
570
+ this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
571
+ this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
572
+ this._summaryId = mId + "-summary";
573
+ this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
574
+ this._selectedLabelsId = mId + "-selected-labels";
575
+ this._infoTextId = mId + "-info";
576
+ if (document) {
577
+ document.addEventListener("click", this.handleDocumentClose);
578
+ }
579
+ this.watch0Fn();
580
+ this.watch1Fn();
581
+ this.watch2Fn();
582
+ this.watch3Fn();
583
+ this.watch4Fn();
584
+ this.watch5Fn();
585
+ this.watch6Fn();
586
+ this.watch7Fn();
587
+ this.watch8Fn();
588
+ this.watch9Fn();
589
+ this.watch10Fn();
590
+ this.watch11Fn();
591
+ this.watch12Fn();
592
+ this.watch13Fn();
593
+ this.watch14Fn();
594
+ this.watch15Fn();
595
+ this.watch16Fn();
596
+ }
597
+ disconnectedCallback() {
598
+ if (document) {
599
+ document.removeEventListener("click", this.handleDocumentClose);
600
+ }
601
+ }
602
+ render() {
603
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
604
+ return (index.h("div", { key: '7bcd0b065dd492b5e1e00c4b22948143d947552a', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
605
+ this._ref = el;
606
+ }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.width, "data-variant": this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-hide-icon": index$1.getHideProp(this.showIcon) }, index.h("label", { key: '1ddb2c43327a9f046728c57d3da93ef4872f9e3c', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: 'c69f10fe071860ff5478aedc614565a6387d5d13', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
607
+ this.selectRef = el;
608
+ }, form: this.form, disabled: this.disabled, multiple: this.multiple, required: this.required, onChange: () => { } }, (_b = this._options) === null || _b === void 0 ? void 0 : _b.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option)))))), index.h("details", { key: 'd3229a4f6bda6ba5f1c64d3e60c48fd35aec95f5', ref: (el) => {
609
+ this.detailsRef = el;
610
+ }, open: this.open, "aria-disabled": this.disabled, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: 'd6c5cfde8195408d10dd586242d27e676be3f9ab' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-labelledby": this._labelId }, ((_c = this._selectedLabels) === null || _c === void 0 ? void 0 : _c.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_d = this._selectedOptions) === null || _d === void 0 ? void 0 : _d.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(index$1), onRemove: (event) => {
611
+ this.handleTagRemove(option, event);
612
+ }, key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", showLabel: false, label: (_e = this.searchLabel) !== null && _e !== void 0 ? _e : constants.DEFAULT_LABEL, placeholder: (_f = this.searchPlaceholder) !== null && _f !== void 0 ? _f : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
613
+ ? this._infoTextId
614
+ : undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-infotext", { id: this._infoTextId, icon: this._hasNoOptions ? undefined : "circular_arrows", semantic: this._hasNoOptions ? "warning" : "informational" }, (_g = (this._hasNoOptions
615
+ ? this.noResultsText
616
+ : this.loadingText)) !== null && _g !== void 0 ? _g : constants.DEFAULT_MESSAGE)) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
617
+ this.selectAllRef = el;
618
+ }, form: this._id, checked: this.selectAllChecked, onChange: () => this.handleSelectAll() }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: this.multiple, label: (_h = this.label) !== null && _h !== void 0 ? _h : constants.DEFAULT_LABEL }, (_j = this._options) === null || _j === void 0 ? void 0 : _j.map((option) => (index.h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._name, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => {
619
+ this.handleSelect(option.value);
620
+ }, key: undefined }, !option.isGroupTitle
621
+ ? this.getOptionLabel(option)
622
+ : null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", onClick: () => {
623
+ this.handleClose("close");
624
+ } }, (_k = this.mobileCloseButtonText) !== null && _k !== void 0 ? _k : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_l = this.showClearSelection) !== null && _l !== void 0 ? _l : true) && ((_m = this._values) === null || _m === void 0 ? void 0 : _m.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, onClick: () => this.handleClearAll() }, this.clearSelectionLabel, index.h("db-tooltip", { placement: "top" }, this.clearSelectionLabel))) : null, index.h("span", { key: '4d15f0a5d709cb329a3c18b907b5e9cf952a6252', "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_o = this.placeholder) !== null && _o !== void 0 ? _o : this.label), this.message ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, index.h("db-infotext", { key: '8e63397ef220c396c55d7d228fbc7e0ee7664688', size: "small", semantic: "successful", id: this._validMessageId }, (_p = this.validMessage) !== null && _p !== void 0 ? _p : constants.DEFAULT_VALID_MESSAGE), index.h("db-infotext", { key: 'a8bc6cbd7a61e70f9956b1c47b175fd4b5d25004', size: "small", semantic: "critical", id: this._invalidMessageId }, (_q = this.invalidMessage) !== null && _q !== void 0 ? _q : (((_r = this.selectRef) === null || _r === void 0 ? void 0 : _r.validationMessage) || constants.DEFAULT_INVALID_MESSAGE)), index.h("span", { key: '28db5cbc1feca0e5738148bb87e0df78d596e975', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
625
+ }
626
+ static get watchers() { return {
627
+ "name": ["watch0"],
628
+ "_id": ["watch0", "watch1"],
629
+ "detailsRef": ["watch2", "watch3"],
630
+ "_descByIds": ["watch2"],
631
+ "showNoResults": ["watch4"],
632
+ "_options": ["watch4", "watch13"],
633
+ "showSelectAll": ["watch5"],
634
+ "amountOptions": ["watch5", "watch6", "watch11"],
635
+ "multiple": ["watch5"],
636
+ "showSearch": ["watch6"],
637
+ "_externalChangeTimestamp": ["watch7"],
638
+ "_internalChangeTimestamp": ["watch7"],
639
+ "onSelect": ["watch7"],
640
+ "values": ["watch8"],
641
+ "_values": ["watch9", "watch11", "watch13"],
642
+ "validation": ["watch10"],
643
+ "options": ["watch12"],
644
+ "_selectedOptions": ["watch14", "watch15"],
645
+ "selectedType": ["watch14"],
646
+ "amountText": ["watch14"],
647
+ "selectAllIndeterminate": ["watch16"],
648
+ "selectAllRef": ["watch16"]
649
+ }; }
650
+ };
651
+
652
+ exports.db_custom_select = DBCustomSelect;
653
+ //# sourceMappingURL=db-custom-select.entry.cjs.js.map
654
+
655
+ //# sourceMappingURL=db-custom-select.cjs.entry.js.map