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

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 (283) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/agent/.gitkeep +0 -0
  3. package/dist/cjs/db-accordion-item.cjs.entry.js +5 -4
  4. package/dist/cjs/db-accordion.cjs.entry.js +6 -6
  5. package/dist/cjs/db-badge.cjs.entry.js +5 -5
  6. package/dist/cjs/db-brand.cjs.entry.js +5 -5
  7. package/dist/cjs/db-button.cjs.entry.js +5 -5
  8. package/dist/cjs/db-card.cjs.entry.js +5 -4
  9. package/dist/cjs/db-checkbox.cjs.entry.js +53 -34
  10. package/dist/cjs/db-custom-button.cjs.entry.js +57 -0
  11. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +59 -37
  12. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +5 -4
  13. package/dist/cjs/db-custom-select.cjs.entry.js +132 -109
  14. package/dist/cjs/db-divider.cjs.entry.js +5 -4
  15. package/dist/cjs/db-drawer.cjs.entry.js +6 -6
  16. package/dist/cjs/db-header.cjs.entry.js +7 -7
  17. package/dist/cjs/db-icon.cjs.entry.js +5 -4
  18. package/dist/cjs/db-infotext.cjs.entry.js +5 -5
  19. package/dist/cjs/db-link.cjs.entry.js +5 -5
  20. package/dist/cjs/db-navigation-item.cjs.entry.js +7 -7
  21. package/dist/cjs/db-navigation.cjs.entry.js +5 -4
  22. package/dist/cjs/db-notification.cjs.entry.js +6 -6
  23. package/dist/cjs/db-page.cjs.entry.js +5 -4
  24. package/dist/cjs/db-popover.cjs.entry.js +7 -7
  25. package/dist/cjs/db-radio.cjs.entry.js +33 -14
  26. package/dist/cjs/db-section.cjs.entry.js +5 -4
  27. package/dist/cjs/db-select.cjs.entry.js +48 -29
  28. package/dist/cjs/db-stack.cjs.entry.js +5 -4
  29. package/dist/cjs/db-switch.cjs.entry.js +58 -22
  30. package/dist/cjs/db-tab-item_3.cjs.entry.js +11 -9
  31. package/dist/cjs/db-tabs.cjs.entry.js +6 -6
  32. package/dist/cjs/db-textarea.cjs.entry.js +46 -27
  33. package/dist/cjs/db-tooltip.cjs.entry.js +17 -9
  34. package/dist/cjs/db-ux.cjs.js +3 -3
  35. package/dist/cjs/{document-click-listener-Bb3Tinb8.js → document-click-listener-B2-xKJv3.js} +1 -1
  36. package/dist/cjs/{document-scroll-listener-unypEU42.js → document-scroll-listener-ChQ7XZRk.js} +1 -1
  37. package/dist/cjs/{floating-components-pYaTeNhp.js → floating-components-DlstoCKH.js} +4 -0
  38. package/dist/cjs/{form-components-LsqVohyb.js → form-components-_ncB_U2D.js} +1 -1
  39. package/dist/cjs/{index-CsHqnQII.js → index-2_9ESkQu.js} +6 -7
  40. package/dist/cjs/{index-Bh5ovRL2.js → index-D_vrmAD6.js} +23 -14
  41. package/dist/cjs/index.cjs.js +5 -5
  42. package/dist/cjs/loader.cjs.js +2 -2
  43. package/dist/cjs/{navigation-BztJmEHf.js → navigation-Bah882nU.js} +1 -1
  44. package/dist/collection/collection-manifest.json +3 -1
  45. package/dist/collection/components/accordion/accordion.js +28 -4
  46. package/dist/collection/components/accordion-item/accordion-item.js +27 -2
  47. package/dist/collection/components/badge/badge.js +54 -4
  48. package/dist/collection/components/brand/brand.js +27 -3
  49. package/dist/collection/components/button/button.js +53 -3
  50. package/dist/collection/components/card/card.js +27 -2
  51. package/dist/collection/components/checkbox/checkbox.js +81 -38
  52. package/dist/collection/components/custom-button/custom-button.js +394 -0
  53. package/dist/collection/components/custom-button/index.js +2 -0
  54. package/dist/collection/components/custom-button/model.js +1 -0
  55. package/dist/collection/components/custom-select/custom-select.js +156 -109
  56. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +27 -2
  57. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +27 -2
  58. package/dist/collection/components/custom-select-list/custom-select-list.js +27 -2
  59. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +27 -2
  60. package/dist/collection/components/divider/divider.js +27 -2
  61. package/dist/collection/components/drawer/drawer.js +28 -4
  62. package/dist/collection/components/header/header.js +27 -3
  63. package/dist/collection/components/icon/icon.js +27 -2
  64. package/dist/collection/components/infotext/infotext.js +53 -3
  65. package/dist/collection/components/input/input.js +74 -31
  66. package/dist/collection/components/link/link.js +27 -3
  67. package/dist/collection/components/navigation/navigation.js +27 -2
  68. package/dist/collection/components/navigation-item/navigation-item.js +27 -3
  69. package/dist/collection/components/notification/notification.js +28 -4
  70. package/dist/collection/components/page/page.js +27 -2
  71. package/dist/collection/components/popover/popover.js +27 -3
  72. package/dist/collection/components/radio/radio.js +54 -11
  73. package/dist/collection/components/section/section.js +27 -2
  74. package/dist/collection/components/select/select.js +75 -32
  75. package/dist/collection/components/stack/stack.js +27 -2
  76. package/dist/collection/components/switch/switch.js +107 -45
  77. package/dist/collection/components/tab-item/tab-item.js +27 -3
  78. package/dist/collection/components/tab-list/tab-list.js +27 -2
  79. package/dist/collection/components/tab-panel/tab-panel.js +27 -2
  80. package/dist/collection/components/tabs/tabs.js +28 -4
  81. package/dist/collection/components/tag/tag.js +27 -3
  82. package/dist/collection/components/textarea/textarea.js +73 -30
  83. package/dist/collection/components/tooltip/tooltip.js +63 -5
  84. package/dist/collection/index.js +2 -0
  85. package/dist/collection/utils/floating-components.js +4 -0
  86. package/dist/collection/utils/index.js +6 -7
  87. package/dist/custom-elements.json +3692 -1698
  88. package/dist/db-ux/db-ux.esm.js +1 -1
  89. package/dist/db-ux/index.esm.js +1 -1
  90. package/dist/db-ux/p-043c407c.entry.js +1 -0
  91. package/dist/db-ux/p-0541c3c2.entry.js +1 -0
  92. package/dist/db-ux/p-074e4a43.entry.js +1 -0
  93. package/dist/db-ux/p-11251b99.entry.js +1 -0
  94. package/dist/db-ux/p-1c89f0fc.entry.js +1 -0
  95. package/dist/db-ux/p-213bfff6.entry.js +1 -0
  96. package/dist/db-ux/p-29442fd9.entry.js +1 -0
  97. package/dist/db-ux/p-2bce91e1.entry.js +1 -0
  98. package/dist/db-ux/p-32c4a1b5.entry.js +1 -0
  99. package/dist/db-ux/p-3e5be44c.entry.js +1 -0
  100. package/dist/db-ux/p-4cda36f1.entry.js +1 -0
  101. package/dist/db-ux/p-4cf64cbb.entry.js +1 -0
  102. package/dist/db-ux/p-5028b12e.entry.js +1 -0
  103. package/dist/db-ux/{p-b07122c4.entry.js → p-56af9177.entry.js} +1 -1
  104. package/dist/db-ux/{p-64264628.entry.js → p-587263ad.entry.js} +1 -1
  105. package/dist/db-ux/p-58f21c03.entry.js +1 -0
  106. package/dist/db-ux/{p-77150a25.entry.js → p-6b073570.entry.js} +1 -1
  107. package/dist/db-ux/p-745ccfb8.entry.js +1 -0
  108. package/dist/db-ux/p-836f0fef.entry.js +1 -0
  109. package/dist/db-ux/p-9a19e197.entry.js +1 -0
  110. package/dist/db-ux/p-9fb146d1.entry.js +1 -0
  111. package/dist/db-ux/p-BjIPMjCM.js +2 -0
  112. package/dist/db-ux/{p-cNk4ImpW.js → p-BuBrj57D.js} +1 -1
  113. package/dist/db-ux/p-CHLgQ9vn.js +1 -0
  114. package/dist/db-ux/{p-CAEpg8tJ.js → p-D5mInaY7.js} +1 -1
  115. package/dist/db-ux/p-DOPXnIzL.js +1 -0
  116. package/dist/db-ux/p-D_roHmuC.js +1 -0
  117. package/dist/db-ux/p-a34d2691.entry.js +1 -0
  118. package/dist/db-ux/p-c6f43506.entry.js +1 -0
  119. package/dist/db-ux/p-cdfaf027.entry.js +1 -0
  120. package/dist/db-ux/p-d186aef4.entry.js +1 -0
  121. package/dist/db-ux/p-dceb35a8.entry.js +1 -0
  122. package/dist/db-ux/p-e199b6f9.entry.js +1 -0
  123. package/dist/db-ux/p-e3664354.entry.js +1 -0
  124. package/dist/db-ux/p-ef034bba.entry.js +1 -0
  125. package/dist/db-ux/p-f0bc176a.entry.js +1 -0
  126. package/dist/db-ux/p-ff3866f3.entry.js +1 -0
  127. package/dist/db-ux/p-xkoBSP8R.js +1 -0
  128. package/dist/esm/db-accordion-item.entry.js +5 -4
  129. package/dist/esm/db-accordion.entry.js +6 -6
  130. package/dist/esm/db-badge.entry.js +5 -5
  131. package/dist/esm/db-brand.entry.js +5 -5
  132. package/dist/esm/db-button.entry.js +5 -5
  133. package/dist/esm/db-card.entry.js +5 -4
  134. package/dist/esm/db-checkbox.entry.js +54 -35
  135. package/dist/esm/db-custom-button.entry.js +55 -0
  136. package/dist/esm/db-custom-select-dropdown_5.entry.js +60 -38
  137. package/dist/esm/db-custom-select-form-field.entry.js +5 -4
  138. package/dist/esm/db-custom-select.entry.js +133 -110
  139. package/dist/esm/db-divider.entry.js +5 -4
  140. package/dist/esm/db-drawer.entry.js +6 -6
  141. package/dist/esm/db-header.entry.js +7 -7
  142. package/dist/esm/db-icon.entry.js +5 -4
  143. package/dist/esm/db-infotext.entry.js +5 -5
  144. package/dist/esm/db-link.entry.js +5 -5
  145. package/dist/esm/db-navigation-item.entry.js +7 -7
  146. package/dist/esm/db-navigation.entry.js +5 -4
  147. package/dist/esm/db-notification.entry.js +6 -6
  148. package/dist/esm/db-page.entry.js +5 -4
  149. package/dist/esm/db-popover.entry.js +7 -7
  150. package/dist/esm/db-radio.entry.js +33 -14
  151. package/dist/esm/db-section.entry.js +5 -4
  152. package/dist/esm/db-select.entry.js +49 -30
  153. package/dist/esm/db-stack.entry.js +5 -4
  154. package/dist/esm/db-switch.entry.js +58 -22
  155. package/dist/esm/db-tab-item_3.entry.js +11 -9
  156. package/dist/esm/db-tabs.entry.js +6 -6
  157. package/dist/esm/db-textarea.entry.js +47 -28
  158. package/dist/esm/db-tooltip.entry.js +17 -9
  159. package/dist/esm/db-ux.js +4 -4
  160. package/dist/esm/{document-click-listener-CmYoXpGE.js → document-click-listener-D7W_VE5O.js} +1 -1
  161. package/dist/esm/{document-scroll-listener-65bHuFAN.js → document-scroll-listener-DOBe3Oa9.js} +1 -1
  162. package/dist/esm/{floating-components-DfYL98sI.js → floating-components-DOPXnIzL.js} +4 -0
  163. package/dist/esm/{form-components-BLsiOrPI.js → form-components-D6LQfJvq.js} +1 -1
  164. package/dist/esm/{index-Crtu1dn6.js → index-BjIPMjCM.js} +23 -14
  165. package/dist/esm/{index-C4x0SOcx.js → index-xkoBSP8R.js} +6 -7
  166. package/dist/esm/index.js +5 -5
  167. package/dist/esm/loader.js +3 -3
  168. package/dist/esm/{navigation-DgsMCdfn.js → navigation-Jh6m0eMk.js} +1 -1
  169. package/dist/types/components/accordion/accordion.d.ts +1 -0
  170. package/dist/types/components/accordion-item/accordion-item.d.ts +1 -0
  171. package/dist/types/components/badge/badge.d.ts +2 -0
  172. package/dist/types/components/badge/model.d.ts +2 -2
  173. package/dist/types/components/brand/brand.d.ts +1 -0
  174. package/dist/types/components/button/button.d.ts +2 -0
  175. package/dist/types/components/button/model.d.ts +8 -10
  176. package/dist/types/components/card/card.d.ts +1 -0
  177. package/dist/types/components/checkbox/checkbox.d.ts +5 -1
  178. package/dist/types/components/custom-button/custom-button.d.ts +29 -0
  179. package/dist/types/components/custom-button/index.d.ts +2 -0
  180. package/dist/types/components/custom-button/model.d.ts +6 -0
  181. package/dist/types/components/custom-select/custom-select.d.ts +5 -1
  182. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
  183. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
  184. package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
  185. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
  186. package/dist/types/components/divider/divider.d.ts +1 -0
  187. package/dist/types/components/drawer/drawer.d.ts +1 -0
  188. package/dist/types/components/header/header.d.ts +1 -0
  189. package/dist/types/components/icon/icon.d.ts +1 -0
  190. package/dist/types/components/infotext/infotext.d.ts +2 -0
  191. package/dist/types/components/infotext/model.d.ts +2 -2
  192. package/dist/types/components/input/input.d.ts +5 -1
  193. package/dist/types/components/link/link.d.ts +1 -0
  194. package/dist/types/components/navigation/navigation.d.ts +1 -0
  195. package/dist/types/components/navigation-item/navigation-item.d.ts +1 -0
  196. package/dist/types/components/notification/model.d.ts +2 -2
  197. package/dist/types/components/notification/notification.d.ts +1 -0
  198. package/dist/types/components/page/page.d.ts +1 -0
  199. package/dist/types/components/popover/popover.d.ts +1 -0
  200. package/dist/types/components/radio/radio.d.ts +4 -0
  201. package/dist/types/components/section/section.d.ts +1 -0
  202. package/dist/types/components/select/select.d.ts +5 -1
  203. package/dist/types/components/stack/stack.d.ts +1 -0
  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 +145 -6
  215. package/dist/types/index.d.ts +2 -0
  216. package/dist/types/shared/model.d.ts +15 -1
  217. package/dist/types/stencil-public-runtime.d.ts +3 -1
  218. package/dist/vscode.html-custom-data.json +397 -85
  219. package/dist/web-types.json +730 -153
  220. package/package.json +4 -4
  221. package/agent/Accordion.md +0 -23
  222. package/agent/AccordionItem.md +0 -29
  223. package/agent/Badge.md +0 -32
  224. package/agent/Brand.md +0 -13
  225. package/agent/Button.md +0 -47
  226. package/agent/Card.md +0 -23
  227. package/agent/Checkbox.md +0 -41
  228. package/agent/CustomSelect.md +0 -54
  229. package/agent/Divider.md +0 -21
  230. package/agent/Drawer.md +0 -71
  231. package/agent/Header.md +0 -29
  232. package/agent/Icon.md +0 -20
  233. package/agent/Infotext.md +0 -25
  234. package/agent/Input.md +0 -48
  235. package/agent/Link.md +0 -52
  236. package/agent/Navigation.md +0 -19
  237. package/agent/NavigationItem.md +0 -29
  238. package/agent/Notification.md +0 -38
  239. package/agent/Page.md +0 -27
  240. package/agent/Popover.md +0 -52
  241. package/agent/Radio.md +0 -28
  242. package/agent/Section.md +0 -21
  243. package/agent/Select.md +0 -62
  244. package/agent/Stack.md +0 -35
  245. package/agent/Switch.md +0 -44
  246. package/agent/TabItem.md +0 -25
  247. package/agent/Tabs.md +0 -61
  248. package/agent/Tag.md +0 -41
  249. package/agent/Textarea.md +0 -44
  250. package/agent/Tooltip.md +0 -37
  251. package/agent/_instructions.md +0 -31
  252. package/dist/db-ux/p-1a72176e.entry.js +0 -1
  253. package/dist/db-ux/p-1b7f6a0b.entry.js +0 -1
  254. package/dist/db-ux/p-1da21066.entry.js +0 -1
  255. package/dist/db-ux/p-2d15e200.entry.js +0 -1
  256. package/dist/db-ux/p-312d52da.entry.js +0 -1
  257. package/dist/db-ux/p-3e6b86d6.entry.js +0 -1
  258. package/dist/db-ux/p-4aa16916.entry.js +0 -1
  259. package/dist/db-ux/p-4b69acea.entry.js +0 -1
  260. package/dist/db-ux/p-4cfff250.entry.js +0 -1
  261. package/dist/db-ux/p-5237e5d5.entry.js +0 -1
  262. package/dist/db-ux/p-5b1a0f0f.entry.js +0 -1
  263. package/dist/db-ux/p-5fa85b19.entry.js +0 -1
  264. package/dist/db-ux/p-7351b5ab.entry.js +0 -1
  265. package/dist/db-ux/p-7c6b7578.entry.js +0 -1
  266. package/dist/db-ux/p-828a77d8.entry.js +0 -1
  267. package/dist/db-ux/p-9b47dc80.entry.js +0 -1
  268. package/dist/db-ux/p-BhXdfCpU.js +0 -1
  269. package/dist/db-ux/p-C4x0SOcx.js +0 -1
  270. package/dist/db-ux/p-Crtu1dn6.js +0 -2
  271. package/dist/db-ux/p-DfYL98sI.js +0 -1
  272. package/dist/db-ux/p-RHqkTr-_.js +0 -1
  273. package/dist/db-ux/p-a3a8ce36.entry.js +0 -1
  274. package/dist/db-ux/p-aa0f7280.entry.js +0 -1
  275. package/dist/db-ux/p-b1fc0f4c.entry.js +0 -1
  276. package/dist/db-ux/p-c2624e1b.entry.js +0 -1
  277. package/dist/db-ux/p-c29d8e32.entry.js +0 -1
  278. package/dist/db-ux/p-cf50169a.entry.js +0 -1
  279. package/dist/db-ux/p-d4f3cfa2.entry.js +0 -1
  280. package/dist/db-ux/p-e05fee5a.entry.js +0 -1
  281. package/dist/db-ux/p-f40d2d61.entry.js +0 -1
  282. package/dist/db-ux/p-fcf8e274.entry.js +0 -1
  283. package/dist/db-ux/p-fe06f815.entry.js +0 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Bh5ovRL2.js');
