@db-ux/wc-core-components 4.11.0 → 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 (316) hide show
  1. package/CHANGELOG.md +12 -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.js +1 -1
  36. package/bundle/db-table-caption.js +1 -1
  37. package/bundle/db-table-data-cell.js +1 -1
  38. package/bundle/db-table-footer.js +1 -1
  39. package/bundle/db-table-head.js +1 -1
  40. package/bundle/db-table-header-cell.js +1 -1
  41. package/bundle/db-table-row.js +1 -1
  42. package/bundle/db-table.js +1 -1
  43. package/bundle/db-tabs.js +1 -1
  44. package/bundle/db-tag.js +1 -1
  45. package/bundle/db-textarea.js +1 -1
  46. package/bundle/db-tooltip.js +1 -1
  47. package/bundle/p-3Da4lo5j.js +1 -0
  48. package/bundle/p-BEcb3EOO.js +1 -0
  49. package/bundle/p-BEolc6Da.js +1 -0
  50. package/bundle/p-BekmqY3B.js +1 -0
  51. package/bundle/p-BmRO4X-P.js +1 -0
  52. package/bundle/p-BrQIYm5N.js +1 -0
  53. package/bundle/p-BxZ0zFXf.js +1 -0
  54. package/bundle/p-C2viXF7U.js +1 -0
  55. package/bundle/p-C4iD-won.js +1 -0
  56. package/bundle/p-CHg_VPD9.js +1 -0
  57. package/bundle/p-CZ9SsTOA.js +1 -0
  58. package/bundle/p-CewqZGHg.js +1 -0
  59. package/bundle/p-CotiEHZi.js +1 -0
  60. package/bundle/p-D1orcIJf.js +1 -0
  61. package/bundle/p-D9RSX1St.js +1 -0
  62. package/bundle/p-DbgzEek1.js +1 -0
  63. package/bundle/p-DqNXsduK.js +1 -0
  64. package/bundle/p-Duacd-NX.js +1 -0
  65. package/bundle/p-k5Hci0ok.js +1 -0
  66. package/bundle/p-mk64Fltq.js +1 -0
  67. package/dist/cjs/db-accordion-item.cjs.entry.js +46 -9
  68. package/dist/cjs/db-accordion.cjs.entry.js +43 -6
  69. package/dist/cjs/db-badge.cjs.entry.js +43 -6
  70. package/dist/cjs/db-brand.cjs.entry.js +36 -5
  71. package/dist/cjs/db-button.cjs.entry.js +36 -5
  72. package/dist/cjs/db-card.cjs.entry.js +36 -5
  73. package/dist/cjs/db-checkbox.cjs.entry.js +45 -11
  74. package/dist/cjs/db-custom-button.cjs.entry.js +36 -5
  75. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +190 -31
  76. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +36 -5
  77. package/dist/cjs/db-custom-select.cjs.entry.js +60 -26
  78. package/dist/cjs/db-divider.cjs.entry.js +35 -4
  79. package/dist/cjs/db-drawer.cjs.entry.js +45 -8
  80. package/dist/cjs/db-header.cjs.entry.js +43 -6
  81. package/dist/cjs/db-icon.cjs.entry.js +36 -5
  82. package/dist/cjs/db-infotext.cjs.entry.js +36 -5
  83. package/dist/cjs/db-link_4.cjs.entry.js +65 -19
  84. package/dist/cjs/db-navigation-item.cjs.entry.js +46 -9
  85. package/dist/cjs/db-navigation.cjs.entry.js +36 -5
  86. package/dist/cjs/db-notification.cjs.entry.js +36 -5
  87. package/dist/cjs/db-page.cjs.entry.js +48 -13
  88. package/dist/cjs/db-popover.cjs.entry.js +43 -6
  89. package/dist/cjs/db-radio.cjs.entry.js +42 -8
  90. package/dist/cjs/db-section.cjs.entry.js +36 -5
  91. package/dist/cjs/db-select.cjs.entry.js +45 -11
  92. package/dist/cjs/db-stack.cjs.entry.js +36 -5
  93. package/dist/cjs/db-switch.cjs.entry.js +45 -11
  94. package/dist/cjs/db-tab-item_3.cjs.entry.js +118 -19
  95. package/dist/cjs/db-table-body_3.cjs.entry.js +53 -12
  96. package/dist/cjs/db-table-caption.cjs.entry.js +36 -5
  97. package/dist/cjs/db-table.cjs.entry.js +35 -4
  98. package/dist/cjs/db-tabs.cjs.entry.js +42 -8
  99. package/dist/cjs/db-textarea.cjs.entry.js +45 -10
  100. package/dist/cjs/db-tooltip.cjs.entry.js +144 -20
  101. package/dist/cjs/db-ux.cjs.js +1 -1
  102. package/dist/cjs/loader.cjs.js +1 -1
  103. package/dist/collection/components/accordion/accordion.js +45 -7
  104. package/dist/collection/components/accordion-item/accordion-item.js +48 -10
  105. package/dist/collection/components/badge/badge.js +45 -7
  106. package/dist/collection/components/brand/brand.js +43 -5
  107. package/dist/collection/components/button/button.js +43 -5
  108. package/dist/collection/components/card/card.js +43 -5
  109. package/dist/collection/components/checkbox/checkbox.js +47 -12
  110. package/dist/collection/components/custom-button/custom-button.js +43 -5
  111. package/dist/collection/components/custom-select/custom-select.js +62 -27
  112. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +41 -5
  113. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +43 -5
  114. package/dist/collection/components/custom-select-list/custom-select-list.js +43 -5
  115. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +37 -5
  116. package/dist/collection/components/divider/divider.js +42 -4
  117. package/dist/collection/components/drawer/drawer.js +47 -9
  118. package/dist/collection/components/header/header.js +45 -7
  119. package/dist/collection/components/icon/icon.js +43 -5
  120. package/dist/collection/components/infotext/infotext.js +43 -5
  121. package/dist/collection/components/input/input.js +49 -13
  122. package/dist/collection/components/link/link.js +43 -5
  123. package/dist/collection/components/navigation/navigation.js +43 -5
  124. package/dist/collection/components/navigation-item/navigation-item.js +48 -10
  125. package/dist/collection/components/notification/notification.js +43 -5
  126. package/dist/collection/components/page/page.js +50 -14
  127. package/dist/collection/components/popover/popover.js +45 -7
  128. package/dist/collection/components/radio/radio.js +44 -9
  129. package/dist/collection/components/section/section.js +43 -5
  130. package/dist/collection/components/select/select.js +47 -12
  131. package/dist/collection/components/stack/stack.js +43 -5
  132. package/dist/collection/components/switch/switch.js +47 -12
  133. package/dist/collection/components/tab-item/tab-item.js +45 -10
  134. package/dist/collection/components/tab-list/tab-list.js +43 -5
  135. package/dist/collection/components/tab-panel/tab-panel.js +48 -5
  136. package/dist/collection/components/table/table.js +37 -5
  137. package/dist/collection/components/table-body/table-body.js +9 -4
  138. package/dist/collection/components/table-caption/table-caption.js +43 -5
  139. package/dist/collection/components/table-data-cell/table-data-cell.js +10 -5
  140. package/dist/collection/components/table-footer/table-footer.js +9 -4
  141. package/dist/collection/components/table-head/table-head.js +42 -4
  142. package/dist/collection/components/table-header-cell/table-header-cell.js +10 -5
  143. package/dist/collection/components/table-row/table-row.js +9 -4
  144. package/dist/collection/components/tabs/tabs.js +44 -9
  145. package/dist/collection/components/tag/tag.js +43 -5
  146. package/dist/collection/components/textarea/textarea.js +47 -11
  147. package/dist/collection/components/tooltip/tooltip.js +150 -21
  148. package/dist/custom-elements.json +710 -0
  149. package/dist/db-ux/db-ux.esm.js +1 -1
  150. package/dist/db-ux/p-0123ee1b.entry.js +1 -0
  151. package/dist/db-ux/p-090b1797.entry.js +1 -0
  152. package/dist/db-ux/p-0e17c5a0.entry.js +1 -0
  153. package/dist/db-ux/p-194e851c.entry.js +1 -0
  154. package/dist/db-ux/p-281f5e3e.entry.js +1 -0
  155. package/dist/db-ux/p-2ae377e6.entry.js +1 -0
  156. package/dist/db-ux/p-2cf4345f.entry.js +1 -0
  157. package/dist/db-ux/p-2e6c8304.entry.js +1 -0
  158. package/dist/db-ux/p-335391d4.entry.js +1 -0
  159. package/dist/db-ux/p-34235204.entry.js +1 -0
  160. package/dist/db-ux/p-3569bb3c.entry.js +1 -0
  161. package/dist/db-ux/p-398f9165.entry.js +1 -0
  162. package/dist/db-ux/p-5070470f.entry.js +1 -0
  163. package/dist/db-ux/p-5e08712d.entry.js +1 -0
  164. package/dist/db-ux/p-63d98f9d.entry.js +1 -0
  165. package/dist/db-ux/p-6aa92091.entry.js +1 -0
  166. package/dist/db-ux/p-78b7e6f6.entry.js +1 -0
  167. package/dist/db-ux/p-7ca4bc82.entry.js +1 -0
  168. package/dist/db-ux/p-8f989150.entry.js +1 -0
  169. package/dist/db-ux/p-8fa7a578.entry.js +1 -0
  170. package/dist/db-ux/p-91052c75.entry.js +1 -0
  171. package/dist/db-ux/p-9ccd42b1.entry.js +1 -0
  172. package/dist/db-ux/p-a4d9f6e2.entry.js +1 -0
  173. package/dist/db-ux/p-af248e57.entry.js +1 -0
  174. package/dist/db-ux/p-ba82a0b0.entry.js +1 -0
  175. package/dist/db-ux/p-c2ce6ecd.entry.js +1 -0
  176. package/dist/db-ux/p-d7b5748d.entry.js +1 -0
  177. package/dist/db-ux/p-dfbbe502.entry.js +1 -0
  178. package/dist/db-ux/p-e7a400a2.entry.js +1 -0
  179. package/dist/db-ux/p-ef1aa878.entry.js +1 -0
  180. package/dist/db-ux/p-f1daaefa.entry.js +1 -0
  181. package/dist/db-ux/p-f6312d2c.entry.js +1 -0
  182. package/dist/db-ux/p-fbf09569.entry.js +1 -0
  183. package/dist/db-ux/p-ff11c071.entry.js +1 -0
  184. package/dist/esm/db-accordion-item.entry.js +46 -9
  185. package/dist/esm/db-accordion.entry.js +43 -6
  186. package/dist/esm/db-badge.entry.js +43 -6
  187. package/dist/esm/db-brand.entry.js +36 -5
  188. package/dist/esm/db-button.entry.js +36 -5
  189. package/dist/esm/db-card.entry.js +36 -5
  190. package/dist/esm/db-checkbox.entry.js +45 -11
  191. package/dist/esm/db-custom-button.entry.js +36 -5
  192. package/dist/esm/db-custom-select-dropdown_5.entry.js +190 -31
  193. package/dist/esm/db-custom-select-form-field.entry.js +36 -5
  194. package/dist/esm/db-custom-select.entry.js +60 -26
  195. package/dist/esm/db-divider.entry.js +35 -4
  196. package/dist/esm/db-drawer.entry.js +45 -8
  197. package/dist/esm/db-header.entry.js +43 -6
  198. package/dist/esm/db-icon.entry.js +36 -5
  199. package/dist/esm/db-infotext.entry.js +36 -5
  200. package/dist/esm/db-link_4.entry.js +65 -19
  201. package/dist/esm/db-navigation-item.entry.js +47 -10
  202. package/dist/esm/db-navigation.entry.js +36 -5
  203. package/dist/esm/db-notification.entry.js +36 -5
  204. package/dist/esm/db-page.entry.js +48 -13
  205. package/dist/esm/db-popover.entry.js +43 -6
  206. package/dist/esm/db-radio.entry.js +42 -8
  207. package/dist/esm/db-section.entry.js +36 -5
  208. package/dist/esm/db-select.entry.js +45 -11
  209. package/dist/esm/db-stack.entry.js +36 -5
  210. package/dist/esm/db-switch.entry.js +45 -11
  211. package/dist/esm/db-tab-item_3.entry.js +118 -19
  212. package/dist/esm/db-table-body_3.entry.js +53 -12
  213. package/dist/esm/db-table-caption.entry.js +36 -5
  214. package/dist/esm/db-table.entry.js +35 -4
  215. package/dist/esm/db-tabs.entry.js +43 -9
  216. package/dist/esm/db-textarea.entry.js +45 -10
  217. package/dist/esm/db-tooltip.entry.js +144 -20
  218. package/dist/esm/db-ux.js +1 -1
  219. package/dist/esm/loader.js +1 -1
  220. package/dist/types/components/accordion/accordion.d.ts +3 -0
  221. package/dist/types/components/accordion-item/accordion-item.d.ts +3 -0
  222. package/dist/types/components/badge/badge.d.ts +3 -0
  223. package/dist/types/components/brand/brand.d.ts +3 -0
  224. package/dist/types/components/button/button.d.ts +3 -0
  225. package/dist/types/components/card/card.d.ts +3 -0
  226. package/dist/types/components/checkbox/checkbox.d.ts +2 -0
  227. package/dist/types/components/custom-button/custom-button.d.ts +3 -0
  228. package/dist/types/components/custom-select/custom-select.d.ts +2 -0
  229. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +3 -0
  230. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +3 -0
  231. package/dist/types/components/custom-select-list/custom-select-list.d.ts +3 -0
  232. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +3 -0
  233. package/dist/types/components/divider/divider.d.ts +3 -0
  234. package/dist/types/components/drawer/drawer.d.ts +3 -0
  235. package/dist/types/components/header/header.d.ts +3 -0
  236. package/dist/types/components/icon/icon.d.ts +3 -0
  237. package/dist/types/components/infotext/infotext.d.ts +3 -0
  238. package/dist/types/components/input/input.d.ts +2 -0
  239. package/dist/types/components/link/link.d.ts +3 -0
  240. package/dist/types/components/navigation/navigation.d.ts +3 -0
  241. package/dist/types/components/navigation-item/navigation-item.d.ts +3 -0
  242. package/dist/types/components/notification/notification.d.ts +3 -0
  243. package/dist/types/components/page/page.d.ts +2 -0
  244. package/dist/types/components/popover/popover.d.ts +3 -0
  245. package/dist/types/components/radio/radio.d.ts +2 -0
  246. package/dist/types/components/section/section.d.ts +3 -0
  247. package/dist/types/components/select/select.d.ts +2 -0
  248. package/dist/types/components/stack/stack.d.ts +3 -0
  249. package/dist/types/components/switch/switch.d.ts +2 -0
  250. package/dist/types/components/tab-item/tab-item.d.ts +2 -0
  251. package/dist/types/components/tab-list/tab-list.d.ts +3 -0
  252. package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
  253. package/dist/types/components/table/table.d.ts +3 -0
  254. package/dist/types/components/table-caption/table-caption.d.ts +3 -0
  255. package/dist/types/components/table-head/table-head.d.ts +3 -0
  256. package/dist/types/components/tabs/tabs.d.ts +2 -0
  257. package/dist/types/components/tag/tag.d.ts +3 -0
  258. package/dist/types/components/textarea/textarea.d.ts +2 -0
  259. package/dist/types/components/tooltip/model.d.ts +9 -0
  260. package/dist/types/components/tooltip/tooltip.d.ts +8 -0
  261. package/dist/web-types.json +84 -40
  262. package/package.json +6 -6
  263. package/bundle/p-B5ANMEnQ.js +0 -1
  264. package/bundle/p-BJwvv-yT.js +0 -1
  265. package/bundle/p-BNiKxu3y.js +0 -1
  266. package/bundle/p-B_bPnncM.js +0 -1
  267. package/bundle/p-BnLhi6Lz.js +0 -1
  268. package/bundle/p-BrBlnLrn.js +0 -1
  269. package/bundle/p-CByFfoSH.js +0 -1
  270. package/bundle/p-CQo0C7QE.js +0 -1
  271. package/bundle/p-CR2ZbfYe.js +0 -1
  272. package/bundle/p-CeDu282h.js +0 -1
  273. package/bundle/p-CfLPOLHz.js +0 -1
  274. package/bundle/p-CoOxyQb2.js +0 -1
  275. package/bundle/p-CqED0CfD.js +0 -1
  276. package/bundle/p-Cr_z1Jfi.js +0 -1
  277. package/bundle/p-D-XzX0R7.js +0 -1
  278. package/bundle/p-DMSIvqcA.js +0 -1
  279. package/bundle/p-DUiroUyR.js +0 -1
  280. package/bundle/p-DdyMClpj.js +0 -1
  281. package/bundle/p-DjVjS2Tb.js +0 -1
  282. package/bundle/p-in4Kv88F.js +0 -1
  283. package/dist/db-ux/p-08271c80.entry.js +0 -1
  284. package/dist/db-ux/p-105ffa74.entry.js +0 -1
  285. package/dist/db-ux/p-15adca91.entry.js +0 -1
  286. package/dist/db-ux/p-1a322a0c.entry.js +0 -1
  287. package/dist/db-ux/p-1f7232c0.entry.js +0 -1
  288. package/dist/db-ux/p-27e2f6f2.entry.js +0 -1
  289. package/dist/db-ux/p-2907f214.entry.js +0 -1
  290. package/dist/db-ux/p-2ff958e4.entry.js +0 -1
  291. package/dist/db-ux/p-3423b7af.entry.js +0 -1
  292. package/dist/db-ux/p-365e6edf.entry.js +0 -1
  293. package/dist/db-ux/p-42516007.entry.js +0 -1
  294. package/dist/db-ux/p-5045182c.entry.js +0 -1
  295. package/dist/db-ux/p-5e1d42e5.entry.js +0 -1
  296. package/dist/db-ux/p-61b28212.entry.js +0 -1
  297. package/dist/db-ux/p-6850a53c.entry.js +0 -1
  298. package/dist/db-ux/p-6bff55b4.entry.js +0 -1
  299. package/dist/db-ux/p-6e7c5e42.entry.js +0 -1
  300. package/dist/db-ux/p-76adf385.entry.js +0 -1
  301. package/dist/db-ux/p-78f7b353.entry.js +0 -1
  302. package/dist/db-ux/p-7fa5d304.entry.js +0 -1
  303. package/dist/db-ux/p-95b69e71.entry.js +0 -1
  304. package/dist/db-ux/p-99ebe6ec.entry.js +0 -1
  305. package/dist/db-ux/p-a5dc355d.entry.js +0 -1
  306. package/dist/db-ux/p-a6113789.entry.js +0 -1
  307. package/dist/db-ux/p-b9c0feaf.entry.js +0 -1
  308. package/dist/db-ux/p-c14fa91a.entry.js +0 -1
  309. package/dist/db-ux/p-c65b807e.entry.js +0 -1
  310. package/dist/db-ux/p-dd9cedbe.entry.js +0 -1
  311. package/dist/db-ux/p-e3f705fd.entry.js +0 -1
  312. package/dist/db-ux/p-e4cddc9f.entry.js +0 -1
  313. package/dist/db-ux/p-e7a8612c.entry.js +0 -1
  314. package/dist/db-ux/p-ee8c3243.entry.js +0 -1
  315. package/dist/db-ux/p-f0d0acfc.entry.js +0 -1
  316. package/dist/db-ux/p-f15748ea.entry.js +0 -1
