@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
@@ -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, 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
 
@@ -190,6 +190,12 @@ export class DBCheckbox {
190
190
  this.watch5Fn();
191
191
  }
192
192
  componentDidLoad() {
193
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
194
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
195
+ if (connectedElement) {
196
+ connectedElement.remove();
197
+ }
198
+ }
193
199
  this.enableAttributePassing(this._ref, "db-checkbox");
194
200
  this.initialized = true;
195
201
  this.resetIds();
@@ -207,9 +213,9 @@ export class DBCheckbox {
207
213
  }
208
214
  render() {
209
215
  var _a;
210
- return (h("div", { key: '4307b61065bb09633a48978283bfe5534126acea', class: cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '0aa7c1cb0b896790de944dabc35e10cd517806b5', htmlFor: this._id }, h("input", { key: '6bca474ad52dc47253c8cc0016aa6f3cff223ad8', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
216
+ return (h("div", { key: 'b4aa2acb183c25424a4c670c699410d7f8e67ad1', class: cls("db-checkbox", this.className), "data-size": this.size, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '549e995c2d8c8105d086ad957d0141d802aa3e55', htmlFor: this._id }, h("input", { key: 'e2454be60370d672b523d9fd2efb422a7072d763', type: "checkbox", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
211
217
  this._ref = el;
212
- }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, h("slot", { key: '12de0b3395173a0ce9f15cf1f8ed49007a721422' })), 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: 'af7347edcc4b3eeb57bdd87fe25cc1ca38a1779f', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '13ec5ad3bd9534eac4ea7d1310edc1e47fa5d382', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
218
+ }, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_a = this.ariaDescribedBy) !== null && _a !== void 0 ? _a : this._descByIds }), this.label ? this.label : null, h("slot", { key: 'ce083db15ea772a5dd3fdf5e6a7c815029922b13' })), 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: 'bde204976a10d8d7f54300c7b465a23e9492bcf3', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '7a8fe737edfae78c380f572b2cf5cec88fbd8edf', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
213
219
  }
214
220
  static get is() { return "db-checkbox"; }
215
221
  static get properties() {
@@ -795,6 +801,7 @@ export class DBCheckbox {
795
801
  }
796
802
  }];
797
803
  }
