@db-ux/wc-core-components 4.4.2 → 4.5.0

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 (255) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/db-accordion-item.cjs.entry.js +11 -6
  3. package/dist/cjs/db-accordion.cjs.entry.js +12 -8
  4. package/dist/cjs/db-badge.cjs.entry.js +11 -7
  5. package/dist/cjs/db-brand.cjs.entry.js +11 -7
  6. package/dist/cjs/db-button.cjs.entry.js +11 -7
  7. package/dist/cjs/db-card.cjs.entry.js +11 -6
  8. package/dist/cjs/db-checkbox.cjs.entry.js +59 -36
  9. package/dist/cjs/db-custom-button.cjs.entry.js +57 -0
  10. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +89 -47
  11. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +11 -6
  12. package/dist/cjs/db-custom-select.cjs.entry.js +133 -110
  13. package/dist/cjs/db-divider.cjs.entry.js +11 -6
  14. package/dist/cjs/db-drawer.cjs.entry.js +12 -8
  15. package/dist/cjs/db-header.cjs.entry.js +13 -9
  16. package/dist/cjs/db-icon.cjs.entry.js +11 -6
  17. package/dist/cjs/db-infotext.cjs.entry.js +11 -7
  18. package/dist/cjs/db-link.cjs.entry.js +11 -7
  19. package/dist/cjs/db-navigation-item.cjs.entry.js +13 -9
  20. package/dist/cjs/db-navigation.cjs.entry.js +11 -6
  21. package/dist/cjs/db-notification.cjs.entry.js +12 -8
  22. package/dist/cjs/db-page.cjs.entry.js +11 -6
  23. package/dist/cjs/db-popover.cjs.entry.js +14 -10
  24. package/dist/cjs/db-radio.cjs.entry.js +39 -16
  25. package/dist/cjs/db-section.cjs.entry.js +11 -6
  26. package/dist/cjs/db-select.cjs.entry.js +54 -31
  27. package/dist/cjs/db-stack.cjs.entry.js +11 -6
  28. package/dist/cjs/db-switch.cjs.entry.js +64 -24
  29. package/dist/cjs/db-tab-item_3.cjs.entry.js +29 -15
  30. package/dist/cjs/db-tabs.cjs.entry.js +12 -8
  31. package/dist/cjs/db-textarea.cjs.entry.js +52 -29
  32. package/dist/cjs/db-tooltip.cjs.entry.js +25 -12
  33. package/dist/cjs/db-ux.cjs.js +3 -3
  34. package/dist/cjs/{document-click-listener-Bb3Tinb8.js → document-click-listener-B2-xKJv3.js} +1 -1
  35. package/dist/cjs/{document-scroll-listener-unypEU42.js → document-scroll-listener-ChQ7XZRk.js} +1 -1
  36. package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
  37. package/dist/cjs/{form-components-LsqVohyb.js → form-components-_ncB_U2D.js} +1 -1
  38. package/dist/cjs/{index-CsHqnQII.js → index-2_9ESkQu.js} +6 -7
  39. package/dist/cjs/{index-CEqZnn9s.js → index-CSMPhlzz.js} +2 -2
  40. package/dist/cjs/index.cjs.js +5 -5
  41. package/dist/cjs/loader.cjs.js +2 -2
  42. package/dist/cjs/{navigation-DauGE-qj.js → navigation-BztJmEHf.js} +1 -1
  43. package/dist/collection/collection-manifest.json +2 -1
  44. package/dist/collection/components/accordion/accordion.js +34 -6
  45. package/dist/collection/components/accordion-item/accordion-item.js +33 -4
  46. package/dist/collection/components/badge/badge.js +60 -6
  47. package/dist/collection/components/brand/brand.js +33 -5
  48. package/dist/collection/components/button/button.js +59 -5
  49. package/dist/collection/components/card/card.js +33 -4
  50. package/dist/collection/components/checkbox/checkbox.js +87 -40
  51. package/dist/collection/components/custom-button/custom-button.js +394 -0
  52. package/dist/collection/components/custom-button/index.js +2 -0
  53. package/dist/collection/components/custom-button/model.js +1 -0
  54. package/dist/collection/components/custom-select/custom-select.js +157 -110
  55. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +33 -4
  56. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +33 -4
  57. package/dist/collection/components/custom-select-list/custom-select-list.js +33 -4
  58. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +33 -4
  59. package/dist/collection/components/divider/divider.js +33 -4
  60. package/dist/collection/components/drawer/drawer.js +34 -6
  61. package/dist/collection/components/header/header.js +33 -5
  62. package/dist/collection/components/icon/icon.js +33 -4
  63. package/dist/collection/components/infotext/infotext.js +59 -5
  64. package/dist/collection/components/input/input.js +80 -33
  65. package/dist/collection/components/link/link.js +33 -5
  66. package/dist/collection/components/navigation/navigation.js +33 -4
  67. package/dist/collection/components/navigation-item/navigation-item.js +33 -5
  68. package/dist/collection/components/notification/notification.js +34 -6
  69. package/dist/collection/components/page/page.js +33 -4
  70. package/dist/collection/components/popover/popover.js +34 -6
  71. package/dist/collection/components/radio/radio.js +60 -13
  72. package/dist/collection/components/section/section.js +33 -4
  73. package/dist/collection/components/select/select.js +81 -34
  74. package/dist/collection/components/stack/stack.js +33 -4
  75. package/dist/collection/components/switch/switch.js +118 -50
  76. package/dist/collection/components/tab-item/tab-item.js +33 -5
  77. package/dist/collection/components/tab-list/tab-list.js +33 -4
  78. package/dist/collection/components/tab-panel/tab-panel.js +33 -4
  79. package/dist/collection/components/tabs/tabs.js +34 -6
  80. package/dist/collection/components/tag/tag.js +33 -5
  81. package/dist/collection/components/textarea/textarea.js +79 -32
  82. package/dist/collection/components/tooltip/tooltip.js +71 -8
  83. package/dist/collection/index.js +2 -0
  84. package/dist/collection/utils/floating-components.js +65 -15
  85. package/dist/collection/utils/index.js +6 -7
  86. package/dist/custom-elements.json +19735 -1796
  87. package/dist/db-ux/db-ux.esm.js +1 -1
  88. package/dist/db-ux/index.esm.js +1 -1
  89. package/dist/db-ux/p-00df7d53.entry.js +1 -0
  90. package/dist/db-ux/p-064ddad6.entry.js +1 -0
  91. package/dist/db-ux/p-0ff173fb.entry.js +1 -0
  92. package/dist/db-ux/p-1519dbbb.entry.js +1 -0
  93. package/dist/db-ux/p-16281dcb.entry.js +1 -0
  94. package/dist/db-ux/p-27eb6e88.entry.js +1 -0
  95. package/dist/db-ux/p-2898ebe6.entry.js +1 -0
  96. package/dist/db-ux/p-2e940d2e.entry.js +1 -0
  97. package/dist/db-ux/p-309259be.entry.js +1 -0
  98. package/dist/db-ux/p-4183b8e1.entry.js +1 -0
  99. package/dist/db-ux/p-4284c37f.entry.js +1 -0
  100. package/dist/db-ux/p-432ceb90.entry.js +1 -0
  101. package/dist/db-ux/p-503d5103.entry.js +1 -0
  102. package/dist/db-ux/p-6794144b.entry.js +1 -0
  103. package/dist/db-ux/p-6cb4232d.entry.js +1 -0
  104. package/dist/db-ux/p-6da70f61.entry.js +1 -0
  105. package/dist/db-ux/p-766057ea.entry.js +1 -0
  106. package/dist/db-ux/p-7a146dee.entry.js +1 -0
  107. package/dist/db-ux/p-7e274359.entry.js +1 -0
  108. package/dist/db-ux/p-Bs7RfNRP.js +2 -0
  109. package/dist/db-ux/p-CHLgQ9vn.js +1 -0
  110. package/dist/db-ux/{p-CAEpg8tJ.js → p-D5mInaY7.js} +1 -1
  111. package/dist/db-ux/p-D_roHmuC.js +1 -0
  112. package/dist/db-ux/p-DfYL98sI.js +1 -0
  113. package/dist/db-ux/p-aad9c604.entry.js +1 -0
  114. package/dist/db-ux/p-ad3d2cff.entry.js +1 -0
  115. package/dist/db-ux/p-b218b08b.entry.js +1 -0
  116. package/dist/db-ux/p-bfe27311.entry.js +1 -0
  117. package/dist/db-ux/p-c1cf7ea4.entry.js +1 -0
  118. package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
  119. package/dist/db-ux/p-cd8557dd.entry.js +1 -0
  120. package/dist/db-ux/p-d2674cff.entry.js +1 -0
  121. package/dist/db-ux/p-d4e79c33.entry.js +1 -0
  122. package/dist/db-ux/p-e19f2640.entry.js +1 -0
  123. package/dist/db-ux/p-e3def528.entry.js +1 -0
  124. package/dist/db-ux/p-e6b17374.entry.js +1 -0
  125. package/dist/db-ux/p-ea7219af.entry.js +1 -0
  126. package/dist/db-ux/p-xkoBSP8R.js +1 -0
  127. package/dist/esm/db-accordion-item.entry.js +11 -6
  128. package/dist/esm/db-accordion.entry.js +12 -8
  129. package/dist/esm/db-badge.entry.js +11 -7
  130. package/dist/esm/db-brand.entry.js +11 -7
  131. package/dist/esm/db-button.entry.js +11 -7
  132. package/dist/esm/db-card.entry.js +11 -6
  133. package/dist/esm/db-checkbox.entry.js +60 -37
  134. package/dist/esm/db-custom-button.entry.js +55 -0
  135. package/dist/esm/db-custom-select-dropdown_5.entry.js +90 -48
  136. package/dist/esm/db-custom-select-form-field.entry.js +11 -6
  137. package/dist/esm/db-custom-select.entry.js +134 -111
  138. package/dist/esm/db-divider.entry.js +11 -6
  139. package/dist/esm/db-drawer.entry.js +12 -8
  140. package/dist/esm/db-header.entry.js +13 -9
  141. package/dist/esm/db-icon.entry.js +11 -6
  142. package/dist/esm/db-infotext.entry.js +11 -7
  143. package/dist/esm/db-link.entry.js +11 -7
  144. package/dist/esm/db-navigation-item.entry.js +13 -9
  145. package/dist/esm/db-navigation.entry.js +11 -6
  146. package/dist/esm/db-notification.entry.js +12 -8
  147. package/dist/esm/db-page.entry.js +11 -6
  148. package/dist/esm/db-popover.entry.js +14 -10
  149. package/dist/esm/db-radio.entry.js +39 -16
  150. package/dist/esm/db-section.entry.js +11 -6
  151. package/dist/esm/db-select.entry.js +55 -32
  152. package/dist/esm/db-stack.entry.js +11 -6
  153. package/dist/esm/db-switch.entry.js +64 -24
  154. package/dist/esm/db-tab-item_3.entry.js +29 -15
  155. package/dist/esm/db-tabs.entry.js +12 -8
  156. package/dist/esm/db-textarea.entry.js +53 -30
  157. package/dist/esm/db-tooltip.entry.js +25 -12
  158. package/dist/esm/db-ux.js +4 -4
  159. package/dist/esm/{document-click-listener-CmYoXpGE.js → document-click-listener-D7W_VE5O.js} +1 -1
  160. package/dist/esm/{document-scroll-listener-65bHuFAN.js → document-scroll-listener-DOBe3Oa9.js} +1 -1
  161. package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
  162. package/dist/esm/{form-components-BLsiOrPI.js → form-components-D6LQfJvq.js} +1 -1
  163. package/dist/esm/{index-BrThqi62.js → index-Bs7RfNRP.js} +2 -2
  164. package/dist/esm/{index-C4x0SOcx.js → index-xkoBSP8R.js} +6 -7
  165. package/dist/esm/index.js +5 -5
  166. package/dist/esm/loader.js +3 -3
  167. package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
  168. package/dist/types/components/accordion/accordion.d.ts +1 -0
  169. package/dist/types/components/accordion-item/accordion-item.d.ts +1 -0
  170. package/dist/types/components/badge/badge.d.ts +2 -0
  171. package/dist/types/components/badge/model.d.ts +2 -2
  172. package/dist/types/components/brand/brand.d.ts +1 -0
  173. package/dist/types/components/button/button.d.ts +2 -0
  174. package/dist/types/components/button/model.d.ts +8 -10
  175. package/dist/types/components/card/card.d.ts +1 -0
  176. package/dist/types/components/checkbox/checkbox.d.ts +5 -1
  177. package/dist/types/components/custom-button/custom-button.d.ts +29 -0
  178. package/dist/types/components/custom-button/index.d.ts +2 -0
  179. package/dist/types/components/custom-button/model.d.ts +6 -0
  180. package/dist/types/components/custom-select/custom-select.d.ts +5 -1
  181. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
  182. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
  183. package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
  184. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
  185. package/dist/types/components/divider/divider.d.ts +1 -0
  186. package/dist/types/components/drawer/drawer.d.ts +1 -0
  187. package/dist/types/components/header/header.d.ts +1 -0
  188. package/dist/types/components/icon/icon.d.ts +1 -0
  189. package/dist/types/components/infotext/infotext.d.ts +2 -0
  190. package/dist/types/components/infotext/model.d.ts +2 -2
  191. package/dist/types/components/input/input.d.ts +5 -1
  192. package/dist/types/components/link/link.d.ts +1 -0
  193. package/dist/types/components/navigation/navigation.d.ts +1 -0
  194. package/dist/types/components/navigation-item/navigation-item.d.ts +1 -0
  195. package/dist/types/components/notification/model.d.ts +2 -2
  196. package/dist/types/components/notification/notification.d.ts +1 -0
  197. package/dist/types/components/page/page.d.ts +1 -0
  198. package/dist/types/components/popover/popover.d.ts +1 -0
  199. package/dist/types/components/radio/radio.d.ts +4 -0
  200. package/dist/types/components/section/section.d.ts +1 -0
  201. package/dist/types/components/select/select.d.ts +5 -1
  202. package/dist/types/components/stack/stack.d.ts +1 -0
  203. package/dist/types/components/switch/model.d.ts +1 -1
  204. package/dist/types/components/switch/switch.d.ts +7 -1
  205. package/dist/types/components/tab-item/tab-item.d.ts +1 -0
  206. package/dist/types/components/tab-list/tab-list.d.ts +1 -0
  207. package/dist/types/components/tab-panel/tab-panel.d.ts +1 -0
  208. package/dist/types/components/tabs/tabs.d.ts +1 -0
  209. package/dist/types/components/tag/model.d.ts +2 -6
  210. package/dist/types/components/tag/tag.d.ts +1 -0
  211. package/dist/types/components/textarea/textarea.d.ts +5 -1
  212. package/dist/types/components/tooltip/model.d.ts +3 -3
  213. package/dist/types/components/tooltip/tooltip.d.ts +3 -0
  214. package/dist/types/components.d.ts +146 -6
  215. package/dist/types/index.d.ts +2 -0
  216. package/dist/types/shared/model.d.ts +17 -3
  217. package/dist/types/stencil-public-runtime.d.ts +3 -1
  218. package/dist/vscode.html-custom-data.json +1981 -245
  219. package/dist/web-types.json +3299 -648
  220. package/package.json +4 -4
  221. package/dist/db-ux/p-07bf3657.entry.js +0 -1
  222. package/dist/db-ux/p-0a89cbcd.entry.js +0 -1
  223. package/dist/db-ux/p-15539d9d.entry.js +0 -1
  224. package/dist/db-ux/p-41cb4673.entry.js +0 -1
  225. package/dist/db-ux/p-460073dd.entry.js +0 -1
  226. package/dist/db-ux/p-4a9b9909.entry.js +0 -1
  227. package/dist/db-ux/p-4ec09cf1.entry.js +0 -1
  228. package/dist/db-ux/p-57205dfd.entry.js +0 -1
  229. package/dist/db-ux/p-5775bf7a.entry.js +0 -1
  230. package/dist/db-ux/p-5bcde39a.entry.js +0 -1
  231. package/dist/db-ux/p-6341aaa9.entry.js +0 -1
  232. package/dist/db-ux/p-64573104.entry.js +0 -1
  233. package/dist/db-ux/p-6b63156d.entry.js +0 -1
  234. package/dist/db-ux/p-70822a27.entry.js +0 -1
  235. package/dist/db-ux/p-710a430d.entry.js +0 -1
  236. package/dist/db-ux/p-72d712b0.entry.js +0 -1
  237. package/dist/db-ux/p-7b7f4d03.entry.js +0 -1
  238. package/dist/db-ux/p-7bd4c573.entry.js +0 -1
  239. package/dist/db-ux/p-819cf20a.entry.js +0 -1
  240. package/dist/db-ux/p-87fdbcfb.entry.js +0 -1
  241. package/dist/db-ux/p-9051e26c.entry.js +0 -1
  242. package/dist/db-ux/p-934a708c.entry.js +0 -1
  243. package/dist/db-ux/p-9ffa5c48.entry.js +0 -1
  244. package/dist/db-ux/p-BhXdfCpU.js +0 -1
  245. package/dist/db-ux/p-BrThqi62.js +0 -2
  246. package/dist/db-ux/p-C4x0SOcx.js +0 -1
  247. package/dist/db-ux/p-G-TursYV.js +0 -1
  248. package/dist/db-ux/p-RHqkTr-_.js +0 -1
  249. package/dist/db-ux/p-a9af70eb.entry.js +0 -1
  250. package/dist/db-ux/p-aa8383a3.entry.js +0 -1
  251. package/dist/db-ux/p-ba1f69bd.entry.js +0 -1
  252. package/dist/db-ux/p-d273b998.entry.js +0 -1
  253. package/dist/db-ux/p-da4ee6ee.entry.js +0 -1
  254. package/dist/db-ux/p-e584e927.entry.js +0 -1
  255. package/dist/db-ux/p-fe185f98.entry.js +0 -1
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
2
- import { c as cls } from './index-C4x0SOcx.js';
1
+ import { r as registerInstance, h } from './index-Bs7RfNRP.js';
2
+ import { c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBIcon = class {
5
5
  constructor(hostRef) {
@@ -16,12 +16,16 @@ const DBIcon = class {
16
16
  const attributes = parent.attributes;
17
17
  for (let i = 0; i < attributes.length; i++) {
18
18
  const attr = attributes.item(i);
19
- if (attr &&
19
+ if (attr && attr.name !== 'data-density' &&
20
20
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
21
  element.setAttribute(attr.name, attr.value);
22
22
  parent.removeAttribute(attr.name);
23
23
  }
24
- if (attr && attr.name === "class") {
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
25
29
  const isWebComponent = attr.value.includes("hydrated");
26
30
  const value = attr.value.replace("hydrated", "").trim();
27
31
  const currentClass = element.getAttribute("class");
@@ -41,9 +45,10 @@ const DBIcon = class {
41
45
  this.enableAttributePassing(this._ref, "db-icon");
42
46
  }
43
47
  render() {
44
- return (h("span", { key: '3a67532009f85e493784e99774e230f52c588ccc', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
48
+ var _a, _b;
49
+ return (h("span", { key: '4e41afd86be65137a69847bb0c154e4af951581d', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
45
50
  this._ref = el;
46
- }, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
51
+ }, 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 : h("slot", null)));
47
52
  }
48
53
  };
49
54
 
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
2
- import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
1
+ import { r as registerInstance, h } from './index-Bs7RfNRP.js';
2
+ import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBInfotext = class {
5
5
  constructor(hostRef) {
@@ -16,12 +16,16 @@ const DBInfotext = class {
16
16
  const attributes = parent.attributes;
17
17
  for (let i = 0; i < attributes.length; i++) {
18
18
  const attr = attributes.item(i);
19
- if (attr &&
19
+ if (attr && attr.name !== 'data-density' &&
20
20
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
21
  element.setAttribute(attr.name, attr.value);
22
22
  parent.removeAttribute(attr.name);
23
23
  }
24
- if (attr && attr.name === "class") {
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
25
29
  const isWebComponent = attr.value.includes("hydrated");
26
30
  const value = attr.value.replace("hydrated", "").trim();
27
31
  const currentClass = element.getAttribute("class");
@@ -41,10 +45,10 @@ const DBInfotext = class {
41
45
  this.enableAttributePassing(this._ref, "db-infotext");
42
46
  }
43
47
  render() {
44
- var _a;
45
- return (h("span", { key: 'c126d11d979284931006fa76b2a6a49e396f394c', class: cls("db-infotext", this.className), ref: (el) => {
48
+ var _a, _b, _c;
49
+ return (h("span", { key: '8251add62131b09f6e32c20c50619c5e725e5b8e', class: cls("db-infotext", this.className), ref: (el) => {
46
50
  this._ref = el;
47
- }, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": getBooleanAsString((_a = this.showIcon) !== null && _a !== void 0 ? _a : true) }, this.text ? this.text : h("slot", null)));
51
+ }, 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), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : h("slot", null)));
48
52
  }
49
53
  };
50
54
 
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
2
- import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
1
+ import { r as registerInstance, h } from './index-Bs7RfNRP.js';
2
+ import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBLink = class {
5
5
  constructor(hostRef) {
@@ -16,12 +16,16 @@ const DBLink = class {
16
16
  const attributes = parent.attributes;
17
17
  for (let i = 0; i < attributes.length; i++) {
18
18
  const attr = attributes.item(i);
19
- if (attr &&
19
+ if (attr && attr.name !== 'data-density' &&
20
20
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
21
  element.setAttribute(attr.name, attr.value);
22
22
  parent.removeAttribute(attr.name);
23
23
  }
24
- if (attr && attr.name === "class") {
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
25
29
  const isWebComponent = attr.value.includes("hydrated");
26
30
  const value = attr.value.replace("hydrated", "").trim();
27
31
  const currentClass = element.getAttribute("class");
@@ -41,10 +45,10 @@ const DBLink = class {
41
45
  this.enableAttributePassing(this._ref, "db-link");
42
46
  }
43
47
  render() {
44
- var _a, _b;
45
- return (h("a", { key: 'a43d8889621390017c07dda184c570e54d7f81e0', class: cls("db-link", this.className), ref: (el) => {
48
+ var _a, _b, _c, _d;
49
+ return (h("a", { key: '72f9513afa3d072f106c34e42b794a63b7930166', class: cls("db-link", this.className), ref: (el) => {
46
50
  this._ref = el;
47
- }, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_a = this.referrerpolicy) !== null && _a !== void 0 ? _a : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_b = this.showIcon) !== null && _b !== void 0 ? _b : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
51
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
48
52
  }
49
53
  };
50
54
 
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BrThqi62.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-Bs7RfNRP.js';
2
2
  import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
3
- import { d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
4
- import { N as NavigationItemSafeTriangle } from './navigation--UdC9CzO.js';
5
- import './floating-components-G-TursYV.js';
3
+ import { d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
4
+ import { N as NavigationItemSafeTriangle } from './navigation-DgsMCdfn.js';
5
+ import './floating-components-DfYL98sI.js';
6
6
 
7
7
  const DBNavigationItem = class {
8
8
  constructor(hostRef) {
@@ -48,12 +48,16 @@ const DBNavigationItem = class {
48
48
  const attributes = parent.attributes;
49
49
  for (let i = 0; i < attributes.length; i++) {
50
50
  const attr = attributes.item(i);
51
- if (attr &&
51
+ if (attr && attr.name !== 'data-density' &&
52
52
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
53
53
  element.setAttribute(attr.name, attr.value);
54
54
  parent.removeAttribute(attr.name);
55
55
  }
56
- if (attr && attr.name === "class") {
56
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
57
+ element.setAttribute(attr.name, attr.value);
58
+ parent.removeAttribute(attr.name);
59
+ }
60
+ else if (attr && attr.name === "class") {
57
61
  const isWebComponent = attr.value.includes("hydrated");
58
62
  const value = attr.value.replace("hydrated", "").trim();
59
63
  const currentClass = element.getAttribute("class");
@@ -104,10 +108,10 @@ const DBNavigationItem = class {
104
108
  this.watch1Fn();
105
109
  }
106
110
  render() {
107
- var _a;
108
- return (h("li", { key: 'd9127a5065dc034116325e95f39c9d2d9844722e', class: cls("db-navigation-item", this.className), ref: (el) => {
111
+ var _a, _b, _c;
112
+ return (h("li", { key: '9e00c0e7d146b0e8472b0aa356846ae40f78b142', class: cls("db-navigation-item", this.className), ref: (el) => {
109
113
  this._ref = el;
110
- }, id: this.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
114
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
111
115
  }
112
116
  static get watchers() { return {
113
117
  "subNavigationExpanded": [{
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
2
- import { c as cls } from './index-C4x0SOcx.js';
1
+ import { r as registerInstance, h } from './index-Bs7RfNRP.js';
2
+ import { c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBNavigation = class {
5
5
  constructor(hostRef) {
@@ -16,12 +16,16 @@ const DBNavigation = class {
16
16
  const attributes = parent.attributes;
17
17
  for (let i = 0; i < attributes.length; i++) {
18
18
  const attr = attributes.item(i);
19
- if (attr &&
19
+ if (attr && attr.name !== 'data-density' &&
20
20
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
21
  element.setAttribute(attr.name, attr.value);
22
22
  parent.removeAttribute(attr.name);
23
23
  }
24
- if (attr && attr.name === "class") {
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
25
29
  const isWebComponent = attr.value.includes("hydrated");
26
30
  const value = attr.value.replace("hydrated", "").trim();
27
31
  const currentClass = element.getAttribute("class");
@@ -41,9 +45,10 @@ const DBNavigation = class {
41
45
  this.enableAttributePassing(this._ref, "db-navigation");
42
46
  }
43
47
  render() {
44
- return (h("nav", { key: 'de11910f2ac8e29cb5ee23aaf0e0d38cf9b5d4e8', class: cls("db-navigation", this.className), ref: (el) => {
48
+ var _a, _b;
49
+ return (h("nav", { key: '890635e7c9c420f33510667329902249f7abd8ec', class: cls("db-navigation", this.className), ref: (el) => {
45
50
  this._ref = el;
46
- }, id: this.id }, h("menu", { key: '414afdaa58874f959a2ed49aefdaa672894806c3' }, h("slot", { key: '703407fdf69a8dfd133779c864a7016972f1a3e5' }))));
51
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '109ec2b85caaba110f70658cd7260a0b9e48f4ee' }, h("slot", { key: '0a5ba73ca5e1059eeaf339a1fec250c2e6a682e9' }))));
47
52
  }
48
53
  };
49
54
 
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Bs7RfNRP.js';
2
2
  import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
3
- import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-C4x0SOcx.js';
3
+ import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-xkoBSP8R.js';
4
4
 
5
5
  const DBNotification = class {
6
6
  constructor(hostRef) {
@@ -26,12 +26,16 @@ const DBNotification = class {
26
26
  const attributes = parent.attributes;
27
27
  for (let i = 0; i < attributes.length; i++) {
28
28
  const attr = attributes.item(i);
29
- if (attr &&
29
+ if (attr && attr.name !== 'data-density' &&
30
30
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
31
31
  element.setAttribute(attr.name, attr.value);
32
32
  parent.removeAttribute(attr.name);
33
33
  }
34
- if (attr && attr.name === "class") {
34
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
35
+ element.setAttribute(attr.name, attr.value);
36
+ parent.removeAttribute(attr.name);
37
+ }
38
+ else if (attr && attr.name === "class") {
35
39
  const isWebComponent = attr.value.includes("hydrated");
36
40
  const value = attr.value.replace("hydrated", "").trim();
37
41
  const currentClass = element.getAttribute("class");
@@ -51,14 +55,14 @@ const DBNotification = class {
51
55
  this.enableAttributePassing(this._ref, "db-notification");
52
56
  }
53
57
  render() {
54
- var _a;
55
- return (h("div", { key: 'd1b82284e12ea68b7b33ba90a760ebcd0ec867e2', class: cls("db-notification", this.className), ref: (el) => {
58
+ var _a, _b, _c;
59
+ return (h("div", { key: 'ea7d2bd4cbb5c10ad84e69fc5edeceb3ba306664', class: cls("db-notification", this.className), ref: (el) => {
56
60
  this._ref = el;
57
- }, id: this.id, role: getNotificationRole({
61
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: getNotificationRole({
58
62
  semantic: this.semantic,
59
63
  role: this.role,
60
64
  ariaLive: this.ariaLive,
61
- }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: 'a468ad7c9373bc359e404751ab736b7049e5bbe8', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '95f58e30be3685db12507152d980f6e2909b557a' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: 'd3c2d44714e5e332deae28d98ee800f8fb281f3f', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)) : null));
65
+ }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: 'f360080fb6f0841ce53af3c124c590069a9a63a1', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '956e359ac2cca3054222856efb770fb3fa465fe9' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: '834aba00e04c685c7f3524068c2f74daa3f3e75b', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
62
66
  }
63
67
  };
64
68
 
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
2
- import { c as cls, g as getBooleanAsString } from './index-C4x0SOcx.js';
1
+ import { r as registerInstance, h } from './index-Bs7RfNRP.js';
2
+ import { c as cls, g as getBooleanAsString } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBPage = class {
5
5
  constructor(hostRef) {
@@ -17,12 +17,16 @@ const DBPage = class {
17
17
  const attributes = parent.attributes;
18
18
  for (let i = 0; i < attributes.length; i++) {
19
19
  const attr = attributes.item(i);
20
- if (attr &&
20
+ if (attr && attr.name !== 'data-density' &&
21
21
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
22
22
  element.setAttribute(attr.name, attr.value);
23
23
  parent.removeAttribute(attr.name);
24
24
  }
25
- if (attr && attr.name === "class") {
25
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
26
+ element.setAttribute(attr.name, attr.value);
27
+ parent.removeAttribute(attr.name);
28
+ }
29
+ else if (attr && attr.name === "class") {
26
30
  const isWebComponent = attr.value.includes("hydrated");
27
31
  const value = attr.value.replace("hydrated", "").trim();
28
32
  const currentClass = element.getAttribute("class");
@@ -58,9 +62,10 @@ const DBPage = class {
58
62
  }
59
63
  }
60
64
  render() {
61
- return (h("div", { key: '005b795411eb8ae8717d978eae32db515f7f6d87', class: cls("db-page", this.className), ref: (el) => {
65
+ var _a, _b;
66
+ return (h("div", { key: 'c08b2ad9b8e77fb1f11664ee52dcbb1d09bd9481', class: cls("db-page", this.className), ref: (el) => {
62
67
  this._ref = el;
63
- }, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: 'd9afe2076d0f115c2e7e8dc362ccd6e1dd3c4df7', name: "header" }), h("main", { key: '2002d9fbc8a71df9d042da0e77dbdce9d9bd9ab5', class: cls("db-main", this.mainClass) }, h("slot", { key: '40fdc82ff79391f41ba9bd1886959e7f84ab7626' })), h("slot", { key: '0468545812365d7124bf4e3e9f9045aacce6786a', name: "footer" })));
68
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '86fa25b9544b850ffa82b6ddff06699992671b7d', name: "header" }), h("main", { key: '7f5c1cd1c87d9cbc5cd8d905098c92adaf8370ab', class: cls("db-main", this.mainClass) }, h("slot", { key: '07186f253bb25d9d56707074a6d1ebe03fb27554' })), h("slot", { key: '549079cb855687037a0f3b241d23784430419bd6', name: "footer" })));
64
69
  }
65
70
  };
66
71
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
2
- import { d as delay, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
3
- import { D as DocumentScrollListener } from './document-scroll-listener-65bHuFAN.js';
4
- import { b as handleFixedPopover } from './floating-components-G-TursYV.js';
1
+ import { r as registerInstance, h } from './index-Bs7RfNRP.js';
2
+ import { d as delay, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
3
+ import { D as DocumentScrollListener } from './document-scroll-listener-DOBe3Oa9.js';
4
+ import { b as handleFixedPopover } from './floating-components-DfYL98sI.js';
5
5
 
6
6
  const DBPopover = class {
7
7
  constructor(hostRef) {
@@ -25,7 +25,7 @@ const DBPopover = class {
25
25
  const article = this._ref.querySelector("article");
26
26
  if (article) {
27
27
  // This is a workaround for angular
28
- delay(() => {
28
+ void delay(() => {
29
29
  var _a;
30
30
  handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
31
31
  }, 1);
@@ -96,12 +96,16 @@ const DBPopover = class {
96
96
  const attributes = parent.attributes;
97
97
  for (let i = 0; i < attributes.length; i++) {
98
98
  const attr = attributes.item(i);
99
- if (attr &&
99
+ if (attr && attr.name !== 'data-density' &&
100
100
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
101
101
  element.setAttribute(attr.name, attr.value);
102
102
  parent.removeAttribute(attr.name);
103
103
  }
104
- if (attr && attr.name === "class") {
104
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
105
+ element.setAttribute(attr.name, attr.value);
106
+ parent.removeAttribute(attr.name);
107
+ }
108
+ else if (attr && attr.name === "class") {
105
109
  const isWebComponent = attr.value.includes("hydrated");
106
110
  const value = attr.value.replace("hydrated", "").trim();
107
111
  const currentClass = element.getAttribute("class");
@@ -163,10 +167,10 @@ const DBPopover = class {
163
167
  this.watch1Fn();
164
168
  }
165
169
  render() {
166
- var _a;
167
- return (h("div", { key: '4d902919abc8bf5b55a617a31424f35582e029c1', class: cls("db-popover", this.className), ref: (el) => {
170
+ var _a, _b, _c;
171
+ return (h("div", { key: 'aa9250091fc55d09bb5db9f6ca82af793999160c', class: cls("db-popover", this.className), ref: (el) => {
168
172
  this._ref = el;
169
- }, id: this.id }, h("slot", { key: '166a0b766f6f0c003e6d7a250fd466267117f59a', name: "trigger" }), h("article", { key: '4fa535dc081c76eb21671e0abfb7d090b38e6e5c', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: 'ef47687b496cfe4d6cce11ef5d282a2ec3a88004' }))));
173
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'aab79e27b5ce47cb859342d448c4efc0933fc523', name: "trigger" }), h("article", { key: '4f8ba04305cf074b94d50c0c5121c89bd4251434', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '3ce3cca432122ee2b52d7df9cd0016d4c6b81da1' }))));
170
174
  }
171
175
  static get watchers() { return {
172
176
  "_ref": [{
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-BrThqi62.js';
2
- import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-C4x0SOcx.js';
3
- import { b as addResetEventListener } from './form-components-BLsiOrPI.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-Bs7RfNRP.js';
2
+ import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-xkoBSP8R.js';
3
+ import { b as addResetEventListener } from './form-components-D6LQfJvq.js';
4
4
 
5
5
  const DBRadio = class {
6
6
  constructor(hostRef) {
@@ -33,6 +33,10 @@ const DBRadio = class {
33
33
  this.focus.emit(event);
34
34
  }
35
35
  }
36
+ resetIds() {
37
+ var _a, _b, _c;
38
+ this._id = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `radio-${uuid()}`;
39
+ }
36
40
  /**
37
41
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
38
42
  * @param element the ref for the component
@@ -44,12 +48,16 @@ const DBRadio = class {
44
48
  const attributes = parent.attributes;
45
49
  for (let i = 0; i < attributes.length; i++) {
46
50
  const attr = attributes.item(i);
47
- if (attr &&
51
+ if (attr && attr.name !== 'data-density' &&
48
52
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
49
53
  element.setAttribute(attr.name, attr.value);
50
54
  parent.removeAttribute(attr.name);
51
55
  }
52
- if (attr && attr.name === "class") {
56
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
57
+ element.setAttribute(attr.name, attr.value);
58
+ parent.removeAttribute(attr.name);
59
+ }
60
+ else if (attr && attr.name === "class") {
53
61
  const isWebComponent = attr.value.includes("hydrated");
54
62
  const value = attr.value.replace("hydrated", "").trim();
55
63
  const currentClass = element.getAttribute("class");
@@ -66,14 +74,23 @@ const DBRadio = class {
66
74
  }
67
75
  }
68
76
  watch0Fn() {
69
- if (this.checked && this.initialized && this._ref) {
70
- this._ref.checked = true;
77
+ var _a, _b;
78
+ if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
79
+ this.resetIds();
71
80
  }
72
81
  }
73
82
  watch0() {
74
83
  this.watch0Fn();
75
84
  }
76
85
  watch1Fn() {
86
+ if (this.checked && this.initialized && this._ref) {
87
+ this._ref.checked = true;
88
+ }
89
+ }
90
+ watch1() {
91
+ this.watch1Fn();
92
+ }
93
+ watch2Fn() {
77
94
  if (this._ref) {
78
95
  let controller = this.abortController;
79
96
  if (!controller) {
@@ -92,37 +109,43 @@ const DBRadio = class {
92
109
  }, controller.signal);
93
110
  }
94
111
  }
95
- watch1() {
96
- this.watch1Fn();
112
+ watch2() {
113
+ this.watch2Fn();
97
114
  }
98
115
  componentDidLoad() {
99
- var _a;
100
116
  this.enableAttributePassing(this._ref, "db-radio");
101
117
  this.initialized = true;
102
- this._id = (_a = this.id) !== null && _a !== void 0 ? _a : `radio-${uuid()}`;
118
+ this.resetIds();
103
119
  this.watch0Fn();
104
120
  this.watch1Fn();
121
+ this.watch2Fn();
105
122
  }
106
123
  disconnectedCallback() {
107
124
  var _a;
108
125
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
109
126
  }
110
127
  render() {
111
- return (h("label", { key: '2d573f1bd633fdedf2fde15c11d52cfa8a70b3ef', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: 'dd0ae78f833d0cd170824fd38aef50797529557a', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
128
+ return (h("label", { key: '9c3f8305d05457c20250793e18a9d18c8c036f7c', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: 'f65b487ea3dcd26eb348d7b7e18461d29fc6e0af', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
112
129
  this._ref = el;
113
130
  }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : h("slot", null)));
114
131
  }
115
132
  static get watchers() { return {
116
- "initialized": [{
133
+ "id": [{
117
134
  "watch0": 0
118
135
  }],
119
- "_ref": [{
136
+ "propOverrides?.id": [{
120
137
  "watch0": 0
121
- }, {
138
+ }],
139
+ "initialized": [{
122
140
  "watch1": 0
123
141
  }],
142
+ "_ref": [{
143
+ "watch1": 0
144
+ }, {
145
+ "watch2": 0
146
+ }],
124
147
  "checked": [{
125
- "watch0": 0
148
+ "watch1": 0
126
149
  }]
127
150
  }; }
128
151
  };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h } from './index-BrThqi62.js';
2
- import { c as cls } from './index-C4x0SOcx.js';
1
+ import { r as registerInstance, h } from './index-Bs7RfNRP.js';
2
+ import { c as cls } from './index-xkoBSP8R.js';
3
3
 
4
4
  const DBSection = class {
5
5
  constructor(hostRef) {
@@ -16,12 +16,16 @@ const DBSection = class {
16
16
  const attributes = parent.attributes;
17
17
  for (let i = 0; i < attributes.length; i++) {
18
18
  const attr = attributes.item(i);
19
- if (attr &&
19
+ if (attr && attr.name !== 'data-density' &&
20
20
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
21
  element.setAttribute(attr.name, attr.value);
22
22
  parent.removeAttribute(attr.name);
23
23
  }
24
- if (attr && attr.name === "class") {
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
25
29
  const isWebComponent = attr.value.includes("hydrated");
26
30
  const value = attr.value.replace("hydrated", "").trim();
27
31
  const currentClass = element.getAttribute("class");
@@ -41,9 +45,10 @@ const DBSection = class {
41
45
  this.enableAttributePassing(this._ref, "db-section");
42
46
  }
43
47
  render() {
44
- return (h("section", { key: '2d9f2702a0f18b257a3517ff002ff45984e07016', class: cls("db-section", this.className), ref: (el) => {
48
+ var _a, _b;
49
+ return (h("section", { key: '433827caeacf2a63ea928bd6178f66dad7112d6d', class: cls("db-section", this.className), ref: (el) => {
45
50
  this._ref = el;
46
- }, id: this.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: 'c432a712362af876cadc2c40946280272886e74c' })));
51
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: 'b815cad646a0d81b749b215a02299b290f765f09' })));
47
52
  }
48
53
  };
49
54