@@ -46,6 +46,7 @@ const DBCustomSelect = class {
46
46
  this._searchValue = undefined;
47
47
  this.selectAllChecked = false;
48
48
  this.selectAllIndeterminate = false;
49
+ this.observer = undefined;
49
50
  this.satisfyReact = function satisfyReact(event) {
50
51
  // This is a function to satisfy React
51
52
  event.stopPropagation();
@@ -75,7 +76,7 @@ const DBCustomSelect = class {
75
76
  DEFAULT_INVALID_MESSAGE;
76
77
  if (hasVoiceOver()) {
77
78
  this._voiceOverFallback = this._invalidMessage;
78
- delay(() => (this._voiceOverFallback = ""), 1000);
79
+ void delay(() => (this._voiceOverFallback = ""), 1000);
79
80
  }
80
81
  if (this._userInteraction) {
81
82
  this._validity = (_c = this.validation) !== null && _c !== void 0 ? _c : "invalid";
@@ -87,7 +88,7 @@ const DBCustomSelect = class {
87
88
  this.setDescById(this._validMessageId);
88
89
  if (hasVoiceOver()) {
89
90
  this._voiceOverFallback = (_e = this.validMessage) !== null && _e !== void 0 ? _e : DEFAULT_VALID_MESSAGE;
90
- delay(() => (this._voiceOverFallback = ""), 1000);
91
+ void delay(() => (this._voiceOverFallback = ""), 1000);
91
92
  }
92
93
  this._validity = (_f = this.validation) !== null && _f !== void 0 ? _f : "valid";
93
94
  }
@@ -186,7 +187,7 @@ const DBCustomSelect = class {
186
187
  const dropdown = this.detailsRef.querySelector("article");
187
188
  if (dropdown) {
188
189
  // This is a workaround for Angular
189
- delay(() => {
190
+ void delay(() => {
190
191
  var _a;
191
192
  handleFixedDropdown(dropdown, this.detailsRef, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
192
193
  }, 1);
@@ -243,7 +244,7 @@ const DBCustomSelect = class {
243
244
  // or to the last checkbox
244
245
  const search = getSearchInput(this.detailsRef);
245
246
  if (search) {
246
- delay(() => {
247
+ void delay(() => {
247
248
  search.focus();
248
249
  }, 100);
249
250
  }
@@ -405,7 +406,7 @@ const DBCustomSelect = class {
405
406
  ? checkboxes.at(1)
406
407
  : first;
407
408
  if (checkbox) {
408
- delay(() => {
409
+ void delay(() => {
409
410
  // Takes some time until element can be focused
410
411
  checkbox.focus();
411
412
  }, 1);
@@ -418,7 +419,7 @@ const DBCustomSelect = class {
418
419
  // Focus search if possible
419
420
  const search = getSearchInput(this.detailsRef);
420
421
  if (search) {
421
- delay(() => {
422
+ void delay(() => {
422
423
  // Takes some time until element can be focused
423
424
  search.focus();
424
425
  }, 1);
@@ -484,6 +485,26 @@ const DBCustomSelect = class {
484
485
  this._selectedLabelsId = mId + "-selected-labels";
485
486
  this._infoTextId = mId + "-info";
486
487
  }
488
+ setupObserver(element) {
489
+ if (!element)
490
+ return;
491
+ const parent = element.closest("db-custom-select");
492
+ if (!parent || this.observer)
493
+ return;
494
+ this.observer = new MutationObserver((mutations) => {
495
+ if (mutations.some((mutation) => {
496
+ var _a;
497
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
498
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
499
+ })) {
500
+ this.enableAttributePassing(element, "db-custom-select");
501
+ }
502
+ });
503
+ this.observer.observe(parent, {
504
+ attributes: true,
505
+ attributeOldValue: true,
506
+ });
507
+ }
487
508
  /**
488
509
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
489
510
  * @param element the ref for the component
@@ -497,10 +518,15 @@ const DBCustomSelect = class {
497
518
  const attr = attributes.item(i);
498
519
  if (attr && attr.name !== 'data-density' &&
499
520
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
500
- element.setAttribute(attr.name, attr.value);
521
+ if (attr.value) {
522
+ element.setAttribute(attr.name, attr.value);
523
+ }
524
+ else {
525
+ element.removeAttribute(attr.name);
526
+ }
501
527
  parent.removeAttribute(attr.name);
502
528
  }
503
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
529
+ else if (attr && ["style"].includes(attr.name)) {
504
530
  element.setAttribute(attr.name, attr.value);
505
531
  parent.removeAttribute(attr.name);
506
532
  }
@@ -508,7 +534,7 @@ const DBCustomSelect = class {
508
534
  const isWebComponent = attr.value.includes("hydrated");
509
535
  const value = attr.value.replace("hydrated", "").trim();
510
536
  const currentClass = element.getAttribute("class");
511
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
537
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
512
538
  if (isWebComponent) {
513
539
  // Stencil is using this class for lazy loading component
514
540
  parent.setAttribute("class", "hydrated");
@@ -760,18 +786,25 @@ const DBCustomSelect = class {
760
786
  }
761
787
  }
762
788
  this.enableAttributePassing(this._ref, "db-custom-select");
763
- this.resetIds();
764
- this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
765
- if (typeof window !== "undefined" && "IntersectionObserver" in window) {
766
- this._observer = new IntersectionObserver((payload) => {
767
- if (this.detailsRef) {
768
- const entry = payload.find(({ target }) => target === this.detailsRef);
769
- if (entry && !entry.isIntersecting && this.detailsRef.open) {
770
- this.detailsRef.open = false;
789
+ const onMountHook_0 = () => {
790
+ this.resetIds();
791
+ this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
792
+ if (typeof window !== "undefined" && "IntersectionObserver" in window) {
793
+ this._observer = new IntersectionObserver((payload) => {
794
+ if (this.detailsRef) {
795
+ const entry = payload.find(({ target }) => target === this.detailsRef);
796
+ if (entry && !entry.isIntersecting && this.detailsRef.open) {
797
+ this.detailsRef.open = false;
798
+ }
771
799
  }
772
- }
773
- });
774
- }
800
+ });
801
+ }
802
+ };
803
+ onMountHook_0();
804
+ const onMountHook_1 = () => {
805
+ this.setupObserver(this._ref);
806
+ };
807
+ onMountHook_1();
775
808
  this.watch0Fn();
776
809
  this.watch1Fn();
777
810
  this.watch2Fn();
@@ -793,24 +826,25 @@ const DBCustomSelect = class {
793
826
  this.watch18Fn();
794
827
  }
795
828
  disconnectedCallback() {
796
- var _a;
829
+ var _a, _b;
797
830
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
831
+ (_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
798
832
  }
799
833
  render() {
800
834
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
801
- return (h("div", { key: '23fbdff16d9ced63948418aa8a8bf40284fb098b', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
835
+ return (h("div", { key: '1089ddd1cfca85b7a04524de6430b3572ccb6453', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
802
836
  this._ref = el;
803
837
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
804
838
  this.selectedType === "tag" &&
805
839
  this.multiple
806
840
  ? "above"
807
- : this.variant, "data-required": getBooleanAsString(this.required, "required"), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon") }, h("label", { key: '8ad75d1e949eba11cca0cc8d6c6e6bbcef26f66b', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: 'baa3747700f7b3c68b6278fc867e381193380bbc', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
841
+ : this.variant, "data-required": getBooleanAsString(this.required, "required"), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon, "showIcon") }, h("label", { key: 'df6fe2735838356dc7cf9da1538e2d734089341a', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: 'd952cedd05d4f5b1eb2a24d4362aa2b5e4064fd8', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
808
842
  this.selectRef = el;
809
843
  }, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
810
844
  ? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
811
- : null)), h("details", { key: 'dcb70261b5b4400566104e60611ab2f25face4e4', ref: (el) => {
845
+ : null)), h("details", { key: '51e516f07db962d68494b5b012a33982df369392', ref: (el) => {
812
846
  this.detailsRef = el;
813
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '9eeb9bd1d98bd9caa0542c8ab6343f39f7c18418' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled, "disabled"), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag", "selectedType"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
847
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '9d059be7ce413194177616d016f7babffb790f07' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled, "disabled"), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag", "selectedType"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
814
848
  this.searchInputRef = el;
815
849
  }, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
816
850
  ? this._infoTextId
@@ -820,7 +854,7 @@ const DBCustomSelect = class {
820
854
  this.selectAllRef = el;
821
855
  }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
822
856
  ? this.getOptionLabel(option)
823
- : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '9629df613b269cc393dc90d13fb9272652ecf300', class: "db-custom-select-placeholder", "aria-hidden": "true", id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '682b3bf735bc32853f9a5aabc2a37e88575c5b1f', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'dee40917af4cd6d663fe0f7e42110390605f982f', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
857
+ : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '116d3a64ab4dc504badf8ae2298908022b807441', class: "db-custom-select-placeholder", "aria-hidden": "true", id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '3930c58d7e893751803157d1f23b6f9e7050adaa', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'efdbd668c7f5b2755bada6b174a0ed31a792dd31', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
824
858
  }
825
859
  get rootElement() { return getElement(this); }
826
860
  static get watchers() { return {
@@ -4,6 +4,27 @@ import { c as cls } from './index-fumiz06Y.js';
4
4
  const DBDivider = 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-divider");
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-divider");
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 DBDivider = 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 DBDivider = 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,10 +75,15 @@ const DBDivider = class {
49
75
  }
50
76
  }
51
77
  this.enableAttributePassing(this._ref, "db-divider");
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("div", { key: 'b0abc4940417f6bf2ec60d4dce76f50a6639ffec', class: cls("db-divider", this.className), ref: (el) => {
86
+ return (h("div", { key: '09e35f9aa6912126375f69d68b75a1d64a2d0ba8', class: cls("db-divider", this.className), ref: (el) => {
56
87
  this._ref = el;
57
88
  }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
58
89
  }
@@ -7,6 +7,7 @@ const DBDrawer = class {
7
7
  registerInstance(this, hostRef);
8
8
  this.close = createEvent(this, "close");
9
9
  this.initialized = false;
10
+ this.observer = undefined;
10
11
  }
11
12
  handleClose(event, forceClose) {
12
13
  var _a;
@@ -70,6 +71,26 @@ const DBDrawer = class {
70
71
  }
71
72
  }
72
73
  }
74
+ setupObserver(element) {
75
+ if (!element)
76
+ return;
77
+ const parent = element.closest("db-drawer");
78
+ if (!parent || this.observer)
79
+ return;
80
+ this.observer = new MutationObserver((mutations) => {
81
+ if (mutations.some((mutation) => {
82
+ var _a;
83
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
84
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
85
+ })) {
86
+ this.enableAttributePassing(element, "db-drawer");
87
+ }
88
+ });
89
+ this.observer.observe(parent, {
90
+ attributes: true,
91
+ attributeOldValue: true,
92
+ });
93
+ }
73
94
  /**
74
95
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
75
96
  * @param element the ref for the component
@@ -83,10 +104,15 @@ const DBDrawer = class {
83
104
  const attr = attributes.item(i);
84
105
  if (attr && attr.name !== 'data-density' &&
85
106
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
86
- element.setAttribute(attr.name, attr.value);
107
+ if (attr.value) {
108
+ element.setAttribute(attr.name, attr.value);
109
+ }
110
+ else {
111
+ element.removeAttribute(attr.name);
112
+ }
87
113
  parent.removeAttribute(attr.name);
88
114
  }
89
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
115
+ else if (attr && ["style"].includes(attr.name)) {
90
116
  element.setAttribute(attr.name, attr.value);
91
117
  parent.removeAttribute(attr.name);
92
118
  }
@@ -94,7 +120,7 @@ const DBDrawer = class {
94
120
  const isWebComponent = attr.value.includes("hydrated");
95
121
  const value = attr.value.replace("hydrated", "").trim();
96
122
  const currentClass = element.getAttribute("class");
97
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
123
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
98
124
  if (isWebComponent) {
99
125
  // Stencil is using this class for lazy loading component
100
126
  parent.setAttribute("class", "hydrated");
@@ -132,18 +158,29 @@ const DBDrawer = class {
132
158
  }
133
159
  }
134
160
  this.enableAttributePassing(this._ref, "db-drawer");
135
- this.handleDialogOpen();
136
- this.initialized = true;
161
+ const onMountHook_0 = () => {
162
+ this.handleDialogOpen();
163
+ this.initialized = true;
164
+ };
165
+ onMountHook_0();
166
+ const onMountHook_1 = () => {
167
+ this.setupObserver(this._ref);
168
+ };
169
+ onMountHook_1();
137
170
  this.watch0Fn();
138
171
  this.watch1Fn();
139
172
  }
173
+ disconnectedCallback() {
174
+ var _a;
175
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
176
+ }
140
177
  render() {
141
178
  var _a, _b, _c;
142
- return (h("dialog", { key: '225a5dbee78c590dff66140a494f8eb241fa6330', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
179
+ return (h("dialog", { key: '68343ae9da612485135f6e0b01bd581de86d1dc6', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
143
180
  this._ref = el;
144
- }, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: 'adfb6025f81f3a0f22ae824ae288135acc0abf38', class: cls("db-drawer-container", this.className), ref: (el) => {
181
+ }, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: 'b6a860730f150e365c684a2ed362f8ad3e84e862', class: cls("db-drawer-container", this.className), ref: (el) => {
145
182
  this.dialogContainerRef = el;
146
- }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded, "rounded") }, h("header", { key: '1304ee6c2e71ea296a47a3f6b3f3b4986b9250cb', class: "db-drawer-header" }, h("div", { key: '58ac80d422901b140b2bf635eeafec45a8f07df5', class: "db-drawer-header-text" }, h("slot", { key: '7f9ecdebdbcb50b176989b50671b370ea29a9eb1', name: "drawerHeader" })), h("db-button", { key: '6b265a6e92f9d9ca4949dc40721700c2e9bd0390', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: 'a740f736da9467544753fc8eecbc11c49dbff568', class: "db-drawer-content" }, h("slot", { key: 'e71354fd4dd8d9bde10226b918e6e6ff2c69fe03' })))));
183
+ }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded, "rounded") }, h("header", { key: 'd8347218a266eb48f2b86717d6ba210c907f4c18', class: "db-drawer-header" }, h("div", { key: '6e9a89da493fa209e09bf1ddb5a5719b52606e62', class: "db-drawer-header-text" }, h("slot", { key: '503445639dd0a3e51a6f99f5aff3eb039e6d34eb', name: "drawerHeader" })), h("db-button", { key: '39400683f7e2a05c8c8dd33be6c9913d72d5454d', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: 'f0e4ebb273ea7f53fd1c026f7f50a16f89ab3259', class: "db-drawer-content" }, h("slot", { key: 'e1ead064fd822ca9fd33be44af5fd52801ba33ea' })))));
147
184
  }
148
185
  get rootElement() { return getElement(this); }
149
186
  static get watchers() { return {
@@ -10,6 +10,7 @@ const DBHeader = class {
10
10
  this.toggle = createEvent(this, "toggle");
11
11
  this.initialized = false;
12
12
  this.forcedToMobile = false;
13
+ this.observer = undefined;
13
14
  }
14
15
  handleToggle(event) {
15
16
  if (event && event.stopPropagation) {
@@ -25,6 +26,26 @@ const DBHeader = class {
25
26
  this.handleToggle();
26
27
  }
27
28
  }
29
+ setupObserver(element) {
30
+ if (!element)
31
+ return;
32
+ const parent = element.closest("db-header");
33
+ if (!parent || this.observer)
34
+ return;
35
+ this.observer = new MutationObserver((mutations) => {
36
+ if (mutations.some((mutation) => {
37
+ var _a;
38
+ const attr = mutation.target.attributes.getNamedItem((_a = mutation.attributeName) !== null && _a !== void 0 ? _a : "");
39
+ return (attr === null || attr === void 0 ? void 0 : attr.value) !== mutation.oldValue;
40
+ })) {
41
+ this.enableAttributePassing(element, "db-header");
42
+ }
43
+ });
44
+ this.observer.observe(parent, {
45
+ attributes: true,
46
+ attributeOldValue: true,
47
+ });
48
+ }
28
49
  /**
29
50
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
30
51
  * @param element the ref for the component
@@ -38,10 +59,15 @@ const DBHeader = class {
38
59
  const attr = attributes.item(i);
39
60
  if (attr && attr.name !== 'data-density' &&
40
61
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
41
- element.setAttribute(attr.name, attr.value);
62
+ if (attr.value) {
63
+ element.setAttribute(attr.name, attr.value);
64
+ }
65
+ else {
66
+ element.removeAttribute(attr.name);
67
+ }
42
68
  parent.removeAttribute(attr.name);
43
69
  }
44
- else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
70
+ else if (attr && ["style"].includes(attr.name)) {
45
71
  element.setAttribute(attr.name, attr.value);
46
72
  parent.removeAttribute(attr.name);
47
73
  }
@@ -49,7 +75,7 @@ const DBHeader = class {
49
75
  const isWebComponent = attr.value.includes("hydrated");
50
76
  const value = attr.value.replace("hydrated", "").trim();
51
77
  const currentClass = element.getAttribute("class");
52
- element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
78
+ element.setAttribute(attr.name, `${currentClass ? currentClass : ""}${value ? ` ${value}` : ""}`);
53
79
  if (isWebComponent) {
54
80
  // Stencil is using this class for lazy loading component
55
81
  parent.setAttribute("class", "hydrated");
@@ -83,14 +109,25 @@ const DBHeader = class {
83
109
  }
84
110
  }
85
111
  this.enableAttributePassing(this._ref, "db-header");
86
- this.initialized = true;
112
+ const onMountHook_0 = () => {
113
+ this.initialized = true;
114
+ };
115
+ onMountHook_0();
116
+ const onMountHook_1 = () => {
117
+ this.setupObserver(this._ref);
118
+ };
119
+ onMountHook_1();
87
120
  this.watch0Fn();
88
121
  }
122
+ disconnectedCallback() {
123
+ var _a;
124
+ (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
125
+ }
89
126
  render() {
90
127
  var _a, _b, _c;
91
- return (h("header", { key: '9e4e437f3e1f465a86e279c4062455c8398e1fca', class: cls("db-header", this.className), ref: (el) => {
128
+ return (h("header", { key: '5d1e86b7e973ba201396327b7cdce38e2ac97228', class: cls("db-header", this.className), ref: (el) => {
92
129
  this._ref = el;
93
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("div", { key: '008214cb908cacd9c0d836c5513391ced9889de0', class: "db-header-meta-navigation" }, h("slot", { key: '77b7c0dd3867fa0625ade6b94886d8635cb9e9d0', name: "metaNavigation" })), h("div", { key: 'c8b29a92b9fc2e02101b69514af7abbd0e6c3f53', class: "db-header-navigation-bar" }, h("div", { key: '004aa45ef611647fd083a7605607bfd139d525e1', class: "db-header-brand-container" }, h("slot", { key: '117eb0bf2810766c34dc0fc5809ef29b88ee38b8', name: "brand" })), h("div", { key: '5f08b698cdaf172905f862eea220bf08114f84ae', class: "db-header-navigation-container" }, h("div", { key: 'dbd332f8fbcef5b4097ae1e912b8c82e1cf308e7', class: "db-header-navigation" }, h("slot", { key: '1add1d46f5591bb31a871f61308b9d2d4d9cc2fd' })), h("div", { key: 'a6f002f461afc2055f5e045d486e883dc0ffbd26', class: "db-header-primary-action" }, h("slot", { key: '5a9934b2b8b6242a0c893c5b669c52e20c60d28a', name: "primaryAction" }))), h("div", { key: 'db912777f19f979e01edeef604eb97909e62c341', class: "db-header-action-container" }, h("div", { key: '784e8f6fb73711b578d2b9105646878016a5cbde', class: "db-header-burger-menu-container" }, h("db-button", { key: '06865f340c10c9da96b1ce632fe41fd8291cc051', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: '9b215d86d1f9a90bf94e7590cb62e131e16826df', class: "db-header-secondary-action" }, h("slot", { key: '4568dfae1a86614dd3eeb0b708890fa429146488', name: "secondaryAction" })))), h("db-drawer", { key: 'b3f5173536dbd5a567f10f69da2b6067c07687c9', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'd6e881f20c0aa9f96a32be21ca4da94dc1a62dfc', class: "db-header-drawer-navigation" }, h("div", { key: '76b8fdfcd35fc7a544740c38ec24bfead9460232', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '692234dca1ca4c54edd757dddb7a8ea0742347e3' })), h("div", { key: 'b28eebcc6e14458ee5f059ffff24df8d0a740bbf', class: "db-header-meta-navigation" }, h("slot", { key: 'ad47d6ab3247db70a8cba9447ba7d8c3247b5110', name: "metaNavigation" }))), h("div", { key: '21415bf3aa1572acd48c6a6dfe226a66d0b7f219', class: "db-header-secondary-action" }, h("slot", { key: 'ba1f8f44f97b54a6a4037df031131041ff0ca6d7', name: "secondaryAction" })))));
130
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("div", { key: 'e01bfcb3611a7ff4ddd3fc6b758dc3bf40cbe712', class: "db-header-meta-navigation" }, h("slot", { key: '99f6ebb0c2bca335d25bd4eaafdb6bd9978d9c8d', name: "metaNavigation" })), h("div", { key: '698fa926fa448a6a540e8bf13676f92a8a0408e3', class: "db-header-navigation-bar" }, h("div", { key: '872fb23c94eb3ec81deca9eef498146b4c434e5e', class: "db-header-brand-container" }, h("slot", { key: '5575ee45816a7ecf9d5102b7c54004522fb3d0dd', name: "brand" })), h("div", { key: 'cda8077a77bde02515ed9c12d720802c0e1a85a0', class: "db-header-navigation-container" }, h("div", { key: '76bfcfe58004cc685d978815058aa1593160f90c', class: "db-header-navigation" }, h("slot", { key: '516e0953f7352fa7f84a8affdae187c345f77dbd' })), h("div", { key: '97eb5eb2f86ae44c85e5779f84d7e95f362c1b26', class: "db-header-primary-action" }, h("slot", { key: '2db7a8e65e46009f7fcf621c4d654204f8160e56', name: "primaryAction" }))), h("div", { key: '6478928d7b967b365823331648d12003b4e7eefa', class: "db-header-action-container" }, h("div", { key: 'ade80b06a587d723ebe9c1dfb3b8ca0cb3499ab6', class: "db-header-burger-menu-container" }, h("db-button", { key: '5e06f6da7bdcc1b12de1b9dbdbb98b6969c80f62', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: '7afbb296999738cf13b37b4f461fefdddff18ead', class: "db-header-secondary-action" }, h("slot", { key: '6a39330a6eac4a0d6c9e9bcba648590d3a30cee9', name: "secondaryAction" })))), h("db-drawer", { key: '5ec7b632906a280475122fa9b189345ec55917f9', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'c7febad8b66a9a3d3c238c4c87027534f09c8601', class: "db-header-drawer-navigation" }, h("div", { key: '784b2d12c1838ae2ccd90575f1ef04ce97b70104', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '6189ff74ac04565039a45952c8ea910d5260e9e0' })), h("div", { key: '67223d12d595038a36d9c44953a6cb24894ed35d', class: "db-header-meta-navigation" }, h("slot", { key: '7c3de485a3d7516978cfd16d8ef494a61f8bc4af', name: "metaNavigation" }))), h("div", { key: '01e0e9ac362d8f553adf53379be18a8cdeb2b816', class: "db-header-secondary-action" }, h("slot", { key: 'fa6c328af54f4aff0f6c7ec80d7a2b36ea63b49a', name: "secondaryAction" })))));
94
131
  }
95
132
  get rootElement() { return getElement(this); }
96
133
  static get watchers() { return {
@@ -4,6 +4,27 @@ import { c as cls } from './index-fumiz06Y.js';
4
4
  const DBIcon = 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-icon");
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-icon");
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 DBIcon = 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 DBIcon = 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 DBIcon = class {
49
75
  }
50
76
  }
51
77
  this.enableAttributePassing(this._ref, "db-icon");
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("span", { key: 'f525692a77464f4dfa854e5ede76ad6ddd7050a9', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
86
+ return (h("span", { key: '167039453ffa0b206221a521e52e889beeab0d43', class: cls("db-icon", this.className), "aria-hidden": "true", 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-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : null, h("slot", { key: '89e010681206c29c706d38800937af2046a39b5c' })));
88
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : null, h("slot", { key: 'abea7d517b9dcf61ff53fd70bbbb0cad3da1daa2' })));
58
89
  }
59
90
  get rootElement() { return getElement(this); }
60
91
  };
@@ -4,6 +4,27 @@ import { g as getBooleanAsString, c as cls } from './index-fumiz06Y.js';
4
4
  const DBInfotext = 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-infotext");
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-infotext");
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 DBInfotext = 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 DBInfotext = 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 DBInfotext = class {
49
75
  }
50
76
  }
51
77
  this.enableAttributePassing(this._ref, "db-infotext");
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, _c;
55
- return (h("span", { key: '982cd72ca8f9c42855a6aa704216bd21ebac6bb8', class: cls("db-infotext", this.className), ref: (el) => {
86
+ return (h("span", { key: 'e1a06bb9c2d0f88953a7281cdda505b392db609c', class: cls("db-infotext", 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-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true, "showIcon") }, this.text ? this.text : null, h("slot", { key: 'cee3af0341d217dcd43068e5a5759b0964b132bd' })));
88
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap, "wrap"), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true, "showIcon") }, this.text ? this.text : null, h("slot", { key: '68b5e9bc974cf49e25470cba30b142495e06c72f' })));
58
89
  }
59
90
  get rootElement() { return getElement(this); }
60
91
  };