@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,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CEqZnn9s.js');
3
+ var index = require('./index-CSMPhlzz.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CsHqnQII.js');
6
- var documentClickListener = require('./document-click-listener-Bb3Tinb8.js');
7
- var documentScrollListener = require('./document-scroll-listener-unypEU42.js');
8
- var floatingComponents = require('./floating-components-ogUqz72V.js');
9
- var formComponents = require('./form-components-LsqVohyb.js');
5
+ var index$1 = require('./index-2_9ESkQu.js');
6
+ var documentClickListener = require('./document-click-listener-B2-xKJv3.js');
7
+ var documentScrollListener = require('./document-scroll-listener-ChQ7XZRk.js');
8
+ var floatingComponents = require('./floating-components-pYaTeNhp.js');
9
+ var formComponents = require('./form-components-_ncB_U2D.js');
10
10
 
11
11
  const DBCustomSelect = class {
12
12
  constructor(hostRef) {
@@ -468,6 +468,20 @@ const DBCustomSelect = class {
468
468
  (_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
469
469
  }
470
470
  }
471
+ resetIds() {
472
+ var _a, _b, _c;
473
+ 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 : `custom-select-${index$1.uuid()}`;
474
+ this._id = mId;
475
+ this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
476
+ this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
477
+ this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
478
+ this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
479
+ this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
480
+ this._summaryId = mId + "-summary";
481
+ this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
482
+ this._selectedLabelsId = mId + "-selected-labels";
483
+ this._infoTextId = mId + "-info";
484
+ }
471
485
  /**
472
486
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
473
487
  * @param element the ref for the component
@@ -479,12 +493,16 @@ const DBCustomSelect = class {
479
493
  const attributes = parent.attributes;
480
494
  for (let i = 0; i < attributes.length; i++) {
481
495
  const attr = attributes.item(i);
482
- if (attr &&
496
+ if (attr && attr.name !== 'data-density' &&
483
497
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
484
498
  element.setAttribute(attr.name, attr.value);
485
499
  parent.removeAttribute(attr.name);
486
500
  }
487
- if (attr && attr.name === "class") {
501
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
502
+ element.setAttribute(attr.name, attr.value);
503
+ parent.removeAttribute(attr.name);
504
+ }
505
+ else if (attr && attr.name === "class") {
488
506
  const isWebComponent = attr.value.includes("hydrated");
489
507
  const value = attr.value.replace("hydrated", "").trim();
490
508
  const currentClass = element.getAttribute("class");
@@ -501,14 +519,23 @@ const DBCustomSelect = class {
501
519
  }
502
520
  }
503
521
  watch0Fn() {
504
- if (this.detailsRef) {
505
- this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
522
+ var _a, _b;
523
+ if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
524
+ this.resetIds();
506
525
  }
507
526
  }
508
527
  watch0() {
509
528
  this.watch0Fn();
510
529
  }
511
530
  watch1Fn() {
531
+ if (this.detailsRef) {
532
+ this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
533
+ }
534
+ }
535
+ watch1() {
536
+ this.watch1Fn();
537
+ }
538
+ watch2Fn() {
512
539
  if (this._id) {
513
540
  const messageId = this._id + constants.DEFAULT_MESSAGE_ID_SUFFIX;
514
541
  this._labelId = this._id + constants.DEFAULT_LABEL_ID_SUFFIX;
@@ -524,10 +551,10 @@ const DBCustomSelect = class {
524
551
  }
525
552
  }
526
553
  }
527
- watch1() {
528
- this.watch1Fn();
554
+ watch2() {
555
+ this.watch2Fn();
529
556
  }
530
- watch2Fn() {
557
+ watch3Fn() {
531
558
  var _a;
532
559
  if (this.detailsRef) {
533
560
  const summary = this.detailsRef.querySelector("summary");
@@ -536,10 +563,10 @@ const DBCustomSelect = class {
536
563
  }
537
564
  }
538
565
  }
539
- watch2() {
540
- this.watch2Fn();
566
+ watch3() {
567
+ this.watch3Fn();
541
568
  }
542
- watch3Fn() {
569
+ watch4Fn() {
543
570
  if (this.showNoResults !== undefined) {
544
571
  this._hasNoOptions = this.showNoResults;
545
572
  }
@@ -547,24 +574,24 @@ const DBCustomSelect = class {
547
574
  this._hasNoOptions = this._options.length === 0;
548
575
  }
549
576
  }
550
- watch3() {
551
- this.watch3Fn();
552
- }
553
- watch4Fn() {
554
- var _a;
555
- this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
556
- }
557
577
  watch4() {
558
578
  this.watch4Fn();
559
579
  }
560
580
  watch5Fn() {
561
581
  var _a;
562
- this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
582
+ this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
563
583
  }
564
584
  watch5() {
565
585
  this.watch5Fn();
566
586
  }
567
587
  watch6Fn() {
588
+ var _a;
589
+ this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
590
+ }
591
+ watch6() {
592
+ this.watch6Fn();
593
+ }
594
+ watch7Fn() {
568
595
  var _a;
569
596
  const v = this.values;
570
597
  if (Array.isArray(v)) {
@@ -576,18 +603,18 @@ const DBCustomSelect = class {
576
603
  this._values = [];
577
604
  }
578
605
  }
579
- watch6() {
580
- this.watch6Fn();
606
+ watch7() {
607
+ this.watch7Fn();
581
608
  }
582
- watch7Fn() {
609
+ watch8Fn() {
583
610
  if (this.selectRef) {
584
611
  this.handleValidation();
585
612
  }
586
613
  }
587
- watch7() {
588
- this.watch7Fn();
614
+ watch8() {
615
+ this.watch8Fn();
589
616
  }
590
- watch8Fn() {
617
+ watch9Fn() {
591
618
  if (this.selectRef) {
592
619
  let controller = this.abortController;
593
620
  if (!controller) {
@@ -606,16 +633,16 @@ const DBCustomSelect = class {
606
633
  }, controller.signal);
607
634
  }
608
635
  }
609
- watch8() {
610
- this.watch8Fn();
611
- }
612
- watch9Fn() {
613
- this._validity = this.validation;
614
- }
615
636
  watch9() {
616
637
  this.watch9Fn();
617
638
  }
618
639
  watch10Fn() {
640
+ this._validity = this.validation;
641
+ }
642
+ watch10() {
643
+ this.watch10Fn();
644
+ }
645
+ watch11Fn() {
619
646
  var _a, _b;
620
647
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
621
648
  this.selectAllChecked = false;
@@ -629,29 +656,29 @@ const DBCustomSelect = class {
629
656
  this.selectAllIndeterminate = true;
630
657
  }
631
658
  }
632
- watch10() {
633
- this.watch10Fn();
659
+ watch11() {
660
+ this.watch11Fn();
634
661
  }
635
- watch11Fn() {
662
+ watch12Fn() {
636
663
  var _a, _b;
637
664
  this._options = this.options;
638
665
  this.amountOptions =
639
666
  (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
640
667
  }
641
- watch11() {
642
- this.watch11Fn();
668
+ watch12() {
669
+ this.watch12Fn();
643
670
  }
644
- watch12Fn() {
671
+ watch13Fn() {
645
672
  this._searchValue = this.searchValue;
646
673
  if (this.searchValue) {
647
674
  const sValue = this.searchValue; // <- workaround for Angular
648
675
  this.handleSearch(sValue);
649
676
  }
650
677
  }
651
- watch12() {
652
- this.watch12Fn();
678
+ watch13() {
679
+ this.watch13Fn();
653
680
  }
654
- watch13Fn() {
681
+ watch14Fn() {
655
682
  var _a, _b;
656
683
  if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
657
684
  this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
@@ -663,10 +690,10 @@ const DBCustomSelect = class {
663
690
  });
664
691
  }
665
692
  }
666
- watch13() {
667
- this.watch13Fn();
693
+ watch14() {
694
+ this.watch14Fn();
668
695
  }
669
- watch14Fn() {
696
+ watch15Fn() {
670
697
  var _a, _b, _c;
671
698
  if (this.selectedLabels) {
672
699
  this._selectedLabels = this.selectedLabels;
@@ -693,50 +720,39 @@ const DBCustomSelect = class {
693
720
  this._selectedLabels = "";
694
721
  }
695
722
  }
696
- watch14() {
697
- this.watch14Fn();
723
+ watch15() {
724
+ this.watch15Fn();
698
725
  }
699
- watch15Fn() {
726
+ watch16Fn() {
700
727
  var _a, _b;
701
728
  if (this.amountChange) {
702
729
  this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
703
730
  }
704
731
  }
705
- watch15() {
706
- this.watch15Fn();
732
+ watch16() {
733
+ this.watch16Fn();
707
734
  }
708
- watch16Fn() {
735
+ watch17Fn() {
709
736
  if (this.selectAllRef) {
710
737
  this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
711
738
  }
712
739
  }
713
- watch16() {
714
- this.watch16Fn();
740
+ watch17() {
741
+ this.watch17Fn();
715
742
  }
716
- watch17Fn() {
743
+ watch18Fn() {
717
744
  var _a;
718
745
  this._invalidMessage =
719
746
  this.invalidMessage ||
720
747
  ((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
721
748
  constants.DEFAULT_INVALID_MESSAGE;
722
749
  }
723
- watch17() {
724
- this.watch17Fn();
750
+ watch18() {
751
+ this.watch18Fn();
725
752
  }
726
753
  componentDidLoad() {
727
- var _a;
728
754
  this.enableAttributePassing(this._ref, "db-custom-select");
729
- const mId = (_a = this.id) !== null && _a !== void 0 ? _a : `custom-select-${index$1.uuid()}`;
730
- this._id = mId;
731
- this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
732
- this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
733
- this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
734
- this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
735
- this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
736
- this._summaryId = mId + "-summary";
737
- this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
738
- this._selectedLabelsId = mId + "-selected-labels";
739
- this._infoTextId = mId + "-info";
755
+ this.resetIds();
740
756
  this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
741
757
  if (typeof window !== "undefined" && "IntersectionObserver" in window) {
742
758
  this._observer = new IntersectionObserver((payload) => {
@@ -766,6 +782,7 @@ const DBCustomSelect = class {
766
782
  this.watch15Fn();
767
783
  this.watch16Fn();
768
784
  this.watch17Fn();
785
+ this.watch18Fn();
769
786
  }
770
787
  disconnectedCallback() {
771
788
  var _a;
@@ -773,19 +790,19 @@ const DBCustomSelect = class {
773
790
  }
774
791
  render() {
775
792
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
776
- return (index.h("div", { key: '5ab3c80f3af53b7795e709feaea160e4aa26f281', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
793
+ return (index.h("div", { key: 'b91607a57b2311a81c3087827207ddc78017e581', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
777
794
  this._ref = el;
778
795
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
779
796
  this.selectedType === "tag" &&
780
797
  this.multiple
781
798
  ? "above"
782
- : this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: '281d6b75a9ae62b6e2f59c04876603988366952d', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '26029a01c106666155c40cac98a7f67739145491', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
799
+ : this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: '1abe98ce69510bc1e71ced37cf8fc922d968fca0', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '534fcf99cb27580f11593299093aa75c9708601c', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
783
800
  this.selectRef = el;
784
- }, form: this.form, name: this.name, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
801
+ }, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
785
802
  ? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
786
- : null)), index.h("details", { key: '60f50d851ebf3b180094bdbd1c9acb3c6e1069af', ref: (el) => {
803
+ : null)), index.h("details", { key: '730b070010af8bf456e9dc23b0c63bce2cf87669', ref: (el) => {
787
804
  this.detailsRef = el;
788
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '369ba87529acc1e3b2d12869174eff0a824c0176' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (index.h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
805
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '8bac2e843b1c288af5b6bbe9272b4a72acaeb698' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (index.h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index$1) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
789
806
  this.searchInputRef = el;
790
807
  }, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : constants.DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
791
808
  ? this._infoTextId
@@ -795,98 +812,104 @@ const DBCustomSelect = class {
795
812
  this.selectAllRef = el;
796
813
  }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : constants.DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (index.h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
797
814
  ? this.getOptionLabel(option)
798
- : null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: 'b4a9cebfe1db06422f428bac4d04d581bcadbb95', class: "db-custom-select-placeholder", "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'a407a98afeecf7634770f34e2f427a09d657419a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '4465c3745c21e5333c8498927416fd0f244673dd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
815
+ : null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '18799430248251a8e5549f2b28905e2e2e5b27cb', class: "db-custom-select-placeholder", "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '834d926c52ed5296c8956315b49a973da100ba98', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '02e9c61681ab8c13df57214ba7cdf3551eaeba4d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
799
816
  }
800
817
  static get watchers() { return {
801
- "detailsRef": [{
818
+ "id": [{
819
+ "watch0": 0
820
+ }],
821
+ "propOverrides?.id": [{
802
822
  "watch0": 0
823
+ }],
824
+ "detailsRef": [{
825
+ "watch1": 0
803
826
  }, {
804
- "watch2": 0
827
+ "watch3": 0
805
828
  }],
806
829
  "_id": [{
807
- "watch1": 0
830
+ "watch2": 0
808
831
  }],
809
832
  "_descByIds": [{
810
- "watch2": 0
833
+ "watch3": 0
811
834
  }],
812
835
  "showNoResults": [{
813
- "watch3": 0
836
+ "watch4": 0
814
837
  }],
815
838
  "showLoading": [{
816
- "watch3": 0
839
+ "watch4": 0
817
840
  }],
818
841
  "_options": [{
819
- "watch3": 0
842
+ "watch4": 0
820
843
  }],
821
844
  "showSelectAll": [{
822
- "watch4": 0
845
+ "watch5": 0
823
846
  }],
824
847
  "amountOptions": [{
825
- "watch4": 0
826
- }, {
827
848
  "watch5": 0
828
849
  }, {
829
- "watch10": 0
850
+ "watch6": 0
851
+ }, {
852
+ "watch11": 0
830
853
  }],
831
854
  "multiple": [{
832
- "watch4": 0
855
+ "watch5": 0
833
856
  }],
834
857
  "showSearch": [{
835
- "watch5": 0
858
+ "watch6": 0
836
859
  }],
837
860
  "values": [{
838
- "watch6": 0
861
+ "watch7": 0
839
862
  }],
840
863
  "_values": [{
841
- "watch7": 0
864
+ "watch8": 0
842
865
  }, {
843
- "watch10": 0
866
+ "watch11": 0
844
867
  }, {
845
- "watch13": 0
868
+ "watch14": 0
846
869
  }],
847
870
  "selectRef": [{
848
- "watch7": 0
849
- }, {
850
871
  "watch8": 0
851
872
  }, {
852
- "watch17": 0
873
+ "watch9": 0
874
+ }, {
875
+ "watch18": 0
853
876
  }],
854
877
  "validation": [{
855
- "watch9": 0
878
+ "watch10": 0
856
879
  }],
857
880
  "options": [{
858
- "watch11": 0
881
+ "watch12": 0
859
882
  }, {
860
- "watch13": 0
883
+ "watch14": 0
861
884
  }],
862
885
  "searchValue": [{
863
- "watch12": 0
886
+ "watch13": 0
864
887
  }],
865
888
  "_selectedOptions": [{
866
- "watch14": 0
867
- }, {
868
889
  "watch15": 0
890
+ }, {
891
+ "watch16": 0
869
892
  }],
870
893
  "selectedType": [{
871
- "watch14": 0
894
+ "watch15": 0
872
895
  }],
873
896
  "amountText": [{
874
- "watch14": 0
897
+ "watch15": 0
875
898
  }],
876
899
  "selectedLabels": [{
877
- "watch14": 0
900
+ "watch15": 0
878
901
  }],
879
902
  "transformSelectedLabels": [{
880
- "watch14": 0
903
+ "watch15": 0
881
904
  }],
882
905
  "selectAllIndeterminate": [{
883
- "watch16": 0
906
+ "watch17": 0
884
907
  }],
885
908
  "selectAllRef": [{
886
- "watch16": 0
909
+ "watch17": 0
887
910
  }],
888
911
  "invalidMessage": [{
889
- "watch17": 0
912
+ "watch18": 0
890
913
  }]
891
914
  }; }
892
915
  };
@@ -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 DBDivider = class {
7
7
  constructor(hostRef) {
@@ -18,12 +18,16 @@ const DBDivider = 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 DBDivider = class {
43
47
  this.enableAttributePassing(this._ref, "db-divider");
44
48
  }
45
49
  render() {
46
- return (index.h("div", { key: '0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16', class: index$1.cls("db-divider", this.className), ref: (el) => {
50
+ var _a, _b;
51
+ return (index.h("div", { key: '6085ef73845be698561795af1a69cee864b31b7d', class: index$1.cls("db-divider", this.className), ref: (el) => {
47
52
  this._ref = el;
48
- }, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
53
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
49
54
  }
50
55
  };
51
56
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CEqZnn9s.js');
3
+ var index = require('./index-CSMPhlzz.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CsHqnQII.js');
5
+ var index$1 = require('./index-2_9ESkQu.js');
6
6
 
7
7
  const DBDrawer = class {
8
8
  constructor(hostRef) {
@@ -83,12 +83,16 @@ const DBDrawer = class {
83
83
  const attributes = parent.attributes;
84
84
  for (let i = 0; i < attributes.length; i++) {
85
85
  const attr = attributes.item(i);
86
- if (attr &&
86
+ if (attr && attr.name !== 'data-density' &&
87
87
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
88
88
  element.setAttribute(attr.name, attr.value);
89
89
  parent.removeAttribute(attr.name);
90
90
  }
91
- if (attr && attr.name === "class") {
91
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
92
+ element.setAttribute(attr.name, attr.value);
93
+ parent.removeAttribute(attr.name);
94
+ }
95
+ else if (attr && attr.name === "class") {
92
96
  const isWebComponent = attr.value.includes("hydrated");
93
97
  const value = attr.value.replace("hydrated", "").trim();
94
98
  const currentClass = element.getAttribute("class");
@@ -130,12 +134,12 @@ const DBDrawer = class {
130
134
  this.watch1Fn();
131
135
  }
132
136
  render() {
133
- var _a;
134
- return (index.h("dialog", { key: '171c5580c99bbe2d2ea0a6e8e5962e4132d9b07f', class: "db-drawer", id: this.id, ref: (el) => {
137
+ var _a, _b, _c;
138
+ return (index.h("dialog", { key: '4a002d3faba35e33b0ad6f37eb4c1bc8e1fcbe13', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
135
139
  this._ref = el;
136
- }, 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 }, index.h("article", { key: 'e9fad39beff3e642ad13be4950bb64fd15896f80', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
140
+ }, 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 }, index.h("article", { key: '644050fdd2392c907e6cc375ace9dcc4205f4b7f', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
137
141
  this.dialogContainerRef = el;
138
- }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'cb9f374f26ebca0f11d02081c28e856cc87107c3', class: "db-drawer-header" }, index.h("div", { key: '7fca8037c16e16d909bcede75e223f38ae019453', class: "db-drawer-header-text" }, index.h("slot", { key: '85159cc4d260fa992bfe8b933920ae286b9ab09c', name: "drawerHeader" })), index.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 : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: '9dbbd6a3835dad60dea79a9b2fbed6a62dd6b837', class: "db-drawer-content" }, index.h("slot", { key: '1bc4b88266e6d7250d0075e2405b725ad38b950e' })))));
142
+ }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'f4dc3a298eafc6c45d2bdf459c90a58faf856925', class: "db-drawer-header" }, index.h("div", { key: '21d808fe191e85f15f7c2a1512ad461199494c6e', class: "db-drawer-header-text" }, index.h("slot", { key: '4962256732612a5d5f629540916874189bc0f0e0', name: "drawerHeader" })), index.h("db-button", { key: '494015c896edb8b246f7c734d8906182043cfaf6', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: '00ffdb6c782d620e0ac6d7fdb41312c65c68b197', class: "db-drawer-content" }, index.h("slot", { key: 'edc0a393b10741fd41de513b3572b4ce7ce2cae3' })))));
139
143
  }
140
144
  static get watchers() { return {
141
145
  "open": [{
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CEqZnn9s.js');
3
+ var index = require('./index-CSMPhlzz.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CsHqnQII.js');
6
- var navigation = require('./navigation-DauGE-qj.js');
7
- require('./floating-components-ogUqz72V.js');
5
+ var index$1 = require('./index-2_9ESkQu.js');
6
+ var navigation = require('./navigation-BztJmEHf.js');
7
+ require('./floating-components-pYaTeNhp.js');
8
8
 
9
9
  const DBHeader = class {
10
10
  constructor(hostRef) {
@@ -38,12 +38,16 @@ const DBHeader = class {
38
38
  const attributes = parent.attributes;
39
39
  for (let i = 0; i < attributes.length; i++) {
40
40
  const attr = attributes.item(i);
41
- if (attr &&
41
+ if (attr && attr.name !== 'data-density' &&
42
42
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
43
43
  element.setAttribute(attr.name, attr.value);
44
44
  parent.removeAttribute(attr.name);
45
45
  }
46
- if (attr && attr.name === "class") {
46
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
47
+ element.setAttribute(attr.name, attr.value);
48
+ parent.removeAttribute(attr.name);
49
+ }
50
+ else if (attr && attr.name === "class") {
47
51
  const isWebComponent = attr.value.includes("hydrated");
48
52
  const value = attr.value.replace("hydrated", "").trim();
49
53
  const currentClass = element.getAttribute("class");
@@ -79,10 +83,10 @@ const DBHeader = class {
79
83
  this.watch0Fn();
80
84
  }
81
85
  render() {
82
- var _a;
83
- return (index.h("header", { key: 'f9850f5a6f59bee2ed97db4baea343e07aaff91a', class: index$1.cls("db-header", this.className), ref: (el) => {
86
+ var _a, _b, _c;
87
+ return (index.h("header", { key: '472c3e72f6651ee5c09bc306cb46256782600379', class: index$1.cls("db-header", this.className), ref: (el) => {
84
88
  this._ref = el;
85
- }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: '32f62d8f0bf634e96cf7b0e96721fcd40aa3a3eb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: index$1.getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, index.h("div", { key: 'a42c28439d07e97a3842efe4fa1c143c23691b5f', class: "db-header-drawer-navigation" }, index.h("div", { key: '141165e04574db312d51b0b4c376c53ddace243e', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '2208e0677b1f15da56fd6be230523559fcb5f1da' })), index.h("div", { key: 'fb980500cdb2f6f3ce2fce2489c48ac27ebd256a', class: "db-header-meta-navigation" }, index.h("slot", { key: '7eea7189a1e82821fc3f0bd600bda5a040382e88', name: "metaNavigation" }))), index.h("div", { key: 'a492419586593d43edbada69ad136ad832902e15', class: "db-header-secondary-action" }, index.h("slot", { key: '90ed75a19c230c3a2af94b8e0b397c8712f9a0df', name: "secondaryAction" }))), index.h("div", { key: '1d0451bd1f522f51cbd2bab3cd1b7c316fd644b4', class: "db-header-meta-navigation" }, index.h("slot", { key: 'd92c5a30a0131225f2b7b1428c5121fed241d8a7', name: "metaNavigation" })), index.h("div", { key: 'f65c8e6b2b997c281046f20e1ac7c89d8b5697f6', class: "db-header-navigation-bar" }, index.h("div", { key: 'be1e1017417595bbb4ff845b650f5edef1f4fd49', class: "db-header-brand-container" }, index.h("slot", { key: '5552b137967ae4659887ad67514fd0078ced1473', name: "brand" })), index.h("div", { key: '682e11b41f5131feb17cdf1e175b9bbcf8399740', class: "db-header-navigation-container" }, index.h("div", { key: '29f5a7afa6d8c014f6e574d72198289970e5324e', class: "db-header-navigation" }, index.h("slot", { key: 'f03956cf3368d3ec0dbaab3b3091c276eaf03a92' })), index.h("div", { key: '8a81b9ee537f84e14c9d41acf323552d6f239748', class: "db-header-primary-action" }, index.h("slot", { key: '78ae4dbdc9bcad5bd4bd951a0a334c47cb35bcf6', name: "primaryAction" }))), index.h("div", { key: 'e1e913c181df2f73cc9fe4cda17f505a26b1ad04', class: "db-header-action-container" }, index.h("div", { key: '92d7c9c0e50f9aa86e15c18a2ac7dddabc241358', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '775ca507ba24b19e411e529e9ad67fcdfa6f3dea', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: '7cd5a16e27c72e3e0635056df8bcb7f45461c9fb', class: "db-header-secondary-action" }, index.h("slot", { key: '09669c165311f8dc95961c64900d5ab36281700a', name: "secondaryAction" }))))));
89
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: 'e43b6fe88c420aafcccbe10c1852b1ad8c640a67', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: index$1.getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, index.h("div", { key: 'cd1d184da10661cc41a32c7b26e352a01d62acb5', class: "db-header-drawer-navigation" }, index.h("div", { key: 'a7f992b669f4efdc58a05eef1d45d0b279eb652d', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '24fb78c5ba0eff9d594f8b41eb3bc986e7163276' })), index.h("div", { key: 'e509d62474a96831495428c5becb9fbf07b27b45', class: "db-header-meta-navigation" }, index.h("slot", { key: '65a8037fc817c20078f4e2e056268d40a973190a', name: "metaNavigation" }))), index.h("div", { key: 'ccb1c32adfcfcf8c94c1d9683e97140e99c7bc4b', class: "db-header-secondary-action" }, index.h("slot", { key: 'c1bd838bf97674d7537ad23d74b448f0e6f6b60b', name: "secondaryAction" }))), index.h("div", { key: '580b1e921589716809c6add27d0ebbd4577c36c5', class: "db-header-meta-navigation" }, index.h("slot", { key: '38264be6e940feb9b1d5f7c20133036af0db4467', name: "metaNavigation" })), index.h("div", { key: 'fab3ea7eb1b20b5626eb481e23eed33196e5391e', class: "db-header-navigation-bar" }, index.h("div", { key: '5c09d40a2d4db6fd3c04406d3f39f4e9a61f9c9c', class: "db-header-brand-container" }, index.h("slot", { key: '762b7e3669486369d0440af4774358c2be73aa6f', name: "brand" })), index.h("div", { key: 'a19ea0d8ce9d34a05a041fa489bf9586116296d0', class: "db-header-navigation-container" }, index.h("div", { key: '1bf7424bcbd9903f52bd55f1459481d73da47769', class: "db-header-navigation" }, index.h("slot", { key: '928dab58c49293b0ddc6014d491d839b07394832' })), index.h("div", { key: 'e470c62116f04772d3daac1c6088b69957fc8e22', class: "db-header-primary-action" }, index.h("slot", { key: '726b5e41a818a50bded6c79df27a697c132e1793', name: "primaryAction" }))), index.h("div", { key: 'c00bb939d06ab93e7f2979c13713841d48044cf9', class: "db-header-action-container" }, index.h("div", { key: '52444a5096ccda4b0bf62657aa6ac904ccb93720', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '22ed7c031d16610ff0cb62badf90e8388867b296', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: '9a6e595cf1d6d14357c8223e422517e0f3753e64', class: "db-header-secondary-action" }, index.h("slot", { key: 'ed8ac7dbd116208d0a1158335deacb64c7278de8', name: "secondaryAction" }))))));
86
90
  }
87
91
  static get watchers() { return {
88
92
  "initialized": [{