@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,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CEqZnn9s.js');
4
- var index$1 = require('./index-CsHqnQII.js');
3
+ var index = require('./index-CSMPhlzz.js');
4
+ var index$1 = require('./index-2_9ESkQu.js');
5
5
  var constants = require('./constants-bMY2_d8A.js');
6
- var formComponents = require('./form-components-LsqVohyb.js');
6
+ var formComponents = require('./form-components-_ncB_U2D.js');
7
7
 
8
8
  const DBCustomSelectDropdown = class {
9
9
  constructor(hostRef) {
@@ -21,12 +21,16 @@ const DBCustomSelectDropdown = class {
21
21
  const attributes = parent.attributes;
22
22
  for (let i = 0; i < attributes.length; i++) {
23
23
  const attr = attributes.item(i);
24
- if (attr &&
24
+ if (attr && attr.name !== 'data-density' &&
25
25
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
26
26
  element.setAttribute(attr.name, attr.value);
27
27
  parent.removeAttribute(attr.name);
28
28
  }
29
- if (attr && attr.name === "class") {
29
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
30
+ element.setAttribute(attr.name, attr.value);
31
+ parent.removeAttribute(attr.name);
32
+ }
33
+ else if (attr && attr.name === "class") {
30
34
  const isWebComponent = attr.value.includes("hydrated");
31
35
  const value = attr.value.replace("hydrated", "").trim();
32
36
  const currentClass = element.getAttribute("class");
@@ -46,9 +50,10 @@ const DBCustomSelectDropdown = class {
46
50
  this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
47
51
  }
48
52
  render() {
49
- return (index.h("article", { key: '98087cc1db985bbb2e2578cb9e2c78bc3a0c3b23', class: index$1.cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
53
+ var _a, _b;
54
+ return (index.h("article", { key: '18ea31a3993786aed93fbb95fabc349231b455ae', class: index$1.cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
50
55
  this._ref = el;
51
- }, id: this.id, "data-width": this.width }, index.h("slot", { key: '25bcaa79bdf8168feffce0a59c0adbc656023e64' })));
56
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, index.h("slot", { key: '14a29534f56e6fe16c6d6e856b26aba549fef8dc' })));
52
57
  }
53
58
  };
54
59
 
@@ -67,12 +72,16 @@ const DBCustomSelectList = class {
67
72
  const attributes = parent.attributes;
68
73
  for (let i = 0; i < attributes.length; i++) {
69
74
  const attr = attributes.item(i);
70
- if (attr &&
75
+ if (attr && attr.name !== 'data-density' &&
71
76
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
72
77
  element.setAttribute(attr.name, attr.value);
73
78
  parent.removeAttribute(attr.name);
74
79
  }
75
- if (attr && attr.name === "class") {
80
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
81
+ element.setAttribute(attr.name, attr.value);
82
+ parent.removeAttribute(attr.name);
83
+ }
84
+ else if (attr && attr.name === "class") {
76
85
  const isWebComponent = attr.value.includes("hydrated");
77
86
  const value = attr.value.replace("hydrated", "").trim();
78
87
  const currentClass = element.getAttribute("class");
@@ -92,9 +101,10 @@ const DBCustomSelectList = class {
92
101
  this.enableAttributePassing(this._ref, "db-custom-select-list");
93
102
  }
94
103
  render() {
95
- return (index.h("div", { key: 'f47e219aac45d07e958a94969205260af981bcf1', class: index$1.cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
104
+ var _a, _b;
105
+ return (index.h("div", { key: '7694da5a9c97c4f603217d79afd88afe63719db8', class: index$1.cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
96
106
  this._ref = el;
97
- }, id: this.id }, index.h("ul", { key: 'adca0d159ec4cd5d2dc46f11fe41006276dba94f' }, index.h("slot", { key: 'abb6edfb683a3e4a42512b2185854099c66f1f3c' }))));
107
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '5c718c452425cfec8a6234d5ae2cf6aef7ed4655' }, index.h("slot", { key: '93b311c5a750a9ec2b0cb9ab4f7453aa25cc77d8' }))));
98
108
  }
99
109
  };
100
110
 
@@ -127,12 +137,16 @@ const DBCustomSelectListItem = class {
127
137
  const attributes = parent.attributes;
128
138
  for (let i = 0; i < attributes.length; i++) {
129
139
  const attr = attributes.item(i);
130
- if (attr &&
140
+ if (attr && attr.name !== 'data-density' &&
131
141
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
132
142
  element.setAttribute(attr.name, attr.value);
133
143
  parent.removeAttribute(attr.name);
134
144
  }
135
- if (attr && attr.name === "class") {
145
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
146
+ element.setAttribute(attr.name, attr.value);
147
+ parent.removeAttribute(attr.name);
148
+ }
149
+ else if (attr && attr.name === "class") {
136
150
  const isWebComponent = attr.value.includes("hydrated");
137
151
  const value = attr.value.replace("hydrated", "").trim();
138
152
  const currentClass = element.getAttribute("class");
@@ -159,12 +173,13 @@ const DBCustomSelectListItem = class {
159
173
  this.watch0Fn();
160
174
  }
161
175
  render() {
162
- return (index.h("li", { key: '1155e389f33c440e04b5e7ca71732d108925e2cd', class: index$1.cls("db-custom-select-list-item", this.className, {
176
+ var _a, _b;
177
+ return (index.h("li", { key: '40ae5213dd63ce580e2a036e5bf4781065026a30', class: index$1.cls("db-custom-select-list-item", this.className, {
163
178
  "db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
164
179
  "db-radio": this.type !== "checkbox" && !this.isGroupTitle,
165
180
  }), ref: (el) => {
166
181
  this._ref = el;
167
- }, id: this.id, "data-divider": index$1.getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (index.h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, index.h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : index.h("slot", null))) : (index.h("span", null, this.groupTitle))));
182
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": index$1.getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (index.h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, index.h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : index.h("slot", null))) : (index.h("span", null, this.groupTitle))));
168
183
  }
169
184
  static get watchers() { return {
170
185
  "isGroupTitle": [{
@@ -259,6 +274,15 @@ const DBInput = class {
259
274
  }))
260
275
  : _list) || []);
261
276
  }
277
+ resetIds() {
278
+ var _a, _b, _c;
279
+ const mId = (_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 : `input-${index$1.uuid()}`;
280
+ this._id = mId;
281
+ this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
282
+ this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
283
+ this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
284
+ this._dataListId = mId + constants.DEFAULT_DATALIST_ID_SUFFIX;
285
+ }
262
286
  /**
263
287
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
264
288
  * @param element the ref for the component
@@ -270,12 +294,16 @@ const DBInput = class {
270
294
  const attributes = parent.attributes;
271
295
  for (let i = 0; i < attributes.length; i++) {
272
296
  const attr = attributes.item(i);
273
- if (attr &&
297
+ if (attr && attr.name !== 'data-density' &&
274
298
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
275
299
  element.setAttribute(attr.name, attr.value);
276
300
  parent.removeAttribute(attr.name);
277
301
  }
278
- if (attr && attr.name === "class") {
302
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
303
+ element.setAttribute(attr.name, attr.value);
304
+ parent.removeAttribute(attr.name);
305
+ }
306
+ else if (attr && attr.name === "class") {
279
307
  const isWebComponent = attr.value.includes("hydrated");
280
308
  const value = attr.value.replace("hydrated", "").trim();
281
309
  const currentClass = element.getAttribute("class");
@@ -292,16 +320,25 @@ const DBInput = class {
292
320
  }
293
321
  }
294
322
  watch0Fn() {
323
+ var _a, _b;
324
+ if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
325
+ this.resetIds();
326
+ }
327
+ }
328
+ watch0() {
329
+ this.watch0Fn();
330
+ }
331
+ watch1Fn() {
295
332
  var _a;
296
333
  this._invalidMessage =
297
334
  this.invalidMessage ||
298
335
  ((_a = this._ref) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
299
336
  constants.DEFAULT_INVALID_MESSAGE;
300
337
  }
301
- watch0() {
302
- this.watch0Fn();
338
+ watch1() {
339
+ this.watch1Fn();
303
340
  }
304
- watch1Fn() {
341
+ watch2Fn() {
305
342
  var _a;
306
343
  if (this._id) {
307
344
  const messageId = this._id + constants.DEFAULT_MESSAGE_ID_SUFFIX;
@@ -316,18 +353,18 @@ const DBInput = class {
316
353
  this.handleValidation();
317
354
  }
318
355
  }
319
- watch1() {
320
- this.watch1Fn();
356
+ watch2() {
357
+ this.watch2Fn();
321
358
  }
322
- watch2Fn() {
359
+ watch3Fn() {
323
360
  if (this.value !== undefined) {
324
361
  this._value = this.value;
325
362
  }
326
363
  }
327
- watch2() {
328
- this.watch2Fn();
364
+ watch3() {
365
+ this.watch3Fn();
329
366
  }
330
- watch3Fn() {
367
+ watch4Fn() {
331
368
  // If angular uses ngModel value and _value are null
332
369
  // then the value will be set afterward and the _ref will be refreshed
333
370
  const addResetListener = true;
@@ -347,23 +384,18 @@ const DBInput = class {
347
384
  }, controller.signal);
348
385
  }
349
386
  }
350
- watch3() {
351
- this.watch3Fn();
387
+ watch4() {
388
+ this.watch4Fn();
352
389
  }
353
390
  componentDidLoad() {
354
- var _a;
355
391
  this.enableAttributePassing(this._ref, "db-input");
356
- const mId = (_a = this.id) !== null && _a !== void 0 ? _a : `input-${index$1.uuid()}`;
357
- this._id = mId;
358
- this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
359
- this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
360
- this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
361
- this._dataListId = mId + constants.DEFAULT_DATALIST_ID_SUFFIX;
392
+ this.resetIds();
362
393
  this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
363
394
  this.watch0Fn();
364
395
  this.watch1Fn();
365
396
  this.watch2Fn();
366
397
  this.watch3Fn();
398
+ this.watch4Fn();
367
399
  }
368
400
  disconnectedCallback() {
369
401
  var _a;
@@ -371,7 +403,7 @@ const DBInput = class {
371
403
  }
372
404
  render() {
373
405
  var _a, _b, _c, _d, _e, _f, _g, _h;
374
- return (index.h("div", { key: 'b6b5870b00e7a3ef0155004291fc9c646863faa9', class: index$1.cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-show-icon": index$1.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": index$1.getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing) }, index.h("label", { key: 'ac47e1bd7206de27075a86e3b5bf59647cffa8de', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: '40170ba9d207c96b4e86232f367a70a3301eb914', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
406
+ return (index.h("div", { key: 'cd3b45e50318203965c74406dfe058b5c667520a', class: index$1.cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-show-icon": index$1.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": index$1.getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing) }, index.h("label", { key: '07a3c4f58cd6531ce8891e18603a6f534d2df1a5', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : constants.DEFAULT_LABEL), index.h("input", { key: 'b90a93ed9454972000e4e3f37cb839a3d14ab3ec', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
375
407
  this._ref = el;
376
408
  }, id: this._id, name: this.name, type: this.type || "text", multiple: index$1.getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : constants.DEFAULT_PLACEHOLDER, disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), step: index$1.getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: index$1.getNumber(this.maxLength, this.maxlength), minLength: index$1.getNumber(this.minLength, this.minlength), max: index$1.getInputValue(this.max, this.type), min: index$1.getInputValue(this.min, this.type), readOnly: index$1.getBoolean(this.readOnly, "readOnly") ||
377
409
  index$1.getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: index$1.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: [
@@ -383,22 +415,28 @@ const DBInput = class {
383
415
  "color",
384
416
  ].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && index$1.isIOSSafari()
385
417
  ? "textbox"
386
- : undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: 'dd4cf602903406782a97e88ad8ccb8aacb903421' }), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '081dc92e27a0b81733d3200f97686fbe5fa15f76', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: '43be19988deae0484f47eed9b19e0556238b558d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
418
+ : undefined }), this.dataList ? (index.h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (index.h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, index.h("slot", { key: '1333f33d378f1d888146fba5143867051b697a2d' }), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'bac739c900da2b312dbfd253f845f59fdf177f8d', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), index.h("span", { key: '46779c27b49d4fd389ac446e4e8c097fae65f51b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
387
419
  }
388
420
  static get watchers() { return {
389
- "_ref": [{
421
+ "id": [{
390
422
  "watch0": 0
423
+ }],
424
+ "propOverrides?.id": [{
425
+ "watch0": 0
426
+ }],
427
+ "_ref": [{
428
+ "watch1": 0
391
429
  }, {
392
- "watch3": 0
430
+ "watch4": 0
393
431
  }],
394
432
  "invalidMessage": [{
395
- "watch0": 0
433
+ "watch1": 0
396
434
  }],
397
435
  "_id": [{
398
- "watch1": 0
436
+ "watch2": 0
399
437
  }],
400
438
  "value": [{
401
- "watch2": 0
439
+ "watch3": 0
402
440
  }]
403
441
  }; }
404
442
  };
@@ -434,12 +472,16 @@ const DBTag = class {
434
472
  const attributes = parent.attributes;
435
473
  for (let i = 0; i < attributes.length; i++) {
436
474
  const attr = attributes.item(i);
437
- if (attr &&
475
+ if (attr && attr.name !== 'data-density' &&
438
476
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
439
477
  element.setAttribute(attr.name, attr.value);
440
478
  parent.removeAttribute(attr.name);
441
479
  }
442
- if (attr && attr.name === "class") {
480
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
481
+ element.setAttribute(attr.name, attr.value);
482
+ parent.removeAttribute(attr.name);
483
+ }
484
+ else if (attr && attr.name === "class") {
443
485
  const isWebComponent = attr.value.includes("hydrated");
444
486
  const value = attr.value.replace("hydrated", "").trim();
445
487
  const currentClass = element.getAttribute("class");
@@ -459,10 +501,10 @@ const DBTag = class {
459
501
  this.enableAttributePassing(this._ref, "db-tag");
460
502
  }
461
503
  render() {
462
- var _a;
463
- return (index.h("div", { key: 'db86fabfde3f9d1e41a863f58db34eb88d067440', class: index$1.cls("db-tag", this.className), ref: (el) => {
504
+ var _a, _b, _c;
505
+ return (index.h("div", { key: 'd84df9f55535db4fbe9befd09fd2eef8125069c4', class: index$1.cls("db-tag", this.className), ref: (el) => {
464
506
  this._ref = el;
465
- }, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '1bef11e30ca670fa5bf1d438cd12c43e233cded4', name: "content" }), index.h("slot", { key: '3f94141f60688d0730478711748fa9dbb194f810' }), this.text ? this.text : null, this.behavior === "removable" ? (index.h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
507
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '9f4d27ce3f4d4d2e1d193167148168a2cb8784dd', name: "content" }), index.h("slot", { key: '9feecc10d65e9f807709e5d90b90f69be72b8efb' }), this.text ? this.text : null, this.behavior === "removable" ? (index.h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
466
508
  }
467
509
  };
468
510
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CEqZnn9s.js');
4
- var index$1 = require('./index-CsHqnQII.js');
3
+ var index = require('./index-CSMPhlzz.js');
4
+ var index$1 = require('./index-2_9ESkQu.js');
5
5
 
6
6
  const DBCustomSelectFormField = class {
7
7
  constructor(hostRef) {
@@ -18,12 +18,16 @@ const DBCustomSelectFormField = class {
18
18
  const attributes = parent.attributes;
19
19
  for (let i = 0; i < attributes.length; i++) {
20
20
  const attr = attributes.item(i);
21
- if (attr &&
21
+ if (attr && attr.name !== 'data-density' &&
22
22
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
23
23
  element.setAttribute(attr.name, attr.value);
24
24
  parent.removeAttribute(attr.name);
25
25
  }
26
- if (attr && attr.name === "class") {
26
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
27
+ element.setAttribute(attr.name, attr.value);
28
+ parent.removeAttribute(attr.name);
29
+ }
30
+ else if (attr && attr.name === "class") {
27
31
  const isWebComponent = attr.value.includes("hydrated");
28
32
  const value = attr.value.replace("hydrated", "").trim();
29
33
  const currentClass = element.getAttribute("class");
@@ -43,9 +47,10 @@ const DBCustomSelectFormField = class {
43
47
  this.enableAttributePassing(this._ref, "db-custom-select-form-field");
44
48
  }
45
49
  render() {
46
- return (index.h("summary", { key: '22a05256e65e56208335b9a5c840e75988a57182', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
50
+ var _a, _b;
51
+ return (index.h("summary", { key: '6bd88cd88890b6c4fd6fc231dbce401ae0a1b72e', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
47
52
  this._ref = el;
48
- }, id: this.id }, index.h("slot", { key: '3c6c62df9bf0d2a73e37a9ad69d3a46daa672984' })));
53
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '3cf997efe556cbf62f590adad219b60459549cc8' })));
49
54
  }
50
55
  };
51
56