@db-ux/wc-core-components 4.9.1 → 4.10.0-esm-94516f3

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 (312) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +114 -25
  3. package/bundle/db-accordion-item.d.ts +11 -0
  4. package/bundle/db-accordion-item.js +1 -0
  5. package/bundle/db-accordion.d.ts +11 -0
  6. package/bundle/db-accordion.js +1 -0
  7. package/bundle/db-badge.d.ts +11 -0
  8. package/bundle/db-badge.js +1 -0
  9. package/bundle/db-brand.d.ts +11 -0
  10. package/bundle/db-brand.js +1 -0
  11. package/bundle/db-button.d.ts +11 -0
  12. package/bundle/db-button.js +1 -0
  13. package/bundle/db-card.d.ts +11 -0
  14. package/bundle/db-card.js +1 -0
  15. package/bundle/db-checkbox.d.ts +11 -0
  16. package/bundle/db-checkbox.js +1 -0
  17. package/bundle/db-custom-button.d.ts +11 -0
  18. package/bundle/db-custom-button.js +1 -0
  19. package/bundle/db-custom-select-dropdown.d.ts +11 -0
  20. package/bundle/db-custom-select-dropdown.js +1 -0
  21. package/bundle/db-custom-select-form-field.d.ts +11 -0
  22. package/bundle/db-custom-select-form-field.js +1 -0
  23. package/bundle/db-custom-select-list-item.d.ts +11 -0
  24. package/bundle/db-custom-select-list-item.js +1 -0
  25. package/bundle/db-custom-select-list.d.ts +11 -0
  26. package/bundle/db-custom-select-list.js +1 -0
  27. package/bundle/db-custom-select.d.ts +11 -0
  28. package/bundle/db-custom-select.js +1 -0
  29. package/bundle/db-divider.d.ts +11 -0
  30. package/bundle/db-divider.js +1 -0
  31. package/bundle/db-drawer.d.ts +11 -0
  32. package/bundle/db-drawer.js +1 -0
  33. package/bundle/db-header.d.ts +11 -0
  34. package/bundle/db-header.js +1 -0
  35. package/bundle/db-icon.d.ts +11 -0
  36. package/bundle/db-icon.js +1 -0
  37. package/bundle/db-infotext.d.ts +11 -0
  38. package/bundle/db-infotext.js +1 -0
  39. package/bundle/db-input.d.ts +11 -0
  40. package/bundle/db-input.js +1 -0
  41. package/bundle/db-link.d.ts +11 -0
  42. package/bundle/db-link.js +1 -0
  43. package/bundle/db-navigation-item.d.ts +11 -0
  44. package/bundle/db-navigation-item.js +1 -0
  45. package/bundle/db-navigation.d.ts +11 -0
  46. package/bundle/db-navigation.js +1 -0
  47. package/bundle/db-notification.d.ts +11 -0
  48. package/bundle/db-notification.js +1 -0
  49. package/bundle/db-page.d.ts +11 -0
  50. package/bundle/db-page.js +1 -0
  51. package/bundle/db-popover.d.ts +11 -0
  52. package/bundle/db-popover.js +1 -0
  53. package/bundle/db-radio.d.ts +11 -0
  54. package/bundle/db-radio.js +1 -0
  55. package/bundle/db-section.d.ts +11 -0
  56. package/bundle/db-section.js +1 -0
  57. package/bundle/db-select.d.ts +11 -0
  58. package/bundle/db-select.js +1 -0
  59. package/bundle/db-stack.d.ts +11 -0
  60. package/bundle/db-stack.js +1 -0
  61. package/bundle/db-switch.d.ts +11 -0
  62. package/bundle/db-switch.js +1 -0
  63. package/bundle/db-tab-item.d.ts +11 -0
  64. package/bundle/db-tab-item.js +1 -0
  65. package/bundle/db-tab-list.d.ts +11 -0
  66. package/bundle/db-tab-list.js +1 -0
  67. package/bundle/db-tab-panel.d.ts +11 -0
  68. package/bundle/db-tab-panel.js +1 -0
  69. package/bundle/db-tabs.d.ts +11 -0
  70. package/bundle/db-tabs.js +1 -0
  71. package/bundle/db-tag.d.ts +11 -0
  72. package/bundle/db-tag.js +1 -0
  73. package/bundle/db-textarea.d.ts +11 -0
  74. package/bundle/db-textarea.js +1 -0
  75. package/bundle/db-tooltip.d.ts +11 -0
  76. package/bundle/db-tooltip.js +1 -0
  77. package/bundle/index.d.ts +47 -0
  78. package/bundle/index.js +1 -0
  79. package/bundle/p-4TaCoruo.js +1 -0
  80. package/bundle/p-4nwUOzw7.js +1 -0
  81. package/bundle/p-BJJFATCC.js +1 -0
  82. package/bundle/p-BdL-nI5y.js +1 -0
  83. package/bundle/p-BuBrj57D.js +1 -0
  84. package/bundle/p-CCbaTFJ9.js +1 -0
  85. package/bundle/p-CEiQBevg.js +1 -0
  86. package/bundle/p-CV8l9qaA.js +1 -0
  87. package/bundle/p-CmqAwQNR.js +1 -0
  88. package/bundle/p-D4Ym01qf.js +1 -0
  89. package/bundle/p-DE_eDJiD.js +1 -0
  90. package/bundle/p-DOPXnIzL.js +1 -0
  91. package/bundle/p-DS39nEhJ.js +1 -0
  92. package/bundle/p-DVYa1bHg.js +1 -0
  93. package/bundle/p-DwwxAylo.js +1 -0
  94. package/bundle/p-QNp8H1KD.js +1 -0
  95. package/bundle/p-_2t1bnPD.js +1 -0
  96. package/bundle/p-bzxfqhtq.js +1 -0
  97. package/bundle/p-e18AQLns.js +1 -0
  98. package/dist/cjs/db-accordion-item.cjs.entry.js +26 -4
  99. package/dist/cjs/db-accordion.cjs.entry.js +10 -3
  100. package/dist/cjs/db-badge.cjs.entry.js +10 -3
  101. package/dist/cjs/db-brand.cjs.entry.js +10 -3
  102. package/dist/cjs/db-button.cjs.entry.js +10 -3
  103. package/dist/cjs/db-card.cjs.entry.js +10 -3
  104. package/dist/cjs/db-checkbox.cjs.entry.js +10 -3
  105. package/dist/cjs/db-custom-button.cjs.entry.js +10 -3
  106. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +45 -10
  107. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +10 -3
  108. package/dist/cjs/db-custom-select.cjs.entry.js +13 -6
  109. package/dist/cjs/db-divider.cjs.entry.js +9 -2
  110. package/dist/cjs/db-drawer.cjs.entry.js +14 -7
  111. package/dist/cjs/db-header.cjs.entry.js +10 -3
  112. package/dist/cjs/db-icon.cjs.entry.js +10 -3
  113. package/dist/cjs/db-infotext.cjs.entry.js +10 -3
  114. package/dist/cjs/db-link.cjs.entry.js +10 -3
  115. package/dist/cjs/db-navigation-item.cjs.entry.js +11 -3
  116. package/dist/cjs/db-navigation.cjs.entry.js +10 -3
  117. package/dist/cjs/db-notification.cjs.entry.js +10 -3
  118. package/dist/cjs/db-page.cjs.entry.js +10 -3
  119. package/dist/cjs/db-popover.cjs.entry.js +10 -3
  120. package/dist/cjs/db-radio.cjs.entry.js +10 -3
  121. package/dist/cjs/db-section.cjs.entry.js +10 -3
  122. package/dist/cjs/db-select.cjs.entry.js +10 -3
  123. package/dist/cjs/db-stack.cjs.entry.js +10 -3
  124. package/dist/cjs/db-switch.cjs.entry.js +10 -3
  125. package/dist/cjs/db-tab-item_3.cjs.entry.js +28 -7
  126. package/dist/cjs/db-tabs.cjs.entry.js +10 -3
  127. package/dist/cjs/db-textarea.cjs.entry.js +10 -3
  128. package/dist/cjs/db-tooltip.cjs.entry.js +10 -3
  129. package/dist/cjs/db-ux.cjs.js +2 -2
  130. package/dist/cjs/{index-BoC-BWt4.js → index-DLuhzJ0p.js} +1 -0
  131. package/dist/cjs/loader.cjs.js +2 -2
  132. package/dist/collection/components/accordion/accordion.js +9 -2
  133. package/dist/collection/components/accordion-item/accordion-item.js +53 -5
  134. package/dist/collection/components/badge/badge.js +9 -2
  135. package/dist/collection/components/brand/brand.js +9 -2
  136. package/dist/collection/components/button/button.js +10 -3
  137. package/dist/collection/components/card/card.js +10 -3
  138. package/dist/collection/components/checkbox/checkbox.js +10 -3
  139. package/dist/collection/components/custom-button/custom-button.js +9 -2
  140. package/dist/collection/components/custom-select/custom-select.js +13 -6
  141. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +9 -2
  142. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +9 -2
  143. package/dist/collection/components/custom-select-list/custom-select-list.js +9 -2
  144. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +9 -2
  145. package/dist/collection/components/divider/divider.js +8 -1
  146. package/dist/collection/components/drawer/drawer.js +15 -8
  147. package/dist/collection/components/header/header.js +20 -13
  148. package/dist/collection/components/icon/icon.js +9 -2
  149. package/dist/collection/components/infotext/infotext.js +9 -2
  150. package/dist/collection/components/input/input.js +10 -3
  151. package/dist/collection/components/link/link.js +9 -2
  152. package/dist/collection/components/navigation/navigation.js +9 -2
  153. package/dist/collection/components/navigation-item/navigation-item.js +37 -3
  154. package/dist/collection/components/notification/notification.js +10 -3
  155. package/dist/collection/components/page/page.js +9 -2
  156. package/dist/collection/components/popover/popover.js +9 -2
  157. package/dist/collection/components/radio/radio.js +10 -3
  158. package/dist/collection/components/section/section.js +9 -2
  159. package/dist/collection/components/select/select.js +10 -3
  160. package/dist/collection/components/stack/stack.js +9 -2
  161. package/dist/collection/components/switch/switch.js +10 -3
  162. package/dist/collection/components/tab-item/tab-item.js +10 -3
  163. package/dist/collection/components/tab-list/tab-list.js +9 -2
  164. package/dist/collection/components/tab-panel/tab-panel.js +9 -2
  165. package/dist/collection/components/tabs/tabs.js +10 -3
  166. package/dist/collection/components/tag/tag.js +10 -3
  167. package/dist/collection/components/textarea/textarea.js +10 -3
  168. package/dist/collection/components/tooltip/tooltip.js +9 -2
  169. package/dist/custom-elements.json +2276 -36
  170. package/dist/db-ux/db-ux.esm.js +1 -1
  171. package/dist/db-ux/p-0ae85978.entry.js +1 -0
  172. package/dist/db-ux/p-13afb969.entry.js +1 -0
  173. package/dist/db-ux/p-174d2486.entry.js +1 -0
  174. package/dist/db-ux/p-28c257d5.entry.js +1 -0
  175. package/dist/db-ux/p-293510ca.entry.js +1 -0
  176. package/dist/db-ux/p-331ad11c.entry.js +1 -0
  177. package/dist/db-ux/p-339a6ca0.entry.js +1 -0
  178. package/dist/db-ux/p-34e21986.entry.js +1 -0
  179. package/dist/db-ux/p-368d25ab.entry.js +1 -0
  180. package/dist/db-ux/p-4580938f.entry.js +1 -0
  181. package/dist/db-ux/p-47910fdc.entry.js +1 -0
  182. package/dist/db-ux/p-5d2e2a8d.entry.js +1 -0
  183. package/dist/db-ux/p-691ae341.entry.js +1 -0
  184. package/dist/db-ux/p-7c58337d.entry.js +1 -0
  185. package/dist/db-ux/p-7f4d00df.entry.js +1 -0
  186. package/dist/db-ux/p-9712c9c9.entry.js +1 -0
  187. package/dist/db-ux/p-9b907b56.entry.js +1 -0
  188. package/dist/db-ux/p-9c3ff50e.entry.js +1 -0
  189. package/dist/db-ux/p-Cr2cgn5B.js +2 -0
  190. package/dist/db-ux/p-a56886ea.entry.js +1 -0
  191. package/dist/db-ux/p-a617da42.entry.js +1 -0
  192. package/dist/db-ux/p-aad0c4ef.entry.js +1 -0
  193. package/dist/db-ux/p-ae3183f0.entry.js +1 -0
  194. package/dist/db-ux/p-ae457f95.entry.js +1 -0
  195. package/dist/db-ux/p-b1e7ba0f.entry.js +1 -0
  196. package/dist/db-ux/p-cac5b161.entry.js +1 -0
  197. package/dist/db-ux/p-dcf02351.entry.js +1 -0
  198. package/dist/db-ux/p-e46dc907.entry.js +1 -0
  199. package/dist/db-ux/p-f27c6655.entry.js +1 -0
  200. package/dist/db-ux/p-f583f756.entry.js +1 -0
  201. package/dist/db-ux/p-f65e1db8.entry.js +1 -0
  202. package/dist/db-ux/p-fe5d3eb6.entry.js +1 -0
  203. package/dist/esm/db-accordion-item.entry.js +27 -5
  204. package/dist/esm/db-accordion.entry.js +10 -3
  205. package/dist/esm/db-badge.entry.js +10 -3
  206. package/dist/esm/db-brand.entry.js +10 -3
  207. package/dist/esm/db-button.entry.js +10 -3
  208. package/dist/esm/db-card.entry.js +10 -3
  209. package/dist/esm/db-checkbox.entry.js +10 -3
  210. package/dist/esm/db-custom-button.entry.js +10 -3
  211. package/dist/esm/db-custom-select-dropdown_5.entry.js +45 -10
  212. package/dist/esm/db-custom-select-form-field.entry.js +10 -3
  213. package/dist/esm/db-custom-select.entry.js +13 -6
  214. package/dist/esm/db-divider.entry.js +9 -2
  215. package/dist/esm/db-drawer.entry.js +15 -8
  216. package/dist/esm/db-header.entry.js +10 -3
  217. package/dist/esm/db-icon.entry.js +10 -3
  218. package/dist/esm/db-infotext.entry.js +10 -3
  219. package/dist/esm/db-link.entry.js +10 -3
  220. package/dist/esm/db-navigation-item.entry.js +11 -3
  221. package/dist/esm/db-navigation.entry.js +10 -3
  222. package/dist/esm/db-notification.entry.js +10 -3
  223. package/dist/esm/db-page.entry.js +10 -3
  224. package/dist/esm/db-popover.entry.js +10 -3
  225. package/dist/esm/db-radio.entry.js +10 -3
  226. package/dist/esm/db-section.entry.js +10 -3
  227. package/dist/esm/db-select.entry.js +10 -3
  228. package/dist/esm/db-stack.entry.js +10 -3
  229. package/dist/esm/db-switch.entry.js +10 -3
  230. package/dist/esm/db-tab-item_3.entry.js +28 -7
  231. package/dist/esm/db-tabs.entry.js +10 -3
  232. package/dist/esm/db-textarea.entry.js +10 -3
  233. package/dist/esm/db-tooltip.entry.js +10 -3
  234. package/dist/esm/db-ux.js +3 -3
  235. package/dist/esm/{index-K4o-AcjZ.js → index-Cr2cgn5B.js} +1 -1
  236. package/dist/esm/loader.js +3 -3
  237. package/dist/types/components/accordion/accordion.d.ts +1 -0
  238. package/dist/types/components/accordion-item/accordion-item.d.ts +4 -0
  239. package/dist/types/components/accordion-item/model.d.ts +4 -0
  240. package/dist/types/components/badge/badge.d.ts +1 -0
  241. package/dist/types/components/brand/brand.d.ts +1 -0
  242. package/dist/types/components/button/button.d.ts +1 -0
  243. package/dist/types/components/card/card.d.ts +1 -0
  244. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  245. package/dist/types/components/custom-button/custom-button.d.ts +1 -0
  246. package/dist/types/components/custom-select/custom-select.d.ts +1 -0
  247. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
  248. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
  249. package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
  250. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
  251. package/dist/types/components/divider/divider.d.ts +1 -0
  252. package/dist/types/components/drawer/drawer.d.ts +1 -0
  253. package/dist/types/components/header/header.d.ts +3 -2
  254. package/dist/types/components/icon/icon.d.ts +1 -0
  255. package/dist/types/components/infotext/infotext.d.ts +1 -0
  256. package/dist/types/components/input/input.d.ts +1 -0
  257. package/dist/types/components/link/link.d.ts +1 -0
  258. package/dist/types/components/navigation/navigation.d.ts +1 -0
  259. package/dist/types/components/navigation-item/model.d.ts +4 -0
  260. package/dist/types/components/navigation-item/navigation-item.d.ts +2 -0
  261. package/dist/types/components/notification/notification.d.ts +1 -0
  262. package/dist/types/components/page/page.d.ts +1 -0
  263. package/dist/types/components/popover/popover.d.ts +1 -0
  264. package/dist/types/components/radio/radio.d.ts +1 -0
  265. package/dist/types/components/section/section.d.ts +1 -0
  266. package/dist/types/components/select/select.d.ts +1 -0
  267. package/dist/types/components/stack/stack.d.ts +1 -0
  268. package/dist/types/components/switch/switch.d.ts +1 -0
  269. package/dist/types/components/tab-item/tab-item.d.ts +1 -0
  270. package/dist/types/components/tab-list/tab-list.d.ts +1 -0
  271. package/dist/types/components/tab-panel/tab-panel.d.ts +1 -0
  272. package/dist/types/components/tabs/tabs.d.ts +1 -0
  273. package/dist/types/components/tag/tag.d.ts +1 -0
  274. package/dist/types/components/textarea/textarea.d.ts +1 -0
  275. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  276. package/dist/types/components.d.ts +7 -1
  277. package/dist/types/shared/figma.d.ts +12 -6
  278. package/dist/vscode.html-custom-data.json +16 -6
  279. package/dist/web-types.json +1032 -248
  280. package/package.json +15 -9
  281. package/dist/db-ux/p-1b5d76a8.entry.js +0 -1
  282. package/dist/db-ux/p-296f989b.entry.js +0 -1
  283. package/dist/db-ux/p-3ae13ff1.entry.js +0 -1
  284. package/dist/db-ux/p-43f94079.entry.js +0 -1
  285. package/dist/db-ux/p-54508bad.entry.js +0 -1
  286. package/dist/db-ux/p-55e8b0b4.entry.js +0 -1
  287. package/dist/db-ux/p-69a59559.entry.js +0 -1
  288. package/dist/db-ux/p-6e7126c6.entry.js +0 -1
  289. package/dist/db-ux/p-7bed4611.entry.js +0 -1
  290. package/dist/db-ux/p-8ce816c0.entry.js +0 -1
  291. package/dist/db-ux/p-8e080864.entry.js +0 -1
  292. package/dist/db-ux/p-K4o-AcjZ.js +0 -2
  293. package/dist/db-ux/p-a0eccc08.entry.js +0 -1
  294. package/dist/db-ux/p-a7c6ec23.entry.js +0 -1
  295. package/dist/db-ux/p-a82c9875.entry.js +0 -1
  296. package/dist/db-ux/p-ae445d5d.entry.js +0 -1
  297. package/dist/db-ux/p-b33abf8d.entry.js +0 -1
  298. package/dist/db-ux/p-b8ab2bd4.entry.js +0 -1
  299. package/dist/db-ux/p-bb7c59d2.entry.js +0 -1
  300. package/dist/db-ux/p-bc510135.entry.js +0 -1
  301. package/dist/db-ux/p-c85d4be6.entry.js +0 -1
  302. package/dist/db-ux/p-d206ac6f.entry.js +0 -1
  303. package/dist/db-ux/p-e22b3725.entry.js +0 -1
  304. package/dist/db-ux/p-e432c81f.entry.js +0 -1
  305. package/dist/db-ux/p-e64606e2.entry.js +0 -1
  306. package/dist/db-ux/p-e8ee154f.entry.js +0 -1
  307. package/dist/db-ux/p-efb9d9bc.entry.js +0 -1
  308. package/dist/db-ux/p-f35229a1.entry.js +0 -1
  309. package/dist/db-ux/p-f582c886.entry.js +0 -1
  310. package/dist/db-ux/p-f6be9a48.entry.js +0 -1
  311. package/dist/db-ux/p-fb39506f.entry.js +0 -1
  312. package/dist/db-ux/p-fb9500ba.entry.js +0 -1
