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

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 (184) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/db-accordion-item.cjs.entry.js +9 -5
  3. package/dist/cjs/db-accordion.cjs.entry.js +8 -4
  4. package/dist/cjs/db-badge.cjs.entry.js +8 -4
  5. package/dist/cjs/db-brand.cjs.entry.js +8 -4
  6. package/dist/cjs/db-button.cjs.entry.js +8 -4
  7. package/dist/cjs/db-card.cjs.entry.js +9 -5
  8. package/dist/cjs/db-checkbox.cjs.entry.js +9 -5
  9. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +40 -20
  10. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +9 -5
  11. package/dist/cjs/db-custom-select.cjs.entry.js +14 -10
  12. package/dist/cjs/db-divider.cjs.entry.js +8 -4
  13. package/dist/cjs/db-drawer.cjs.entry.js +10 -6
  14. package/dist/cjs/db-header.cjs.entry.js +11 -7
  15. package/dist/cjs/db-icon.cjs.entry.js +8 -4
  16. package/dist/cjs/db-infotext.cjs.entry.js +8 -4
  17. package/dist/cjs/db-link.cjs.entry.js +8 -4
  18. package/dist/cjs/db-navigation-item.cjs.entry.js +10 -6
  19. package/dist/cjs/db-navigation.cjs.entry.js +9 -5
  20. package/dist/cjs/db-notification.cjs.entry.js +9 -5
  21. package/dist/cjs/db-page.cjs.entry.js +9 -5
  22. package/dist/cjs/db-popover.cjs.entry.js +11 -7
  23. package/dist/cjs/db-radio.cjs.entry.js +8 -4
  24. package/dist/cjs/db-section.cjs.entry.js +9 -5
  25. package/dist/cjs/db-select.cjs.entry.js +9 -5
  26. package/dist/cjs/db-stack.cjs.entry.js +9 -5
  27. package/dist/cjs/db-switch.cjs.entry.js +9 -5
  28. package/dist/cjs/db-tab-item_3.cjs.entry.js +25 -13
  29. package/dist/cjs/db-tabs.cjs.entry.js +9 -5
  30. package/dist/cjs/db-textarea.cjs.entry.js +9 -5
  31. package/dist/cjs/db-tooltip.cjs.entry.js +12 -7
  32. package/dist/cjs/db-ux.cjs.js +3 -3
  33. package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
  34. package/dist/cjs/{index-CEqZnn9s.js → index-Bh5ovRL2.js} +1 -1
  35. package/dist/cjs/index.cjs.js +2 -2
  36. package/dist/cjs/loader.cjs.js +2 -2
  37. package/dist/cjs/{navigation-DauGE-qj.js → navigation-BztJmEHf.js} +1 -1
  38. package/dist/collection/collection-manifest.json +1 -1
  39. package/dist/collection/components/accordion/accordion.js +7 -3
  40. package/dist/collection/components/accordion-item/accordion-item.js +8 -4
  41. package/dist/collection/components/badge/badge.js +7 -3
  42. package/dist/collection/components/brand/brand.js +7 -3
  43. package/dist/collection/components/button/button.js +7 -3
  44. package/dist/collection/components/card/card.js +8 -4
  45. package/dist/collection/components/checkbox/checkbox.js +8 -4
  46. package/dist/collection/components/custom-select/custom-select.js +12 -8
  47. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +8 -4
  48. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +8 -4
  49. package/dist/collection/components/custom-select-list/custom-select-list.js +8 -4
  50. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +7 -3
  51. package/dist/collection/components/divider/divider.js +7 -3
  52. package/dist/collection/components/drawer/drawer.js +9 -5
  53. package/dist/collection/components/header/header.js +8 -4
  54. package/dist/collection/components/icon/icon.js +7 -3
  55. package/dist/collection/components/infotext/infotext.js +7 -3
  56. package/dist/collection/components/input/input.js +8 -4
  57. package/dist/collection/components/link/link.js +7 -3
  58. package/dist/collection/components/navigation/navigation.js +8 -4
  59. package/dist/collection/components/navigation-item/navigation-item.js +7 -3
  60. package/dist/collection/components/notification/notification.js +8 -4
  61. package/dist/collection/components/page/page.js +8 -4
  62. package/dist/collection/components/popover/popover.js +9 -5
  63. package/dist/collection/components/radio/radio.js +7 -3
  64. package/dist/collection/components/section/section.js +8 -4
  65. package/dist/collection/components/select/select.js +8 -4
  66. package/dist/collection/components/stack/stack.js +8 -4
  67. package/dist/collection/components/switch/switch.js +13 -7
  68. package/dist/collection/components/tab-item/tab-item.js +8 -4
  69. package/dist/collection/components/tab-list/tab-list.js +8 -4
  70. package/dist/collection/components/tab-panel/tab-panel.js +8 -4
  71. package/dist/collection/components/tabs/tabs.js +8 -4
  72. package/dist/collection/components/tag/tag.js +8 -4
  73. package/dist/collection/components/textarea/textarea.js +8 -4
  74. package/dist/collection/components/tooltip/tooltip.js +10 -5
  75. package/dist/collection/utils/floating-components.js +65 -15
  76. package/dist/custom-elements.json +17369 -1424
  77. package/dist/db-ux/db-ux.esm.js +1 -1
  78. package/dist/db-ux/index.esm.js +1 -1
  79. package/dist/db-ux/p-1a72176e.entry.js +1 -0
  80. package/dist/db-ux/p-1b7f6a0b.entry.js +1 -0
  81. package/dist/db-ux/p-1da21066.entry.js +1 -0
  82. package/dist/db-ux/p-2d15e200.entry.js +1 -0
  83. package/dist/db-ux/p-312d52da.entry.js +1 -0
  84. package/dist/db-ux/p-3e6b86d6.entry.js +1 -0
  85. package/dist/db-ux/p-4aa16916.entry.js +1 -0
  86. package/dist/db-ux/p-4b69acea.entry.js +1 -0
  87. package/dist/db-ux/p-4cfff250.entry.js +1 -0
  88. package/dist/db-ux/p-5237e5d5.entry.js +1 -0
  89. package/dist/db-ux/p-5b1a0f0f.entry.js +1 -0
  90. package/dist/db-ux/p-5fa85b19.entry.js +1 -0
  91. package/dist/db-ux/p-64264628.entry.js +1 -0
  92. package/dist/db-ux/p-7351b5ab.entry.js +1 -0
  93. package/dist/db-ux/p-77150a25.entry.js +1 -0
  94. package/dist/db-ux/p-7c6b7578.entry.js +1 -0
  95. package/dist/db-ux/p-828a77d8.entry.js +1 -0
  96. package/dist/db-ux/p-9b47dc80.entry.js +1 -0
  97. package/dist/db-ux/p-DfYL98sI.js +1 -0
  98. package/dist/db-ux/p-a3a8ce36.entry.js +1 -0
  99. package/dist/db-ux/p-aa0f7280.entry.js +1 -0
  100. package/dist/db-ux/p-b07122c4.entry.js +1 -0
  101. package/dist/db-ux/p-b1fc0f4c.entry.js +1 -0
  102. package/dist/db-ux/p-c2624e1b.entry.js +1 -0
  103. package/dist/db-ux/p-c29d8e32.entry.js +1 -0
  104. package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
  105. package/dist/db-ux/p-cf50169a.entry.js +1 -0
  106. package/dist/db-ux/p-d4f3cfa2.entry.js +1 -0
  107. package/dist/db-ux/p-e05fee5a.entry.js +1 -0
  108. package/dist/db-ux/p-f40d2d61.entry.js +1 -0
  109. package/dist/db-ux/p-fcf8e274.entry.js +1 -0
  110. package/dist/db-ux/p-fe06f815.entry.js +1 -0
  111. package/dist/esm/db-accordion-item.entry.js +9 -5
  112. package/dist/esm/db-accordion.entry.js +8 -4
  113. package/dist/esm/db-badge.entry.js +8 -4
  114. package/dist/esm/db-brand.entry.js +8 -4
  115. package/dist/esm/db-button.entry.js +8 -4
  116. package/dist/esm/db-card.entry.js +9 -5
  117. package/dist/esm/db-checkbox.entry.js +9 -5
  118. package/dist/esm/db-custom-select-dropdown_5.entry.js +40 -20
  119. package/dist/esm/db-custom-select-form-field.entry.js +9 -5
  120. package/dist/esm/db-custom-select.entry.js +14 -10
  121. package/dist/esm/db-divider.entry.js +8 -4
  122. package/dist/esm/db-drawer.entry.js +10 -6
  123. package/dist/esm/db-header.entry.js +11 -7
  124. package/dist/esm/db-icon.entry.js +8 -4
  125. package/dist/esm/db-infotext.entry.js +8 -4
  126. package/dist/esm/db-link.entry.js +8 -4
  127. package/dist/esm/db-navigation-item.entry.js +10 -6
  128. package/dist/esm/db-navigation.entry.js +9 -5
  129. package/dist/esm/db-notification.entry.js +9 -5
  130. package/dist/esm/db-page.entry.js +9 -5
  131. package/dist/esm/db-popover.entry.js +11 -7
  132. package/dist/esm/db-radio.entry.js +8 -4
  133. package/dist/esm/db-section.entry.js +9 -5
  134. package/dist/esm/db-select.entry.js +9 -5
  135. package/dist/esm/db-stack.entry.js +9 -5
  136. package/dist/esm/db-switch.entry.js +9 -5
  137. package/dist/esm/db-tab-item_3.entry.js +25 -13
  138. package/dist/esm/db-tabs.entry.js +9 -5
  139. package/dist/esm/db-textarea.entry.js +9 -5
  140. package/dist/esm/db-tooltip.entry.js +12 -7
  141. package/dist/esm/db-ux.js +4 -4
  142. package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
  143. package/dist/esm/{index-BrThqi62.js → index-Crtu1dn6.js} +1 -1
  144. package/dist/esm/index.js +2 -2
  145. package/dist/esm/loader.js +3 -3
  146. package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
  147. package/dist/types/components/switch/model.d.ts +1 -1
  148. package/dist/types/components.d.ts +1 -0
  149. package/dist/types/shared/model.d.ts +2 -2
  150. package/dist/vscode.html-custom-data.json +1718 -294
  151. package/dist/web-types.json +2740 -666
  152. package/package.json +4 -4
  153. package/dist/db-ux/p-07bf3657.entry.js +0 -1
  154. package/dist/db-ux/p-0a89cbcd.entry.js +0 -1
  155. package/dist/db-ux/p-15539d9d.entry.js +0 -1
  156. package/dist/db-ux/p-41cb4673.entry.js +0 -1
  157. package/dist/db-ux/p-460073dd.entry.js +0 -1
  158. package/dist/db-ux/p-4a9b9909.entry.js +0 -1
  159. package/dist/db-ux/p-4ec09cf1.entry.js +0 -1
  160. package/dist/db-ux/p-57205dfd.entry.js +0 -1
  161. package/dist/db-ux/p-5775bf7a.entry.js +0 -1
  162. package/dist/db-ux/p-5bcde39a.entry.js +0 -1
  163. package/dist/db-ux/p-6341aaa9.entry.js +0 -1
  164. package/dist/db-ux/p-64573104.entry.js +0 -1
  165. package/dist/db-ux/p-6b63156d.entry.js +0 -1
  166. package/dist/db-ux/p-70822a27.entry.js +0 -1
  167. package/dist/db-ux/p-710a430d.entry.js +0 -1
  168. package/dist/db-ux/p-72d712b0.entry.js +0 -1
  169. package/dist/db-ux/p-7b7f4d03.entry.js +0 -1
  170. package/dist/db-ux/p-7bd4c573.entry.js +0 -1
  171. package/dist/db-ux/p-819cf20a.entry.js +0 -1
  172. package/dist/db-ux/p-87fdbcfb.entry.js +0 -1
  173. package/dist/db-ux/p-9051e26c.entry.js +0 -1
  174. package/dist/db-ux/p-934a708c.entry.js +0 -1
  175. package/dist/db-ux/p-9ffa5c48.entry.js +0 -1
  176. package/dist/db-ux/p-G-TursYV.js +0 -1
  177. package/dist/db-ux/p-a9af70eb.entry.js +0 -1
  178. package/dist/db-ux/p-aa8383a3.entry.js +0 -1
  179. package/dist/db-ux/p-ba1f69bd.entry.js +0 -1
  180. package/dist/db-ux/p-d273b998.entry.js +0 -1
  181. package/dist/db-ux/p-da4ee6ee.entry.js +0 -1
  182. package/dist/db-ux/p-e584e927.entry.js +0 -1
  183. package/dist/db-ux/p-fe185f98.entry.js +0 -1
  184. /package/dist/db-ux/{p-BrThqi62.js → p-Crtu1dn6.js} +0 -0
