@db-ux/wc-core-components 4.10.2 → 4.11.1

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 (391) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/bundle/db-accordion-item.js +1 -1
  3. package/bundle/db-accordion.js +1 -1
  4. package/bundle/db-badge.js +1 -1
  5. package/bundle/db-brand.js +1 -1
  6. package/bundle/db-button.js +1 -1
  7. package/bundle/db-card.js +1 -1
  8. package/bundle/db-checkbox.js +1 -1
  9. package/bundle/db-custom-button.js +1 -1
  10. package/bundle/db-custom-select-dropdown.js +1 -1
  11. package/bundle/db-custom-select-form-field.js +1 -1
  12. package/bundle/db-custom-select-list-item.js +1 -1
  13. package/bundle/db-custom-select-list.js +1 -1
  14. package/bundle/db-custom-select.js +1 -1
  15. package/bundle/db-divider.js +1 -1
  16. package/bundle/db-drawer.js +1 -1
  17. package/bundle/db-header.js +1 -1
  18. package/bundle/db-icon.js +1 -1
  19. package/bundle/db-infotext.js +1 -1
  20. package/bundle/db-input.js +1 -1
  21. package/bundle/db-link.js +1 -1
  22. package/bundle/db-navigation-item.js +1 -1
  23. package/bundle/db-navigation.js +1 -1
  24. package/bundle/db-notification.js +1 -1
  25. package/bundle/db-page.js +1 -1
  26. package/bundle/db-popover.js +1 -1
  27. package/bundle/db-radio.js +1 -1
  28. package/bundle/db-section.js +1 -1
  29. package/bundle/db-select.js +1 -1
  30. package/bundle/db-stack.js +1 -1
  31. package/bundle/db-switch.js +1 -1
  32. package/bundle/db-tab-item.js +1 -1
  33. package/bundle/db-tab-list.js +1 -1
  34. package/bundle/db-tab-panel.js +1 -1
  35. package/bundle/db-table-body.d.ts +11 -0
  36. package/bundle/db-table-body.js +1 -0
  37. package/bundle/db-table-caption.d.ts +11 -0
  38. package/bundle/db-table-caption.js +1 -0
  39. package/bundle/db-table-data-cell.d.ts +11 -0
  40. package/bundle/db-table-data-cell.js +1 -0
  41. package/bundle/db-table-footer.d.ts +11 -0
  42. package/bundle/db-table-footer.js +1 -0
  43. package/bundle/db-table-head.d.ts +11 -0
  44. package/bundle/db-table-head.js +1 -0
  45. package/bundle/db-table-header-cell.d.ts +11 -0
  46. package/bundle/db-table-header-cell.js +1 -0
  47. package/bundle/db-table-row.d.ts +11 -0
  48. package/bundle/db-table-row.js +1 -0
  49. package/bundle/db-table.d.ts +11 -0
  50. package/bundle/db-table.js +1 -0
  51. package/bundle/db-tabs.js +1 -1
  52. package/bundle/db-tag.js +1 -1
  53. package/bundle/db-textarea.js +1 -1
  54. package/bundle/db-tooltip.js +1 -1
  55. package/bundle/index.js +1 -1
  56. package/bundle/p-3Da4lo5j.js +1 -0
  57. package/bundle/p-BEcb3EOO.js +1 -0
  58. package/bundle/p-BEolc6Da.js +1 -0
  59. package/bundle/p-BekmqY3B.js +1 -0
  60. package/bundle/p-BmRO4X-P.js +1 -0
  61. package/bundle/p-BrQIYm5N.js +1 -0
  62. package/bundle/p-BxZ0zFXf.js +1 -0
  63. package/bundle/p-C2viXF7U.js +1 -0
  64. package/bundle/p-C4iD-won.js +1 -0
  65. package/bundle/p-CHg_VPD9.js +1 -0
  66. package/bundle/p-CYYSsu3p.js +1 -0
  67. package/bundle/p-CZ9SsTOA.js +1 -0
  68. package/bundle/p-CewqZGHg.js +1 -0
  69. package/bundle/p-CotiEHZi.js +1 -0
  70. package/bundle/p-D1orcIJf.js +1 -0
  71. package/{dist/db-ux/p-D5mInaY7.js → bundle/p-D6L0n3gO.js} +1 -1
  72. package/bundle/p-D9RSX1St.js +1 -0
  73. package/bundle/p-DJTpgiBy.js +1 -0
  74. package/bundle/p-DbgzEek1.js +1 -0
  75. package/bundle/p-DqNXsduK.js +1 -0
  76. package/bundle/p-Duacd-NX.js +1 -0
  77. package/bundle/p-k5Hci0ok.js +1 -0
  78. package/bundle/p-mk64Fltq.js +1 -0
  79. package/dist/cjs/db-accordion-item.cjs.entry.js +48 -11
  80. package/dist/cjs/db-accordion.cjs.entry.js +45 -8
  81. package/dist/cjs/db-badge.cjs.entry.js +45 -8
  82. package/dist/cjs/db-brand.cjs.entry.js +38 -7
  83. package/dist/cjs/db-button.cjs.entry.js +40 -8
  84. package/dist/cjs/db-card.cjs.entry.js +38 -7
  85. package/dist/cjs/db-checkbox.cjs.entry.js +48 -14
  86. package/dist/cjs/db-custom-button.cjs.entry.js +40 -8
  87. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +197 -37
  88. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +38 -7
  89. package/dist/cjs/db-custom-select.cjs.entry.js +65 -31
  90. package/dist/cjs/db-divider.cjs.entry.js +37 -6
  91. package/dist/cjs/db-drawer.cjs.entry.js +47 -10
  92. package/dist/cjs/db-header.cjs.entry.js +45 -8
  93. package/dist/cjs/db-icon.cjs.entry.js +38 -7
  94. package/dist/cjs/db-infotext.cjs.entry.js +38 -7
  95. package/dist/cjs/db-link_4.cjs.entry.js +294 -0
  96. package/dist/cjs/db-navigation-item.cjs.entry.js +49 -12
  97. package/dist/cjs/db-navigation.cjs.entry.js +38 -7
  98. package/dist/cjs/db-notification.cjs.entry.js +38 -7
  99. package/dist/cjs/db-page.cjs.entry.js +50 -15
  100. package/dist/cjs/db-popover.cjs.entry.js +46 -9
  101. package/dist/cjs/db-radio.cjs.entry.js +45 -11
  102. package/dist/cjs/db-section.cjs.entry.js +38 -7
  103. package/dist/cjs/db-select.cjs.entry.js +49 -15
  104. package/dist/cjs/db-stack.cjs.entry.js +38 -7
  105. package/dist/cjs/db-switch.cjs.entry.js +48 -14
  106. package/dist/cjs/db-tab-item_3.cjs.entry.js +123 -23
  107. package/dist/cjs/db-table-body_3.cjs.entry.js +235 -0
  108. package/dist/cjs/{db-link.cjs.entry.js → db-table-caption.cjs.entry.js} +41 -11
  109. package/dist/cjs/db-table.cjs.entry.js +189 -0
  110. package/dist/cjs/db-tabs.cjs.entry.js +44 -10
  111. package/dist/cjs/db-textarea.cjs.entry.js +48 -13
  112. package/dist/cjs/db-tooltip.cjs.entry.js +147 -23
  113. package/dist/cjs/db-ux.cjs.js +2 -2
  114. package/dist/cjs/{document-click-listener-B2-xKJv3.js → document-click-listener-DdNXbErU.js} +1 -1
  115. package/dist/cjs/{document-scroll-listener-ChQ7XZRk.js → document-scroll-listener-CvAZ6uPr.js} +1 -1
  116. package/dist/cjs/{form-components-_ncB_U2D.js → form-components-CmQlkARp.js} +1 -1
  117. package/dist/cjs/{index-HN8AqU2e.js → index-C313bRqJ.js} +21 -0
  118. package/dist/cjs/{index-2_9ESkQu.js → index-spuu3sXz.js} +13 -8
  119. package/dist/cjs/index.cjs.js +23 -4
  120. package/dist/cjs/loader.cjs.js +2 -2
  121. package/dist/collection/collection-manifest.json +8 -0
  122. package/dist/collection/components/accordion/accordion.js +45 -7
  123. package/dist/collection/components/accordion-item/accordion-item.js +48 -10
  124. package/dist/collection/components/badge/badge.js +45 -7
  125. package/dist/collection/components/brand/brand.js +44 -6
  126. package/dist/collection/components/button/button.js +48 -9
  127. package/dist/collection/components/card/card.js +43 -5
  128. package/dist/collection/components/checkbox/checkbox.js +48 -13
  129. package/dist/collection/components/custom-button/custom-button.js +48 -9
  130. package/dist/collection/components/custom-select/custom-select.js +64 -29
  131. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +41 -5
  132. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +43 -5
  133. package/dist/collection/components/custom-select-list/custom-select-list.js +43 -5
  134. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +39 -7
  135. package/dist/collection/components/divider/divider.js +42 -4
  136. package/dist/collection/components/drawer/drawer.js +47 -9
  137. package/dist/collection/components/header/header.js +45 -7
  138. package/dist/collection/components/icon/icon.js +44 -6
  139. package/dist/collection/components/infotext/infotext.js +44 -6
  140. package/dist/collection/components/input/input.js +56 -19
  141. package/dist/collection/components/link/link.js +43 -5
  142. package/dist/collection/components/navigation/navigation.js +43 -5
  143. package/dist/collection/components/navigation-item/navigation-item.js +50 -12
  144. package/dist/collection/components/notification/notification.js +44 -6
  145. package/dist/collection/components/page/page.js +50 -14
  146. package/dist/collection/components/popover/popover.js +45 -7
  147. package/dist/collection/components/radio/radio.js +44 -9
  148. package/dist/collection/components/section/section.js +43 -5
  149. package/dist/collection/components/select/select.js +50 -15
  150. package/dist/collection/components/stack/stack.js +43 -5
  151. package/dist/collection/components/switch/switch.js +51 -16
  152. package/dist/collection/components/tab-item/tab-item.js +51 -15
  153. package/dist/collection/components/tab-list/tab-list.js +43 -5
  154. package/dist/collection/components/tab-panel/tab-panel.js +48 -5
  155. package/dist/collection/components/table/examples/data.js +258 -0
  156. package/dist/collection/components/table/index.js +2 -0
  157. package/dist/collection/components/table/model.js +6 -0
  158. package/dist/collection/components/table/table.js +510 -0
  159. package/dist/collection/components/table-body/index.js +2 -0
  160. package/dist/collection/components/table-body/model.js +1 -0
  161. package/dist/collection/components/table-body/table-body.js +149 -0
  162. package/dist/collection/components/table-caption/index.js +2 -0
  163. package/dist/collection/components/table-caption/model.js +1 -0
  164. package/dist/collection/components/table-caption/table-caption.js +154 -0
  165. package/dist/collection/components/table-data-cell/index.js +2 -0
  166. package/dist/collection/components/table-data-cell/model.js +1 -0
  167. package/dist/collection/components/table-data-cell/table-data-cell.js +303 -0
  168. package/dist/collection/components/table-footer/index.js +2 -0
  169. package/dist/collection/components/table-footer/model.js +1 -0
  170. package/dist/collection/components/table-footer/table-footer.js +149 -0
  171. package/dist/collection/components/table-head/index.js +2 -0
  172. package/dist/collection/components/table-head/model.js +1 -0
  173. package/dist/collection/components/table-head/table-head.js +185 -0
  174. package/dist/collection/components/table-header-cell/index.js +2 -0
  175. package/dist/collection/components/table-header-cell/model.js +1 -0
  176. package/dist/collection/components/table-header-cell/table-header-cell.js +381 -0
  177. package/dist/collection/components/table-row/index.js +2 -0
  178. package/dist/collection/components/table-row/model.js +1 -0
  179. package/dist/collection/components/table-row/table-row.js +207 -0
  180. package/dist/collection/components/tabs/tabs.js +44 -9
  181. package/dist/collection/components/tag/tag.js +44 -6
  182. package/dist/collection/components/textarea/textarea.js +48 -12
  183. package/dist/collection/components/tooltip/tooltip.js +150 -21
  184. package/dist/collection/index.js +16 -0
  185. package/dist/collection/shared/model.js +1 -1
  186. package/dist/collection/utils/index.js +13 -8
  187. package/dist/custom-elements.json +8189 -4307
  188. package/dist/db-ux/db-ux.esm.js +1 -1
  189. package/dist/db-ux/index.esm.js +1 -1
  190. package/dist/db-ux/p-0123ee1b.entry.js +1 -0
  191. package/dist/db-ux/p-090b1797.entry.js +1 -0
  192. package/dist/db-ux/p-0e17c5a0.entry.js +1 -0
  193. package/dist/db-ux/p-194e851c.entry.js +1 -0
  194. package/dist/db-ux/p-281f5e3e.entry.js +1 -0
  195. package/dist/db-ux/p-2ae377e6.entry.js +1 -0
  196. package/dist/db-ux/p-2cf4345f.entry.js +1 -0
  197. package/dist/db-ux/p-2e6c8304.entry.js +1 -0
  198. package/dist/db-ux/p-335391d4.entry.js +1 -0
  199. package/dist/db-ux/p-34235204.entry.js +1 -0
  200. package/dist/db-ux/p-3569bb3c.entry.js +1 -0
  201. package/dist/db-ux/p-398f9165.entry.js +1 -0
  202. package/dist/db-ux/p-5070470f.entry.js +1 -0
  203. package/dist/db-ux/p-5e08712d.entry.js +1 -0
  204. package/dist/db-ux/p-63d98f9d.entry.js +1 -0
  205. package/dist/db-ux/p-6aa92091.entry.js +1 -0
  206. package/dist/db-ux/p-78b7e6f6.entry.js +1 -0
  207. package/dist/db-ux/p-7ca4bc82.entry.js +1 -0
  208. package/dist/db-ux/p-8f989150.entry.js +1 -0
  209. package/dist/db-ux/p-8fa7a578.entry.js +1 -0
  210. package/dist/db-ux/p-91052c75.entry.js +1 -0
  211. package/dist/db-ux/p-9ccd42b1.entry.js +1 -0
  212. package/dist/db-ux/p-BihrW11j.js +1 -0
  213. package/dist/db-ux/p-BlbKvvUv.js +2 -0
  214. package/{bundle/p-BLyvxOmU.js → dist/db-ux/p-BtImZ8Nt.js} +1 -1
  215. package/dist/db-ux/p-OOIf-5XP.js +1 -0
  216. package/dist/db-ux/p-a4d9f6e2.entry.js +1 -0
  217. package/dist/db-ux/p-af248e57.entry.js +1 -0
  218. package/dist/db-ux/p-ba82a0b0.entry.js +1 -0
  219. package/dist/db-ux/p-c2ce6ecd.entry.js +1 -0
  220. package/dist/db-ux/p-d7b5748d.entry.js +1 -0
  221. package/dist/db-ux/p-dfbbe502.entry.js +1 -0
  222. package/dist/db-ux/p-e7a400a2.entry.js +1 -0
  223. package/dist/db-ux/p-ef1aa878.entry.js +1 -0
  224. package/dist/db-ux/p-f1daaefa.entry.js +1 -0
  225. package/dist/db-ux/p-f6312d2c.entry.js +1 -0
  226. package/dist/db-ux/p-fbf09569.entry.js +1 -0
  227. package/dist/db-ux/p-ff11c071.entry.js +1 -0
  228. package/dist/db-ux/p-fumiz06Y.js +1 -0
  229. package/dist/esm/db-accordion-item.entry.js +48 -11
  230. package/dist/esm/db-accordion.entry.js +45 -8
  231. package/dist/esm/db-badge.entry.js +45 -8
  232. package/dist/esm/db-brand.entry.js +38 -7
  233. package/dist/esm/db-button.entry.js +40 -8
  234. package/dist/esm/db-card.entry.js +38 -7
  235. package/dist/esm/db-checkbox.entry.js +48 -14
  236. package/dist/esm/db-custom-button.entry.js +40 -8
  237. package/dist/esm/db-custom-select-dropdown_5.entry.js +197 -37
  238. package/dist/esm/db-custom-select-form-field.entry.js +38 -7
  239. package/dist/esm/db-custom-select.entry.js +65 -31
  240. package/dist/esm/db-divider.entry.js +37 -6
  241. package/dist/esm/db-drawer.entry.js +47 -10
  242. package/dist/esm/db-header.entry.js +45 -8
  243. package/dist/esm/db-icon.entry.js +38 -7
  244. package/dist/esm/db-infotext.entry.js +38 -7
  245. package/dist/esm/db-link_4.entry.js +289 -0
  246. package/dist/esm/db-navigation-item.entry.js +49 -12
  247. package/dist/esm/db-navigation.entry.js +38 -7
  248. package/dist/esm/db-notification.entry.js +38 -7
  249. package/dist/esm/db-page.entry.js +50 -15
  250. package/dist/esm/db-popover.entry.js +46 -9
  251. package/dist/esm/db-radio.entry.js +45 -11
  252. package/dist/esm/db-section.entry.js +38 -7
  253. package/dist/esm/db-select.entry.js +49 -15
  254. package/dist/esm/db-stack.entry.js +38 -7
  255. package/dist/esm/db-switch.entry.js +48 -14
  256. package/dist/esm/db-tab-item_3.entry.js +123 -23
  257. package/dist/esm/db-table-body_3.entry.js +231 -0
  258. package/dist/esm/{db-link.entry.js → db-table-caption.entry.js} +41 -11
  259. package/dist/esm/db-table.entry.js +187 -0
  260. package/dist/esm/db-tabs.entry.js +44 -10
  261. package/dist/esm/db-textarea.entry.js +48 -13
  262. package/dist/esm/db-tooltip.entry.js +147 -23
  263. package/dist/esm/db-ux.js +3 -3
  264. package/dist/esm/{document-click-listener-D7W_VE5O.js → document-click-listener-9wJfRcvz.js} +1 -1
  265. package/dist/esm/{document-scroll-listener-DOBe3Oa9.js → document-scroll-listener-4F0ZAg9p.js} +1 -1
  266. package/dist/esm/{form-components-D6LQfJvq.js → form-components-ZV7IN0oG.js} +1 -1
  267. package/dist/esm/{index-BGaQ0Bx8.js → index-BlbKvvUv.js} +21 -0
  268. package/dist/esm/{index-xkoBSP8R.js → index-fumiz06Y.js} +13 -8
  269. package/dist/esm/index.js +16 -5
  270. package/dist/esm/loader.js +3 -3
  271. package/dist/types/components/accordion/accordion.d.ts +3 -0
  272. package/dist/types/components/accordion-item/accordion-item.d.ts +3 -0
  273. package/dist/types/components/badge/badge.d.ts +3 -0
  274. package/dist/types/components/brand/brand.d.ts +3 -0
  275. package/dist/types/components/button/button.d.ts +3 -0
  276. package/dist/types/components/card/card.d.ts +3 -0
  277. package/dist/types/components/checkbox/checkbox.d.ts +2 -0
  278. package/dist/types/components/custom-button/custom-button.d.ts +3 -0
  279. package/dist/types/components/custom-select/custom-select.d.ts +2 -0
  280. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +3 -0
  281. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +3 -0
  282. package/dist/types/components/custom-select-list/custom-select-list.d.ts +3 -0
  283. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +3 -0
  284. package/dist/types/components/divider/divider.d.ts +3 -0
  285. package/dist/types/components/drawer/drawer.d.ts +3 -0
  286. package/dist/types/components/header/header.d.ts +3 -0
  287. package/dist/types/components/icon/icon.d.ts +3 -0
  288. package/dist/types/components/infotext/infotext.d.ts +3 -0
  289. package/dist/types/components/input/input.d.ts +2 -0
  290. package/dist/types/components/link/link.d.ts +3 -0
  291. package/dist/types/components/navigation/navigation.d.ts +3 -0
  292. package/dist/types/components/navigation-item/navigation-item.d.ts +3 -0
  293. package/dist/types/components/notification/notification.d.ts +3 -0
  294. package/dist/types/components/page/page.d.ts +2 -0
  295. package/dist/types/components/popover/popover.d.ts +3 -0
  296. package/dist/types/components/radio/radio.d.ts +2 -0
  297. package/dist/types/components/section/section.d.ts +3 -0
  298. package/dist/types/components/select/select.d.ts +2 -0
  299. package/dist/types/components/stack/stack.d.ts +3 -0
  300. package/dist/types/components/switch/switch.d.ts +2 -0
  301. package/dist/types/components/tab-item/tab-item.d.ts +2 -0
  302. package/dist/types/components/tab-list/tab-list.d.ts +3 -0
  303. package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
  304. package/dist/types/components/table/examples/data.d.ts +9 -0
  305. package/dist/types/components/table/index.d.ts +2 -0
  306. package/dist/types/components/table/model.d.ts +74 -0
  307. package/dist/types/components/table/table.d.ts +41 -0
  308. package/dist/types/components/table-body/index.d.ts +2 -0
  309. package/dist/types/components/table-body/model.d.ts +8 -0
  310. package/dist/types/components/table-body/table-body.d.ts +20 -0
  311. package/dist/types/components/table-caption/index.d.ts +2 -0
  312. package/dist/types/components/table-caption/model.d.ts +5 -0
  313. package/dist/types/components/table-caption/table-caption.d.ts +22 -0
  314. package/dist/types/components/table-data-cell/index.d.ts +2 -0
  315. package/dist/types/components/table-data-cell/model.d.ts +5 -0
  316. package/dist/types/components/table-data-cell/table-data-cell.d.ts +26 -0
  317. package/dist/types/components/table-footer/index.d.ts +2 -0
  318. package/dist/types/components/table-footer/model.d.ts +8 -0
  319. package/dist/types/components/table-footer/table-footer.d.ts +20 -0
  320. package/dist/types/components/table-head/index.d.ts +2 -0
  321. package/dist/types/components/table-head/model.d.ts +10 -0
  322. package/dist/types/components/table-head/table-head.d.ts +62 -0
  323. package/dist/types/components/table-header-cell/index.d.ts +2 -0
  324. package/dist/types/components/table-header-cell/model.d.ts +24 -0
  325. package/dist/types/components/table-header-cell/table-header-cell.d.ts +29 -0
  326. package/dist/types/components/table-row/index.d.ts +2 -0
  327. package/dist/types/components/table-row/model.d.ts +30 -0
  328. package/dist/types/components/table-row/table-row.d.ts +24 -0
  329. package/dist/types/components/tabs/tabs.d.ts +2 -0
  330. package/dist/types/components/tag/tag.d.ts +3 -0
  331. package/dist/types/components/textarea/textarea.d.ts +2 -0
  332. package/dist/types/components/tooltip/model.d.ts +9 -0
  333. package/dist/types/components/tooltip/tooltip.d.ts +8 -0
  334. package/dist/types/components.d.ts +278 -0
  335. package/dist/types/index.d.ts +16 -0
  336. package/dist/types/shared/figma.d.ts +70 -18
  337. package/dist/types/shared/model.d.ts +44 -2
  338. package/dist/types/utils/index.d.ts +9 -4
  339. package/dist/vscode.html-custom-data.json +400 -2
  340. package/dist/web-types.json +960 -177
  341. package/package.json +6 -6
  342. package/bundle/p--qzKkpB9.js +0 -1
  343. package/bundle/p-9fgrfYbf.js +0 -1
  344. package/bundle/p-B5E_0kTi.js +0 -1
  345. package/bundle/p-BChikMGc.js +0 -1
  346. package/bundle/p-BGVLpaFn.js +0 -1
  347. package/bundle/p-BPxBqqlc.js +0 -1
  348. package/bundle/p-C6_y8Tot.js +0 -1
  349. package/bundle/p-CKfRqzsn.js +0 -1
  350. package/bundle/p-CnYMRGX1.js +0 -1
  351. package/bundle/p-CwzdaLE3.js +0 -1
  352. package/bundle/p-CyxQfbGC.js +0 -1
  353. package/bundle/p-DisehhY5.js +0 -1
  354. package/bundle/p-DstwggLZ.js +0 -1
  355. package/bundle/p-LbPYp2oP.js +0 -1
  356. package/bundle/p-suxDlmXD.js +0 -1
  357. package/dist/db-ux/p-0f524f6c.entry.js +0 -1
  358. package/dist/db-ux/p-11211f1a.entry.js +0 -1
  359. package/dist/db-ux/p-1a4881de.entry.js +0 -1
  360. package/dist/db-ux/p-21e5f6d0.entry.js +0 -1
  361. package/dist/db-ux/p-2461e08a.entry.js +0 -1
  362. package/dist/db-ux/p-26b7e21f.entry.js +0 -1
  363. package/dist/db-ux/p-272bdffc.entry.js +0 -1
  364. package/dist/db-ux/p-32c359a9.entry.js +0 -1
  365. package/dist/db-ux/p-33606da9.entry.js +0 -1
  366. package/dist/db-ux/p-44391c06.entry.js +0 -1
  367. package/dist/db-ux/p-46e3033b.entry.js +0 -1
  368. package/dist/db-ux/p-4b99f205.entry.js +0 -1
  369. package/dist/db-ux/p-4c238643.entry.js +0 -1
  370. package/dist/db-ux/p-4c3a8823.entry.js +0 -1
  371. package/dist/db-ux/p-4d5201a3.entry.js +0 -1
  372. package/dist/db-ux/p-5eae34e7.entry.js +0 -1
  373. package/dist/db-ux/p-652739e4.entry.js +0 -1
  374. package/dist/db-ux/p-93a6b1ee.entry.js +0 -1
  375. package/dist/db-ux/p-94de5791.entry.js +0 -1
  376. package/dist/db-ux/p-9728504d.entry.js +0 -1
  377. package/dist/db-ux/p-BGaQ0Bx8.js +0 -2
  378. package/dist/db-ux/p-CHLgQ9vn.js +0 -1
  379. package/dist/db-ux/p-D_roHmuC.js +0 -1
  380. package/dist/db-ux/p-a6c3ceaa.entry.js +0 -1
  381. package/dist/db-ux/p-cd3cfb4e.entry.js +0 -1
  382. package/dist/db-ux/p-cf045f35.entry.js +0 -1
  383. package/dist/db-ux/p-d173eace.entry.js +0 -1
  384. package/dist/db-ux/p-d3ada4cb.entry.js +0 -1
  385. package/dist/db-ux/p-d858f147.entry.js +0 -1
  386. package/dist/db-ux/p-db71c251.entry.js +0 -1
  387. package/dist/db-ux/p-e2740857.entry.js +0 -1
  388. package/dist/db-ux/p-ed5b3877.entry.js +0 -1
  389. package/dist/db-ux/p-fd334f14.entry.js +0 -1
  390. package/dist/db-ux/p-fed0fc42.entry.js +0 -1
  391. package/dist/db-ux/p-xkoBSP8R.js +0 -1