@@ -42,13 +42,19 @@ export class DBLink {
42
42
  }
43
43
  }
44
44
  componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
45
51
  this.enableAttributePassing(this._ref, "db-link");
46
52
  }
47
53
  render() {
48
54
  var _a, _b, _c, _d;
49
- return (h("a", { key: '1748005b97867c678a3ea09072eeef7518a0170f', class: cls("db-link", this.className), ref: (el) => {
55
+ return (h("a", { key: '5dd3f3df5614e0e717feadc833d8fe2fe8825479', class: cls("db-link", this.className), ref: (el) => {
50
56
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : null, h("slot", { key: '9912370e0c8ba33af3ee8a7644e77f21335bddca' })));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : null, h("slot", { key: 'c5dae4b61e3829e803a2ff89cfd0942cc4d6577d' })));
52
58
  }
53
59
  static get is() { return "db-link"; }
54
60
  static get properties() {
@@ -495,4 +501,5 @@ export class DBLink {
495
501
  }
496
502
  };
497
503
  }
504
+ static get elementRef() { return "rootElement"; }
498
505
  }
@@ -42,13 +42,19 @@ export class DBNavigation {
42
42
  }
43
43
  }
44
44
  componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
45
51
  this.enableAttributePassing(this._ref, "db-navigation");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("nav", { key: 'e2cf893f68f07f22c5df6828e136880bdafcc8ab', class: cls("db-navigation", this.className), ref: (el) => {
55
+ return (h("nav", { key: '33d5425a509a5d224245fcde89b66bb129d3fb57', class: cls("db-navigation", this.className), ref: (el) => {
50
56
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: 'cb715cb4c0c6ec6b74519475c5e05d5148af43a1' }, h("slot", { key: 'b571e5af2b79d9d0bbfd499b0fcb9f64a885ab54' }))));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '796fbbd89657a52bbd7e932efe96ff62726bf5ea' }, h("slot", { key: 'df8847f6522250c540acc1154201d1c6bfbbce07' }))));
52
58
  }
