@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{y as t,H as i,A as s,u as e,z as h,k as a,o as d,d as r,t as o,f as n}from"./p-CYYSsu3p.js";import{b as c}from"./p-D6L0n3gO.js";const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this.initialized=!1,this._id=void 0,this.abortController=void 0,this.observer=void 0}handleInput(t,i){this.input&&this.input.emit(t)}handleChange(t,i){this.change&&this.change.emit(t)}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"radio-"+e()}setupObserver(t){if(!t)return;const i=t.closest("db-radio");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-radio")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?" "+e:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.checked&&this.initialized&&this._ref&&(this._ref.checked=!0)}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref){let t=this.abortController;t||(t=new AbortController,this.abortController=t),c(this._ref,(t=>{n((()=>{const i=this.checked?this.checked:this._ref.checked,s=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:"",checked:i})});this.handleChange(s,!0),this.handleInput(s,!0)}),1)}),t.signal)}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-radio"),(()=>{this.initialized=!0,this.resetIds()})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){return h("label",{key:"85734ed463718801789a9dea9c0febcc4c2e8266",class:r("db-radio",this.className),"data-size":this.size,"data-hide-label":d(this.showLabel),"data-hide-asterisk":d(this.showRequiredAsterisk),htmlFor:this._id},h("input",{key:"7906add8b0074893bbffaaa0963284de1f89836c",type:"radio","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,required:a(this.required,"required"),onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:null,h("slot",{key:"7c35400883fd27d67bb2932cd646492fe137ccd9"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}}},[260,"db-radio",{id:[1],propOverrides:[16],checked:[8],size:[1],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],validation:[1],name:[1],disabled:[8],value:[8],required:[8],label:[1],initialized:[32],_id:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}]),u=l,b=function(){"undefined"!=typeof customElements&&["db-radio"].forEach((t=>{"db-radio"===t&&(customElements.get(o(t))||customElements.define(o(t),l))}))};export{u as DbRadio,b as defineCustomElement}
1
+ import{y as t,H as i,A as s,u as e,z as h,k as a,o as d,d as r,t as o,f as n}from"./p-CYYSsu3p.js";import{b as l}from"./p-D6L0n3gO.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this.initialized=!1,this._id=void 0,this.abortController=void 0,this.observer=void 0}handleInput(t,i){this.input&&this.input.emit(t)}handleChange(t,i){this.change&&this.change.emit(t)}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"radio-"+e()}setupObserver(t){if(!t)return;const i=t.closest("db-radio");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-radio")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const h=i.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?t.setAttribute(h.name,h.value):t.removeAttribute(h.name),s.removeAttribute(h.name);else if(h&&["style"].includes(h.name))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"class"===h.name){const i=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(h.name,`${a||""}${e?" "+e:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(h.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.checked&&this.initialized&&this._ref&&(this._ref.checked=!0)}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref){let t=this.abortController;t||(t=new AbortController,this.abortController=t),l(this._ref,(t=>{n((()=>{const i=this.checked?this.checked:this._ref.checked,s=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:"",checked:i})});this.handleChange(s,!0),this.handleInput(s,!0)}),1)}),t.signal)}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-radio"),(()=>{this.initialized=!0,this.resetIds()})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t,i;null===(t=this.abortController)||void 0===t||t.abort(),null===(i=this.observer)||void 0===i||i.disconnect()}render(){return h("label",{key:"130a6743dc68574baad658d474299d9808f7505f",class:r("db-radio",this.className),"data-size":this.size,"data-hide-label":d(this.showLabel),"data-hide-asterisk":d(this.showRequiredAsterisk),htmlFor:this._id},h("input",{key:"ebd2443b32fb32cf21735ea00607ee32f3da01d2",type:"radio","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,required:a(this.required,"required"),onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:null,h("slot",{key:"2f4ccd96173b5780348cdddf914aa6ba424314bb"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}}},[260,"db-radio",{id:[1],propOverrides:[16],checked:[8],size:[1],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],validation:[1],name:[1],disabled:[8],value:[8],required:[8],label:[1],initialized:[32],_id:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}]),u=c,b=function(){"undefined"!=typeof customElements&&["db-radio"].forEach((t=>{"db-radio"===t&&(customElements.get(o(t))||customElements.define(o(t),c))}))};export{u as DbRadio,b as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,d as i,t as n}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-section");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-section")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d||""}${i?" "+i:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-section"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("section",{key:"e33119ea38ff1f66b56792cb1a5a57e47d87d370",class:i("db-section",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-spacing":this.spacing||"medium","data-width":this.width},e("slot",{key:"0ac9622c130f2a896b334e65025f16365fe50ea5"}))}get rootElement(){return this}},[260,"db-section",{id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],width:[1],observer:[32]}]),o=d,a=function(){"undefined"!=typeof customElements&&["db-section"].forEach((t=>{"db-section"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{o as DbSection,a as defineCustomElement}
1
+ import{y as t,H as s,z as e,d as i,t as n}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-section");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-section")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d||""}${i?" "+i:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-section"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("section",{key:"1dc0a8e37a04cd3a4caba5a50b94ea876e80d462",class:i("db-section",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-spacing":this.spacing||"medium","data-width":this.width},e("slot",{key:"74e62afdc9b8922d1cbd57e801fff67969831ac9"}))}get rootElement(){return this}},[260,"db-section",{id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],width:[1],observer:[32]}]),a=d,o=function(){"undefined"!=typeof customElements&&["db-section"].forEach((t=>{"db-section"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{a as DbSection,o as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as s,A as t,h as e,f as h,p as a,u as d,z as l,k as o,j as n,F as c,o as r,d as v,t as u}from"./p-CYYSsu3p.js";import{l as b,f as p,g as f,h as m,i as w,k as g,a as y}from"./p-BdL-nI5y.js";import{c as k}from"./p-D6L0n3gO.js";import{d as _}from"./p-CewqZGHg.js";const I=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=t(this,"click"),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._placeholderId="",this._descByIds=void 0,this._value="",this.initialized=!1,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&this.required?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:g,h((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||b,e()&&(this._voiceOverFallback=this._invalidMessage,h((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getOptionLabel(i){var s,t;return null!==(s=i.label)&&void 0!==s?s:null===(t=i.value)||void 0===t?void 0:""+t}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"select-"+d();this._id=e,this._messageId=e+p,this._validMessageId=e+f,this._invalidMessageId=e+m,this._placeholderId=e+w}setupObserver(i){if(!i)return;const s=i.closest("db-select");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-select")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const h=s.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?i.setAttribute(h.name,h.value):i.removeAttribute(h.name),t.removeAttribute(h.name);else if(h&&["style"].includes(h.name))i.setAttribute(h.name,h.value),t.removeAttribute(h.name);else if(h&&"class"===h.name){const s=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(h.name,`${a||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(h.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||b}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+p,s=this._id+w;this._messageId=i,this._validMessageId=this._id+f,this._invalidMessageId=this._id+m,this._placeholderId=s,this._descByIds=a(this.message,this.showMessage)?i:this.placeholder?s:void 0,this.handleValidation(),this.initialized=!1}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),k(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-select"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||b})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s,t,e,h,d;return l("div",{key:"71200b34c84ae3c90e4990b11e55e8dea4c16e55",class:v("db-select",this.className),"data-variant":this.variant,"data-hide-label":r(this.showLabel),"data-hide-asterisk":r(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":n(this.showIcon,"showIcon")},l("label",{key:"3633f34f827d53ee4b4d15e5b230307984fcbd09",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("select",{key:"ff177d80acfa3519df6467892fb5f97f4ad6872b","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:o(this.required,"required"),disabled:o(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(t=null!==(s=this.value)&&void 0!==s?s:this._value)&&void 0!==t?t:void 0,autocomplete:this.autocomplete,multiple:this.multiple,onInput:i=>this.handleInput(i),onClick:i=>this.handleClick(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(e=this.ariaDescribedBy)&&void 0!==e?e:this._descByIds},"floating"===this.variant||this.placeholder?l("option",{class:"placeholder",value:"","data-show-empty-option":n(this.shouldShowEmptyOption(),"showEmptyOption")}):null,(null===(h=this.options)||void 0===h?void 0:h.length)?null===(d=this.options)||void 0===d?void 0:d.map((i=>{var s;return l(c,null,i.options?l("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(s=i.options)||void 0===s?void 0:s.map((i=>l("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):l("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):l("slot",null)),this.placeholder?l("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,a(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||g):null,l("db-infotext",{key:"5baf4a0984f8d71776cda0d0d9c12e62f08f434b",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"2b7c6895a1de8e77daba33de6923a33b7c43bee1","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],placeholder:[1],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],variant:[1],showEmptyOption:[4,"show-empty-option"],className:[1,"classname"],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],icon:[1],showIcon:[8,"show-icon"],label:[1],disabled:[8],name:[1],size:[2],autocomplete:[1],multiple:[4],ariaDescribedBy:[1,"aria-described-by"],options:[16],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_placeholderId:[32],_descByIds:[32],_value:[32],initialized:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}]),O=I,F=function(){"undefined"!=typeof customElements&&["db-select","db-infotext"].forEach((i=>{switch(i){case"db-select":customElements.get(u(i))||customElements.define(u(i),I);break;case"db-infotext":customElements.get(u(i))||_()}}))};export{O as DbSelect,F as defineCustomElement}
1
+ import{y as i,H as s,A as t,h as e,f as h,p as a,u as l,z as d,k as o,j as n,F as c,o as r,d as v,t as u}from"./p-CYYSsu3p.js";import{l as b,f as p,g as m,h as w,i as f,k as y,a as g}from"./p-BdL-nI5y.js";import{c as k}from"./p-D6L0n3gO.js";import{d as O}from"./p-BpO8Ok-r.js";const _=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=t(this,"click"),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._placeholderId="",this._descByIds=void 0,this._value="",this.initialized=!1,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,l;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&this.required?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(l=this.validMessage)&&void 0!==l?l:y,h((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||b,e()&&(this._voiceOverFallback=this._invalidMessage,h((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getOptionLabel(i){var s,t;return null!==(s=i.label)&&void 0!==s?s:null===(t=i.value)||void 0===t?void 0:""+t}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"select-"+l();this._id=e,this._messageId=e+p,this._validMessageId=e+m,this._invalidMessageId=e+w,this._placeholderId=e+f}setupObserver(i){if(!i)return;const s=i.closest("db-select");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-select")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const h=s.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))h.value?i.setAttribute(h.name,h.value):i.removeAttribute(h.name),t.removeAttribute(h.name);else if(h&&["style"].includes(h.name))i.setAttribute(h.name,h.value),t.removeAttribute(h.name);else if(h&&"class"===h.name){const s=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(h.name,`${a||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(h.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||b}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+p,s=this._id+f;this._messageId=i,this._validMessageId=this._id+m,this._invalidMessageId=this._id+w,this._placeholderId=s,this._descByIds=a(this.message,this.showMessage)?i:this.placeholder?s:void 0,this.handleValidation(),this.initialized=!1}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),k(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-select"),(()=>{this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||b})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s,t,e,h,l;return d("div",{key:"5273757e8379f6601c23f4b343812c233ddf86eb",class:v("db-select",this.className),"data-variant":this.variant,"data-hide-label":r(this.showLabel),"data-hide-asterisk":r(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":n(this.showIcon,"showIcon")},d("label",{key:"9c75ec7cd982b4b8d283ce9365f6642c363dae16",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:g),d("select",{key:"8b2e0dc14717704e45524cf7803163c6c640de32","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:o(this.required,"required"),disabled:o(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(t=null!==(s=this.value)&&void 0!==s?s:this._value)&&void 0!==t?t:void 0,autocomplete:this.autocomplete,multiple:this.multiple,onInput:i=>this.handleInput(i),onClick:i=>this.handleClick(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(e=this.ariaDescribedBy)&&void 0!==e?e:this._descByIds},"floating"===this.variant||this.placeholder?d("option",{class:"placeholder",value:"","data-show-empty-option":n(this.shouldShowEmptyOption(),"showEmptyOption")}):null,(null===(h=this.options)||void 0===h?void 0:h.length)?null===(l=this.options)||void 0===l?void 0:l.map((i=>{var s;return d(c,null,i.options?d("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(s=i.options)||void 0===s?void 0:s.map((i=>d("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):d("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):d("slot",null)),this.placeholder?d("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,a(this.message,this.showMessage)?d("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?d("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||y):null,d("db-infotext",{key:"5c7dbe0b5e75b5f4b704cf469f0806451e3d0c4a",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),d("span",{key:"932f5a52716c95629ed4eb12e3b2eee3ce1c559f","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],placeholder:[1],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],variant:[1],showEmptyOption:[4,"show-empty-option"],className:[1,"classname"],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],icon:[1],showIcon:[8,"show-icon"],label:[1],disabled:[8],name:[1],size:[2],autocomplete:[1],multiple:[4],ariaDescribedBy:[1,"aria-described-by"],options:[16],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_placeholderId:[32],_descByIds:[32],_value:[32],initialized:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}]),I=_,F=function(){"undefined"!=typeof customElements&&["db-select","db-infotext"].forEach((i=>{switch(i){case"db-select":customElements.get(u(i))||customElements.define(u(i),_);break;case"db-infotext":customElements.get(u(i))||O()}}))};export{I as DbSelect,F as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,j as a,d as i,t as n}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-stack");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-stack")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let a=0;a<s.length;a++){const i=s.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),e.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-stack"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"02389c1bd26917e0176c95ce3e38e7ef664813e7",class:i("db-stack",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":a(this.wrap,"wrap")},e("slot",{key:"70b94e0558c79bc76096be335af95029ad2cbe5c"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8],observer:[32]}]),c=d,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{c as DbStack,o as defineCustomElement}
1
+ import{y as t,H as s,z as e,j as a,d as i,t as n}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-stack");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-stack")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let a=0;a<s.length;a++){const i=s.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),e.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-stack"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"643002e053cb9d039f2e212c526586503c322ccc",class:i("db-stack",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":a(this.wrap,"wrap")},e("slot",{key:"d38d30e92d276b6c31328ede2a68db8eb62fe05e"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8],observer:[32]}]),c=d,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{c as DbStack,o as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as s,A as t,h as e,f as a,p as h,u as d,z as l,k as o,o as n,j as c,d as r,t as v}from"./p-CYYSsu3p.js";import{l as u,f as w,g as b,h as f,k as m}from"./p-BdL-nI5y.js";import{a as g}from"./p-D6L0n3gO.js";import{d as p}from"./p-CewqZGHg.js";const k=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,o;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(e()&&(this._voiceOverFallback=null!==(o=this.validMessage)&&void 0!==o?o:m,a((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(e()&&(this._voiceOverFallback=this._invalidMessage||u,a((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=e,this._messageId=`${e}${w}`,this._validMessageId=`${e}${b}`,this._invalidMessageId=`${e}${f}`}setupObserver(i){if(!i)return;const s=i.closest("db-switch");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-switch")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),t.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-switch"),(()=>{this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s;return l("div",{key:"e95dafb6d580ef8cfbd54b91ee77da4809984862",class:r("db-switch",this.className),"data-visual-aid":c(this.visualAid,"visualAid"),"data-size":this.size,"data-hide-label":n(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":n(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"533173f9a522375012848dbff80b0e357f5e1b30",htmlFor:this._id},l("input",{key:"68e6d40e2b5654508d8ebaf9be66dd56aa39c8f2",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:o(this.checked,"checked"),value:this.value,disabled:o(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:o(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"a89d78f024905190780c3c8436773ab710115857"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:m):null,l("db-infotext",{key:"e170d8c368afd61c7c94c10bb2ea13fe4520d692",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"d8a5b8e7a5e0f70f245de5756f7b2d19640b4863","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),y=k,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(v(i))||customElements.define(v(i),k);break;case"db-infotext":customElements.get(v(i))||p()}}))};export{y as DbSwitch,M as defineCustomElement}
1
+ import{y as i,H as s,A as t,h as a,f as e,p as h,u as d,z as l,k as o,o as n,j as c,d as r,t as v}from"./p-CYYSsu3p.js";import{l as u,f as w,g as b,h as f,k as m}from"./p-BdL-nI5y.js";import{a as g}from"./p-D6L0n3gO.js";import{d as p}from"./p-BpO8Ok-r.js";const k=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,o;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(a()&&(this._voiceOverFallback=null!==(o=this.validMessage)&&void 0!==o?o:m,e((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(a()&&(this._voiceOverFallback=this._invalidMessage||u,e((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const a=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=a,this._messageId=`${a}${w}`,this._validMessageId=`${a}${b}`,this._invalidMessageId=`${a}${f}`}setupObserver(i){if(!i)return;const s=i.closest("db-switch");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-switch")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let 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?i.setAttribute(e.name,e.value):i.removeAttribute(e.name),t.removeAttribute(e.name);else if(e&&["style"].includes(e.name))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h||""}${a?" "+a:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-switch"),(()=>{this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s;return l("div",{key:"f9182aa08b0ac9a58767d5de15bada3b31850b1b",class:r("db-switch",this.className),"data-visual-aid":c(this.visualAid,"visualAid"),"data-size":this.size,"data-hide-label":n(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":n(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"4f27226dbe245461f2fd9bd6913db00a5b207732",htmlFor:this._id},l("input",{key:"b0995a9fb3246105d0769c32b16342f76e74f40c",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:o(this.checked,"checked"),value:this.value,disabled:o(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:o(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"d03438513412079f745be2671d54e4ddb87c042c"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:m):null,l("db-infotext",{key:"5f2f82215ffd9119b3f27f5d37c2349cecc28325",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"27278f4285a7aa297d4e985c2710eec5e4bb45ce","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),y=k,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(v(i))||customElements.define(v(i),k);break;case"db-infotext":customElements.get(v(i))||p()}}))};export{y as DbSwitch,M as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-k5Hci0ok.js";const p=o,r=s;export{p as DbTabItem,r as defineCustomElement}
1
+ import{D as o,d as p}from"./p-C0JLpZ9Q.js";const s=o,r=p;export{s as DbTabItem,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CHg_VPD9.js";const p=o,r=s;export{p as DbTabList,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-C9llbu6g.js";const p=o,r=s;export{p as DbTabList,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BmRO4X-P.js";const m=o,p=s;export{m as DbTabPanel,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-BQov9sQb.js";const p=o,r=s;export{p as DbTabPanel,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-D9RSX1St.js";const t=o,p=s;export{t as DbTableBody,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-2eQDIPlF.js";const p=o,r=s;export{p as DbTableBody,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,d as a,t as i}from"./p-CYYSsu3p.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const e=t.closest("db-table-caption");e&&!this.observer&&(this.observer=new MutationObserver((e=>{e.some((t=>{var e;const s=t.target.attributes.getNamedItem(null!==(e=t.attributeName)&&void 0!==e?e:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table-caption")})),this.observer.observe(e,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const i=e.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),s.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-caption"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){return s("caption",{key:"5ef3476c6c9879f1fcf8548e11bea82516bd29d1",class:a("db-table-caption",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"e20d1d699e7ab50422c0d40bdf058c8863ae4991"}))}get rootElement(){return this}},[260,"db-table-caption",{id:[1],className:[1,"classname"],observer:[32]}]),d=n,o=function(){"undefined"!=typeof customElements&&["db-table-caption"].forEach((t=>{"db-table-caption"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{d as DbTableCaption,o as defineCustomElement}
1
+ import{y as t,H as e,z as s,d as a,t as i}from"./p-CYYSsu3p.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const e=t.closest("db-table-caption");e&&!this.observer&&(this.observer=new MutationObserver((e=>{e.some((t=>{var e;const s=t.target.attributes.getNamedItem(null!==(e=t.attributeName)&&void 0!==e?e:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table-caption")})),this.observer.observe(e,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const i=e.item(a);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),s.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n||""}${a?" "+a:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-caption"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){return s("caption",{key:"940bfd3ec5f3f13c14b4a838774e0f0014bb5b12",class:a("db-table-caption",this.className),ref:t=>{this._ref=t},id:this.id},s("slot",{key:"0bbee85651cc51b5b131dd7aeff15ad454b40c3f"}))}get rootElement(){return this}},[260,"db-table-caption",{id:[1],className:[1,"classname"],observer:[32]}]),o=n,d=function(){"undefined"!=typeof customElements&&["db-table-caption"].forEach((t=>{"db-table-caption"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{o as DbTableCaption,d as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BEcb3EOO.js";const p=o,r=s;export{p as DbTableDataCell,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-C2w7ILj8.js";const p=o,r=s;export{p as DbTableDataCell,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as s,d as o}from"./p-DqNXsduK.js";const p=s,r=o;export{p as DbTableFooter,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-DiEfz0o1.js";const p=o,r=s;export{p as DbTableFooter,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-BekmqY3B.js";const m=o,p=s;export{m as DbTableHead,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-DTM6Wcbf.js";const p=o,r=s;export{p as DbTableHead,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-C4iD-won.js";const p=o,r=s;export{p as DbTableHeaderCell,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-C47AKJPy.js";const p=o,r=s;export{p as DbTableHeaderCell,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-mk64Fltq.js";const t=o,m=s;export{t as DbTableRow,m as defineCustomElement}
1
+ import{D as o,d as s}from"./p-Cn5NdjPW.js";const p=o,r=s;export{p as DbTableRow,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,f as a,z as e,F as i,j as o,d,t as l}from"./p-CYYSsu3p.js";import{d as n}from"./p-D1orcIJf.js";import{d as r}from"./p-D9RSX1St.js";import{d as c}from"./p-BEcb3EOO.js";import{d as h}from"./p-DqNXsduK.js";import{d as b}from"./p-BekmqY3B.js";import{d as u}from"./p-C4iD-won.js";import{d as m}from"./p-mk64Fltq.js";const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this._data=void 0,this._style=void 0,this.observer=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}setupObserver(t){if(!t)return;const s=t.closest("db-table");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const a=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==a?void 0:a.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const i=s.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),a.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(i.name,`${o||""}${e?" "+e:""}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&a((()=>{const t=this._ref;if(!t)return;const s=t.querySelectorAll("thead tr th");s.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,a)=>{const e=s[a];if(e){const s=Array.from(e.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var s;return null===(s=t.textContent)||void 0===s?void 0:s.trim()})).filter(Boolean).join(" ");s&&(t.dataset.header=s)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([s,a])=>{t["--db-table-column-size-"+s]=a})),this._style=t}else this._style=void 0}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table"),this.setupObserver(this._ref),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,a,l,n,r;return e("div",{key:"7e6ea12b6cb4b2ddcc12262cd28bfec13baa55c0",class:d("db-table",this.className),style:this._style,"data-width":this.width,"data-size":this.size,"data-divider":this.divider,"data-variant":this.variant,"data-mobile-variant":this.mobileVariant,"data-show-caption":o(this.showCaption),"data-sticky-header":this.stickyHeader},e("table",{key:"99fc11d1bb68297550e973293f519ad21f6953a0",ref:t=>{this._ref=t},id:this.id},this.captionPlain?e("caption",null,this.captionPlain):e("slot",{name:"caption"}),this._data?e(i,null,(null===(t=this._data)||void 0===t?void 0:t.header)?e("db-table-head",{rows:null===(s=this._data)||void 0===s?void 0:s.header}):null,(null===(a=this._data)||void 0===a?void 0:a.body)?e("db-table-body",{rows:null===(l=this._data)||void 0===l?void 0:l.body}):null,(null===(n=this._data)||void 0===n?void 0:n.footer)?e("db-table-footer",{rows:null===(r=this._data)||void 0===r?void 0:r.footer}):null):e("slot",null)))}get rootElement(){return this}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}},[260,"db-table",{data:[1],mobileVariant:[1,"mobile-variant"],columnSizes:[16],className:[1,"classname"],width:[1],size:[1],divider:[1],variant:[1],showCaption:[8,"show-caption"],stickyHeader:[1,"sticky-header"],id:[1],captionPlain:[1,"caption-plain"],_data:[32],_style:[32],observer:[32]},void 0,{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["db-table","db-link","db-table-body","db-table-data-cell","db-table-footer","db-table-head","db-table-header-cell","db-table-row"].forEach((t=>{switch(t){case"db-table":customElements.get(l(t))||customElements.define(l(t),v);break;case"db-link":customElements.get(l(t))||n();break;case"db-table-body":customElements.get(l(t))||r();break;case"db-table-data-cell":customElements.get(l(t))||c();break;case"db-table-footer":customElements.get(l(t))||h();break;case"db-table-head":customElements.get(l(t))||b();break;case"db-table-header-cell":customElements.get(l(t))||u();break;case"db-table-row":customElements.get(l(t))||m()}}))};export{f as DbTable,p as defineCustomElement}
1
+ import{y as t,H as a,f as s,z as e,F as i,j as o,d,t as l}from"./p-CYYSsu3p.js";import{d as n}from"./p-Cc5hdI0x.js";import{d as c}from"./p-2eQDIPlF.js";import{d as r}from"./p-C2w7ILj8.js";import{d as h}from"./p-DiEfz0o1.js";import{d as b}from"./p-DTM6Wcbf.js";import{d as u}from"./p-C47AKJPy.js";import{d as m}from"./p-Cn5NdjPW.js";const v=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this._data=void 0,this._style=void 0,this.observer=void 0}convertData(){try{return"string"==typeof this.data?JSON.parse(this.data):this.data}catch(t){console.error(t)}return{}}setupObserver(t){if(!t)return;const a=t.closest("db-table");a&&!this.observer&&(this.observer=new MutationObserver((a=>{a.some((t=>{var a;const s=t.target.attributes.getNamedItem(null!==(a=t.attributeName)&&void 0!==a?a:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-table")})),this.observer.observe(a,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,a){const s=null==t?void 0:t.closest(a);if(t&&s){const a=s.attributes;for(let e=0;e<a.length;e++){const i=a.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))i.value?t.setAttribute(i.name,i.value):t.removeAttribute(i.name),s.removeAttribute(i.name);else if(i&&["style"].includes(i.name))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const a=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(i.name,`${o||""}${e?" "+e:""}`),a?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}watch0Fn(){this._data=this.data?this.convertData():void 0}watch0(){this.watch0Fn()}watch1Fn(){this._ref&&"list"===this.mobileVariant&&s((()=>{const t=this._ref;if(!t)return;const a=t.querySelectorAll("thead tr th");a.length&&t.querySelectorAll(":is(tbody,tfoot) tr").forEach((t=>{t.querySelectorAll(":is(td,th)").forEach(((t,s)=>{const e=a[s];if(e){const a=Array.from(e.childNodes).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>{var a;return null===(a=t.textContent)||void 0===a?void 0:a.trim()})).filter(Boolean).join(" ");a&&(t.dataset.header=a)}}))}))}),1)}watch1(){this.watch1Fn()}watch2Fn(){if(this.columnSizes){const t={};Object.entries(this.columnSizes).forEach((([a,s])=>{t["--db-table-column-size-"+a]=s})),this._style=t}else this._style=void 0}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table"),this.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,s,l,n,c;return e("div",{key:"8baec1021c6c8aa2bafc4e735b81e7d149e4ca6e",class:d("db-table",this.className),style:this._style,"data-width":this.width,"data-size":this.size,"data-divider":this.divider,"data-variant":this.variant,"data-mobile-variant":this.mobileVariant,"data-show-caption":o(this.showCaption),"data-sticky-header":this.stickyHeader},e("table",{key:"423304ec355a57e6df37c48baca039a9aabdf7b5",ref:t=>{this._ref=t},id:this.id},this.captionPlain?e("caption",null,this.captionPlain):e("slot",{name:"caption"}),this._data?e(i,null,(null===(t=this._data)||void 0===t?void 0:t.header)?e("db-table-head",{rows:null===(a=this._data)||void 0===a?void 0:a.header}):null,(null===(s=this._data)||void 0===s?void 0:s.body)?e("db-table-body",{rows:null===(l=this._data)||void 0===l?void 0:l.body}):null,(null===(n=this._data)||void 0===n?void 0:n.footer)?e("db-table-footer",{rows:null===(c=this._data)||void 0===c?void 0:c.footer}):null):e("slot",null)))}get rootElement(){return this}static get watchers(){return{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}}},[260,"db-table",{data:[1],mobileVariant:[1,"mobile-variant"],columnSizes:[16],className:[1,"classname"],width:[1],size:[1],divider:[1],variant:[1],showCaption:[8,"show-caption"],stickyHeader:[1,"sticky-header"],id:[1],captionPlain:[1,"caption-plain"],_data:[32],_style:[32],observer:[32]},void 0,{data:[{watch0:0}],mobileVariant:[{watch1:0}],_ref:[{watch1:0}],_data:[{watch1:0}],columnSizes:[{watch2:0}]}]),f=v,p=function(){"undefined"!=typeof customElements&&["db-table","db-link","db-table-body","db-table-data-cell","db-table-footer","db-table-head","db-table-header-cell","db-table-row"].forEach((t=>{switch(t){case"db-table":customElements.get(l(t))||customElements.define(l(t),v);break;case"db-link":customElements.get(l(t))||n();break;case"db-table-body":customElements.get(l(t))||c();break;case"db-table-data-cell":customElements.get(l(t))||r();break;case"db-table-footer":customElements.get(l(t))||h();break;case"db-table-head":customElements.get(l(t))||b();break;case"db-table-header-cell":customElements.get(l(t))||u();break;case"db-table-row":customElements.get(l(t))||m()}}))};export{f as DbTable,p as defineCustomElement}
package/bundle/db-tabs.js CHANGED
@@ -1 +1 @@
1
- import{y as t,H as i,A as s,z as e,F as a,d as n,u as o,t as l}from"./p-CYYSsu3p.js";import{d as h}from"./p-CZ9SsTOA.js";import{d as r}from"./p-k5Hci0ok.js";import{d as c}from"./p-CHg_VPD9.js";import{d}from"./p-BmRO4X-P.js";const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=s(this,"indexChange"),this.tabSelect=s(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0,this.observer=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const i=t.scrollWidth>t.clientWidth;this.showScrollLeft=i&&t.scrollLeft>1,this.showScrollRight=i&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var i;let s=Number(this.arrowScrollDistance)||100;t&&(s*=-1),null===(i=this.scrollContainer)||void 0===i||i.scrollBy({top:0,left:s,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const i=t.querySelector('[role="tablist"]');if(i&&(i.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=i,this.evaluateScrollButtons(i),i.addEventListener("scroll",(()=>{this.evaluateScrollButtons(i)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(i)}));t.observe(i),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const i=Array.from(this._ref.getElementsByClassName("db-tab-item")),s=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of i){const a=i.indexOf(e),n=e.querySelector("label"),o=e.querySelector("input");if(o&&n){if(!o.id){const t=`${this._name}-tab-${a}`;n.setAttribute("for",t),o.id=t,o.setAttribute("name",this._name),s.length>a&&o.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&o.click()}}for(const t of s){if(t.id)continue;const i=s.indexOf(t);t.id=`${this._name}-tab-panel-${i}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${i}`)}}}handleChange(t){var i;if(t.stopPropagation(),t.target){const s=t.target.parentElement;if(s&&s.parentElement&&"LI"===(null===(i=s.parentElement)||void 0===i?void 0:i.nodeName)){const i=s.parentElement.parentElement;if(i){const s=i.parentElement;if(s){const e=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}setupObserver(t){if(!t)return;const i=t.closest("db-tabs");i&&!this.observer&&(this.observer=new MutationObserver((i=>{i.some((t=>{var i;const s=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==s?void 0:s.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tabs")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),s.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${e?" "+e:""}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tabs"),(()=>{this._name="tabs-"+(this.name||o()),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var t,i;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0,null===(i=this.observer)||void 0===i||i.disconnect()}render(){var t,i,s,o,l,h;return e("div",{key:"aca0d156b8d50c5951a982e5ab35d2644b4989e7",class:n("db-tabs",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(s=this.alignment)&&void 0!==s?s:"start","data-width":null!==(o=this.width)&&void 0!==o?o:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?e("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?e(a,null,e("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>e("db-tab-item",{key:this.name+"tab-item"+i,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,i)=>e("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?e("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,e("slot",{key:"b05907467917bb82f9ef6b9ce3774e52411fb822"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserver:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),u=b,f=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),b);break;case"db-button":customElements.get(l(t))||h();break;case"db-tab-item":customElements.get(l(t))||r();break;case"db-tab-list":customElements.get(l(t))||c();break;case"db-tab-panel":customElements.get(l(t))||d()}}))};export{u as DbTabs,f as defineCustomElement}
1
+ import{y as t,H as s,A as i,z as e,F as a,d as n,u as o,t as l}from"./p-CYYSsu3p.js";import{d as h}from"./p-DVuZmW_J.js";import{d as r}from"./p-C0JLpZ9Q.js";import{d as c}from"./p-C9llbu6g.js";import{d}from"./p-BQov9sQb.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),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 s=t.scrollWidth>t.clientWidth;this.showScrollLeft=s&&t.scrollLeft>1,this.showScrollRight=s&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var s;let i=Number(this.arrowScrollDistance)||100;t&&(i*=-1),null===(s=this.scrollContainer)||void 0===s||s.scrollBy({top:0,left:i,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const s=t.querySelector('[role="tablist"]');if(s&&(s.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=s,this.evaluateScrollButtons(s),s.addEventListener("scroll",(()=>{this.evaluateScrollButtons(s)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(s)}));t.observe(s),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const s=Array.from(this._ref.getElementsByClassName("db-tab-item")),i=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of s){const a=s.indexOf(e),n=e.querySelector("label"),o=e.querySelector("input");if(o&&n){if(!o.id){const t=`${this._name}-tab-${a}`;n.setAttribute("for",t),o.id=t,o.setAttribute("name",this._name),i.length>a&&o.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&o.click()}}for(const t of i){if(t.id)continue;const s=i.indexOf(t);t.id=`${this._name}-tab-panel-${s}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${s}`)}}}handleChange(t){var s;if(t.stopPropagation(),t.target){const i=t.target.parentElement;if(i&&i.parentElement&&"LI"===(null===(s=i.parentElement)||void 0===s?void 0:s.nodeName)){const s=i.parentElement.parentElement;if(s){const i=s.parentElement;if(i){const e=Array.from(i.children).indexOf(s);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}setupObserver(t){if(!t)return;const s=t.closest("db-tabs");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-tabs")})),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(),n=t.getAttribute("class");t.setAttribute(a.name,`${n||""}${e?" "+e:""}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tabs"),(()=>{this._name="tabs-"+(this.name||o()),this.initialized=!0})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn()}disconnectedCallback(){var t,s;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0,null===(s=this.observer)||void 0===s||s.disconnect()}render(){var t,s,i,o,l,h;return e("div",{key:"4ea02dd31be437dd343d13cac953658f1799762f",class:n("db-tabs",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-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(i=this.alignment)&&void 0!==i?i:"start","data-width":null!==(o=this.width)&&void 0!==o?o:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?e("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?e(a,null,e("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,s)=>e("db-tab-item",{key:this.name+"tab-item"+s,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,s)=>e("db-tab-panel",{key:this.name+"tab-panel"+s,content:t.content},t.children)))):null,this.showScrollRight?e("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,e("slot",{key:"c7b47c275a5784b8658e9c8b339445e083bc40d6"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserver:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),u=b,f=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),b);break;case"db-button":customElements.get(l(t))||h();break;case"db-tab-item":customElements.get(l(t))||r();break;case"db-tab-list":customElements.get(l(t))||c();break;case"db-tab-panel":customElements.get(l(t))||d()}}))};export{u as DbTabs,f as defineCustomElement}
package/bundle/db-tag.js CHANGED
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-3Da4lo5j.js";const a=o,p=s;export{a as DbTag,p as defineCustomElement}
1
+ import{D as s,d as o}from"./p-CuC4YsIB.js";const p=s,r=o;export{p as DbTag,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as s,A as t,h as e,f as a,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-CYYSsu3p.js";import{l as u,f as b,g as m,h as f,k as w,b as g,r as p,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-D6L0n3gO.js";import{d as k}from"./p-CewqZGHg.js";const z=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"textarea-"+d();this._id=e,this._messageId=e+b,this._validMessageId=e+m,this._invalidMessageId=e+f}setupObserver(i){if(!i)return;const s=i.closest("db-textarea");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-textarea")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),t.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+b;this._messageId=i,this._validMessageId=this._id+m,this._invalidMessageId=this._id+f,h(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),x(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s,t,e,a,d;return l("div",{key:"86667d91fc82e602b09ee517a82fff23d97966e7",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"27de9316b7e31d3f72b70ec38413d53a6aa54e3a",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("textarea",{key:"7316f18f473c980ba1cccf4fd52e84b8dc7a98cd","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(s=this.showResizer)||void 0===s||s),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly")||void 0,form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(e=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==e?e:"","aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:g,rows:n(this.rows,p),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"86ad7a246adc37d20e4b0314429202797520f39e",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"594923a0e9bb1ebd905c665c4f3d185b2f425bd5","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),_=z,O=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((i=>{switch(i){case"db-textarea":customElements.get(v(i))||customElements.define(v(i),z);break;case"db-infotext":customElements.get(v(i))||k()}}))};export{_ as DbTextarea,O as defineCustomElement}
1
+ import{y as i,H as s,A as t,h as e,f as a,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-CYYSsu3p.js";import{l as u,f as m,g as b,h as f,k as w,b as p,r as g,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-D6L0n3gO.js";import{d as k}from"./p-BpO8Ok-r.js";const O=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0,this.observer=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}resetIds(){var i,s,t;const e=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"textarea-"+d();this._id=e,this._messageId=e+m,this._validMessageId=e+b,this._invalidMessageId=e+f}setupObserver(i){if(!i)return;const s=i.closest("db-textarea");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((i=>{var s;const t=i.target.attributes.getNamedItem(null!==(s=i.attributeName)&&void 0!==s?s:"");return(null==t?void 0:t.value)!==i.oldValue}))&&this.enableAttributePassing(i,"db-textarea")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const a=s.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?i.setAttribute(a.name,a.value):i.removeAttribute(a.name),t.removeAttribute(a.name);else if(a&&["style"].includes(a.name))i.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(a.name,`${h||""}${e?" "+e:""}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+m;this._messageId=i,this._validMessageId=this._id+b,this._invalidMessageId=this._id+f,h(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),x(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-textarea"),(()=>{this.resetIds(),this._invalidMessage=this.invalidMessage||u})(),(()=>{this.setupObserver(this._ref)})(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i,s;null===(i=this.abortController)||void 0===i||i.abort(),null===(s=this.observer)||void 0===s||s.disconnect()}render(){var i,s,t,e,a,d;return l("div",{key:"cf9afaea12a18dbe916bf11e4cfeed5721833f96",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"fd7444fe2963eabdb755d2bc9d0b664103813493",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:y),l("textarea",{key:"282e969c036a0cd079a77cd6373103084dd5e75b","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(s=this.showResizer)||void 0===s||s),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly")||void 0,form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(e=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==e?e:"","aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:p,rows:n(this.rows,g),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"07e6585b6a89335004382796a9c06da736260028",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"6a8394ae7d62809422e54a810e75cf0628327223","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32],observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),z=O,_=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((i=>{switch(i){case"db-textarea":customElements.get(v(i))||customElements.define(v(i),O);break;case"db-infotext":customElements.get(v(i))||k()}}))};export{z as DbTextarea,_ as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CotiEHZi.js";const t=o,i=s;export{t as DbTooltip,i as defineCustomElement}
1
+ import{D as o,d as s}from"./p-gIJnyld5.js";const p=o,r=s;export{p as DbTooltip,r as defineCustomElement}
package/bundle/index.js CHANGED
@@ -1 +1 @@
1
- import{t as _}from"./p-CYYSsu3p.js";export{c as addAttributeToChildren,d as cls,f as delay,g as getAssetPath,k as getBoolean,j as getBooleanAsString,o as getHideProp,n as getInputValue,x as getNotificationRole,l as getNumber,v as getOptionKey,q as getSearchInput,m as getStep,h as hasVoiceOver,i as isArrayOfStrings,e as isIOSSafari,w as isKeyboardEvent,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions,p as stringPropVisible,u as uuid}from"./p-CYYSsu3p.js";import{DbAccordion as L}from"./db-accordion.js";import{DbAccordionItem as I}from"./db-accordion-item.js";import{DbBadge as O}from"./db-badge.js";import{DbBrand as U}from"./db-brand.js";import{DbButton as R}from"./db-button.js";import{DbCard as P}from"./db-card.js";import{DbCheckbox as M}from"./db-checkbox.js";import{DbCustomButton as V}from"./db-custom-button.js";import{DbCustomSelect as X}from"./db-custom-select.js";export{D as DocumentClickListener}from"./db-custom-select.js";import{DbCustomSelectDropdown as Y}from"./db-custom-select-dropdown.js";import{DbCustomSelectFormField as K}from"./db-custom-select-form-field.js";import{DbCustomSelectList as W}from"./db-custom-select-list.js";import{DbCustomSelectListItem as H}from"./db-custom-select-list-item.js";import{DbDivider as J}from"./db-divider.js";import{DbDrawer as Q}from"./db-drawer.js";import{DbHeader as Z}from"./db-header.js";import{DbIcon as $}from"./db-icon.js";import{DbInfotext as ee}from"./db-infotext.js";import{DbInput as te}from"./db-input.js";import{DbLink as oe}from"./db-link.js";import{DbNavigation as ae}from"./db-navigation.js";import{DbNavigationItem as re}from"./db-navigation-item.js";import{DbNotification as se}from"./db-notification.js";import{DbPage as ie}from"./db-page.js";import{DbPopover as ne}from"./db-popover.js";import{DbRadio as me}from"./db-radio.js";import{DbSection as le}from"./db-section.js";import{DbSelect as de}from"./db-select.js";import{DbStack as ce}from"./db-stack.js";import{DbSwitch as pe}from"./db-switch.js";import{DbTabItem as fe}from"./db-tab-item.js";import{DbTabList as be}from"./db-tab-list.js";import{DbTabPanel as ue}from"./db-tab-panel.js";import{DbTable as ge}from"./db-table.js";import{DbTableBody as Ee}from"./db-table-body.js";import{DbTableCaption as _e}from"./db-table-caption.js";import{DbTableDataCell as je}from"./db-table-data-cell.js";import{DbTableFooter as De}from"./db-table-footer.js";import{DbTableHead as Se}from"./db-table-head.js";import{DbTableHeaderCell as Le}from"./db-table-header-cell.js";import{DbTableRow as Ae}from"./db-table-row.js";import{DbTabs as he}from"./db-tabs.js";import{DbTag as Te}from"./db-tag.js";import{DbTextarea as Ie}from"./db-textarea.js";import{DbTooltip as Fe}from"./db-tooltip.js";export{x as COLOR,y as COLORS,z as COLORS_SIMPLE,C as COLOR_CONST,w as COLOR_SIMPLE,F as DB_UX_LOCAL_STORAGE_FRAMEWORK,G as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,p as DEFAULT_BURGER_MENU,s as DEFAULT_CLOSE_BUTTON,j as DEFAULT_DATALIST_ID_SUFFIX,q as DEFAULT_ICON,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,r as DEFAULT_ROWS,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,B as DEFAULT_VIEWPORT,v as DENSITIES,u as DENSITY,t as DENSITY_CONST,E as DESKTOP_VIEWPORT,S as SEMANTIC,A as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-BdL-nI5y.js";export{D as DocumentScrollListener}from"./p-DJTpgiBy.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-DOPXnIzL.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-BuBrj57D.js";const xe=["divider","card"],ve=["multiple","single"],Oe=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],Ue=["outlined","brand","filled","ghost"],we=["button","reset","submit"],ye=["static","interactive"],Ce=["1","2","3"],Ne=["fixed","auto","full"],Re=["checkbox","radio"],Pe=["amount","text","tag"],ke=["none","_"],Be=["horizontal","vertical"],Me=["none","strong","weak","invisible"],Ge=["left","right","up","down"],Ve=["modal","inside"],ze=["fixed","absolute"],Xe=["16","20","24","32","48","64"],Ye=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],Ke=["adaptive","brand","inline"],We=["medium","small"],He=["external","internal"],qe=["docked","standalone","overlay"],Je=["block","inline"],Qe=["assertive","polite","off"],Ze=["auto","fixed"],$e=["hidden","auto"],et=["simple","divider"],tt=["row","column"],ot=["stretch","start","end","center"],at=["space-between","start","end","center"],rt=["row","col","rowgroup","colgroup"],st=["none","weak","strong"],it=["x-small","small","medium","large"],nt=["flat","zebra","spaced"],mt=["none","both","horizontal","vertical"],lt=["table","list"],dt=["none","both","horizontal","vertical"],ct=["auto","1fr","min-content","max-content"],pt=["scrollbar","arrows"],ft=["auto","manually"],bt=["static","removable"],ut=["none","both","horizontal","vertical"],gt=["hard","soft","off"],Et=["description","label"],_t=["adaptive","neutral","critical","informational","warning","successful"],jt=["medium","small","large","none"],Dt=["medium","small","large","none"],St=["left","right","left-start","left-end","right-start","right-end"],Lt=["top","bottom","top-start","top-end","bottom-start","bottom-end"],At=[...St,...Lt],ht=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Tt=["horizontal","vertical"],It=["full","auto"],Ft=["full","medium","large","small"],xt=["none","slow","fast"],vt=["auto","fixed"],Ot=["small","medium"],Ut=["weak","strong"],wt=["invalid","valid","no-validation"],yt=["fixed","content"],Ct=["above","floating"],Nt=["leading","trailing"],Rt=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],Pt=["_self","_blank","_parent","_top"],kt=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Bt=["start","center","end"],Mt=e=>{"undefined"!=typeof customElements&&[L,I,O,U,R,P,M,V,X,Y,K,W,H,J,Q,Z,$,ee,te,oe,ae,re,se,ie,ne,me,le,de,ce,pe,fe,be,ue,ge,Ee,_e,je,De,Se,Le,Ae,he,Te,Ie,Fe].forEach((t=>{customElements.get(_(t.is))||customElements.define(_(t.is),t,e)}))};export{ve as AccordionBehaviorList,xe as AccordionVariantList,Bt as AlignmentList,Rt as AutoCompleteList,Oe as BadgePlacementList,we as ButtonTypeList,Ue as ButtonVariantList,ye as CardBehaviorList,Ce as CardElevationLevelList,Ne as CustomSelectDropdownWidthList,Re as CustomSelectListItemTypeList,ct as DBTableColumnsSizeList,mt as DBTableDividerList,rt as DBTableHeaderCellScopeList,lt as DBTableMobileVariantList,it as DBTableRowSizeList,st as DBTableRowSubHeaderEmphasisList,dt as DBTableStickyHeaderList,nt as DBTableVariantList,ke as DividerMarginList,Be as DividerVariantList,Me as DrawerBackdropList,Ge as DrawerDirectionList,ze as DrawerPositionList,Ve as DrawerVariantList,Ut as EmphasisList,yt as FieldSizingList,ht as GapSpacingList,Xe as IconWeightList,Ye as InputTypeList,Nt as LabelVariantHorizontalList,Ct as LabelVariantList,He as LinkContentList,kt as LinkReferrerPolicyList,We as LinkSizeList,Pt as LinkTargetList,Ke as LinkVariantList,Dt as MarginList,Ft as MaxWidthList,Qe as NotificationAriaLiveList,Je as NotificationLinkVariantList,qe as NotificationVariantList,Tt as OrientationList,$e as PageDocumentOverflowList,Ze as PageVariantList,St as PlacementHorizontalList,At as PlacementList,Lt as PlacementVerticalList,xt as PopoverDelayList,vt as PopoverWidthList,Pe as SelectedTypeList,_t as SemanticList,Ot as SizeList,jt as SpacingList,ot as StackAlignmentList,tt as StackDirectionList,at as StackJustifyContentList,et as StackVariantList,pt as TabsBehaviorList,ft as TabsInitialSelectedModeList,bt as TagBehaviorList,ut as TextareaResizeList,gt as TextareaWrapList,Et as TooltipVariantList,wt as ValidationList,It as WidthList,Mt as defineCustomElements}
1
+ import{t as _}from"./p-CYYSsu3p.js";export{c as addAttributeToChildren,d as cls,f as delay,g as getAssetPath,k as getBoolean,j as getBooleanAsString,o as getHideProp,n as getInputValue,x as getNotificationRole,l as getNumber,v as getOptionKey,q as getSearchInput,m as getStep,h as hasVoiceOver,i as isArrayOfStrings,e as isIOSSafari,w as isKeyboardEvent,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions,p as stringPropVisible,u as uuid}from"./p-CYYSsu3p.js";import{DbAccordion as L}from"./db-accordion.js";import{DbAccordionItem as I}from"./db-accordion-item.js";import{DbBadge as O}from"./db-badge.js";import{DbBrand as U}from"./db-brand.js";import{DbButton as R}from"./db-button.js";import{DbCard as P}from"./db-card.js";import{DbCheckbox as M}from"./db-checkbox.js";import{DbCustomButton as V}from"./db-custom-button.js";import{DbCustomSelect as X}from"./db-custom-select.js";export{D as DocumentClickListener}from"./db-custom-select.js";import{DbCustomSelectDropdown as Y}from"./db-custom-select-dropdown.js";import{DbCustomSelectFormField as K}from"./db-custom-select-form-field.js";import{DbCustomSelectList as W}from"./db-custom-select-list.js";import{DbCustomSelectListItem as H}from"./db-custom-select-list-item.js";import{DbDivider as J}from"./db-divider.js";import{DbDrawer as Q}from"./db-drawer.js";import{DbHeader as Z}from"./db-header.js";import{DbIcon as $}from"./db-icon.js";import{DbInfotext as ee}from"./db-infotext.js";import{DbInput as te}from"./db-input.js";import{DbLink as oe}from"./db-link.js";import{DbNavigation as ae}from"./db-navigation.js";import{DbNavigationItem as re}from"./db-navigation-item.js";import{DbNotification as se}from"./db-notification.js";import{DbPage as ie}from"./db-page.js";import{DbPopover as ne}from"./db-popover.js";import{DbRadio as me}from"./db-radio.js";import{DbSection as le}from"./db-section.js";import{DbSelect as de}from"./db-select.js";import{DbStack as ce}from"./db-stack.js";import{DbSwitch as pe}from"./db-switch.js";import{DbTabItem as fe}from"./db-tab-item.js";import{DbTabList as be}from"./db-tab-list.js";import{DbTabPanel as ue}from"./db-tab-panel.js";import{DbTable as ge}from"./db-table.js";import{DbTableBody as Ee}from"./db-table-body.js";import{DbTableCaption as _e}from"./db-table-caption.js";import{DbTableDataCell as je}from"./db-table-data-cell.js";import{DbTableFooter as Se}from"./db-table-footer.js";import{DbTableHead as De}from"./db-table-head.js";import{DbTableHeaderCell as Ae}from"./db-table-header-cell.js";import{DbTableRow as Le}from"./db-table-row.js";import{DbTabs as he}from"./db-tabs.js";import{DbTag as Te}from"./db-tag.js";import{DbTextarea as Ie}from"./db-textarea.js";import{DbTooltip as Fe}from"./db-tooltip.js";export{x as COLOR,y as COLORS,z as COLORS_SIMPLE,C as COLOR_CONST,w as COLOR_SIMPLE,F as DB_UX_LOCAL_STORAGE_FRAMEWORK,G as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,p as DEFAULT_BURGER_MENU,s as DEFAULT_CLOSE_BUTTON,j as DEFAULT_DATALIST_ID_SUFFIX,q as DEFAULT_ICON,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,r as DEFAULT_ROWS,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,B as DEFAULT_VIEWPORT,v as DENSITIES,u as DENSITY,t as DENSITY_CONST,E as DESKTOP_VIEWPORT,S as SEMANTIC,A as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-BdL-nI5y.js";export{D as DocumentScrollListener}from"./p-DJTpgiBy.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-C0q9XJSc.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-C_qYW0Kh.js";const xe=["divider","card"],ve=["multiple","single"],Oe=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],Ue=["outlined","brand","filled","ghost"],we=["button","reset","submit"],ye=["static","interactive"],Ce=["1","2","3"],Ne=["fixed","auto","full"],Re=["checkbox","radio"],ke=["amount","text","tag"],Pe=["none","_"],Me=["horizontal","vertical"],Be=["none","strong","weak","invisible"],Ge=["left","right","up","down"],Ve=["modal","inside"],Xe=["fixed","absolute"],ze=["16","20","24","32","48","64"],Ye=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],Ke=["adaptive","brand","inline"],We=["medium","small"],qe=["external","internal"],He=["docked","standalone","overlay"],Je=["block","inline"],Qe=["assertive","polite","off"],Ze=["auto","fixed"],$e=["hidden","auto"],et=["simple","divider"],tt=["row","column"],ot=["stretch","start","end","center"],at=["space-between","start","end","center"],rt=["row","col","rowgroup","colgroup"],st=["none","weak","strong"],it=["x-small","small","medium","large"],nt=["flat","zebra","spaced"],mt=["none","both","horizontal","vertical"],lt=["table","list"],dt=["none","both","horizontal","vertical"],ct=["auto","1fr","min-content","max-content"],pt=["scrollbar","arrows"],ft=["auto","manually"],bt=["static","removable"],ut=["none","both","horizontal","vertical"],gt=["hard","soft","off"],Et=["description","label"],_t=["adaptive","neutral","critical","informational","warning","successful"],jt=["medium","small","large","none"],St=["medium","small","large","none"],Dt=["left","right","left-start","left-end","right-start","right-end"],At=["top","bottom","top-start","top-end","bottom-start","bottom-end"],Lt=[...Dt,...At],ht=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],Tt=["horizontal","vertical"],It=["full","auto"],Ft=["full","medium","large","small"],xt=["none","slow","fast"],vt=["auto","fixed"],Ot=["small","medium"],Ut=["weak","strong"],wt=["invalid","valid","no-validation"],yt=["fixed","content"],Ct=["above","floating"],Nt=["leading","trailing"],Rt=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],kt=["_self","_blank","_parent","_top"],Pt=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Mt=["start","center","end"],Bt=e=>{"undefined"!=typeof customElements&&[L,I,O,U,R,P,M,V,X,Y,K,W,H,J,Q,Z,$,ee,te,oe,ae,re,se,ie,ne,me,le,de,ce,pe,fe,be,ue,ge,Ee,_e,je,Se,De,Ae,Le,he,Te,Ie,Fe].forEach((t=>{customElements.get(_(t.is))||customElements.define(_(t.is),t,e)}))};export{ve as AccordionBehaviorList,xe as AccordionVariantList,Mt as AlignmentList,Rt as AutoCompleteList,Oe as BadgePlacementList,we as ButtonTypeList,Ue as ButtonVariantList,ye as CardBehaviorList,Ce as CardElevationLevelList,Ne as CustomSelectDropdownWidthList,Re as CustomSelectListItemTypeList,ct as DBTableColumnsSizeList,mt as DBTableDividerList,rt as DBTableHeaderCellScopeList,lt as DBTableMobileVariantList,it as DBTableRowSizeList,st as DBTableRowSubHeaderEmphasisList,dt as DBTableStickyHeaderList,nt as DBTableVariantList,Pe as DividerMarginList,Me as DividerVariantList,Be as DrawerBackdropList,Ge as DrawerDirectionList,Xe as DrawerPositionList,Ve as DrawerVariantList,Ut as EmphasisList,yt as FieldSizingList,ht as GapSpacingList,ze as IconWeightList,Ye as InputTypeList,Nt as LabelVariantHorizontalList,Ct as LabelVariantList,qe as LinkContentList,Pt as LinkReferrerPolicyList,We as LinkSizeList,kt as LinkTargetList,Ke as LinkVariantList,St as MarginList,Ft as MaxWidthList,Qe as NotificationAriaLiveList,Je as NotificationLinkVariantList,He as NotificationVariantList,Tt as OrientationList,$e as PageDocumentOverflowList,Ze as PageVariantList,Dt as PlacementHorizontalList,Lt as PlacementList,At as PlacementVerticalList,xt as PopoverDelayList,vt as PopoverWidthList,ke as SelectedTypeList,_t as SemanticList,Ot as SizeList,jt as SpacingList,ot as StackAlignmentList,tt as StackDirectionList,at as StackJustifyContentList,et as StackVariantList,pt as TabsBehaviorList,ft as TabsInitialSelectedModeList,bt as TagBehaviorList,ut as TextareaResizeList,gt as TextareaWrapList,Et as TooltipVariantList,wt as ValidationList,It as WidthList,Bt as defineCustomElements}
@@ -1 +1 @@
1
- import{y as e,H as t,z as s,u as a,d,t as l}from"./p-CYYSsu3p.js";import{d as o}from"./p-D1orcIJf.js";import{d as b}from"./p-BEcb3EOO.js";import{d as i}from"./p-C4iD-won.js";import{d as n}from"./p-mk64Fltq.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?e.setAttribute(d.name,d.value):e.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))e.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),l=e.getAttribute("class");e.setAttribute(d.name,`${l||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-body")}render(){var e;return s("tbody",{key:"b6033bbe9cdcdb6bb9d292f68e980a6737fef9fa",class:d("db-table-body",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var d,l,o;return s("db-table-row",{class:null!==(d=e.className)&&void 0!==d?d:e.class,key:`${null!==(o=null!==(l=e.id)&&void 0!==l?l:this.id)&&void 0!==o?o:a()}-table-body-row-${t}`,cells:e.cells,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-body",{id:[1],className:[1,"classname"],rows:[16]}]);function r(){"undefined"!=typeof customElements&&["db-table-body","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-body":customElements.get(l(e))||customElements.define(l(e),c);break;case"db-link":customElements.get(l(e))||o();break;case"db-table-data-cell":customElements.get(l(e))||b();break;case"db-table-header-cell":customElements.get(l(e))||i();break;case"db-table-row":customElements.get(l(e))||n()}}))}export{c as D,r as d}
1
+ import{y as e,H as t,z as s,u as a,d,t as l}from"./p-CYYSsu3p.js";import{d as o}from"./p-Cc5hdI0x.js";import{d as i}from"./p-C2w7ILj8.js";import{d as n}from"./p-C47AKJPy.js";import{d as c}from"./p-Cn5NdjPW.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const d=t.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))d.value?e.setAttribute(d.name,d.value):e.removeAttribute(d.name),s.removeAttribute(d.name);else if(d&&["style"].includes(d.name))e.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),l=e.getAttribute("class");e.setAttribute(d.name,`${l||""}${a?` ${a}`:""}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const e=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);e&&e.remove()}this.enableAttributePassing(this._ref,"db-table-body")}render(){var e;return s("tbody",{key:"cb2c0320960e38d70cf2671ae7afd2b1a1d85029",class:d("db-table-body",this.className),ref:e=>{this._ref=e},id:this.id},this.rows?null===(e=this.rows)||void 0===e?void 0:e.map(((e,t)=>{var d,l,o;return s("db-table-row",{class:null!==(d=e.className)&&void 0!==d?d:e.class,key:`${null!==(o=null!==(l=e.id)&&void 0!==l?l:this.id)&&void 0!==o?o:a()}-table-body-row-${t}`,cells:e.cells,interactive:e.interactive,id:e.id})})):s("slot",null))}get rootElement(){return this}},[260,"db-table-body",{id:[1],className:[1,"classname"],rows:[16]}]);function b(){"undefined"!=typeof customElements&&["db-table-body","db-link","db-table-data-cell","db-table-header-cell","db-table-row"].forEach((e=>{switch(e){case"db-table-body":customElements.get(l(e))||customElements.define(l(e),r);break;case"db-link":customElements.get(l(e))||o();break;case"db-table-data-cell":customElements.get(l(e))||i();break;case"db-table-header-cell":customElements.get(l(e))||n();break;case"db-table-row":customElements.get(l(e))||c()}}))}export{r as D,b as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as s,A as i,w as e,k as a,f as d,z as o,j as n,d as r,t as h}from"./p-CYYSsu3p.js";import{s as c}from"./p-BdL-nI5y.js";import{d as l}from"./p-DVuZmW_J.js";const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=i(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&&(e(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=a(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()),d((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),d((()=>{var t;null===(t=this._ref)||void 0===t||t.close()}),401))}}setupObserver(t){if(!t)return;const s=t.closest("db-drawer");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const 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,i;return o("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},o("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")},o("header",{key:"b758a538b1337573090305aadcf3bc3befef1bf3",class:"db-drawer-header"},o("div",{key:"235f2be7afc9c968b9270178c2720a5a50436123",class:"db-drawer-header-text"},o("slot",{key:"26787a5e103d2d34785ce1eccd0ff73b6733fce8",name:"drawerHeader"})),o("db-button",{key:"1d22b406c4e235e91bc9bfc3265a0aaa9c7f8e8c",class:"button-close-drawer",icon:"cross",variant:"ghost",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t,!0)},null!==(i=this.closeButtonText)&&void 0!==i?i:c)),o("div",{key:"0e338b2e11c8582ba59595f34d8fc4911db7025e",class:"db-drawer-content"},o("slot",{key:"c761758ada4d1602878a58de6003e01cf5b5d075"}))))}get rootElement(){return this}static get watchers(){return{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}}},[260,"db-drawer",{open:[8],position:[1],backdrop:[1],variant:[1],id:[1],propOverrides:[16],direction:[1],className:[1,"classname"],spacing:[1],width:[1],rounded:[8],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"],initialized:[32],backdropPointerDown:[32],observer:[32]},void 0,{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}]);function u(){"undefined"!=typeof customElements&&["db-drawer","db-button"].forEach((t=>{switch(t){case"db-drawer":customElements.get(h(t))||customElements.define(h(t),b);break;case"db-button":customElements.get(h(t))||l()}}))}export{b as D,u as d}
@@ -0,0 +1 @@
1
+ import{y as t,H as e,z as s,d as a,t as n}from"./p-CYYSsu3p.js";const i=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const e=t.closest("db-tab-panel");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-tab-panel")})),this.observer.observe(e,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const n=e.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 e=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(n.name,`${i||""}${a?` ${a}`:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-panel"),(()=>{this.setupObserver(this._ref)})()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,e;return s("section",{key:"a49b39a27112785e03a663c4c0ee9571e46d76fa",class:a("db-tab-panel",this.className),role:"tabpanel",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},this.content?this.content:null,s("slot",{key:"0c70d6a522b959af728df3fda8c16dd9a5bc6a8f"}))}get rootElement(){return this}},[260,"db-tab-panel",{className:[1,"classname"],id:[1],propOverrides:[16],content:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-tab-panel"].forEach((t=>{"db-tab-panel"===t&&(customElements.get(n(t))||customElements.define(n(t),i))}))}export{i as D,d}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,j as i,d as n,t as a}from"./p-CYYSsu3p.js";const o=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-infotext");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-infotext")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-infotext"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,a;return e("span",{key:"e1a06bb9c2d0f88953a7281cdda505b392db609c",class:n("db-infotext",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-wrap":i(this.wrap,"wrap"),"data-show-icon-leading":i(null===(a=this.showIcon)||void 0===a||a,"showIcon")},this.text?this.text:null,e("slot",{key:"68b5e9bc974cf49e25470cba30b142495e06c72f"}))}get rootElement(){return this}},[260,"db-infotext",{id:[1],propOverrides:[16],className:[1,"classname"],icon:[1],semantic:[1],size:[1],wrap:[8],showIcon:[8,"show-icon"],text:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-infotext"].forEach((t=>{"db-infotext"===t&&(customElements.get(a(t))||customElements.define(a(t),o))}))}export{o as D,d}
1
+ import{y as t,H as s,z as e,j as i,d as n,t as a}from"./p-CYYSsu3p.js";const o=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-infotext");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-infotext")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const s=n.value.includes("hydrated"),i=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-infotext"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s,a;return e("span",{key:"5f43b3937dc8adf310a519fc581f6c3162e86ebb",class:n("db-infotext",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-wrap":i(this.wrap,"wrap"),"data-show-icon-leading":i(null===(a=this.showIcon)||void 0===a||a,"showIcon")},this.text?this.text:null,e("slot",{key:"253fc89f2cb83a9ca89c66eed70988b7b69b8507"}))}get rootElement(){return this}},[260,"db-infotext",{id:[1],propOverrides:[16],className:[1,"classname"],icon:[1],semantic:[1],size:[1],wrap:[8],showIcon:[8,"show-icon"],text:[1],observer:[32]}]);function d(){"undefined"!=typeof customElements&&["db-infotext"].forEach((t=>{"db-infotext"===t&&(customElements.get(a(t))||customElements.define(a(t),o))}))}export{o as D,d}
@@ -1 +1 @@
1
- import{y as t,H as i,A as e,j as s,z as a,k as h,d as n,t as d}from"./p-CYYSsu3p.js";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.change=e(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=s(t.target===this._ref,"selected")}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(i,e)=>{t.call(this._ref,i,e),"name"===i&&(this._name=e)}}}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 e=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tab-item")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const e=null==t?void 0:t.closest(i);if(t&&e){const i=e.attributes;for(let s=0;s<i.length;s++){const a=i.item(s);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),s=a.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(a.name,`${h||""}${s?` ${s}`:""}`),i?e.setAttribute("class","hydrated"):e.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=s(!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,d,o;return a("li",{key:"003e5b968c65ba01df1b97e8f75592aee31125d9",class:n("db-tab-item",this.className),role:"none"},a("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":s(this.showIconLeading,"showIconLeading")||s(this.showIcon,"showIcon"),"data-show-icon-trailing":s(this.showIconTrailing,"showIconTrailing"),"data-no-text":s(this.noText,"noText")},a("input",{key:"ffb91a8e7248a8e5a2a7a05c6828fc6203e1eb37",type:"radio",role:"tab",disabled:h(this.disabled,"disabled"),"aria-selected":this._selected,checked:h(this.checked,"checked"),ref:t=>{this._ref=t},name:this._name,id:null!==(d=this.id)&&void 0!==d?d:null===(o=this.propOverrides)||void 0===o?void 0:o.id,onInput:t=>this.handleChange(t)}),this.label?this.label:null,a("slot",{key:"2d079503cd365448cd054e05bfaec608ff476e04"})))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}}},[260,"db-tab-item",{active:[8],name:[1],className:[1,"classname"],id:[1],propOverrides:[16],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],showIconTrailing:[8,"show-icon-trailing"],noText:[8,"no-text"],disabled:[8],checked:[8],label:[1],_selected:[32],_name:[32],initialized:[32],_listenerAdded:[32],boundSetSelectedOnChange:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}]);function c(){"undefined"!=typeof customElements&&["db-tab-item"].forEach((t=>{"db-tab-item"===t&&(customElements.get(d(t))||customElements.define(d(t),o))}))}export{o as D,c as d}
1
+ import{y as t,H as i,A as e,j as s,z as a,k as h,d as n,t as d}from"./p-CYYSsu3p.js";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.change=e(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=s(t.target===this._ref,"selected")}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(i,e)=>{t.call(this._ref,i,e),"name"===i&&(this._name=e)}}}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 e=t.target.attributes.getNamedItem(null!==(i=t.attributeName)&&void 0!==i?i:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tab-item")})),this.observer.observe(i,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,i){const e=null==t?void 0:t.closest(i);if(t&&e){const i=e.attributes;for(let s=0;s<i.length;s++){const a=i.item(s);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),s=a.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(a.name,`${h||""}${s?` ${s}`:""}`),i?e.setAttribute("class","hydrated"):e.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=s(!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,d,o;return a("li",{key:"0fdd67479f1a261fc13487237c5707c902aecdd4",class:n("db-tab-item",this.className),role:"none"},a("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":s(this.showIconLeading,"showIconLeading")||s(this.showIcon,"showIcon"),"data-show-icon-trailing":s(this.showIconTrailing,"showIconTrailing"),"data-no-text":s(this.noText,"noText")},a("input",{key:"d24031946a686d3d077900a438c7a12443794a46",type:"radio",role:"tab",disabled:h(this.disabled,"disabled"),"aria-selected":this._selected,checked:h(this.checked,"checked"),ref:t=>{this._ref=t},name:this._name,id:null!==(d=this.id)&&void 0!==d?d:null===(o=this.propOverrides)||void 0===o?void 0:o.id,onInput:t=>this.handleChange(t)}),this.label?this.label:null,a("slot",{key:"bfa4aa307ea4b8ef410f367cfbe8a4578acc377d"})))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}}},[260,"db-tab-item",{active:[8],name:[1],className:[1,"classname"],id:[1],propOverrides:[16],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],showIconTrailing:[8,"show-icon-trailing"],noText:[8,"no-text"],disabled:[8],checked:[8],label:[1],_selected:[32],_name:[32],initialized:[32],_listenerAdded:[32],boundSetSelectedOnChange:[32],observer:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}],boundSetSelectedOnChange:[{watch0:0}],name:[{watch1:0}]}]);function c(){"undefined"!=typeof customElements&&["db-tab-item"].forEach((t=>{"db-tab-item"===t&&(customElements.get(d(t))||customElements.define(d(t),o))}))}export{o as D,c as d}
@@ -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{y as t,H as a,z as e,d as s,t as n,l}from"./p-CYYSsu3p.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,a){const e=null==t?void 0:t.closest(a);if(t&&e){const a=e.attributes;for(let s=0;s<a.length;s++){const n=a.item(s);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const a=n.value.includes("hydrated"),s=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${s?` ${s}`:""}`),a?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-data-cell")}render(){return e("td",{key:"e6614ac09ac484540ad119f807bea075521419cd",class:s("db-table-data-cell",this.className),ref:t=>{this._ref=t},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,colSpan:l(this.colSpan,this.colspan),rowSpan:l(this.rowSpan,this.rowspan),headers:this.headers},e("slot",{key:"bd353375cc862b5d5adea84545a5b5a63f1517e1"}))}get rootElement(){return this}},[260,"db-table-data-cell",{id:[1],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1]}]);function d(){"undefined"!=typeof customElements&&["db-table-data-cell"].forEach((t=>{"db-table-data-cell"===t&&(customElements.get(n(t))||customElements.define(n(t),i))}))}export{i as D,d}
1
+ import{y as t,H as a,z as e,d as s,t as n,l}from"./p-CYYSsu3p.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,a){const e=null==t?void 0:t.closest(a);if(t&&e){const a=e.attributes;for(let s=0;s<a.length;s++){const n=a.item(s);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))n.value?t.setAttribute(n.name,n.value):t.removeAttribute(n.name),e.removeAttribute(n.name);else if(n&&["style"].includes(n.name))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const a=n.value.includes("hydrated"),s=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${s?` ${s}`:""}`),a?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-data-cell")}render(){return e("td",{key:"3ca063d88f598584751c0519ae80146525d2fa5a",class:s("db-table-data-cell",this.className),ref:t=>{this._ref=t},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,colSpan:l(this.colSpan,this.colspan),rowSpan:l(this.rowSpan,this.rowspan),headers:this.headers},e("slot",{key:"30d173c99e242c0bf764f710cee0323bf9549e41"}))}get rootElement(){return this}},[260,"db-table-data-cell",{id:[1],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1]}]);function d(){"undefined"!=typeof customElements&&["db-table-data-cell"].forEach((t=>{"db-table-data-cell"===t&&(customElements.get(n(t))||customElements.define(n(t),i))}))}export{i as D,d}
@@ -0,0 +1 @@
1
+ import{y as t,H as e,z as s,j as a,d as n,t as l,l as i}from"./p-CYYSsu3p.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const n=e.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))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 e=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),l=t.getAttribute("class");t.setAttribute(n.name,`${l||""}${a?` ${a}`:""}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-table-header-cell")}render(){return s("th",{key:"fd53f0b6cc8b2574b895e131d02f0d47d5f93b63",class:n("db-table-header-cell",this.className),ref:t=>{this._ref=t},id:this.id,"data-horizontal-alignment":this.horizontalAlignment,"data-vertical-alignment":this.verticalAlignment,"data-no-text":a(this.noText),scope:this.scope,colSpan:i(this.colSpan,this.colspan),rowSpan:i(this.rowSpan,this.rowspan),headers:this.headers,abbr:this.abbr},s("slot",{key:"ce5680819cff5294899f7b79287156ff769241f1"}))}get rootElement(){return this}},[260,"db-table-header-cell",{id:[1],className:[1,"classname"],horizontalAlignment:[1,"horizontal-alignment"],verticalAlignment:[1,"vertical-alignment"],noText:[8,"no-text"],scope:[1],colSpan:[8,"col-span"],colspan:[8],rowSpan:[8,"row-span"],rowspan:[8],headers:[1],abbr:[1]}]);function d(){"undefined"!=typeof customElements&&["db-table-header-cell"].forEach((t=>{"db-table-header-cell"===t&&(customElements.get(l(t))||customElements.define(l(t),o))}))}export{o as D,d}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,d as i,t as a}from"./p-CYYSsu3p.js";const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-tab-list");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tab-list")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const a=s.item(i);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))a.value?t.setAttribute(a.name,a.value):t.removeAttribute(a.name),e.removeAttribute(a.name);else if(a&&["style"].includes(a.name))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(a.name,`${d||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"2538ba05ecad54c8c29dda93a08acb61faf02309",class:i("db-tab-list",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},e("ul",{key:"86824302eb2cc92ca45a61d8bdec0f34cd679db6",role:"tablist"},e("slot",{key:"b56406b1e0291a29905b599531c0dccd9c035504"})))}get rootElement(){return this}},[260,"db-tab-list",{id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]);function n(){"undefined"!=typeof customElements&&["db-tab-list"].forEach((t=>{"db-tab-list"===t&&(customElements.get(a(t))||customElements.define(a(t),d))}))}export{d as D,n as d}
1
+ import{y as t,H as s,z as e,d as i,t as d}from"./p-CYYSsu3p.js";const a=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.observer=void 0}setupObserver(t){if(!t)return;const s=t.closest("db-tab-list");s&&!this.observer&&(this.observer=new MutationObserver((s=>{s.some((t=>{var s;const e=t.target.attributes.getNamedItem(null!==(s=t.attributeName)&&void 0!==s?s:"");return(null==e?void 0:e.value)!==t.oldValue}))&&this.enableAttributePassing(t,"db-tab-list")})),this.observer.observe(s,{attributes:!0,attributeOldValue:!0}))}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const d=s.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),e.removeAttribute(d.name);else if(d&&["style"].includes(d.name))t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a||""}${i?` ${i}`:""}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(d.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tab-list"),this.setupObserver(this._ref)}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}render(){var t,s;return e("div",{key:"29168c82cf6e0c5838d9afc3c3b475c7b5d513b1",class:i("db-tab-list",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},e("ul",{key:"fee5dc804f98c62e86d56d9c941b103448ad6908",role:"tablist"},e("slot",{key:"694a0a4de4623152cf277138dd96f0558063115f"})))}get rootElement(){return this}},[260,"db-tab-list",{id:[1],propOverrides:[16],className:[1,"classname"],observer:[32]}]);function n(){"undefined"!=typeof customElements&&["db-tab-list"].forEach((t=>{"db-tab-list"===t&&(customElements.get(d(t))||customElements.define(d(t),a))}))}export{a as D,n as d}