@db-ux/wc-core-components 4.9.0 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (347) hide show
  1. package/CHANGELOG.md +19 -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/model.d.ts +2 -2
  239. package/dist/types/components/accordion-item/accordion-item.d.ts +4 -0
  240. package/dist/types/components/accordion-item/model.d.ts +5 -1
  241. package/dist/types/components/badge/badge.d.ts +1 -0
  242. package/dist/types/components/badge/model.d.ts +1 -1
  243. package/dist/types/components/brand/brand.d.ts +1 -0
  244. package/dist/types/components/brand/model.d.ts +1 -1
  245. package/dist/types/components/button/button.d.ts +1 -0
  246. package/dist/types/components/button/model.d.ts +1 -1
  247. package/dist/types/components/card/card.d.ts +1 -0
  248. package/dist/types/components/card/model.d.ts +1 -1
  249. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  250. package/dist/types/components/checkbox/model.d.ts +1 -1
  251. package/dist/types/components/custom-button/custom-button.d.ts +1 -0
  252. package/dist/types/components/custom-button/model.d.ts +2 -2
  253. package/dist/types/components/custom-select/custom-select.d.ts +1 -0
  254. package/dist/types/components/custom-select/model.d.ts +4 -4
  255. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
  256. package/dist/types/components/custom-select-dropdown/model.d.ts +1 -1
  257. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
  258. package/dist/types/components/custom-select-form-field/model.d.ts +1 -1
  259. package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
  260. package/dist/types/components/custom-select-list/model.d.ts +1 -1
  261. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
  262. package/dist/types/components/custom-select-list-item/model.d.ts +1 -1
  263. package/dist/types/components/divider/divider.d.ts +1 -0
  264. package/dist/types/components/divider/model.d.ts +1 -1
  265. package/dist/types/components/drawer/drawer.d.ts +1 -0
  266. package/dist/types/components/drawer/model.d.ts +1 -1
  267. package/dist/types/components/header/header.d.ts +3 -2
  268. package/dist/types/components/header/model.d.ts +1 -1
  269. package/dist/types/components/icon/icon.d.ts +1 -0
  270. package/dist/types/components/icon/model.d.ts +1 -1
  271. package/dist/types/components/infotext/infotext.d.ts +1 -0
  272. package/dist/types/components/infotext/model.d.ts +1 -1
  273. package/dist/types/components/input/input.d.ts +1 -0
  274. package/dist/types/components/input/model.d.ts +1 -1
  275. package/dist/types/components/link/link.d.ts +1 -0
  276. package/dist/types/components/link/model.d.ts +1 -1
  277. package/dist/types/components/navigation/model.d.ts +1 -1
  278. package/dist/types/components/navigation/navigation.d.ts +1 -0
  279. package/dist/types/components/navigation-item/model.d.ts +6 -2
  280. package/dist/types/components/navigation-item/navigation-item.d.ts +2 -0
  281. package/dist/types/components/notification/model.d.ts +1 -1
  282. package/dist/types/components/notification/notification.d.ts +1 -0
  283. package/dist/types/components/page/model.d.ts +1 -1
  284. package/dist/types/components/page/page.d.ts +1 -0
  285. package/dist/types/components/popover/model.d.ts +1 -1
  286. package/dist/types/components/popover/popover.d.ts +1 -0
  287. package/dist/types/components/radio/model.d.ts +1 -1
  288. package/dist/types/components/radio/radio.d.ts +1 -0
  289. package/dist/types/components/section/model.d.ts +1 -1
  290. package/dist/types/components/section/section.d.ts +1 -0
  291. package/dist/types/components/select/model.d.ts +1 -1
  292. package/dist/types/components/select/select.d.ts +1 -0
  293. package/dist/types/components/stack/model.d.ts +1 -1
  294. package/dist/types/components/stack/stack.d.ts +1 -0
  295. package/dist/types/components/switch/model.d.ts +1 -1
  296. package/dist/types/components/switch/switch.d.ts +1 -0
  297. package/dist/types/components/tab-item/model.d.ts +1 -1
  298. package/dist/types/components/tab-item/tab-item.d.ts +1 -0
  299. package/dist/types/components/tab-list/model.d.ts +1 -1
  300. package/dist/types/components/tab-list/tab-list.d.ts +1 -0
  301. package/dist/types/components/tab-panel/model.d.ts +1 -1
  302. package/dist/types/components/tab-panel/tab-panel.d.ts +1 -0
  303. package/dist/types/components/tabs/model.d.ts +3 -3
  304. package/dist/types/components/tabs/tabs.d.ts +1 -0
  305. package/dist/types/components/tag/model.d.ts +1 -1
  306. package/dist/types/components/tag/tag.d.ts +1 -0
  307. package/dist/types/components/textarea/model.d.ts +1 -1
  308. package/dist/types/components/textarea/textarea.d.ts +1 -0
  309. package/dist/types/components/tooltip/model.d.ts +1 -1
  310. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  311. package/dist/types/components.d.ts +7 -1
  312. package/dist/types/shared/figma.d.ts +12 -6
  313. package/dist/vscode.html-custom-data.json +16 -6
  314. package/dist/web-types.json +1032 -248
  315. package/package.json +15 -9
  316. package/dist/db-ux/p-1b5d76a8.entry.js +0 -1
  317. package/dist/db-ux/p-296f989b.entry.js +0 -1
  318. package/dist/db-ux/p-3ae13ff1.entry.js +0 -1
  319. package/dist/db-ux/p-43f94079.entry.js +0 -1
  320. package/dist/db-ux/p-54508bad.entry.js +0 -1
  321. package/dist/db-ux/p-55e8b0b4.entry.js +0 -1
  322. package/dist/db-ux/p-69a59559.entry.js +0 -1
  323. package/dist/db-ux/p-6e7126c6.entry.js +0 -1
  324. package/dist/db-ux/p-7bed4611.entry.js +0 -1
  325. package/dist/db-ux/p-8ce816c0.entry.js +0 -1
  326. package/dist/db-ux/p-8e080864.entry.js +0 -1
  327. package/dist/db-ux/p-K4o-AcjZ.js +0 -2
  328. package/dist/db-ux/p-a0eccc08.entry.js +0 -1
  329. package/dist/db-ux/p-a7c6ec23.entry.js +0 -1
  330. package/dist/db-ux/p-a82c9875.entry.js +0 -1
  331. package/dist/db-ux/p-ae445d5d.entry.js +0 -1
  332. package/dist/db-ux/p-b33abf8d.entry.js +0 -1
  333. package/dist/db-ux/p-b8ab2bd4.entry.js +0 -1
  334. package/dist/db-ux/p-bb7c59d2.entry.js +0 -1
  335. package/dist/db-ux/p-bc510135.entry.js +0 -1
  336. package/dist/db-ux/p-c85d4be6.entry.js +0 -1
  337. package/dist/db-ux/p-d206ac6f.entry.js +0 -1
  338. package/dist/db-ux/p-e22b3725.entry.js +0 -1
  339. package/dist/db-ux/p-e432c81f.entry.js +0 -1
  340. package/dist/db-ux/p-e64606e2.entry.js +0 -1
  341. package/dist/db-ux/p-e8ee154f.entry.js +0 -1
  342. package/dist/db-ux/p-efb9d9bc.entry.js +0 -1
  343. package/dist/db-ux/p-f35229a1.entry.js +0 -1
  344. package/dist/db-ux/p-f582c886.entry.js +0 -1
  345. package/dist/db-ux/p-f6be9a48.entry.js +0 -1
  346. package/dist/db-ux/p-fb39506f.entry.js +0 -1
  347. package/dist/db-ux/p-fb9500ba.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_REMOVE } from "../../shared/constants";