@@ -1,12 +1,33 @@
1
- import { r as registerInstance, h, g as getElement, c as createEvent } from './index-BGaQ0Bx8.js';
2
- import { c as cls, e as getBoolean, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, u as uuid, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-xkoBSP8R.js';
1
+ import { r as registerInstance, h, g as getElement, c as createEvent } from './index-BlbKvvUv.js';
2
+ import { c as cls, e as getBoolean, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, u as uuid, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-fumiz06Y.js';
3
3
  import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, j as DEFAULT_DATALIST_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, a as DEFAULT_LABEL, m as DEFAULT_REMOVE } from './constants-BdL-nI5y.js';
4
- import { c as addValueResetEventListener } from './form-components-D6LQfJvq.js';
4
+ import { c as addValueResetEventListener } from './form-components-ZV7IN0oG.js';
5
5
 
6
6
  const DBCustomSelectDropdown = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.width = "fixed";
10
+ this.observer = undefined;
11
+ }
12
+ setupObserver(element) {
13
+ if (!element)
14
+ return;
15
+ const parent = element.closest("db-custom-select-dropdown");
16
+ if (!parent || this.observer)
17
+ return;
18
+ this.observer = new MutationObserver((mutations) => {
19
+ if (mutations.some((mutation) => {
20
+ var _a;
21
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
22
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
23
+ })) {
24
+ this.enableAttributePassing(element, "db-custom-select-dropdown");
25
+ }
26
+ });
27
+ this.observer.observe(parent, {
28
+ attributes: true,
29
+ attributeOldValue: true,
30
+ });
10
31
  }
