@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
@@ -464,6 +464,20 @@ export class DBCustomSelect {
464
464
  (_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
465
465
  }
466
466
  }
467
+ resetIds() {
468
+ var _a, _b, _c;
469
+ 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-${uuid()}`;
470
+ this._id = mId;
471
+ this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
472
+ this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
473
+ this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
474
+ this._selectId = mId + DEFAULT_SELECT_ID_SUFFIX;
475
+ this._labelId = mId + DEFAULT_LABEL_ID_SUFFIX;
476
+ this._summaryId = mId + "-summary";
477
+ this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
478
+ this._selectedLabelsId = mId + "-selected-labels";
479
+ this._infoTextId = mId + "-info";
480
+ }
467
481
  /**
468
482
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
469
483
  * @param element the ref for the component
@@ -475,12 +489,16 @@ export class DBCustomSelect {
475
489
  const attributes = parent.attributes;
476
490
  for (let i = 0; i < attributes.length; i++) {
477
491
  const attr = attributes.item(i);
478
- if (attr &&
492
+ if (attr && attr.name !== 'data-density' &&
479
493
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
480
494
  element.setAttribute(attr.name, attr.value);
481
495
  parent.removeAttribute(attr.name);
482
496
  }
483
- if (attr && attr.name === "class") {
497
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
498
+ element.setAttribute(attr.name, attr.value);
499
+ parent.removeAttribute(attr.name);
500
+ }
501
+ else if (attr && attr.name === "class") {
484
502
  const isWebComponent = attr.value.includes("hydrated");
485
503
  const value = attr.value.replace("hydrated", "").trim();
486
504
  const currentClass = element.getAttribute("class");
@@ -497,14 +515,23 @@ export class DBCustomSelect {
497
515
  }
498
516
  }
499
517
  watch0Fn() {
500
- if (this.detailsRef) {
501
- this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
518
+ var _a, _b;
519
+ if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
520
+ this.resetIds();
502
521
  }
503
522
  }
504
523
  watch0() {
505
524
  this.watch0Fn();
506
525
  }
507
526
  watch1Fn() {
527
+ if (this.detailsRef) {
528
+ this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
529
+ }
530
+ }
531
+ watch1() {
532
+ this.watch1Fn();
533
+ }
534
+ watch2Fn() {
508
535
  if (this._id) {
509
536
  const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;
510
537
  this._labelId = this._id + DEFAULT_LABEL_ID_SUFFIX;
@@ -520,10 +547,10 @@ export class DBCustomSelect {
520
547
  }
521
548
  }
522
549
  }
523
- watch1() {
524
- this.watch1Fn();
550
+ watch2() {
551
+ this.watch2Fn();
525
552
  }
526
- watch2Fn() {
553
+ watch3Fn() {
527
554
  var _a;
528
555
  if (this.detailsRef) {
529
556
  const summary = this.detailsRef.querySelector("summary");
@@ -532,10 +559,10 @@ export class DBCustomSelect {
532
559
  }
533
560
  }
534
561
  }
535
- watch2() {
536
- this.watch2Fn();
562
+ watch3() {
563
+ this.watch3Fn();
537
564
  }
538
- watch3Fn() {
565
+ watch4Fn() {
539
566
  if (this.showNoResults !== undefined) {
540
567
  this._hasNoOptions = this.showNoResults;
541
568
  }
@@ -543,24 +570,24 @@ export class DBCustomSelect {
543
570
  this._hasNoOptions = this._options.length === 0;
544
571
  }
545
572
  }
546
- watch3() {
547
- this.watch3Fn();
548
- }
549
- watch4Fn() {
550
- var _a;
551
- this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
552
- }
553
573
  watch4() {
554
574
  this.watch4Fn();
555
575
  }
556
576
  watch5Fn() {
557
577
  var _a;
558
- this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
578
+ this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
559
579
  }
560
580
  watch5() {
561
581
  this.watch5Fn();
562
582
  }
563
583
  watch6Fn() {
584
+ var _a;
585
+ this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
586
+ }
587
+ watch6() {
588
+ this.watch6Fn();
589
+ }
590
+ watch7Fn() {
564
591
  var _a;
565
592
  const v = this.values;
566
593
  if (Array.isArray(v)) {
@@ -572,18 +599,18 @@ export class DBCustomSelect {
572
599
  this._values = [];
573
600
  }
574
601
  }
575
- watch6() {
576
- this.watch6Fn();
602
+ watch7() {
603
+ this.watch7Fn();
577
604
  }
578
- watch7Fn() {
605
+ watch8Fn() {
579
606
  if (this.selectRef) {
580
607
  this.handleValidation();
581
608
  }
582
609
  }
583
- watch7() {
584
- this.watch7Fn();
610
+ watch8() {
611
+ this.watch8Fn();
585
612
  }
586
- watch8Fn() {
613
+ watch9Fn() {
587
614
  if (this.selectRef) {
588
615
  let controller = this.abortController;
589
616
  if (!controller) {
@@ -602,16 +629,16 @@ export class DBCustomSelect {
602
629
  }, controller.signal);
603
630
  }
604
631
  }
605
- watch8() {
606
- this.watch8Fn();
607
- }
608
- watch9Fn() {
609
- this._validity = this.validation;
610
- }
611
632
  watch9() {
612
633
  this.watch9Fn();
613
634
  }
614
635
  watch10Fn() {
636
+ this._validity = this.validation;
637
+ }
638
+ watch10() {
639
+ this.watch10Fn();
640
+ }
641
+ watch11Fn() {
615
642
  var _a, _b;
616
643
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
617
644
  this.selectAllChecked = false;
@@ -625,29 +652,29 @@ export class DBCustomSelect {
625
652
  this.selectAllIndeterminate = true;
626
653
  }
627
654
  }
628
- watch10() {
629
- this.watch10Fn();
655
+ watch11() {
656
+ this.watch11Fn();
630
657
  }
631
- watch11Fn() {
658
+ watch12Fn() {
632
659
  var _a, _b;
633
660
  this._options = this.options;
634
661
  this.amountOptions =
635
662
  (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
636
663
  }
637
- watch11() {
638
- this.watch11Fn();
664
+ watch12() {
665
+ this.watch12Fn();
639
666
  }
640
- watch12Fn() {
667
+ watch13Fn() {
641
668
  this._searchValue = this.searchValue;
642
669
  if (this.searchValue) {
643
670
  const sValue = this.searchValue; // <- workaround for Angular
644
671
  this.handleSearch(sValue);
645
672
  }
646
673
  }
647
- watch12() {
648
- this.watch12Fn();
674
+ watch13() {
675
+ this.watch13Fn();
649
676
  }
650
- watch13Fn() {
677
+ watch14Fn() {
651
678
  var _a, _b;
652
679
  if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
653
680
  this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
@@ -659,10 +686,10 @@ export class DBCustomSelect {
659
686
  });
660
687
  }
661
688
  }
662
- watch13() {
663
- this.watch13Fn();
689
+ watch14() {
690
+ this.watch14Fn();
664
691
  }
665
- watch14Fn() {
692
+ watch15Fn() {
666
693
  var _a, _b, _c;
667
694
  if (this.selectedLabels) {
668
695
  this._selectedLabels = this.selectedLabels;
@@ -689,50 +716,39 @@ export class DBCustomSelect {
689
716
  this._selectedLabels = "";
690
717
  }
691
718
  }
692
- watch14() {
693
- this.watch14Fn();
719
+ watch15() {
720
+ this.watch15Fn();
694
721
  }
695
- watch15Fn() {
722
+ watch16Fn() {
696
723
  var _a, _b;
697
724
  if (this.amountChange) {
698
725
  this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
699
726
  }
700
727
  }
701
- watch15() {
702
- this.watch15Fn();
728
+ watch16() {
729
+ this.watch16Fn();
703
730
  }
704
- watch16Fn() {
731
+ watch17Fn() {
705
732
  if (this.selectAllRef) {
706
733
  this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
707
734
  }
708
735
  }
709
- watch16() {
710
- this.watch16Fn();
736
+ watch17() {
737
+ this.watch17Fn();
711
738
  }
712
- watch17Fn() {
739
+ watch18Fn() {
713
740
  var _a;
714
741
  this._invalidMessage =
715
742
  this.invalidMessage ||
716
743
  ((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
717
744
  DEFAULT_INVALID_MESSAGE;
718
745
  }
719
- watch17() {
720
- this.watch17Fn();
746
+ watch18() {
747
+ this.watch18Fn();
721
748
  }
722
749
  componentDidLoad() {
723
- var _a;
724
750
  this.enableAttributePassing(this._ref, "db-custom-select");
725
- const mId = (_a = this.id) !== null && _a !== void 0 ? _a : `custom-select-${uuid()}`;
726
- this._id = mId;
727
- this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
728
- this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
729
- this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
730
- this._selectId = mId + DEFAULT_SELECT_ID_SUFFIX;
731
- this._labelId = mId + DEFAULT_LABEL_ID_SUFFIX;
732
- this._summaryId = mId + "-summary";
733
- this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
734
- this._selectedLabelsId = mId + "-selected-labels";
735
- this._infoTextId = mId + "-info";
751
+ this.resetIds();
736
752
  this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
737
753
  if (typeof window !== "undefined" && "IntersectionObserver" in window) {
738
754
  this._observer = new IntersectionObserver((payload) => {
@@ -762,6 +778,7 @@ export class DBCustomSelect {
762
778
  this.watch15Fn();
763
779
  this.watch16Fn();
764
780
  this.watch17Fn();
781
+ this.watch18Fn();
765
782
  }
766
783
  disconnectedCallback() {
767
784
  var _a;
@@ -769,19 +786,19 @@ export class DBCustomSelect {
769
786
  }
770
787
  render() {
771
788
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
772
- return (h("div", { key: '5ab3c80f3af53b7795e709feaea160e4aa26f281', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
789
+ return (h("div", { key: 'b91607a57b2311a81c3087827207ddc78017e581', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
773
790
  this._ref = el;
774
791
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
775
792
  this.selectedType === "tag" &&
776
793
  this.multiple
777
794
  ? "above"
778
- : this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '281d6b75a9ae62b6e2f59c04876603988366952d', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '26029a01c106666155c40cac98a7f67739145491', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
795
+ : this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '1abe98ce69510bc1e71ced37cf8fc922d968fca0', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '534fcf99cb27580f11593299093aa75c9708601c', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
779
796
  this.selectRef = el;
780
- }, form: this.form, name: this.name, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
797
+ }, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
781
798
  ? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
782
- : null)), h("details", { key: '60f50d851ebf3b180094bdbd1c9acb3c6e1069af', ref: (el) => {
799
+ : null)), h("details", { key: '730b070010af8bf456e9dc23b0c63bce2cf87669', ref: (el) => {
783
800
  this.detailsRef = el;
784
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '369ba87529acc1e3b2d12869174eff0a824c0176' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
801
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '8bac2e843b1c288af5b6bbe9272b4a72acaeb698' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
785
802
  this.searchInputRef = el;
786
803
  }, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
787
804
  ? this._infoTextId
@@ -791,16 +808,16 @@ export class DBCustomSelect {
791
808
  this.selectAllRef = el;
792
809
  }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
793
810
  ? this.getOptionLabel(option)
794
- : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: 'b4a9cebfe1db06422f428bac4d04d581bcadbb95', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'a407a98afeecf7634770f34e2f427a09d657419a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '4465c3745c21e5333c8498927416fd0f244673dd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
811
+ : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '18799430248251a8e5549f2b28905e2e2e5b27cb', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '834d926c52ed5296c8956315b49a973da100ba98', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '02e9c61681ab8c13df57214ba7cdf3551eaeba4d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
795
812
  }
796
813
  static get is() { return "db-custom-select"; }
797
814
  static get properties() {
798
815
  return {
799
- "id": {
816
+ "invalidMessage": {
800
817
  "type": "string",
801
818
  "mutable": false,
802
819
  "complexType": {
803
- "original": "DBCustomSelectProps[\"id\"]",
820
+ "original": "DBCustomSelectProps[\"invalidMessage\"]",
804
821
  "resolved": "string",
805
822
  "references": {
806
823
  "DBCustomSelectProps": {
@@ -820,13 +837,13 @@ export class DBCustomSelect {
820
837
  "getter": false,
821
838
  "setter": false,
822
839
  "reflect": false,
823
- "attribute": "id"
840
+ "attribute": "invalid-message"
824
841
  },
825
- "invalidMessage": {
842
+ "id": {
826
843
  "type": "string",
827
844
  "mutable": false,
828
845
  "complexType": {
829
- "original": "DBCustomSelectProps[\"invalidMessage\"]",
846
+ "original": "DBCustomSelectProps[\"id\"]",
830
847
  "resolved": "string",
831
848
  "references": {
832
849
  "DBCustomSelectProps": {
@@ -846,7 +863,31 @@ export class DBCustomSelect {
846
863
  "getter": false,
847
864
  "setter": false,
848
865
  "reflect": false,
849
- "attribute": "invalid-message"
866
+ "attribute": "id"
867
+ },
868
+ "propOverrides": {
869
+ "type": "unknown",
870
+ "mutable": false,
871
+ "complexType": {
872
+ "original": "DBCustomSelectProps[\"propOverrides\"]",
873
+ "resolved": "{ id?: string; }",
874
+ "references": {
875
+ "DBCustomSelectProps": {
876
+ "location": "import",
877
+ "path": "./model",
878
+ "id": "src/components/custom-select/model.ts::DBCustomSelectProps",
879
+ "referenceLocation": "DBCustomSelectProps"
880
+ }
881
+ }
882
+ },
883
+ "required": false,
884
+ "optional": false,
885
+ "docs": {
886
+ "tags": [],
887
+ "text": ""
888
+ },
889
+ "getter": false,
890
+ "setter": false
850
891
  },
851
892
  "message": {
852
893
  "type": "string",
@@ -2138,104 +2179,110 @@ export class DBCustomSelect {
2138
2179
  }
2139
2180
  static get watchers() {
2140
2181
  return [{
2141
- "propName": "detailsRef",
2182
+ "propName": "id",
2142
2183
  "methodName": "watch0"
2143
2184
  }, {
2144
- "propName": "_id",
2145
- "methodName": "watch1"
2185
+ "propName": "propOverrides?.id",
2186
+ "methodName": "watch0"
2146
2187
  }, {
2147
2188
  "propName": "detailsRef",
2189
+ "methodName": "watch1"
2190
+ }, {
2191
+ "propName": "_id",
2148
2192
  "methodName": "watch2"
2193
+ }, {
2194
+ "propName": "detailsRef",
2195
+ "methodName": "watch3"
2149
2196
  }, {
2150
2197
  "propName": "_descByIds",
2151
- "methodName": "watch2"
2198
+ "methodName": "watch3"
2152
2199
  }, {
2153
2200
  "propName": "showNoResults",
2154
- "methodName": "watch3"
2201
+ "methodName": "watch4"
2155
2202
  }, {
2156
2203
  "propName": "showLoading",
2157
- "methodName": "watch3"
2204
+ "methodName": "watch4"
2158
2205
  }, {
2159
2206
  "propName": "_options",
2160
- "methodName": "watch3"
2207
+ "methodName": "watch4"
2161
2208
  }, {
2162
2209
  "propName": "showSelectAll",
2163
- "methodName": "watch4"
2210
+ "methodName": "watch5"
2164
2211
  }, {
2165
2212
  "propName": "amountOptions",
2166
- "methodName": "watch4"
2213
+ "methodName": "watch5"
2167
2214
  }, {
2168
2215
  "propName": "multiple",
2169
- "methodName": "watch4"
2216
+ "methodName": "watch5"
2170
2217
  }, {
2171
2218
  "propName": "showSearch",
2172
- "methodName": "watch5"
2219
+ "methodName": "watch6"
2173
2220
  }, {
2174
2221
  "propName": "amountOptions",
2175
- "methodName": "watch5"
2222
+ "methodName": "watch6"
2176
2223
  }, {
2177
2224
  "propName": "values",
2178
- "methodName": "watch6"
2225
+ "methodName": "watch7"
2179
2226
  }, {
2180
2227
  "propName": "_values",
2181
- "methodName": "watch7"
2228
+ "methodName": "watch8"
2182
2229
  }, {
2183
2230
  "propName": "selectRef",
2184
- "methodName": "watch7"
2231
+ "methodName": "watch8"
2185
2232
  }, {
2186
2233
  "propName": "selectRef",
2187
- "methodName": "watch8"
2234
+ "methodName": "watch9"
2188
2235
  }, {
2189
2236
  "propName": "validation",
2190
- "methodName": "watch9"
2237
+ "methodName": "watch10"
2191
2238
  }, {
2192
2239
  "propName": "_values",
2193
- "methodName": "watch10"
2240
+ "methodName": "watch11"
2194
2241
  }, {
2195
2242
  "propName": "amountOptions",
2196
- "methodName": "watch10"
2243
+ "methodName": "watch11"
2197
2244
  }, {
2198
2245
  "propName": "options",
2199
- "methodName": "watch11"
2246
+ "methodName": "watch12"
2200
2247
  }, {
2201
2248
  "propName": "searchValue",
2202
- "methodName": "watch12"
2249
+ "methodName": "watch13"
2203
2250
  }, {
2204
2251
  "propName": "options",
2205
- "methodName": "watch13"
2252
+ "methodName": "watch14"
2206
2253
  }, {
2207
2254
  "propName": "_values",
2208
- "methodName": "watch13"
2255
+ "methodName": "watch14"
2209
2256
  }, {
2210
2257
  "propName": "_selectedOptions",
2211
- "methodName": "watch14"
2258
+ "methodName": "watch15"
2212
2259
  }, {
2213
2260
  "propName": "selectedType",
2214
- "methodName": "watch14"
2261
+ "methodName": "watch15"
2215
2262
  }, {
2216
2263
  "propName": "amountText",
2217
- "methodName": "watch14"
2264
+ "methodName": "watch15"
2218
2265
  }, {
2219
2266
  "propName": "selectedLabels",
2220
- "methodName": "watch14"
2267
+ "methodName": "watch15"
2221
2268
  }, {
2222
2269
  "propName": "transformSelectedLabels",
2223
- "methodName": "watch14"
2270
+ "methodName": "watch15"
2224
2271
  }, {
2225
2272
  "propName": "_selectedOptions",
2226
- "methodName": "watch15"
2273
+ "methodName": "watch16"
2227
2274
  }, {
2228
2275
  "propName": "selectAllIndeterminate",
2229
- "methodName": "watch16"
2276
+ "methodName": "watch17"
2230
2277
  }, {
2231
2278
  "propName": "selectAllRef",
2232
- "methodName": "watch16"
2279
+ "methodName": "watch17"
2233
2280
  }, {
2234
2281
  "propName": "selectRef",
2235
- "methodName": "watch17"
2282
+ "methodName": "watch18"
2236
2283
  }, {
2237
2284
  "propName": "invalidMessage",
2238
- "methodName": "watch17"
2285
+ "methodName": "watch18"
2239
2286
  }];
2240
2287
  }
2241
2288
  }
@@ -19,12 +19,16 @@ export class DBCustomSelectDropdown {
19
19
  const attributes = parent.attributes;
20
20
  for (let i = 0; i < attributes.length; i++) {
21
21
  const attr = attributes.item(i);
22
- if (attr &&
22
+ if (attr && attr.name !== 'data-density' &&
23
23
  (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
24
24
  element.setAttribute(attr.name, attr.value);
25
25
  parent.removeAttribute(attr.name);
26
26
  }
27
- if (attr && attr.name === "class") {
27
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
28
+ element.setAttribute(attr.name, attr.value);
29
+ parent.removeAttribute(attr.name);
30
+ }
31
+ else if (attr && attr.name === "class") {
28
32
  const isWebComponent = attr.value.includes("hydrated");
29
33
  const value = attr.value.replace("hydrated", "").trim();
30
34
  const currentClass = element.getAttribute("class");
@@ -44,9 +48,10 @@ export class DBCustomSelectDropdown {
44
48
  this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
45
49
  }
46
50
  render() {
47
- return (h("article", { key: '98087cc1db985bbb2e2578cb9e2c78bc3a0c3b23', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
51
+ var _a, _b;
52
+ return (h("article", { key: '18ea31a3993786aed93fbb95fabc349231b455ae', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
48
53
  this._ref = el;
49
- }, id: this.id, "data-width": this.width }, h("slot", { key: '25bcaa79bdf8168feffce0a59c0adbc656023e64' })));
54
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '14a29534f56e6fe16c6d6e856b26aba549fef8dc' })));
50
55
  }
51
56
  static get is() { return "db-custom-select-dropdown"; }
52
57
  static get properties() {
@@ -77,6 +82,30 @@ export class DBCustomSelectDropdown {
77
82
  "reflect": false,
78
83
  "attribute": "id"
79
84
  },
85
+ "propOverrides": {
86
+ "type": "unknown",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "DBCustomSelectDropdownProps[\"propOverrides\"]",
90
+ "resolved": "{ id?: string; }",
91
+ "references": {
92
+ "DBCustomSelectDropdownProps": {
93
+ "location": "import",
94
+ "path": "./model",
95
+ "id": "src/components/custom-select-dropdown/model.ts::DBCustomSelectDropdownProps",
96
+ "referenceLocation": "DBCustomSelectDropdownProps"
97
+ }
98
+ }
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": ""
105
+ },
106
+ "getter": false,
107
+ "setter": false
108
+ },
80
109
  "className": {
81
110
  "type": "string",
82
111
  "mutable": false,