@db-ux/wc-core-components 4.11.1 → 4.12.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 (350) hide show
  1. package/CHANGELOG.md +23 -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/index.js +1 -1
  48. package/bundle/{p-D9RSX1St.js → p-2eQDIPlF.js} +1 -1
  49. package/bundle/p-BFeR7jXy.js +1 -0
  50. package/bundle/p-BQov9sQb.js +1 -0
  51. package/bundle/{p-CewqZGHg.js → p-BpO8Ok-r.js} +1 -1
  52. package/bundle/{p-k5Hci0ok.js → p-C0JLpZ9Q.js} +1 -1
  53. package/bundle/p-C0q9XJSc.js +1 -0
  54. package/bundle/{p-BEcb3EOO.js → p-C2w7ILj8.js} +1 -1
  55. package/bundle/p-C47AKJPy.js +1 -0
  56. package/bundle/{p-CHg_VPD9.js → p-C9llbu6g.js} +1 -1
  57. package/bundle/{p-BuBrj57D.js → p-C_qYW0Kh.js} +1 -1
  58. package/bundle/p-Cc5hdI0x.js +1 -0
  59. package/bundle/{p-mk64Fltq.js → p-Cn5NdjPW.js} +1 -1
  60. package/bundle/{p-3Da4lo5j.js → p-CuC4YsIB.js} +1 -1
  61. package/bundle/p-DTM6Wcbf.js +1 -0
  62. package/bundle/{p-CZ9SsTOA.js → p-DVuZmW_J.js} +1 -1
  63. package/bundle/{p-BxZ0zFXf.js → p-DcgghWWs.js} +1 -1
  64. package/bundle/p-DiEfz0o1.js +1 -0
  65. package/bundle/{p-DbgzEek1.js → p-G57oLrr4.js} +1 -1
  66. package/bundle/{p-BEolc6Da.js → p-fu0VCCbW.js} +1 -1
  67. package/bundle/{p-CotiEHZi.js → p-gIJnyld5.js} +1 -1
  68. package/bundle/{p-Duacd-NX.js → p-k8bCF_aj.js} +1 -1
  69. package/bundle/{p-BrQIYm5N.js → p-to845Mg2.js} +1 -1
  70. package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
  71. package/dist/cjs/db-accordion.cjs.entry.js +1 -1
  72. package/dist/cjs/db-badge.cjs.entry.js +2 -2
  73. package/dist/cjs/db-brand.cjs.entry.js +2 -2
  74. package/dist/cjs/db-button.cjs.entry.js +2 -2
  75. package/dist/cjs/db-card.cjs.entry.js +2 -2
  76. package/dist/cjs/db-checkbox.cjs.entry.js +2 -2
  77. package/dist/cjs/db-custom-button.cjs.entry.js +2 -2
  78. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +11 -11
  79. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -2
  80. package/dist/cjs/db-custom-select.cjs.entry.js +15 -7
  81. package/dist/cjs/db-divider.cjs.entry.js +1 -1
  82. package/dist/cjs/db-drawer.cjs.entry.js +28 -7
  83. package/dist/cjs/db-header.cjs.entry.js +4 -4
  84. package/dist/cjs/db-icon.cjs.entry.js +2 -2
  85. package/dist/cjs/db-infotext.cjs.entry.js +2 -2
  86. package/dist/cjs/db-link_4.cjs.entry.js +7 -7
  87. package/dist/cjs/db-navigation-item.cjs.entry.js +3 -3
  88. package/dist/cjs/db-navigation.cjs.entry.js +2 -2
  89. package/dist/cjs/db-notification.cjs.entry.js +2 -2
  90. package/dist/cjs/db-page.cjs.entry.js +2 -2
  91. package/dist/cjs/db-popover.cjs.entry.js +3 -3
  92. package/dist/cjs/db-radio.cjs.entry.js +2 -2
  93. package/dist/cjs/db-section.cjs.entry.js +2 -2
  94. package/dist/cjs/db-select.cjs.entry.js +2 -2
  95. package/dist/cjs/db-stack.cjs.entry.js +2 -2
  96. package/dist/cjs/db-switch.cjs.entry.js +2 -2
  97. package/dist/cjs/db-tab-item_3.cjs.entry.js +7 -7
  98. package/dist/cjs/db-table-body_3.cjs.entry.js +3 -3
  99. package/dist/cjs/db-table-caption.cjs.entry.js +2 -2
  100. package/dist/cjs/db-table.cjs.entry.js +1 -1
  101. package/dist/cjs/db-tabs.cjs.entry.js +2 -2
  102. package/dist/cjs/db-textarea.cjs.entry.js +2 -2
  103. package/dist/cjs/db-tooltip.cjs.entry.js +3 -3
  104. package/dist/cjs/db-ux.cjs.js +1 -1
  105. package/dist/cjs/{floating-components-DlstoCKH.js → floating-components-SpHkZuLA.js} +53 -8
  106. package/dist/cjs/index.cjs.js +2 -2
  107. package/dist/cjs/loader.cjs.js +1 -1
  108. package/dist/cjs/{navigation-Bah882nU.js → navigation-DUTSDY4q.js} +1 -1
  109. package/dist/collection/components/accordion/accordion.js +10 -10
  110. package/dist/collection/components/accordion-item/accordion-item.js +12 -12
  111. package/dist/collection/components/badge/badge.js +14 -14
  112. package/dist/collection/components/brand/brand.js +11 -11
  113. package/dist/collection/components/button/button.js +23 -23
  114. package/dist/collection/components/card/card.js +9 -9
  115. package/dist/collection/components/checkbox/checkbox.js +25 -25
  116. package/dist/collection/components/custom-button/custom-button.js +16 -16
  117. package/dist/collection/components/custom-select/custom-select.js +69 -61
  118. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +7 -7
  119. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +6 -6
  120. package/dist/collection/components/custom-select-list/custom-select-list.js +8 -8
  121. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +17 -17
  122. package/dist/collection/components/divider/divider.js +9 -9
  123. package/dist/collection/components/drawer/drawer.js +44 -22
  124. package/dist/collection/components/header/header.js +14 -14
  125. package/dist/collection/components/icon/icon.js +10 -10
  126. package/dist/collection/components/infotext/infotext.js +12 -12
  127. package/dist/collection/components/input/input.js +56 -56
  128. package/dist/collection/components/link/link.js +20 -20
  129. package/dist/collection/components/navigation/navigation.js +6 -6
  130. package/dist/collection/components/navigation-item/navigation-item.js +18 -18
  131. package/dist/collection/components/notification/notification.js +23 -23
  132. package/dist/collection/components/page/page.js +10 -10
  133. package/dist/collection/components/popover/popover.js +15 -15
  134. package/dist/collection/components/radio/radio.js +17 -17
  135. package/dist/collection/components/section/section.js +8 -8
  136. package/dist/collection/components/select/select.js +31 -31
  137. package/dist/collection/components/stack/stack.js +12 -12
  138. package/dist/collection/components/switch/switch.js +28 -28
  139. package/dist/collection/components/tab-item/tab-item.js +19 -19
  140. package/dist/collection/components/tab-list/tab-list.js +6 -6
  141. package/dist/collection/components/tab-panel/tab-panel.js +7 -7
  142. package/dist/collection/components/table/table.js +14 -14
  143. package/dist/collection/components/table-body/table-body.js +5 -5
  144. package/dist/collection/components/table-caption/table-caption.js +5 -5
  145. package/dist/collection/components/table-data-cell/table-data-cell.js +12 -12
  146. package/dist/collection/components/table-footer/table-footer.js +5 -5
  147. package/dist/collection/components/table-head/table-head.js +5 -5
  148. package/dist/collection/components/table-header-cell/table-header-cell.js +15 -15
  149. package/dist/collection/components/table-row/table-row.js +7 -7
  150. package/dist/collection/components/tabs/tabs.js +15 -15
  151. package/dist/collection/components/tag/tag.js +17 -17
  152. package/dist/collection/components/textarea/textarea.js +39 -39
  153. package/dist/collection/components/tooltip/tooltip.js +18 -18
  154. package/dist/collection/index.js +97 -97
  155. package/dist/collection/utils/document-click-listener.js +1 -1
  156. package/dist/collection/utils/document-scroll-listener.js +1 -1
  157. package/dist/collection/utils/floating-components.js +53 -8
  158. package/dist/collection/utils/form-components.js +1 -1
  159. package/dist/collection/utils/navigation.js +1 -1
  160. package/dist/custom-elements.json +119 -20
  161. package/dist/db-ux/db-ux.esm.js +1 -1
  162. package/dist/db-ux/index.esm.js +1 -1
  163. package/dist/db-ux/{p-2ae377e6.entry.js → p-0758418a.entry.js} +1 -1
  164. package/dist/db-ux/p-183c78b7.entry.js +1 -0
  165. package/dist/db-ux/{p-78b7e6f6.entry.js → p-1e70d93f.entry.js} +1 -1
  166. package/dist/db-ux/p-2c23efe2.entry.js +1 -0
  167. package/dist/db-ux/{p-0e17c5a0.entry.js → p-37bf8d87.entry.js} +1 -1
  168. package/dist/db-ux/p-38c55e9c.entry.js +1 -0
  169. package/dist/db-ux/p-4751361d.entry.js +1 -0
  170. package/dist/db-ux/{p-ef1aa878.entry.js → p-5623ff36.entry.js} +1 -1
  171. package/dist/db-ux/{p-335391d4.entry.js → p-5706f20a.entry.js} +1 -1
  172. package/dist/db-ux/{p-f6312d2c.entry.js → p-57527cef.entry.js} +1 -1
  173. package/dist/db-ux/{p-8fa7a578.entry.js → p-68f00121.entry.js} +1 -1
  174. package/dist/db-ux/{p-8f989150.entry.js → p-6b8375e8.entry.js} +1 -1
  175. package/dist/db-ux/p-6ce4a109.entry.js +1 -0
  176. package/dist/db-ux/{p-dfbbe502.entry.js → p-6d41baf1.entry.js} +1 -1
  177. package/dist/db-ux/{p-a4d9f6e2.entry.js → p-6fdc00bd.entry.js} +1 -1
  178. package/dist/db-ux/{p-6aa92091.entry.js → p-70b6ebcd.entry.js} +1 -1
  179. package/dist/db-ux/{p-fbf09569.entry.js → p-71399ee3.entry.js} +1 -1
  180. package/dist/db-ux/{p-af248e57.entry.js → p-77a47225.entry.js} +1 -1
  181. package/dist/db-ux/{p-281f5e3e.entry.js → p-81edb316.entry.js} +1 -1
  182. package/dist/db-ux/{p-5e08712d.entry.js → p-87281518.entry.js} +1 -1
  183. package/dist/db-ux/{p-63d98f9d.entry.js → p-90e9ec2d.entry.js} +1 -1
  184. package/dist/db-ux/p-C0q9XJSc.js +1 -0
  185. package/dist/db-ux/{p-BuBrj57D.js → p-C_qYW0Kh.js} +1 -1
  186. package/dist/db-ux/{p-9ccd42b1.entry.js → p-a07e33e7.entry.js} +1 -1
  187. package/dist/db-ux/{p-f1daaefa.entry.js → p-a176424b.entry.js} +1 -1
  188. package/dist/db-ux/p-a6f33f3b.entry.js +1 -0
  189. package/dist/db-ux/{p-5070470f.entry.js → p-a8556349.entry.js} +1 -1
  190. package/dist/db-ux/{p-3569bb3c.entry.js → p-d9d006e7.entry.js} +1 -1
  191. package/dist/db-ux/{p-ba82a0b0.entry.js → p-db1b9f5d.entry.js} +1 -1
  192. package/dist/db-ux/{p-7ca4bc82.entry.js → p-e58fbd4d.entry.js} +1 -1
  193. package/dist/db-ux/p-e66aa9d8.entry.js +1 -0
  194. package/dist/db-ux/{p-0123ee1b.entry.js → p-eedf08e0.entry.js} +1 -1
  195. package/dist/db-ux/{p-090b1797.entry.js → p-f0b5c785.entry.js} +1 -1
  196. package/dist/db-ux/p-f271332c.entry.js +1 -0
  197. package/dist/db-ux/{p-d7b5748d.entry.js → p-f5f73623.entry.js} +1 -1
  198. package/dist/db-ux/{p-2cf4345f.entry.js → p-f964d5f5.entry.js} +1 -1
  199. package/dist/esm/db-accordion-item.entry.js +2 -2
  200. package/dist/esm/db-accordion.entry.js +1 -1
  201. package/dist/esm/db-badge.entry.js +2 -2
  202. package/dist/esm/db-brand.entry.js +2 -2
  203. package/dist/esm/db-button.entry.js +2 -2
  204. package/dist/esm/db-card.entry.js +2 -2
  205. package/dist/esm/db-checkbox.entry.js +2 -2
  206. package/dist/esm/db-custom-button.entry.js +2 -2
  207. package/dist/esm/db-custom-select-dropdown_5.entry.js +11 -11
  208. package/dist/esm/db-custom-select-form-field.entry.js +2 -2
  209. package/dist/esm/db-custom-select.entry.js +15 -7
  210. package/dist/esm/db-divider.entry.js +1 -1
  211. package/dist/esm/db-drawer.entry.js +28 -7
  212. package/dist/esm/db-header.entry.js +4 -4
  213. package/dist/esm/db-icon.entry.js +2 -2
  214. package/dist/esm/db-infotext.entry.js +2 -2
  215. package/dist/esm/db-link_4.entry.js +7 -7
  216. package/dist/esm/db-navigation-item.entry.js +3 -3
  217. package/dist/esm/db-navigation.entry.js +2 -2
  218. package/dist/esm/db-notification.entry.js +2 -2
  219. package/dist/esm/db-page.entry.js +2 -2
  220. package/dist/esm/db-popover.entry.js +3 -3
  221. package/dist/esm/db-radio.entry.js +2 -2
  222. package/dist/esm/db-section.entry.js +2 -2
  223. package/dist/esm/db-select.entry.js +2 -2
  224. package/dist/esm/db-stack.entry.js +2 -2
  225. package/dist/esm/db-switch.entry.js +2 -2
  226. package/dist/esm/db-tab-item_3.entry.js +7 -7
  227. package/dist/esm/db-table-body_3.entry.js +3 -3
  228. package/dist/esm/db-table-caption.entry.js +2 -2
  229. package/dist/esm/db-table.entry.js +1 -1
  230. package/dist/esm/db-tabs.entry.js +2 -2
  231. package/dist/esm/db-textarea.entry.js +2 -2
  232. package/dist/esm/db-tooltip.entry.js +3 -3
  233. package/dist/esm/db-ux.js +1 -1
  234. package/dist/esm/{floating-components-DOPXnIzL.js → floating-components-C0q9XJSc.js} +53 -8
  235. package/dist/esm/index.js +2 -2
  236. package/dist/esm/loader.js +1 -1
  237. package/dist/esm/{navigation-Jh6m0eMk.js → navigation-Cd7KZ6E2.js} +1 -1
  238. package/dist/types/components/accordion/accordion.d.ts +1 -1
  239. package/dist/types/components/accordion/model.d.ts +2 -2
  240. package/dist/types/components/accordion-item/accordion-item.d.ts +2 -2
  241. package/dist/types/components/accordion-item/model.d.ts +1 -1
  242. package/dist/types/components/badge/badge.d.ts +1 -1
  243. package/dist/types/components/badge/model.d.ts +1 -1
  244. package/dist/types/components/brand/brand.d.ts +1 -1
  245. package/dist/types/components/brand/model.d.ts +1 -1
  246. package/dist/types/components/button/button.d.ts +1 -1
  247. package/dist/types/components/button/model.d.ts +1 -1
  248. package/dist/types/components/card/card.d.ts +2 -2
  249. package/dist/types/components/card/model.d.ts +1 -1
  250. package/dist/types/components/checkbox/checkbox.d.ts +2 -2
  251. package/dist/types/components/checkbox/model.d.ts +1 -1
  252. package/dist/types/components/custom-button/custom-button.d.ts +1 -1
  253. package/dist/types/components/custom-button/model.d.ts +2 -2
  254. package/dist/types/components/custom-select/custom-select.d.ts +2 -2
  255. package/dist/types/components/custom-select/model.d.ts +4 -4
  256. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -1
  257. package/dist/types/components/custom-select-dropdown/model.d.ts +1 -1
  258. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -1
  259. package/dist/types/components/custom-select-form-field/model.d.ts +1 -1
  260. package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -1
  261. package/dist/types/components/custom-select-list/model.d.ts +1 -1
  262. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +2 -2
  263. package/dist/types/components/custom-select-list-item/model.d.ts +1 -1
  264. package/dist/types/components/divider/divider.d.ts +1 -1
  265. package/dist/types/components/divider/model.d.ts +1 -1
  266. package/dist/types/components/drawer/drawer.d.ts +6 -3
  267. package/dist/types/components/drawer/model.d.ts +4 -1
  268. package/dist/types/components/header/header.d.ts +1 -1
  269. package/dist/types/components/header/model.d.ts +1 -1
  270. package/dist/types/components/icon/icon.d.ts +1 -1
  271. package/dist/types/components/icon/model.d.ts +1 -1
  272. package/dist/types/components/infotext/infotext.d.ts +1 -1
  273. package/dist/types/components/infotext/model.d.ts +1 -1
  274. package/dist/types/components/input/input.d.ts +2 -2
  275. package/dist/types/components/input/model.d.ts +1 -1
  276. package/dist/types/components/link/link.d.ts +1 -1
  277. package/dist/types/components/link/model.d.ts +1 -1
  278. package/dist/types/components/navigation/model.d.ts +1 -1
  279. package/dist/types/components/navigation/navigation.d.ts +1 -1
  280. package/dist/types/components/navigation-item/model.d.ts +2 -2
  281. package/dist/types/components/navigation-item/navigation-item.d.ts +2 -2
  282. package/dist/types/components/notification/model.d.ts +1 -1
  283. package/dist/types/components/notification/notification.d.ts +2 -2
  284. package/dist/types/components/page/model.d.ts +1 -1
  285. package/dist/types/components/page/page.d.ts +1 -1
  286. package/dist/types/components/popover/model.d.ts +1 -1
  287. package/dist/types/components/popover/popover.d.ts +1 -1
  288. package/dist/types/components/radio/model.d.ts +1 -1
  289. package/dist/types/components/radio/radio.d.ts +2 -2
  290. package/dist/types/components/section/model.d.ts +1 -1
  291. package/dist/types/components/section/section.d.ts +1 -1
  292. package/dist/types/components/select/model.d.ts +1 -1
  293. package/dist/types/components/select/select.d.ts +2 -2
  294. package/dist/types/components/stack/model.d.ts +1 -1
  295. package/dist/types/components/stack/stack.d.ts +1 -1
  296. package/dist/types/components/switch/model.d.ts +1 -1
  297. package/dist/types/components/switch/switch.d.ts +2 -2
  298. package/dist/types/components/tab-item/model.d.ts +1 -1
  299. package/dist/types/components/tab-item/tab-item.d.ts +1 -1
  300. package/dist/types/components/tab-list/model.d.ts +1 -1
  301. package/dist/types/components/tab-list/tab-list.d.ts +1 -1
  302. package/dist/types/components/tab-panel/model.d.ts +1 -1
  303. package/dist/types/components/tab-panel/tab-panel.d.ts +1 -1
  304. package/dist/types/components/table/examples/data.d.ts +1 -1
  305. package/dist/types/components/table/model.d.ts +2 -2
  306. package/dist/types/components/table/table.d.ts +1 -1
  307. package/dist/types/components/table-body/model.d.ts +2 -2
  308. package/dist/types/components/table-body/table-body.d.ts +1 -1
  309. package/dist/types/components/table-caption/model.d.ts +1 -1
  310. package/dist/types/components/table-caption/table-caption.d.ts +1 -1
  311. package/dist/types/components/table-data-cell/model.d.ts +1 -1
  312. package/dist/types/components/table-data-cell/table-data-cell.d.ts +1 -1
  313. package/dist/types/components/table-footer/model.d.ts +2 -2
  314. package/dist/types/components/table-footer/table-footer.d.ts +1 -1
  315. package/dist/types/components/table-head/model.d.ts +2 -2
  316. package/dist/types/components/table-head/table-head.d.ts +11 -11
  317. package/dist/types/components/table-header-cell/model.d.ts +1 -1
  318. package/dist/types/components/table-header-cell/table-header-cell.d.ts +1 -1
  319. package/dist/types/components/table-row/model.d.ts +4 -4
  320. package/dist/types/components/table-row/table-row.d.ts +2 -2
  321. package/dist/types/components/tabs/model.d.ts +3 -3
  322. package/dist/types/components/tabs/tabs.d.ts +2 -2
  323. package/dist/types/components/tag/model.d.ts +1 -1
  324. package/dist/types/components/tag/tag.d.ts +2 -2
  325. package/dist/types/components/textarea/model.d.ts +1 -1
  326. package/dist/types/components/textarea/textarea.d.ts +2 -2
  327. package/dist/types/components/tooltip/model.d.ts +1 -1
  328. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  329. package/dist/types/components.d.ts +90 -90
  330. package/dist/types/index.d.ts +97 -97
  331. package/dist/types/utils/index.d.ts +1 -1
  332. package/dist/vscode.html-custom-data.json +6 -0
  333. package/dist/web-types.json +13 -1
  334. package/package.json +3 -3
  335. package/bundle/p-BekmqY3B.js +0 -1
  336. package/bundle/p-BmRO4X-P.js +0 -1
  337. package/bundle/p-C2viXF7U.js +0 -1
  338. package/bundle/p-C4iD-won.js +0 -1
  339. package/bundle/p-D1orcIJf.js +0 -1
  340. package/bundle/p-DOPXnIzL.js +0 -1
  341. package/bundle/p-DqNXsduK.js +0 -1
  342. package/dist/db-ux/p-194e851c.entry.js +0 -1
  343. package/dist/db-ux/p-2e6c8304.entry.js +0 -1
  344. package/dist/db-ux/p-34235204.entry.js +0 -1
  345. package/dist/db-ux/p-398f9165.entry.js +0 -1
  346. package/dist/db-ux/p-91052c75.entry.js +0 -1
  347. package/dist/db-ux/p-DOPXnIzL.js +0 -1
  348. package/dist/db-ux/p-c2ce6ecd.entry.js +0 -1
  349. package/dist/db-ux/p-e7a400a2.entry.js +0 -1
  350. package/dist/db-ux/p-ff11c071.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as i,c as t,h as s,F as h,g as a}from"./p-BlbKvvUv.js";import{l as e,f as l,g as d,h as o,i as n,k as c,a as r}from"./p-BdL-nI5y.js";import{h as v,d as u,s as b,u as f,e as p,g as m,l as w,c as y}from"./p-fumiz06Y.js";import{c as g}from"./p-BihrW11j.js";const k=class{constructor(s){i(this,s),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,t,s,h;(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._descByIds=this._validMessageId,v()&&(this._voiceOverFallback=null!==(h=this.validMessage)&&void 0!==h?h:c,u((()=>this._voiceOverFallback=""),1e3))):this._descByIds=b(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||e,v()&&(this._voiceOverFallback=this._invalidMessage,u((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}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)}getOptionLabel(i){var t,s;return null!==(t=i.label)&&void 0!==t?t:null===(s=i.value)||void 0===s?void 0:s.toString()}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,t,s;const h=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:`select-${f()}`;this._id=h,this._messageId=h+l,this._validMessageId=h+d,this._invalidMessageId=h+o,this._placeholderId=h+n}setupObserver(i){if(!i)return;const t=i.closest("db-select");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-select")})),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 h=0;h<t.length;h++){const a=t.item(h);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"),h=a.value.replace("hydrated","").trim(),e=i.getAttribute("class");i.setAttribute(a.name,`${e||""}${h?` ${h}`:""}`),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)||e}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+l,t=this._id+n;this._messageId=i,this._validMessageId=this._id+d,this._invalidMessageId=this._id+o,this._placeholderId=t,this._descByIds=b(this.message,this.showMessage)?i:this.placeholder?t: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 t=this.abortController;t||(t=new AbortController,this.abortController=t),g(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-select"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||e})(),(()=>{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,a,e,l,d;return s("div",{key:"71200b34c84ae3c90e4990b11e55e8dea4c16e55",class:y("db-select",this.className),"data-variant":this.variant,"data-hide-label":w(this.showLabel),"data-hide-asterisk":w(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":m(this.showIcon,"showIcon")},s("label",{key:"3633f34f827d53ee4b4d15e5b230307984fcbd09",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:r),s("select",{key:"ff177d80acfa3519df6467892fb5f97f4ad6872b","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:p(this.required,"required"),disabled:p(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(a=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==a?a: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?s("option",{class:"placeholder",value:"","data-show-empty-option":m(this.shouldShowEmptyOption(),"showEmptyOption")}):null,(null===(l=this.options)||void 0===l?void 0:l.length)?null===(d=this.options)||void 0===d?void 0:d.map((i=>{var t;return s(h,null,i.options?s("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(t=i.options)||void 0===t?void 0:t.map((i=>s("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):s("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):s("slot",null)),this.placeholder?s("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,b(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||c):null,s("db-infotext",{key:"5baf4a0984f8d71776cda0d0d9c12e62f08f434b",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"2b7c6895a1de8e77daba33de6923a33b7c43bee1","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return a(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}]}}};export{k as db_select}
1
+ import{r as i,c as t,h as s,F as h,g as e}from"./p-BlbKvvUv.js";import{l as a,f as l,g as d,h as o,i as n,k as c,a as r}from"./p-BdL-nI5y.js";import{h as v,d as u,s as b,u as f,e as p,g as m,l as w,c as y}from"./p-fumiz06Y.js";import{c as g}from"./p-BihrW11j.js";const k=class{constructor(s){i(this,s),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,t,s,h;(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._descByIds=this._validMessageId,v()&&(this._voiceOverFallback=null!==(h=this.validMessage)&&void 0!==h?h:c,u((()=>this._voiceOverFallback=""),1e3))):this._descByIds=b(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||a,v()&&(this._voiceOverFallback=this._invalidMessage,u((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}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)}getOptionLabel(i){var t,s;return null!==(t=i.label)&&void 0!==t?t:null===(s=i.value)||void 0===s?void 0:s.toString()}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,t,s;const h=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:`select-${f()}`;this._id=h,this._messageId=h+l,this._validMessageId=h+d,this._invalidMessageId=h+o,this._placeholderId=h+n}setupObserver(i){if(!i)return;const t=i.closest("db-select");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-select")})),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 h=0;h<t.length;h++){const e=t.item(h);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))e.value?i.setAttribute(e.name,e.value):i.removeAttribute(e.name),s.removeAttribute(e.name);else if(e&&["style"].includes(e.name))i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const t=e.value.includes("hydrated"),h=e.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(e.name,`${a||""}${h?` ${h}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(e.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)||a}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+l,t=this._id+n;this._messageId=i,this._validMessageId=this._id+d,this._invalidMessageId=this._id+o,this._placeholderId=t,this._descByIds=b(this.message,this.showMessage)?i:this.placeholder?t: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 t=this.abortController;t||(t=new AbortController,this.abortController=t),g(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-select"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||a})(),(()=>{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,e,a,l,d;return s("div",{key:"5273757e8379f6601c23f4b343812c233ddf86eb",class:y("db-select",this.className),"data-variant":this.variant,"data-hide-label":w(this.showLabel),"data-hide-asterisk":w(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":m(this.showIcon,"showIcon")},s("label",{key:"9c75ec7cd982b4b8d283ce9365f6642c363dae16",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:r),s("select",{key:"8b2e0dc14717704e45524cf7803163c6c640de32","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:p(this.required,"required"),disabled:p(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(e=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==e?e: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!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds},"floating"===this.variant||this.placeholder?s("option",{class:"placeholder",value:"","data-show-empty-option":m(this.shouldShowEmptyOption(),"showEmptyOption")}):null,(null===(l=this.options)||void 0===l?void 0:l.length)?null===(d=this.options)||void 0===d?void 0:d.map((i=>{var t;return s(h,null,i.options?s("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(t=i.options)||void 0===t?void 0:t.map((i=>s("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):s("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):s("slot",null)),this.placeholder?s("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,b(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||c):null,s("db-infotext",{key:"5c7dbe0b5e75b5f4b704cf469f0806451e3d0c4a",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"932f5a52716c95629ed4eb12e3b2eee3ce1c559f","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return e(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}]}}};export{k as db_select}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-BlbKvvUv.js";import{e as a,g as h,c as n}from"./p-fumiz06Y.js";const c=class{constructor(s){t(this,s),this.toggle=i(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,s)=>{t.call(this._ref,i,s),"name"===i&&(this._name=s)}}}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 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-accordion-item")})),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(),h=t.getAttribute("class");t.setAttribute(a.name,`${h||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){}watch0(){this.watch0Fn()}watch1Fn(){this.name&&(this._name=this.name)}watch1(){this.watch1Fn()}watch2Fn(){const t=a(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 s("li",{key:"3c70e3a9542e8bd7d96e725381caf73e3ac7296a",class:n("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},s("details",{key:"326f88378a110e2eae8087deec3d333fa85b206e","aria-disabled":h(this.disabled,"disabled"),ref:t=>{this._ref=t},name:this._name,open:this._open},s("summary",{key:"0dd759c18b3ec0bb4110613b073a248936827bfb",onClick:t=>this.handleToggle(t)},this.headlinePlain?this.headlinePlain:null,this.headlinePlain?null:s("slot",{name:"headline"})),s("div",{key:"44e7c57155828aa6465bde02aa4717e3161673f2"},this.text?this.text:null,s("slot",{key:"015b11e09045b96c43ec815916611ebd4b7ac4e3"}))))}get rootElement(){return e(this)}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],name:[{watch1:0}],open:[{watch2:0}]}}};export{c as db_accordion_item}
1
+ import{r as t,c as i,h as s,g as e}from"./p-BlbKvvUv.js";import{e as a,g as h,c as d}from"./p-fumiz06Y.js";const n=class{constructor(s){t(this,s),this.toggle=i(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,s)=>{t.call(this._ref,i,s),"name"===i&&(this._name=s)}}}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 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-accordion-item")})),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(),h=t.getAttribute("class");t.setAttribute(a.name,`${h||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){}watch0(){this.watch0Fn()}watch1Fn(){this.name&&(this._name=this.name)}watch1(){this.watch1Fn()}watch2Fn(){const t=a(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 s("li",{key:"c397db96c483e2aac2576fd78d76554906a734a7",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},s("details",{key:"f62a207933a57adff2bdf3ab3f683dc1e319ef8b","aria-disabled":h(this.disabled,"disabled"),ref:t=>{this._ref=t},name:this._name,open:this._open},s("summary",{key:"54467fab087e8ad5273729c3e9439b7e2d970930",onClick:t=>this.handleToggle(t)},this.headlinePlain?this.headlinePlain:null,this.headlinePlain?null:s("slot",{name:"headline"})),s("div",{key:"8e5fd3be29d7cbc56fa2e792f3dabe65424d9a40"},this.text?this.text:null,s("slot",{key:"8a0ff2a38a23ced4ca443623924e51a580219cc5"}))))}get rootElement(){return e(this)}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],name:[{watch1:0}],open:[{watch2:0}]}}};export{n as db_accordion_item}
@@ -1 +1 @@
1
- import{r as t,h as i,F as s,g as a}from"./p-BlbKvvUv.js";import{d as e,g as o,c as d}from"./p-fumiz06Y.js";const h=class{constructor(i){t(this,i),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 i=t.closest("db-table");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-table")})),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 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-")))e.value?t.setAttribute(e.name,e.value):t.removeAttribute(e.name),s.removeAttribute(e.name);else if(e&&["style"].includes(e.name))t.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(e.name,`${o||""}${a?` ${a}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(e.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&e((()=>{const t=this._ref;if(!t)return;const i=t.querySelectorAll("thead tr th");i.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,s)=>{const a=i[s];if(a){const i=Array.from(a.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var i;return null===(i=t.textContent)||void 0===i?void 0:i.trim()})).filter(Boolean).join(" ");i&&(t.dataset.header=i)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([i,s])=>{t[`--db-table-column-size-${i}`]=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.setupObserver(this._ref),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,a,e,h,n,l;return i("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},i("table",{key:"99fc11d1bb68297550e973293f519ad21f6953a0",ref:t=>{this._ref=t},id:this.id},this.captionPlain?i("caption",null,this.captionPlain):i("slot",{name:"caption"}),this._data?i(s,null,(null===(t=this._data)||void 0===t?void 0:t.header)?i("db-table-head",{rows:null===(a=this._data)||void 0===a?void 0:a.header}):null,(null===(e=this._data)||void 0===e?void 0:e.body)?i("db-table-body",{rows:null===(h=this._data)||void 0===h?void 0:h.body}):null,(null===(n=this._data)||void 0===n?void 0:n.footer)?i("db-table-footer",{rows:null===(l=this._data)||void 0===l?void 0:l.footer}):null):i("slot",null)))}get rootElement(){return a(this)}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}};export{h as db_table}
1
+ import{r as t,h as i,F as s,g as a}from"./p-BlbKvvUv.js";import{d as e,g as o,c as h}from"./p-fumiz06Y.js";const d=class{constructor(i){t(this,i),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 i=t.closest("db-table");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-table")})),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 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-")))e.value?t.setAttribute(e.name,e.value):t.removeAttribute(e.name),s.removeAttribute(e.name);else if(e&&["style"].includes(e.name))t.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(e.name,`${o||""}${a?` ${a}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(e.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&e((()=>{const t=this._ref;if(!t)return;const i=t.querySelectorAll("thead tr th");i.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,s)=>{const a=i[s];if(a){const i=Array.from(a.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var i;return null===(i=t.textContent)||void 0===i?void 0:i.trim()})).filter(Boolean).join(" ");i&&(t.dataset.header=i)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([i,s])=>{t[`--db-table-column-size-${i}`]=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.setupObserver(this._ref),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,a,e,d,n,l;return i("div",{key:"8baec1021c6c8aa2bafc4e735b81e7d149e4ca6e",class:h("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},i("table",{key:"423304ec355a57e6df37c48baca039a9aabdf7b5",ref:t=>{this._ref=t},id:this.id},this.captionPlain?i("caption",null,this.captionPlain):i("slot",{name:"caption"}),this._data?i(s,null,(null===(t=this._data)||void 0===t?void 0:t.header)?i("db-table-head",{rows:null===(a=this._data)||void 0===a?void 0:a.header}):null,(null===(e=this._data)||void 0===e?void 0:e.body)?i("db-table-body",{rows:null===(d=this._data)||void 0===d?void 0:d.body}):null,(null===(n=this._data)||void 0===n?void 0:n.footer)?i("db-table-footer",{rows:null===(l=this._data)||void 0===l?void 0:l.footer}):null):i("slot",null)))}get rootElement(){return a(this)}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}};export{d as db_table}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,g as h}from"./p-BlbKvvUv.js";import{l as a,f as e,g as d,h as c,k as l}from"./p-BdL-nI5y.js";import{h as o,d as n,s as r,u as v,e as u,l as b,c as f}from"./p-fumiz06Y.js";import{a as w}from"./p-BihrW11j.js";const m=class{constructor(s){t(this,s),this.change=i(this,"change"),this.blur=i(this,"blur"),this.focus=i(this,"focus"),this.initialized=!1,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 t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,h;(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&this.required?(this._descByIds=this._validMessageId,o()&&(this._voiceOverFallback=null!==(h=this.validMessage)&&void 0!==h?h:l,n((()=>this._voiceOverFallback=""),1e3))):this._descByIds=r(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)||a,o()&&(this._voiceOverFallback=this._invalidMessage,n((()=>this._voiceOverFallback=""),1e3)))}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;const h=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:`checkbox-${v()}`;this._id=h,this._messageId=h+e,this._validMessageId=h+d,this._invalidMessageId=h+c}setupObserver(t){if(!t)return;const i=t.closest("db-checkbox");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-checkbox")})),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 h=0;h<i.length;h++){const a=i.item(h);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"),h=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e||""}${h?` ${h}`:""}`),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;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||a}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const t=this._id+e;this._messageId=t,this._validMessageId=this._id+d,this._invalidMessageId=this._id+c,r(this.message,this.showMessage)&&(this._descByIds=t),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._ref&&void 0!==this.indeterminate&&(this._ref.indeterminate=!!u(this.indeterminate))}watch3(){this.watch3Fn()}watch4Fn(){this.initialized&&this._ref&&(null!=this.checked&&(this._ref.checked=!!u(this.checked)),this.initialized=!1)}watch4(){this.watch4Fn()}watch5Fn(){if(this._ref){const t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),w(this._ref,{checked:this.checked,defaultChecked:t},(t=>{this.handleChange(t,!0)}),i.signal)}}watch5(){this.watch5Fn()}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-checkbox"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||a})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t;return s("div",{key:"669ca0c9e0f0a21581a88f7d95a2a338f1ac3be3",class:f("db-checkbox",this.className),"data-size":this.size,"data-hide-asterisk":b(this.showRequiredAsterisk),"data-hide-label":b(this.showLabel)},s("label",{key:"620ffa05d0288e333ce10b36e21680beeb7956c1",htmlFor:this._id},s("input",{key:"a06fd7e2f559940d18c869b02e758d3402e67783",type:"checkbox","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:u(this.checked,"checked"),disabled:u(this.disabled,"disabled"),value:this.value,required:u(this.required,"required"),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),"aria-describedby":null!==(t=this.ariaDescribedBy)&&void 0!==t?t:this._descByIds}),this.label?this.label:null,s("slot",{key:"5a02a316cd8a9bd2813ce278e5dfa31f7c8bc57a"})),r(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||l):null,s("db-infotext",{key:"7ec8ff76655cd5d26413cdad76049696453595ab",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"a177359aaca2aa58b9847373bfb197f0a87cf80b","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return h(this)}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch3:0},{watch4:0},{watch5:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch3:0},{watch4:0}],indeterminate:[{watch3:0}],checked:[{watch4:0}]}}};export{m as db_checkbox}
1
+ import{r as t,c as i,h as s,g as h}from"./p-BlbKvvUv.js";import{l as a,f as e,g as d,h as c,k as l}from"./p-BdL-nI5y.js";import{h as o,d as n,s as r,u as v,e as u,l as f,c as b}from"./p-fumiz06Y.js";import{a as w}from"./p-BihrW11j.js";const m=class{constructor(s){t(this,s),this.change=i(this,"change"),this.blur=i(this,"blur"),this.focus=i(this,"focus"),this.initialized=!1,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 t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,h;(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&this.required?(this._descByIds=this._validMessageId,o()&&(this._voiceOverFallback=null!==(h=this.validMessage)&&void 0!==h?h:l,n((()=>this._voiceOverFallback=""),1e3))):this._descByIds=r(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)||a,o()&&(this._voiceOverFallback=this._invalidMessage,n((()=>this._voiceOverFallback=""),1e3)))}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;const h=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:`checkbox-${v()}`;this._id=h,this._messageId=h+e,this._validMessageId=h+d,this._invalidMessageId=h+c}setupObserver(t){if(!t)return;const i=t.closest("db-checkbox");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-checkbox")})),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 h=0;h<i.length;h++){const a=i.item(h);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"),h=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e||""}${h?` ${h}`:""}`),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;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||a}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const t=this._id+e;this._messageId=t,this._validMessageId=this._id+d,this._invalidMessageId=this._id+c,r(this.message,this.showMessage)&&(this._descByIds=t),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._ref&&void 0!==this.indeterminate&&(this._ref.indeterminate=!!u(this.indeterminate))}watch3(){this.watch3Fn()}watch4Fn(){this.initialized&&this._ref&&(null!=this.checked&&(this._ref.checked=!!u(this.checked)),this.initialized=!1)}watch4(){this.watch4Fn()}watch5Fn(){if(this._ref){const t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),w(this._ref,{checked:this.checked,defaultChecked:t},(t=>{this.handleChange(t,!0)}),i.signal)}}watch5(){this.watch5Fn()}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-checkbox"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||a})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t;return s("div",{key:"b386e9507944ca665310bd874fdee124af12f071",class:b("db-checkbox",this.className),"data-size":this.size,"data-hide-asterisk":f(this.showRequiredAsterisk),"data-hide-label":f(this.showLabel)},s("label",{key:"d6963dfdb59a00f027231babd6d985681c331b99",htmlFor:this._id},s("input",{key:"81848aef05a7288c4ae200f48be6f8614e68607f",type:"checkbox","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:u(this.checked,"checked"),disabled:u(this.disabled,"disabled"),value:this.value,required:u(this.required,"required"),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),"aria-describedby":null!==(t=this.ariaDescribedBy)&&void 0!==t?t:this._descByIds}),this.label?this.label:null,s("slot",{key:"433ec6a708da3f342f8fc745ddefbdc9c15d8b9a"})),r(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||l):null,s("db-infotext",{key:"4295a01b6f8f0a9d78f337dac875f53c45ddefa6",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"85e87a85df4ca25e535cf0c890ba943f5cfa978b","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return h(this)}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch3:0},{watch4:0},{watch5:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch3:0},{watch4:0}],indeterminate:[{watch3:0}],checked:[{watch4:0}]}}};export{m as db_checkbox}
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{d as e,g as o,c as n}from"./p-fumiz06Y.js";import{D as a}from"./p-BtImZ8Nt.js";import{b as h}from"./p-DOPXnIzL.js";const d=class{constructor(i){t(this,i),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this.observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&e((()=>{var i;h(t,this._ref,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new a).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const i=this.getTrigger();i&&(null===(t=this._observer)||void 0===t||t.observe(i))}handleLeave(t){var i;const s=null==t?void 0:t.target;if(!(null==s?void 0:s.parentNode)||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new a).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(i=this._observer)||void 0===i||i.unobserve(t))}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];return s.tagName.includes("-")?(null===(t=s.children)||void 0===t?void 0:t.length)>0?s.children[0]:null:s}}return null}setupObserver(t){if(!t)return;const i=t.closest("db-popover");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-popover")})),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 o=i.item(e);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),s.removeAttribute(o.name);else if(o&&["style"].includes(o.name))t.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"class"===o.name){const i=o.value.includes("hydrated"),e=o.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(o.name,`${n||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(o.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));i&&!i.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=Boolean(this.isExpanded).toString())}}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-popover"),(()=>{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 i("div",{key:"09a8f5d4aedc314e07a184c3e41d232073b4ffc9",class:n("db-popover",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},i("slot",{key:"eeee6e2e8d94272e91d275fb6799c7f781f8210a",name:"trigger"}),i("article",{key:"cbbdd13d730291ec06059334c47be4c4bb8ffa71",class:"db-popover-content","data-spacing":this.spacing,"data-gap":o(this.gap,"gap"),"data-animation":o(null===(e=this.animation)||void 0===e||e,"animation"),"data-open":o(this.open,"open"),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},i("slot",{key:"7ae19bc9f8ba3130c107fcf826a8ca9bcf8d9f88"})))}get rootElement(){return s(this)}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}};export{d as db_popover}
1
+ import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{d as e,g as o,c as a}from"./p-fumiz06Y.js";import{D as n}from"./p-BtImZ8Nt.js";import{b as h}from"./p-C0q9XJSc.js";const d=class{constructor(i){t(this,i),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this.observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&e((()=>{var i;h(t,this._ref,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new n).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const i=this.getTrigger();i&&(null===(t=this._observer)||void 0===t||t.observe(i))}handleLeave(t){var i;const s=null==t?void 0:t.target;if(!(null==s?void 0:s.parentNode)||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new n).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(i=this._observer)||void 0===i||i.unobserve(t))}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];return s.tagName.includes("-")?(null===(t=s.children)||void 0===t?void 0:t.length)>0?s.children[0]:null:s}}return null}setupObserver(t){if(!t)return;const i=t.closest("db-popover");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-popover")})),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 o=i.item(e);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),s.removeAttribute(o.name);else if(o&&["style"].includes(o.name))t.setAttribute(o.name,o.value),s.removeAttribute(o.name);else if(o&&"class"===o.name){const i=o.value.includes("hydrated"),e=o.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(o.name,`${a||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(o.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));i&&!i.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=Boolean(this.isExpanded).toString())}}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-popover"),(()=>{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 i("div",{key:"6c495cb9c8f329dd2cf07bfc55b56eb9aa524fb9",class:a("db-popover",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},i("slot",{key:"f74be440cae4d35f76ff2899bae864fc9e3e5c8a",name:"trigger"}),i("article",{key:"efec32b56bf7267aed0f0723306398f9e5f66c75",class:"db-popover-content","data-spacing":this.spacing,"data-gap":o(this.gap,"gap"),"data-animation":o(null===(e=this.animation)||void 0===e||e,"animation"),"data-open":o(this.open,"open"),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},i("slot",{key:"2a1957f512ad0c9eca6e9e5f50721dda1ce56cf3"})))}get rootElement(){return s(this)}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}};export{d as db_popover}
@@ -1 +1 @@
1
- import{r as t,h as e,g as s}from"./p-BlbKvvUv.js";import{u as i,c as d}from"./p-fumiz06Y.js";const a=class{constructor(e){t(this,e)}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let i=0;i<e.length;i++){const d=e.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?t.setAttribute(d.name,d.value):t.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const e=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),e?s.setAttribute("class","hydrated"):s.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-table-body")}render(){var t;return e("tbody",{key:"b6033bbe9cdcdb6bb9d292f68e980a6737fef9fa",class:d("db-table-body",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,s)=>{var d,a,l;return e("db-table-row",{class:null!==(d=t.className)&&void 0!==d?d:t.class,key:`${null!==(l=null!==(a=t.id)&&void 0!==a?a:this.id)&&void 0!==l?l:i()}-table-body-row-${s}`,cells:t.cells,interactive:t.interactive,id:t.id})})):e("slot",null))}get rootElement(){return s(this)}},l=class{constructor(e){t(this,e)}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let i=0;i<e.length;i++){const d=e.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?t.setAttribute(d.name,d.value):t.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const e=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),e?s.setAttribute("class","hydrated"):s.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-table-footer")}render(){var t;return e("tfoot",{key:"735f3ce4c1d6a3305993a8de60c797e9ce2bcd20",class:d("db-table-footer",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,s)=>{var d,a,l;return e("db-table-row",{class:null!==(d=t.className)&&void 0!==d?d:t.class,key:`${null!==(l=null!==(a=t.id)&&void 0!==a?a:this.id)&&void 0!==l?l:i()}-table-footer-row-${s}`,cells:t.cells,interactive:t.interactive,id:t.id})})):e("slot",null))}get rootElement(){return s(this)}},o=class{constructor(e){t(this,e),this.observer=void 0}getCells(t){return null==t?void 0:t.map((t=>Object.assign(Object.assign({},t),{headerCell:!0})))}setupObserver(t){if(!t)return;const e=t.closest("db-table-head");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-head")})),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 i=0;i<e.length;i++){const d=e.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?t.setAttribute(d.name,d.value):t.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const e=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),e?s.setAttribute("class","hydrated"):s.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-table-head"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t;return e("thead",{key:"340673440fd36e5522f70683bef5a4356f73cb69",class:d("db-table-head",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,s)=>{var d,a,l;return e("db-table-row",{class:null!==(d=t.className)&&void 0!==d?d:t.class,key:`${null!==(l=null!==(a=t.id)&&void 0!==a?a:this.id)&&void 0!==l?l:i()}-table-head-row-${s}`,cells:this.getCells(t.cells),subHeaderEmphasis:t.subHeaderEmphasis,interactive:t.interactive,id:t.id})})):e("slot",null))}get rootElement(){return s(this)}};export{a as db_table_body,l as db_table_footer,o as db_table_head}
1
+ import{r as t,h as e,g as s}from"./p-BlbKvvUv.js";import{u as i,c as d}from"./p-fumiz06Y.js";const a=class{constructor(e){t(this,e)}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let i=0;i<e.length;i++){const d=e.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?t.setAttribute(d.name,d.value):t.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const e=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),e?s.setAttribute("class","hydrated"):s.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-table-body")}render(){var t;return e("tbody",{key:"cb2c0320960e38d70cf2671ae7afd2b1a1d85029",class:d("db-table-body",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,s)=>{var d,a,l;return e("db-table-row",{class:null!==(d=t.className)&&void 0!==d?d:t.class,key:`${null!==(l=null!==(a=t.id)&&void 0!==a?a:this.id)&&void 0!==l?l:i()}-table-body-row-${s}`,cells:t.cells,interactive:t.interactive,id:t.id})})):e("slot",null))}get rootElement(){return s(this)}},l=class{constructor(e){t(this,e)}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let i=0;i<e.length;i++){const d=e.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?t.setAttribute(d.name,d.value):t.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const e=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),e?s.setAttribute("class","hydrated"):s.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-table-footer")}render(){var t;return e("tfoot",{key:"204ca2b37050ebd079e26fe0dba6c55a87806d44",class:d("db-table-footer",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,s)=>{var d,a,l;return e("db-table-row",{class:null!==(d=t.className)&&void 0!==d?d:t.class,key:`${null!==(l=null!==(a=t.id)&&void 0!==a?a:this.id)&&void 0!==l?l:i()}-table-footer-row-${s}`,cells:t.cells,interactive:t.interactive,id:t.id})})):e("slot",null))}get rootElement(){return s(this)}},o=class{constructor(e){t(this,e),this.observer=void 0}getCells(t){return null==t?void 0:t.map((t=>Object.assign(Object.assign({},t),{headerCell:!0})))}setupObserver(t){if(!t)return;const e=t.closest("db-table-head");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-head")})),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 i=0;i<e.length;i++){const d=e.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?t.setAttribute(d.name,d.value):t.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const e=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),e?s.setAttribute("class","hydrated"):s.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-table-head"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t;return e("thead",{key:"d2796be8931832f63f6948ea20b14b6e9981f50e",class:d("db-table-head",this.className),ref:t=>{this._ref=t},id:this.id},this.rows?null===(t=this.rows)||void 0===t?void 0:t.map(((t,s)=>{var d,a,l;return e("db-table-row",{class:null!==(d=t.className)&&void 0!==d?d:t.class,key:`${null!==(l=null!==(a=t.id)&&void 0!==a?a:this.id)&&void 0!==l?l:i()}-table-head-row-${s}`,cells:this.getCells(t.cells),subHeaderEmphasis:t.subHeaderEmphasis,interactive:t.interactive,id:t.id})})):e("slot",null))}get rootElement(){return s(this)}};export{a as db_table_body,l as db_table_footer,o as db_table_head}
@@ -0,0 +1 @@
1
+ const t=t=>{const{outTop:o,outBottom:e,outLeft:i,outRight:l}=(t=>{var o;const{top:e,bottom:i,left:l,right:n}=t.getBoundingClientRect(),{innerHeight:r,innerWidth:d}=window;let p=e<0,h=i>r,a=l<0,c=n>d;const s=t.dataset.outsideVy,f=t.dataset.outsideVx,b=null===(o=null==t?void 0:t.parentElement)||void 0===o?void 0:o.getBoundingClientRect();return b&&(s&&("top"===t.dataset.outsideVy?p=b.top-(i-b.bottom)<0:h=b.bottom+(b.top-e)>r),f&&("left"===t.dataset.outsideVx?a=b.left-(n-b.right)<0:c=b.right+(b.left-l)>d)),{outTop:p,outBottom:h,outLeft:a,outRight:c}})(t);let n={};return o||e?(n={vy:o?"top":"bottom"},t.dataset.outsideVy=n.vy):delete t.dataset.outsideVy,i||l?(n=Object.assign(Object.assign({},n),{vx:l?"right":"left"}),t.dataset.outsideVx=n.vx):delete t.dataset.outsideVx,n},o=(t,o,i)=>{if(!t||!o)return;const l="full"===t.dataset.width,n="auto"===t.dataset.width;if(t.style.inlineSize="",t.style.minInlineSize="","9999"===getComputedStyle(t).zIndex)return;const{top:r,bottom:d,childHeight:p,childWidth:h,width:a,right:c,left:s,correctedPlacement:f,innerWidth:b}=e(t,o,i);let u=a;if(n){const o=parseFloat(getComputedStyle(t).maxInlineSize);!isNaN(o)&&o>0&&(u=Math.min(a,o))}l?t.style.inlineSize=`${a}px`:n&&(t.style.minInlineSize=`${u}px`);let g=h;n?g=Math.max(h,u):l&&(g=a);let m=f;n&&("top"===m||"bottom"===m||"top-start"===m||"bottom-start"===m)&&s+g>b&&(m=m.startsWith("top")?"top-end":"bottom-end"),"top"===m||"bottom"===m||"top-start"===m||"bottom-start"===m?t.style.insetInlineStart=`${s}px`:"top-end"!==m&&"bottom-end"!==m||(t.style.insetInlineStart=`${Math.max(c-g,0)}px`),(null==m?void 0:m.startsWith("top"))?t.style.insetBlockStart=r-p+"px":(null==m?void 0:m.startsWith("bottom"))&&(t.style.insetBlockStart=`${d}px`),t.style.position="fixed"},e=(t,o,e)=>{if(!t||!o)return{top:0,bottom:0,right:0,height:0,width:0,left:0,childHeight:0,childWidth:0,correctedPlacement:e,innerWidth:window.innerWidth,innerHeight:window.innerHeight};const i=t.getBoundingClientRect(),{top:l,height:n,bottom:r,right:d,left:p,width:h}=o.getBoundingClientRect(),{innerHeight:a,innerWidth:c}=window;let s=i.height,f=i.width;"bottom"!==e&&"top"!==e||(f/=2),"left"!==e&&"right"!==e||(s/=2);const b=r+s>a,u=l-s<0,g=p-f<0,m=d+f>c;let $=e;return e.startsWith("bottom")?b?($=null==e?void 0:e.replace("bottom","top"),g&&m?$="top":g?$="top-start":m&&($="top-end")):g&&m?$="bottom":g?$="bottom-start":m&&($="bottom-end"):e.startsWith("top")?u?($=null==e?void 0:e.replace("top","bottom"),g&&m?$="bottom":g?$="bottom-start":m&&($="bottom-end")):g&&m?$="top":g?$="top-start":m&&($="top-end"):e.startsWith("left")?g?($=null==e?void 0:e.replace("left","right"),b&&u?$="right":b?$="right-end":u&&($="right-start")):b&&u?$="left":b?$="left-end":u&&($="left-start"):$.startsWith("right")&&(m?($=null==e?void 0:e.replace("right","left"),b&&u?$="left":b?$="left-end":u&&($="left-start")):b&&u?$="right":b?$="right-end":u&&($="right-start")),{top:l,bottom:r,right:d,height:n,width:h,left:p,childHeight:i.height,childWidth:i.width,correctedPlacement:$,innerWidth:c,innerHeight:a}},i=new WeakMap,l=(t,o,l)=>{var n,r;if(!t||!o)return;const d=getComputedStyle(o),p=["absolute","fixed"].includes(d.position),h=(t=>{if(i.has(t))return i.get(t);let o=t.parentElement,e=0;for(;o&&e<10;){if(o.dataset.correctedPlacement)return i.set(t,o),o;o=o.parentElement,e+=1}return i.set(t,null),null})(t),a=!h&&!p,c=null!==(r=null===(n=getComputedStyle(t))||void 0===n?void 0:n.getPropertyValue("--db-popover-distance"))&&void 0!==r?r:"0px";let{top:s,height:f,width:b,childHeight:u,childWidth:g,right:m,left:$,bottom:x,correctedPlacement:v,innerWidth:w,innerHeight:W}=e(t,o,l);if(h){const t=h.getBoundingClientRect();$=Math.abs($-t.left),m=1.5*(b+Math.abs(m-t.right)),s=Math.abs(s-t.top),x=1.5*(f+Math.abs(x-t.bottom))}if(p&&($=0,m=b,s=0,x=f,["auto","inherit","0"].includes(d.zIndex)&&(o.style.zIndex="1")),g>b&&(v.startsWith("bottom")||v.startsWith("top"))){const o=b/2/g*100;v.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-inline-start",`${o}%`):v.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-inline-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-inline-start","50%")}if(u>f&&(v.startsWith("left")||v.startsWith("bottom"))){const o=f/2/u*100;v.endsWith("start")?t.style.setProperty("--db-tooltip-arrow-block-start",`${o}%`):v.endsWith("end")?t.style.setProperty("--db-tooltip-arrow-block-start",100-o+"%"):t.style.setProperty("--db-tooltip-arrow-block-start","50%")}if("right"===v||"left"===v)t.style.insetBlockStart=`${s+f/2}px`;else if("right-start"===v||"left-start"===v){const o=s+u;t.style.insetBlockStart=`${s}px`,t.style.insetBlockEnd=`${!p&&o>W?W:o}px`}else if("right-end"===v||"left-end"===v){const o=x-u;t.style.insetBlockStart=`${!p&&o<0?0:o}px`,t.style.insetBlockEnd=`${x}px`}else if("top"===v||"bottom"===v)t.style.insetInlineStart=`${$+b/2}px`;else if("top-start"===v||"bottom-start"===v){const o=$+g;t.style.insetInlineStart=`${$}px`,t.style.insetInlineEnd=`${!p&&o>w?w:o}px`}else if("top-end"===v||"bottom-end"===v){const o=m-g;t.style.insetInlineStart=`${!p&&o<0?0:o}px`,t.style.insetInlineEnd=`${m}px`}if(null==v?void 0:v.startsWith("right")){const o=m+g;t.style.insetInlineStart=`calc(${m}px + ${c})`,t.style.insetInlineEnd=`calc(${a&&o>w?w:o}px + ${c})`}else if(null==v?void 0:v.startsWith("left")){const o=$-g;t.style.insetInlineStart=`calc(${a&&o<0?0:o}px - ${c})`,t.style.insetInlineEnd=`calc(${m}px - ${c})`}else if(null==v?void 0:v.startsWith("top")){const o=s-u;t.style.insetBlockStart=`calc(${a&&o<0?0:o}px - ${c})`,t.style.insetBlockEnd=`calc(${p?o:x}px - ${c})`}else if(null==v?void 0:v.startsWith("bottom")){const o=x+u;t.style.insetBlockStart=`calc(${p?o:x}px + ${c})`,t.style.insetBlockEnd=`calc(${a&&o>W?W:o}px + ${c})`}t.style.position="fixed",t.dataset.correctedPlacement=v};export{o as a,l as b,e as g,t as h}
@@ -1 +1 @@
1
- import{h as i}from"./p-DOPXnIzL.js";const t=i=>{var t,s;const{target:h}=i;return Boolean(!(null===(t=null==h?void 0:h.classList)||void 0===t?void 0:t.contains("db-navigation-item-expand-button"))&&(null===(s=null==h?void 0:h.parentElement)||void 0===s?void 0:s.classList.contains("db-navigation-item")))};class s{constructor(i,t){var s;this.parentSubNavigation=null,this.initialized=!1,this.mouseX=0,this.mouseY=0,this.element=i,this.subNavigation=t,this.element&&this.subNavigation&&(this.parentSubNavigation=null===(s=this.element)||void 0===s?void 0:s.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var i,t,s;const h=null!==(t=null===(i=this.parentSubNavigation)||void 0===i?void 0:i.getBoundingClientRect().width)&&void 0!==t?t:0;null===(s=this.element)||void 0===s||s.style.setProperty("--db-navigation-item-inline-size",`${h}px`),this.initialized=!0}enableFollow(){var t,s;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const h=i(this.subNavigation),n=this.element.getBoundingClientRect(),o=null!==(s=null===(t=this.parentSubNavigation)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==s?s:0;this.triangleData={itemRect:n,parentElementWidth:o,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(o-n.width)/2,outsideVX:h.vx,outsideVY:h.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?"right"===this.triangleData.outsideVX?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,.75*this.triangleData.itemRect.width):0}getTriangleTipY(){if(!this.triangleData)return 0;const i=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return"bottom"===this.triangleData.outsideVY?i+(this.triangleData.subNavigationHeight-2*this.triangleData.padding-this.triangleData.itemRect.height):i}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const i="right"===this.triangleData.outsideVX;return!!(i&&this.mouseX<-1*this.triangleData.padding)||!i&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding}getTriangleCoordinates(i){if(!this.triangleData)return;if("fill-gap"===i){const i=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,t=this.triangleData.parentElementWidth-this.triangleData.padding+"px";return{lb:`${t} ${i}`,lt:`${t} 0`,rt:"100% 0",rb:`100% ${i}`}}const t=this.getTriangleTipX(),s=this.getTriangleTipY();return{lb:`${t}px ${s}px`,lt:`${t}px ${s}px`,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(i){if(!(this.initialized&&this.triangleData&&this.element&&this.subNavigation))return;this.mouseX=i.clientX-this.triangleData.itemRect.left,this.mouseY=i.clientY-this.triangleData.itemRect.top;const t=this.hasMouseEnteredSubNavigation(),s=this.getTriangleCoordinates(t?"fill-gap":"safe-triangle");s&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${s.lb}, ${s.lt}, ${s.rt}, ${s.rb})`),t&&(this.triangleData=void 0))}}export{s as N,t as i}
1
+ import{h as i}from"./p-C0q9XJSc.js";const t=i=>{var t,s;const{target:h}=i;return Boolean(!(null===(t=null==h?void 0:h.classList)||void 0===t?void 0:t.contains("db-navigation-item-expand-button"))&&(null===(s=null==h?void 0:h.parentElement)||void 0===s?void 0:s.classList.contains("db-navigation-item")))};class s{constructor(i,t){var s;this.parentSubNavigation=null,this.initialized=!1,this.mouseX=0,this.mouseY=0,this.element=i,this.subNavigation=t,this.element&&this.subNavigation&&(this.parentSubNavigation=null===(s=this.element)||void 0===s?void 0:s.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var i,t,s;const h=null!==(t=null===(i=this.parentSubNavigation)||void 0===i?void 0:i.getBoundingClientRect().width)&&void 0!==t?t:0;null===(s=this.element)||void 0===s||s.style.setProperty("--db-navigation-item-inline-size",`${h}px`),this.initialized=!0}enableFollow(){var t,s;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const h=i(this.subNavigation),n=this.element.getBoundingClientRect(),o=null!==(s=null===(t=this.parentSubNavigation)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==s?s:0;this.triangleData={itemRect:n,parentElementWidth:o,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(o-n.width)/2,outsideVX:h.vx,outsideVY:h.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?"right"===this.triangleData.outsideVX?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,.75*this.triangleData.itemRect.width):0}getTriangleTipY(){if(!this.triangleData)return 0;const i=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return"bottom"===this.triangleData.outsideVY?i+(this.triangleData.subNavigationHeight-2*this.triangleData.padding-this.triangleData.itemRect.height):i}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const i="right"===this.triangleData.outsideVX;return!!(i&&this.mouseX<-1*this.triangleData.padding)||!i&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding}getTriangleCoordinates(i){if(!this.triangleData)return;if("fill-gap"===i){const i=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,t=this.triangleData.parentElementWidth-this.triangleData.padding+"px";return{lb:`${t} ${i}`,lt:`${t} 0`,rt:"100% 0",rb:`100% ${i}`}}const t=this.getTriangleTipX(),s=this.getTriangleTipY();return{lb:`${t}px ${s}px`,lt:`${t}px ${s}px`,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(i){if(!(this.initialized&&this.triangleData&&this.element&&this.subNavigation))return;this.mouseX=i.clientX-this.triangleData.itemRect.left,this.mouseY=i.clientY-this.triangleData.itemRect.top;const t=this.hasMouseEnteredSubNavigation(),s=this.getTriangleCoordinates(t?"fill-gap":"safe-triangle");s&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${s.lb}, ${s.lt}, ${s.rt}, ${s.rb})`),t&&(this.triangleData=void 0))}}export{s as N,t as i}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,g as a}from"./p-BlbKvvUv.js";import{s as e}from"./p-BdL-nI5y.js";import{e as d,s as n,g as o,p as h,c}from"./p-fumiz06Y.js";const l=class{constructor(s){t(this,s),this.close=i(this,"close"),this.observer=void 0}handleClose(t){t&&(t.stopPropagation(),this.close&&this.close.emit(t))}setupObserver(t){if(!t)return;const i=t.closest("db-notification");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-notification")})),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 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-")))e.value?t.setAttribute(e.name,e.value):t.removeAttribute(e.name),s.removeAttribute(e.name);else if(e&&["style"].includes(e.name))t.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(e.name,`${d||""}${a?` ${a}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(e.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-notification"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,a;return s("div",{key:"6700e43e45a2c0c18a0216fb12afd5d31820dcf9",class:c("db-notification",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,role:h({semantic:this.semantic,role:this.role,ariaLive:this.ariaLive}),"aria-live":this.ariaLive,"data-semantic":this.semantic,"data-variant":this.variant,"data-icon":!1!==d(this.showIcon)?this.icon:void 0,"data-show-icon":o(this.showIcon,"showIcon"),"data-link-variant":this.linkVariant},s("slot",{key:"9ea4d9427f7e34dbf5fd9b187f4dce5df9b39d34",name:"image"}),n(this.headline,this.showHeadline)?s("header",{"data-area":"head"},this.headline):null,s("div",{key:"4f9c9a95f7c6bd8f4b5bfb0acf69f02dbc789856","data-area":"content"},this.text?this.text:null,s("slot",{key:"2d9007bdc99c163fd6af4b12cc7210b60ab11319"})),n(this.timestamp,this.showTimestamp)?s("time",{"data-area":"timestamp",dateTime:this.timestampDatetime},this.timestamp):null,s("slot",{key:"f5505f81bdf36d9dd1aeb825a2af06dcd0214372",name:"link"}),d(this.closeable,"closeable")?s("db-button",{icon:"cross",variant:"ghost",size:"small",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t)},null!==(a=this.closeButtonText)&&void 0!==a?a:e):null)}get rootElement(){return a(this)}};export{l as db_notification}
1
+ import{r as t,c as i,h as s,g as a}from"./p-BlbKvvUv.js";import{s as e}from"./p-BdL-nI5y.js";import{e as n,s as d,g as o,p as h,c}from"./p-fumiz06Y.js";const l=class{constructor(s){t(this,s),this.close=i(this,"close"),this.observer=void 0}handleClose(t){t&&(t.stopPropagation(),this.close&&this.close.emit(t))}setupObserver(t){if(!t)return;const i=t.closest("db-notification");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-notification")})),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 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-")))e.value?t.setAttribute(e.name,e.value):t.removeAttribute(e.name),s.removeAttribute(e.name);else if(e&&["style"].includes(e.name))t.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(e.name,`${n||""}${a?` ${a}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(e.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-notification"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,a;return s("div",{key:"3f6ef4d3d506873a5b4bd15fde4d2c2fbedc9746",class:c("db-notification",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,role:h({semantic:this.semantic,role:this.role,ariaLive:this.ariaLive}),"aria-live":this.ariaLive,"data-semantic":this.semantic,"data-variant":this.variant,"data-icon":!1!==n(this.showIcon)?this.icon:void 0,"data-show-icon":o(this.showIcon,"showIcon"),"data-link-variant":this.linkVariant},s("slot",{key:"869ddc92d88e68d689215add30f1eefbfababc21",name:"image"}),d(this.headline,this.showHeadline)?s("header",{"data-area":"head"},this.headline):null,s("div",{key:"f3eb313619e046c8eb3fa7b527470b8145003173","data-area":"content"},this.text?this.text:null,s("slot",{key:"ff2a9c542527cf6da87bace3b77b9477899626ea"})),d(this.timestamp,this.showTimestamp)?s("time",{"data-area":"timestamp",dateTime:this.timestampDatetime},this.timestamp):null,s("slot",{key:"5529bddb13c7a39c5fcf6b9bca844cbe1f16fee3",name:"link"}),n(this.closeable,"closeable")?s("db-button",{icon:"cross",variant:"ghost",size:"small",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t)},null!==(a=this.closeButtonText)&&void 0!==a?a:e):null)}get rootElement(){return a(this)}};export{l as db_notification}
@@ -1 +1 @@
1
- import{r as t,h as s,g as i}from"./p-BlbKvvUv.js";import{g as a,c as e}from"./p-fumiz06Y.js";const d=class{constructor(s){t(this,s),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 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-stack")})),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 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-")))e.value?t.setAttribute(e.name,e.value):t.removeAttribute(e.name),i.removeAttribute(e.name);else if(e&&["style"].includes(e.name))t.setAttribute(e.name,e.value),i.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(e.name,`${d||""}${a?` ${a}`:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(e.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,i;return s("div",{key:"02389c1bd26917e0176c95ce3e38e7ef664813e7",class:e("db-stack",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-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")},s("slot",{key:"70b94e0558c79bc76096be335af95029ad2cbe5c"}))}get rootElement(){return i(this)}};export{d as db_stack}
1
+ import{r as t,h as s,g as i}from"./p-BlbKvvUv.js";import{g as a,c as e}from"./p-fumiz06Y.js";const d=class{constructor(s){t(this,s),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 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-stack")})),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 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-")))e.value?t.setAttribute(e.name,e.value):t.removeAttribute(e.name),i.removeAttribute(e.name);else if(e&&["style"].includes(e.name))t.setAttribute(e.name,e.value),i.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(e.name,`${d||""}${a?` ${a}`:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(e.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,i;return s("div",{key:"643002e053cb9d039f2e212c526586503c322ccc",class:e("db-stack",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-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")},s("slot",{key:"d38d30e92d276b6c31328ede2a68db8eb62fe05e"}))}get rootElement(){return i(this)}};export{d as db_stack}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as s,c as e}from"./p-BlbKvvUv.js";import{c as h,e as a,g as d,h as o,d as n,s as l,i as c,u as r,k as u,f as v,j as b,b as f,l as m}from"./p-fumiz06Y.js";import{l as p,f as y,g as w,h as g,j as k,k as x,b as $,a as O,m as _}from"./p-BdL-nI5y.js";import{c as C}from"./p-BihrW11j.js";const F=class{constructor(i){t(this,i),this.width="fixed",this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-custom-select-dropdown");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-custom-select-dropdown")})),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)}}}}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 i("article",{key:"7720cebaaa9128aa7f12a3720aa1374a0fd689d7",class:h("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},i("slot",{key:"19d66fe8c4369630a1debf34e448c0f13ebe0be9"}))}get rootElement(){return s(this)}},I=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-custom-select-list");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-custom-select-list")})),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)}}}}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 i("div",{key:"753c3016f6c9a1ed9fce2fa8c7ae00b9ff73383d",class:h("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},i("ul",{key:"6fce279c5ddf56f52c574e98d60335cd689d7e2c"},i("slot",{key:"667b6c5979cee0f28941fc4e62ba67d9b5878373"})))}get rootElement(){return s(this)}},L=class{constructor(i){t(this,i),this.change=e(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 a(this.checked,"checked")?"check":"x_placeholder"}setupObserver(t){if(!t)return;const i=t.closest("db-custom-select-list-item");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-custom-select-list-item")})),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(){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 i("li",{key:"95e2aeea15f86890868013ddb33a6b365d814fc4",class:h("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":d(this.hasDivider,"hasDivider")},this.isGroupTitle?i("span",null,this.groupTitle):i("label",{"data-icon":"checkbox"!==this.type&&this.icon?this.icon:void 0,"data-show-icon":d(this.showIcon,"showIcon"),"data-icon-trailing":this.getIconTrailing()},i("input",{class:"db-custom-select-list-item-checkbox","data-disable-focus":"true",type:this.type,name:this.name,form:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,onChange:t=>this.handleChange(t)}),i("span",{class:"db-custom-select-list-item-label"},this.label?this.label:null,i("slot",null))))}get rootElement(){return s(this)}static get watchers(){return{isGroupTitle:[{watch0:0}],showDivider:[{watch0:0}]}}},D=class{constructor(i){t(this,i),this.input=e(this,"input"),this.change=e(this,"change"),this.blur=e(this,"blur"),this.focus=e(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 t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,e;(null===(t=this._ref)||void 0===t?void 0:t.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,o()&&(this._voiceOverFallback=null!==(e=this.validMessage)&&void 0!==e?e:x,n((()=>this._voiceOverFallback=""),1e3))):this._descByIds=l(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)||p,o()&&(this._voiceOverFallback=this._invalidMessage,n((()=>this._voiceOverFallback=""),1e3)))}handleInput(t,i){this.input&&this.input.emit(t),this.handleValidation()}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}getDataList(){const t=this.dataList;return Array.from((c(t)?null==t?void 0:t.map((t=>({value:t,label:void 0}))):t)||[])}resetIds(){var t,i,s;const e=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:`input-${r()}`;this._id=e,this._messageId=e+y,this._validMessageId=e+w,this._invalidMessageId=e+g,this._dataListId=e+k}setupObserver(t){if(!t)return;const i=t.closest("db-input");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-input")})),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(){var t;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||p}watch1(){this.watch1Fn()}watch2Fn(){var t;if(this._id){const i=this._id+y;this._messageId=i,this._validMessageId=this._id+w,this._invalidMessageId=this._id+g,this._dataListId=null!==(t=this.dataListId)&&void 0!==t?t:this._id+k,l(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 t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),C(this._ref,{value:this.value,defaultValue:t},(t=>{this.handleChange(t,!0),this.handleInput(t,!0)}),i.signal)}}watch4(){this.watch4Fn()}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-input"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||p})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,s,e,o,n,c,r,p;return i("div",{key:"bfe18e425b08ee3c315f9f59eb230d5ba437407a",class:h("db-input",this.className),"data-variant":this.variant,"data-hide-label":m(this.showLabel),"data-show-icon":d(this.showIconLeading,"showIconLeading")||d(this.showIcon,"showIcon"),"data-icon":null!==(t=this.iconLeading)&&void 0!==t?t:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":m(this.showRequiredAsterisk),"data-show-icon-trailing":d(this.showIconTrailing,"showIconTrailing")},i("label",{key:"0356f8c8e0cf5fe3d4da7857f75a6298fe39486b",htmlFor:this._id},null!==(s=this.label)&&void 0!==s?s:O),i("input",{key:"4bd3c6406df28e017ceb6f080b06e7b4ccf2df75","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:t=>{this._ref=t},id:this._id,name:this.name,type:this.type||"text",multiple:a(this.multiple,"multiple"),accept:this.accept,placeholder:null!==(e=this.placeholder)&&void 0!==e?e:$,disabled:a(this.disabled,"disabled"),required:a(this.required,"required"),step:b(this.step),value:null!==(n=null!==(o=this.value)&&void 0!==o?o:this._value)&&void 0!==n?n:"",maxLength:v(this.maxLength,this.maxlength),minLength:v(this.minLength,this.minlength),max:u(this.max,this.type),min:u(this.min,this.type),readOnly:a(this.readOnly,"readOnly")||a(this.readonly,"readonly")||void 0,form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:a(this.autofocus,"autofocus"),enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),list:this.dataList&&this._dataListId,"aria-describedby":null!==(c=this.ariaDescribedBy)&&void 0!==c?c:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes(null!==(r=this.type)&&void 0!==r?r:"")&&f()?"textbox":void 0}),this.dataList?i("datalist",{id:this._dataListId},null===(p=this.getDataList())||void 0===p?void 0:p.map((t=>i("option",{key:this._dataListId+"-option-"+t.value,value:t.value},t.label)))):null,i("slot",{key:"7071e137ef966ea7ba8c0242c540ee73163e8023"}),l(this.message,this.showMessage)?i("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?i("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||x):null,i("db-infotext",{key:"221bc7dceacad6b0c4eb9cfd5747a8db71ff512d",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),i("span",{key:"2e376dfcacc4be02eaff503d25e219fcf78ff7a8","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return s(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}]}}},V=class{constructor(i){t(this,i),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:_}setupObserver(t){if(!t)return;const i=t.closest("db-tag");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-tag")})),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)}}}}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 i("div",{key:"bf503e6e826fcb53cfc057b1f2610d062967311e",class:h("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":d(null===(e=this.showCheckState)||void 0===e||e,"showCheckState"),"data-show-icon":d(this.showIcon,"showIcon"),"data-no-text":d(this.noText,"noText"),"data-overflow":d(this.overflow,"overflow")},i("slot",{key:"d047f3f96e38b36f4d8f43cfb316d1571ebdd9ba",name:"content"}),this.text?this.text:null,i("slot",{key:"b2356b4e384b61ac2844bdb4a8c2f9c4e5b9f153"}),"removable"===this.behavior?i("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)},i("db-tooltip",{variant:"label"},this.getRemoveButtonText())):null)}get rootElement(){return s(this)}};export{F as db_custom_select_dropdown,I as db_custom_select_list,L as db_custom_select_list_item,D as db_input,V as db_tag}
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{u as h,c as n}from"./p-fumiz06Y.js";const a=class{constructor(i){t(this,i),this._name="",this.initialized=!1,this._initOpenIndexDone=!1,this.observer=void 0}convertItems(){try{return"string"==typeof this.items?JSON.parse(this.items):this.items}catch(t){console.error(t)}return[]}setupObserver(t){if(!t)return;const i=t.closest("db-accordion");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-accordion")})),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 h=0;h<i.length;h++){const n=i.item(h);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),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),h=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a||""}${h?` ${h}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){this.initialized&&this._ref&&("single"===this.behavior?this.name?this._name!==this.name&&(this._name=this.name):this._name=`accordion-${h()}`:this._name="")}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref){const i=this._ref.getElementsByTagName("details");if(i)for(const s of Array.from(i))""===this._name?s.removeAttribute("name"):s.name=null!==(t=this._name)&&void 0!==t?t:""}}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref&&this._initOpenIndexDone){if(this.initOpenIndex&&this.initOpenIndex.length>0){const t=this._ref.getElementsByTagName("details");if(t){const i="single"===this.behavior&&this.initOpenIndex.length>1?[this.initOpenIndex[0]]:this.initOpenIndex;Array.from(t).forEach(((t,s)=>{(null==i?void 0:i.includes(s))&&(t.open=!0)}))}}this._initOpenIndexDone=!1}}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"),(()=>{this.initialized=!0,this._initOpenIndexDone=!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,s,h;return i("ul",{key:"ca6ccc06f1846796371751f169585adfca380e3d",class:n("db-accordion",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-variant":this.variant},this.items?null:i("slot",null),this.items?null===(h=this.convertItems())||void 0===h?void 0:h.map(((t,s)=>i("db-accordion-item",{key:`accordion-item-${s}`,headlinePlain:t.headlinePlain,disabled:t.disabled,text:t.text}))):null)}get rootElement(){return s(this)}static get watchers(){return{initialized:[{watch0:0}],name:[{watch0:0}],behavior:[{watch0:0}],_ref:[{watch1:0},{watch2:0}],_name:[{watch1:0}],_initOpenIndexDone:[{watch2:0}],initOpenIndex:[{watch2:0}]}}};export{a as db_accordion}
1
+ import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{u as h,c as a}from"./p-fumiz06Y.js";const n=class{constructor(i){t(this,i),this._name="",this.initialized=!1,this._initOpenIndexDone=!1,this.observer=void 0}convertItems(){try{return"string"==typeof this.items?JSON.parse(this.items):this.items}catch(t){console.error(t)}return[]}setupObserver(t){if(!t)return;const i=t.closest("db-accordion");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-accordion")})),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 h=0;h<i.length;h++){const a=i.item(h);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"),h=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${h?` ${h}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){this.initialized&&this._ref&&("single"===this.behavior?this.name?this._name!==this.name&&(this._name=this.name):this._name=`accordion-${h()}`:this._name="")}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref){const i=this._ref.getElementsByTagName("details");if(i)for(const s of Array.from(i))""===this._name?s.removeAttribute("name"):s.name=null!==(t=this._name)&&void 0!==t?t:""}}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref&&this._initOpenIndexDone){if(this.initOpenIndex&&this.initOpenIndex.length>0){const t=this._ref.getElementsByTagName("details");if(t){const i="single"===this.behavior&&this.initOpenIndex.length>1?[this.initOpenIndex[0]]:this.initOpenIndex;Array.from(t).forEach(((t,s)=>{(null==i?void 0:i.includes(s))&&(t.open=!0)}))}}this._initOpenIndexDone=!1}}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"),(()=>{this.initialized=!0,this._initOpenIndexDone=!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,s,h;return i("ul",{key:"f98dfda4df392afc979727a1bbc859f9bd7aab97",class:a("db-accordion",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-variant":this.variant},this.items?null:i("slot",null),this.items?null===(h=this.convertItems())||void 0===h?void 0:h.map(((t,s)=>i("db-accordion-item",{key:`accordion-item-${s}`,headlinePlain:t.headlinePlain,disabled:t.disabled,text:t.text}))):null)}get rootElement(){return s(this)}static get watchers(){return{initialized:[{watch0:0}],name:[{watch0:0}],behavior:[{watch0:0}],_ref:[{watch1:0},{watch2:0}],_name:[{watch1:0}],_initOpenIndexDone:[{watch2:0}],initOpenIndex:[{watch2:0}]}}};export{n as db_accordion}
@@ -1 +1 @@
1
- import{r as t,h as s,g as e}from"./p-BlbKvvUv.js";import{c as i}from"./p-fumiz06Y.js";const o=class{constructor(s){t(this,s),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-form-field");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-form-field")})),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 o=s.item(i);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"),i=o.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(o.name,`${d||""}${i?` ${i}`:""}`),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-form-field"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("summary",{key:"e74ace4d1b8b882d93a74274f0ae0b278f6daf42",class:i("db-custom-select-form-field",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id},s("slot",{key:"a336ba54bc2165846100b211d0f7f67755fb98d7"}))}get rootElement(){return e(this)}};export{o as db_custom_select_form_field}
1
+ import{r as t,h as s,g as e}from"./p-BlbKvvUv.js";import{c as i}from"./p-fumiz06Y.js";const o=class{constructor(s){t(this,s),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-select-form-field");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-form-field")})),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 o=s.item(i);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"),i=o.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(o.name,`${d||""}${i?` ${i}`:""}`),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-form-field"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("summary",{key:"77e485f44f3ac511a95cf814b09f8460b6048fbc",class:i("db-custom-select-form-field",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id},s("slot",{key:"382c889e2abf066105029031da4ecb0147c86607"}))}get rootElement(){return e(this)}};export{o as db_custom_select_form_field}
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{c as a}from"./p-fumiz06Y.js";const e=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-icon");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-icon")})),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 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-")))e.value?t.setAttribute(e.name,e.value):t.removeAttribute(e.name),s.removeAttribute(e.name);else if(e&&["style"].includes(e.name))t.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(e.name,`${n||""}${a?` ${a}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(e.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-icon"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return i("span",{key:"167039453ffa0b206221a521e52e889beeab0d43",class:a("db-icon",this.className),"aria-hidden":"true",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-icon-weight":this.weight,"data-icon-variant":this.variant},this.text?this.text:null,i("slot",{key:"abea7d517b9dcf61ff53fd70bbbb0cad3da1daa2"}))}get rootElement(){return s(this)}};export{e as db_icon}
1
+ import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{c as e}from"./p-fumiz06Y.js";const n=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-icon");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-icon")})),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 n=i.item(e);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),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),e=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a||""}${e?` ${e}`:""}`),i?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-icon"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return i("span",{key:"45475f5547eb46fee1e5046a3adf5602b8427d1e",class:e("db-icon",this.className),"aria-hidden":"true",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-icon-weight":this.weight,"data-icon-variant":this.variant},this.text?this.text:null,i("slot",{key:"05089e47e87077e6227760806584f49715080c38"}))}get rootElement(){return s(this)}};export{n as db_icon}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,g as h}from"./p-BlbKvvUv.js";import{l as a,f as e,g as d,h as l,k as n,b as o,r,a as c}from"./p-BdL-nI5y.js";import{h as u,d as v,s as f,u as b,f as m,e as p,l as w,c as y}from"./p-fumiz06Y.js";import{c as g}from"./p-BihrW11j.js";const x=class{constructor(s){t(this,s),this.input=i(this,"input"),this.change=i(this,"change"),this.blur=i(this,"blur"),this.focus=i(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 t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,h;(null===(t=this._ref)||void 0===t?void 0:t.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._descByIds=this._validMessageId,u()&&(this._voiceOverFallback=null!==(h=this.validMessage)&&void 0!==h?h:n,v((()=>this._voiceOverFallback=""),1e3))):this._descByIds=f(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)||a,u()&&(this._voiceOverFallback=this._invalidMessage,v((()=>this._voiceOverFallback=""),1e3)))}handleInput(t,i){this.input&&this.input.emit(t),this.handleValidation()}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;const h=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:`textarea-${b()}`;this._id=h,this._messageId=h+e,this._validMessageId=h+d,this._invalidMessageId=h+l}setupObserver(t){if(!t)return;const i=t.closest("db-textarea");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-textarea")})),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 h=0;h<i.length;h++){const a=i.item(h);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"),h=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e||""}${h?` ${h}`:""}`),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;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||a}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const t=this._id+e;this._messageId=t,this._validMessageId=this._id+d,this._invalidMessageId=this._id+l,f(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 t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),g(this._ref,{value:this.value,defaultValue:t},(t=>{this.handleChange(t,!0),this.handleInput(t,!0)}),i.signal)}}watch4(){this.watch4Fn()}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-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||a})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,i,h,a,e,d;return s("div",{key:"86667d91fc82e602b09ee517a82fff23d97966e7",class:y("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":w(this.showRequiredAsterisk),"data-hide-label":w(this.showLabel)},s("label",{key:"27de9316b7e31d3f72b70ec38413d53a6aa54e3a",htmlFor:this._id},null!==(t=this.label)&&void 0!==t?t:c),s("textarea",{key:"7316f18f473c980ba1cccf4fd52e84b8dc7a98cd","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:t=>{this._ref=t},id:this._id,"data-resize":this.resize,"data-hide-resizer":w(null===(i=this.showResizer)||void 0===i||i),disabled:p(this.disabled,"disabled"),required:p(this.required,"required"),readOnly:p(this.readOnly,"readOnly")||p(this.readonly,"readonly")||void 0,form:this.form,maxLength:m(this.maxLength,this.maxlength),minLength:m(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),value:null!==(a=null!==(h=this.value)&&void 0!==h?h: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:o,rows:m(this.rows,r),cols:m(this.cols)}),f(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||n):null,s("db-infotext",{key:"86ad7a246adc37d20e4b0314429202797520f39e",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"594923a0e9bb1ebd905c665c4f3d185b2f425bd5","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return h(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}]}}};export{x as db_textarea}
1
+ import{r as t,c as i,h as s,g as h}from"./p-BlbKvvUv.js";import{l as a,f as e,g as d,h as l,k as n,b as o,r,a as c}from"./p-BdL-nI5y.js";import{h as u,d as v,s as f,u as b,f as m,e as p,l as w,c as y}from"./p-fumiz06Y.js";import{c as g}from"./p-BihrW11j.js";const x=class{constructor(s){t(this,s),this.input=i(this,"input"),this.change=i(this,"change"),this.blur=i(this,"blur"),this.focus=i(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 t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,h;(null===(t=this._ref)||void 0===t?void 0:t.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._descByIds=this._validMessageId,u()&&(this._voiceOverFallback=null!==(h=this.validMessage)&&void 0!==h?h:n,v((()=>this._voiceOverFallback=""),1e3))):this._descByIds=f(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)||a,u()&&(this._voiceOverFallback=this._invalidMessage,v((()=>this._voiceOverFallback=""),1e3)))}handleInput(t,i){this.input&&this.input.emit(t),this.handleValidation()}handleChange(t,i){this.change&&this.change.emit(t),this.handleValidation()}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;const h=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:`textarea-${b()}`;this._id=h,this._messageId=h+e,this._validMessageId=h+d,this._invalidMessageId=h+l}setupObserver(t){if(!t)return;const i=t.closest("db-textarea");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-textarea")})),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 h=0;h<i.length;h++){const a=i.item(h);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"),h=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e||""}${h?` ${h}`:""}`),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;this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||a}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const t=this._id+e;this._messageId=t,this._validMessageId=this._id+d,this._invalidMessageId=this._id+l,f(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 t=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),g(this._ref,{value:this.value,defaultValue:t},(t=>{this.handleChange(t,!0),this.handleInput(t,!0)}),i.signal)}}watch4(){this.watch4Fn()}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-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||a})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,i,h,a,e,d;return s("div",{key:"cf9afaea12a18dbe916bf11e4cfeed5721833f96",class:y("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":w(this.showRequiredAsterisk),"data-hide-label":w(this.showLabel)},s("label",{key:"fd7444fe2963eabdb755d2bc9d0b664103813493",htmlFor:this._id},null!==(t=this.label)&&void 0!==t?t:c),s("textarea",{key:"282e969c036a0cd079a77cd6373103084dd5e75b","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:t=>{this._ref=t},id:this._id,"data-resize":this.resize,"data-hide-resizer":w(null===(i=this.showResizer)||void 0===i||i),disabled:p(this.disabled,"disabled"),required:p(this.required,"required"),readOnly:p(this.readOnly,"readOnly")||p(this.readonly,"readonly")||void 0,form:this.form,maxLength:m(this.maxLength,this.maxlength),minLength:m(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t),value:null!==(a=null!==(h=this.value)&&void 0!==h?h: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:o,rows:m(this.rows,r),cols:m(this.cols)}),f(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||n):null,s("db-infotext",{key:"07e6585b6a89335004382796a9c06da736260028",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"6a8394ae7d62809422e54a810e75cf0628327223","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return h(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}]}}};export{x as db_textarea}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,g as e}from"./p-BlbKvvUv.js";import{c as i}from"./p-fumiz06Y.js";const a=class{constructor(s){t(this,s),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-table-caption");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-table-caption")})),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(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${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-table-caption"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){return s("caption",{key:"940bfd3ec5f3f13c14b4a838774e0f0014bb5b12",class:i("db-table-caption",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"0bbee85651cc51b5b131dd7aeff15ad454b40c3f"}))}get rootElement(){return e(this)}};export{a as db_table_caption}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-BlbKvvUv.js";import{g as a,e as d,c as n}from"./p-fumiz06Y.js";const h=class{constructor(s){t(this,s),this.change=i(this,"change"),this._selected=!1,this._name=void 0,this.initialized=!1,this._listenerAdded=!1,this.boundSetSelectedOnChange=void 0,this.observer=void 0}setSelectedOnChange(t){t.stopPropagation(),this._selected=a(t.target===this._ref,"selected")}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(i,s)=>{t.call(this._ref,i,s),"name"===i&&(this._name=s)}}}handleChange(t){this.change&&this.change.emit(t)}setupObserver(t){if(!t)return;const i=t.closest("db-tab-item");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-tab-item")})),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(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t;this._ref&&this.initialized&&this.boundSetSelectedOnChange&&(this.initialized=!1,this._listenerAdded||(null===(t=this._ref.closest("[role=tablist]"))||void 0===t||t.addEventListener("change",this.boundSetSelectedOnChange),this._listenerAdded=!0),(this.active||this._ref.checked)&&(this._selected=a(!0,"selected"),this._ref.click()))}watch0(){this.watch0Fn()}watch1Fn(){this.name&&(this._name=this.name)}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-tab-item"),(()=>{this.boundSetSelectedOnChange=this.setSelectedOnChange.bind(this),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t,i;this._listenerAdded&&this._ref&&this.boundSetSelectedOnChange&&(null===(t=this._ref.closest("[role=tablist]"))||void 0===t||t.removeEventListener("change",this.boundSetSelectedOnChange),this._listenerAdded=!1),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,i,e,h,l;return s("li",{key:"003e5b968c65ba01df1b97e8f75592aee31125d9",class:n("db-tab-item",this.className),role:"none"},s("label",{key:"682e5a3cf7036abcbbbbbba9f42ce534d7a4145d",htmlFor:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-icon":null!==(e=this.iconLeading)&&void 0!==e?e:this.icon,"data-icon-trailing":this.iconTrailing,"data-show-icon":a(this.showIconLeading,"showIconLeading")||a(this.showIcon,"showIcon"),"data-show-icon-trailing":a(this.showIconTrailing,"showIconTrailing"),"data-no-text":a(this.noText,"noText")},s("input",{key:"ffb91a8e7248a8e5a2a7a05c6828fc6203e1eb37",type:"radio",role:"tab",disabled:d(this.disabled,"disabled"),"aria-selected":this._selected,checked:d(this.checked,"checked"),ref:t=>{this._ref=t},name:this._name,id:null!==(h=this.id)&&void 0!==h?h:null===(l=this.propOverrides)||void 0===l?void 0:l.id,onInput:t=>this.handleChange(t)}),this.label?this.label:null,s("slot",{key:"2d079503cd365448cd054e05bfaec608ff476e04"})))}get rootElement(){return e(this)}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}}},l=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-tab-list");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-tab-list")})),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(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),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-tab-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i;return s("div",{key:"2538ba05ecad54c8c29dda93a08acb61faf02309",class:n("db-tab-list",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},s("ul",{key:"86824302eb2cc92ca45a61d8bdec0f34cd679db6",role:"tablist"},s("slot",{key:"b56406b1e0291a29905b599531c0dccd9c035504"})))}get rootElement(){return e(this)}},o=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-tab-panel");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-tab-panel")})),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(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),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-tab-panel"),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i;return s("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===(i=this.propOverrides)||void 0===i?void 0:i.id},this.content?this.content:null,s("slot",{key:"dc745b430dd17f253cf9403c28f6c2cbd5b59020"}))}get rootElement(){return e(this)}};export{h as db_tab_item,l as db_tab_list,o as db_tab_panel}
1
+ import{r as t,c as i,h as s,g as e}from"./p-BlbKvvUv.js";import{g as a,e as d,c as n}from"./p-fumiz06Y.js";const h=class{constructor(s){t(this,s),this.change=i(this,"change"),this._selected=!1,this._name=void 0,this.initialized=!1,this._listenerAdded=!1,this.boundSetSelectedOnChange=void 0,this.observer=void 0}setSelectedOnChange(t){t.stopPropagation(),this._selected=a(t.target===this._ref,"selected")}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(i,s)=>{t.call(this._ref,i,s),"name"===i&&(this._name=s)}}}handleChange(t){this.change&&this.change.emit(t)}setupObserver(t){if(!t)return;const i=t.closest("db-tab-item");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-tab-item")})),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(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t;this._ref&&this.initialized&&this.boundSetSelectedOnChange&&(this.initialized=!1,this._listenerAdded||(null===(t=this._ref.closest("[role=tablist]"))||void 0===t||t.addEventListener("change",this.boundSetSelectedOnChange),this._listenerAdded=!0),(this.active||this._ref.checked)&&(this._selected=a(!0,"selected"),this._ref.click()))}watch0(){this.watch0Fn()}watch1Fn(){this.name&&(this._name=this.name)}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-tab-item"),(()=>{this.boundSetSelectedOnChange=this.setSelectedOnChange.bind(this),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn()}disconnectedCallback(){var t,i;this._listenerAdded&&this._ref&&this.boundSetSelectedOnChange&&(null===(t=this._ref.closest("[role=tablist]"))||void 0===t||t.removeEventListener("change",this.boundSetSelectedOnChange),this._listenerAdded=!1),null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,i,e,h,l;return s("li",{key:"0fdd67479f1a261fc13487237c5707c902aecdd4",class:n("db-tab-item",this.className),role:"none"},s("label",{key:"a6f1a772c57e69b23302aa6eeac4c77ded476805",htmlFor:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-icon":null!==(e=this.iconLeading)&&void 0!==e?e:this.icon,"data-icon-trailing":this.iconTrailing,"data-show-icon":a(this.showIconLeading,"showIconLeading")||a(this.showIcon,"showIcon"),"data-show-icon-trailing":a(this.showIconTrailing,"showIconTrailing"),"data-no-text":a(this.noText,"noText")},s("input",{key:"d24031946a686d3d077900a438c7a12443794a46",type:"radio",role:"tab",disabled:d(this.disabled,"disabled"),"aria-selected":this._selected,checked:d(this.checked,"checked"),ref:t=>{this._ref=t},name:this._name,id:null!==(h=this.id)&&void 0!==h?h:null===(l=this.propOverrides)||void 0===l?void 0:l.id,onInput:t=>this.handleChange(t)}),this.label?this.label:null,s("slot",{key:"bfa4aa307ea4b8ef410f367cfbe8a4578acc377d"})))}get rootElement(){return e(this)}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}}},l=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-tab-list");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-tab-list")})),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(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),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-tab-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i;return s("div",{key:"29168c82cf6e0c5838d9afc3c3b475c7b5d513b1",class:n("db-tab-list",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},s("ul",{key:"fee5dc804f98c62e86d56d9c941b103448ad6908",role:"tablist"},s("slot",{key:"694a0a4de4623152cf277138dd96f0558063115f"})))}get rootElement(){return e(this)}},o=class{constructor(i){t(this,i),this.observer=void 0}setupObserver(t){if(!t)return;const i=t.closest("db-tab-panel");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-tab-panel")})),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(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),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-tab-panel"),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i;return s("section",{key:"a49b39a27112785e03a663c4c0ee9571e46d76fa",class:n("db-tab-panel",this.className),role:"tabpanel",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},this.content?this.content:null,s("slot",{key:"0c70d6a522b959af728df3fda8c16dd9a5bc6a8f"}))}get rootElement(){return e(this)}};export{h as db_tab_item,l as db_tab_list,o as db_tab_panel}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,F as a,g as n}from"./p-BlbKvvUv.js";import{c as o,u as e}from"./p-fumiz06Y.js";const h=class{constructor(s){t(this,s),this.indexChange=i(this,"indexChange"),this.tabSelect=i(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 a of i){const n=i.indexOf(a),o=a.querySelector("label"),e=a.querySelector("input");if(e&&o){if(!e.id){const t=`${this._name}-tab-${n}`;o.setAttribute("for",t),e.id=t,e.setAttribute("name",this._name),s.length>n&&e.setAttribute("aria-controls",`${this._name}-tab-panel-${n}`)}if(t){const t=!this.initialSelectedMode||"auto"===this.initialSelectedMode,i=null==this.initialSelectedIndex&&0===n||Number(this.initialSelectedIndex)===n;t&&i&&e.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 a=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(a),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 a=0;a<i.length;a++){const n=i.item(a);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),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(n.name,`${o||""}${a?` ${a}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(n.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.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,n,e,h,l;return s("div",{key:"aca0d156b8d50c5951a982e5ab35d2644b4989e7",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!==(n=this.alignment)&&void 0!==n?n:"start","data-width":null!==(e=this.width)&&void 0!==e?e:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?s("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?s(a,null,s("db-tab-list",null,null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,i)=>s("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===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>s("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?s("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,s("slot",{key:"b05907467917bb82f9ef6b9ce3774e52411fb822"}))}get rootElement(){return n(this)}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}};export{h as db_tabs}
1
+ import{r as t,c as i,h as s,F as a,g as n}from"./p-BlbKvvUv.js";import{c as o,u as e}from"./p-fumiz06Y.js";const h=class{constructor(s){t(this,s),this.indexChange=i(this,"indexChange"),this.tabSelect=i(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 a of i){const n=i.indexOf(a),o=a.querySelector("label"),e=a.querySelector("input");if(e&&o){if(!e.id){const t=`${this._name}-tab-${n}`;o.setAttribute("for",t),e.id=t,e.setAttribute("name",this._name),s.length>n&&e.setAttribute("aria-controls",`${this._name}-tab-panel-${n}`)}if(t){const t=!this.initialSelectedMode||"auto"===this.initialSelectedMode,i=null==this.initialSelectedIndex&&0===n||Number(this.initialSelectedIndex)===n;t&&i&&e.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 a=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(a),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 a=0;a<i.length;a++){const n=i.item(a);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),s.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(n.name,`${o||""}${a?` ${a}`:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(n.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.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,n,e,h,l;return s("div",{key:"4ea02dd31be437dd343d13cac953658f1799762f",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!==(n=this.alignment)&&void 0!==n?n:"start","data-width":null!==(e=this.width)&&void 0!==e?e:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?s("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?s(a,null,s("db-tab-list",null,null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,i)=>s("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===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>s("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?s("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,s("slot",{key:"c7b47c275a5784b8658e9c8b339445e083bc40d6"}))}get rootElement(){return n(this)}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}};export{h as db_tabs}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,g as e}from"./p-BlbKvvUv.js";import{s as a}from"./p-BdL-nI5y.js";import{o as d,e as h,d as o,g as n,c as r}from"./p-fumiz06Y.js";const c=class{constructor(i){t(this,i),this.close=s(this,"close"),this.initialized=!1,this.backdropPointerDown=!1,this.observer=void 0}isNotModal(){return"absolute"===this.position||"none"===this.backdrop||"inside"===this.variant}handleBackdropPointerDown(t){var s;this.backdropPointerDown="DIALOG"===(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.nodeName)}handleClose(t,s){var i;t&&(d(t)?"Escape"===t.key&&(t.preventDefault(),this.close&&this.close.emit(t)):(s&&(t.stopPropagation(),this.close&&this.close.emit(t)),"DIALOG"===(null===(i=t.target)||void 0===i?void 0:i.nodeName)&&"click"===t.type&&"none"!==this.backdrop&&this.backdropPointerDown&&this.close&&this.close.emit(t),this.backdropPointerDown=!1))}handleDialogOpen(){if(this._ref){const t=h(this.open,"open");t&&!this._ref.open&&(this.dialogContainerRef&&this.dialogContainerRef.removeAttribute("data-transition"),this.isNotModal()?this._ref.show():(this._ref.setAttribute("closedby","any"),this._ref.showModal()),o((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),o((()=>{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 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-drawer")})),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 a=s.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),i.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${e?` ${e}`:""}`),s?i.setAttribute("class","hydrated"):i.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 i("dialog",{key:"c03126193778f601b7ff3aeeeff508c8920e67a7",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),onMouseDown:t=>this.handleBackdropPointerDown(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},i("article",{key:"64661349d858bf5be872d664b44bc6fa829014e6",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")},i("header",{key:"b758a538b1337573090305aadcf3bc3befef1bf3",class:"db-drawer-header"},i("div",{key:"235f2be7afc9c968b9270178c2720a5a50436123",class:"db-drawer-header-text"},i("slot",{key:"26787a5e103d2d34785ce1eccd0ff73b6733fce8",name:"drawerHeader"})),i("db-button",{key:"1d22b406c4e235e91bc9bfc3265a0aaa9c7f8e8c",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:a)),i("div",{key:"0e338b2e11c8582ba59595f34d8fc4911db7025e",class:"db-drawer-content"},i("slot",{key:"c761758ada4d1602878a58de6003e01cf5b5d075"}))))}get rootElement(){return e(this)}static get watchers(){return{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}}};export{c as db_drawer}
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{D as e}from"./p-BdL-nI5y.js";import{d as h,u as a,g as o,c as n}from"./p-fumiz06Y.js";import{D as d}from"./p-BtImZ8Nt.js";import{b as l}from"./p-DOPXnIzL.js";const r=class{constructor(i){t(this,i),this._id=e,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&&h((()=>{var i;this._ref&&l(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 d).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 d).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-"+a()}_detachListeners(){var t,i,s;const e=this._documentScrollListenerCallbackId;e&&((new d).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 h=this._attachedParent;if(h){const t=null!==(s=this._attachedId)&&void 0!==s?s:this._id,i=h.querySelectorAll(".db-tooltip"),e=Array.from(i).some((t=>t!==this._ref));"true"!==h.dataset.hasTooltip||e||delete h.dataset.hasTooltip,h.getAttribute("aria-labelledby")===t&&h.removeAttribute("aria-labelledby"),h.getAttribute("aria-describedby")===t&&h.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 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(){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(),h=t=>this.handleEscape(t);i.addEventListener("mouseenter",s),i.addEventListener("focusin",s),i.addEventListener("keydown",h),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:h},{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,s;return i("i",{key:"8b8269b2bf4c0708c437a33101537999ab9035b5",class:n("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===(s=this.showArrow)||void 0===s||s,"showArrow"),"data-placement":this.placement,onClick:t=>this.handleClick(t)},this.text?this.text:null,i("slot",{key:"54c19cf96a0e2ce8be7b345f149d484a6498c3a1"}))}get rootElement(){return s(this)}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}};export{r as db_tooltip}
1
+ import{r as t,h as i,g as s}from"./p-BlbKvvUv.js";import{D as e}from"./p-BdL-nI5y.js";import{d as a,u as h,g as o,c as d}from"./p-fumiz06Y.js";import{D as n}from"./p-BtImZ8Nt.js";import{b as l}from"./p-C0q9XJSc.js";const r=class{constructor(i){t(this,i),this._id=e,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&&a((()=>{var i;this._ref&&l(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 n).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 n).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-"+h()}_detachListeners(){var t,i,s;const e=this._documentScrollListenerCallbackId;e&&((new n).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(),h=t.getAttribute("class");t.setAttribute(a.name,`${h||""}${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,s;return i("i",{key:"a35fc9349a599145e2ea2287aa6467500854fadd",class:d("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===(s=this.showArrow)||void 0===s||s,"showArrow"),"data-placement":this.placement,onClick:t=>this.handleClick(t)},this.text?this.text:null,i("slot",{key:"63d102dc8c4c4022c2dc3bad582f0167635adcb2"}))}get rootElement(){return s(this)}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}};export{r as db_tooltip}
@@ -1 +1 @@
1
- import{r as t,h as s,g as i}from"./p-BlbKvvUv.js";import{g as o,c as a}from"./p-fumiz06Y.js";const e=class{constructor(s){t(this,s),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-button");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-button")})),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 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),i.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),o=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e||""}${o?` ${o}`:""}`),s?i.setAttribute("class","hydrated"):i.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-custom-button"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,e;return s("div",{key:"6ef84eaa8f553eb89c921a9933fe0203df38f776",class:a("db-custom-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,"data-icon":null!==(e=this.iconLeading)&&void 0!==e?e:this.icon,"data-show-icon":o(this.showIconLeading,"showIconLeading")||o(this.showIcon,"showIcon"),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":o(this.showIconTrailing,"showIconTrailing"),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-no-text":o(this.noText,"noText")},s("slot",{key:"efb921b78ebebd9b13e33893efedaeb2d0ba5f66"}))}get rootElement(){return i(this)}};export{e as db_custom_button}
1
+ import{r as t,h as s,g as i}from"./p-BlbKvvUv.js";import{g as o,c as a}from"./p-fumiz06Y.js";const n=class{constructor(s){t(this,s),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-custom-button");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-button")})),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 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),i.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),o=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${o?` ${o}`:""}`),s?i.setAttribute("class","hydrated"):i.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-custom-button"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,i,n;return s("div",{key:"b1552822320b13ce54881eb3771947cf81928c06",class:a("db-custom-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,"data-icon":null!==(n=this.iconLeading)&&void 0!==n?n:this.icon,"data-show-icon":o(this.showIconLeading,"showIconLeading")||o(this.showIcon,"showIcon"),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":o(this.showIconTrailing,"showIconTrailing"),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-no-text":o(this.noText,"noText")},s("slot",{key:"eaf79ff037afc5c2d9b5683e2a2cf11e24174004"}))}get rootElement(){return i(this)}};export{n as db_custom_button}