53
59
  static get is() { return "db-navigation"; }
54
60
  static get properties() {
@@ -131,4 +137,5 @@ export class DBNavigation {
131
137
  }
132
138
  };
133
139
  }
140
+ static get elementRef() { return "rootElement"; }
134
141
  }
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_BACK } from "../../shared/constants";
2
2
  import { cls, delay, getBoolean, getBooleanAsString, uuid } from "../../utils";
3
3
  import { NavigationItemSafeTriangle } from "../../utils/navigation";
4
- import { h, Fragment, } from "@stencil/core";
4
+ import { h, Fragment } from "@stencil/core";
5
5
  /**
6
6
  * @slot children - This is a default/unnamed slot
7
7
  * @slot subNavigation - TODO: Add description for slotSubNavigation
@@ -105,6 +105,12 @@ export class DBNavigationItem {
105
105
  }
106
106
  componentDidLoad() {
107
107
  var _a;
108
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
109
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
110
+ if (connectedElement) {
111
+ connectedElement.remove();
112
+ }
113
+ }
108
114
  this.enableAttributePassing(this._ref, "db-navigation-item");
109
115
  this.initialized = true;
110
116
  const subNavId = `sub-nav-${(_a = this.id) !== null && _a !== void 0 ? _a : uuid()}`;
@@ -115,9 +121,10 @@ export class DBNavigationItem {
115
121
  }
116
122
  render() {
117
123
  var _a, _b, _c;
118
- return (h("li", { key: '445ddbc43af3b8ddf2e43614c7bbc8ad4990c125', class: cls("db-navigation-item", this.className), ref: (el) => {
124
+ return (h("li", { key: '555c0472fdd1d6888dc4a0b699fc85bb21e73199', class: cls("db-navigation-item", this.className), ref: (el) => {
119
125
  this._ref = el;
120
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", id: this.subNavigationToggleId, "aria-haspopup": this.hasAreaPopup ? "true" : undefined, "aria-expanded": this.isSubNavigationExpanded, "aria-controls": this.subNavigationId, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", id: this.subNavigationId, "aria-labelledby": this.subNavigationToggleId, "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
126
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !getBoolean(this.hideSubNavigation, "hideSubNavigation") &&
127
+ this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", id: this.subNavigationToggleId, "aria-haspopup": this.hasAreaPopup ? "true" : undefined, "aria-expanded": this.isSubNavigationExpanded, "aria-controls": this.subNavigationId, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", { name: "expandButton" })), h("menu", { class: "db-sub-navigation", id: this.subNavigationId, "aria-labelledby": this.subNavigationToggleId, "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : this.text ? (this.text) : (h("slot", null))));
121
128
  }
122
129
  static get is() { return "db-navigation-item"; }
123
130
  static get properties() {
@@ -380,6 +387,32 @@ export class DBNavigationItem {
380
387
  "reflect": false,
381
388
  "attribute": "disabled"
382
389
  },
390
+ "hideSubNavigation": {
391
+ "type": "any",
392
+ "mutable": false,
393
+ "complexType": {
394
+ "original": "DBNavigationItemProps[\"hideSubNavigation\"]",
395
+ "resolved": "boolean | string",
396
+ "references": {
397
+ "DBNavigationItemProps": {
398
+ "location": "import",
399
+ "path": "./model",
400
+ "id": "src/components/navigation-item/model.ts::DBNavigationItemProps",
401
+ "referenceLocation": "DBNavigationItemProps"
402
+ }
403
+ }
404
+ },
405
+ "required": false,
406
+ "optional": false,
407
+ "docs": {
408
+ "tags": [],
409
+ "text": ""
410
+ },
411
+ "getter": false,
412
+ "setter": false,
413
+ "reflect": false,
414
+ "attribute": "hide-sub-navigation"
415
+ },
383
416
  "text": {
384
417
  "type": "string",
385
418
  "mutable": false,
@@ -490,6 +523,7 @@ export class DBNavigationItem {
490
523
  }
491
524
  }];
492
525
  }
526
+ static get elementRef() { return "rootElement"; }
493
527
  static get watchers() {
494
528
  return [{
495
529
  "propName": "subNavigationExpanded",
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants";
2
2
  import { cls, getBoolean, getBooleanAsString, getNotificationRole, stringPropVisible, } from "../../utils";
3
- import { h, } from "@stencil/core";
3
+ import { h } from "@stencil/core";
4
4
  /**
5
5
  * @slot children - This is a default/unnamed slot
6
6
  * @slot image - TODO: Add description for slotImage
@@ -52,17 +52,23 @@ export class DBNotification {
52
52
  }
53
53
  }
54
54
  componentDidLoad() {
55
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
56
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
57
+ if (connectedElement) {
58
+ connectedElement.remove();
59
+ }
60
+ }
55
61
  this.enableAttributePassing(this._ref, "db-notification");
56
62
  }
57
63
  render() {
58
64
  var _a, _b, _c;
59
- return (h("div", { key: 'd7087027be76900f33941e4680afa30f8b008985', class: cls("db-notification", this.className), ref: (el) => {
65
+ return (h("div", { key: '80b4682644b5cae7f09842e8683a9445f782055b', class: cls("db-notification", this.className), ref: (el) => {
60
66
  this._ref = el;
61
67
  }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: getNotificationRole({
62
68
  semantic: this.semantic,
63
69
  role: this.role,
64
70
  ariaLive: this.ariaLive,
65
- }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '014b063b231b29070ae428befe3fa5703e1a763a', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", { "data-area": "head" }, this.headline)) : null, h("div", { key: 'a6b0eb3a228d5788425916888d33b8425c261a47', "data-area": "content" }, this.text ? this.text : null, h("slot", { key: 'da393b44aa81d021b12053d637cbdd5c6586f548' })), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("time", { "data-area": "timestamp", dateTime: this.timestampDatetime }, this.timestamp)) : null, h("slot", { key: '6d7c1d9da27fddd2ca59d50f00628d6aaf4e4c09', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
71
+ }), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '4fc52fd9fff6357307c4bdc102c03082688b44cf', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", { "data-area": "head" }, this.headline)) : null, h("div", { key: '6d61a4b4966795950a3da5dba130734bd0bbb2d9', "data-area": "content" }, this.text ? this.text : null, h("slot", { key: 'f4ca4c620e00a203da07c3d0ce2974ade705f489' })), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("time", { "data-area": "timestamp", dateTime: this.timestampDatetime }, this.timestamp)) : null, h("slot", { key: 'e1509dd146ff4288f96062e6286b47b495b388dc', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
66
72
  }
67
73
  static get is() { return "db-notification"; }
68
74
  static get properties() {
@@ -579,4 +585,5 @@ export class DBNotification {
579
585
  }
580
586
  }];
581
587
  }
588
+ static get elementRef() { return "rootElement"; }
582
589
  }
@@ -46,6 +46,12 @@ export class DBPage {
46
46
  }
47
47
  }
48
48
  componentDidLoad() {
49
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
50
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
51
+ if (connectedElement) {
52
+ connectedElement.remove();
53
+ }
54
+ }
49
55
  this.enableAttributePassing(this._ref, "db-page");
50
56
  this.fontsLoaded = !this.fadeIn;
51
57
  if (document && this.fadeIn) {
@@ -66,9 +72,9 @@ export class DBPage {
66
72
  }
67
73
  render() {
68
74
  var _a, _b;
69
- return (h("div", { key: 'b0ddc76aaed427b7c203d76bbb5b09be304b8134', class: cls("db-page", this.className), ref: (el) => {
75
+ return (h("div", { key: 'ff82686603b48757d15136f99ffee2e8261a0868', class: cls("db-page", this.className), ref: (el) => {
70
76
  this._ref = el;
71
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '6915333868fc61aaf327ae43fe6f967706972032', name: "header" }), h("main", { key: '20588c0501715204c8a87cff378ba7994caae76c', class: cls("db-main", this.mainClass) }, h("slot", { key: '9a52cdaf9c2673630855a455a101f75f065cbdd8' })), h("slot", { key: 'ff8faa06197c83675bf81d18b34d0db9019a664f', name: "footer" })));
77
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: 'b545b6a529c6502b6d9acaf4349056f9b191b47f', name: "header" }), h("main", { key: '67fe344765eb3dabbb1e6882e653142522ba7e20', class: cls("db-main", this.mainClass) }, h("slot", { key: '5ab992699f2db9d811124d9ad0955e94c816896a' })), h("slot", { key: '2c0e00536dcac7decddc76aacc13b58989b02464', name: "footer" })));
72
78
  }
73
79
  static get is() { return "db-page"; }
74
80
  static get properties() {
@@ -260,4 +266,5 @@ export class DBPage {
260
266
  "fontsLoaded": {}
261
267
  };
262
268
  }
269
+ static get elementRef() { return "rootElement"; }
263
270
  }
@@ -163,6 +163,12 @@ export class DBPopover {
163
163
  this.watch1Fn();
164
164
  }
165
165
  componentDidLoad() {
166
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
167
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
168
+ if (connectedElement) {
169
+ connectedElement.remove();
170
+ }
171
+ }
166
172
  this.enableAttributePassing(this._ref, "db-popover");
167
173
  this.initialized = true;
168
174
  this.watch0Fn();
@@ -170,9 +176,9 @@ export class DBPopover {
170
176
  }
171
177
  render() {
172
178
  var _a, _b, _c;
173
- return (h("div", { key: '390b82916a04a39f602efb0a05d8702d51da4526', class: cls("db-popover", this.className), ref: (el) => {
179
+ return (h("div", { key: '5695f78c16f768ca34b16c05167518c2a2e26c35', class: cls("db-popover", this.className), ref: (el) => {
174
180
  this._ref = el;
175
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '17b12e9a5be220fedfa3ebe8f2bbb47ad1f1fb2f', name: "trigger" }), h("article", { key: '9b1cf4ce7cc66f558dd87b5cc6e3ca9a007bf1af', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '2e3a7edf39f6027ea34791b1b88668c081f03ba3' }))));
181
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'e765f506df650f9105ff6efb79c2d6fe36a48b91', name: "trigger" }), h("article", { key: '072c8716f82a49d319794e521f467d494fe4b313', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '3317509fd5cfbc56f9e0921f91e34520d9f93c87' }))));
176
182
  }
177
183
  static get is() { return "db-popover"; }
178
184
  static get properties() {
@@ -445,6 +451,7 @@ export class DBPopover {
445
451
  "_observer": {}
446
452
  };
447
453
  }
454
+ static get elementRef() { return "rootElement"; }
448
455
  static get watchers() {
449
456
  return [{
450
457
  "propName": "_ref",
@@ -1,6 +1,6 @@
1
1
  import { cls, delay, getBoolean, getHideProp, uuid } from "../../utils";
2
2
  import { addResetEventListener, } from "../../utils/form-components";
3
- import { h, } from "@stencil/core";
3
+ import { h } from "@stencil/core";
4
4
  /**
5
5
  * @slot children - This is a default/unnamed slot
6
6
 
@@ -114,6 +114,12 @@ export class DBRadio {
114
114
  this.watch2Fn();
115
115
  }
116
116
  componentDidLoad() {
117
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
118
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
119
+ if (connectedElement) {
120
+ connectedElement.remove();
121
+ }
122
+ }
117
123
  this.enableAttributePassing(this._ref, "db-radio");
118
124
  this.initialized = true;
119
125
  this.resetIds();
@@ -126,9 +132,9 @@ export class DBRadio {
126
132
  (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
127
133
  }
128
134
  render() {
129
- return (h("label", { key: 'a2b7dddcac7e055e558436ed57c1c6997916a8c0', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: '02a94a4237ed5984ce14ab684d981e9676ad68e4', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
135
+ return (h("label", { key: '1ff5543af917149d3d1f51a2c67c7686b55f8d11', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: '3409b94c081b36bd60ba84f8e6a4064e43e2ad50', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
130
136
  this._ref = el;
131
- }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: '3b430b5725a3d8c27c71e4937e009bc9da2eb1ef' })));
137
+ }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : null, h("slot", { key: 'c9850bcf9efb2e272e6ae8cc83ab92d62e095094' })));
132
138
  }
133
139
  static get is() { return "db-radio"; }
134
140
  static get properties() {
@@ -541,6 +547,7 @@ export class DBRadio {
541
547
  }
542
548
  }];
543
549
  }
550
+ static get elementRef() { return "rootElement"; }
544
551
  static get watchers() {
545
552
  return [{
546
553
  "propName": "id",
@@ -42,13 +42,19 @@ export class DBSection {
42
42
  }
43
43
  }
44
44
  componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
45
51
  this.enableAttributePassing(this._ref, "db-section");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("section", { key: '8e4972331d6f10d78c705481dab9d7a7336bd5fd', class: cls("db-section", this.className), ref: (el) => {
55
+ return (h("section", { key: '03d6f7ed2eea5b1374d0f5be00d77e59897033ea', class: cls("db-section", this.className), ref: (el) => {
50
56
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: 'e495f7247f9da72811055148e4a0a73489a10516' })));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '55c388d7e65e9bd27dd229f01a3c162719b90df2' })));
52
58
  }
53
59
  static get is() { return "db-section"; }
54
60
  static get properties() {
@@ -183,4 +189,5 @@ export class DBSection {
183
189
  }
184
190
  };
185
191
  }
192
+ static get elementRef() { return "rootElement"; }
186
193
  }
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
2
2
  import { cls, delay, getBoolean, getBooleanAsString, getHideProp, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
3
3
  import { addValueResetEventListener, } from "../../utils/form-components";
4
- import { h, Fragment, } from "@stencil/core";
4
+ import { h, Fragment } from "@stencil/core";
5
5
  /**
6
6
  * @slot children - This is a default/unnamed slot
7
7
 
@@ -217,6 +217,12 @@ export class DBSelect {
217
217
  this.watch4Fn();
218
218
  }
219
219
  componentDidLoad() {
220
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
221
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
222
+ if (connectedElement) {
223
+ connectedElement.remove();
224
+ }
225
+ }
220
226
  this.enableAttributePassing(this._ref, "db-select");
221
227
  this.initialized = true;
222
228
  this.resetIds();
@@ -233,14 +239,14 @@ export class DBSelect {
233
239
  }
234
240
  render() {
235
241
  var _a, _b, _c, _d, _e, _f;
236
- return (h("div", { key: '447466cea315310bff6793d9357323b45d4db313', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: 'bc9ee1c59c21a1ec52dc96e1aecc9892ef5b29ac', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '10e6f2c0ebedb72cbbcae2e78133353bd646eee8', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
242
+ return (h("div", { key: '3dd83828aaa06217389cf635687da0070ae88f56', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '8fe580a4172003361a5c16551c4965882dbb3ce0', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '2f0ba052dafae5d44c27442eb4c27fa117c6ba76', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
237
243
  this._ref = el;
238
244
  }, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
239
245
  /* @ts-ignore */