3
+ var index = require('./index-D_vrmAD6.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-pYaTeNhp.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-DlstoCKH.js');
9
+ var formComponents = require('./form-components-_ncB_U2D.js');
10
10
 
11
11
  const DBCustomSelect = class {
12
12
  constructor(hostRef) {
@@ -327,10 +327,14 @@ const DBCustomSelect = class {
327
327
  else if (this.detailsRef.open && event) {
328
328
  if (event.relatedTarget) {
329
329
  const relatedTarget = event.relatedTarget;
330
- if (!this.detailsRef.contains(relatedTarget)) {
330
+ // We close if the focus is on something like a <button> etc. which is not inside the <details> element
331
+ // Inside a <dialog> there is some focus problem because of the top-layer
332
+ // We do not want to focus <dialog> itself
333
+ if (!this.detailsRef.contains(relatedTarget) &&
334
+ relatedTarget.localName !== "dialog") {
331
335
  // We need to use delay here because the combination of `contains`
332
336
  // and changing the DOM element causes a race condition inside browser
333
- index$1.delay(() => (this.detailsRef.open = false), 1);
337
+ void index$1.delay(() => (this.detailsRef.open = false), 1);
334
338
  }
335
339
  }
336
340
  }
@@ -468,6 +472,20 @@ const DBCustomSelect = class {
468
472
  (_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
469
473
  }
470
474
  }
475
+ resetIds() {
476
+ var _a, _b, _c;
477
+ 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()}`;
478
+ this._id = mId;
479
+ this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
480
+ this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
481
+ this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
482
+ this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
483
+ this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
484
+ this._summaryId = mId + "-summary";
485
+ this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
486
+ this._selectedLabelsId = mId + "-selected-labels";
487
+ this._infoTextId = mId + "-info";
488
+ }
471
489
  /**
472
490
  * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
473
491
  * @param element the ref for the component
@@ -505,14 +523,23 @@ const DBCustomSelect = class {
505
523
  }
506
524
  }
507
525
  watch0Fn() {
508
- if (this.detailsRef) {
509
- this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
526
+ var _a, _b;
527
+ if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
528
+ this.resetIds();
510
529
  }
511
530
  }
512
531
  watch0() {
513
532
  this.watch0Fn();
514
533
  }
515
534
  watch1Fn() {
535
+ if (this.detailsRef) {
536
+ this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
537
+ }
538
+ }
539
+ watch1() {
540
+ this.watch1Fn();
541
+ }
542
+ watch2Fn() {
516
543
  if (this._id) {
517
544
  const messageId = this._id + constants.DEFAULT_MESSAGE_ID_SUFFIX;
518
545
  this._labelId = this._id + constants.DEFAULT_LABEL_ID_SUFFIX;
@@ -528,10 +555,10 @@ const DBCustomSelect = class {
528
555
  }
529
556
  }
530
557
  }
531
- watch1() {
532
- this.watch1Fn();
558
+ watch2() {
559
+ this.watch2Fn();
533
560
  }
534
- watch2Fn() {
561
+ watch3Fn() {
535
562
  var _a;
536
563
  if (this.detailsRef) {
537
564
  const summary = this.detailsRef.querySelector("summary");
@@ -540,10 +567,10 @@ const DBCustomSelect = class {
540
567
  }
541
568
  }
542
569
  }
543
- watch2() {
544
- this.watch2Fn();
570
+ watch3() {
571
+ this.watch3Fn();
545
572
  }
546
- watch3Fn() {
573
+ watch4Fn() {
547
574
  if (this.showNoResults !== undefined) {
548
575
  this._hasNoOptions = this.showNoResults;
549
576
  }
@@ -551,24 +578,24 @@ const DBCustomSelect = class {
551
578
  this._hasNoOptions = this._options.length === 0;
552
579
  }
553
580
  }
554
- watch3() {
555
- this.watch3Fn();
556
- }
557
- watch4Fn() {
558
- var _a;
559
- this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
560
- }
561
581
  watch4() {
562
582
  this.watch4Fn();
563
583
  }
564
584
  watch5Fn() {
565
585
  var _a;
566
- this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
586
+ this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
567
587
  }
568
588
  watch5() {
569
589
  this.watch5Fn();
570
590
  }
571
591
  watch6Fn() {
592
+ var _a;
593
+ this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
594
+ }
595
+ watch6() {
596
+ this.watch6Fn();
597
+ }
598
+ watch7Fn() {
572
599
  var _a;
573
600
  const v = this.values;
574
601
  if (Array.isArray(v)) {
@@ -580,18 +607,18 @@ const DBCustomSelect = class {
580
607
  this._values = [];
581
608
  }
582
609
  }
583
- watch6() {
584
- this.watch6Fn();
610
+ watch7() {
611
+ this.watch7Fn();
585
612
  }
586
- watch7Fn() {
613
+ watch8Fn() {
587
614
  if (this.selectRef) {
588
615
  this.handleValidation();
589
616
  }
590
617
  }
591
- watch7() {
592
- this.watch7Fn();
618
+ watch8() {
619
+ this.watch8Fn();
593
620
  }
594
- watch8Fn() {
621
+ watch9Fn() {
595
622
  if (this.selectRef) {
596
623
  let controller = this.abortController;
597
624
  if (!controller) {
@@ -610,16 +637,16 @@ const DBCustomSelect = class {
610
637
  }, controller.signal);
611
638
  }
612
639
  }
613
- watch8() {
614
- this.watch8Fn();
615
- }
616
- watch9Fn() {
617
- this._validity = this.validation;
618
- }
619
640
  watch9() {
620
641
  this.watch9Fn();
621
642
  }
622
643
  watch10Fn() {
644
+ this._validity = this.validation;
645
+ }
646
+ watch10() {
647
+ this.watch10Fn();
648
+ }
649
+ watch11Fn() {
623
650
  var _a, _b;
624
651
  if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
625
652
  this.selectAllChecked = false;
@@ -633,29 +660,29 @@ const DBCustomSelect = class {
633
660
  this.selectAllIndeterminate = true;
634
661
  }
635
662
  }
636
- watch10() {
637
- this.watch10Fn();
663
+ watch11() {
664
+ this.watch11Fn();
638
665
  }
639
- watch11Fn() {
666
+ watch12Fn() {
640
667
  var _a, _b;
641
668
  this._options = this.options;
642
669
  this.amountOptions =
643
670
  (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
644
671
  }
645
- watch11() {
646
- this.watch11Fn();
672
+ watch12() {
673
+ this.watch12Fn();
647
674
  }
648
- watch12Fn() {
675
+ watch13Fn() {
649
676
  this._searchValue = this.searchValue;
650
677
  if (this.searchValue) {
651
678
  const sValue = this.searchValue; // <- workaround for Angular
652
679
  this.handleSearch(sValue);
653
680
  }
654
681
  }
655
- watch12() {
656
- this.watch12Fn();
682
+ watch13() {
683
+ this.watch13Fn();
657
684
  }
658
- watch13Fn() {
685
+ watch14Fn() {
659
686
  var _a, _b;
660
687
  if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
661
688
  this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
@@ -667,10 +694,10 @@ const DBCustomSelect = class {
667
694
  });
668
695
  }
669
696
  }
670
- watch13() {
671
- this.watch13Fn();
697
+ watch14() {
698
+ this.watch14Fn();
672
699
  }
673
- watch14Fn() {
700
+ watch15Fn() {
674
701
  var _a, _b, _c;
675
702
  if (this.selectedLabels) {
676
703
  this._selectedLabels = this.selectedLabels;
@@ -697,50 +724,39 @@ const DBCustomSelect = class {
697
724
  this._selectedLabels = "";
698
725
  }
699
726
  }
700
- watch14() {
701
- this.watch14Fn();
727
+ watch15() {
728
+ this.watch15Fn();
702
729
  }
703
- watch15Fn() {
730
+ watch16Fn() {
704
731
  var _a, _b;
705
732
  if (this.amountChange) {
706
733
  this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
707
734
  }
708
735
  }
709
- watch15() {
710
- this.watch15Fn();
736
+ watch16() {
737
+ this.watch16Fn();
711
738
  }
712
- watch16Fn() {
739
+ watch17Fn() {
713
740
  if (this.selectAllRef) {
714
741
  this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
715
742
  }
716
743
  }
717
- watch16() {
718
- this.watch16Fn();
744
+ watch17() {
745
+ this.watch17Fn();
719
746
  }
720
- watch17Fn() {
747
+ watch18Fn() {
721
748
  var _a;
722
749
  this._invalidMessage =
723
750
  this.invalidMessage ||
724
751
  ((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
725
752
  constants.DEFAULT_INVALID_MESSAGE;
726
753
  }
727
- watch17() {
728
- this.watch17Fn();
754
+ watch18() {
755
+ this.watch18Fn();
729
756
  }
730
757
  componentDidLoad() {
731
- var _a;
732
758
  this.enableAttributePassing(this._ref, "db-custom-select");
733
- const mId = (_a = this.id) !== null && _a !== void 0 ? _a : `custom-select-${index$1.uuid()}`;
734
- this._id = mId;
735
- this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
736
- this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
737
- this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
738
- this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
739
- this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
740
- this._summaryId = mId + "-summary";
741
- this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
742
- this._selectedLabelsId = mId + "-selected-labels";
743
- this._infoTextId = mId + "-info";
759
+ this.resetIds();
744
760
  this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
745
761
  if (typeof window !== "undefined" && "IntersectionObserver" in window) {
746
762
  this._observer = new IntersectionObserver((payload) => {
@@ -770,6 +786,7 @@ const DBCustomSelect = class {
770
786
  this.watch15Fn();
771
787
  this.watch16Fn();
772
788
  this.watch17Fn();
789
+ this.watch18Fn();
773
790
  }
774
791
  disconnectedCallback() {
775
792
  var _a;
@@ -777,19 +794,19 @@ const DBCustomSelect = class {
777
794
  }
778
795
  render() {
779
796
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
780
- return (index.h("div", { key: 'bb7f2bd039a1d7f97bca1408e4c462c029963128', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
797
+ return (index.h("div", { key: '04344ea736f4311c09459970f6c743516c0a45ba', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
781
798
  this._ref = el;
782
799
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
783
800
  this.selectedType === "tag" &&
784
801
  this.multiple
785
802
  ? "above"
786
- : 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: 'cf9b29fb5c955bd22928803a491d7a76463c1c42', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: 'ab1c6f7adafe07b6d91cb12abb058e41faa27c82', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
803
+ : 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: 'ed856ad29b0f840ebe37c8edf275267efc780f2c', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '093be2cd13041a45a95664e083125f5e4e8c2689', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
787
804
  this.selectRef = el;
788
805
  }, 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)
789
806
  ? (_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))))
790
- : null)), index.h("details", { key: 'ba829c0fb72fe74896a927f06cb9f8005621524b', ref: (el) => {
807
+ : null)), index.h("details", { key: 'e0617c55fb94a72432719b485d922d87cca58d40', ref: (el) => {
791
808
  this.detailsRef = el;
792
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '90e00cda7265025b8299ff92bfac46f2f242c899' }), 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) => {
809
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '4a4754177ce637816734d8e195d1d34b0e4a9707' }), 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.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) => {
793
810
  this.searchInputRef = el;
794
811
  }, 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
795
812
  ? this._infoTextId
@@ -799,98 +816,104 @@ const DBCustomSelect = class {
799
816
  this.selectAllRef = el;
800
817
  }, 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
801
818
  ? this.getOptionLabel(option)
802
- : 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: '5cc4a48735e41b769c36e059d613f8c83b641ba1', 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: 'ac47ebdaff258f7e19f2dbf447054369a919633c', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: 'c568834fa90ab614cad1dcdc4de89daf25df1ffb', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
819
+ : 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: 'ea3f5751609a4383f9d381cfbc7947a4b0192880', 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: 'd8733256a74ba4876d4080a27798f01264d6472d', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '4ca046467d7da79ac48f0e1dddf2712ef2a93074', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
803
820
  }
804
821
  static get watchers() { return {
805
- "detailsRef": [{
822
+ "id": [{
806
823
  "watch0": 0
824
+ }],
825
+ "propOverrides?.id": [{
826
+ "watch0": 0
827
+ }],
828
+ "detailsRef": [{
829
+ "watch1": 0
807
830
  }, {
808
- "watch2": 0
831
+ "watch3": 0
809
832
  }],
810
833
  "_id": [{
811
- "watch1": 0
834
+ "watch2": 0
812
835
  }],
813
836
  "_descByIds": [{
814
- "watch2": 0
837
+ "watch3": 0
815
838
  }],
816
839
  "showNoResults": [{
817
- "watch3": 0
840
+ "watch4": 0
818
841
  }],
819
842
  "showLoading": [{
820
- "watch3": 0
843
+ "watch4": 0
821
844
  }],
822
845
  "_options": [{
823
- "watch3": 0
846
+ "watch4": 0
824
847
  }],
825
848
  "showSelectAll": [{
826
- "watch4": 0
849
+ "watch5": 0
827
850
  }],
828
851
  "amountOptions": [{
829
- "watch4": 0
830
- }, {
831
852
  "watch5": 0
832
853
  }, {
833
- "watch10": 0
854
+ "watch6": 0
855
+ }, {
856
+ "watch11": 0
834
857
  }],
835
858
  "multiple": [{
836
- "watch4": 0
859
+ "watch5": 0
837
860
  }],
838
861
  "showSearch": [{
839
- "watch5": 0
862
+ "watch6": 0
840
863
  }],
841
864
  "values": [{
842
- "watch6": 0
865
+ "watch7": 0
843
866
  }],
844
867
  "_values": [{
845
- "watch7": 0
868
+ "watch8": 0
846
869
  }, {
847
- "watch10": 0
870
+ "watch11": 0
848
871
  }, {
849
- "watch13": 0
872
+ "watch14": 0
850
873
  }],
851
874
  "selectRef": [{
852
- "watch7": 0
853
- }, {
854
875
  "watch8": 0
855
876
  }, {
856
- "watch17": 0
877
+ "watch9": 0
878
+ }, {
879
+ "watch18": 0
857
880
  }],
858
881
  "validation": [{
859
- "watch9": 0
882
+ "watch10": 0
860
883
  }],
861
884
  "options": [{
862
- "watch11": 0
885
+ "watch12": 0
863
886
  }, {
864
- "watch13": 0
887
+ "watch14": 0
865
888
  }],
866
889
  "searchValue": [{
867
- "watch12": 0
890
+ "watch13": 0
868
891
  }],
869
892
  "_selectedOptions": [{
870
- "watch14": 0
871
- }, {
872
893
  "watch15": 0
894
+ }, {
895
+ "watch16": 0
873
896
  }],
874
897
  "selectedType": [{
875
- "watch14": 0
898
+ "watch15": 0
876
899
  }],
877
900
  "amountText": [{
878
- "watch14": 0
901
+ "watch15": 0
879
902
  }],
880
903
  "selectedLabels": [{
881
- "watch14": 0
904
+ "watch15": 0
882
905
  }],
883
906
  "transformSelectedLabels": [{
884
- "watch14": 0
907
+ "watch15": 0
885
908
  }],
886
909
  "selectAllIndeterminate": [{
887
- "watch16": 0
910
+ "watch17": 0
888
911
  }],
889
912
  "selectAllRef": [{
890
- "watch16": 0
913
+ "watch17": 0
891
914
  }],
892
915
  "invalidMessage": [{
893
- "watch17": 0
916
+ "watch18": 0
894
917
  }]
895
918
  }; }
896
919
  };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Bh5ovRL2.js');
4
- var index$1 = require('./index-CsHqnQII.js');
3
+ var index = require('./index-D_vrmAD6.js');
4
+ var index$1 = require('./index-2_9ESkQu.js');
5
5
 
6
6
  const DBDivider = class {
7
7
  constructor(hostRef) {
@@ -47,9 +47,10 @@ const DBDivider = class {
47
47
  this.enableAttributePassing(this._ref, "db-divider");
48
48
  }
49
49
  render() {
50
- return (index.h("div", { key: '85afebbf444ffecdfbc4701e36c94c9a48080fc1', class: index$1.cls("db-divider", this.className), ref: (el) => {
50
+ var _a, _b;
51
+ return (index.h("div", { key: '5773c14fcdd05f7e4b7b73af32c779133ac1b65b', class: index$1.cls("db-divider", this.className), ref: (el) => {
51
52
  this._ref = el;
52
- }, 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 }));
53
54
  }
54
55
  };
55
56
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Bh5ovRL2.js');
3
+ var index = require('./index-D_vrmAD6.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) {
@@ -134,12 +134,12 @@ const DBDrawer = class {
134
134
  this.watch1Fn();
135
135
  }
136
136
  render() {
137
- var _a;
138
- return (index.h("dialog", { key: '571d8c77113ad08a76865dec43c20069cc558290', class: "db-drawer", id: this.id, ref: (el) => {
137
+ var _a, _b, _c;
138
+ return (index.h("dialog", { key: '5980a60cbe0d46868a4a65d853551a25159523f0', 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) => {
139
139
  this._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: '6116282c0fb97d5c34a216c899b53c405116c326', 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: '305ff89261e63e2dbe0640fc9be97b330a4b94cf', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
141
141
  this.dialogContainerRef = el;
142
- }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: '4e2300a258a0cea3141b8cca846fa5163c911caa', class: "db-drawer-header" }, index.h("div", { key: '659656f5fed1e68d21c44c9eaed5d91f634cf58f', class: "db-drawer-header-text" }, index.h("slot", { key: '51b540fa08c43a570e7a4cc49306a0a20af9c3be', name: "drawerHeader" })), index.h("db-button", { key: '88facb314b62e021c678b4298dfcd4daa20d58ed', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: '439a1f0615d190b737d758d60cba5488ea72811b', class: "db-drawer-content" }, index.h("slot", { key: '80c97bcc8cfb09aa2ec65dae1285d5a48c242eea' })))));
142
+ }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'fe07654ff3c238c6a0eb2f73ff5f8a035ff9232c', class: "db-drawer-header" }, index.h("div", { key: '56eff8cf0d755c027bf72e2319e7897ed3b4b51c', class: "db-drawer-header-text" }, index.h("slot", { key: 'ff8378e26a292c20991899764a927aadd5b35ac8', name: "drawerHeader" })), index.h("db-button", { key: '5300a384462ceb1ac7ac9272bed2ee34f426ccf2', 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: '681bd3593f743539104398e0dbb6628abdd8ae2c', class: "db-drawer-content" }, index.h("slot", { key: 'ad9f204d5f0b6b44fec8bfc49f8aa361cbb155d7' })))));
143
143
  }
144
144
  static get watchers() { return {
145
145
  "open": [{
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Bh5ovRL2.js');
3
+ var index = require('./index-D_vrmAD6.js');
4
4
  var constants = require('./constants-bMY2_d8A.js');
5
- var index$1 = require('./index-CsHqnQII.js');
6
- var navigation = require('./navigation-BztJmEHf.js');
7
- require('./floating-components-pYaTeNhp.js');
5
+ var index$1 = require('./index-2_9ESkQu.js');
6
+ var navigation = require('./navigation-Bah882nU.js');
7
+ require('./floating-components-DlstoCKH.js');
8
8
 
9
9
  const DBHeader = class {
10
10
  constructor(hostRef) {
@@ -83,10 +83,10 @@ const DBHeader = class {
83
83
  this.watch0Fn();
84
84
  }
85
85
  render() {
86
- var _a;
87
- return (index.h("header", { key: '3ce812cf839f1f8c29b9bc05c6a840b58b13b51e', class: index$1.cls("db-header", this.className), ref: (el) => {
86
+ var _a, _b, _c;
87
+ return (index.h("header", { key: 'b5085e769fbc61e94b0ae0e1cca91db441efc1a5', class: index$1.cls("db-header", this.className), ref: (el) => {
88
88
  this._ref = el;
89
- }, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: 'ad1ef3ed622f466d53e854f52df140580d8dcaf9', 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: 'f15469dcbca82a805c94e8e775f4903bff148f0c', class: "db-header-drawer-navigation" }, index.h("div", { key: '4d661aa075944eb2d147cde8131b3da9bfcc1a71', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '0867fadfd79434481679fd1e29d369b0da1f4f70' })), index.h("div", { key: '8135e33f5209b7eeff4f78ece25836fc03905113', class: "db-header-meta-navigation" }, index.h("slot", { key: '272b6fb534de9ebaf11ce0c15d9573f137bf9257', name: "metaNavigation" }))), index.h("div", { key: 'ff5e1b82535825b07721f0478b0c315dfb2064db', class: "db-header-secondary-action" }, index.h("slot", { key: '41f5a0bec2da7eb0a7072a48268e1252e7a6e04b', name: "secondaryAction" }))), index.h("div", { key: '2dc424731844cc853759d229860ca85bc8343005', class: "db-header-meta-navigation" }, index.h("slot", { key: '254003d7ef0b53d1a1bf4ff6c91ffaad40db23ae', name: "metaNavigation" })), index.h("div", { key: 'cc66337e4fa59e3ba2f8150bba581e830348c21b', class: "db-header-navigation-bar" }, index.h("div", { key: 'f3b2f219dff06c4e64803cee6843fce892a08710', class: "db-header-brand-container" }, index.h("slot", { key: '5d2b3eeb421c4954a102dfc2a98feec2eec88e9b', name: "brand" })), index.h("div", { key: 'ffd377f496e03febd719e8caa103aad4a70d7d09', class: "db-header-navigation-container" }, index.h("div", { key: 'dd144a78a278178cfbb49ca99aa6ad2c8e060c26', class: "db-header-navigation" }, index.h("slot", { key: '24f29087236b2f885f76fcec167c17523d7cb4cf' })), index.h("div", { key: '30d6926a2cc679e2a0b89321dd5573c82c52413a', class: "db-header-primary-action" }, index.h("slot", { key: '6e8351b6a7236d6f79b221cd78f1c19e32984a64', name: "primaryAction" }))), index.h("div", { key: '918bcd534073735daae1b6f366f514e9a913bcf0', class: "db-header-action-container" }, index.h("div", { key: 'a003b166c56c021029deb61294b1360e24c68233', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '0a62ee629bd0b9b768a7ae33dd854c620ad8c60e', 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: '70d919437f722df576cfd1f01f829da1af071352', class: "db-header-secondary-action" }, index.h("slot", { key: '7b2c7c2a575787fe652a47c5e570964c3715b968', 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: 'a47facce9c8108126495c77d37a487cd34fe0ecb', 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: 'cda6c2d0070ce377af2bd5ca4b77459a94350df5', class: "db-header-drawer-navigation" }, index.h("div", { key: '15713a6e12680039ca79f27ec4a1000b120af4fd', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: 'e553fe01864f6a23e12edb336ddfabae78ca4f74' })), index.h("div", { key: '73339268263f22638ce7e7cde00369f58a279d62', class: "db-header-meta-navigation" }, index.h("slot", { key: 'deffe76713c7ad062821f83a34ad1c0530acff6c', name: "metaNavigation" }))), index.h("div", { key: '42f61529aa00d9422cac6c8d5ae2588d0eb4760d', class: "db-header-secondary-action" }, index.h("slot", { key: '3273017c0520401367809b3e39e1d642b92bec50', name: "secondaryAction" }))), index.h("div", { key: '26b07d2244c291b78daa6dd2bc39ce2ee93d8674', class: "db-header-meta-navigation" }, index.h("slot", { key: '4adfd5ac044acbb161a26e9e033a1483991842c6', name: "metaNavigation" })), index.h("div", { key: '6a9709c60965315e7ecffb41ea4aac8caf986086', class: "db-header-navigation-bar" }, index.h("div", { key: '6eca84e588432ec968d4aed685d0dda4053b08a9', class: "db-header-brand-container" }, index.h("slot", { key: 'c034633ed87c6c554621e275b6d98d1d1628265c', name: "brand" })), index.h("div", { key: '04766e92142de2cd49a08711e7ad627b0cef14bd', class: "db-header-navigation-container" }, index.h("div", { key: 'fa4a5f6deab5edf3e1acf6e67d73ce06e638ae02', class: "db-header-navigation" }, index.h("slot", { key: '192fbdd2773ab46f2e4800d919a2ace97c9f5ef2' })), index.h("div", { key: '3bf503b08a862dbca679c198916da4be7228c528', class: "db-header-primary-action" }, index.h("slot", { key: '2ab7194da0568d92c85d47ecbf4e34aa4a734d00', name: "primaryAction" }))), index.h("div", { key: 'f45dbbf3346e8bf533a4af7c82e754fe0a679082', class: "db-header-action-container" }, index.h("div", { key: '7dfcd81988888a0595b94e15ba963abcfb1200ea', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '52e71ba370d564b8739966643adf2ccce5e48bcb', 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: '54cf3d9d67d7be42f6b06227100abb337deb396d', class: "db-header-secondary-action" }, index.h("slot", { key: 'fc0a9946c1fd478c57e73f4c3b5b6ae0600101b8', name: "secondaryAction" }))))));
90
90
  }
91
91
  static get watchers() { return {
92
92
  "initialized": [{
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Bh5ovRL2.js');
4
- var index$1 = require('./index-CsHqnQII.js');
3
+ var index = require('./index-D_vrmAD6.js');
4
+ var index$1 = require('./index-2_9ESkQu.js');
5
5
 
6
6
  const DBIcon = class {
7
7
  constructor(hostRef) {
@@ -47,9 +47,10 @@ const DBIcon = class {
47
47
  this.enableAttributePassing(this._ref, "db-icon");
48
48
  }
49
49
  render() {
50
- return (index.h("span", { key: '98575a7f351cb2f3bb8d716d7e8ef07f10e403ad', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
50
+ var _a, _b;
51
+ return (index.h("span", { key: '3bef98de9ca12c66f7cce8e11eaa5d895a8d6750', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
51
52
  this._ref = el;
52
- }, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : index.h("slot", null)));
53
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : index.h("slot", null)));
53
54
  }
54
55
  };
55
56
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Bh5ovRL2.js');
4
- var index$1 = require('./index-CsHqnQII.js');
3
+ var index = require('./index-D_vrmAD6.js');
4
+ var index$1 = require('./index-2_9ESkQu.js');
5
5
 
6
6
  const DBInfotext = class {
7
7
  constructor(hostRef) {
@@ -47,10 +47,10 @@ const DBInfotext = class {
47
47
  this.enableAttributePassing(this._ref, "db-infotext");
48
48
  }
49
49
  render() {
50
- var _a;
51
- return (index.h("span", { key: '1d72ab4201a2886684b736cc9909ffc2df914999', class: index$1.cls("db-infotext", this.className), ref: (el) => {
50
+ var _a, _b, _c;
51
+ return (index.h("span", { key: '49219bd5f07042ba66ee28e86aed0536e0f776eb', class: index$1.cls("db-infotext", this.className), ref: (el) => {
52
52
  this._ref = el;
53
- }, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": index$1.getBooleanAsString((_a = this.showIcon) !== null && _a !== void 0 ? _a : true) }, this.text ? this.text : index.h("slot", null)));
53
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": index$1.getBooleanAsString(this.wrap), "data-show-icon-leading": index$1.getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : index.h("slot", null)));
54
54
  }
55
55
  };
56
56