@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,11 +1,12 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BGaQ0Bx8.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
2
2
  import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
3
- import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-xkoBSP8R.js';
3
+ import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-fumiz06Y.js';
4
4
 
5
5
  const DBNotification = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  this.close = createEvent(this, "close");
9
+ this.observer = undefined;
9
10
  }
10
11
  handleClose(event) {
11
12
  if (!event)
@@ -15,6 +16,26 @@ const DBNotification = class {
15
16
  this.close.emit(event);
16
17
  }
17
18
  }
19
+ setupObserver(element) {
20
+ if (!element)
21
+ return;
22
+ const parent = element.closest("db-notification");
23
+ if (!parent || this.observer)
24
+ return;
25
+ this.observer = new MutationObserver((mutations) => {
26
+ if (mutations.some((mutation) => {
27
+ var _a;
28
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
29
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
30
+ })) {
31
+ this.enableAttributePassing(element, "db-notification");
32
+ }
33
+ });
34
+ this.observer.observe(parent, {
35
+ attributes: true,
36
+ attributeOldValue: true,
37
+ });
38
+ }
18
39
  /**
19
40
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
20
41
  * @param element the ref for the component
@@ -28,10 +49,15 @@ const DBNotification = class {
28
49
  const attr = attributes.item(i);
29
50
  if (attr && attr.name !== 'data-density' &&
30
51
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
31
- element.setAttribute(attr.name, attr.value);
52
+ if (attr.value) {
53
+ element.setAttribute(attr.name, attr.value);
54
+ }
55
+ else {
56
+ element.removeAttribute(attr.name);
57
+ }
32
58
  parent.removeAttribute(attr.name);
33
59
  }
34
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
60
+ else if (attr && ["style"].includes(attr.name)) {
35
61
  element.setAttribute(attr.name, attr.value);
36
62
  parent.removeAttribute(attr.name);
37
63
  }
@@ -39,7 +65,7 @@ const DBNotification = class {
39
65
  const isWebComponent = attr.value.includes("hydrated");
40
66
  const value = attr.value.replace("hydrated", "").trim();
41
67
  const currentClass = element.getAttribute("class");
42
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
68
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
43
69
  if (isWebComponent) {
44
70
  // Stencil is using this class for lazy loading component
45
71
  parent.setAttribute("class", "hydrated");
@@ -59,16 +85,21 @@ const DBNotification = class {
59
85
  }
60
86
  }
61
87
  this.enableAttributePassing(this._ref, "db-notification");
88
+ this.setupObserver(this._ref);
89
+ }
90
+ disconnectedCallback() {
91
+ var _a;
92
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
62
93
  }
63
94
  render() {
64
95
  var _a, _b, _c;
65
- return (h("div", { key: '80b4682644b5cae7f09842e8683a9445f782055b', class: cls("db-notification", this.className), ref: (el) => {
96
+ return (h("div", { key: '6700e43e45a2c0c18a0216fb12afd5d31820dcf9', class: cls("db-notification", this.className), ref: (el) => {
66
97
  this._ref = el;
67
98
  }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: getNotificationRole({
68
99
  semantic: this.semantic,
69
100
  role: this.role,
70
101
  ariaLive: this.ariaLive,
71
- }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '4fc52fd9fff6357307c4bdc102c03082688b44cf', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", { "data-area": "head" }, this.headline)) : null, h("div", { key: '6d61a4b4966795950a3da5dba130734bd0bbb2d9', "data-area": "content" }, this.text ? this.text : null, h("slot", { key: 'f4ca4c620e00a203da07c3d0ce2974ade705f489' })), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("time", { "data-area": "timestamp", dateTime: this.timestampDatetime }, this.timestamp)) : null, h("slot", { key: 'e1509dd146ff4288f96062e6286b47b495b388dc', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
102
+ }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon"), "data-link-variant": this.linkVariant }, h("slot", { key: '9ea4d9427f7e34dbf5fd9b187f4dce5df9b39d34', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", { "data-area": "head" }, this.headline)) : null, h("div", { key: '4f9c9a95f7c6bd8f4b5bfb0acf69f02dbc789856', "data-area": "content" }, this.text ? this.text : null, h("slot", { key: '2d9007bdc99c163fd6af4b12cc7210b60ab11319' })), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("time", { "data-area": "timestamp", dateTime: this.timestampDatetime }, this.timestamp)) : null, h("slot", { key: 'f5505f81bdf36d9dd1aeb825a2af06dcd0214372', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
72
103
  }
73
104
  get rootElement() { return getElement(this); }
74
105
  };
@@ -1,10 +1,31 @@
1
- import { r as registerInstance, h, g as getElement } from './index-BGaQ0Bx8.js';
2
- import { c as cls, g as getBooleanAsString } from './index-xkoBSP8R.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
2
+ import { c as cls, g as getBooleanAsString } from './index-fumiz06Y.js';
3
3
 
4
4
  const DBPage = class {
5
5
  constructor(hostRef) {
6
6
  registerInstance(this, hostRef);
7
7
  this.fontsLoaded = false;
8
+ this.observer = undefined;
9
+ }
10
+ setupObserver(element) {
11
+ if (!element)
12
+ return;
13
+ const parent = element.closest("db-page");
14
+ if (!parent || this.observer)
15
+ return;
16
+ this.observer = new MutationObserver((mutations) => {
17
+ if (mutations.some((mutation) => {
18
+ var _a;
19
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
20
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
21
+ })) {
22
+ this.enableAttributePassing(element, "db-page");
23
+ }
24
+ });
25
+ this.observer.observe(parent, {
26
+ attributes: true,
27
+ attributeOldValue: true,
28
+ });
8
29
  }
9
30
  /**
10
31
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -19,10 +40,15 @@ const DBPage = class {
19
40
  const attr = attributes.item(i);
20
41
  if (attr && attr.name !== 'data-density' &&
21
42
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
22
- element.setAttribute(attr.name, attr.value);
43
+ if (attr.value) {
44
+ element.setAttribute(attr.name, attr.value);
45
+ }
46
+ else {
47
+ element.removeAttribute(attr.name);
48
+ }
23
49
  parent.removeAttribute(attr.name);
24
50
  }
25
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
51
+ else if (attr && ["style"].includes(attr.name)) {
26
52
  element.setAttribute(attr.name, attr.value);
27
53
  parent.removeAttribute(attr.name);
28
54
  }
@@ -30,7 +56,7 @@ const DBPage = class {
30
56
  const isWebComponent = attr.value.includes("hydrated");
31
57
  const value = attr.value.replace("hydrated", "").trim();
32
58
  const currentClass = element.getAttribute("class");
33
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
59
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
34
60
  if (isWebComponent) {
35
61
  // Stencil is using this class for lazy loading component
36
62
  parent.setAttribute("class", "hydrated");
@@ -50,28 +76,37 @@ const DBPage = class {
50
76
  }
51
77
  }
52
78
  this.enableAttributePassing(this._ref, "db-page");
53
- this.fontsLoaded = !this.fadeIn;
54
- if (document && this.fadeIn) {
55
- document.fonts.ready.then(() => {
79
+ const onMountHook_0 = () => {
80
+ this.fontsLoaded = !this.fadeIn;
81
+ if (document && this.fadeIn) {
82
+ document.fonts.ready.then(() => {
83
+ this.fontsLoaded = true;
84
+ });
85
+ }
86
+ else {
56
87
  this.fontsLoaded = true;
57
- });
58
- }
59
- else {
60
- this.fontsLoaded = true;
61
- }
88
+ }
89
+ };
90
+ onMountHook_0();
91
+ const onMountHook_1 = () => {
92
+ this.setupObserver(this._ref);
93
+ };
94
+ onMountHook_1();
62
95
  }
63
96
  disconnectedCallback() {
97
+ var _a;
64
98
  if (typeof window !== "undefined" &&
65
99
  document.documentElement.classList.contains("db-page-document")) {
66
100
  // remove document styles set by this
67
101
  document.documentElement.classList.remove("db-page-document");
68
102
  }
103
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
69
104
  }
70
105
  render() {
71
106
  var _a, _b;
72
- return (h("div", { key: 'ff82686603b48757d15136f99ffee2e8261a0868', class: cls("db-page", this.className), ref: (el) => {
107
+ return (h("div", { key: '0d09488c8caa9ca9fbd1fa55e9ba913b10510b2a', class: cls("db-page", this.className), ref: (el) => {
73
108
  this._ref = el;
74
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: 'b545b6a529c6502b6d9acaf4349056f9b191b47f', name: "header" }), h("main", { key: '67fe344765eb3dabbb1e6882e653142522ba7e20', class: cls("db-main", this.mainClass) }, h("slot", { key: '5ab992699f2db9d811124d9ad0955e94c816896a' })), h("slot", { key: '2c0e00536dcac7decddc76aacc13b58989b02464', name: "footer" })));
109
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn, "fadeIn"), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded, "fontsLoaded") }, h("slot", { key: '667a0153fca3111a897356f90110aa6d5e068171', name: "header" }), h("main", { key: '92184cba49dc26836ed103d2254b5c319df29832', class: cls("db-main", this.mainClass) }, h("slot", { key: '2d4d37de47023d7fc1dfb321f64d92c90c9b80b8' })), h("slot", { key: 'fb7fb41cbdfdf8e722aa9dde7080379a8083cf45', name: "footer" })));
75
110
  }
76
111
  get rootElement() { return getElement(this); }
77
112
  };
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, g as getElement } from './index-BGaQ0Bx8.js';
2
- import { d as delay, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
3
- import { D as DocumentScrollListener } from './document-scroll-listener-DOBe3Oa9.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-BlbKvvUv.js';
2
+ import { d as delay, g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
3
+ import { D as DocumentScrollListener } from './document-scroll-listener-4F0ZAg9p.js';
4
4
  import { b as handleFixedPopover } from './floating-components-DOPXnIzL.js';
5
5
 
6
6
  const DBPopover = class {
@@ -10,6 +10,7 @@ const DBPopover = class {
10
10
  this.isExpanded = false;
11
11
  this._documentScrollListenerCallbackId = undefined;
12
12
  this._observer = undefined;
13
+ this.observer = undefined;
13
14
  }
14
15
  handleEscape(event) {
15
16
  if (!event || event.key === "Escape") {
@@ -85,6 +86,26 @@ const DBPopover = class {
85
86
  }
86
87
  return null;
87
88
  }
89
+ setupObserver(element) {
90
+ if (!element)
91
+ return;
92
+ const parent = element.closest("db-popover");
93
+ if (!parent || this.observer)
94
+ return;
95
+ this.observer = new MutationObserver((mutations) => {
96
+ if (mutations.some((mutation) => {
97
+ var _a;
98
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
99
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
100
+ })) {
101
+ this.enableAttributePassing(element, "db-popover");
102
+ }
103
+ });
104
+ this.observer.observe(parent, {
105
+ attributes: true,
106
+ attributeOldValue: true,
107
+ });
108
+ }
88
109
  /**
89
110
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
90
111
  * @param element the ref for the component
@@ -98,10 +119,15 @@ const DBPopover = class {
98
119
  const attr = attributes.item(i);
99
120
  if (attr && attr.name !== 'data-density' &&
100
121
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
101
- element.setAttribute(attr.name, attr.value);
122
+ if (attr.value) {
123
+ element.setAttribute(attr.name, attr.value);
124
+ }
125
+ else {
126
+ element.removeAttribute(attr.name);
127
+ }
102
128
  parent.removeAttribute(attr.name);
103
129
  }
104
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
130
+ else if (attr && ["style"].includes(attr.name)) {
105
131
  element.setAttribute(attr.name, attr.value);
106
132
  parent.removeAttribute(attr.name);
107
133
  }
@@ -109,7 +135,7 @@ const DBPopover = class {
109
135
  const isWebComponent = attr.value.includes("hydrated");
110
136
  const value = attr.value.replace("hydrated", "").trim();
111
137
  const currentClass = element.getAttribute("class");
112
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
138
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
113
139
  if (isWebComponent) {
114
140
  // Stencil is using this class for lazy loading component
115
141
  parent.setAttribute("class", "hydrated");
@@ -168,15 +194,26 @@ const DBPopover = class {
168
194
  }
169
195
  }
170
196
  this.enableAttributePassing(this._ref, "db-popover");
171
- this.initialized = true;
197
+ const onMountHook_0 = () => {
198
+ this.initialized = true;
199
+ };
200
+ onMountHook_0();
201
+ const onMountHook_1 = () => {
202
+ this.setupObserver(this._ref);
203
+ };
204
+ onMountHook_1();
172
205
  this.watch0Fn();
173
206
  this.watch1Fn();
174
207
  }
208
+ disconnectedCallback() {
209
+ var _a;
210
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
211
+ }
175
212
  render() {
176
213
  var _a, _b, _c;
177
- return (h("div", { key: '5695f78c16f768ca34b16c05167518c2a2e26c35', class: cls("db-popover", this.className), ref: (el) => {
214
+ return (h("div", { key: '09a8f5d4aedc314e07a184c3e41d232073b4ffc9', class: cls("db-popover", this.className), ref: (el) => {
178
215
  this._ref = el;
179
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'e765f506df650f9105ff6efb79c2d6fe36a48b91', name: "trigger" }), h("article", { key: '072c8716f82a49d319794e521f467d494fe4b313', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '3317509fd5cfbc56f9e0921f91e34520d9f93c87' }))));
216
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'eeee6e2e8d94272e91d275fb6799c7f781f8210a', name: "trigger" }), h("article", { key: 'cbbdd13d730291ec06059334c47be4c4bb8ffa71', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap, "gap"), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true, "animation"), "data-open": getBooleanAsString(this.open, "open"), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '7ae19bc9f8ba3130c107fcf826a8ca9bcf8d9f88' }))));
180
217
  }
181
218
  get rootElement() { return getElement(this); }
182
219
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BGaQ0Bx8.js';
2
- import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-xkoBSP8R.js';
3
- import { b as addResetEventListener } from './form-components-D6LQfJvq.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-BlbKvvUv.js';
2
+ import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-fumiz06Y.js';
3
+ import { b as addResetEventListener } from './form-components-ZV7IN0oG.js';
4
4
 
5
5
  const DBRadio = class {
6
6
  constructor(hostRef) {
@@ -12,6 +12,7 @@ const DBRadio = class {
12
12
  this.initialized = false;
13
13
  this._id = undefined;
14
14
  this.abortController = undefined;
15
+ this.observer = undefined;
15
16
  }
16
17
  handleInput(event, reset) {
17
18
  if (this.input) {
@@ -37,6 +38,26 @@ const DBRadio = class {
37
38
  var _a, _b, _c;
38
39
  this._id = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `radio-${uuid()}`;
39
40
  }
41
+ setupObserver(element) {
42
+ if (!element)
43
+ return;
44
+ const parent = element.closest("db-radio");
45
+ if (!parent || this.observer)
46
+ return;
47
+ this.observer = new MutationObserver((mutations) => {
48
+ if (mutations.some((mutation) => {
49
+ var _a;
50
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
51
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
52
+ })) {
53
+ this.enableAttributePassing(element, "db-radio");
54
+ }
55
+ });
56
+ this.observer.observe(parent, {
57
+ attributes: true,
58
+ attributeOldValue: true,
59
+ });
60
+ }
40
61
  /**
41
62
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
42
63
  * @param element the ref for the component
@@ -50,10 +71,15 @@ const DBRadio = class {
50
71
  const attr = attributes.item(i);
51
72
  if (attr && attr.name !== 'data-density' &&
52
73
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
53
- element.setAttribute(attr.name, attr.value);
74
+ if (attr.value) {
75
+ element.setAttribute(attr.name, attr.value);
76
+ }
77
+ else {
78
+ element.removeAttribute(attr.name);
79
+ }
54
80
  parent.removeAttribute(attr.name);
55
81
  }
56
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
82
+ else if (attr && ["style"].includes(attr.name)) {
57
83
  element.setAttribute(attr.name, attr.value);
58
84
  parent.removeAttribute(attr.name);
59
85
  }
@@ -61,7 +87,7 @@ const DBRadio = class {
61
87
  const isWebComponent = attr.value.includes("hydrated");
62
88
  const value = attr.value.replace("hydrated", "").trim();
63
89
  const currentClass = element.getAttribute("class");
64
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
90
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
65
91
  if (isWebComponent) {
66
92
  // Stencil is using this class for lazy loading component
67
93
  parent.setAttribute("class", "hydrated");
@@ -120,20 +146,28 @@ const DBRadio = class {
120
146
  }
121
147
  }
122
148
  this.enableAttributePassing(this._ref, "db-radio");
123
- this.initialized = true;
124
- this.resetIds();
149
+ const onMountHook_0 = () => {
150
+ this.initialized = true;
151
+ this.resetIds();
152
+ };
153
+ onMountHook_0();
154
+ const onMountHook_1 = () => {
155
+ this.setupObserver(this._ref);
156
+ };
157
+ onMountHook_1();
125
158
  this.watch0Fn();
126
159
  this.watch1Fn();
127
160
  this.watch2Fn();
128
161
  }
129
162
  disconnectedCallback() {
130
- var _a;
163
+ var _a, _b;
131
164
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
165
+ (_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
132
166
  }
133
167
  render() {
134
- return (h("label", { key: '1ff5543af917149d3d1f51a2c67c7686b55f8d11', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: '3409b94c081b36bd60ba84f8e6a4064e43e2ad50', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
168
+ return (h("label", { key: '85734ed463718801789a9dea9c0febcc4c2e8266', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: '7906add8b0074893bbffaaa0963284de1f89836c', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
135
169
  this._ref = el;
136
- }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: 'c9850bcf9efb2e272e6ae8cc83ab92d62e095094' })));
170
+ }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: '7c35400883fd27d67bb2932cd646492fe137ccd9' })));
137
171
  }
138
172
  get rootElement() { return getElement(this); }
139
173
  static get watchers() { return {
@@ -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 DBSection = 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-section");
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-section");
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 DBSection = 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 DBSection = 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 DBSection = class {
49
75
  }
50
76
  }
51
77
  this.enableAttributePassing(this._ref, "db-section");
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("section", { key: '03d6f7ed2eea5b1374d0f5be00d77e59897033ea', class: cls("db-section", this.className), ref: (el) => {
86
+ return (h("section", { key: 'e33119ea38ff1f66b56792cb1a5a57e47d87d370', class: cls("db-section", 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, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '55c388d7e65e9bd27dd229f01a3c162719b90df2' })));
88
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '0ac9622c130f2a896b334e65025f16365fe50ea5' })));
58
89
  }
59
90
  get rootElement() { return getElement(this); }
60
91
  };
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-BGaQ0Bx8.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-BlbKvvUv.js';
2
2
  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, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
3
- import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-xkoBSP8R.js';
4
- import { c as addValueResetEventListener } from './form-components-D6LQfJvq.js';
3
+ import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-fumiz06Y.js';
4
+ import { c as addValueResetEventListener } from './form-components-ZV7IN0oG.js';
5
5
 
6
6
  const DBSelect = class {
7
7
  constructor(hostRef) {
@@ -22,6 +22,7 @@ const DBSelect = class {
22
22
  this.initialized = false;
23
23
  this._voiceOverFallback = "";
24
24
  this.abortController = undefined;
25
+ this.observer = undefined;
25
26
  }
26
27
  hasValidState() {
27
28
  var _a;
@@ -38,7 +39,7 @@ const DBSelect = class {
38
39
  DEFAULT_INVALID_MESSAGE;
39
40
  if (hasVoiceOver()) {
40
41
  this._voiceOverFallback = this._invalidMessage;
41
- delay(() => (this._voiceOverFallback = ""), 1000);
42
+ void delay(() => (this._voiceOverFallback = ""), 1000);
42
43
  }
43
44
  }
44
45
  else if (this.hasValidState() &&
@@ -47,7 +48,7 @@ const DBSelect = class {
47
48
  this._descByIds = this._validMessageId;
48
49
  if (hasVoiceOver()) {
49
50
  this._voiceOverFallback = (_d = this.validMessage) !== null && _d !== void 0 ? _d : DEFAULT_VALID_MESSAGE;
50
- delay(() => (this._voiceOverFallback = ""), 1000);
51
+ void delay(() => (this._voiceOverFallback = ""), 1000);
51
52
  }
52
53
  }
53
54
  else if (stringPropVisible(this.message, this.showMessage)) {
@@ -111,6 +112,26 @@ const DBSelect = class {
111
112
  this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
112
113
  this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
113
114
  }
115
+ setupObserver(element) {
116
+ if (!element)
117
+ return;
118
+ const parent = element.closest("db-select");
119
+ if (!parent || this.observer)
120
+ return;
121
+ this.observer = new MutationObserver((mutations) => {
122
+ if (mutations.some((mutation) => {
123
+ var _a;
124
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
125
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
126
+ })) {
127
+ this.enableAttributePassing(element, "db-select");
128
+ }
129
+ });
130
+ this.observer.observe(parent, {
131
+ attributes: true,
132
+ attributeOldValue: true,
133
+ });
134
+ }
114
135
  /**
115
136
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
116
137
  * @param element the ref for the component
@@ -124,10 +145,15 @@ const DBSelect = class {
124
145
  const attr = attributes.item(i);
125
146
  if (attr && attr.name !== 'data-density' &&
126
147
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
127
- element.setAttribute(attr.name, attr.value);
148
+ if (attr.value) {
149
+ element.setAttribute(attr.name, attr.value);
150
+ }
151
+ else {
152
+ element.removeAttribute(attr.name);
153
+ }
128
154
  parent.removeAttribute(attr.name);
129
155
  }
130
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
156
+ else if (attr && ["style"].includes(attr.name)) {
131
157
  element.setAttribute(attr.name, attr.value);
132
158
  parent.removeAttribute(attr.name);
133
159
  }
@@ -135,7 +161,7 @@ const DBSelect = class {
135
161
  const isWebComponent = attr.value.includes("hydrated");
136
162
  const value = attr.value.replace("hydrated", "").trim();
137
163
  const currentClass = element.getAttribute("class");
138
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
164
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
139
165
  if (isWebComponent) {
140
166
  // Stencil is using this class for lazy loading component
141
167
  parent.setAttribute("class", "hydrated");
@@ -227,9 +253,16 @@ const DBSelect = class {
227
253
  }
228
254
  }
229
255
  this.enableAttributePassing(this._ref, "db-select");
230
- this.initialized = true;
231
- this.resetIds();
232
- this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
256
+ const onMountHook_0 = () => {
257
+ this.initialized = true;
258
+ this.resetIds();
259
+ this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
260
+ };
261
+ onMountHook_0();
262
+ const onMountHook_1 = () => {
263
+ this.setupObserver(this._ref);
264
+ };
265
+ onMountHook_1();
233
266
  this.watch0Fn();
234
267
  this.watch1Fn();
235
268
  this.watch2Fn();
@@ -237,19 +270,20 @@ const DBSelect = class {
237
270
  this.watch4Fn();
238
271
  }
239
272
  disconnectedCallback() {
240
- var _a;
273
+ var _a, _b;
241
274
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
275
+ (_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
242
276
  }
243
277
  render() {
244
278
  var _a, _b, _c, _d, _e, _f;
245
- return (h("div", { key: '3dd83828aaa06217389cf635687da0070ae88f56', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '8fe580a4172003361a5c16551c4965882dbb3ce0', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '2f0ba052dafae5d44c27442eb4c27fa117c6ba76', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
279
+ return (h("div", { key: '71200b34c84ae3c90e4990b11e55e8dea4c16e55', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon") }, h("label", { key: '3633f34f827d53ee4b4d15e5b230307984fcbd09', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: 'ff177d80acfa3519df6467892fb5f97f4ad6872b', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
246
280
  this._ref = el;
247
281
  }, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
248
282
  /* @ts-ignore */
249
- value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
283
+ value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption(), "showEmptyOption") })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
250
284
  var _a;
251
285
  return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
252
- })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '34ca1d025c67dc018375d56651a7f0ae1d2e245f', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '6f64314bcf457ddd86b3695e314125cca14d10d1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
286
+ })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '5baf4a0984f8d71776cda0d0d9c12e62f08f434b', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '2b7c6895a1de8e77daba33de6923a33b7c43bee1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
253
287
  }
254
288
  get rootElement() { return getElement(this); }
255
289
  static get watchers() { return {