240
246
  value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
241
247
  var _a;
242
248
  return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
243
- })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, 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: '186aaf564139c38963f7f448c15e8e1760e2b41c', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'c0fd12cd115acb62a4d3bf13dc8572b80c386d67', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
249
+ })) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, 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: '34ca1d025c67dc018375d56651a7f0ae1d2e245f', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '6f64314bcf457ddd86b3695e314125cca14d10d1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
244
250
  }
245
251
  static get is() { return "db-select"; }
246
252
  static get properties() {
@@ -1012,6 +1018,7 @@ export class DBSelect {
1012
1018
  }
1013
1019
  }];
1014
1020
  }
1021
+ static get elementRef() { return "rootElement"; }
1015
1022
  static get watchers() {
1016
1023
  return [{
1017
1024
  "propName": "id",
@@ -42,13 +42,19 @@ export class DBStack {
42
42
  }
43
43
  }
44
44
  componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
45
51
  this.enableAttributePassing(this._ref, "db-stack");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("div", { key: 'f439616a1745c8702c736c26a66e4714aaf1600c', class: cls("db-stack", this.className), ref: (el) => {
55
+ return (h("div", { key: '87f4f22cbfd4355da58ace757805c9e29758eb6d', class: cls("db-stack", this.className), ref: (el) => {
50
56
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap) }, h("slot", { key: '4af45aa4cfbd6749552219a765575c2852f50d8c' })));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap) }, h("slot", { key: '391ff9ee8a52408fa9830e0f5a30fd86a249a102' })));
52
58
  }