11
32
  /**
12
33
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -21,10 +42,15 @@ const DBCustomSelectDropdown = class {
21
42
  const attr = attributes.item(i);
22
43
  if (attr && attr.name !== 'data-density' &&
23
44
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
24
- element.setAttribute(attr.name, attr.value);
45
+ if (attr.value) {
46
+ element.setAttribute(attr.name, attr.value);
47
+ }
48
+ else {
49
+ element.removeAttribute(attr.name);
50
+ }
25
51
  parent.removeAttribute(attr.name);
26
52
  }
27
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
53
+ else if (attr && ["style"].includes(attr.name)) {
28
54
  element.setAttribute(attr.name, attr.value);
29
55
  parent.removeAttribute(attr.name);
30
56
  }
@@ -32,7 +58,7 @@ const DBCustomSelectDropdown = class {
32
58
  const isWebComponent = attr.value.includes("hydrated");
33
59
  const value = attr.value.replace("hydrated", "").trim();
34
60
  const currentClass = element.getAttribute("class");
35
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
61
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
36
62
  if (isWebComponent) {
37
63
  // Stencil is using this class for lazy loading component
38
64
  parent.setAttribute("class", "hydrated");
@@ -52,12 +78,17 @@ const DBCustomSelectDropdown = class {
52
78
  }
53
79
  }
54
80
  this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
81
+ this.setupObserver(this._ref);
82
+ }
83
+ disconnectedCallback() {
84
+ var _a;
85
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
55
86
  }
56
87
  render() {
57
88
  var _a, _b;
58
- return (h("article", { key: 'a2f23f8c268d6b06b03e58ca3abc998b7f741301', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
89
+ return (h("article", { key: '49bd2cef7c2c04b2ae3696fea83057858a59fd9a', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
59
90
  this._ref = el;
60
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: 'f2fd945d779fefe9d1b379d95d11c5ae60689818' })));
91
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '89ceec1851f4ffdb27f99b5f301e70784607c2c8' })));
61
92
  }
62
93
  get rootElement() { return getElement(this); }
63
94
  };
@@ -65,6 +96,27 @@ const DBCustomSelectDropdown = class {
65
96
  const DBCustomSelectList = class {
66
97
  constructor(hostRef) {
67
98
  registerInstance(this, hostRef);
99
+ this.observer = undefined;
100
+ }
101
+ setupObserver(element) {
102
+ if (!element)
103
+ return;
104
+ const parent = element.closest("db-custom-select-list");
105
+ if (!parent || this.observer)
106
+ return;
107
+ this.observer = new MutationObserver((mutations) => {
108
+ if (mutations.some((mutation) => {
109
+ var _a;
110
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
111
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
112
+ })) {
113
+ this.enableAttributePassing(element, "db-custom-select-list");
114
+ }
115
+ });
116
+ this.observer.observe(parent, {
117
+ attributes: true,
118
+ attributeOldValue: true,
119
+ });
68
120
  }
69
121
  /**
70
122
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -79,10 +131,15 @@ const DBCustomSelectList = class {
79
131
  const attr = attributes.item(i);
80
132
  if (attr && attr.name !== 'data-density' &&
81
133
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
82
- element.setAttribute(attr.name, attr.value);
134
+ if (attr.value) {
135
+ element.setAttribute(attr.name, attr.value);
136
+ }
137
+ else {
138
+ element.removeAttribute(attr.name);
139
+ }
83
140
  parent.removeAttribute(attr.name);
84
141
  }
85
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
142
+ else if (attr && ["style"].includes(attr.name)) {
86
143
  element.setAttribute(attr.name, attr.value);
87
144
  parent.removeAttribute(attr.name);
88
145
  }
@@ -90,7 +147,7 @@ const DBCustomSelectList = class {
90
147
  const isWebComponent = attr.value.includes("hydrated");
91
148
  const value = attr.value.replace("hydrated", "").trim();
92
149
  const currentClass = element.getAttribute("class");
93
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
150
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
94
151
  if (isWebComponent) {
95
152
  // Stencil is using this class for lazy loading component
96
153
  parent.setAttribute("class", "hydrated");
@@ -110,12 +167,17 @@ const DBCustomSelectList = class {
110
167
  }
111
168
  }
112
169
  this.enableAttributePassing(this._ref, "db-custom-select-list");
170
+ this.setupObserver(this._ref);
171
+ }
172
+ disconnectedCallback() {
173
+ var _a;
174
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
113
175
  }
114
176
  render() {
115
177
  var _a, _b;
116
- return (h("div", { key: 'f62ebf87384969fa7c299ed23062d15ac4d08e9d', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
178
+ return (h("div", { key: '2dee04c035ef27c7f398805eee1c77e7a3ad893c', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
117
179
  this._ref = el;
118
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: 'a6071f83a292171bc101a797adb98dc976a18e34' }, h("slot", { key: '6a18c02b91c91890a0d4b73e2b718c046b278f29' }))));
180
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '64b6f1efc4344d7e274a5dd3ad78ce80983a8b77' }, h("slot", { key: '26e0de28808a85216b9f1dcb8f788928a0c62c15' }))));
119
181
  }
120
182
  get rootElement() { return getElement(this); }
121
183
  };
@@ -125,6 +187,7 @@ const DBCustomSelectListItem = class {
125
187
  registerInstance(this, hostRef);
126
188
  this.change = createEvent(this, "change");
127
189
  this.hasDivider = false;
190
+ this.observer = undefined;
128
191
  }
129
192
  handleChange(event) {
130
193
  event.stopPropagation();
@@ -138,6 +201,26 @@ const DBCustomSelectListItem = class {
138
201
  }
139
202
  return getBoolean(this.checked, "checked") ? "check" : "x_placeholder";
140
203
  }
204
+ setupObserver(element) {
205
+ if (!element)
206
+ return;
207
+ const parent = element.closest("db-custom-select-list-item");
208
+ if (!parent || this.observer)
209
+ return;
210
+ this.observer = new MutationObserver((mutations) => {
211
+ if (mutations.some((mutation) => {
212
+ var _a;
213
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
214
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
215
+ })) {
216
+ this.enableAttributePassing(element, "db-custom-select-list-item");
217
+ }
218
+ });
219
+ this.observer.observe(parent, {
220
+ attributes: true,
221
+ attributeOldValue: true,
222
+ });
223
+ }
141
224
  /**
142
225
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
143
226
  * @param element the ref for the component
@@ -151,10 +234,15 @@ const DBCustomSelectListItem = class {
151
234
  const attr = attributes.item(i);
152
235
  if (attr && attr.name !== 'data-density' &&
153
236
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
154
- element.setAttribute(attr.name, attr.value);
237
+ if (attr.value) {
238
+ element.setAttribute(attr.name, attr.value);
239
+ }
240
+ else {
241
+ element.removeAttribute(attr.name);
242
+ }
155
243
  parent.removeAttribute(attr.name);
156
244
  }
157
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
245
+ else if (attr && ["style"].includes(attr.name)) {
158
246
  element.setAttribute(attr.name, attr.value);
159
247
  parent.removeAttribute(attr.name);
160
248
  }
@@ -162,7 +250,7 @@ const DBCustomSelectListItem = class {
162
250
  const isWebComponent = attr.value.includes("hydrated");
163
251
  const value = attr.value.replace("hydrated", "").trim();
164
252
  const currentClass = element.getAttribute("class");
165
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
253
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
166
254
  if (isWebComponent) {
167
255
  // Stencil is using this class for lazy loading component
168
256
  parent.setAttribute("class", "hydrated");
@@ -188,16 +276,21 @@ const DBCustomSelectListItem = class {
188
276
  }
189
277
  }
190
278
  this.enableAttributePassing(this._ref, "db-custom-select-list-item");
279
+ this.setupObserver(this._ref);
191
280
  this.watch0Fn();
192
281
  }
282
+ disconnectedCallback() {
283
+ var _a;
284
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
285
+ }
193
286
  render() {
194
287
  var _a, _b;
195
- return (h("li", { key: '67c52a98bf21203bd6f5f14617ec32d2e81f29e4', class: cls("db-custom-select-list-item", this.className, {
288
+ return (h("li", { key: 'cb467f74569cd0505dab2ac02a9b375de8f5a9bc', class: cls("db-custom-select-list-item", this.className, {
196
289
  "db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
197
290
  "db-radio": this.type !== "checkbox" && !this.isGroupTitle,
198
291
  }), ref: (el) => {
199
292
  this._ref = el;
200
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", null))) : (h("span", null, this.groupTitle))));
293
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider, "hasDivider") }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", null))) : (h("span", null, this.groupTitle))));
201
294
  }
202
295
  get rootElement() { return getElement(this); }
203
296
  static get watchers() { return {
@@ -227,6 +320,7 @@ const DBInput = class {
227
320
  this._value = "";
228
321
  this._voiceOverFallback = "";
229
322
  this.abortController = undefined;
323
+ this.observer = undefined;
230
324
  }
231
325
  hasValidState() {
232
326
  var _a;
@@ -243,7 +337,7 @@ const DBInput = class {
243
337
  DEFAULT_INVALID_MESSAGE;
244
338
  if (hasVoiceOver()) {
245
339
  this._voiceOverFallback = this._invalidMessage;
246
- delay(() => (this._voiceOverFallback = ""), 1000);
340
+ void delay(() => (this._voiceOverFallback = ""), 1000);
247
341
  }
248
342
  }
249
343
  else if (this.hasValidState() &&
@@ -252,7 +346,7 @@ const DBInput = class {
252
346
  this._descByIds = this._validMessageId;
253
347
  if (hasVoiceOver()) {
254
348
  this._voiceOverFallback = (_d = this.validMessage) !== null && _d !== void 0 ? _d : DEFAULT_VALID_MESSAGE;
255
- delay(() => (this._voiceOverFallback = ""), 1000);
349
+ void delay(() => (this._voiceOverFallback = ""), 1000);
256
350
  }
257
351
  }
258
352
  else if (stringPropVisible(this.message, this.showMessage)) {
@@ -302,6 +396,26 @@ const DBInput = class {
302
396
  this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
303
397
  this._dataListId = mId + DEFAULT_DATALIST_ID_SUFFIX;
304
398
  }
399
+ setupObserver(element) {
400
+ if (!element)
401
+ return;
402
+ const parent = element.closest("db-input");
403
+ if (!parent || this.observer)
404
+ return;
405
+ this.observer = new MutationObserver((mutations) => {
406
+ if (mutations.some((mutation) => {
407
+ var _a;
408
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
409
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
410
+ })) {
411
+ this.enableAttributePassing(element, "db-input");
412
+ }
413
+ });
414
+ this.observer.observe(parent, {
415
+ attributes: true,
416
+ attributeOldValue: true,
417
+ });
418
+ }
305
419
  /**
306
420
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
307
421
  * @param element the ref for the component
@@ -315,10 +429,15 @@ const DBInput = class {
315
429
  const attr = attributes.item(i);
316
430
  if (attr && attr.name !== 'data-density' &&
317
431
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
318
- element.setAttribute(attr.name, attr.value);
432
+ if (attr.value) {
433
+ element.setAttribute(attr.name, attr.value);
434
+ }
435
+ else {
436
+ element.removeAttribute(attr.name);
437
+ }
319
438
  parent.removeAttribute(attr.name);
320
439
  }
321
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
440
+ else if (attr && ["style"].includes(attr.name)) {
322
441
  element.setAttribute(attr.name, attr.value);
323
442
  parent.removeAttribute(attr.name);
324
443
  }
@@ -326,7 +445,7 @@ const DBInput = class {
326
445
  const isWebComponent = attr.value.includes("hydrated");
327
446
  const value = attr.value.replace("hydrated", "").trim();
328
447
  const currentClass = element.getAttribute("class");
329
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
448
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
330
449
  if (isWebComponent) {
331
450
  // Stencil is using this class for lazy loading component
332
451
  parent.setAttribute("class", "hydrated");
@@ -412,8 +531,15 @@ const DBInput = class {
412
531
  }
413
532
  }
414
533
  this.enableAttributePassing(this._ref, "db-input");
415
- this.resetIds();
416
- this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
534
+ const onMountHook_0 = () => {
535
+ this.resetIds();
536
+ this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
537
+ };
538
+ onMountHook_0();
539
+ const onMountHook_1 = () => {
540
+ this.setupObserver(this._ref);
541
+ };
542
+ onMountHook_1();
417
543
  this.watch0Fn();
418
544
  this.watch1Fn();
419
545
  this.watch2Fn();
@@ -421,24 +547,27 @@ const DBInput = class {
421
547
  this.watch4Fn();
422
548
  }
423
549
  disconnectedCallback() {
424
- var _a;
550
+ var _a, _b;
425
551
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
552
+ (_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
426
553
  }
427
554
  render() {
428
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
429
- return (h("div", { key: '09f1dff4d884168cb140705b0f310519e60e3aa2', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: '17c5e2ddca81cd88f5fbc5d0b5024fb833aff026', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: 'ed0381ce65f0a89035804412d736adf3b6e0aea1', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
555
+ var _a, _b, _c, _d, _e, _f, _g, _h;
556
+ return (h("div", { key: 'c8140e1e7d447fd4d65829dde8090110d0e421dc', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString(this.showIconLeading, "showIconLeading") ||
557
+ getBooleanAsString(this.showIcon, "showIcon"), "data-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing, "showIconTrailing") }, h("label", { key: '7ce81ede48602af85d5bf770c01ef0731d1774ec', htmlFor: this._id }, (_b = this.label) !== null && _b !== void 0 ? _b : DEFAULT_LABEL), h("input", { key: '880aea669e5decea1d0c865bd27981ab082c9fec', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
430
558
  this._ref = el;
431
- }, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_f = (_e = this.value) !== null && _e !== void 0 ? _e : this._value) !== null && _f !== void 0 ? _f : "", maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
432
- getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_g = this.ariaDescribedBy) !== null && _g !== void 0 ? _g : this._descByIds, role: [
559
+ }, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_c = this.placeholder) !== null && _c !== void 0 ? _c : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = (_d = this.value) !== null && _d !== void 0 ? _d : this._value) !== null && _e !== void 0 ? _e : "", maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
560
+ getBoolean(this.readonly, "readonly") ||
561
+ undefined, form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
433
562
  "datetime-local",
434
563
  "date",
435
564
  "time",
436
565
  "week",
437
566
  "month",
438
567
  "color",
439
- ].includes((_h = this.type) !== null && _h !== void 0 ? _h : "") && isIOSSafari()
568
+ ].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
440
569
  ? "textbox"
441
- : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_j = this.getDataList()) === null || _j === void 0 ? void 0 : _j.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'e7c51c3d97314fd153f606a346244dac365171e5' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'f92de27dbfd942534f83a83d181b533fc0b4a6e2', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: 'af168dd9e11d853f76db0edee198a744d36a228d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
570
+ : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'c119d0f17fc00de285fba88f3748235b914691ff' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '2ee3dc9555e0a21f6645807077c0b1af6dd08043', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '5a3a55b62468522a3198957be4b5a72c818316b4', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
442
571
  }
443
572
  get rootElement() { return getElement(this); }
444
573
  static get watchers() { return {
@@ -469,6 +598,7 @@ const DBTag = class {
469
598
  constructor(hostRef) {
470
599
  registerInstance(this, hostRef);
471
600
  this.remove = createEvent(this, "remove");
601
+ this.observer = undefined;
472
602
  }
473
603
  handleRemove(event) {
474
604
  if (!event)
@@ -485,6 +615,26 @@ const DBTag = class {
485
615
  // TODO: We should think this through again, if we would really like to have default and especially english, instead of german labels in here
486
616
  return DEFAULT_REMOVE;
487
617
  }
618
+ setupObserver(element) {
619
+ if (!element)
620
+ return;
621
+ const parent = element.closest("db-tag");
622
+ if (!parent || this.observer)
623
+ return;
624
+ this.observer = new MutationObserver((mutations) => {
625
+ if (mutations.some((mutation) => {
626
+ var _a;
627
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
628
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
629
+ })) {
630
+ this.enableAttributePassing(element, "db-tag");
631
+ }
632
+ });
633
+ this.observer.observe(parent, {
634
+ attributes: true,
635
+ attributeOldValue: true,
636
+ });
637
+ }
488
638
  /**
489
639
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
490
640
  * @param element the ref for the component
@@ -498,10 +648,15 @@ const DBTag = class {
498
648
  const attr = attributes.item(i);
499
649
  if (attr && attr.name !== 'data-density' &&
500
650
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
501
- element.setAttribute(attr.name, attr.value);
651
+ if (attr.value) {
652
+ element.setAttribute(attr.name, attr.value);
653
+ }
654
+ else {
655
+ element.removeAttribute(attr.name);
656
+ }
502
657
  parent.removeAttribute(attr.name);
503
658
  }
504
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
659
+ else if (attr && ["style"].includes(attr.name)) {
505
660
  element.setAttribute(attr.name, attr.value);
506
661
  parent.removeAttribute(attr.name);
507
662
  }
@@ -509,7 +664,7 @@ const DBTag = class {
509
664
  const isWebComponent = attr.value.includes("hydrated");
510
665
  const value = attr.value.replace("hydrated", "").trim();
511
666
  const currentClass = element.getAttribute("class");
512
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
667
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
513
668
  if (isWebComponent) {
514
669
  // Stencil is using this class for lazy loading component
515
670
  parent.setAttribute("class", "hydrated");
@@ -529,12 +684,17 @@ const DBTag = class {
529
684
  }
530
685
  }
531
686
  this.enableAttributePassing(this._ref, "db-tag");
687
+ this.setupObserver(this._ref);
688
+ }
689
+ disconnectedCallback() {
690
+ var _a;
691
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
532
692
  }
533
693
  render() {
534
694
  var _a, _b, _c;
535
- return (h("div", { key: '85b02f290e8323ddd9a61ee5cf15893e7bc0cdab', class: cls("db-tag", this.className), ref: (el) => {
695
+ return (h("div", { key: '22654726ea465c2b07942705dfcf72162c11e314', class: cls("db-tag", this.className), ref: (el) => {
536
696
  this._ref = el;
537
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '3aefef41d0a30b8f979e43146936be56a1d9181b', name: "content" }), this.text ? this.text : null, h("slot", { key: 'e283aefd212ea8c7f7eab8da48ed19a7f4763e38' }), this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
697
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true, "showCheckState"), "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-no-text": getBooleanAsString(this.noText, "noText"), "data-overflow": getBooleanAsString(this.overflow, "overflow") }, h("slot", { key: '284aa3b6bce1595939f667e8a511319879545e27', name: "content" }), this.text ? this.text : null, h("slot", { key: '7471ead10bf5f95654444020e6b76d0b2f64486b' }), this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
538
698
  }
539
699
  get rootElement() { return getElement(this); }
540
700
  };
@@ -1,9 +1,30 @@
1
- import { r as registerInstance, h, g as getElement } from './index-BGaQ0Bx8.js';
2
- import { c as cls } from './index-xkoBSP8R.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
2
+ import { c as cls } from './index-fumiz06Y.js';
3
3
 
4
4
  const DBCustomSelectFormField = class {
5
5
  constructor(hostRef) {
6
6
  registerInstance(this, hostRef);
7
+ this.observer = undefined;
8
+ }
9
+ setupObserver(element) {
10
+ if (!element)
11
+ return;
12
+ const parent = element.closest("db-custom-select-form-field");
13
+ if (!parent || this.observer)
14
+ return;
15
+ this.observer = new MutationObserver((mutations) => {
16
+ if (mutations.some((mutation) => {
17
+ var _a;
18
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
19
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
20
+ })) {
21
+ this.enableAttributePassing(element, "db-custom-select-form-field");
22
+ }
23
+ });
24
+ this.observer.observe(parent, {
25
+ attributes: true,
26
+ attributeOldValue: true,
27
+ });
7
28
  }
8
29
  /**
9
30
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -18,10 +39,15 @@ const DBCustomSelectFormField = class {
18
39
  const attr = attributes.item(i);
19
40
  if (attr && attr.name !== 'data-density' &&
20
41
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
- element.setAttribute(attr.name, attr.value);
42
+ if (attr.value) {
43
+ element.setAttribute(attr.name, attr.value);
44
+ }
45
+ else {
46
+ element.removeAttribute(attr.name);
47
+ }
22
48
  parent.removeAttribute(attr.name);
23
49
  }
24
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
50
+ else if (attr && ["style"].includes(attr.name)) {
25
51
  element.setAttribute(attr.name, attr.value);
26
52
  parent.removeAttribute(attr.name);
27
53
  }
@@ -29,7 +55,7 @@ const DBCustomSelectFormField = class {
29
55
  const isWebComponent = attr.value.includes("hydrated");
30
56
  const value = attr.value.replace("hydrated", "").trim();
31
57
  const currentClass = element.getAttribute("class");
32
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
58
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
33
59
  if (isWebComponent) {
34
60
  // Stencil is using this class for lazy loading component
35
61
  parent.setAttribute("class", "hydrated");
@@ -49,12 +75,17 @@ const DBCustomSelectFormField = class {
49
75
  }
50
76
  }
51
77
  this.enableAttributePassing(this._ref, "db-custom-select-form-field");
78
+ this.setupObserver(this._ref);
79
+ }
80
+ disconnectedCallback() {
81
+ var _a;
82
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
52
83
  }
53
84
  render() {
54
85
  var _a, _b;
55
- return (h("summary", { key: 'e438005a75d6d93c62b6e04bce4f99cee7f73619', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
86
+ return (h("summary", { key: 'e74ace4d1b8b882d93a74274f0ae0b278f6daf42', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
56
87
  this._ref = el;
57
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '1dc82e35d01ac41cde18cb033d657ec7f53886b8' })));
88
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'a336ba54bc2165846100b211d0f7f67755fb98d7' })));
58
89
  }
59
90
  get rootElement() { return getElement(this); }
60
91
  };