@db-ux/wc-core-components 4.11.0 → 4.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bundle/db-accordion-item.js +1 -1
  3. package/bundle/db-accordion.js +1 -1
  4. package/bundle/db-badge.js +1 -1
  5. package/bundle/db-brand.js +1 -1
  6. package/bundle/db-button.js +1 -1
  7. package/bundle/db-card.js +1 -1
  8. package/bundle/db-checkbox.js +1 -1
  9. package/bundle/db-custom-button.js +1 -1
  10. package/bundle/db-custom-select-dropdown.js +1 -1
  11. package/bundle/db-custom-select-form-field.js +1 -1
  12. package/bundle/db-custom-select-list-item.js +1 -1
  13. package/bundle/db-custom-select-list.js +1 -1
  14. package/bundle/db-custom-select.js +1 -1
  15. package/bundle/db-divider.js +1 -1
  16. package/bundle/db-drawer.js +1 -1
  17. package/bundle/db-header.js +1 -1
  18. package/bundle/db-icon.js +1 -1
  19. package/bundle/db-infotext.js +1 -1
  20. package/bundle/db-input.js +1 -1
  21. package/bundle/db-link.js +1 -1
  22. package/bundle/db-navigation-item.js +1 -1
  23. package/bundle/db-navigation.js +1 -1
  24. package/bundle/db-notification.js +1 -1
  25. package/bundle/db-page.js +1 -1
  26. package/bundle/db-popover.js +1 -1
  27. package/bundle/db-radio.js +1 -1
  28. package/bundle/db-section.js +1 -1
  29. package/bundle/db-select.js +1 -1
  30. package/bundle/db-stack.js +1 -1
  31. package/bundle/db-switch.js +1 -1
  32. package/bundle/db-tab-item.js +1 -1
  33. package/bundle/db-tab-list.js +1 -1
  34. package/bundle/db-tab-panel.js +1 -1
  35. package/bundle/db-table-body.js +1 -1
  36. package/bundle/db-table-caption.js +1 -1
  37. package/bundle/db-table-data-cell.js +1 -1
  38. package/bundle/db-table-footer.js +1 -1
  39. package/bundle/db-table-head.js +1 -1
  40. package/bundle/db-table-header-cell.js +1 -1
  41. package/bundle/db-table-row.js +1 -1
  42. package/bundle/db-table.js +1 -1
  43. package/bundle/db-tabs.js +1 -1
  44. package/bundle/db-tag.js +1 -1
  45. package/bundle/db-textarea.js +1 -1
  46. package/bundle/db-tooltip.js +1 -1
  47. package/bundle/p-3Da4lo5j.js +1 -0
  48. package/bundle/p-BEcb3EOO.js +1 -0
  49. package/bundle/p-BEolc6Da.js +1 -0
  50. package/bundle/p-BekmqY3B.js +1 -0
  51. package/bundle/p-BmRO4X-P.js +1 -0
  52. package/bundle/p-BrQIYm5N.js +1 -0
  53. package/bundle/p-BxZ0zFXf.js +1 -0
  54. package/bundle/p-C2viXF7U.js +1 -0
  55. package/bundle/p-C4iD-won.js +1 -0
  56. package/bundle/p-CHg_VPD9.js +1 -0
  57. package/bundle/p-CZ9SsTOA.js +1 -0
  58. package/bundle/p-CewqZGHg.js +1 -0
  59. package/bundle/p-CotiEHZi.js +1 -0
  60. package/bundle/p-D1orcIJf.js +1 -0
  61. package/bundle/p-D9RSX1St.js +1 -0
  62. package/bundle/p-DbgzEek1.js +1 -0
  63. package/bundle/p-DqNXsduK.js +1 -0
  64. package/bundle/p-Duacd-NX.js +1 -0
  65. package/bundle/p-k5Hci0ok.js +1 -0
  66. package/bundle/p-mk64Fltq.js +1 -0
  67. package/dist/cjs/db-accordion-item.cjs.entry.js +46 -9
  68. package/dist/cjs/db-accordion.cjs.entry.js +43 -6
  69. package/dist/cjs/db-badge.cjs.entry.js +43 -6
  70. package/dist/cjs/db-brand.cjs.entry.js +36 -5
  71. package/dist/cjs/db-button.cjs.entry.js +36 -5
  72. package/dist/cjs/db-card.cjs.entry.js +36 -5
  73. package/dist/cjs/db-checkbox.cjs.entry.js +45 -11
  74. package/dist/cjs/db-custom-button.cjs.entry.js +36 -5
  75. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +190 -31
  76. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +36 -5
  77. package/dist/cjs/db-custom-select.cjs.entry.js +60 -26
  78. package/dist/cjs/db-divider.cjs.entry.js +35 -4
  79. package/dist/cjs/db-drawer.cjs.entry.js +45 -8
  80. package/dist/cjs/db-header.cjs.entry.js +43 -6
  81. package/dist/cjs/db-icon.cjs.entry.js +36 -5
  82. package/dist/cjs/db-infotext.cjs.entry.js +36 -5
  83. package/dist/cjs/db-link_4.cjs.entry.js +65 -19
  84. package/dist/cjs/db-navigation-item.cjs.entry.js +46 -9
  85. package/dist/cjs/db-navigation.cjs.entry.js +36 -5
  86. package/dist/cjs/db-notification.cjs.entry.js +36 -5
  87. package/dist/cjs/db-page.cjs.entry.js +48 -13
  88. package/dist/cjs/db-popover.cjs.entry.js +43 -6
  89. package/dist/cjs/db-radio.cjs.entry.js +42 -8
  90. package/dist/cjs/db-section.cjs.entry.js +36 -5
  91. package/dist/cjs/db-select.cjs.entry.js +45 -11
  92. package/dist/cjs/db-stack.cjs.entry.js +36 -5
  93. package/dist/cjs/db-switch.cjs.entry.js +45 -11
  94. package/dist/cjs/db-tab-item_3.cjs.entry.js +118 -19
  95. package/dist/cjs/db-table-body_3.cjs.entry.js +53 -12
  96. package/dist/cjs/db-table-caption.cjs.entry.js +36 -5
  97. package/dist/cjs/db-table.cjs.entry.js +35 -4
  98. package/dist/cjs/db-tabs.cjs.entry.js +42 -8
  99. package/dist/cjs/db-textarea.cjs.entry.js +45 -10
  100. package/dist/cjs/db-tooltip.cjs.entry.js +144 -20
  101. package/dist/cjs/db-ux.cjs.js +1 -1
  102. package/dist/cjs/loader.cjs.js +1 -1
  103. package/dist/collection/components/accordion/accordion.js +45 -7
  104. package/dist/collection/components/accordion-item/accordion-item.js +48 -10
  105. package/dist/collection/components/badge/badge.js +45 -7
  106. package/dist/collection/components/brand/brand.js +43 -5
  107. package/dist/collection/components/button/button.js +43 -5
  108. package/dist/collection/components/card/card.js +43 -5
  109. package/dist/collection/components/checkbox/checkbox.js +47 -12
  110. package/dist/collection/components/custom-button/custom-button.js +43 -5
  111. package/dist/collection/components/custom-select/custom-select.js +62 -27
  112. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +41 -5
  113. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +43 -5
  114. package/dist/collection/components/custom-select-list/custom-select-list.js +43 -5
  115. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +37 -5
  116. package/dist/collection/components/divider/divider.js +42 -4
  117. package/dist/collection/components/drawer/drawer.js +47 -9
  118. package/dist/collection/components/header/header.js +45 -7
  119. package/dist/collection/components/icon/icon.js +43 -5
  120. package/dist/collection/components/infotext/infotext.js +43 -5
  121. package/dist/collection/components/input/input.js +49 -13
  122. package/dist/collection/components/link/link.js +43 -5
  123. package/dist/collection/components/navigation/navigation.js +43 -5
  124. package/dist/collection/components/navigation-item/navigation-item.js +48 -10
  125. package/dist/collection/components/notification/notification.js +43 -5
  126. package/dist/collection/components/page/page.js +50 -14
  127. package/dist/collection/components/popover/popover.js +45 -7
  128. package/dist/collection/components/radio/radio.js +44 -9
  129. package/dist/collection/components/section/section.js +43 -5
  130. package/dist/collection/components/select/select.js +47 -12
  131. package/dist/collection/components/stack/stack.js +43 -5
  132. package/dist/collection/components/switch/switch.js +47 -12
  133. package/dist/collection/components/tab-item/tab-item.js +45 -10
  134. package/dist/collection/components/tab-list/tab-list.js +43 -5
  135. package/dist/collection/components/tab-panel/tab-panel.js +48 -5
  136. package/dist/collection/components/table/table.js +37 -5
  137. package/dist/collection/components/table-body/table-body.js +9 -4
  138. package/dist/collection/components/table-caption/table-caption.js +43 -5
  139. package/dist/collection/components/table-data-cell/table-data-cell.js +10 -5
  140. package/dist/collection/components/table-footer/table-footer.js +9 -4
  141. package/dist/collection/components/table-head/table-head.js +42 -4
  142. package/dist/collection/components/table-header-cell/table-header-cell.js +10 -5
  143. package/dist/collection/components/table-row/table-row.js +9 -4
  144. package/dist/collection/components/tabs/tabs.js +44 -9
  145. package/dist/collection/components/tag/tag.js +43 -5
  146. package/dist/collection/components/textarea/textarea.js +47 -11
  147. package/dist/collection/components/tooltip/tooltip.js +150 -21
  148. package/dist/custom-elements.json +710 -0
  149. package/dist/db-ux/db-ux.esm.js +1 -1
  150. package/dist/db-ux/p-0123ee1b.entry.js +1 -0
  151. package/dist/db-ux/p-090b1797.entry.js +1 -0
  152. package/dist/db-ux/p-0e17c5a0.entry.js +1 -0
  153. package/dist/db-ux/p-194e851c.entry.js +1 -0
  154. package/dist/db-ux/p-281f5e3e.entry.js +1 -0
  155. package/dist/db-ux/p-2ae377e6.entry.js +1 -0
  156. package/dist/db-ux/p-2cf4345f.entry.js +1 -0
  157. package/dist/db-ux/p-2e6c8304.entry.js +1 -0
  158. package/dist/db-ux/p-335391d4.entry.js +1 -0
  159. package/dist/db-ux/p-34235204.entry.js +1 -0
  160. package/dist/db-ux/p-3569bb3c.entry.js +1 -0
  161. package/dist/db-ux/p-398f9165.entry.js +1 -0
  162. package/dist/db-ux/p-5070470f.entry.js +1 -0
  163. package/dist/db-ux/p-5e08712d.entry.js +1 -0
  164. package/dist/db-ux/p-63d98f9d.entry.js +1 -0
  165. package/dist/db-ux/p-6aa92091.entry.js +1 -0
  166. package/dist/db-ux/p-78b7e6f6.entry.js +1 -0
  167. package/dist/db-ux/p-7ca4bc82.entry.js +1 -0
  168. package/dist/db-ux/p-8f989150.entry.js +1 -0
  169. package/dist/db-ux/p-8fa7a578.entry.js +1 -0
  170. package/dist/db-ux/p-91052c75.entry.js +1 -0
  171. package/dist/db-ux/p-9ccd42b1.entry.js +1 -0
  172. package/dist/db-ux/p-a4d9f6e2.entry.js +1 -0
  173. package/dist/db-ux/p-af248e57.entry.js +1 -0
  174. package/dist/db-ux/p-ba82a0b0.entry.js +1 -0
  175. package/dist/db-ux/p-c2ce6ecd.entry.js +1 -0
  176. package/dist/db-ux/p-d7b5748d.entry.js +1 -0
  177. package/dist/db-ux/p-dfbbe502.entry.js +1 -0
  178. package/dist/db-ux/p-e7a400a2.entry.js +1 -0
  179. package/dist/db-ux/p-ef1aa878.entry.js +1 -0
  180. package/dist/db-ux/p-f1daaefa.entry.js +1 -0
  181. package/dist/db-ux/p-f6312d2c.entry.js +1 -0
  182. package/dist/db-ux/p-fbf09569.entry.js +1 -0
  183. package/dist/db-ux/p-ff11c071.entry.js +1 -0
  184. package/dist/esm/db-accordion-item.entry.js +46 -9
  185. package/dist/esm/db-accordion.entry.js +43 -6
  186. package/dist/esm/db-badge.entry.js +43 -6
  187. package/dist/esm/db-brand.entry.js +36 -5
  188. package/dist/esm/db-button.entry.js +36 -5
  189. package/dist/esm/db-card.entry.js +36 -5
  190. package/dist/esm/db-checkbox.entry.js +45 -11
  191. package/dist/esm/db-custom-button.entry.js +36 -5
  192. package/dist/esm/db-custom-select-dropdown_5.entry.js +190 -31
  193. package/dist/esm/db-custom-select-form-field.entry.js +36 -5
  194. package/dist/esm/db-custom-select.entry.js +60 -26
  195. package/dist/esm/db-divider.entry.js +35 -4
  196. package/dist/esm/db-drawer.entry.js +45 -8
  197. package/dist/esm/db-header.entry.js +43 -6
  198. package/dist/esm/db-icon.entry.js +36 -5
  199. package/dist/esm/db-infotext.entry.js +36 -5
  200. package/dist/esm/db-link_4.entry.js +65 -19
  201. package/dist/esm/db-navigation-item.entry.js +47 -10
  202. package/dist/esm/db-navigation.entry.js +36 -5
  203. package/dist/esm/db-notification.entry.js +36 -5
  204. package/dist/esm/db-page.entry.js +48 -13
  205. package/dist/esm/db-popover.entry.js +43 -6
  206. package/dist/esm/db-radio.entry.js +42 -8
  207. package/dist/esm/db-section.entry.js +36 -5
  208. package/dist/esm/db-select.entry.js +45 -11
  209. package/dist/esm/db-stack.entry.js +36 -5
  210. package/dist/esm/db-switch.entry.js +45 -11
  211. package/dist/esm/db-tab-item_3.entry.js +118 -19
  212. package/dist/esm/db-table-body_3.entry.js +53 -12
  213. package/dist/esm/db-table-caption.entry.js +36 -5
  214. package/dist/esm/db-table.entry.js +35 -4
  215. package/dist/esm/db-tabs.entry.js +43 -9
  216. package/dist/esm/db-textarea.entry.js +45 -10
  217. package/dist/esm/db-tooltip.entry.js +144 -20
  218. package/dist/esm/db-ux.js +1 -1
  219. package/dist/esm/loader.js +1 -1
  220. package/dist/types/components/accordion/accordion.d.ts +3 -0
  221. package/dist/types/components/accordion-item/accordion-item.d.ts +3 -0
  222. package/dist/types/components/badge/badge.d.ts +3 -0
  223. package/dist/types/components/brand/brand.d.ts +3 -0
  224. package/dist/types/components/button/button.d.ts +3 -0
  225. package/dist/types/components/card/card.d.ts +3 -0
  226. package/dist/types/components/checkbox/checkbox.d.ts +2 -0
  227. package/dist/types/components/custom-button/custom-button.d.ts +3 -0
  228. package/dist/types/components/custom-select/custom-select.d.ts +2 -0
  229. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +3 -0
  230. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +3 -0
  231. package/dist/types/components/custom-select-list/custom-select-list.d.ts +3 -0
  232. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +3 -0
  233. package/dist/types/components/divider/divider.d.ts +3 -0
  234. package/dist/types/components/drawer/drawer.d.ts +3 -0
  235. package/dist/types/components/header/header.d.ts +3 -0
  236. package/dist/types/components/icon/icon.d.ts +3 -0
  237. package/dist/types/components/infotext/infotext.d.ts +3 -0
  238. package/dist/types/components/input/input.d.ts +2 -0
  239. package/dist/types/components/link/link.d.ts +3 -0
  240. package/dist/types/components/navigation/navigation.d.ts +3 -0
  241. package/dist/types/components/navigation-item/navigation-item.d.ts +3 -0
  242. package/dist/types/components/notification/notification.d.ts +3 -0
  243. package/dist/types/components/page/page.d.ts +2 -0
  244. package/dist/types/components/popover/popover.d.ts +3 -0
  245. package/dist/types/components/radio/radio.d.ts +2 -0
  246. package/dist/types/components/section/section.d.ts +3 -0
  247. package/dist/types/components/select/select.d.ts +2 -0
  248. package/dist/types/components/stack/stack.d.ts +3 -0
  249. package/dist/types/components/switch/switch.d.ts +2 -0
  250. package/dist/types/components/tab-item/tab-item.d.ts +2 -0
  251. package/dist/types/components/tab-list/tab-list.d.ts +3 -0
  252. package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
  253. package/dist/types/components/table/table.d.ts +3 -0
  254. package/dist/types/components/table-caption/table-caption.d.ts +3 -0
  255. package/dist/types/components/table-head/table-head.d.ts +3 -0
  256. package/dist/types/components/tabs/tabs.d.ts +2 -0
  257. package/dist/types/components/tag/tag.d.ts +3 -0
  258. package/dist/types/components/textarea/textarea.d.ts +2 -0
  259. package/dist/types/components/tooltip/model.d.ts +9 -0
  260. package/dist/types/components/tooltip/tooltip.d.ts +8 -0
  261. package/dist/web-types.json +84 -40
  262. package/package.json +6 -6
  263. package/bundle/p-B5ANMEnQ.js +0 -1
  264. package/bundle/p-BJwvv-yT.js +0 -1
  265. package/bundle/p-BNiKxu3y.js +0 -1
  266. package/bundle/p-B_bPnncM.js +0 -1
  267. package/bundle/p-BnLhi6Lz.js +0 -1
  268. package/bundle/p-BrBlnLrn.js +0 -1
  269. package/bundle/p-CByFfoSH.js +0 -1
  270. package/bundle/p-CQo0C7QE.js +0 -1
  271. package/bundle/p-CR2ZbfYe.js +0 -1
  272. package/bundle/p-CeDu282h.js +0 -1
  273. package/bundle/p-CfLPOLHz.js +0 -1
  274. package/bundle/p-CoOxyQb2.js +0 -1
  275. package/bundle/p-CqED0CfD.js +0 -1
  276. package/bundle/p-Cr_z1Jfi.js +0 -1
  277. package/bundle/p-D-XzX0R7.js +0 -1
  278. package/bundle/p-DMSIvqcA.js +0 -1
  279. package/bundle/p-DUiroUyR.js +0 -1
  280. package/bundle/p-DdyMClpj.js +0 -1
  281. package/bundle/p-DjVjS2Tb.js +0 -1
  282. package/bundle/p-in4Kv88F.js +0 -1
  283. package/dist/db-ux/p-08271c80.entry.js +0 -1
  284. package/dist/db-ux/p-105ffa74.entry.js +0 -1
  285. package/dist/db-ux/p-15adca91.entry.js +0 -1
  286. package/dist/db-ux/p-1a322a0c.entry.js +0 -1
  287. package/dist/db-ux/p-1f7232c0.entry.js +0 -1
  288. package/dist/db-ux/p-27e2f6f2.entry.js +0 -1
  289. package/dist/db-ux/p-2907f214.entry.js +0 -1
  290. package/dist/db-ux/p-2ff958e4.entry.js +0 -1
  291. package/dist/db-ux/p-3423b7af.entry.js +0 -1
  292. package/dist/db-ux/p-365e6edf.entry.js +0 -1
  293. package/dist/db-ux/p-42516007.entry.js +0 -1
  294. package/dist/db-ux/p-5045182c.entry.js +0 -1
  295. package/dist/db-ux/p-5e1d42e5.entry.js +0 -1
  296. package/dist/db-ux/p-61b28212.entry.js +0 -1
  297. package/dist/db-ux/p-6850a53c.entry.js +0 -1
  298. package/dist/db-ux/p-6bff55b4.entry.js +0 -1
  299. package/dist/db-ux/p-6e7c5e42.entry.js +0 -1
  300. package/dist/db-ux/p-76adf385.entry.js +0 -1
  301. package/dist/db-ux/p-78f7b353.entry.js +0 -1
  302. package/dist/db-ux/p-7fa5d304.entry.js +0 -1
  303. package/dist/db-ux/p-95b69e71.entry.js +0 -1
  304. package/dist/db-ux/p-99ebe6ec.entry.js +0 -1
  305. package/dist/db-ux/p-a5dc355d.entry.js +0 -1
  306. package/dist/db-ux/p-a6113789.entry.js +0 -1
  307. package/dist/db-ux/p-b9c0feaf.entry.js +0 -1
  308. package/dist/db-ux/p-c14fa91a.entry.js +0 -1
  309. package/dist/db-ux/p-c65b807e.entry.js +0 -1
  310. package/dist/db-ux/p-dd9cedbe.entry.js +0 -1
  311. package/dist/db-ux/p-e3f705fd.entry.js +0 -1
  312. package/dist/db-ux/p-e4cddc9f.entry.js +0 -1
  313. package/dist/db-ux/p-e7a8612c.entry.js +0 -1
  314. package/dist/db-ux/p-ee8c3243.entry.js +0 -1
  315. package/dist/db-ux/p-f0d0acfc.entry.js +0 -1
  316. package/dist/db-ux/p-f15748ea.entry.js +0 -1