2
2
  import { cls, getBooleanAsString } 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 content - TODO: Add description for slotContent
@@ -58,13 +58,19 @@ export class DBTag {
58
58
  }
59
59
  }
60
60
  componentDidLoad() {
61
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
62
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
63
+ if (connectedElement) {
64
+ connectedElement.remove();
65
+ }
66
+ }
61
67
  this.enableAttributePassing(this._ref, "db-tag");
62
68
  }
63
69
  render() {
64
70
  var _a, _b, _c;
65
- return (h("div", { key: '0f44c340afdd993c4f583c23087bf008cb64bb04', class: cls("db-tag", this.className), ref: (el) => {
71
+ return (h("div", { key: '85b02f290e8323ddd9a61ee5cf15893e7bc0cdab', class: cls("db-tag", this.className), ref: (el) => {
66
72
  this._ref = el;
67
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '9e4388656037b233763783ba6e771d30f8302f5c', name: "content" }), this.text ? this.text : null, h("slot", { key: 'e53a5fc3a2f9d5193a73f6c6256aac900df60c74' }), this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
73
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '3aefef41d0a30b8f979e43146936be56a1d9181b', name: "content" }), this.text ? this.text : null, h("slot", { key: 'e283aefd212ea8c7f7eab8da48ed19a7f4763e38' }), this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
68
74
  }
69
75
  static get is() { return "db-tag"; }
70
76
  static get properties() {
@@ -425,4 +431,5 @@ export class DBTag {
425
431
  }
426
432
  }];
427
433
  }
434
+ static get elementRef() { return "rootElement"; }
428
435
  }
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_ROWS, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
2
2
  import { cls, delay, getBoolean, getHideProp, getNumber, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
3
3
  import { addValueResetEventListener, } 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
 
@@ -182,6 +182,12 @@ export class DBTextarea {
182
182
  this.watch4Fn();
183
183
  }
184
184
  componentDidLoad() {
185
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
186
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
187
+ if (connectedElement) {
188
+ connectedElement.remove();
189
+ }
190
+ }
185
191
  this.enableAttributePassing(this._ref, "db-textarea");
186
192
  this.resetIds();
187
193
  this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
@@ -197,10 +203,10 @@ export class DBTextarea {
197
203
  }
198
204
  render() {
199
205
  var _a, _b, _c, _d, _e, _f;
200
- return (h("div", { key: '7d28f047cf8d4be83318ebf78434ef3451d74555', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '98f4ba8c559358f440a240d62aeb1c454b6969c2', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '1ecfda94ee9b9cdc8466d04012dec4976eb2b32a', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
206
+ return (h("div", { key: '011c369f6437bb150f6afb7534da123ed5987621', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '2ce564dca8898dedd7e666eb39f1b94226cc3547', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '8cafda914ea6b0f48fe096472e71fd89ee85ec23', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
201
207
  this._ref = el;
202
208
  }, id: this._id, "data-resize": this.resize, "data-hide-resizer": getHideProp((_b = this.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), readOnly: getBoolean(this.readOnly, "readOnly") ||
203
- getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), 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: '9e2a201ab9ce88d395fea65b1d3506d59c4c3be3', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '325d537f8952c134ad7d7aaa024035d86ca1decd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
209
+ getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), 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: '489ca97fb9dc385ec1483d47918025f6db999e01', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'c1aa196f836729f0b821f4b3f9300a924fd8e08c', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
204
210
  }
205
211
  static get is() { return "db-textarea"; }
206
212
  static get properties() {
@@ -1165,6 +1171,7 @@ export class DBTextarea {
1165
1171
  }
1166
1172
  }];
1167
1173
  }
1174
+ static get elementRef() { return "rootElement"; }
1168
1175
  static get watchers() {
1169
1176
  return [{
1170
1177
  "propName": "id",
@@ -150,6 +150,12 @@ export class DBTooltip {
150
150
  this.watch1Fn();
151
151
  }
152
152
  componentDidLoad() {
153
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
154
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
155
+ if (connectedElement) {
156
+ connectedElement.remove();
157
+ }
158
+ }
153
159
  this.enableAttributePassing(this._ref, "db-tooltip");
154
160
  this.resetIds();
155
161
  this.initialized = true;
@@ -158,9 +164,9 @@ export class DBTooltip {
158
164
  }
159
165
  render() {
160
166
  var _a, _b;
161
- return (h("i", { key: 'bce9e6803a50b743c959d8252b3c6fe7b5d89308', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
167
+ return (h("i", { key: 'baf376c4ee424f78a7e062b864586139846b2073', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
162
168
  this._ref = el;
163
- }, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: 'a081ede0d1ce27ae2f8104d7cbc04faa8923eed9' })));
169
+ }, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: '6ec094383bad1237ce6ae7d02a7a62cf5c8de19d' })));
164
170
  }
165
171
  static get is() { return "db-tooltip"; }
166
172
  static get properties() {
@@ -485,6 +491,7 @@ export class DBTooltip {
485
491
  "_observer": {}
486
492
  };
487
493
  }
494
+ static get elementRef() { return "rootElement"; }
488
495
  static get watchers() {
489
496
  return [{
490
497
  "propName": "id",