53
59
  static get is() { return "db-stack"; }
54
60
  static get properties() {
@@ -287,4 +293,5 @@ export class DBStack {
287
293
  }
288
294
  };
289
295
  }
296
+ static get elementRef() { return "rootElement"; }
290
297
  }
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
2
2
  import { cls, delay, getBoolean, getBooleanAsString, getHideProp, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
3
3
  import { addCheckedResetEventListener, } from "../../utils/form-components";
4
- import { h, } from "@stencil/core";
4
+ import { h } from "@stencil/core";
5
5
  /**
6
6
  * @slot children - This is a default/unnamed slot
7
7
 
@@ -170,6 +170,12 @@ export class DBSwitch {
170
170
  this.watch3Fn();
171
171
  }
172
172
  componentDidLoad() {
173
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
174
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
175
+ if (connectedElement) {
176
+ connectedElement.remove();
177
+ }
178
+ }
173
179
  this.enableAttributePassing(this._ref, "db-switch");
174
180
  this.resetIds();
175
181
  this.handleValidation();
@@ -185,9 +191,9 @@ export class DBSwitch {
185
191
  }
186
192
  render() {
187
193
  var _a, _b;
188
- return (h("div", { key: '16ac24d631269141f33f1b39599069ad2e017406', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: 'be173c17f4add60b39cc9330ddf1968f10398583', htmlFor: this._id }, h("input", { key: '93aba7e5ef958c1af292702c46503b57c8511109', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
194
+ return (h("div", { key: 'c82a033ffefd600a9c96ea487d9fd909ff1b72de', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: 'c1047871716d0d24f026c8ffaf37581a2b080375', htmlFor: this._id }, h("input", { key: '883712cbfdd95c525ea615270546e2127f9bdbf8', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
189
195
  this._ref = el;
190
- }, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, h("slot", { key: '35c866ff32882b21ab76d4db464674b688aa371f' })), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '2663da2147e782beb93274145056a32fcc91b7bb', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'a71eedca841f4d30e2844fa4904d8558a7dc1790', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
196
+ }, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : null, h("slot", { key: '106b299aca93a4e6498c74e7c43df87564122c40' })), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'e2848f2de604908a0e05fbb0cde3c77a36adcc4e', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '37bcc9cd24041762a62822d118803b0eef247f12', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
191
197
  }
192
198
  static get is() { return "db-switch"; }
193
199
  static get properties() {
@@ -850,6 +856,7 @@ export class DBSwitch {
850
856
  }
851
857
  }];
852
858
  }
859
+ static get elementRef() { return "rootElement"; }
853
860
  static get watchers() {
854
861
  return [{
855
862
  "propName": "id",
@@ -1,5 +1,5 @@
1
1
  import { cls, getBoolean, getBooleanAsString } from "../../utils";
2
- import { h, } from "@stencil/core";
2
+ import { h } from "@stencil/core";
3
3
  /**
4
4
  * @slot children - This is a default/unnamed slot
5
5
 
@@ -97,6 +97,12 @@ export class DBTabItem {
97
97
  this.watch1Fn();
98
98
  }
99
99
  componentDidLoad() {
100
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
101
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
102
+ if (connectedElement) {
103
+ connectedElement.remove();
104
+ }
105
+ }
100
106
  this.enableAttributePassing(this._ref, "db-tab-item");
101
107
  this.boundSetSelectedOnChange = this.setSelectedOnChange.bind(this);
102
108
  this.initialized = true;
@@ -113,9 +119,9 @@ export class DBTabItem {
113
119
  }
114
120
  render() {
115
121
  var _a, _b, _c, _d, _e, _f;
116
- return (h("li", { key: '5a67c1ada61e7ef397389486b04f4db9e157f08b', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: '45bb037d9acfb8d69fb953f2b84b513b57ac9f80', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-no-text": getBooleanAsString(this.noText) }, h("input", { key: '3183817d6b6028b40416d12eaa2de60e9e28a36e', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
122
+ return (h("li", { key: '8f237a10d09644e2bad44ff457e5ae7bb6ed80f3', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: '530c603c5927f732cc76920537fe169a15ebbd4c', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-no-text": getBooleanAsString(this.noText) }, h("input", { key: '8551abf9afc26bb0edfb9a8f94adb21f5c95bf4e', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
117
123
  this._ref = el;
118
- }, name: this._name, id: (_e = this.id) !== null && _e !== void 0 ? _e : (_f = this.propOverrides) === null || _f === void 0 ? void 0 : _f.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: 'a0126930f1705e33cc929b2fb8e7e92e811b8a16' }))));
124
+ }, name: this._name, id: (_e = this.id) !== null && _e !== void 0 ? _e : (_f = this.propOverrides) === null || _f === void 0 ? void 0 : _f.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '4f1f678c9edcef4f977f3677903b682f5bf723b4' }))));
119
125
  }
120
126
  static get is() { return "db-tab-item"; }
121
127
  static get properties() {
@@ -537,6 +543,7 @@ export class DBTabItem {
537
543
  }
538
544
  }];
539
545
  }
546
+ static get elementRef() { return "rootElement"; }
540
547
  static get watchers() {
541
548
  return [{
542
549
  "propName": "_ref",
@@ -42,13 +42,19 @@ export class DBTabList {
42
42
  }
43
43
  }
44
44
  componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
45
51
  this.enableAttributePassing(this._ref, "db-tab-list");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("div", { key: '106039ad39acd9349758b04b95fdf63f371bdfd8', class: cls("db-tab-list", this.className), ref: (el) => {
55
+ return (h("div", { key: 'ce54a7c3bef0090cf7aa0d6b11fedd6d3b4bbd07', class: cls("db-tab-list", this.className), ref: (el) => {
50
56
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: 'e65fa1a76b3bec154c44d3c861b38a4fc26ca1a5', role: "tablist" }, h("slot", { key: '9629b9adc5d33818001e7964d4bdbcaf16086fee' }))));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '8ac107177182afdde5163dee58917fa69b75e40c', role: "tablist" }, h("slot", { key: '0d53d4b529c439784d7c66894b967b41fb9eb38d' }))));
52
58
  }
53
59
  static get is() { return "db-tab-list"; }
54
60
  static get properties() {
@@ -131,4 +137,5 @@ export class DBTabList {
131
137
  }
132
138
  };
133
139
  }
140
+ static get elementRef() { return "rootElement"; }
134
141
  }
@@ -42,13 +42,19 @@ export class DBTabPanel {
42
42
  }
43
43
  }
44
44
  componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
45
51
  this.enableAttributePassing(this._ref, "db-tab-panel");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("section", { key: 'fda64a520ea6a82df55e61185716f9e2c511b935', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
55
+ return (h("section", { key: '86076593b5c38755ddd08bbb930bb8252b9e5e78', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
50
56
  this._ref = el;
51
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: 'f74577ac32a4ed2f463d9dd6114eec74935bd7dc' })));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: '5069f16c7266dd495e8f9fb03c3bb69546976842' })));
52
58
  }
53
59
  static get is() { return "db-tab-panel"; }
54
60
  static get properties() {
@@ -157,4 +163,5 @@ export class DBTabPanel {
157
163
  }
158
164
  };
159
165
  }
166
+ static get elementRef() { return "rootElement"; }
160
167
  }
@@ -1,5 +1,5 @@
1
1
  import { cls, uuid } from "../../utils";
2
- import { h, Fragment, } from "@stencil/core";
2
+ import { h, Fragment } from "@stencil/core";
3
3
  /**
4
4
  * @slot children - This is a default/unnamed slot
5
5
 
@@ -194,6 +194,12 @@ export class DBTabs {
194
194
  this.watch0Fn();
195
195
  }
196
196
  componentDidLoad() {
197
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
198
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
199
+ if (connectedElement) {
200
+ connectedElement.remove();
201
+ }
202
+ }
197
203
  this.enableAttributePassing(this._ref, "db-tabs");
198
204
  this._name = `tabs-${this.name || uuid()}`;
199
205
  this.initialized = true;
@@ -206,10 +212,10 @@ export class DBTabs {
206
212
  }
207
213
  render() {
208
214
  var _a, _b, _c, _d, _e, _f;
209
- return (h("div", { key: '8acc1ff6e9231d38b5760877c2d698e442b3efa2', class: cls("db-tabs", this.className), ref: (el) => {
215
+ return (h("div", { key: '71e69e614a98de1b0fe789b210815d03bcee6286', class: cls("db-tabs", this.className), ref: (el) => {
210
216
  this._ref = el;
211
217
  }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_c = this.alignment) !== null && _c !== void 0 ? _c : "start", "data-width": (_d = this.width) !== null && _d !== void 0 ? _d : "auto", onInput: (event) => this.handleChange(event), onChange: (event) => this.handleChange(event) }, this.showScrollLeft ? (h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (h(Fragment, null, h("db-tab-list", null, (_e = this.convertTabs()) === null || _e === void 0 ? void 0 : _e.map((tab, index) => (h("db-tab-item", { key: this.name + "tab-item" + index, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_f = this.convertTabs()) === null || _f === void 0 ? void 0 :
212
- _f.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '98d86feb33b7d73786eabd6aa6275103cac762ba' })));
218
+ _f.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '2e8a007adff7051a1266f88b95419a510ce7494a' })));
213
219
  }
214
220
  static get is() { return "db-tabs"; }
215
221
  static get properties() {
@@ -569,6 +575,7 @@ export class DBTabs {
569
575
  }
570
576
  }];
571
577
  }
578
+ static get elementRef() { return "rootElement"; }
572
579
  static get watchers() {
573
580
  return [{
574
581
  "propName": "_ref",