804
+ static get elementRef() { return "rootElement"; }
798
805
  static get watchers() {
799
806
  return [{
800
807
  "propName": "id",
@@ -42,13 +42,19 @@ export class DBCustomButton {
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-custom-button");
46
52
  }
47
53
  render() {
48
54
  var _a, _b, _c, _d;
49
- return (h("div", { key: 'a7c717751195403b664b07491a8301dc531779bd', class: cls("db-custom-button", this.className), ref: (el) => {
55
+ return (h("div", { key: 'ea6221c001dbf13b6e1d49cbf6b87b195c24a5d0', class: cls("db-custom-button", 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-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-show-icon": getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": getBooleanAsString(this.noText) }, h("slot", { key: '7d181ecb68722367d526634fe52afe164117894a' })));
57
+ }, id: (_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-show-icon": getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-icon-trailing": this.iconTrailing, "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-size": this.size, "data-width": this.width, "data-variant": this.variant, "data-no-text": getBooleanAsString(this.noText) }, h("slot", { key: '19220453bcb2323b8c540d60a1d12b85e0c07f4d' })));
52
58
  }
53
59
  static get is() { return "db-custom-button"; }
54
60
  static get properties() {
@@ -391,4 +397,5 @@ export class DBCustomButton {
391
397
  }
392
398
  };
393
399
  }
400
+ static get elementRef() { return "rootElement"; }
394
401
  }
@@ -4,7 +4,7 @@ import { DocumentClickListener } from "../../utils/document-click-listener";
4
4
  import { DocumentScrollListener } from "../../utils/document-scroll-listener";
5
5
  import { handleFixedDropdown } from "../../utils/floating-components";
6
6
  import { addResetEventListener, } from "../../utils/form-components";
7
- import { h, Fragment, } from "@stencil/core";
7
+ import { h, Fragment } from "@stencil/core";
8
8
  /**
9
9
  * @slot children - This is a default/unnamed slot
10
10
 
@@ -751,6 +751,12 @@ export class DBCustomSelect {
751
751
  this.watch18Fn();
752
752
  }
753
753
  componentDidLoad() {
754
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
755
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
756
+ if (connectedElement) {
757
+ connectedElement.remove();
758
+ }
759
+ }
754
760
  this.enableAttributePassing(this._ref, "db-custom-select");
755
761
  this.resetIds();
756
762
  this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
@@ -790,19 +796,19 @@ export class DBCustomSelect {
790
796
  }
791
797
  render() {
792
798
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
793
- return (h("div", { key: 'b69119f8c8ad43b30a3b6f2e3177ba283336645e', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
799
+ return (h("div", { key: '09c22c7eef838650142ba6cf5a9f7a5c04e45d53', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
794
800
  this._ref = el;
795
801
  }, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
796
802
  this.selectedType === "tag" &&
797
803
  this.multiple
798
804
  ? "above"
799
- : this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '6e31abcbad536b00f87b6c9a4a14826d085501ae', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '89d826932f87ea9d2621ed8baede4141d0406574', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
805
+ : this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '377317d94a5689926923ee92eb0399a6e0085177', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '016dc1cebfeb8e92a08286e445d2da2989e630d7', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
800
806
  this.selectRef = el;
801
807
  }, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
802
808
  ? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
803
- : null)), h("details", { key: '8b05f3d412957f1fe8d9d1e27b23890454ceff7c', ref: (el) => {
809
+ : null)), h("details", { key: 'eb36c96b7c443289a1464a4d25a7f189c852b7ab', ref: (el) => {
804
810
  this.detailsRef = el;
805
- }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: 'd05f5cae0ac171b8ed171819f3650064f30fef92' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
811
+ }, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '2ce1371b5683aa1162167a7e9dd9950e075920cf' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
806
812
  this.searchInputRef = el;
807
813
  }, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
808
814
  ? this._infoTextId
@@ -812,7 +818,7 @@ export class DBCustomSelect {
812
818
  this.selectAllRef = el;
813
819
  }, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
814
820
  ? this.getOptionLabel(option)
815
- : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '851b2e07be960638b4d62750e1cf920ba445fb3d', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '6d481a7727087375fc4d8faabd55a1817a735edf', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '5335f3e58d3a6b2f90353058552701c13b1e888b', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
821
+ : null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: 'ab092f47ad6734f696000a852fc8e3a825a6d054', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'c134d746d6e06109551880446ff27e791fc482b1', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'b5b1291d952eaea52a176a3b8c9d9ea7a0b57e34', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
816
822
  }
817
823
  static get is() { return "db-custom-select"; }
818
824
  static get properties() {
@@ -2181,6 +2187,7 @@ export class DBCustomSelect {
2181
2187
  }
2182
2188
  }];
2183
2189
  }
2190
+ static get elementRef() { return "rootElement"; }
2184
2191
  static get watchers() {
2185
2192
  return [{
2186
2193
  "propName": "id",
@@ -45,13 +45,19 @@ export class DBCustomSelectDropdown {
45
45
  }
46
46
  }
47
47
  componentDidLoad() {
48
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
49
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
50
+ if (connectedElement) {
51
+ connectedElement.remove();
52
+ }
53
+ }
48
54
  this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
49
55
  }
50
56
  render() {
51
57
  var _a, _b;
52
- return (h("article", { key: '666781dcaef33e70aeb2378c19dccf9e0502be81', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
58
+ return (h("article", { key: 'a2f23f8c268d6b06b03e58ca3abc998b7f741301', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
53
59
  this._ref = el;
54
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '2587222810ae1534d3c8070f1003820a22429ae9' })));
60
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: 'f2fd945d779fefe9d1b379d95d11c5ae60689818' })));
55
61
  }
56
62
  static get is() { return "db-custom-select-dropdown"; }
57
63
  static get properties() {
@@ -161,4 +167,5 @@ export class DBCustomSelectDropdown {
161
167
  }
162
168
  };
163
169
  }
170
+ static get elementRef() { return "rootElement"; }
164
171
  }
@@ -42,13 +42,19 @@ export class DBCustomSelectFormField {
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-custom-select-form-field");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("summary", { key: '6e319e52a2daf3966edf7d8ebc3febb10c8a8857', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
55
+ return (h("summary", { key: 'e438005a75d6d93c62b6e04bce4f99cee7f73619', class: cls("db-custom-select-form-field", 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("slot", { key: '05a393b0ff51cc37aff8d237b0a8101f4b352261' })));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '1dc82e35d01ac41cde18cb033d657ec7f53886b8' })));
52
58
  }
53
59
  static get is() { return "db-custom-select-form-field"; }
54
60
  static get properties() {
@@ -131,4 +137,5 @@ export class DBCustomSelectFormField {
131
137
  }
132
138
  };
133
139
  }
140
+ static get elementRef() { return "rootElement"; }
134
141
  }
@@ -42,13 +42,19 @@ export class DBCustomSelectList {
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-custom-select-list");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("div", { key: 'dbfa17aa3707db35d7b3c4b8bac3a4a8e45ea352', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
55
+ return (h("div", { key: 'f62ebf87384969fa7c299ed23062d15ac4d08e9d', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, 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: '241c4d3e9169ba9de06492c1e9bad11df103260a' }, h("slot", { key: 'dd407c533d531e58f4eed08895591898f1ec7621' }))));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: 'a6071f83a292171bc101a797adb98dc976a18e34' }, h("slot", { key: '6a18c02b91c91890a0d4b73e2b718c046b278f29' }))));
52
58
  }
53
59
  static get is() { return "db-custom-select-list"; }
54
60
  static get properties() {
@@ -183,4 +189,5 @@ export class DBCustomSelectList {
183
189
  }
184
190
  };
185
191
  }
192
+ static get elementRef() { return "rootElement"; }
186
193
  }
@@ -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
 
@@ -63,12 +63,18 @@ export class DBCustomSelectListItem {
63
63
  this.watch0Fn();
64
64
  }
65
65
  componentDidLoad() {
66
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
67
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
68
+ if (connectedElement) {
69
+ connectedElement.remove();
70
+ }
71
+ }
66
72
  this.enableAttributePassing(this._ref, "db-custom-select-list-item");
67
73
  this.watch0Fn();
68
74
  }
69
75
  render() {
70
76
  var _a, _b;
71
- return (h("li", { key: '6b727336eecb62e312f2cf7afc18686d1e590b61', class: cls("db-custom-select-list-item", this.className, {
77
+ return (h("li", { key: '67c52a98bf21203bd6f5f14617ec32d2e81f29e4', class: cls("db-custom-select-list-item", this.className, {
72
78
  "db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
73
79
  "db-radio": this.type !== "checkbox" && !this.isGroupTitle,
74
80
  }), ref: (el) => {
@@ -465,6 +471,7 @@ export class DBCustomSelectListItem {
465
471
  }
466
472
  }];
467
473
  }
474
+ static get elementRef() { return "rootElement"; }
468
475
  static get watchers() {
469
476
  return [{
470
477
  "propName": "isGroupTitle",
@@ -42,11 +42,17 @@ export class DBDivider {
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-divider");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("div", { key: '140776744080e88b5e9f008d06d7c6b4bde4394a', class: cls("db-divider", this.className), ref: (el) => {
55
+ return (h("div", { key: 'fff7e6137a97f6cc76eed42c2a5225348d0f78a0', class: cls("db-divider", this.className), ref: (el) => {
50
56
  this._ref = el;
51
57
  }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
52
58
  }
@@ -235,4 +241,5 @@ export class DBDivider {
235
241
  }
236
242
  };
237
243
  }
244
+ static get elementRef() { return "rootElement"; }
238
245
  }
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants";
2
- import { cls, delay, getBooleanAsString, isKeyboardEvent } from "../../utils";
3
- import { h, } from "@stencil/core";
2
+ import { cls, delay, getBoolean, getBooleanAsString, isKeyboardEvent, } from "../../utils";
3
+ import { h } from "@stencil/core";
4
4
  /**
5
5
  * @slot children - This is a default/unnamed slot
6
6
  * @slot drawerHeader - TODO: Add description for slotDrawerHeader
@@ -39,8 +39,8 @@ export class DBDrawer {
39
39
  }
40
40
  handleDialogOpen() {
41
41
  if (this._ref) {
42
- const open = Boolean(this.open);
43
- if (open && !this._ref.open) {
42
+ const dialogOpen = getBoolean(this.open, "open");
43
+ if (dialogOpen && !this._ref.open) {
44
44
  if (this.dialogContainerRef) {
45
45
  this.dialogContainerRef.removeAttribute("data-transition");
46
46
  }
@@ -59,7 +59,7 @@ export class DBDrawer {
59
59
  }
60
60
  }, 1);
61
61
  }
62
- if (!open && this._ref.open) {
62
+ if (!dialogOpen && this._ref.open) {
63
63
  if (this.dialogContainerRef) {
64
64
  this.dialogContainerRef.dataset["transition"] =
65
65
  "close";
@@ -126,6 +126,12 @@ export class DBDrawer {
126
126
  this.watch1Fn();
127
127
  }
128
128
  componentDidLoad() {
129
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
130
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
131
+ if (connectedElement) {
132
+ connectedElement.remove();
133
+ }
134
+ }
129
135
  this.enableAttributePassing(this._ref, "db-drawer");
130
136
  this.handleDialogOpen();
131
137
  this.initialized = true;
@@ -134,11 +140,11 @@ export class DBDrawer {
134
140
  }
135
141
  render() {
136
142
  var _a, _b, _c;
137
- return (h("dialog", { key: 'dd2236da621ecd6ce95effdd51af7d83e9d00cb4', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
143
+ return (h("dialog", { key: 'a09369527805c993297bc3d27cf1f03c5e06f232', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
138
144
  this._ref = el;
139
- }, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '9e30bd63a197f5b8b3797430c21cbe742a6a337a', class: cls("db-drawer-container", this.className), ref: (el) => {
145
+ }, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: 'cb35fccd92fcf6bab4d6027c29fc2ba0bb25e9ac', class: cls("db-drawer-container", this.className), ref: (el) => {
140
146
  this.dialogContainerRef = el;
141
- }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: 'd44ca5f31e6a42548a5b4066d3965e1c81ee11c6', class: "db-drawer-header" }, h("div", { key: '8f88f451fb176d926a6f2a0ded68232978971773', class: "db-drawer-header-text" }, h("slot", { key: 'ab8f36ee1c28b8c50034b81ed78aa91169e957b9', name: "drawerHeader" })), h("db-button", { key: '981fda2deb05c7fd6341b3d31cc81851bb8a19f4', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: 'd36dfd9fdc919f95d5319dbf67d9a08e17763da3', class: "db-drawer-content" }, h("slot", { key: '1ec21301aa84e9ba120d5a886cc45c37f2772e0f' })))));
147
+ }, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '20a175ba0707e3cc207e1e57dd925b8234b86877', class: "db-drawer-header" }, h("div", { key: 'd317b29ff0d704aa50b3fbd0a8c86b94f7ab1dfa', class: "db-drawer-header-text" }, h("slot", { key: '1456a65346ebd9d52dafe48022cc0b343216cc09', name: "drawerHeader" })), h("db-button", { key: '6741766807bb56a24ed7bb385240093a3a1e5f7f', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: 'dea536d8bd27dccdb7edd476defc68beed65254f', class: "db-drawer-content" }, h("slot", { key: 'bcb4ed27199eb79f9d6c13da82d7be87d2f5e54b' })))));
142
148
  }
143
149
  static get is() { return "db-drawer"; }
144
150
  static get properties() {
@@ -504,6 +510,7 @@ export class DBDrawer {
504
510
  }
505
511
  }];
506
512
  }
513
+ static get elementRef() { return "rootElement"; }
507
514
  static get watchers() {
508
515
  return [{
509
516
  "propName": "open",
@@ -1,13 +1,13 @@
1
1
  import { DEFAULT_BURGER_MENU } from "../../shared/constants";
2
2
  import { addAttributeToChildren, cls, getBoolean } from "../../utils";
3
3
  import { isEventTargetNavigationItem } from "../../utils/navigation";
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
  * @slot metaNavigation - TODO: Add description for slotMetaNavigation
8
- * @slot secondaryAction - TODO: Add description for slotSecondaryAction
9
8
  * @slot brand - TODO: Add description for slotBrand
10
9
  * @slot primaryAction - TODO: Add description for slotPrimaryAction
10
+ * @slot secondaryAction - TODO: Add description for slotSecondaryAction
11
11
  */
12
12
  export class DBHeader {
13
13
  constructor() {
@@ -79,15 +79,21 @@ export class DBHeader {
79
79
  this.watch0Fn();
80
80
  }
81
81
  componentDidLoad() {
82
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
83
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
84
+ if (connectedElement) {
85
+ connectedElement.remove();
86
+ }
87
+ }
82
88
  this.enableAttributePassing(this._ref, "db-header");
83
89
  this.initialized = true;
84
90
  this.watch0Fn();
85
91
  }
86
92
  render() {
87
93
  var _a, _b, _c;
88
- return (h("header", { key: 'be1ad24dcffe0b9a3472fb4d0ce51e1e26ab18a7', class: cls("db-header", this.className), ref: (el) => {
94
+ return (h("header", { key: 'e7aec08f10ae9d575b3f845be29ee19505df9216', class: cls("db-header", this.className), ref: (el) => {
89
95
  this._ref = el;
90
- }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: 'd4037e5b2a37c33ce57753e256308f5a349c59ad', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: '6f3038ca75f7a872a25ef6195575e2fdafc37fd6', class: "db-header-drawer-navigation" }, h("div", { key: '5f49144f7c766e2f84619d048980bb4cd772f33a', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '0ede1bfe3a2c02c0f4bdb0351780d3f575cf2227' })), h("div", { key: '3afebc850c010d99e070abd9f443523215cbbe9c', class: "db-header-meta-navigation" }, h("slot", { key: '0a9c6a8d806af97d6ca004c581db605d5f3c2cbd', name: "metaNavigation" }))), h("div", { key: '1b55dab0fc8e755c30f17a348647d78a2063316e', class: "db-header-secondary-action" }, h("slot", { key: '91e2325325c90fa4c8a502da0dbff50c251f9914', name: "secondaryAction" }))), h("div", { key: '96d77f06e1e3ebe20463469d10fdf2086c4833f3', class: "db-header-meta-navigation" }, h("slot", { key: '3b670227184efb7b85ce1a4502322b72fa2e5dd3', name: "metaNavigation" })), h("div", { key: 'f63168e17d5add18523b8ce5cf145b2cdba634e0', class: "db-header-navigation-bar" }, h("div", { key: 'bdb2c9524c98f272da2250e84465d631dc4c86ee', class: "db-header-brand-container" }, h("slot", { key: 'cc82a8c4bcf8023ee31274ade351796c4b4e59ac', name: "brand" })), h("div", { key: '71dd71452f3fa5348d66aba9ea073865dc8ccbdd', class: "db-header-navigation-container" }, h("div", { key: 'ef397d6f5baeb671326269b8a0a4e329da8b103e', class: "db-header-navigation" }, h("slot", { key: 'e70245a7c3895bead643907655732f9a046b9d45' })), h("div", { key: '7f80402f9aa19140c404636a18d1d190cc9c7bd3', class: "db-header-primary-action" }, h("slot", { key: '625841b7653acffa89cf4539e3494611aaa37a65', name: "primaryAction" }))), h("div", { key: '6513c29620684d2b24ee7f031fc603bfd4d897e5', class: "db-header-action-container" }, h("div", { key: '0c0ff87d894c99cf1e49b2beadaec277dd8813b3', class: "db-header-burger-menu-container" }, h("db-button", { key: '63884b0f4e5e66fae043236fe06fa989d8c74dff', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: '7712b831ee086a7366909c9265cc46211d9c0a73', class: "db-header-secondary-action" }, h("slot", { key: 'bbb1d1a6c98ad79104389e57980cd0bb05f6e435', name: "secondaryAction" }))))));
96
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("div", { key: 'bdd8c85393260628938c33bfa1e8573d55a6d730', class: "db-header-meta-navigation" }, h("slot", { key: '42854d3f106c63bbc300458bdcd1cee48a7209be', name: "metaNavigation" })), h("div", { key: '7ef93a1cb414b44657aaed9d7e4779690ca09cf5', class: "db-header-navigation-bar" }, h("div", { key: '1e59f2987b83fe87cd22ae6bc95ac855c061869d', class: "db-header-brand-container" }, h("slot", { key: 'a610bb49cd670896fa1b980ffcdcbd40c2918b4e', name: "brand" })), h("div", { key: '1b94bf4ad2ae622875b7192812f9940e2a87c1e3', class: "db-header-navigation-container" }, h("div", { key: 'f57aac0c4268bf285de0c07bab40a736f0ca42a4', class: "db-header-navigation" }, h("slot", { key: '45d426690fb2dcb6da32f6f646f6b1a932670cd2' })), h("div", { key: 'e60bbd749efc91d9a00a54e3cbc6680e60f6e598', class: "db-header-primary-action" }, h("slot", { key: 'a41128047bc8063c45c14ff3ec58d83b7edd8361', name: "primaryAction" }))), h("div", { key: '82e9141ac1ad7f3a33c9bf0c15ccf969ccd5983f', class: "db-header-action-container" }, h("div", { key: '3f3a5c503ecd11a0aff43623921bb185c59c1802', class: "db-header-burger-menu-container" }, h("db-button", { key: '6547cf5982c0739960b9aa4363ddb71f1423a55b', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: 'd2c691eb6980e0eeffa512ade5074400bd7973b8', class: "db-header-secondary-action" }, h("slot", { key: '6cc84b46d137ac21aa90c3f84a873febc6fa0dba', name: "secondaryAction" })))), h("db-drawer", { key: '0dc5a353f9365bd76df967cdb3fee20be89c9525', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: '3a28d35593fe006aa6269077466bd91f33d5f2e4', class: "db-header-drawer-navigation" }, h("div", { key: 'c42fff25d31fe234d841542b108805b0aa85e05c', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '0de07dfbb68d8b6fcec8cf11e6398566fcd45ae2' })), h("div", { key: '062baf6f3e503751017a3715142e1622c27423bf', class: "db-header-meta-navigation" }, h("slot", { key: '2e703195477c67270e9bfee04335321c52b9de4f', name: "metaNavigation" }))), h("div", { key: '028079c3fae38bc282d8b064e4515ab1c27aa45e', class: "db-header-secondary-action" }, h("slot", { key: '879378953f36c55b5489a157a81e62f188ab5fca', name: "secondaryAction" })))));
91
97
  }
92
98
  static get is() { return "db-header"; }
93
99
  static get properties() {
@@ -246,11 +252,11 @@ export class DBHeader {
246
252
  "reflect": false,
247
253
  "attribute": "width"
248
254
  },
249
- "closeButtonId": {
255
+ "burgerMenuLabel": {
250
256
  "type": "string",
251
257
  "mutable": false,
252
258
  "complexType": {
253
- "original": "DBHeaderProps[\"closeButtonId\"]",
259
+ "original": "DBHeaderProps[\"burgerMenuLabel\"]",
254
260
  "resolved": "string",
255
261
  "references": {
256
262
  "DBHeaderProps": {
@@ -270,13 +276,13 @@ export class DBHeader {
270
276
  "getter": false,
271
277
  "setter": false,
272
278
  "reflect": false,
273
- "attribute": "close-button-id"
279
+ "attribute": "burger-menu-label"
274
280
  },
275
- "closeButtonText": {
281
+ "closeButtonId": {
276
282
  "type": "string",
277
283
  "mutable": false,
278
284
  "complexType": {
279
- "original": "DBHeaderProps[\"closeButtonText\"]",
285
+ "original": "DBHeaderProps[\"closeButtonId\"]",
280
286
  "resolved": "string",
281
287
  "references": {
282
288
  "DBHeaderProps": {
@@ -296,13 +302,13 @@ export class DBHeader {
296
302
  "getter": false,
297
303
  "setter": false,
298
304
  "reflect": false,
299
- "attribute": "close-button-text"
305
+ "attribute": "close-button-id"
300
306
  },
301
- "burgerMenuLabel": {
307
+ "closeButtonText": {
302
308
  "type": "string",
303
309
  "mutable": false,
304
310
  "complexType": {
305
- "original": "DBHeaderProps[\"burgerMenuLabel\"]",
311
+ "original": "DBHeaderProps[\"closeButtonText\"]",
306
312
  "resolved": "string",
307
313
  "references": {
308
314
  "DBHeaderProps": {
@@ -322,7 +328,7 @@ export class DBHeader {
322
328
  "getter": false,
323
329
  "setter": false,
324
330
  "reflect": false,
325
- "attribute": "burger-menu-label"
331
+ "attribute": "close-button-text"
326
332
  }
327
333
  };
328
334
  }
@@ -350,6 +356,7 @@ export class DBHeader {
350
356
  }
351
357
  }];
352
358
  }
359
+ static get elementRef() { return "rootElement"; }
353
360
  static get watchers() {
354
361
  return [{
355
362
  "propName": "initialized",
@@ -42,13 +42,19 @@ export class DBIcon {
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-icon");
46
52
  }
47
53
  render() {
48
54
  var _a, _b;
49
- return (h("span", { key: '1b9ecf0a2b731a1146ab46d6cac0d3ce371dbc87', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
55
+ return (h("span", { key: '004fb7b91cd27bc452f4777dfd68183bd4bfeaab', class: cls("db-icon", this.className), "aria-hidden": "true", 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-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : null, h("slot", { key: 'dec85782807d446081a60b9bf7024823b5463bc1' })));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : null, h("slot", { key: 'e9b5fbdefc6cf80abff634c60966ad719985e2be' })));
52
58
  }
53
59
  static get is() { return "db-icon"; }
54
60
  static get properties() {
@@ -235,4 +241,5 @@ export class DBIcon {
235
241
  }
236
242
  };
237
243
  }
244
+ static get elementRef() { return "rootElement"; }
238
245
  }
@@ -42,13 +42,19 @@ export class DBInfotext {
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-infotext");
46
52
  }
47
53
  render() {
48
54
  var _a, _b, _c;
49
- return (h("span", { key: 'e0846770d940dd2213fc271bd9b2f73dcd43e477', class: cls("db-infotext", this.className), ref: (el) => {
55
+ return (h("span", { key: '8336d336c2ea90300646a83257cab6f34dfe862a', class: cls("db-infotext", 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-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : null, h("slot", { key: '62a49acb22657bcadf93d60c787652de37cce74b' })));
57
+ }, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : null, h("slot", { key: '1dd519913408aa16cce587ddaee31d3c3bae05b6' })));
52
58
  }
53
59
  static get is() { return "db-infotext"; }
54
60
  static get properties() {
@@ -287,4 +293,5 @@ export class DBInfotext {
287
293
  }
288
294
  };
289
295
  }
296
+ static get elementRef() { return "rootElement"; }
290
297
  }
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
2
2
  import { cls, delay, getBoolean, getBooleanAsString, getHideProp, getInputValue, getNumber, getStep, hasVoiceOver, isArrayOfStrings, isIOSSafari, 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
 
@@ -196,6 +196,12 @@ export class DBInput {
196
196
  this.watch4Fn();
197
197
  }
198
198
  componentDidLoad() {
199
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
200
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
201
+ if (connectedElement) {
202
+ connectedElement.remove();
203
+ }
204
+ }
199
205
  this.enableAttributePassing(this._ref, "db-input");
200
206
  this.resetIds();
201
207
  this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
@@ -211,7 +217,7 @@ export class DBInput {
211
217
  }
212
218
  render() {
213
219
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
214
- return (h("div", { key: 'b2b30122374389f0ce7cd686adeebd544d739866', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: 'b7194b6d956d72f498443792b34f08e9c7c4f9f5', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: '73e36e11d4634eda85bfe9abe646f9e9f95e6cef', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
220
+ return (h("div", { key: '09f1dff4d884168cb140705b0f310519e60e3aa2', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: '17c5e2ddca81cd88f5fbc5d0b5024fb833aff026', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: 'ed0381ce65f0a89035804412d736adf3b6e0aea1', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
215
221
  this._ref = el;
216
222
  }, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_f = (_e = this.value) !== null && _e !== void 0 ? _e : this._value) !== null && _f !== void 0 ? _f : "", maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
217
223
  getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_g = this.ariaDescribedBy) !== null && _g !== void 0 ? _g : this._descByIds, role: [
@@ -223,7 +229,7 @@ export class DBInput {
223
229
  "color",
224
230
  ].includes((_h = this.type) !== null && _h !== void 0 ? _h : "") && isIOSSafari()
225
231
  ? "textbox"
226
- : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_j = this.getDataList()) === null || _j === void 0 ? void 0 : _j.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'a699c5b648a73eb17f0836def1b1c2a005bf7943' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '60d2b6b280bfb6258c1a76601123dbb0aa041547', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '044819a1c744e3d31308e771eeff1c0adc674024', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
232
+ : undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_j = this.getDataList()) === null || _j === void 0 ? void 0 : _j.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'e7c51c3d97314fd153f606a346244dac365171e5' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'f92de27dbfd942534f83a83d181b533fc0b4a6e2', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: 'af168dd9e11d853f76db0edee198a744d36a228d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
227
233
  }
228
234
  static get is() { return "db-input"; }
229
235
  static get properties() {
@@ -1603,6 +1609,7 @@ export class DBInput {
1603
1609
  }
1604
1610
  }];
1605
1611
  }
1612
+ static get elementRef() { return "rootElement"; }
1606
1613
  static get watchers() {
1607
1614
  return [{
1608
1615
  "propName": "id",