@@ -19,12 +19,16 @@ export class DBCustomSelectDropdown {
19
19
  const attributes = parent.attributes;
20
20
  for (let i = 0; i < attributes.length; i++) {
21
21
  const attr = attributes.item(i);
22
- if (attr &&
22
+ if (attr && attr.name !== 'data-density' &&
23
23
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
24
24
  element.setAttribute(attr.name, attr.value);
25
25
  parent.removeAttribute(attr.name);
26
26
  }
27
- if (attr && attr.name === "class") {
27
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
28
+ element.setAttribute(attr.name, attr.value);
29
+ parent.removeAttribute(attr.name);
30
+ }
31
+ else if (attr && attr.name === "class") {
28
32
  const isWebComponent = attr.value.includes("hydrated");
29
33
  const value = attr.value.replace("hydrated", "").trim();
30
34
  const currentClass = element.getAttribute("class");
@@ -44,9 +48,9 @@ export class DBCustomSelectDropdown {
44
48
  this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
45
49
  }
46
50
  render() {
47
- return (h("article", { key: '98087cc1db985bbb2e2578cb9e2c78bc3a0c3b23', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
51
+ return (h("article", { key: 'ac22786c8688e2f979e626155cb8dea54a5380b7', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
48
52
  this._ref = el;
49
- }, id: this.id, "data-width": this.width }, h("slot", { key: '25bcaa79bdf8168feffce0a59c0adbc656023e64' })));
53
+ }, id: this.id, "data-width": this.width }, h("slot", { key: '2257275bfc7a9f75e944d61e8afc7493770478b5' })));
50
54
  }
51
55
  static get is() { return "db-custom-select-dropdown"; }
52
56
  static get properties() {
@@ -16,12 +16,16 @@ export class DBCustomSelectFormField {
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,9 @@ export class DBCustomSelectFormField {
41
45
  this.enableAttributePassing(this._ref, "db-custom-select-form-field");
42
46
  }
43
47
  render() {
44
- return (h("summary", { key: '22a05256e65e56208335b9a5c840e75988a57182', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
48
+ return (h("summary", { key: '4ade22e5e7d664747ba44a25cea8778ee76de2c0', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
45
49
  this._ref = el;
46
- }, id: this.id }, h("slot", { key: '3c6c62df9bf0d2a73e37a9ad69d3a46daa672984' })));
50
+ }, id: this.id }, h("slot", { key: '457f965d451fcd6e03199b4273a2e0ebb6b85bb1' })));
47
51
  }
48
52
  static get is() { return "db-custom-select-form-field"; }
49
53
  static get properties() {
@@ -16,12 +16,16 @@ export class DBCustomSelectList {
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,9 @@ export class DBCustomSelectList {
41
45
  this.enableAttributePassing(this._ref, "db-custom-select-list");
42
46
  }
43
47
  render() {
44
- return (h("div", { key: 'f47e219aac45d07e958a94969205260af981bcf1', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
48
+ return (h("div", { key: '5f26917a02c72091c5d2c0a21a04b2f45b983b35', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
45
49
  this._ref = el;
46
- }, id: this.id }, h("ul", { key: 'adca0d159ec4cd5d2dc46f11fe41006276dba94f' }, h("slot", { key: 'abb6edfb683a3e4a42512b2185854099c66f1f3c' }))));
50
+ }, id: this.id }, h("ul", { key: '5eaa90fa614daa186d2b10064066e2cc030da8eb' }, h("slot", { key: '15289fd4ac602d6f182fb112f66e716e56f79101' }))));
47
51
  }
48
52
  static get is() { return "db-custom-select-list"; }
49
53
  static get properties() {
@@ -31,12 +31,16 @@ export class DBCustomSelectListItem {
31
31
  const attributes = parent.attributes;
32
32
  for (let i = 0; i < attributes.length; i++) {
33
33
  const attr = attributes.item(i);
34
- if (attr &&
34
+ if (attr && attr.name !== 'data-density' &&
35
35
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
36
36
  element.setAttribute(attr.name, attr.value);
37
37
  parent.removeAttribute(attr.name);
38
38
  }
39
- if (attr && attr.name === "class") {
39
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
40
+ element.setAttribute(attr.name, attr.value);
41
+ parent.removeAttribute(attr.name);
42
+ }
43
+ else if (attr && attr.name === "class") {
40
44
  const isWebComponent = attr.value.includes("hydrated");
41
45
  const value = attr.value.replace("hydrated", "").trim();
42
46
  const currentClass = element.getAttribute("class");
@@ -63,7 +67,7 @@ export class DBCustomSelectListItem {
63
67
  this.watch0Fn();
64
68
  }
65
69
  render() {
66
- return (h("li", { key: '1155e389f33c440e04b5e7ca71732d108925e2cd', class: cls("db-custom-select-list-item", this.className, {
70
+ return (h("li", { key: 'fd25b48f61d95cc1c81526edf9413aef628f7472', class: cls("db-custom-select-list-item", this.className, {
67
71
  "db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
68
72
  "db-radio": this.type !== "checkbox" && !this.isGroupTitle,
69
73
  }), ref: (el) => {
@@ -16,12 +16,16 @@ export class DBDivider {
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,7 +45,7 @@ export class DBDivider {
41
45
  this.enableAttributePassing(this._ref, "db-divider");
42
46
  }
43
47
  render() {
44
- return (h("div", { key: '0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16', class: cls("db-divider", this.className), ref: (el) => {
48
+ return (h("div", { key: '85afebbf444ffecdfbc4701e36c94c9a48080fc1', class: cls("db-divider", this.className), ref: (el) => {
45
49
  this._ref = el;
46
50
  }, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
47
51
  }
@@ -82,12 +82,16 @@ export class DBDrawer {
82
82
  const attributes = parent.attributes;
83
83
  for (let i = 0; i < attributes.length; i++) {
84
84
  const attr = attributes.item(i);
85
- if (attr &&
85
+ if (attr && attr.name !== 'data-density' &&
86
86
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
87
87
  element.setAttribute(attr.name, attr.value);
88
88
  parent.removeAttribute(attr.name);
89
89
  }
90
- if (attr && attr.name === "class") {
90
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
91
+ element.setAttribute(attr.name, attr.value);
92
+ parent.removeAttribute(attr.name);
93
+ }
94
+ else if (attr && attr.name === "class") {
91
95
  const isWebComponent = attr.value.includes("hydrated");
92
96
  const value = attr.value.replace("hydrated", "").trim();
93
97
  const currentClass = element.getAttribute("class");
@@ -130,11 +134,11 @@ export class DBDrawer {
130
134
  }
131
135
  render() {
132
136
  var _a;
133
- return (h("dialog", { key: '171c5580c99bbe2d2ea0a6e8e5962e4132d9b07f', class: "db-drawer", id: this.id, ref: (el) => {
137
+ return (h("dialog", { key: '571d8c77113ad08a76865dec43c20069cc558290', class: "db-drawer", id: this.id, ref: (el) => {
134
138
  this._ref = el;
135
- }, 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: 'e9fad39beff3e642ad13be4950bb64fd15896f80', class: cls("db-drawer-container", this.className), ref: (el) => {
139
+ }, 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: '6116282c0fb97d5c34a216c899b53c405116c326', class: cls("db-drawer-container", this.className), ref: (el) => {
136
140
  this.dialogContainerRef = el;
137
- }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: 'cb9f374f26ebca0f11d02081c28e856cc87107c3', class: "db-drawer-header" }, h("div", { key: '7fca8037c16e16d909bcede75e223f38ae019453', class: "db-drawer-header-text" }, h("slot", { key: '85159cc4d260fa992bfe8b933920ae286b9ab09c', name: "drawerHeader" })), h("db-button", { key: '4a9ad6ba576480b154614da72752421a8ff81df6', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)), h("div", { key: '9dbbd6a3835dad60dea79a9b2fbed6a62dd6b837', class: "db-drawer-content" }, h("slot", { key: '1bc4b88266e6d7250d0075e2405b725ad38b950e' })))));
141
+ }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '4e2300a258a0cea3141b8cca846fa5163c911caa', class: "db-drawer-header" }, h("div", { key: '659656f5fed1e68d21c44c9eaed5d91f634cf58f', class: "db-drawer-header-text" }, h("slot", { key: '51b540fa08c43a570e7a4cc49306a0a20af9c3be', name: "drawerHeader" })), h("db-button", { key: '88facb314b62e021c678b4298dfcd4daa20d58ed', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)), h("div", { key: '439a1f0615d190b737d758d60cba5488ea72811b', class: "db-drawer-content" }, h("slot", { key: '80c97bcc8cfb09aa2ec65dae1285d5a48c242eea' })))));
138
142
  }
139
143
  static get is() { return "db-drawer"; }
140
144
  static get properties() {
@@ -39,12 +39,16 @@ export class DBHeader {
39
39
  const attributes = parent.attributes;
40
40
  for (let i = 0; i < attributes.length; i++) {
41
41
  const attr = attributes.item(i);
42
- if (attr &&
42
+ if (attr && attr.name !== 'data-density' &&
43
43
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
44
44
  element.setAttribute(attr.name, attr.value);
45
45
  parent.removeAttribute(attr.name);
46
46
  }
47
- if (attr && attr.name === "class") {
47
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
48
+ element.setAttribute(attr.name, attr.value);
49
+ parent.removeAttribute(attr.name);
50
+ }
51
+ else if (attr && attr.name === "class") {
48
52
  const isWebComponent = attr.value.includes("hydrated");
49
53
  const value = attr.value.replace("hydrated", "").trim();
50
54
  const currentClass = element.getAttribute("class");
@@ -81,9 +85,9 @@ export class DBHeader {
81
85
  }
82
86
  render() {
83
87
  var _a;
84
- return (h("header", { key: 'f9850f5a6f59bee2ed97db4baea343e07aaff91a', class: cls("db-header", this.className), ref: (el) => {
88
+ return (h("header", { key: '3ce812cf839f1f8c29b9bc05c6a840b58b13b51e', class: cls("db-header", this.className), ref: (el) => {
85
89
  this._ref = el;
86
- }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '32f62d8f0bf634e96cf7b0e96721fcd40aa3a3eb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'a42c28439d07e97a3842efe4fa1c143c23691b5f', class: "db-header-drawer-navigation" }, h("div", { key: '141165e04574db312d51b0b4c376c53ddace243e', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '2208e0677b1f15da56fd6be230523559fcb5f1da' })), h("div", { key: 'fb980500cdb2f6f3ce2fce2489c48ac27ebd256a', class: "db-header-meta-navigation" }, h("slot", { key: '7eea7189a1e82821fc3f0bd600bda5a040382e88', name: "metaNavigation" }))), h("div", { key: 'a492419586593d43edbada69ad136ad832902e15', class: "db-header-secondary-action" }, h("slot", { key: '90ed75a19c230c3a2af94b8e0b397c8712f9a0df', name: "secondaryAction" }))), h("div", { key: '1d0451bd1f522f51cbd2bab3cd1b7c316fd644b4', class: "db-header-meta-navigation" }, h("slot", { key: 'd92c5a30a0131225f2b7b1428c5121fed241d8a7', name: "metaNavigation" })), h("div", { key: 'f65c8e6b2b997c281046f20e1ac7c89d8b5697f6', class: "db-header-navigation-bar" }, h("div", { key: 'be1e1017417595bbb4ff845b650f5edef1f4fd49', class: "db-header-brand-container" }, h("slot", { key: '5552b137967ae4659887ad67514fd0078ced1473', name: "brand" })), h("div", { key: '682e11b41f5131feb17cdf1e175b9bbcf8399740', class: "db-header-navigation-container" }, h("div", { key: '29f5a7afa6d8c014f6e574d72198289970e5324e', class: "db-header-navigation" }, h("slot", { key: 'f03956cf3368d3ec0dbaab3b3091c276eaf03a92' })), h("div", { key: '8a81b9ee537f84e14c9d41acf323552d6f239748', class: "db-header-primary-action" }, h("slot", { key: '78ae4dbdc9bcad5bd4bd951a0a334c47cb35bcf6', name: "primaryAction" }))), h("div", { key: 'e1e913c181df2f73cc9fe4cda17f505a26b1ad04', class: "db-header-action-container" }, h("div", { key: '92d7c9c0e50f9aa86e15c18a2ac7dddabc241358', class: "db-header-burger-menu-container" }, h("db-button", { key: '775ca507ba24b19e411e529e9ad67fcdfa6f3dea', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: '7cd5a16e27c72e3e0635056df8bcb7f45461c9fb', class: "db-header-secondary-action" }, h("slot", { key: '09669c165311f8dc95961c64900d5ab36281700a', name: "secondaryAction" }))))));
90
+ }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: 'ad1ef3ed622f466d53e854f52df140580d8dcaf9', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'f15469dcbca82a805c94e8e775f4903bff148f0c', class: "db-header-drawer-navigation" }, h("div", { key: '4d661aa075944eb2d147cde8131b3da9bfcc1a71', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '0867fadfd79434481679fd1e29d369b0da1f4f70' })), h("div", { key: '8135e33f5209b7eeff4f78ece25836fc03905113', class: "db-header-meta-navigation" }, h("slot", { key: '272b6fb534de9ebaf11ce0c15d9573f137bf9257', name: "metaNavigation" }))), h("div", { key: 'ff5e1b82535825b07721f0478b0c315dfb2064db', class: "db-header-secondary-action" }, h("slot", { key: '41f5a0bec2da7eb0a7072a48268e1252e7a6e04b', name: "secondaryAction" }))), h("div", { key: '2dc424731844cc853759d229860ca85bc8343005', class: "db-header-meta-navigation" }, h("slot", { key: '254003d7ef0b53d1a1bf4ff6c91ffaad40db23ae', name: "metaNavigation" })), h("div", { key: 'cc66337e4fa59e3ba2f8150bba581e830348c21b', class: "db-header-navigation-bar" }, h("div", { key: 'f3b2f219dff06c4e64803cee6843fce892a08710', class: "db-header-brand-container" }, h("slot", { key: '5d2b3eeb421c4954a102dfc2a98feec2eec88e9b', name: "brand" })), h("div", { key: 'ffd377f496e03febd719e8caa103aad4a70d7d09', class: "db-header-navigation-container" }, h("div", { key: 'dd144a78a278178cfbb49ca99aa6ad2c8e060c26', class: "db-header-navigation" }, h("slot", { key: '24f29087236b2f885f76fcec167c17523d7cb4cf' })), h("div", { key: '30d6926a2cc679e2a0b89321dd5573c82c52413a', class: "db-header-primary-action" }, h("slot", { key: '6e8351b6a7236d6f79b221cd78f1c19e32984a64', name: "primaryAction" }))), h("div", { key: '918bcd534073735daae1b6f366f514e9a913bcf0', class: "db-header-action-container" }, h("div", { key: 'a003b166c56c021029deb61294b1360e24c68233', class: "db-header-burger-menu-container" }, h("db-button", { key: '0a62ee629bd0b9b768a7ae33dd854c620ad8c60e', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: '70d919437f722df576cfd1f01f829da1af071352', class: "db-header-secondary-action" }, h("slot", { key: '7b2c7c2a575787fe652a47c5e570964c3715b968', name: "secondaryAction" }))))));
87
91
  }
88
92
  static get is() { return "db-header"; }
89
93
  static get properties() {
@@ -16,12 +16,16 @@ export class DBIcon {
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,7 +45,7 @@ export class DBIcon {
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
+ return (h("span", { key: '98575a7f351cb2f3bb8d716d7e8ef07f10e403ad', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
45
49
  this._ref = el;
46
50
  }, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
47
51
  }
@@ -16,12 +16,16 @@ export class DBInfotext {
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");
@@ -42,7 +46,7 @@ export class DBInfotext {
42
46
  }
43
47
  render() {
44
48
  var _a;
45
- return (h("span", { key: 'c126d11d979284931006fa76b2a6a49e396f394c', class: cls("db-infotext", this.className), ref: (el) => {
49
+ return (h("span", { key: '1d72ab4201a2886684b736cc9909ffc2df914999', class: cls("db-infotext", this.className), ref: (el) => {
46
50
  this._ref = el;
47
51
  }, 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)));
48
52
  }
@@ -95,12 +95,16 @@ export class DBInput {
95
95
  const attributes = parent.attributes;
96
96
  for (let i = 0; i < attributes.length; i++) {
97
97
  const attr = attributes.item(i);
98
- if (attr &&
98
+ if (attr && attr.name !== 'data-density' &&
99
99
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
100
100
  element.setAttribute(attr.name, attr.value);
101
101
  parent.removeAttribute(attr.name);
102
102
  }
103
- if (attr && attr.name === "class") {
103
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
104
+ element.setAttribute(attr.name, attr.value);
105
+ parent.removeAttribute(attr.name);
106
+ }
107
+ else if (attr && attr.name === "class") {
104
108
  const isWebComponent = attr.value.includes("hydrated");
105
109
  const value = attr.value.replace("hydrated", "").trim();
106
110
  const currentClass = element.getAttribute("class");
@@ -196,7 +200,7 @@ export class DBInput {
196
200
  }
197
201
  render() {
198
202
  var _a, _b, _c, _d, _e, _f, _g, _h;
199
- return (h("div", { key: 'b6b5870b00e7a3ef0155004291fc9c646863faa9', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: 'ac47e1bd7206de27075a86e3b5bf59647cffa8de', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: '40170ba9d207c96b4e86232f367a70a3301eb914', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
203
+ return (h("div", { key: '394d66670226d01b6f790d13bdbc8eb00fb376ca', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: '981344e97a91cb8c369587870e532af85fcb29c3', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: 'e7536b30d16211cc3842e7dd6e74bffe5749685f', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
200
204
  this._ref = el;
201
205
  }, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
202
206
  getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
@@ -208,7 +212,7 @@ export class DBInput {
208
212
  "color",
209
213
  ].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
210
214
  ? "textbox"
211
- : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'dd4cf602903406782a97e88ad8ccb8aacb903421' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '081dc92e27a0b81733d3200f97686fbe5fa15f76', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '43be19988deae0484f47eed9b19e0556238b558d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
215
+ : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'f5e0e8f70ab5b9ad772f38fdc8d4124e0a77faeb' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'ffb47610dff1d37759eda1f9a5022bbabbe2a7a4', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '102226d02f55e79a6e3af37899544545da43a98b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
212
216
  }
213
217
  static get is() { return "db-input"; }
214
218
  static get properties() {
@@ -16,12 +16,16 @@ export class DBLink {
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");
@@ -42,7 +46,7 @@ export class DBLink {
42
46
  }
43
47
  render() {
44
48
  var _a, _b;
45
- return (h("a", { key: 'a43d8889621390017c07dda184c570e54d7f81e0', class: cls("db-link", this.className), ref: (el) => {
49
+ return (h("a", { key: 'edcb3906d31ba5f0387137f96343d61559f553aa', class: cls("db-link", this.className), ref: (el) => {
46
50
  this._ref = el;
47
51
  }, 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)));
48
52
  }
@@ -16,12 +16,16 @@ export class DBNavigation {
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,9 @@ export class DBNavigation {
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
+ return (h("nav", { key: 'ed23071c4f127474f38f663cd5c0536c94cfe526', class: cls("db-navigation", this.className), ref: (el) => {
45
49
  this._ref = el;
46
- }, id: this.id }, h("menu", { key: '414afdaa58874f959a2ed49aefdaa672894806c3' }, h("slot", { key: '703407fdf69a8dfd133779c864a7016972f1a3e5' }))));
50
+ }, id: this.id }, h("menu", { key: 'a54c6a1a1a7e5624287c0f5f7a93bc66bcb1a2f2' }, h("slot", { key: '7fa106c1c7f1feae5ba622d89a4a4063ea5a8d93' }))));
47
51
  }
48
52
  static get is() { return "db-navigation"; }
49
53
  static get properties() {
@@ -48,12 +48,16 @@ export class DBNavigationItem {
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");
@@ -105,7 +109,7 @@ export class DBNavigationItem {
105
109
  }
106
110
  render() {
107
111
  var _a;
108
- return (h("li", { key: 'd9127a5065dc034116325e95f39c9d2d9844722e', class: cls("db-navigation-item", this.className), ref: (el) => {
112
+ return (h("li", { key: '3b363559d7b1b52c67f722164d7f5932f98d7d69', class: cls("db-navigation-item", this.className), ref: (el) => {
109
113
  this._ref = el;
110
114
  }, 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));
111
115
  }
@@ -26,12 +26,16 @@ export class DBNotification {
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");
@@ -52,13 +56,13 @@ export class DBNotification {
52
56
  }
53
57
  render() {
54
58
  var _a;
55
- return (h("div", { key: 'd1b82284e12ea68b7b33ba90a760ebcd0ec867e2', class: cls("db-notification", this.className), ref: (el) => {
59
+ return (h("div", { key: '7bfffb9a6ef900927dc92872a653c2483bba9c13', class: cls("db-notification", this.className), ref: (el) => {
56
60
  this._ref = el;
57
61
  }, id: this.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: '3dcc061adf7ad8fc7aed91bcecee48458a57c257', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '76d017fda09e1cfb0feec4045c03e40c50f5c290' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: '70f4c22660f7a9ae655002fc3947ad00d5b52f3f', 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));
62
66
  }
63
67
  static get is() { return "db-notification"; }
64
68
  static get properties() {
@@ -20,12 +20,16 @@ export class DBPage {
20
20
  const attributes = parent.attributes;
21
21
  for (let i = 0; i < attributes.length; i++) {
22
22
  const attr = attributes.item(i);
23
- if (attr &&
23
+ if (attr && attr.name !== 'data-density' &&
24
24
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
25
25
  element.setAttribute(attr.name, attr.value);
26
26
  parent.removeAttribute(attr.name);
27
27
  }
28
- if (attr && attr.name === "class") {
28
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
29
+ element.setAttribute(attr.name, attr.value);
30
+ parent.removeAttribute(attr.name);
31
+ }
32
+ else if (attr && attr.name === "class") {
29
33
  const isWebComponent = attr.value.includes("hydrated");
30
34
  const value = attr.value.replace("hydrated", "").trim();
31
35
  const currentClass = element.getAttribute("class");
@@ -61,9 +65,9 @@ export class DBPage {
61
65
  }
62
66
  }
63
67
  render() {
64
- return (h("div", { key: '005b795411eb8ae8717d978eae32db515f7f6d87', class: cls("db-page", this.className), ref: (el) => {
68
+ return (h("div", { key: 'a3bc28485521260f3b6666160df090d1f6855642', class: cls("db-page", this.className), ref: (el) => {
65
69
  this._ref = el;
66
- }, 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" })));
70
+ }, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '767ea462a8f8a08a84bf553f69304dab64d4cf41', name: "header" }), h("main", { key: '1d9e4af6efd26bb2d66ea7e1792e70c984e4ebee', class: cls("db-main", this.mainClass) }, h("slot", { key: '370197e945c6582919418e80ad29e10d991b83d0' })), h("slot", { key: 'cdade48d4fbd8f4ef472679d8fc345413335cc93', name: "footer" })));
67
71
  }
68
72
  static get is() { return "db-page"; }
69
73
  static get properties() {
@@ -27,7 +27,7 @@ export class DBPopover {
27
27
  const article = this._ref.querySelector("article");
28
28
  if (article) {
29
29
  // This is a workaround for angular
30
- utilsDelay(() => {
30
+ void utilsDelay(() => {
31
31
  var _a;
32
32
  handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
33
33
  }, 1);
@@ -98,12 +98,16 @@ export class DBPopover {
98
98
  const attributes = parent.attributes;
99
99
  for (let i = 0; i < attributes.length; i++) {
100
100
  const attr = attributes.item(i);
101
- if (attr &&
101
+ if (attr && attr.name !== 'data-density' &&
102
102
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
103
103
  element.setAttribute(attr.name, attr.value);
104
104
  parent.removeAttribute(attr.name);
105
105
  }
106
- if (attr && attr.name === "class") {
106
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
107
+ element.setAttribute(attr.name, attr.value);
108
+ parent.removeAttribute(attr.name);
109
+ }
110
+ else if (attr && attr.name === "class") {
107
111
  const isWebComponent = attr.value.includes("hydrated");
108
112
  const value = attr.value.replace("hydrated", "").trim();
109
113
  const currentClass = element.getAttribute("class");
@@ -166,9 +170,9 @@ export class DBPopover {
166
170
  }
167
171
  render() {
168
172
  var _a;
169
- return (h("div", { key: '4d902919abc8bf5b55a617a31424f35582e029c1', class: cls("db-popover", this.className), ref: (el) => {
173
+ return (h("div", { key: '6b6c1e8a1b308dde8bae73df452abe94b0b4962d', class: cls("db-popover", this.className), ref: (el) => {
170
174
  this._ref = el;
171
- }, 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' }))));
175
+ }, id: this.id }, h("slot", { key: '8276f71a50b4a588dfe8a9b8007338c895433835', name: "trigger" }), h("article", { key: '2931d9365bf99c8c539dc45ec8450fbe54e47cf2', 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: '49dbdd7f45e2ea48cc66b0463af29f0964ff7109' }))));
172
176
  }
173
177
  static get is() { return "db-popover"; }
174
178
  static get properties() {
@@ -42,12 +42,16 @@ export class DBRadio {
42
42
  const attributes = parent.attributes;
43
43
  for (let i = 0; i < attributes.length; i++) {
44
44
  const attr = attributes.item(i);
45
- if (attr &&
45
+ if (attr && attr.name !== 'data-density' &&
46
46
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
47
47
  element.setAttribute(attr.name, attr.value);
48
48
  parent.removeAttribute(attr.name);
49
49
  }
50
- if (attr && attr.name === "class") {
50
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
51
+ element.setAttribute(attr.name, attr.value);
52
+ parent.removeAttribute(attr.name);
53
+ }
54
+ else if (attr && attr.name === "class") {
51
55
  const isWebComponent = attr.value.includes("hydrated");
52
56
  const value = attr.value.replace("hydrated", "").trim();
53
57
  const currentClass = element.getAttribute("class");
@@ -109,7 +113,7 @@ export class DBRadio {
109
113
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
110
114
  }
111
115
  render() {
112
- 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) => {
116
+ return (h("label", { key: '998fcc7e72f405047969e91d70e4093c4fb7a923', 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: 'fc200290758670942c7aa3b584c9cc49cc9faa37', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
113
117
  this._ref = el;
114
118
  }, 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)));
115
119
  }