@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,32 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-HN8AqU2e.js');
4
- var index$1 = require('./index-2_9ESkQu.js');
3
+ var index = require('./index-C313bRqJ.js');
4
+ var index$1 = require('./index-spuu3sXz.js');
5
5
 
6
6
  const DBStack = class {
7
7
  constructor(hostRef) {
8
8
  index.registerInstance(this, hostRef);
9
+ this.observer = undefined;
10
+ }
11
+ setupObserver(element) {
12
+ if (!element)
13
+ return;
14
+ const parent = element.closest("db-stack");
15
+ if (!parent || this.observer)
16
+ return;
17
+ this.observer = new MutationObserver((mutations) => {
18
+ if (mutations.some((mutation) => {
19
+ var _a;
20
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
21
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
22
+ })) {
23
+ this.enableAttributePassing(element, "db-stack");
24
+ }
25
+ });
26
+ this.observer.observe(parent, {
27
+ attributes: true,
28
+ attributeOldValue: true,
29
+ });
9
30
  }
10
31
  /**
11
32
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -20,10 +41,15 @@ const DBStack = class {
20
41
  const attr = attributes.item(i);
21
42
  if (attr && attr.name !== 'data-density' &&
22
43
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
23
- element.setAttribute(attr.name, attr.value);
44
+ if (attr.value) {
45
+ element.setAttribute(attr.name, attr.value);
46
+ }
47
+ else {
48
+ element.removeAttribute(attr.name);
49
+ }
24
50
  parent.removeAttribute(attr.name);
25
51
  }
26
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
52
+ else if (attr && ["style"].includes(attr.name)) {
27
53
  element.setAttribute(attr.name, attr.value);
28
54
  parent.removeAttribute(attr.name);
29
55
  }
@@ -31,7 +57,7 @@ const DBStack = class {
31
57
  const isWebComponent = attr.value.includes("hydrated");
32
58
  const value = attr.value.replace("hydrated", "").trim();
33
59
  const currentClass = element.getAttribute("class");
34
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
60
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
35
61
  if (isWebComponent) {
36
62
  // Stencil is using this class for lazy loading component
37
63
  parent.setAttribute("class", "hydrated");
@@ -51,12 +77,17 @@ const DBStack = class {
51
77
  }
52
78
  }
53
79
  this.enableAttributePassing(this._ref, "db-stack");
80
+ this.setupObserver(this._ref);
81
+ }
82
+ disconnectedCallback() {
83
+ var _a;
84
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
54
85
  }
55
86
  render() {
56
87
  var _a, _b;
57
- return (index.h("div", { key: '87f4f22cbfd4355da58ace757805c9e29758eb6d', class: index$1.cls("db-stack", this.className), ref: (el) => {
88
+ return (index.h("div", { key: '02389c1bd26917e0176c95ce3e38e7ef664813e7', class: index$1.cls("db-stack", this.className), ref: (el) => {
58
89
  this._ref = el;
59
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": index$1.getBooleanAsString(this.wrap) }, index.h("slot", { key: '391ff9ee8a52408fa9830e0f5a30fd86a249a102' })));
90
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": index$1.getBooleanAsString(this.wrap, "wrap") }, index.h("slot", { key: '70b94e0558c79bc76096be335af95029ad2cbe5c' })));
60
91
  }
61
92
  get rootElement() { return index.getElement(this); }
62
93
  };
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-HN8AqU2e.js');
3
+ var index = require('./index-C313bRqJ.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-2_9ESkQu.js');
6
- var formComponents = require('./form-components-_ncB_U2D.js');
5
+ var index$1 = require('./index-spuu3sXz.js');
6
+ var formComponents = require('./form-components-CmQlkARp.js');
7
7
 
8
8
  const DBSwitch = class {
9
9
  constructor(hostRef) {
@@ -19,6 +19,7 @@ const DBSwitch = class {
19
19
  this._descByIds = undefined;
20
20
  this._voiceOverFallback = "";
21
21
  this.abortController = undefined;
22
+ this.observer = undefined;
22
23
  }
23
24
  hasValidState() {
24
25
  var _a;
@@ -35,7 +36,7 @@ const DBSwitch = class {
35
36
  if (index$1.hasVoiceOver()) {
36
37
  this._voiceOverFallback =
37
38
  this._invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
38
- index$1.delay(() => {
39
+ void index$1.delay(() => {
39
40
  this._voiceOverFallback = "";
40
41
  }, 1000);
41
42
  }
@@ -45,7 +46,7 @@ const DBSwitch = class {
45
46
  this._descByIds = this._validMessageId;
46
47
  if (index$1.hasVoiceOver()) {
47
48
  this._voiceOverFallback = (_f = this.validMessage) !== null && _f !== void 0 ? _f : constants.DEFAULT_VALID_MESSAGE;
48
- index$1.delay(() => {
49
+ void index$1.delay(() => {
49
50
  this._voiceOverFallback = "";
50
51
  }, 1000);
51
52
  }
@@ -92,6 +93,26 @@ const DBSwitch = class {
92
93
  this._validMessageId = `${mId}${constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX}`;
93
94
  this._invalidMessageId = `${mId}${constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`;
94
95
  }
96
+ setupObserver(element) {
97
+ if (!element)
98
+ return;
99
+ const parent = element.closest("db-switch");
100
+ if (!parent || this.observer)
101
+ return;
102
+ this.observer = new MutationObserver((mutations) => {
103
+ if (mutations.some((mutation) => {
104
+ var _a;
105
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
106
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
107
+ })) {
108
+ this.enableAttributePassing(element, "db-switch");
109
+ }
110
+ });
111
+ this.observer.observe(parent, {
112
+ attributes: true,
113
+ attributeOldValue: true,
114
+ });
115
+ }
95
116
  /**
96
117
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
97
118
  * @param element the ref for the component
@@ -105,10 +126,15 @@ const DBSwitch = class {
105
126
  const attr = attributes.item(i);
106
127
  if (attr && attr.name !== 'data-density' &&
107
128
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
108
- element.setAttribute(attr.name, attr.value);
129
+ if (attr.value) {
130
+ element.setAttribute(attr.name, attr.value);
131
+ }
132
+ else {
133
+ element.removeAttribute(attr.name);
134
+ }
109
135
  parent.removeAttribute(attr.name);
110
136
  }
111
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
137
+ else if (attr && ["style"].includes(attr.name)) {
112
138
  element.setAttribute(attr.name, attr.value);
113
139
  parent.removeAttribute(attr.name);
114
140
  }
@@ -116,7 +142,7 @@ const DBSwitch = class {
116
142
  const isWebComponent = attr.value.includes("hydrated");
117
143
  const value = attr.value.replace("hydrated", "").trim();
118
144
  const currentClass = element.getAttribute("class");
119
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
145
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
120
146
  if (isWebComponent) {
121
147
  // Stencil is using this class for lazy loading component
122
148
  parent.setAttribute("class", "hydrated");
@@ -180,23 +206,31 @@ const DBSwitch = class {
180
206
  }
181
207
  }
182
208
  this.enableAttributePassing(this._ref, "db-switch");
183
- this.resetIds();
184
- this.handleValidation();
185
- this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
209
+ const onMountHook_0 = () => {
210
+ this.resetIds();
211
+ this.handleValidation();
212
+ this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
213
+ };
214
+ onMountHook_0();
215
+ const onMountHook_1 = () => {
216
+ this.setupObserver(this._ref);
217
+ };
218
+ onMountHook_1();
186
219
  this.watch0Fn();
187
220
  this.watch1Fn();
188
221
  this.watch2Fn();
189
222
  this.watch3Fn();
190
223
  }
191
224
  disconnectedCallback() {
192
- var _a;
225
+ var _a, _b;
193
226
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
227
+ (_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
194
228
  }
195
229
  render() {
196
230
  var _a, _b;
197
- return (index.h("div", { key: 'c82a033ffefd600a9c96ea487d9fd909ff1b72de', class: index$1.cls("db-switch", this.className), "data-visual-aid": index$1.getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, index.h("label", { key: 'c1047871716d0d24f026c8ffaf37581a2b080375', htmlFor: this._id }, index.h("input", { key: '883712cbfdd95c525ea615270546e2127f9bdbf8', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
231
+ return (index.h("div", { key: 'e95dafb6d580ef8cfbd54b91ee77da4809984862', class: index$1.cls("db-switch", this.className), "data-visual-aid": index$1.getBooleanAsString(this.visualAid, "visualAid"), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, index.h("label", { key: '533173f9a522375012848dbff80b0e357f5e1b30', htmlFor: this._id }, index.h("input", { key: '68e6d40e2b5654508d8ebaf9be66dd56aa39c8f2', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
198
232
  this._ref = el;
199
- }, checked: index$1.getBoolean(this.checked, "checked"), value: this.value, disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: index$1.getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, index.h("slot", { key: '106b299aca93a4e6498c74e7c43df87564122c40' })), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'e2848f2de604908a0e05fbb0cde3c77a36adcc4e', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '37bcc9cd24041762a62822d118803b0eef247f12', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
233
+ }, checked: index$1.getBoolean(this.checked, "checked"), value: this.value, disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: index$1.getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, index.h("slot", { key: 'a89d78f024905190780c3c8436773ab710115857' })), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'e170d8c368afd61c7c94c10bb2ea13fe4520d692', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: 'd8a5b8e7a5e0f70f245de5756f7b2d19640b4863', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
200
234
  }
201
235
  get rootElement() { return index.getElement(this); }
202
236
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-HN8AqU2e.js');
4
- var index$1 = require('./index-2_9ESkQu.js');
3
+ var index = require('./index-C313bRqJ.js');
4
+ var index$1 = require('./index-spuu3sXz.js');
5
5
 
6
6
  const DBTabItem = class {
7
7
  constructor(hostRef) {
@@ -12,10 +12,11 @@ const DBTabItem = class {
12
12
  this.initialized = false;
13
13
  this._listenerAdded = false;
14
14
  this.boundSetSelectedOnChange = undefined;
15
+ this.observer = undefined;
15
16
  }
16
17
  setSelectedOnChange(event) {
17
18
  event.stopPropagation();
18
- this._selected = index$1.getBooleanAsString(event.target === this._ref);
19
+ this._selected = index$1.getBooleanAsString(event.target === this._ref, "selected");
19
20
  }
20
21
  handleNameAttribute() {
21
22
  if (this._ref) {
@@ -33,6 +34,26 @@ const DBTabItem = class {
33
34
  this.change.emit(event);
34
35
  }
35
36
  }
37
+ setupObserver(element) {
38
+ if (!element)
39
+ return;
40
+ const parent = element.closest("db-tab-item");
41
+ if (!parent || this.observer)
42
+ return;
43
+ this.observer = new MutationObserver((mutations) => {
44
+ if (mutations.some((mutation) => {
45
+ var _a;
46
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
47
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
48
+ })) {
49
+ this.enableAttributePassing(element, "db-tab-item");
50
+ }
51
+ });
52
+ this.observer.observe(parent, {
53
+ attributes: true,
54
+ attributeOldValue: true,
55
+ });
56
+ }
36
57
  /**
37
58
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
38
59
  * @param element the ref for the component
@@ -46,10 +67,15 @@ const DBTabItem = class {
46
67
  const attr = attributes.item(i);
47
68
  if (attr && attr.name !== 'data-density' &&
48
69
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
49
- element.setAttribute(attr.name, attr.value);
70
+ if (attr.value) {
71
+ element.setAttribute(attr.name, attr.value);
72
+ }
73
+ else {
74
+ element.removeAttribute(attr.name);
75
+ }
50
76
  parent.removeAttribute(attr.name);
51
77
  }
52
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
78
+ else if (attr && ["style"].includes(attr.name)) {
53
79
  element.setAttribute(attr.name, attr.value);
54
80
  parent.removeAttribute(attr.name);
55
81
  }
@@ -57,7 +83,7 @@ const DBTabItem = class {
57
83
  const isWebComponent = attr.value.includes("hydrated");
58
84
  const value = attr.value.replace("hydrated", "").trim();
59
85
  const currentClass = element.getAttribute("class");
60
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
86
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
61
87
  if (isWebComponent) {
62
88
  // Stencil is using this class for lazy loading component
63
89
  parent.setAttribute("class", "hydrated");
@@ -81,7 +107,7 @@ const DBTabItem = class {
81
107
  }
82
108
  // Initialize selected state from either active prop (set by parent) or checked attribute
83
109
  if (this.active || this._ref.checked) {
84
- this._selected = index$1.getBooleanAsString(true);
110
+ this._selected = index$1.getBooleanAsString(true, "selected");
85
111
  this._ref.click();
86
112
  }
87
113
  }
@@ -105,24 +131,33 @@ const DBTabItem = class {
105
131
  }
106
132
  }
107
133
  this.enableAttributePassing(this._ref, "db-tab-item");
108
- this.boundSetSelectedOnChange = this.setSelectedOnChange.bind(this);
109
- this.initialized = true;
134
+ const onMountHook_0 = () => {
135
+ this.boundSetSelectedOnChange = this.setSelectedOnChange.bind(this);
136
+ this.initialized = true;
137
+ };
138
+ onMountHook_0();
139
+ const onMountHook_1 = () => {
140
+ this.setupObserver(this._ref);
141
+ };
142
+ onMountHook_1();
110
143
  this.watch0Fn();
111
144
  this.watch1Fn();
112
145
  }
113
146
  disconnectedCallback() {
114
- var _a;
147
+ var _a, _b;
115
148
  if (this._listenerAdded && this._ref && this.boundSetSelectedOnChange) {
116
149
  (_a = this._ref
117
150
  .closest("[role=tablist]")) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.boundSetSelectedOnChange);
118
151
  this._listenerAdded = false;
119
152
  }
153
+ (_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
120
154
  }
121
155
  render() {
122
- var _a, _b, _c, _d, _e, _f;
123
- return (index.h("li", { key: '8f237a10d09644e2bad44ff457e5ae7bb6ed80f3', class: index$1.cls("db-tab-item", this.className), role: "none" }, index.h("label", { key: '530c603c5927f732cc76920537fe169a15ebbd4c', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": index$1.getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing), "data-no-text": index$1.getBooleanAsString(this.noText) }, index.h("input", { key: '8551abf9afc26bb0edfb9a8f94adb21f5c95bf4e', type: "radio", role: "tab", disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: index$1.getBoolean(this.checked, "checked"), ref: (el) => {
156
+ var _a, _b, _c, _d, _e;
157
+ return (index.h("li", { key: '003e5b968c65ba01df1b97e8f75592aee31125d9', class: index$1.cls("db-tab-item", this.className), role: "none" }, index.h("label", { key: '682e5a3cf7036abcbbbbbba9f42ce534d7a4145d', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": index$1.getBooleanAsString(this.showIconLeading, "showIconLeading") ||
158
+ index$1.getBooleanAsString(this.showIcon, "showIcon"), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing, "showIconTrailing"), "data-no-text": index$1.getBooleanAsString(this.noText, "noText") }, index.h("input", { key: 'ffb91a8e7248a8e5a2a7a05c6828fc6203e1eb37', type: "radio", role: "tab", disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: index$1.getBoolean(this.checked, "checked"), ref: (el) => {
124
159
  this._ref = el;
125
- }, name: this._name, id: (_e = this.id) !== null && _e !== void 0 ? _e : (_f = this.propOverrides) === null || _f === void 0 ? void 0 : _f.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, index.h("slot", { key: '4f1f678c9edcef4f977f3677903b682f5bf723b4' }))));
160
+ }, name: this._name, id: (_d = this.id) !== null && _d !== void 0 ? _d : (_e = this.propOverrides) === null || _e === void 0 ? void 0 : _e.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, index.h("slot", { key: '2d079503cd365448cd054e05bfaec608ff476e04' }))));
126
161
  }
127
162
  get rootElement() { return index.getElement(this); }
128
163
  static get watchers() { return {
@@ -144,6 +179,27 @@ const DBTabItem = class {
144
179
  const DBTabList = class {
145
180
  constructor(hostRef) {
146
181
  index.registerInstance(this, hostRef);
182
+ this.observer = undefined;
183
+ }
184
+ setupObserver(element) {
185
+ if (!element)
186
+ return;
187
+ const parent = element.closest("db-tab-list");
188
+ if (!parent || this.observer)
189
+ return;
190
+ this.observer = new MutationObserver((mutations) => {
191
+ if (mutations.some((mutation) => {
192
+ var _a;
193
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
194
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
195
+ })) {
196
+ this.enableAttributePassing(element, "db-tab-list");
197
+ }
198
+ });
199
+ this.observer.observe(parent, {
200
+ attributes: true,
201
+ attributeOldValue: true,
202
+ });
147
203
  }
148
204
  /**
149
205
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -158,10 +214,15 @@ const DBTabList = class {
158
214
  const attr = attributes.item(i);
159
215
  if (attr && attr.name !== 'data-density' &&
160
216
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
161
- element.setAttribute(attr.name, attr.value);
217
+ if (attr.value) {
218
+ element.setAttribute(attr.name, attr.value);
219
+ }
220
+ else {
221
+ element.removeAttribute(attr.name);
222
+ }
162
223
  parent.removeAttribute(attr.name);
163
224
  }
164
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
225
+ else if (attr && ["style"].includes(attr.name)) {
165
226
  element.setAttribute(attr.name, attr.value);
166
227
  parent.removeAttribute(attr.name);
167
228
  }
@@ -169,7 +230,7 @@ const DBTabList = class {
169
230
  const isWebComponent = attr.value.includes("hydrated");
170
231
  const value = attr.value.replace("hydrated", "").trim();
171
232
  const currentClass = element.getAttribute("class");
172
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
233
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
173
234
  if (isWebComponent) {
174
235
  // Stencil is using this class for lazy loading component
175
236
  parent.setAttribute("class", "hydrated");
@@ -189,12 +250,17 @@ const DBTabList = class {
189
250
  }
190
251
  }
191
252
  this.enableAttributePassing(this._ref, "db-tab-list");
253
+ this.setupObserver(this._ref);
254
+ }
255
+ disconnectedCallback() {
256
+ var _a;
257
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
192
258
  }
193
259
  render() {
194
260
  var _a, _b;
195
- return (index.h("div", { key: 'ce54a7c3bef0090cf7aa0d6b11fedd6d3b4bbd07', class: index$1.cls("db-tab-list", this.className), ref: (el) => {
261
+ return (index.h("div", { key: '2538ba05ecad54c8c29dda93a08acb61faf02309', class: index$1.cls("db-tab-list", this.className), ref: (el) => {
196
262
  this._ref = el;
197
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '8ac107177182afdde5163dee58917fa69b75e40c', role: "tablist" }, index.h("slot", { key: '0d53d4b529c439784d7c66894b967b41fb9eb38d' }))));
263
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '86824302eb2cc92ca45a61d8bdec0f34cd679db6', role: "tablist" }, index.h("slot", { key: 'b56406b1e0291a29905b599531c0dccd9c035504' }))));
198
264
  }
199
265
  get rootElement() { return index.getElement(this); }
200
266
  };
@@ -202,6 +268,27 @@ const DBTabList = class {
202
268
  const DBTabPanel = class {
203
269
  constructor(hostRef) {
204
270
  index.registerInstance(this, hostRef);
271
+ this.observer = undefined;
272
+ }
273
+ setupObserver(element) {
274
+ if (!element)
275
+ return;
276
+ const parent = element.closest("db-tab-panel");
277
+ if (!parent || this.observer)
278
+ return;
279
+ this.observer = new MutationObserver((mutations) => {
280
+ if (mutations.some((mutation) => {
281
+ var _a;
282
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
283
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
284
+ })) {
285
+ this.enableAttributePassing(element, "db-tab-panel");
286
+ }
287
+ });
288
+ this.observer.observe(parent, {
289
+ attributes: true,
290
+ attributeOldValue: true,
291
+ });
205
292
  }
206
293
  /**
207
294
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
@@ -216,10 +303,15 @@ const DBTabPanel = class {
216
303
  const attr = attributes.item(i);
217
304
  if (attr && attr.name !== 'data-density' &&
218
305
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
219
- element.setAttribute(attr.name, attr.value);
306
+ if (attr.value) {
307
+ element.setAttribute(attr.name, attr.value);
308
+ }
309
+ else {
310
+ element.removeAttribute(attr.name);
311
+ }
220
312
  parent.removeAttribute(attr.name);
221
313
  }
222
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
314
+ else if (attr && ["style"].includes(attr.name)) {
223
315
  element.setAttribute(attr.name, attr.value);
224
316
  parent.removeAttribute(attr.name);
225
317
  }
@@ -227,7 +319,7 @@ const DBTabPanel = class {
227
319
  const isWebComponent = attr.value.includes("hydrated");
228
320
  const value = attr.value.replace("hydrated", "").trim();
229
321
  const currentClass = element.getAttribute("class");
230
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
322
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
231
323
  if (isWebComponent) {
232
324
  // Stencil is using this class for lazy loading component
233
325
  parent.setAttribute("class", "hydrated");
@@ -247,12 +339,20 @@ const DBTabPanel = class {
247
339
  }
248
340
  }
249
341
  this.enableAttributePassing(this._ref, "db-tab-panel");
342
+ const onMountHook_1 = () => {
343
+ this.setupObserver(this._ref);
344
+ };
345
+ onMountHook_1();
346
+ }
347
+ disconnectedCallback() {
348
+ var _a;
349
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
250
350
  }
251
351
  render() {
252
352
  var _a, _b;
253
- return (index.h("section", { key: '86076593b5c38755ddd08bbb930bb8252b9e5e78', class: index$1.cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
353
+ return (index.h("section", { key: 'd7179207343d512194f69f6d99a34897c146c00a', class: index$1.cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
254
354
  this._ref = el;
255
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, index.h("slot", { key: '5069f16c7266dd495e8f9fb03c3bb69546976842' })));
355
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, index.h("slot", { key: 'dc745b430dd17f253cf9403c28f6c2cbd5b59020' })));
256
356
  }
257
357
  get rootElement() { return index.getElement(this); }
258
358
  };