@@ -1 +1 @@
1
- import{y as t,H as i,A as s,u as e,z as a,k as h,o as d,d as c,t as n,f as o}from"./p-CYYSsu3p.js";import{b as l}from"./p-D6L0n3gO.js";const r=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this.initialized=!1,this._id=void 0,this.abortController=void 0}handleInput(t,i){this.input&&this.input.emit(t)}handleChange(t,i){this.change&&this.change.emit(t)}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"radio-"+e()}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(a.name,`${h?h+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.checked&&this.initialized&&this._ref&&(this._ref.checked=!0)}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref){let t=this.abortController;t||(t=new AbortController,this.abortController=t),l(this._ref,(t=>{o((()=>{const i=this.checked?this.checked:this._ref.checked,s=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:"",checked:i})});this.handleChange(s,!0),this.handleInput(s,!0)}),1)}),t.signal)}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-radio"),this.initialized=!0,this.resetIds(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){return a("label",{key:"a0c0cd38ac8c6addb0f826294c56ff235d0ea624",class:c("db-radio",this.className),"data-size":this.size,"data-hide-label":d(this.showLabel),"data-hide-asterisk":d(this.showRequiredAsterisk),htmlFor:this._id},a("input",{key:"1dae5434da230a2e9268e89057d83b92f64b91c6",type:"radio","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:h(this.checked,"checked"),disabled:h(this.disabled,"disabled"),value:this.value,required:h(this.required,"required"),onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:null,a("slot",{key:"7e8423038fc180907953fe21a406bc7195dcdaeb"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}}},[260,"db-radio",{id:[1],propOverrides:[16],checked:[8],size:[1],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],validation:[1],name:[1],disabled:[8],value:[8],required:[8],label:[1],initialized:[32],_id:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}]),u=r,b=function(){"undefined"!=typeof customElements&&["db-radio"].forEach((t=>{"db-radio"===t&&(customElements.get(n(t))||customElements.define(n(t),r))}))};export{u as DbRadio,b as defineCustomElement}
1
+ import{y as t,H as i,A as s,u as e,z as h,k as a,o as d,d as r,t as o,f as n}from"./p-CYYSsu3p.js";import{b as c}from"./p-D6L0n3gO.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this.initialized=!1,this._id=void 0,this.abortController=void 0,this.observer=void 0}handleInput(t,i){this.input&&this.input.emit(t)}handleChange(t,i){this.change&&this.change.emit(t)}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"radio-"+e()}setupObserver(t){if(!t)return;const i=t.closest("db-radio");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-radio")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?" "+e:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.checked&&this.initialized&&this._ref&&(this._ref.checked=!0)}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref){let t=this.abortController;t||(t=new AbortController,this.abortController=t),c(this._ref,(t=>{n((()=>{const i=this.checked?this.checked:this._ref.checked,s=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:"",checked:i})});this.handleChange(s,!0),this.handleInput(s,!0)}),1)}),t.signal)}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-radio"),(()=>{this.initialized=!0,this.resetIds()})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){return h("label",{key:"85734ed463718801789a9dea9c0febcc4c2e8266",class:r("db-radio",this.className),"data-size":this.size,"data-hide-label":d(this.showLabel),"data-hide-asterisk":d(this.showRequiredAsterisk),htmlFor:this._id},h("input",{key:"7906add8b0074893bbffaaa0963284de1f89836c",type:"radio","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,required:a(this.required,"required"),onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:null,h("slot",{key:"7c35400883fd27d67bb2932cd646492fe137ccd9"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}}},[260,"db-radio",{id:[1],propOverrides:[16],checked:[8],size:[1],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],validation:[1],name:[1],disabled:[8],value:[8],required:[8],label:[1],initialized:[32],_id:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}]),u=l,b=function(){"undefined"!=typeof customElements&&["db-radio"].forEach((t=>{"db-radio"===t&&(customElements.get(o(t))||customElements.define(o(t),l))}))};export{u as DbRadio,b as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,d as i,t as d}from"./p-CYYSsu3p.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const d=s.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(d.name,`${n?n+" ":""}${i}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-section")}render(){var t,s;return e("section",{key:"5c139b6a510425291fae249e710d4b3eafdbd0c4",class:i("db-section",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-spacing":this.spacing||"medium","data-width":this.width},e("slot",{key:"de4549ef8be697b8298962bb254c33b531cbc915"}))}get rootElement(){return this}},[260,"db-section",{id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],width:[1]}]),a=n,c=function(){"undefined"!=typeof customElements&&["db-section"].forEach((t=>{"db-section"===t&&(customElements.get(d(t))||customElements.define(d(t),n))}))};export{a as DbSection,c as defineCustomElement}
1
+ import{y as t,H as s,z as e,d as i,t as n}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-section");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-section")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d||""}${i?" "+i:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-section"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("section",{key:"e33119ea38ff1f66b56792cb1a5a57e47d87d370",class:i("db-section",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-spacing":this.spacing||"medium","data-width":this.width},e("slot",{key:"0ac9622c130f2a896b334e65025f16365fe50ea5"}))}get rootElement(){return this}},[260,"db-section",{id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],width:[1],observer:[32]}]),o=d,a=function(){"undefined"!=typeof customElements&&["db-section"].forEach((t=>{"db-section"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{o as DbSection,a as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as s,A as t,h as e,f as h,p as a,u as d,z as l,k as o,j as n,F as c,o as r,d as v,t as u}from"./p-CYYSsu3p.js";import{l as b,f as p,g as m,h as w,i as f,k as y,a as g}from"./p-BdL-nI5y.js";import{c as k}from"./p-D6L0n3gO.js";import{d as I}from"./p-DMSIvqcA.js";const _=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=t(this,"click"),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._placeholderId="",this._descByIds=void 0,this._value="",this.initialized=!1,this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&this.required?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:y,h((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||b,e()&&(this._voiceOverFallback=this._invalidMessage,h((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getOptionLabel(i){var s,t;return null!==(s=i.label)&&void 0!==s?s:null===(t=i.value)||void 0===t?void 0:""+t}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"select-"+d();this._id=e,this._messageId=e+p,this._validMessageId=e+m,this._invalidMessageId=e+w,this._placeholderId=e+f}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const h=s.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))i.setAttribute(h.name,h.value),t.removeAttribute(h.name);else if(h&&"data-density"!==h.name&&"class"!==h.name&&"style"===h.name)i.setAttribute(h.name,h.value),t.removeAttribute(h.name);else if(h&&"class"===h.name){const s=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(h.name,`${a?a+" ":""}${e}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(h.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||b}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+p,s=this._id+f;this._messageId=i,this._validMessageId=this._id+m,this._invalidMessageId=this._id+w,this._placeholderId=s,this._descByIds=a(this.message,this.showMessage)?i:this.placeholder?s:void 0,this.handleValidation(),this.initialized=!1}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),k(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-select"),this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||b,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,s,t,e,h,d;return l("div",{key:"9a671204460166241b06ea30a76987f89bc44185",class:v("db-select",this.className),"data-variant":this.variant,"data-hide-label":r(this.showLabel),"data-hide-asterisk":r(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":n(this.showIcon,"showIcon")},l("label",{key:"008bd6fffd2fb37d74c1bc347e02789265dc8b1b",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:g),l("select",{key:"6136d1db041667b7cb9ac8cbb6fe116f3aebe56a","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:o(this.required,"required"),disabled:o(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(t=null!==(s=this.value)&&void 0!==s?s:this._value)&&void 0!==t?t:void 0,autocomplete:this.autocomplete,multiple:this.multiple,onInput:i=>this.handleInput(i),onClick:i=>this.handleClick(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(e=this.ariaDescribedBy)&&void 0!==e?e:this._descByIds},"floating"===this.variant||this.placeholder?l("option",{class:"placeholder",value:"","data-show-empty-option":n(this.shouldShowEmptyOption(),"showEmptyOption")}):null,(null===(h=this.options)||void 0===h?void 0:h.length)?null===(d=this.options)||void 0===d?void 0:d.map((i=>{var s;return l(c,null,i.options?l("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(s=i.options)||void 0===s?void 0:s.map((i=>l("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):l("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):l("slot",null)),this.placeholder?l("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,a(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||y):null,l("db-infotext",{key:"2917ae74aeec788b09b7b8d748905f5505742076",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"34c00871d2416959b44f2bb21816696d5ee62ea3","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],placeholder:[1],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],variant:[1],showEmptyOption:[4,"show-empty-option"],className:[1,"classname"],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],icon:[1],showIcon:[8,"show-icon"],label:[1],disabled:[8],name:[1],size:[2],autocomplete:[1],multiple:[4],ariaDescribedBy:[1,"aria-described-by"],options:[16],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_placeholderId:[32],_descByIds:[32],_value:[32],initialized:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}]),F=_,z=function(){"undefined"!=typeof customElements&&["db-select","db-infotext"].forEach((i=>{switch(i){case"db-select":customElements.get(u(i))||customElements.define(u(i),_);break;case"db-infotext":customElements.get(u(i))||I()}}))};export{F as DbSelect,z as defineCustomElement}
1
+ import{y as i,H as s,A as t,h as e,f as h,p as a,u as d,z as l,k as o,j as n,F as c,o as r,d as v,t as u}from"./p-CYYSsu3p.js";import{l as b,f as p,g as f,h as m,i as w,k as g,a as y}from"./p-BdL-nI5y.js";import{c as k}from"./p-D6L0n3gO.js";import{d as _}from"./p-CewqZGHg.js";const I=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=t(this,"click"),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._placeholderId="",this._descByIds=void 0,this._value="",this.initialized=!1,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&this.required?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:g,h((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||b,e()&&(this._voiceOverFallback=this._invalidMessage,h((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getOptionLabel(i){var s,t;return null!==(s=i.label)&&void 0!==s?s:null===(t=i.value)||void 0===t?void 0:""+t}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"select-"+d();this._id=e,this._messageId=e+p,this._validMessageId=e+f,this._invalidMessageId=e+m,this._placeholderId=e+w}setupObserver(i){if(!i)return;const s=i.closest("db-select");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-select")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const h=s.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?i.setAttribute(h.name,h.value):i.removeAttribute(h.name),t.removeAttribute(h.name);else if(h&&["style"].includes(h.name))i.setAttribute(h.name,h.value),t.removeAttribute(h.name);else if(h&&"class"===h.name){const s=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(h.name,`${a||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(h.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||b}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+p,s=this._id+w;this._messageId=i,this._validMessageId=this._id+f,this._invalidMessageId=this._id+m,this._placeholderId=s,this._descByIds=a(this.message,this.showMessage)?i:this.placeholder?s:void 0,this.handleValidation(),this.initialized=!1}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),k(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-select"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||b})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s,t,e,h,d;return l("div",{key:"71200b34c84ae3c90e4990b11e55e8dea4c16e55",class:v("db-select",this.className),"data-variant":this.variant,"data-hide-label":r(this.showLabel),"data-hide-asterisk":r(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":n(this.showIcon,"showIcon")},l("label",{key:"3633f34f827d53ee4b4d15e5b230307984fcbd09",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("select",{key:"ff177d80acfa3519df6467892fb5f97f4ad6872b","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:o(this.required,"required"),disabled:o(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(t=null!==(s=this.value)&&void 0!==s?s:this._value)&&void 0!==t?t:void 0,autocomplete:this.autocomplete,multiple:this.multiple,onInput:i=>this.handleInput(i),onClick:i=>this.handleClick(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(e=this.ariaDescribedBy)&&void 0!==e?e:this._descByIds},"floating"===this.variant||this.placeholder?l("option",{class:"placeholder",value:"","data-show-empty-option":n(this.shouldShowEmptyOption(),"showEmptyOption")}):null,(null===(h=this.options)||void 0===h?void 0:h.length)?null===(d=this.options)||void 0===d?void 0:d.map((i=>{var s;return l(c,null,i.options?l("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(s=i.options)||void 0===s?void 0:s.map((i=>l("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):l("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):l("slot",null)),this.placeholder?l("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,a(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||g):null,l("db-infotext",{key:"5baf4a0984f8d71776cda0d0d9c12e62f08f434b",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"2b7c6895a1de8e77daba33de6923a33b7c43bee1","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],placeholder:[1],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],variant:[1],showEmptyOption:[4,"show-empty-option"],className:[1,"classname"],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],icon:[1],showIcon:[8,"show-icon"],label:[1],disabled:[8],name:[1],size:[2],autocomplete:[1],multiple:[4],ariaDescribedBy:[1,"aria-described-by"],options:[16],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_placeholderId:[32],_descByIds:[32],_value:[32],initialized:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}]),O=I,F=function(){"undefined"!=typeof customElements&&["db-select","db-infotext"].forEach((i=>{switch(i){case"db-select":customElements.get(u(i))||customElements.define(u(i),I);break;case"db-infotext":customElements.get(u(i))||_()}}))};export{O as DbSelect,F as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,z as a,j as e,d as i,t as n}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const i=s.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n?n+" ":""}${e}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-stack")}render(){var t,s;return a("div",{key:"62cf5c2919a377c7167776fda39248a7ea03ebb2",class:i("db-stack",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":e(this.wrap,"wrap")},a("slot",{key:"af86645752507ed68b97f6b290cd304c6cf48952"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8]}]),c=d,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{c as DbStack,o as defineCustomElement}
1
+ import{y as t,H as s,z as e,j as a,d as i,t as n}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-stack");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-stack")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let a=0;a<s.length;a++){const i=s.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),e.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-stack"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"02389c1bd26917e0176c95ce3e38e7ef664813e7",class:i("db-stack",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":a(this.wrap,"wrap")},e("slot",{key:"70b94e0558c79bc76096be335af95029ad2cbe5c"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8],observer:[32]}]),c=d,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{c as DbStack,o as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as s,A as t,h as a,f as e,p as h,u as d,z as l,k as c,o,j as n,d as r,t as v}from"./p-CYYSsu3p.js";import{l as u,f as w,g as f,h as m,k as b}from"./p-BdL-nI5y.js";import{a as g}from"./p-D6L0n3gO.js";import{d as p}from"./p-DMSIvqcA.js";const y=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,c;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(a()&&(this._voiceOverFallback=null!==(c=this.validMessage)&&void 0!==c?c:b,e((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(a()&&(this._voiceOverFallback=this._invalidMessage||u,e((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const a=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=a,this._messageId=`${a}${w}`,this._validMessageId=`${a}${f}`,this._invalidMessageId=`${a}${m}`}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h?h+" ":""}${a}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-switch"),this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,s;return l("div",{key:"4580075ad2dc46cce52be60c2738d0fd1033ae74",class:r("db-switch",this.className),"data-visual-aid":n(this.visualAid,"visualAid"),"data-size":this.size,"data-hide-label":o(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":o(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"bb3f0961808c94615181dc7e256a0ee35dcf34b7",htmlFor:this._id},l("input",{key:"352257d398c6808c4a643e97b5505edddec9477c",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:c(this.checked,"checked"),value:this.value,disabled:c(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:c(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"72b91ff451105158b600372cf2a338feb417488d"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:b):null,l("db-infotext",{key:"77aeba89e7998e2e62f47cf578d087da4881bea1",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"470358471b50f36f0faa2fe3107768785f5c256a","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),k=y,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(v(i))||customElements.define(v(i),y);break;case"db-infotext":customElements.get(v(i))||p()}}))};export{k as DbSwitch,M as defineCustomElement}
1
+ import{y as i,H as s,A as t,h as e,f as a,p as h,u as d,z as l,k as o,o as n,j as c,d as r,t as v}from"./p-CYYSsu3p.js";import{l as u,f as w,g as b,h as f,k as m}from"./p-BdL-nI5y.js";import{a as g}from"./p-D6L0n3gO.js";import{d as p}from"./p-CewqZGHg.js";const k=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,o;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(e()&&(this._voiceOverFallback=null!==(o=this.validMessage)&&void 0!==o?o:m,a((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(e()&&(this._voiceOverFallback=this._invalidMessage||u,a((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=e,this._messageId=`${e}${w}`,this._validMessageId=`${e}${b}`,this._invalidMessageId=`${e}${f}`}setupObserver(i){if(!i)return;const s=i.closest("db-switch");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-switch")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),t.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-switch"),(()=>{this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s;return l("div",{key:"e95dafb6d580ef8cfbd54b91ee77da4809984862",class:r("db-switch",this.className),"data-visual-aid":c(this.visualAid,"visualAid"),"data-size":this.size,"data-hide-label":n(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":n(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"533173f9a522375012848dbff80b0e357f5e1b30",htmlFor:this._id},l("input",{key:"68e6d40e2b5654508d8ebaf9be66dd56aa39c8f2",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:o(this.checked,"checked"),value:this.value,disabled:o(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:o(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"a89d78f024905190780c3c8436773ab710115857"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:m):null,l("db-infotext",{key:"e170d8c368afd61c7c94c10bb2ea13fe4520d692",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"d8a5b8e7a5e0f70f245de5756f7b2d19640b4863","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),y=k,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(v(i))||customElements.define(v(i),k);break;case"db-infotext":customElements.get(v(i))||p()}}))};export{y as DbSwitch,M as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as r}from"./p-Cr_z1Jfi.js";const s=o,p=r;export{s as DbTabItem,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-k5Hci0ok.js";const p=o,r=s;export{p as DbTabItem,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BnLhi6Lz.js";const p=o,r=s;export{p as DbTabList,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-CHg_VPD9.js";const p=o,r=s;export{p as DbTabList,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-in4Kv88F.js";const p=o,r=s;export{p as DbTabPanel,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-BmRO4X-P.js";const m=o,p=s;export{m as DbTabPanel,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CByFfoSH.js";const p=o,r=s;export{p as DbTableBody,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-D9RSX1St.js";const t=o,p=s;export{t as DbTableBody,p as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,d as a,t as n}from"./p-CYYSsu3p.js";const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const n=e.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const e=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d?d+" ":""}${a}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-caption")}render(){return s("caption",{key:"45129365b814f87e7d337464f8f768fb3d9bd9c8",class:a("db-table-caption",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"80e7f4789799c755d2a03b55ef8ee7e05939bf96"}))}get rootElement(){return this}},[260,"db-table-caption",{id:[1],className:[1,"classname"]}]),i=d,o=function(){"undefined"!=typeof customElements&&["db-table-caption"].forEach((t=>{"db-table-caption"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{i as DbTableCaption,o as defineCustomElement}
1
+ import{y as t,H as e,z as s,d as a,t as i}from"./p-CYYSsu3p.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const e=t.closest("db-table-caption");e&&!this.observer&&(this.observer=new MutationObserver((e=>{e.some((t=>{var e;const s=t.target.attributes.getNamedItem(null!==(e=t.attributeName)&&void 0!==e?e:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table-caption")})),this.observer.observe(e,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const i=e.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),s.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-caption"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){return s("caption",{key:"5ef3476c6c9879f1fcf8548e11bea82516bd29d1",class:a("db-table-caption",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"e20d1d699e7ab50422c0d40bdf058c8863ae4991"}))}get rootElement(){return this}},[260,"db-table-caption",{id:[1],className:[1,"classname"],observer:[32]}]),d=n,o=function(){"undefined"!=typeof customElements&&["db-table-caption"].forEach((t=>{"db-table-caption"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{d as DbTableCaption,o as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BJwvv-yT.js";const p=o,r=s;export{p as DbTableDataCell,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-BEcb3EOO.js";const p=o,r=s;export{p as DbTableDataCell,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CoOxyQb2.js";const p=o,r=s;export{p as DbTableFooter,r as defineCustomElement}
1
+ import{D as s,d as o}from"./p-DqNXsduK.js";const p=s,r=o;export{p as DbTableFooter,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-DjVjS2Tb.js";const j=o,p=s;export{j as DbTableHead,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-BekmqY3B.js";const m=o,p=s;export{m as DbTableHead,p as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CfLPOLHz.js";const p=o,r=s;export{p as DbTableHeaderCell,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-C4iD-won.js";const p=o,r=s;export{p as DbTableHeaderCell,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as r}from"./p-DUiroUyR.js";const s=o,p=r;export{s as DbTableRow,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-mk64Fltq.js";const t=o,m=s;export{t as DbTableRow,m as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as a,f as s,z as e,F as i,j as o,d,t as l}from"./p-CYYSsu3p.js";import{d as n}from"./p-DdyMClpj.js";import{d as c}from"./p-CByFfoSH.js";import{d as r}from"./p-BJwvv-yT.js";import{d as h}from"./p-CoOxyQb2.js";import{d as b}from"./p-DjVjS2Tb.js";import{d as m}from"./p-CfLPOLHz.js";import{d as u}from"./p-DUiroUyR.js";const f=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this._data=void 0,this._style=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}enableAttributePassing(t,a){const s=null==t?void 0:t.closest(a);if(t&&s){const a=s.attributes;for(let e=0;e<a.length;e++){const i=a.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const a=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(i.name,`${o?o+" ":""}${e}`),a?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&s((()=>{const t=this._ref;if(!t)return;const a=t.querySelectorAll("thead tr th");a.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,s)=>{const e=a[s];if(e){const a=Array.from(e.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var a;return null===(a=t.textContent)||void 0===a?void 0:a.trim()})).filter(Boolean).join(" ");a&&(t.dataset.header=a)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([a,s])=>{t["--db-table-column-size-"+a]=s})),this._style=t}else this._style=void 0}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table"),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}render(){var t,a,s,l,n,c;return e("div",{key:"d4edb3348e35410ac540499f815e173237e533dc",class:d("db-table",this.className),style:this._style,"data-width":this.width,"data-size":this.size,"data-divider":this.divider,"data-variant":this.variant,"data-mobile-variant":this.mobileVariant,"data-show-caption":o(this.showCaption),"data-sticky-header":this.stickyHeader},e("table",{key:"2eda8c59f2c86a480691a1a4fae4a1fdaa63a6b1",ref:t=>{this._ref=t},id:this.id},this.captionPlain?e("caption",null,this.captionPlain):e("slot",{name:"caption"}),this._data?e(i,null,(null===(t=this._data)||void 0===t?void 0:t.header)?e("db-table-head",{rows:null===(a=this._data)||void 0===a?void 0:a.header}):null,(null===(s=this._data)||void 0===s?void 0:s.body)?e("db-table-body",{rows:null===(l=this._data)||void 0===l?void 0:l.body}):null,(null===(n=this._data)||void 0===n?void 0:n.footer)?e("db-table-footer",{rows:null===(c=this._data)||void 0===c?void 0:c.footer}):null):e("slot",null)))}get rootElement(){return this}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}},[260,"db-table",{data:[1],mobileVariant:[1,"mobile-variant"],columnSizes:[16],className:[1,"classname"],width:[1],size:[1],divider:[1],variant:[1],showCaption:[8,"show-caption"],stickyHeader:[1,"sticky-header"],id:[1],captionPlain:[1,"caption-plain"],_data:[32],_style:[32]},void 0,{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}]),p=f,v=function(){"undefined"!=typeof customElements&&["db-table","db-link","db-table-body","db-table-data-cell","db-table-footer","db-table-head","db-table-header-cell","db-table-row"].forEach((t=>{switch(t){case"db-table":customElements.get(l(t))||customElements.define(l(t),f);break;case"db-link":customElements.get(l(t))||n();break;case"db-table-body":customElements.get(l(t))||c();break;case"db-table-data-cell":customElements.get(l(t))||r();break;case"db-table-footer":customElements.get(l(t))||h();break;case"db-table-head":customElements.get(l(t))||b();break;case"db-table-header-cell":customElements.get(l(t))||m();break;case"db-table-row":customElements.get(l(t))||u()}}))};export{p as DbTable,v as defineCustomElement}
1
+ import{y as t,H as s,f as a,z as e,F as i,j as o,d,t as l}from"./p-CYYSsu3p.js";import{d as n}from"./p-D1orcIJf.js";import{d as r}from"./p-D9RSX1St.js";import{d as c}from"./p-BEcb3EOO.js";import{d as h}from"./p-DqNXsduK.js";import{d as b}from"./p-BekmqY3B.js";import{d as u}from"./p-C4iD-won.js";import{d as m}from"./p-mk64Fltq.js";const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this._data=void 0,this._style=void 0,this.observer=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}setupObserver(t){if(!t)return;const s=t.closest("db-table");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const a=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==a?void 0:a.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const i=s.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),a.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(i.name,`${o||""}${e?" "+e:""}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&a((()=>{const t=this._ref;if(!t)return;const s=t.querySelectorAll("thead tr th");s.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,a)=>{const e=s[a];if(e){const s=Array.from(e.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var s;return null===(s=t.textContent)||void 0===s?void 0:s.trim()})).filter(Boolean).join(" ");s&&(t.dataset.header=s)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([s,a])=>{t["--db-table-column-size-"+s]=a})),this._style=t}else this._style=void 0}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table"),this.setupObserver(this._ref),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,a,l,n,r;return e("div",{key:"7e6ea12b6cb4b2ddcc12262cd28bfec13baa55c0",class:d("db-table",this.className),style:this._style,"data-width":this.width,"data-size":this.size,"data-divider":this.divider,"data-variant":this.variant,"data-mobile-variant":this.mobileVariant,"data-show-caption":o(this.showCaption),"data-sticky-header":this.stickyHeader},e("table",{key:"99fc11d1bb68297550e973293f519ad21f6953a0",ref:t=>{this._ref=t},id:this.id},this.captionPlain?e("caption",null,this.captionPlain):e("slot",{name:"caption"}),this._data?e(i,null,(null===(t=this._data)||void 0===t?void 0:t.header)?e("db-table-head",{rows:null===(s=this._data)||void 0===s?void 0:s.header}):null,(null===(a=this._data)||void 0===a?void 0:a.body)?e("db-table-body",{rows:null===(l=this._data)||void 0===l?void 0:l.body}):null,(null===(n=this._data)||void 0===n?void 0:n.footer)?e("db-table-footer",{rows:null===(r=this._data)||void 0===r?void 0:r.footer}):null):e("slot",null)))}get rootElement(){return this}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}},[260,"db-table",{data:[1],mobileVariant:[1,"mobile-variant"],columnSizes:[16],className:[1,"classname"],width:[1],size:[1],divider:[1],variant:[1],showCaption:[8,"show-caption"],stickyHeader:[1,"sticky-header"],id:[1],captionPlain:[1,"caption-plain"],_data:[32],_style:[32],observer:[32]},void 0,{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["db-table","db-link","db-table-body","db-table-data-cell","db-table-footer","db-table-head","db-table-header-cell","db-table-row"].forEach((t=>{switch(t){case"db-table":customElements.get(l(t))||customElements.define(l(t),v);break;case"db-link":customElements.get(l(t))||n();break;case"db-table-body":customElements.get(l(t))||r();break;case"db-table-data-cell":customElements.get(l(t))||c();break;case"db-table-footer":customElements.get(l(t))||h();break;case"db-table-head":customElements.get(l(t))||b();break;case"db-table-header-cell":customElements.get(l(t))||u();break;case"db-table-row":customElements.get(l(t))||m()}}))};export{f as DbTable,p as defineCustomElement}
package/bundle/db-tabs.js CHANGED
@@ -1 +1 @@
1
- import{y as t,H as i,A as s,u as e,z as a,F as n,d as o,t as l}from"./p-CYYSsu3p.js";import{d as h}from"./p-B_bPnncM.js";import{d as r}from"./p-Cr_z1Jfi.js";import{d as c}from"./p-BnLhi6Lz.js";import{d}from"./p-in4Kv88F.js";const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=s(this,"indexChange"),this.tabSelect=s(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const i=t.scrollWidth>t.clientWidth;this.showScrollLeft=i&&t.scrollLeft>1,this.showScrollRight=i&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var i;let s=Number(this.arrowScrollDistance)||100;t&&(s*=-1),null===(i=this.scrollContainer)||void 0===i||i.scrollBy({top:0,left:s,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const i=t.querySelector('[role="tablist"]');if(i&&(i.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=i,this.evaluateScrollButtons(i),i.addEventListener("scroll",(()=>{this.evaluateScrollButtons(i)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(i)}));t.observe(i),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const i=Array.from(this._ref.getElementsByClassName("db-tab-item")),s=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of i){const a=i.indexOf(e),n=e.querySelector("label"),o=e.querySelector("input");if(o&&n){if(!o.id){const t=`${this._name}-tab-${a}`;n.setAttribute("for",t),o.id=t,o.setAttribute("name",this._name),s.length>a&&o.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&o.click()}}for(const t of s){if(t.id)continue;const i=s.indexOf(t);t.id=`${this._name}-tab-panel-${i}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${i}`)}}}handleChange(t){var i;if(t.stopPropagation(),t.target){const s=t.target.parentElement;if(s&&s.parentElement&&"LI"===(null===(i=s.parentElement)||void 0===i?void 0:i.nodeName)){const i=s.parentElement.parentElement;if(i){const s=i.parentElement;if(s){const e=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?n+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tabs"),this._name="tabs-"+(this.name||e()),this.initialized=!0,this.watch0Fn()}disconnectedCallback(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0}render(){var t,i,s,e,l,h;return a("div",{key:"7f8b9180b865394204747aa762291857513af90c",class:o("db-tabs",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(s=this.alignment)&&void 0!==s?s:"start","data-width":null!==(e=this.width)&&void 0!==e?e:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?a("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?a(n,null,a("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>a("db-tab-item",{key:this.name+"tab-item"+i,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,i)=>a("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?a("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,a("slot",{key:"a2833021bf993cf6aa130c9295f78b831c8d888e"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserver:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),u=b,f=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),b);break;case"db-button":customElements.get(l(t))||h();break;case"db-tab-item":customElements.get(l(t))||r();break;case"db-tab-list":customElements.get(l(t))||c();break;case"db-tab-panel":customElements.get(l(t))||d()}}))};export{u as DbTabs,f as defineCustomElement}
1
+ import{y as t,H as i,A as s,z as e,F as a,d as n,u as o,t as l}from"./p-CYYSsu3p.js";import{d as h}from"./p-CZ9SsTOA.js";import{d as r}from"./p-k5Hci0ok.js";import{d as c}from"./p-CHg_VPD9.js";import{d}from"./p-BmRO4X-P.js";const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=s(this,"indexChange"),this.tabSelect=s(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0,this.observer=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const i=t.scrollWidth>t.clientWidth;this.showScrollLeft=i&&t.scrollLeft>1,this.showScrollRight=i&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var i;let s=Number(this.arrowScrollDistance)||100;t&&(s*=-1),null===(i=this.scrollContainer)||void 0===i||i.scrollBy({top:0,left:s,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const i=t.querySelector('[role="tablist"]');if(i&&(i.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=i,this.evaluateScrollButtons(i),i.addEventListener("scroll",(()=>{this.evaluateScrollButtons(i)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(i)}));t.observe(i),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const i=Array.from(this._ref.getElementsByClassName("db-tab-item")),s=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of i){const a=i.indexOf(e),n=e.querySelector("label"),o=e.querySelector("input");if(o&&n){if(!o.id){const t=`${this._name}-tab-${a}`;n.setAttribute("for",t),o.id=t,o.setAttribute("name",this._name),s.length>a&&o.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&o.click()}}for(const t of s){if(t.id)continue;const i=s.indexOf(t);t.id=`${this._name}-tab-panel-${i}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${i}`)}}}handleChange(t){var i;if(t.stopPropagation(),t.target){const s=t.target.parentElement;if(s&&s.parentElement&&"LI"===(null===(i=s.parentElement)||void 0===i?void 0:i.nodeName)){const i=s.parentElement.parentElement;if(i){const s=i.parentElement;if(s){const e=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}setupObserver(t){if(!t)return;const i=t.closest("db-tabs");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tabs")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${e?" "+e:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tabs"),(()=>{this._name="tabs-"+(this.name||o()),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0,null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,i,s,o,l,h;return e("div",{key:"aca0d156b8d50c5951a982e5ab35d2644b4989e7",class:n("db-tabs",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(s=this.alignment)&&void 0!==s?s:"start","data-width":null!==(o=this.width)&&void 0!==o?o:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?e("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?e(a,null,e("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>e("db-tab-item",{key:this.name+"tab-item"+i,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,i)=>e("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?e("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,e("slot",{key:"b05907467917bb82f9ef6b9ce3774e52411fb822"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserver:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),u=b,f=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),b);break;case"db-button":customElements.get(l(t))||h();break;case"db-tab-item":customElements.get(l(t))||r();break;case"db-tab-list":customElements.get(l(t))||c();break;case"db-tab-panel":customElements.get(l(t))||d()}}))};export{u as DbTabs,f as defineCustomElement}
package/bundle/db-tag.js CHANGED
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CeDu282h.js";const p=o,r=s;export{p as DbTag,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-3Da4lo5j.js";const a=o,p=s;export{a as DbTag,p as defineCustomElement}
@@ -1 +1 @@
1
- import{y as s,H as i,A as t,h as a,f as e,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-CYYSsu3p.js";import{l as u,f as m,g as f,h as b,k as w,b as g,r as p,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-D6L0n3gO.js";import{d as k}from"./p-DMSIvqcA.js";const z=s(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var s;return!!(null!==(s=this.validMessage)&&void 0!==s?s:"valid"===this.validation)}handleValidation(){var s,i,t,d;(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,a()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,e((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u,a()&&(this._voiceOverFallback=this._invalidMessage,e((()=>this._voiceOverFallback=""),1e3)))}handleInput(s,i){this.input&&this.input.emit(s),this.handleValidation()}handleChange(s,i){this.change&&this.change.emit(s),this.handleValidation()}handleBlur(s){this.blur&&this.blur.emit(s)}handleFocus(s){this.focus&&this.focus.emit(s)}resetIds(){var s,i,t;const a=null!==(t=null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==t?t:"textarea-"+d();this._id=a,this._messageId=a+m,this._validMessageId=a+f,this._invalidMessageId=a+b}enableAttributePassing(s,i){const t=null==s?void 0:s.closest(i);if(s&&t){const i=t.attributes;for(let a=0;a<i.length;a++){const e=i.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))s.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)s.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=s.getAttribute("class");s.setAttribute(e.name,`${h?h+" ":""}${a}`),i?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var s,i;(null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var s;this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const s=this._id+m;this._messageId=s,this._validMessageId=this._id+f,this._invalidMessageId=this._id+b,h(this.message,this.showMessage)&&(this._descByIds=s),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const s=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),x(this._ref,{value:this.value,defaultValue:s},(s=>{this.handleChange(s,!0),this.handleInput(s,!0)}),i.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const s=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);s&&s.remove()}this.enableAttributePassing(this._ref,"db-textarea"),this.resetIds(),this._invalidMessage=this.invalidMessage||u,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var s;null===(s=this.abortController)||void 0===s||s.abort()}render(){var s,i,t,a,e,d;return l("div",{key:"54e6cdfacbb2aaf120b485926da7500e11a68177",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"4b4b364ba5c83cf99b3f05ef8a7fdca6ad94aca2",htmlFor:this._id},null!==(s=this.label)&&void 0!==s?s:y),l("textarea",{key:"975252d88460695bac18a6290ffa4175fd6830a4","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:s=>{this._ref=s},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(i=this.showResizer)||void 0===i||i),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly"),form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:s=>this.handleInput(s),onChange:s=>this.handleChange(s),onBlur:s=>this.handleBlur(s),onFocus:s=>this.handleFocus(s),value:null!==(a=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==a?a:"","aria-describedby":null!==(e=this.ariaDescribedBy)&&void 0!==e?e:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:g,rows:n(this.rows,p),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"6991559466d3a62e284ad2fa623b03c6c15e478a",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"548f46a7cc2d3489d3022d2e2b5d3a7654ebd372","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),_=z,I=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((s=>{switch(s){case"db-textarea":customElements.get(v(s))||customElements.define(v(s),z);break;case"db-infotext":customElements.get(v(s))||k()}}))};export{_ as DbTextarea,I as defineCustomElement}
1
+ import{y as i,H as s,A as t,h as e,f as a,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-CYYSsu3p.js";import{l as u,f as b,g as m,h as f,k as w,b as g,r as p,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-D6L0n3gO.js";import{d as k}from"./p-CewqZGHg.js";const z=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"textarea-"+d();this._id=e,this._messageId=e+b,this._validMessageId=e+m,this._invalidMessageId=e+f}setupObserver(i){if(!i)return;const s=i.closest("db-textarea");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-textarea")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),t.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+b;this._messageId=i,this._validMessageId=this._id+m,this._invalidMessageId=this._id+f,h(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),x(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s,t,e,a,d;return l("div",{key:"86667d91fc82e602b09ee517a82fff23d97966e7",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"27de9316b7e31d3f72b70ec38413d53a6aa54e3a",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("textarea",{key:"7316f18f473c980ba1cccf4fd52e84b8dc7a98cd","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(s=this.showResizer)||void 0===s||s),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly")||void 0,form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(e=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==e?e:"","aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:g,rows:n(this.rows,p),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"86ad7a246adc37d20e4b0314429202797520f39e",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"594923a0e9bb1ebd905c665c4f3d185b2f425bd5","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),_=z,O=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((i=>{switch(i){case"db-textarea":customElements.get(v(i))||customElements.define(v(i),z);break;case"db-infotext":customElements.get(v(i))||k()}}))};export{_ as DbTextarea,O as defineCustomElement}
@@ -1 +1 @@
1
- import{D as r,d as o}from"./p-BrBlnLrn.js";const s=r,n=o;export{s as DbTooltip,n as defineCustomElement}
1
+ import{D as o,d as s}from"./p-CotiEHZi.js";const t=o,i=s;export{t as DbTooltip,i as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,A as e,z as o,j as a,d as i,t as n}from"./p-CYYSsu3p.js";import{m as d}from"./p-BdL-nI5y.js";import{d as h}from"./p-CotiEHZi.js";const r=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.remove=e(this,"remove"),this.observer=void 0}handleRemove(t){t&&(t.stopPropagation(),this.remove&&this.remove.emit(t))}getRemoveButtonText(){return this.removeButton?this.removeButton:d}setupObserver(t){if(!t)return;const s=t.closest("db-tag");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tag")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let o=0;o<s.length;o++){const a=s.item(o);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),o=a.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(a.name,`${i||""}${o?` ${o}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tag"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,e;return o("div",{key:"22654726ea465c2b07942705dfcf72162c11e314",class:i("db-tag",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-semantic":this.semantic,"data-emphasis":this.emphasis,"data-icon":this.icon,"data-show-check-state":a(null===(e=this.showCheckState)||void 0===e||e,"showCheckState"),"data-show-icon":a(this.showIcon,"showIcon"),"data-no-text":a(this.noText,"noText"),"data-overflow":a(this.overflow,"overflow")},o("slot",{key:"284aa3b6bce1595939f667e8a511319879545e27",name:"content"}),this.text?this.text:null,o("slot",{key:"7471ead10bf5f95654444020e6b76d0b2f64486b"}),"removable"===this.behavior?o("button",{class:"db-button db-tab-remove-button","data-icon":"cross","data-size":"small","data-no-text":"true","data-variant":"ghost",type:"button",onClick:t=>this.handleRemove(t)},o("db-tooltip",{variant:"label"},this.getRemoveButtonText())):null)}get rootElement(){return this}},[260,"db-tag",{removeButton:[1,"remove-button"],id:[1],propOverrides:[16],className:[1,"classname"],semantic:[1],emphasis:[1],icon:[1],showCheckState:[8,"show-check-state"],showIcon:[8,"show-icon"],noText:[8,"no-text"],overflow:[8],text:[1],behavior:[1],observer:[32]}]);function c(){"undefined"!=typeof customElements&&["db-tag","db-tooltip"].forEach((t=>{switch(t){case"db-tag":customElements.get(n(t))||customElements.define(n(t),r);break;case"db-tooltip":customElements.get(n(t))||h()}}))}export{r as D,c as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as a,z as e,d as s,t as n,l}from"./p-CYYSsu3p.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,a){const e=null==t?void 0:t.closest(a);if(t&&e){const a=e.attributes;for(let s=0;s<a.length;s++){const n=a.item(s);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const a=n.value.includes("hydrated"),s=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${s?` ${s}`:""}`),a?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-data-cell")}render(){return e("td",{key:"e6614ac09ac484540ad119f807bea075521419cd",class:s("db-table-data-cell",this.className),ref:t=>{this._ref=t},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,colSpan:l(this.colSpan,this.colspan),rowSpan:l(this.rowSpan,this.rowspan),headers:this.headers},e("slot",{key:"bd353375cc862b5d5adea84545a5b5a63f1517e1"}))}get rootElement(){return this}},[260,"db-table-data-cell",{id:[1],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1]}]);function d(){"undefined"!=typeof customElements&&["db-table-data-cell"].forEach((t=>{"db-table-data-cell"===t&&(customElements.get(n(t))||customElements.define(n(t),i))}))}export{i as D,d}
@@ -0,0 +1 @@
1
+ import{y as t,H as i,A as e,k as s,z as a,j as n,d,t as h}from"./p-CYYSsu3p.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.toggle=e(this,"toggle"),this._open=!1,this._name=void 0,this.initialized=!1,this.observer=void 0}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(i,e)=>{t.call(this._ref,i,e),"name"===i&&(this._name=e)}}}handleToggle(t){null==t||t.preventDefault();const i=!this._open;this.toggle&&this.toggle.emit(i),void 0===this.open&&(this._open=i)}setupObserver(t){if(!t)return;const i=t.closest("db-accordion-item");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const e=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-accordion-item")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const e=null==t?void 0:t.closest(i);if(t&&e){const i=e.attributes;for(let s=0;s<i.length;s++){const a=i.item(s);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),s=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${s?` ${s}`:""}`),i?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}watch0Fn(){}watch0(){this.watch0Fn()}watch1Fn(){this.name&&(this._name=this.name)}watch1(){this.watch1Fn()}watch2Fn(){const t=s(this.open,"open");void 0!==t&&(this._open=t)}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-accordion-item"),(()=>{this.defaultOpen&&(this._open=this.defaultOpen),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i;return a("li",{key:"3c70e3a9542e8bd7d96e725381caf73e3ac7296a",class:d("db-accordion-item",this.className),id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id},a("details",{key:"326f88378a110e2eae8087deec3d333fa85b206e","aria-disabled":n(this.disabled,"disabled"),ref:t=>{this._ref=t},name:this._name,open:this._open},a("summary",{key:"0dd759c18b3ec0bb4110613b073a248936827bfb",onClick:t=>this.handleToggle(t)},this.headlinePlain?this.headlinePlain:null,this.headlinePlain?null:a("slot",{name:"headline"})),a("div",{key:"44e7c57155828aa6465bde02aa4717e3161673f2"},this.text?this.text:null,a("slot",{key:"015b11e09045b96c43ec815916611ebd4b7ac4e3"}))))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],name:[{watch1:0}],open:[{watch2:0}]}}},[260,"db-accordion-item",{defaultOpen:[4,"default-open"],name:[1],open:[8],id:[1],propOverrides:[16],className:[1,"classname"],disabled:[8],headlinePlain:[1,"headline-plain"],text:[1],_open:[32],_name:[32],initialized:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}],name:[{watch1:0}],open:[{watch2:0}]}]);function o(){"undefined"!=typeof customElements&&["db-accordion-item"].forEach((t=>{"db-accordion-item"===t&&(customElements.get(h(t))||customElements.define(h(t),c))}))}export{c as D,o as d}
@@ -0,0 +1 @@
1
+ import{y as e,H as t,z as s,u as a,d as l,t as d}from"./p-CYYSsu3p.js";import{d as i}from"./p-D1orcIJf.js";import{d as r}from"./p-BEcb3EOO.js";import{d as o}from"./p-C4iD-won.js";import{d as n}from"./p-mk64Fltq.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.observer=void 0}getCells(e){return null==e?void 0:e.map((e=>Object.assign(Object.assign({},e),{headerCell:!0})))}setupObserver(e){if(!e)return;const t=e.closest("db-table-head");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((e=>{var t;const s=e.target.attributes.getNamedItem(null!==(t=e.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==e.oldValue}))&&this.enableAttributePassing(e,"db-table-head")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const l=t.item(a);if(l&&"data-density"!==l.name&&(l.name.startsWith("data-")||l.name.startsWith("aria-")))l.value?e.setAttribute(l.name,l.value):e.removeAttribute(l.name),s.removeAttribute(l.name);else if(l&&["style"].includes(l.name))e.setAttribute(l.name,l.value),s.removeAttribute(l.name);else if(l&&"class"===l.name){const t=l.value.includes("hydrated"),a=l.value.replace("hydrated","").trim(),d=e.getAttribute("class");e.setAttribute(l.name,`${d||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(l.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-head"),this.setupObserver(this._ref)}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}render(){var e;return s("thead",{key:"340673440fd36e5522f70683bef5a4356f73cb69",class:l("db-table-head",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var l,d,i;return s("db-table-row",{class:null!==(l=e.className)&&void 0!==l?l:e.class,key:`${null!==(i=null!==(d=e.id)&&void 0!==d?d:this.id)&&void 0!==i?i:a()}-table-head-row-${t}`,cells:this.getCells(e.cells),subHeaderEmphasis:e.subHeaderEmphasis,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-head",{id:[1],className:[1,"classname"],rows:[16],observer:[32]}]);function b(){"undefined"!=typeof customElements&&["db-table-head","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-head":customElements.get(d(e))||customElements.define(d(e),c);break;case"db-link":customElements.get(d(e))||i();break;case"db-table-data-cell":customElements.get(d(e))||r();break;case"db-table-header-cell":customElements.get(d(e))||o();break;case"db-table-row":customElements.get(d(e))||n()}}))}export{c as D,b as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as e,d as n,t as a}from"./p-CYYSsu3p.js";const i=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-tab-panel");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tab-panel")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let n=0;n<s.length;n++){const a=s.item(n);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),n=a.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(a.name,`${i||""}${n?` ${n}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-panel"),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("section",{key:"d7179207343d512194f69f6d99a34897c146c00a",class:n("db-tab-panel",this.className),role:"tabpanel",ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},this.content?this.content:null,e("slot",{key:"dc745b430dd17f253cf9403c28f6c2cbd5b59020"}))}get rootElement(){return this}},[260,"db-tab-panel",{className:[1,"classname"],id:[1],propOverrides:[16],content:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-tab-panel"].forEach((t=>{"db-tab-panel"===t&&(customElements.get(a(t))||customElements.define(a(t),i))}))}export{i as D,d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as e,d as i,t as l}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-list");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-list")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const l=s.item(i);if(l&&"data-density"!==l.name&&(l.name.startsWith("data-")||l.name.startsWith("aria-")))l.value?t.setAttribute(l.name,l.value):t.removeAttribute(l.name),e.removeAttribute(l.name);else if(l&&["style"].includes(l.name))t.setAttribute(l.name,l.value),e.removeAttribute(l.name);else if(l&&"class"===l.name){const s=l.value.includes("hydrated"),i=l.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(l.name,`${d||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(l.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"2dee04c035ef27c7f398805eee1c77e7a3ad893c",class:i("db-custom-select-list",this.className),role:this.multiple?"group":"radiogroup","aria-label":this.label,ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},e("ul",{key:"64b6f1efc4344d7e274a5dd3ad78ce80983a8b77"},e("slot",{key:"26e0de28808a85216b9f1dcb8f788928a0c62c15"})))}get rootElement(){return this}},[260,"db-custom-select-list",{multiple:[4],label:[1],id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]);function c(){"undefined"!=typeof customElements&&["db-custom-select-list"].forEach((t=>{"db-custom-select-list"===t&&(customElements.get(l(t))||customElements.define(l(t),d))}))}export{d as D,c as d}
@@ -0,0 +1 @@
1
+ import{y as i,H as t,A as s,h as e,f as a,p as h,i as d,u as n,z as l,k as o,n as c,l as r,m as u,e as v,j as m,o as g,d as p,t as b}from"./p-CYYSsu3p.js";import{l as f,f as w,g as y,h as k,j as I,k as x,b as z,a as L}from"./p-BdL-nI5y.js";import{c as _}from"./p-D6L0n3gO.js";import{d as M}from"./p-CewqZGHg.js";const O=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._dataListId=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength||this.pattern)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:x,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||f,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,t){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,t){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getDataList(){const i=this.dataList;return Array.from((d(i)?null==i?void 0:i.map((i=>({value:i,label:void 0}))):i)||[])}resetIds(){var i,t,s;const e=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`input-${n()}`;this._id=e,this._messageId=e+w,this._validMessageId=e+y,this._invalidMessageId=e+k,this._dataListId=e+I}setupObserver(i){if(!i)return;const t=i.closest("db-input");t&&!this.observer&&(this.observer=new MutationObserver((t=>{t.some((i=>{var t;const s=i.target.attributes.getNamedItem(null!==(t=i.attributeName)&&void 0!==t?t:"");return(null==s?void 0:s.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-input")})),this.observer.observe(t,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let e=0;e<t.length;e++){const a=t.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?` ${e}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||f}watch1(){this.watch1Fn()}watch2Fn(){var i;if(this._id){const t=this._id+w;this._messageId=t,this._validMessageId=this._id+y,this._invalidMessageId=this._id+k,this._dataListId=null!==(i=this.dataListId)&&void 0!==i?i:this._id+I,h(this.message,this.showMessage)&&(this._descByIds=t),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let t=this.abortController;t||(t=new AbortController,this.abortController=t),_(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),t.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-input"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||f})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,t;null===(i=this.abortController)||void 0===i||i.abort(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var i,t,s,e,a,d,n,b;return l("div",{key:"c8140e1e7d447fd4d65829dde8090110d0e421dc",class:p("db-input",this.className),"data-variant":this.variant,"data-hide-label":g(this.showLabel),"data-show-icon":m(this.showIconLeading,"showIconLeading")||m(this.showIcon,"showIcon"),"data-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":g(this.showRequiredAsterisk),"data-show-icon-trailing":m(this.showIconTrailing,"showIconTrailing")},l("label",{key:"7ce81ede48602af85d5bf770c01ef0731d1774ec",htmlFor:this._id},null!==(t=this.label)&&void 0!==t?t:L),l("input",{key:"880aea669e5decea1d0c865bd27981ab082c9fec","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,name:this.name,type:this.type||"text",multiple:o(this.multiple,"multiple"),accept:this.accept,placeholder:null!==(s=this.placeholder)&&void 0!==s?s:z,disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),step:u(this.step),value:null!==(a=null!==(e=this.value)&&void 0!==e?e:this._value)&&void 0!==a?a:"",maxLength:r(this.maxLength,this.maxlength),minLength:r(this.minLength,this.minlength),max:c(this.max,this.type),min:c(this.min,this.type),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly")||void 0,form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:o(this.autofocus,"autofocus"),enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),list:this.dataList&&this._dataListId,"aria-describedby":null!==(d=this.ariaDescribedBy)&&void 0!==d?d:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes(null!==(n=this.type)&&void 0!==n?n:"")&&v()?"textbox":void 0}),this.dataList?l("datalist",{id:this._dataListId},null===(b=this.getDataList())||void 0===b?void 0:b.map((i=>l("option",{key:this._dataListId+"-option-"+i.value,value:i.value},i.label)))):null,l("slot",{key:"c119d0f17fc00de285fba88f3748235b914691ff"}),h(this.message,this.showMessage)?l("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||x):null,l("db-infotext",{key:"2ee3dc9555e0a21f6645807077c0b1af6dd08043",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),l("span",{key:"5a3a55b62468522a3198957be4b5a72c818316b4","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-input",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],dataListId:[1,"data-list-id"],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],pattern:[1],dataList:[16],className:[1,"classname"],variant:[1],showLabel:[8,"show-label"],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],showRequiredAsterisk:[8,"show-required-asterisk"],showIconTrailing:[8,"show-icon-trailing"],label:[1],fieldSizing:[1,"field-sizing"],name:[1],type:[1],multiple:[8],accept:[1],placeholder:[1],disabled:[8],step:[8],maxlength:[8],minlength:[8],max:[8],min:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],size:[2],autocomplete:[1],autofocus:[8],enterkeyhint:[1],inputmode:[1],ariaDescribedBy:[1,"aria-described-by"],messageSize:[1,"message-size"],messageIcon:[1,"message-icon"],validMessageSize:[1,"valid-message-size"],invalidMessageSize:[1,"invalid-message-size"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_dataListId:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]);function F(){"undefined"!=typeof customElements&&["db-input","db-infotext"].forEach((i=>{switch(i){case"db-input":customElements.get(b(i))||customElements.define(b(i),O);break;case"db-infotext":customElements.get(b(i))||M()}}))}export{O as D,F as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,A as e,w as i,k as a,f as d,z as o,j as n,d as r,t as h}from"./p-CYYSsu3p.js";import{s as c}from"./p-BdL-nI5y.js";import{d as l}from"./p-CZ9SsTOA.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=e(this,"close"),this.initialized=!1,this.observer=void 0}handleClose(t,s){var e;t&&(i(t)?"Escape"===t.key&&(t.preventDefault(),this.close&&this.close.emit(t)):(s&&(t.stopPropagation(),this.close&&this.close.emit(t)),"DIALOG"===(null===(e=t.target)||void 0===e?void 0:e.nodeName)&&"click"===t.type&&"none"!==this.backdrop&&this.close&&this.close.emit(t)))}handleDialogOpen(){if(this._ref){const t=a(this.open,"open");t&&!this._ref.open&&(this.dialogContainerRef&&this.dialogContainerRef.removeAttribute("data-transition"),"absolute"===this.position||"none"===this.backdrop||"inside"===this.variant?this._ref.show():this._ref.showModal(),d((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),d((()=>{var t;null===(t=this._ref)||void 0===t||t.close()}),401))}}setupObserver(t){if(!t)return;const s=t.closest("db-drawer");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-drawer")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const a=s.item(i);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}watch0Fn(){this.handleDialogOpen()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&"absolute"===this.position){const t=this._ref.parentElement;t&&(t.style.position="relative")}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-drawer"),(()=>{this.handleDialogOpen(),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,e;return o("dialog",{key:"68343ae9da612485135f6e0b01bd581de86d1dc6",class:"db-drawer",id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,ref:t=>{this._ref=t},onClick:t=>this.handleClose(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},o("article",{key:"b6a860730f150e365c684a2ed362f8ad3e84e862",class:r("db-drawer-container",this.className),ref:t=>{this.dialogContainerRef=t},"data-spacing":this.spacing,"data-width":this.width,"data-direction":this.direction,"data-rounded":n(this.rounded,"rounded")},o("header",{key:"d8347218a266eb48f2b86717d6ba210c907f4c18",class:"db-drawer-header"},o("div",{key:"6e9a89da493fa209e09bf1ddb5a5719b52606e62",class:"db-drawer-header-text"},o("slot",{key:"503445639dd0a3e51a6f99f5aff3eb039e6d34eb",name:"drawerHeader"})),o("db-button",{key:"39400683f7e2a05c8c8dd33be6c9913d72d5454d",class:"button-close-drawer",icon:"cross",variant:"ghost",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t,!0)},null!==(e=this.closeButtonText)&&void 0!==e?e:c)),o("div",{key:"f0e4ebb273ea7f53fd1c026f7f50a16f89ab3259",class:"db-drawer-content"},o("slot",{key:"e1ead064fd822ca9fd33be44af5fd52801ba33ea"}))))}get rootElement(){return this}static get watchers(){return{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}}},[260,"db-drawer",{open:[8],position:[1],backdrop:[1],variant:[1],id:[1],propOverrides:[16],direction:[1],className:[1,"classname"],spacing:[1],width:[1],rounded:[8],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"],initialized:[32],observer:[32]},void 0,{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}]);function u(){"undefined"!=typeof customElements&&["db-drawer","db-button"].forEach((t=>{switch(t){case"db-drawer":customElements.get(h(t))||customElements.define(h(t),b);break;case"db-button":customElements.get(h(t))||l()}}))}export{b as D,u as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as e,z as a,j as s,d as n,t as l,l as i}from"./p-CYYSsu3p.js";const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,e){const a=null==t?void 0:t.closest(e);if(t&&a){const e=a.attributes;for(let s=0;s<e.length;s++){const n=e.item(s);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),a.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),a.removeAttribute(n.name);else if(n&&"class"===n.name){const e=n.value.includes("hydrated"),s=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${s?` ${s}`:""}`),e?a.setAttribute("class","hydrated"):a.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-header-cell")}render(){return a("th",{key:"b459f2e2ea9b4dda6909d1c8f02e1cd22b16a712",class:n("db-table-header-cell",this.className),ref:t=>{this._ref=t},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,"data-no-text":s(this.noText),scope:this.scope,colSpan:i(this.colSpan,this.colspan),rowSpan:i(this.rowSpan,this.rowspan),headers:this.headers,abbr:this.abbr},a("slot",{key:"ec650ba68a8623b9729985f27822d94087327d74"}))}get rootElement(){return this}},[260,"db-table-header-cell",{id:[1],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],noText:[8,"no-text"],scope:[1],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1],abbr:[1]}]);function o(){"undefined"!=typeof customElements&&["db-table-header-cell"].forEach((t=>{"db-table-header-cell"===t&&(customElements.get(l(t))||customElements.define(l(t),d))}))}export{d as D,o as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as e,d as i,t as a}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-tab-list");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tab-list")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const a=s.item(i);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"2538ba05ecad54c8c29dda93a08acb61faf02309",class:i("db-tab-list",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},e("ul",{key:"86824302eb2cc92ca45a61d8bdec0f34cd679db6",role:"tablist"},e("slot",{key:"b56406b1e0291a29905b599531c0dccd9c035504"})))}get rootElement(){return this}},[260,"db-tab-list",{id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]);function n(){"undefined"!=typeof customElements&&["db-tab-list"].forEach((t=>{"db-tab-list"===t&&(customElements.get(a(t))||customElements.define(a(t),d))}))}export{d as D,n as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as i,A as s,z as n,j as a,k as e,d as o,t as d}from"./p-CYYSsu3p.js";const h=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.click=s(this,"click"),this.observer=void 0}getButtonType(){return this.type?this.type:this.click?"button":"submit"}setupObserver(t){if(!t)return;const i=t.closest("db-button");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-button")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let n=0;n<i.length;n++){const a=i.item(n);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),n=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e||""}${n?` ${n}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-button"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,s;return n("button",{key:"b3c660955f667a8f8c93bb7c83360a44a5af3d1f",class:o("db-button",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,type:this.getButtonType(),disabled:e(this.disabled,"disabled"),"data-icon":null!==(s=this.iconLeading)&&void 0!==s?s:this.icon,"data-show-icon":a(this.showIconLeading,"showIconLeading")||a(this.showIcon,"showIcon"),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":a(this.showIconTrailing,"showIconTrailing"),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-wrap":a(this.wrap,"wrap"),"data-no-text":a(this.noText,"noText"),name:this.name,form:this.form,value:this.value},this.text?this.text:null,n("slot",{key:"eb9c13e9573f61cdb3e61b5614fec0ad656c02b8"}))}get rootElement(){return this}},[260,"db-button",{type:[1],id:[1],propOverrides:[16],className:[1,"classname"],disabled:[8],iconLeading:[1,"icon-leading"],icon:[1],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconTrailing:[1,"icon-trailing"],showIconTrailing:[8,"show-icon-trailing"],size:[1],width:[1],variant:[1],wrap:[8],noText:[8,"no-text"],name:[1],form:[1],value:[1],text:[1],observer:[32]}]);function c(){"undefined"!=typeof customElements&&["db-button"].forEach((t=>{"db-button"===t&&(customElements.get(d(t))||customElements.define(d(t),h))}))}export{h as D,c as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as e,j as i,d as n,t as a}from"./p-CYYSsu3p.js";const o=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-infotext");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-infotext")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-infotext"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,a;return e("span",{key:"e1a06bb9c2d0f88953a7281cdda505b392db609c",class:n("db-infotext",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-wrap":i(this.wrap,"wrap"),"data-show-icon-leading":i(null===(a=this.showIcon)||void 0===a||a,"showIcon")},this.text?this.text:null,e("slot",{key:"68b5e9bc974cf49e25470cba30b142495e06c72f"}))}get rootElement(){return this}},[260,"db-infotext",{id:[1],propOverrides:[16],className:[1,"classname"],icon:[1],semantic:[1],size:[1],wrap:[8],showIcon:[8,"show-icon"],text:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-infotext"].forEach((t=>{"db-infotext"===t&&(customElements.get(a(t))||customElements.define(a(t),o))}))}export{o as D,d}
@@ -0,0 +1 @@
1
+ import{y as t,H as i,f as s,u as e,z as a,j as o,d as h,t as n}from"./p-CYYSsu3p.js";import{D as d}from"./p-BdL-nI5y.js";import{D as l}from"./p-DJTpgiBy.js";import{b as r}from"./p-DOPXnIzL.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this._id=d,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._attachedParent=void 0,this._attachedId=void 0,this._activeTriggerCount=0,this._boundListeners=[],this.observer=void 0}handleClick(t){t.stopPropagation()}handleEscape(t){t&&"Escape"!==t.key||!this._ref||"visible"!==getComputedStyle(this._ref).visibility||this.getParent().blur()}getParent(){let t=this._ref.parentElement;return t&&t.localName.includes("tooltip")&&(t=t.parentElement),t}handleAutoPlacement(t){t&&this._ref&&s((()=>{var i;this._ref&&r(this._ref,t,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t,i){var s,e;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.contains(this._ref))&&this.handleAutoPlacement(i)}handleLeave(){var t,i,s;this._activeTriggerCount=Math.max((null!==(t=this._activeTriggerCount)&&void 0!==t?t:0)-1,0),(null!==(i=this._activeTriggerCount)&&void 0!==i?i:0)>0||(this._documentScrollListenerCallbackId&&((new l).removeCallback(this._documentScrollListenerCallbackId),this._documentScrollListenerCallbackId=void 0),null===(s=this._observer)||void 0===s||s.unobserve(this.getParent()))}handleEnter(t){var i,s;this._activeTriggerCount=(null!==(i=this._activeTriggerCount)&&void 0!==i?i:0)+1,1===this._activeTriggerCount&&(this._documentScrollListenerCallbackId=(new l).addCallback((i=>this.handleDocumentScroll(i,t))),null===(s=this._observer)||void 0===s||s.observe(this.getParent())),this.handleAutoPlacement(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"tooltip-"+e()}_detachListeners(){var t,i,s;const e=this._documentScrollListenerCallbackId;e&&((new l).removeCallback(e),this._documentScrollListenerCallbackId=void 0),null===(t=this._observer)||void 0===t||t.disconnect(),this._observer=void 0,this._activeTriggerCount=0,(null!==(i=this._boundListeners)&&void 0!==i?i:[]).forEach((t=>{t.parent.removeEventListener(t.type,t.fn)})),this._boundListeners=[];const a=this._attachedParent;if(a){const t=null!==(s=this._attachedId)&&void 0!==s?s:this._id,i=a.querySelectorAll(".db-tooltip"),e=Array.from(i).some((t=>t!==this._ref));"true"!==a.dataset.hasTooltip||e||delete a.dataset.hasTooltip,a.getAttribute("aria-labelledby")===t&&a.removeAttribute("aria-labelledby"),a.getAttribute("aria-describedby")===t&&a.removeAttribute("aria-describedby"),this._attachedParent=void 0,this._attachedId=void 0}}setupObserver(t){if(!t)return;const i=t.closest("db-tooltip");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tooltip")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(a.name,`${o||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref&&this.initialized&&this._id){const i=this.getParent();if(i){this.handleAutoPlacement(i);const s=()=>this.handleEnter(i),e=()=>this.handleLeave(),a=t=>this.handleEscape(t);i.addEventListener("mouseenter",s),i.addEventListener("focusin",s),i.addEventListener("keydown",a),i.addEventListener("mouseleave",e),i.addEventListener("focusout",e),this._boundListeners=[...null!==(t=this._boundListeners)&&void 0!==t?t:[],{parent:i,type:"mouseenter",fn:s},{parent:i,type:"focusin",fn:s},{parent:i,type:"keydown",fn:a},{parent:i,type:"mouseleave",fn:e},{parent:i,type:"focusout",fn:e}],i.dataset.hasTooltip="true",i.setAttribute("label"===this.variant?"aria-labelledby":"aria-describedby",this._id),this._attachedParent=i,this._attachedId=this._id}"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));i&&!i.isIntersecting&&this.handleEscape(!1)}))),this.initialized=!1}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tooltip"),(()=>{this.resetIds(),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t;this._detachListeners(),null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i;return a("i",{key:"8b8269b2bf4c0708c437a33101537999ab9035b5",class:h("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-wrap":o(this.wrap,"wrap"),"data-animation":o(null===(t=this.animation)||void 0===t||t,"animation"),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":o(null===(i=this.showArrow)||void 0===i||i,"showArrow"),"data-placement":this.placement,onClick:t=>this.handleClick(t)},this.text?this.text:null,a("slot",{key:"54c19cf96a0e2ce8be7b345f149d484a6498c3a1"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}},[260,"db-tooltip",{id:[1],propOverrides:[16],variant:[1],placement:[1],className:[1,"classname"],emphasis:[1],wrap:[8],animation:[8],delay:[1],width:[1],showArrow:[8,"show-arrow"],text:[1],_id:[32],initialized:[32],_documentScrollListenerCallbackId:[32],_observer:[32],_attachedParent:[32],_attachedId:[32],_activeTriggerCount:[32],_boundListeners:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}]);function u(){"undefined"!=typeof customElements&&["db-tooltip"].forEach((t=>{"db-tooltip"===t&&(customElements.get(n(t))||customElements.define(n(t),c))}))}export{c as D,u as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as e,j as i,d as a,t as r}from"./p-CYYSsu3p.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-link");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-link")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const a=s.item(i);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),r=t.getAttribute("class");t.setAttribute(a.name,`${r||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-link"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,r,n;return e("a",{key:"a5c2e75c4243fa0d64c60b974c522347469e75b3",class:a("db-link",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,href:this.href,target:this.target,rel:this.rel,role:this.role,referrerPolicy:null!==(r=this.referrerpolicy)&&void 0!==r?r:this.referrerPolicy,hrefLang:this.hreflang,"aria-disabled":i(this.disabled,"disabled"),tabIndex:this.disabled?-1:0,"data-size":this.size,"data-show-icon-trailing":i(null===(n=this.showIcon)||void 0===n||n,"showIcon"),"data-variant":this.variant,"data-content":this.content||"internal","data-wrap":i(this.wrap,"wrap")},this.text?this.text:null,e("slot",{key:"7cac380bf21256a51a3815e922687ddf4ad7b425"}))}get rootElement(){return this}},[260,"db-link",{id:[1],propOverrides:[16],className:[1,"classname"],href:[1],target:[1],rel:[1],role:[1],referrerpolicy:[1],referrerPolicy:[1,"referrer-policy"],hreflang:[1],disabled:[8],size:[1],showIcon:[8,"show-icon"],variant:[1],content:[1],wrap:[8],text:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-link"].forEach((t=>{"db-link"===t&&(customElements.get(r(t))||customElements.define(r(t),n))}))}export{n as D,d}
@@ -0,0 +1 @@
1
+ import{y as e,H as t,z as s,u as a,d,t as l}from"./p-CYYSsu3p.js";import{d as o}from"./p-D1orcIJf.js";import{d as b}from"./p-BEcb3EOO.js";import{d as i}from"./p-C4iD-won.js";import{d as n}from"./p-mk64Fltq.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?e.setAttribute(d.name,d.value):e.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))e.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),l=e.getAttribute("class");e.setAttribute(d.name,`${l||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-body")}render(){var e;return s("tbody",{key:"b6033bbe9cdcdb6bb9d292f68e980a6737fef9fa",class:d("db-table-body",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var d,l,o;return s("db-table-row",{class:null!==(d=e.className)&&void 0!==d?d:e.class,key:`${null!==(o=null!==(l=e.id)&&void 0!==l?l:this.id)&&void 0!==o?o:a()}-table-body-row-${t}`,cells:e.cells,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-body",{id:[1],className:[1,"classname"],rows:[16]}]);function r(){"undefined"!=typeof customElements&&["db-table-body","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-body":customElements.get(l(e))||customElements.define(l(e),c);break;case"db-link":customElements.get(l(e))||o();break;case"db-table-data-cell":customElements.get(l(e))||b();break;case"db-table-header-cell":customElements.get(l(e))||i();break;case"db-table-row":customElements.get(l(e))||n()}}))}export{c as D,r as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as e,d,t as o}from"./p-CYYSsu3p.js";const i=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.width="fixed",this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-dropdown");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-dropdown")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let d=0;d<s.length;d++){const o=s.item(d);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))o.value?t.setAttribute(o.name,o.value):t.removeAttribute(o.name),e.removeAttribute(o.name);else if(o&&["style"].includes(o.name))t.setAttribute(o.name,o.value),e.removeAttribute(o.name);else if(o&&"class"===o.name){const s=o.value.includes("hydrated"),d=o.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(o.name,`${i||""}${d?` ${d}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(o.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-dropdown"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("article",{key:"49bd2cef7c2c04b2ae3696fea83057858a59fd9a",class:d("db-custom-select-dropdown db-card",this.className),"data-spacing":"none",ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-width":this.width},e("slot",{key:"89ceec1851f4ffdb27f99b5f301e70784607c2c8"}))}get rootElement(){return this}},[260,"db-custom-select-dropdown",{id:[1],propOverrides:[16],className:[1,"classname"],width:[1],observer:[32]}]);function n(){"undefined"!=typeof customElements&&["db-custom-select-dropdown"].forEach((t=>{"db-custom-select-dropdown"===t&&(customElements.get(o(t))||customElements.define(o(t),i))}))}export{i as D,n as d}
@@ -0,0 +1 @@
1
+ import{y as e,H as t,z as s,u as a,d as o,t as l}from"./p-CYYSsu3p.js";import{d}from"./p-D1orcIJf.js";import{d as r}from"./p-BEcb3EOO.js";import{d as c}from"./p-C4iD-won.js";import{d as i}from"./p-mk64Fltq.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const o=t.item(a);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))o.value?e.setAttribute(o.name,o.value):e.removeAttribute(o.name),s.removeAttribute(o.name);else if(o&&["style"].includes(o.name))e.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"class"===o.name){const t=o.value.includes("hydrated"),a=o.value.replace("hydrated","").trim(),l=e.getAttribute("class");e.setAttribute(o.name,`${l||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(o.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-footer")}render(){var e;return s("tfoot",{key:"735f3ce4c1d6a3305993a8de60c797e9ce2bcd20",class:o("db-table-footer",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var o,l,d;return s("db-table-row",{class:null!==(o=e.className)&&void 0!==o?o:e.class,key:`${null!==(d=null!==(l=e.id)&&void 0!==l?l:this.id)&&void 0!==d?d:a()}-table-footer-row-${t}`,cells:e.cells,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-footer",{id:[1],className:[1,"classname"],rows:[16]}]);function b(){"undefined"!=typeof customElements&&["db-table-footer","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-footer":customElements.get(l(e))||customElements.define(l(e),n);break;case"db-link":customElements.get(l(e))||d();break;case"db-table-data-cell":customElements.get(l(e))||r();break;case"db-table-header-cell":customElements.get(l(e))||c();break;case"db-table-row":customElements.get(l(e))||i()}}))}export{n as D,b as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,A as i,k as e,z as c,j as h,d as a,t as o}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.change=i(this,"change"),this.hasDivider=!1,this.observer=void 0}handleChange(t){t.stopPropagation(),this.change&&this.change.emit(t)}getIconTrailing(){if(!this.isGroupTitle&&"checkbox"!==this.type)return e(this.checked,"checked")?"check":"x_placeholder"}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-list-item");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const i=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==i?void 0:i.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-custom-select-list-item")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let e=0;e<s.length;e++){const c=s.item(e);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))c.value?t.setAttribute(c.name,c.value):t.removeAttribute(c.name),i.removeAttribute(c.name);else if(c&&["style"].includes(c.name))t.setAttribute(c.name,c.value),i.removeAttribute(c.name);else if(c&&"class"===c.name){const s=c.value.includes("hydrated"),e=c.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(c.name,`${h||""}${e?` ${e}`:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(c.name)}}}}watch0Fn(){this.hasDivider=Boolean(this.isGroupTitle||this.showDivider)}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select-list-item"),this.setupObserver(this._ref),this.watch0Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return c("li",{key:"cb467f74569cd0505dab2ac02a9b375de8f5a9bc",class:a("db-custom-select-list-item",this.className,{"db-checkbox":"checkbox"===this.type&&!this.isGroupTitle,"db-radio":"checkbox"!==this.type&&!this.isGroupTitle}),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-divider":h(this.hasDivider,"hasDivider")},this.isGroupTitle?c("span",null,this.groupTitle):c("label",{"data-icon":"checkbox"!==this.type&&this.icon?this.icon:void 0,"data-show-icon":h(this.showIcon,"showIcon"),"data-icon-trailing":this.getIconTrailing()},c("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:e(this.checked,"checked"),disabled:e(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),this.label?this.label:null,c("slot",null)))}get rootElement(){return this}static get watchers(){return{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}}},[260,"db-custom-select-list-item",{isGroupTitle:[4,"is-group-title"],showDivider:[4,"show-divider"],type:[1],checked:[8],id:[1],propOverrides:[16],className:[1,"classname"],groupTitle:[1,"group-title"],icon:[1],showIcon:[8,"show-icon"],name:[1],disabled:[8],value:[8],label:[1],hasDivider:[32],observer:[32]},void 0,{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}]);function l(){"undefined"!=typeof customElements&&["db-custom-select-list-item"].forEach((t=>{"db-custom-select-list-item"===t&&(customElements.get(o(t))||customElements.define(o(t),d))}))}export{d as D,l as d}