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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bundle/db-accordion-item.js +1 -1
  3. package/bundle/db-accordion.js +1 -1
  4. package/bundle/db-badge.js +1 -1
  5. package/bundle/db-brand.js +1 -1
  6. package/bundle/db-button.js +1 -1
  7. package/bundle/db-card.js +1 -1
  8. package/bundle/db-checkbox.js +1 -1
  9. package/bundle/db-custom-button.js +1 -1
  10. package/bundle/db-custom-select-dropdown.js +1 -1
  11. package/bundle/db-custom-select-form-field.js +1 -1
  12. package/bundle/db-custom-select-list-item.js +1 -1
  13. package/bundle/db-custom-select-list.js +1 -1
  14. package/bundle/db-custom-select.js +1 -1
  15. package/bundle/db-divider.js +1 -1
  16. package/bundle/db-drawer.js +1 -1
  17. package/bundle/db-header.js +1 -1
  18. package/bundle/db-icon.js +1 -1
  19. package/bundle/db-infotext.js +1 -1
  20. package/bundle/db-input.js +1 -1
  21. package/bundle/db-link.js +1 -1
  22. package/bundle/db-navigation-item.js +1 -1
  23. package/bundle/db-navigation.js +1 -1
  24. package/bundle/db-notification.js +1 -1
  25. package/bundle/db-page.js +1 -1
  26. package/bundle/db-popover.js +1 -1
  27. package/bundle/db-radio.js +1 -1
  28. package/bundle/db-section.js +1 -1
  29. package/bundle/db-select.js +1 -1
  30. package/bundle/db-stack.js +1 -1
  31. package/bundle/db-switch.js +1 -1
  32. package/bundle/db-tab-item.js +1 -1
  33. package/bundle/db-tab-list.js +1 -1
  34. package/bundle/db-tab-panel.js +1 -1
  35. package/bundle/db-table-body.d.ts +11 -0
  36. package/bundle/db-table-body.js +1 -0
  37. package/bundle/db-table-caption.d.ts +11 -0
  38. package/bundle/db-table-caption.js +1 -0
  39. package/bundle/db-table-data-cell.d.ts +11 -0
  40. package/bundle/db-table-data-cell.js +1 -0
  41. package/bundle/db-table-footer.d.ts +11 -0
  42. package/bundle/db-table-footer.js +1 -0
  43. package/bundle/db-table-head.d.ts +11 -0
  44. package/bundle/db-table-head.js +1 -0
  45. package/bundle/db-table-header-cell.d.ts +11 -0
  46. package/bundle/db-table-header-cell.js +1 -0
  47. package/bundle/db-table-row.d.ts +11 -0
  48. package/bundle/db-table-row.js +1 -0
  49. package/bundle/db-table.d.ts +11 -0
  50. package/bundle/db-table.js +1 -0
  51. package/bundle/db-tabs.js +1 -1
  52. package/bundle/db-tag.js +1 -1
  53. package/bundle/db-textarea.js +1 -1
  54. package/bundle/db-tooltip.js +1 -1
  55. package/bundle/index.js +1 -1
  56. package/bundle/{p-BGVLpaFn.js → p-B5ANMEnQ.js} +1 -1
  57. package/bundle/p-BJwvv-yT.js +1 -0
  58. package/bundle/{p-B5E_0kTi.js → p-BNiKxu3y.js} +1 -1
  59. package/bundle/p-B_bPnncM.js +1 -0
  60. package/bundle/p-BnLhi6Lz.js +1 -0
  61. package/bundle/p-BrBlnLrn.js +1 -0
  62. package/bundle/p-CByFfoSH.js +1 -0
  63. package/bundle/{p-LbPYp2oP.js → p-CQo0C7QE.js} +1 -1
  64. package/bundle/p-CR2ZbfYe.js +1 -0
  65. package/bundle/p-CYYSsu3p.js +1 -0
  66. package/bundle/p-CeDu282h.js +1 -0
  67. package/bundle/p-CfLPOLHz.js +1 -0
  68. package/bundle/p-CoOxyQb2.js +1 -0
  69. package/bundle/p-CqED0CfD.js +1 -0
  70. package/bundle/p-Cr_z1Jfi.js +1 -0
  71. package/bundle/{p-DisehhY5.js → p-D-XzX0R7.js} +1 -1
  72. package/{dist/db-ux/p-D5mInaY7.js → bundle/p-D6L0n3gO.js} +1 -1
  73. package/bundle/p-DJTpgiBy.js +1 -0
  74. package/bundle/p-DMSIvqcA.js +1 -0
  75. package/bundle/p-DUiroUyR.js +1 -0
  76. package/bundle/p-DdyMClpj.js +1 -0
  77. package/bundle/p-DjVjS2Tb.js +1 -0
  78. package/bundle/p-in4Kv88F.js +1 -0
  79. package/dist/cjs/db-accordion-item.cjs.entry.js +4 -4
  80. package/dist/cjs/db-accordion.cjs.entry.js +3 -3
  81. package/dist/cjs/db-badge.cjs.entry.js +4 -4
  82. package/dist/cjs/db-brand.cjs.entry.js +4 -4
  83. package/dist/cjs/db-button.cjs.entry.js +6 -5
  84. package/dist/cjs/db-card.cjs.entry.js +4 -4
  85. package/dist/cjs/db-checkbox.cjs.entry.js +5 -5
  86. package/dist/cjs/db-custom-button.cjs.entry.js +6 -5
  87. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +18 -17
  88. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
  89. package/dist/cjs/db-custom-select.cjs.entry.js +10 -10
  90. package/dist/cjs/db-divider.cjs.entry.js +3 -3
  91. package/dist/cjs/db-drawer.cjs.entry.js +5 -5
  92. package/dist/cjs/db-header.cjs.entry.js +4 -4
  93. package/dist/cjs/db-icon.cjs.entry.js +4 -4
  94. package/dist/cjs/db-infotext.cjs.entry.js +4 -4
  95. package/dist/cjs/db-link_4.cjs.entry.js +248 -0
  96. package/dist/cjs/db-navigation-item.cjs.entry.js +4 -4
  97. package/dist/cjs/db-navigation.cjs.entry.js +4 -4
  98. package/dist/cjs/db-notification.cjs.entry.js +4 -4
  99. package/dist/cjs/db-page.cjs.entry.js +4 -4
  100. package/dist/cjs/db-popover.cjs.entry.js +5 -5
  101. package/dist/cjs/db-radio.cjs.entry.js +5 -5
  102. package/dist/cjs/db-section.cjs.entry.js +4 -4
  103. package/dist/cjs/db-select.cjs.entry.js +6 -6
  104. package/dist/cjs/db-stack.cjs.entry.js +4 -4
  105. package/dist/cjs/db-switch.cjs.entry.js +5 -5
  106. package/dist/cjs/db-tab-item_3.cjs.entry.js +12 -11
  107. package/dist/cjs/db-table-body_3.cjs.entry.js +194 -0
  108. package/dist/cjs/{db-link.cjs.entry.js → db-table-caption.cjs.entry.js} +7 -8
  109. package/dist/cjs/db-table.cjs.entry.js +158 -0
  110. package/dist/cjs/db-tabs.cjs.entry.js +4 -4
  111. package/dist/cjs/db-textarea.cjs.entry.js +5 -5
  112. package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
  113. package/dist/cjs/db-ux.cjs.js +2 -2
  114. package/dist/cjs/{document-click-listener-B2-xKJv3.js → document-click-listener-DdNXbErU.js} +1 -1
  115. package/dist/cjs/{document-scroll-listener-ChQ7XZRk.js → document-scroll-listener-CvAZ6uPr.js} +1 -1
  116. package/dist/cjs/{form-components-_ncB_U2D.js → form-components-CmQlkARp.js} +1 -1
  117. package/dist/cjs/{index-HN8AqU2e.js → index-C313bRqJ.js} +21 -0
  118. package/dist/cjs/{index-2_9ESkQu.js → index-spuu3sXz.js} +13 -8
  119. package/dist/cjs/index.cjs.js +23 -4
  120. package/dist/cjs/loader.cjs.js +2 -2
  121. package/dist/collection/collection-manifest.json +8 -0
  122. package/dist/collection/components/accordion/accordion.js +1 -1
  123. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  124. package/dist/collection/components/badge/badge.js +2 -2
  125. package/dist/collection/components/brand/brand.js +3 -3
  126. package/dist/collection/components/button/button.js +7 -6
  127. package/dist/collection/components/card/card.js +2 -2
  128. package/dist/collection/components/checkbox/checkbox.js +3 -3
  129. package/dist/collection/components/custom-button/custom-button.js +7 -6
  130. package/dist/collection/components/custom-select/custom-select.js +7 -7
  131. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
  132. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  133. package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
  134. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +3 -3
  135. package/dist/collection/components/divider/divider.js +1 -1
  136. package/dist/collection/components/drawer/drawer.js +3 -3
  137. package/dist/collection/components/header/header.js +2 -2
  138. package/dist/collection/components/icon/icon.js +3 -3
  139. package/dist/collection/components/infotext/infotext.js +3 -3
  140. package/dist/collection/components/input/input.js +11 -10
  141. package/dist/collection/components/link/link.js +2 -2
  142. package/dist/collection/components/navigation/navigation.js +2 -2
  143. package/dist/collection/components/navigation-item/navigation-item.js +3 -3
  144. package/dist/collection/components/notification/notification.js +3 -3
  145. package/dist/collection/components/page/page.js +2 -2
  146. package/dist/collection/components/popover/popover.js +2 -2
  147. package/dist/collection/components/radio/radio.js +2 -2
  148. package/dist/collection/components/section/section.js +2 -2
  149. package/dist/collection/components/select/select.js +5 -5
  150. package/dist/collection/components/stack/stack.js +2 -2
  151. package/dist/collection/components/switch/switch.js +6 -6
  152. package/dist/collection/components/tab-item/tab-item.js +9 -8
  153. package/dist/collection/components/tab-list/tab-list.js +2 -2
  154. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  155. package/dist/collection/components/table/examples/data.js +258 -0
  156. package/dist/collection/components/table/index.js +2 -0
  157. package/dist/collection/components/table/model.js +6 -0
  158. package/dist/collection/components/table/table.js +478 -0
  159. package/dist/collection/components/table-body/index.js +2 -0
  160. package/dist/collection/components/table-body/model.js +1 -0
  161. package/dist/collection/components/table-body/table-body.js +144 -0
  162. package/dist/collection/components/table-caption/index.js +2 -0
  163. package/dist/collection/components/table-caption/model.js +1 -0
  164. package/dist/collection/components/table-caption/table-caption.js +116 -0
  165. package/dist/collection/components/table-data-cell/index.js +2 -0
  166. package/dist/collection/components/table-data-cell/model.js +1 -0
  167. package/dist/collection/components/table-data-cell/table-data-cell.js +298 -0
  168. package/dist/collection/components/table-footer/index.js +2 -0
  169. package/dist/collection/components/table-footer/model.js +1 -0
  170. package/dist/collection/components/table-footer/table-footer.js +144 -0
  171. package/dist/collection/components/table-head/index.js +2 -0
  172. package/dist/collection/components/table-head/model.js +1 -0
  173. package/dist/collection/components/table-head/table-head.js +147 -0
  174. package/dist/collection/components/table-header-cell/index.js +2 -0
  175. package/dist/collection/components/table-header-cell/model.js +1 -0
  176. package/dist/collection/components/table-header-cell/table-header-cell.js +376 -0
  177. package/dist/collection/components/table-row/index.js +2 -0
  178. package/dist/collection/components/table-row/model.js +1 -0
  179. package/dist/collection/components/table-row/table-row.js +202 -0
  180. package/dist/collection/components/tabs/tabs.js +2 -2
  181. package/dist/collection/components/tag/tag.js +3 -3
  182. package/dist/collection/components/textarea/textarea.js +3 -3
  183. package/dist/collection/components/tooltip/tooltip.js +2 -2
  184. package/dist/collection/index.js +16 -0
  185. package/dist/collection/shared/model.js +1 -1
  186. package/dist/collection/utils/index.js +13 -8
  187. package/dist/custom-elements.json +6998 -3826
  188. package/dist/db-ux/db-ux.esm.js +1 -1
  189. package/dist/db-ux/index.esm.js +1 -1
  190. package/dist/db-ux/{p-2461e08a.entry.js → p-08271c80.entry.js} +1 -1
  191. package/dist/db-ux/{p-0f524f6c.entry.js → p-105ffa74.entry.js} +1 -1
  192. package/dist/db-ux/p-15adca91.entry.js +1 -0
  193. package/dist/db-ux/{p-db71c251.entry.js → p-1a322a0c.entry.js} +1 -1
  194. package/dist/db-ux/{p-46e3033b.entry.js → p-1f7232c0.entry.js} +1 -1
  195. package/dist/db-ux/p-27e2f6f2.entry.js +1 -0
  196. package/dist/db-ux/p-2907f214.entry.js +1 -0
  197. package/dist/db-ux/p-2ff958e4.entry.js +1 -0
  198. package/dist/db-ux/p-3423b7af.entry.js +1 -0
  199. package/dist/db-ux/p-365e6edf.entry.js +1 -0
  200. package/dist/db-ux/{p-fd334f14.entry.js → p-42516007.entry.js} +1 -1
  201. package/dist/db-ux/p-5045182c.entry.js +1 -0
  202. package/dist/db-ux/{p-26b7e21f.entry.js → p-5e1d42e5.entry.js} +1 -1
  203. package/dist/db-ux/{p-94de5791.entry.js → p-61b28212.entry.js} +1 -1
  204. package/dist/db-ux/p-6850a53c.entry.js +1 -0
  205. package/dist/db-ux/p-6bff55b4.entry.js +1 -0
  206. package/dist/db-ux/p-6e7c5e42.entry.js +1 -0
  207. package/dist/db-ux/p-76adf385.entry.js +1 -0
  208. package/dist/db-ux/p-78f7b353.entry.js +1 -0
  209. package/dist/db-ux/p-7fa5d304.entry.js +1 -0
  210. package/dist/db-ux/p-95b69e71.entry.js +1 -0
  211. package/dist/db-ux/p-99ebe6ec.entry.js +1 -0
  212. package/dist/db-ux/p-BihrW11j.js +1 -0
  213. package/dist/db-ux/p-BlbKvvUv.js +2 -0
  214. package/{bundle/p-BLyvxOmU.js → dist/db-ux/p-BtImZ8Nt.js} +1 -1
  215. package/dist/db-ux/p-OOIf-5XP.js +1 -0
  216. package/dist/db-ux/p-a5dc355d.entry.js +1 -0
  217. package/dist/db-ux/{p-4d5201a3.entry.js → p-a6113789.entry.js} +1 -1
  218. package/dist/db-ux/p-b9c0feaf.entry.js +1 -0
  219. package/dist/db-ux/p-c14fa91a.entry.js +1 -0
  220. package/dist/db-ux/p-c65b807e.entry.js +1 -0
  221. package/dist/db-ux/{p-d173eace.entry.js → p-dd9cedbe.entry.js} +1 -1
  222. package/dist/db-ux/{p-652739e4.entry.js → p-e3f705fd.entry.js} +1 -1
  223. package/dist/db-ux/{p-5eae34e7.entry.js → p-e4cddc9f.entry.js} +1 -1
  224. package/dist/db-ux/p-e7a8612c.entry.js +1 -0
  225. package/dist/db-ux/{p-4c3a8823.entry.js → p-ee8c3243.entry.js} +1 -1
  226. package/dist/db-ux/p-f0d0acfc.entry.js +1 -0
  227. package/dist/db-ux/{p-e2740857.entry.js → p-f15748ea.entry.js} +1 -1
  228. package/dist/db-ux/p-fumiz06Y.js +1 -0
  229. package/dist/esm/db-accordion-item.entry.js +4 -4
  230. package/dist/esm/db-accordion.entry.js +3 -3
  231. package/dist/esm/db-badge.entry.js +4 -4
  232. package/dist/esm/db-brand.entry.js +4 -4
  233. package/dist/esm/db-button.entry.js +6 -5
  234. package/dist/esm/db-card.entry.js +4 -4
  235. package/dist/esm/db-checkbox.entry.js +5 -5
  236. package/dist/esm/db-custom-button.entry.js +6 -5
  237. package/dist/esm/db-custom-select-dropdown_5.entry.js +18 -17
  238. package/dist/esm/db-custom-select-form-field.entry.js +4 -4
  239. package/dist/esm/db-custom-select.entry.js +10 -10
  240. package/dist/esm/db-divider.entry.js +3 -3
  241. package/dist/esm/db-drawer.entry.js +5 -5
  242. package/dist/esm/db-header.entry.js +4 -4
  243. package/dist/esm/db-icon.entry.js +4 -4
  244. package/dist/esm/db-infotext.entry.js +4 -4
  245. package/dist/esm/db-link_4.entry.js +243 -0
  246. package/dist/esm/db-navigation-item.entry.js +4 -4
  247. package/dist/esm/db-navigation.entry.js +4 -4
  248. package/dist/esm/db-notification.entry.js +4 -4
  249. package/dist/esm/db-page.entry.js +4 -4
  250. package/dist/esm/db-popover.entry.js +5 -5
  251. package/dist/esm/db-radio.entry.js +5 -5
  252. package/dist/esm/db-section.entry.js +4 -4
  253. package/dist/esm/db-select.entry.js +6 -6
  254. package/dist/esm/db-stack.entry.js +4 -4
  255. package/dist/esm/db-switch.entry.js +5 -5
  256. package/dist/esm/db-tab-item_3.entry.js +12 -11
  257. package/dist/esm/db-table-body_3.entry.js +190 -0
  258. package/dist/esm/{db-link.entry.js → db-table-caption.entry.js} +7 -8
  259. package/dist/esm/db-table.entry.js +156 -0
  260. package/dist/esm/db-tabs.entry.js +4 -4
  261. package/dist/esm/db-textarea.entry.js +5 -5
  262. package/dist/esm/db-tooltip.entry.js +5 -5
  263. package/dist/esm/db-ux.js +3 -3
  264. package/dist/esm/{document-click-listener-D7W_VE5O.js → document-click-listener-9wJfRcvz.js} +1 -1
  265. package/dist/esm/{document-scroll-listener-DOBe3Oa9.js → document-scroll-listener-4F0ZAg9p.js} +1 -1
  266. package/dist/esm/{form-components-D6LQfJvq.js → form-components-ZV7IN0oG.js} +1 -1
  267. package/dist/esm/{index-BGaQ0Bx8.js → index-BlbKvvUv.js} +21 -0
  268. package/dist/esm/{index-xkoBSP8R.js → index-fumiz06Y.js} +13 -8
  269. package/dist/esm/index.js +16 -5
  270. package/dist/esm/loader.js +3 -3
  271. package/dist/types/components/table/examples/data.d.ts +9 -0
  272. package/dist/types/components/table/index.d.ts +2 -0
  273. package/dist/types/components/table/model.d.ts +74 -0
  274. package/dist/types/components/table/table.d.ts +38 -0
  275. package/dist/types/components/table-body/index.d.ts +2 -0
  276. package/dist/types/components/table-body/model.d.ts +8 -0
  277. package/dist/types/components/table-body/table-body.d.ts +20 -0
  278. package/dist/types/components/table-caption/index.d.ts +2 -0
  279. package/dist/types/components/table-caption/model.d.ts +5 -0
  280. package/dist/types/components/table-caption/table-caption.d.ts +19 -0
  281. package/dist/types/components/table-data-cell/index.d.ts +2 -0
  282. package/dist/types/components/table-data-cell/model.d.ts +5 -0
  283. package/dist/types/components/table-data-cell/table-data-cell.d.ts +26 -0
  284. package/dist/types/components/table-footer/index.d.ts +2 -0
  285. package/dist/types/components/table-footer/model.d.ts +8 -0
  286. package/dist/types/components/table-footer/table-footer.d.ts +20 -0
  287. package/dist/types/components/table-head/index.d.ts +2 -0
  288. package/dist/types/components/table-head/model.d.ts +10 -0
  289. package/dist/types/components/table-head/table-head.d.ts +59 -0
  290. package/dist/types/components/table-header-cell/index.d.ts +2 -0
  291. package/dist/types/components/table-header-cell/model.d.ts +24 -0
  292. package/dist/types/components/table-header-cell/table-header-cell.d.ts +29 -0
  293. package/dist/types/components/table-row/index.d.ts +2 -0
  294. package/dist/types/components/table-row/model.d.ts +30 -0
  295. package/dist/types/components/table-row/table-row.d.ts +24 -0
  296. package/dist/types/components.d.ts +278 -0
  297. package/dist/types/index.d.ts +16 -0
  298. package/dist/types/shared/figma.d.ts +70 -18
  299. package/dist/types/shared/model.d.ts +44 -2
  300. package/dist/types/utils/index.d.ts +9 -4
  301. package/dist/vscode.html-custom-data.json +400 -2
  302. package/dist/web-types.json +744 -5
  303. package/package.json +4 -4
  304. package/bundle/p--qzKkpB9.js +0 -1
  305. package/bundle/p-9fgrfYbf.js +0 -1
  306. package/bundle/p-BChikMGc.js +0 -1
  307. package/bundle/p-BPxBqqlc.js +0 -1
  308. package/bundle/p-C6_y8Tot.js +0 -1
  309. package/bundle/p-CKfRqzsn.js +0 -1
  310. package/bundle/p-CnYMRGX1.js +0 -1
  311. package/bundle/p-CwzdaLE3.js +0 -1
  312. package/bundle/p-CyxQfbGC.js +0 -1
  313. package/bundle/p-DstwggLZ.js +0 -1
  314. package/bundle/p-suxDlmXD.js +0 -1
  315. package/dist/db-ux/p-11211f1a.entry.js +0 -1
  316. package/dist/db-ux/p-1a4881de.entry.js +0 -1
  317. package/dist/db-ux/p-21e5f6d0.entry.js +0 -1
  318. package/dist/db-ux/p-272bdffc.entry.js +0 -1
  319. package/dist/db-ux/p-32c359a9.entry.js +0 -1
  320. package/dist/db-ux/p-33606da9.entry.js +0 -1
  321. package/dist/db-ux/p-44391c06.entry.js +0 -1
  322. package/dist/db-ux/p-4b99f205.entry.js +0 -1
  323. package/dist/db-ux/p-4c238643.entry.js +0 -1
  324. package/dist/db-ux/p-93a6b1ee.entry.js +0 -1
  325. package/dist/db-ux/p-9728504d.entry.js +0 -1
  326. package/dist/db-ux/p-BGaQ0Bx8.js +0 -2
  327. package/dist/db-ux/p-CHLgQ9vn.js +0 -1
  328. package/dist/db-ux/p-D_roHmuC.js +0 -1
  329. package/dist/db-ux/p-a6c3ceaa.entry.js +0 -1
  330. package/dist/db-ux/p-cd3cfb4e.entry.js +0 -1
  331. package/dist/db-ux/p-cf045f35.entry.js +0 -1
  332. package/dist/db-ux/p-d3ada4cb.entry.js +0 -1
  333. package/dist/db-ux/p-d858f147.entry.js +0 -1
  334. package/dist/db-ux/p-ed5b3877.entry.js +0 -1
  335. package/dist/db-ux/p-fed0fc42.entry.js +0 -1
  336. package/dist/db-ux/p-xkoBSP8R.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @db-ux/wc-core-components
2
2
 
3
+ ## 4.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat: add DBTable, DBTableHead, DBTableBody, DBTableFooter, DBTableRow, DBTableHeaderCell, and DBTableDataCell components - [see commit f64b6e0](https://github.com/db-ux-design-system/core-web/commit/f64b6e0f4b36ea4987c1d9ac7a0328bf317cdcad)
8
+
9
+ ### Patch Changes
10
+
11
+ - fix: Add missing `propertyName` parameter to all `getBooleanAsString` calls across components for consistent string-based boolean parsing. - [see commit 6c11be5](https://github.com/db-ux-design-system/core-web/commit/6c11be54397c425607103f44b987b752efffb6d5)
12
+
13
+ - fix: Remove unwanted whitespace characters from rendered output to prevent layout shifts - [see commit a0f23a4](https://github.com/db-ux-design-system/core-web/commit/a0f23a4a3e715414de3d045b59b88dc3ac28d5e7)
14
+
3
15
  ## 4.10.2
4
16
 
5
17
  _version bump_
@@ -1 +1 @@
1
- import{D as o,d as p}from"./p-BGVLpaFn.js";const s=o,a=p;export{s as DbAccordionItem,a as defineCustomElement}
1
+ import{D as o,d as s}from"./p-B5ANMEnQ.js";const p=o,r=s;export{p as DbAccordionItem,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,t as i,H as s,u as e,z as a,d as n}from"./p-9fgrfYbf.js";import{d as h}from"./p-BGVLpaFn.js";const c=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this._name="",this.initialized=!1,this._initOpenIndexDone=!1}convertItems(){try{return"string"==typeof this.items?JSON.parse(this.items):this.items}catch(t){console.error(t)}return[]}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?n+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){this.initialized&&this._ref&&("single"===this.behavior?this.name?this._name!==this.name&&(this._name=this.name):this._name="accordion-"+e():this._name="")}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref){const i=this._ref.getElementsByTagName("details");if(i)for(const s of Array.from(i))""===this._name?s.removeAttribute("name"):s.name=null!==(t=this._name)&&void 0!==t?t:""}}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref&&this._initOpenIndexDone){if(this.initOpenIndex&&this.initOpenIndex.length>0){const t=this._ref.getElementsByTagName("details");if(t){const i="single"===this.behavior&&this.initOpenIndex.length>1?[this.initOpenIndex[0]]:this.initOpenIndex;Array.from(t).forEach(((t,s)=>{(null==i?void 0:i.includes(s))&&(t.open=!0)}))}}this._initOpenIndexDone=!1}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-accordion"),this.initialized=!0,this._initOpenIndexDone=!0,this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}render(){var t,i,s;return a("ul",{key:"d6927b05c169addaea604a2f5eb225017ee6973c",class:n("db-accordion",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-variant":this.variant},this.items?null:a("slot",null),this.items?null===(s=this.convertItems())||void 0===s?void 0:s.map(((t,i)=>a("db-accordion-item",{key:"accordion-item-"+i,headlinePlain:t.headlinePlain,disabled:t.disabled,text:t.text}))):null)}get rootElement(){return this}static get watchers(){return{initialized:[{watch0:0}],name:[{watch0:0}],behavior:[{watch0:0}],_ref:[{watch1:0},{watch2:0}],_name:[{watch1:0}],_initOpenIndexDone:[{watch2:0}],initOpenIndex:[{watch2:0}]}}},[260,"db-accordion",{name:[1],behavior:[1],initOpenIndex:[16],items:[1],id:[1],propOverrides:[16],className:[1,"classname"],variant:[1],_name:[32],initialized:[32],_initOpenIndexDone:[32]},void 0,{initialized:[{watch0:0}],name:[{watch0:0}],behavior:[{watch0:0}],_ref:[{watch1:0},{watch2:0}],_name:[{watch1:0}],_initOpenIndexDone:[{watch2:0}],initOpenIndex:[{watch2:0}]}]),o=c,d=function(){"undefined"!=typeof customElements&&["db-accordion","db-accordion-item"].forEach((t=>{switch(t){case"db-accordion":customElements.get(i(t))||customElements.define(i(t),c);break;case"db-accordion-item":customElements.get(i(t))||h()}}))};export{o as DbAccordion,d as defineCustomElement}
1
+ import{y as t,t as i,H as s,u as e,z as n,d as a}from"./p-CYYSsu3p.js";import{d as h}from"./p-B5ANMEnQ.js";const c=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this._name="",this.initialized=!1,this._initOpenIndexDone=!1}convertItems(){try{return"string"==typeof this.items?JSON.parse(this.items):this.items}catch(t){console.error(t)}return[]}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const n=i.item(e);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),e=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a?a+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){this.initialized&&this._ref&&("single"===this.behavior?this.name?this._name!==this.name&&(this._name=this.name):this._name="accordion-"+e():this._name="")}watch0(){this.watch0Fn()}watch1Fn(){var t;if(this._ref){const i=this._ref.getElementsByTagName("details");if(i)for(const s of Array.from(i))""===this._name?s.removeAttribute("name"):s.name=null!==(t=this._name)&&void 0!==t?t:""}}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref&&this._initOpenIndexDone){if(this.initOpenIndex&&this.initOpenIndex.length>0){const t=this._ref.getElementsByTagName("details");if(t){const i="single"===this.behavior&&this.initOpenIndex.length>1?[this.initOpenIndex[0]]:this.initOpenIndex;Array.from(t).forEach(((t,s)=>{(null==i?void 0:i.includes(s))&&(t.open=!0)}))}}this._initOpenIndexDone=!1}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-accordion"),this.initialized=!0,this._initOpenIndexDone=!0,this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}render(){var t,i,s;return n("ul",{key:"400ed83c47dea1ff19bd9d02e9c6a6338ea9c001",class:a("db-accordion",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-variant":this.variant},this.items?null:n("slot",null),this.items?null===(s=this.convertItems())||void 0===s?void 0:s.map(((t,i)=>n("db-accordion-item",{key:"accordion-item-"+i,headlinePlain:t.headlinePlain,disabled:t.disabled,text:t.text}))):null)}get rootElement(){return this}static get watchers(){return{initialized:[{watch0:0}],name:[{watch0:0}],behavior:[{watch0:0}],_ref:[{watch1:0},{watch2:0}],_name:[{watch1:0}],_initOpenIndexDone:[{watch2:0}],initOpenIndex:[{watch2:0}]}}},[260,"db-accordion",{name:[1],behavior:[1],initOpenIndex:[16],items:[1],id:[1],propOverrides:[16],className:[1,"classname"],variant:[1],_name:[32],initialized:[32],_initOpenIndexDone:[32]},void 0,{initialized:[{watch0:0}],name:[{watch0:0}],behavior:[{watch0:0}],_ref:[{watch1:0},{watch2:0}],_name:[{watch1:0}],_initOpenIndexDone:[{watch2:0}],initOpenIndex:[{watch2:0}]}]),o=c,d=function(){"undefined"!=typeof customElements&&["db-accordion","db-accordion-item"].forEach((t=>{switch(t){case"db-accordion":customElements.get(i(t))||customElements.define(i(t),c);break;case"db-accordion-item":customElements.get(i(t))||h()}}))};export{o as DbAccordion,d as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,d as a,t as i,j as d}from"./p-9fgrfYbf.js";import{a as n}from"./p-BdL-nI5y.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.initialized=!1}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-")))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(i.name,`${d?d+" ":""}${a}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}watch0Fn(){var t;if(this._ref&&this.initialized&&(null===(t=this.placement)||void 0===t?void 0:t.startsWith("corner"))){let t=this._ref.parentElement;t&&t.localName.includes("badge")&&(t=t.parentElement),t&&(t.dataset.hasBadge="true")}}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-badge"),this.initialized=!0,this.watch0Fn()}render(){var t,e,i,c;return s("span",{key:"ff0187a460e59a023d8a6267b0e12ee7ec3d5283",class:a("db-badge",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id,"data-semantic":this.semantic,"data-size":this.size,"data-emphasis":this.emphasis,"data-placement":this.placement,"data-wrap":d(this.wrap),"data-label":(null===(i=this.placement)||void 0===i?void 0:i.startsWith("corner"))&&(null!==(c=this.label)&&void 0!==c?c:n)},this.text?this.text:null,s("slot",{key:"e74eadd9e63a3c4de30d59936cdf08cd4b127ac1"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-badge",{placement:[1],id:[1],propOverrides:[16],className:[1,"classname"],semantic:[1],size:[1],emphasis:[1],wrap:[8],label:[1],text:[1],initialized:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),l=c,o=function(){"undefined"!=typeof customElements&&["db-badge"].forEach((t=>{"db-badge"===t&&(customElements.get(i(t))||customElements.define(i(t),c))}))};export{l as DbBadge,o as defineCustomElement}
1
+ import{y as t,H as s,z as e,j as a,d as i,t as d}from"./p-CYYSsu3p.js";import{a as n}from"./p-BdL-nI5y.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.initialized=!1}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-")))t.setAttribute(i.name,i.value),e.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===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(),d=t.getAttribute("class");t.setAttribute(i.name,`${d?d+" ":""}${a}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}watch0Fn(){var t;if(this._ref&&this.initialized&&(null===(t=this.placement)||void 0===t?void 0:t.startsWith("corner"))){let t=this._ref.parentElement;t&&t.localName.includes("badge")&&(t=t.parentElement),t&&(t.dataset.hasBadge="true")}}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-badge"),this.initialized=!0,this.watch0Fn()}render(){var t,s,d,l;return e("span",{key:"2a50a8228391b9faec650199f285dfbe943017b1",class:i("db-badge",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-semantic":this.semantic,"data-size":this.size,"data-emphasis":this.emphasis,"data-placement":this.placement,"data-wrap":a(this.wrap,"wrap"),"data-label":(null===(d=this.placement)||void 0===d?void 0:d.startsWith("corner"))&&(null!==(l=this.label)&&void 0!==l?l:n)},this.text?this.text:null,e("slot",{key:"0b8d3a53d7e6b786e554d31462ad0585668f4331"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-badge",{placement:[1],id:[1],propOverrides:[16],className:[1,"classname"],semantic:[1],size:[1],emphasis:[1],wrap:[8],label:[1],text:[1],initialized:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),o=l,c=function(){"undefined"!=typeof customElements&&["db-badge"].forEach((t=>{"db-badge"===t&&(customElements.get(d(t))||customElements.define(d(t),l))}))};export{o as DbBadge,c as defineCustomElement}
@@ -1 +1 @@
1
- import{y as s,H as t,z as e,d,t as n,j as i}from"./p-9fgrfYbf.js";import{q as o}from"./p-BdL-nI5y.js";const a=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost()}enableAttributePassing(s,t){const e=null==s?void 0:s.closest(t);if(s&&e){const t=e.attributes;for(let d=0;d<t.length;d++){const n=t.item(d);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))s.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)s.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const t=n.value.includes("hydrated"),d=n.value.replace("hydrated","").trim(),i=s.getAttribute("class");s.setAttribute(n.name,`${i?i+" ":""}${d}`),t?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const s=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);s&&s.remove()}this.enableAttributePassing(this._ref,"db-brand")}render(){var s,t,n;return e("div",{key:"7695d23f214566e142e43ffba27403680f9af668",class:d("db-brand",this.className),ref:s=>{this._ref=s},"data-icon":this.hideLogo?"none":null!==(s=this.icon)&&void 0!==s?s:o,"data-show-icon":i(this.showIcon),id:null!==(t=this.id)&&void 0!==t?t:null===(n=this.propOverrides)||void 0===n?void 0:n.id},e("slot",{key:"8c0e42e72b53a0417274170d7785cc93392e5c1c"}),this.text?this.text:null)}get rootElement(){return this}},[260,"db-brand",{hideLogo:[4,"hide-logo"],icon:[1],showIcon:[8,"show-icon"],id:[1],propOverrides:[16],className:[1,"classname"],text:[1]}]),c=a,r=function(){"undefined"!=typeof customElements&&["db-brand"].forEach((s=>{"db-brand"===s&&(customElements.get(n(s))||customElements.define(n(s),a))}))};export{c as DbBrand,r as defineCustomElement}
1
+ import{y as s,H as t,z as e,j as d,d as n,t as o}from"./p-CYYSsu3p.js";import{q as i}from"./p-BdL-nI5y.js";const a=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost()}enableAttributePassing(s,t){const e=null==s?void 0:s.closest(t);if(s&&e){const t=e.attributes;for(let d=0;d<t.length;d++){const n=t.item(d);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))s.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)s.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"class"===n.name){const t=n.value.includes("hydrated"),d=n.value.replace("hydrated","").trim(),o=s.getAttribute("class");s.setAttribute(n.name,`${o?o+" ":""}${d}`),t?e.setAttribute("class","hydrated"):e.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const s=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);s&&s.remove()}this.enableAttributePassing(this._ref,"db-brand")}render(){var s,t,o;return e("div",{key:"b9c685aae760ad32837d1f5474b1c4dde2da2ed4",class:n("db-brand",this.className),ref:s=>{this._ref=s},"data-icon":this.hideLogo?"none":null!==(s=this.icon)&&void 0!==s?s:i,"data-show-icon":d(this.showIcon,"showIcon"),id:null!==(t=this.id)&&void 0!==t?t:null===(o=this.propOverrides)||void 0===o?void 0:o.id},e("slot",{key:"8ae75c438c11b07f064697611914978be5b6b765"}),this.text?this.text:null)}get rootElement(){return this}},[260,"db-brand",{hideLogo:[4,"hide-logo"],icon:[1],showIcon:[8,"show-icon"],id:[1],propOverrides:[16],className:[1,"classname"],text:[1]}]),c=a,r=function(){"undefined"!=typeof customElements&&["db-brand"].forEach((s=>{"db-brand"===s&&(customElements.get(o(s))||customElements.define(o(s),a))}))};export{c as DbBrand,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-C6_y8Tot.js";const t=o,p=s;export{t as DbButton,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-B_bPnncM.js";const n=o,p=s;export{n as DbButton,p as defineCustomElement}
package/bundle/db-card.js CHANGED
@@ -1 +1 @@
1
- import{y as e,H as t,A as s,z as a,d,t as i}from"./p-9fgrfYbf.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.click=s(this,"click")}handleClick(e){this.click&&this.click.emit(e)}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-")))e.setAttribute(d.name,d.value),s.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===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(),i=e.getAttribute("class");e.setAttribute(d.name,`${i?i+" ":""}${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-card")}render(){var e,t;return a("div",{key:"60e504447aed35763e41cf692507e28c4da6e893",class:d("db-card",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(t=this.propOverrides)||void 0===t?void 0:t.id,"data-behavior":this.behavior,"data-elevation-level":this.elevationLevel,"data-spacing":this.spacing,onClick:e=>this.handleClick(e)},a("slot",{key:"92301dedc9ece7f5b2bcbd5da726d402af788b31"}))}get rootElement(){return this}},[260,"db-card",{id:[1],propOverrides:[16],className:[1,"classname"],behavior:[1],elevationLevel:[1,"elevation-level"],spacing:[1]}]),c=n,o=function(){"undefined"!=typeof customElements&&["db-card"].forEach((e=>{"db-card"===e&&(customElements.get(i(e))||customElements.define(i(e),n))}))};export{c as DbCard,o as defineCustomElement}
1
+ import{y as t,H as e,A as s,z as a,d as i,t as d}from"./p-CYYSsu3p.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.click=s(this,"click")}handleClick(t){this.click&&this.click.emit(t)}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-")))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const e=i.value.includes("hydrated"),a=i.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(i.name,`${d?d+" ":""}${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-card")}render(){var t,e;return a("div",{key:"24dfc836fc2ca48b141001fa073c204ae8452b3a",class:i("db-card",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id,"data-behavior":this.behavior,"data-elevation-level":this.elevationLevel,"data-spacing":this.spacing,onClick:t=>this.handleClick(t)},a("slot",{key:"99ad6ae87aba0214e1226bebd28f06d854ce9c65"}))}get rootElement(){return this}},[260,"db-card",{id:[1],propOverrides:[16],className:[1,"classname"],behavior:[1],elevationLevel:[1,"elevation-level"],spacing:[1]}]),n=c,o=function(){"undefined"!=typeof customElements&&["db-card"].forEach((t=>{"db-card"===t&&(customElements.get(d(t))||customElements.define(d(t),c))}))};export{n as DbCard,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,k as c,z as l,d as n,t as o,o as r}from"./p-9fgrfYbf.js";import{l as v,f as u,g as b,h as w,k as f}from"./p-BdL-nI5y.js";import{a as m}from"./p-DstwggLZ.js";import{d as k}from"./p-CwzdaLE3.js";const g=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.initialized=!1,this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0}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:f,h((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(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)||v,e()&&(this._voiceOverFallback=this._invalidMessage,h((()=>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)}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:"checkbox-"+d();this._id=e,this._messageId=e+u,this._validMessageId=e+b,this._invalidMessageId=e+w}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const h=s.item(e);if(h&&"data-density"!==h.name&&(h.name.startsWith("data-")||h.name.startsWith("aria-")))i.setAttribute(h.name,h.value),t.removeAttribute(h.name);else if(h&&"data-density"!==h.name&&"class"!==h.name&&"style"===h.name)i.setAttribute(h.name,h.value),t.removeAttribute(h.name);else if(h&&"class"===h.name){const s=h.value.includes("hydrated"),e=h.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(h.name,`${a?a+" ":""}${e}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(h.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||v}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+u;this._messageId=i,this._validMessageId=this._id+b,this._invalidMessageId=this._id+w,a(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._ref&&void 0!==this.indeterminate&&(this._ref.indeterminate=!!c(this.indeterminate))}watch3(){this.watch3Fn()}watch4Fn(){this.initialized&&this._ref&&(null!=this.checked&&(this._ref.checked=!!c(this.checked)),this.initialized=!1)}watch4(){this.watch4Fn()}watch5Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),m(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch5(){this.watch5Fn()}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-checkbox"),this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||v,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i;return l("div",{key:"b4aa2acb183c25424a4c670c699410d7f8e67ad1",class:n("db-checkbox",this.className),"data-size":this.size,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"549e995c2d8c8105d086ad957d0141d802aa3e55",htmlFor:this._id},l("input",{key:"e2454be60370d672b523d9fd2efb422a7072d763",type:"checkbox","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},id:this._id,name:this.name,checked:c(this.checked,"checked"),disabled:c(this.disabled,"disabled"),value:this.value,required:c(this.required,"required"),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(i=this.ariaDescribedBy)&&void 0!==i?i:this._descByIds}),this.label?this.label:null,l("slot",{key:"ce083db15ea772a5dd3fdf5e6a7c815029922b13"})),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||f):null,l("db-infotext",{key:"bde204976a10d8d7f54300c7b465a23e9492bcf3",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"7a8fe737edfae78c380f572b2cf5cec88fbd8edf","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},{watch3:0},{watch4:0},{watch5:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch3:0},{watch4:0}],indeterminate:[{watch3:0}],checked:[{watch4:0}]}}},[260,"db-checkbox",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],indeterminate:[8],checked:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],className:[1,"classname"],size:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],name:[1],disabled:[8],value:[8],ariaDescribedBy:[1,"aria-described-by"],label:[1],messageIcon:[1,"message-icon"],initialized:[32],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch3:0},{watch4:0},{watch5:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch3:0},{watch4:0}],indeterminate:[{watch3:0}],checked:[{watch4:0}]}]),p=g,y=function(){"undefined"!=typeof customElements&&["db-checkbox","db-infotext"].forEach((i=>{switch(i){case"db-checkbox":customElements.get(o(i))||customElements.define(o(i),g);break;case"db-infotext":customElements.get(o(i))||k()}}))};export{p as DbCheckbox,y as defineCustomElement}
1
+ import{y as i,H as s,A as t,h,f as e,p as a,u as d,k as c,z as l,o as n,d as o,t as r}from"./p-CYYSsu3p.js";import{l as v,f as b,g as u,h as f,k as w}from"./p-BdL-nI5y.js";import{a as m}from"./p-D6L0n3gO.js";import{d as k}from"./p-DMSIvqcA.js";const p=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.initialized=!1,this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0}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,h()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,e((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(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)||v,h()&&(this._voiceOverFallback=this._invalidMessage,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)}resetIds(){var i,s,t;const h=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:"checkbox-"+d();this._id=h,this._messageId=h+b,this._validMessageId=h+u,this._invalidMessageId=h+f}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let h=0;h<s.length;h++){const e=s.item(h);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),h=e.value.replace("hydrated","").trim(),a=i.getAttribute("class");i.setAttribute(e.name,`${a?a+" ":""}${h}`),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(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||v}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+b;this._messageId=i,this._validMessageId=this._id+u,this._invalidMessageId=this._id+f,a(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._ref&&void 0!==this.indeterminate&&(this._ref.indeterminate=!!c(this.indeterminate))}watch3(){this.watch3Fn()}watch4Fn(){this.initialized&&this._ref&&(null!=this.checked&&(this._ref.checked=!!c(this.checked)),this.initialized=!1)}watch4(){this.watch4Fn()}watch5Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),m(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch5(){this.watch5Fn()}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-checkbox"),this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||v,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i;return l("div",{key:"9bead8d138ba6b7f9df456409c54880035d74ca3",class:o("db-checkbox",this.className),"data-size":this.size,"data-hide-asterisk":n(this.showRequiredAsterisk),"data-hide-label":n(this.showLabel)},l("label",{key:"f2d598b2c599ae1fdc61eb8a948b27a13b6059fe",htmlFor:this._id},l("input",{key:"876cfc8632a429764fac5722513dbe418025dfdb",type:"checkbox","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},id:this._id,name:this.name,checked:c(this.checked,"checked"),disabled:c(this.disabled,"disabled"),value:this.value,required:c(this.required,"required"),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(i=this.ariaDescribedBy)&&void 0!==i?i:this._descByIds}),this.label?this.label:null,l("slot",{key:"32113165d250fd649d6e94d7721cbc152da104c1"})),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||w):null,l("db-infotext",{key:"459d930b5908b6e61ad7bcc463b5b67e710bddc5",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"cfcb23cc6fc53a5f82e56f83b1a9fffb279f0c67","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},{watch3:0},{watch4:0},{watch5:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch3:0},{watch4:0}],indeterminate:[{watch3:0}],checked:[{watch4:0}]}}},[260,"db-checkbox",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],indeterminate:[8],checked:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],className:[1,"classname"],size:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],name:[1],disabled:[8],value:[8],ariaDescribedBy:[1,"aria-described-by"],label:[1],messageIcon:[1,"message-icon"],initialized:[32],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch3:0},{watch4:0},{watch5:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch3:0},{watch4:0}],indeterminate:[{watch3:0}],checked:[{watch4:0}]}]),g=p,y=function(){"undefined"!=typeof customElements&&["db-checkbox","db-infotext"].forEach((i=>{switch(i){case"db-checkbox":customElements.get(r(i))||customElements.define(r(i),p);break;case"db-infotext":customElements.get(r(i))||k()}}))};export{g as DbCheckbox,y as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,z as i,d as n,t as o,j as a}from"./p-9fgrfYbf.js";const e=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let n=0;n<s.length;n++){const o=s.item(n);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))t.setAttribute(o.name,o.value),i.removeAttribute(o.name);else if(o&&"data-density"!==o.name&&"class"!==o.name&&"style"===o.name)t.setAttribute(o.name,o.value),i.removeAttribute(o.name);else if(o&&"class"===o.name){const s=o.value.includes("hydrated"),n=o.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(o.name,`${a?a+" ":""}${n}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(o.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-button")}render(){var t,s,o,e;return i("div",{key:"ea6221c001dbf13b6e1d49cbf6b87b195c24a5d0",class:n("db-custom-button",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":null!==(o=this.iconLeading)&&void 0!==o?o:this.icon,"data-show-icon":a(null!==(e=this.showIconLeading)&&void 0!==e?e:this.showIcon),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":a(this.showIconTrailing),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-no-text":a(this.noText)},i("slot",{key:"19220453bcb2323b8c540d60a1d12b85e0c07f4d"}))}get rootElement(){return this}},[260,"db-custom-button",{id:[1],propOverrides:[16],className:[1,"classname"],iconLeading:[1,"icon-leading"],icon:[1],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconTrailing:[1,"icon-trailing"],showIconTrailing:[8,"show-icon-trailing"],size:[1],width:[1],variant:[1],noText:[8,"no-text"]}]),d=e,c=function(){"undefined"!=typeof customElements&&["db-custom-button"].forEach((t=>{"db-custom-button"===t&&(customElements.get(o(t))||customElements.define(o(t),e))}))};export{d as DbCustomButton,c as defineCustomElement}
1
+ import{y as t,H as s,z as i,j as n,d as o,t as a}from"./p-CYYSsu3p.js";const e=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let n=0;n<s.length;n++){const o=s.item(n);if(o&&"data-density"!==o.name&&(o.name.startsWith("data-")||o.name.startsWith("aria-")))t.setAttribute(o.name,o.value),i.removeAttribute(o.name);else if(o&&"data-density"!==o.name&&"class"!==o.name&&"style"===o.name)t.setAttribute(o.name,o.value),i.removeAttribute(o.name);else if(o&&"class"===o.name){const s=o.value.includes("hydrated"),n=o.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(o.name,`${a?a+" ":""}${n}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(o.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-button")}render(){var t,s,a;return i("div",{key:"e947d7ffe6705c03ca3a1f9b5126c0f0d9449829",class:o("db-custom-button",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":null!==(a=this.iconLeading)&&void 0!==a?a:this.icon,"data-show-icon":n(this.showIconLeading,"showIconLeading")||n(this.showIcon,"showIcon"),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":n(this.showIconTrailing,"showIconTrailing"),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-no-text":n(this.noText,"noText")},i("slot",{key:"126520ddf6d2582fab1a1083c6241f868f3520d2"}))}get rootElement(){return this}},[260,"db-custom-button",{id:[1],propOverrides:[16],className:[1,"classname"],iconLeading:[1,"icon-leading"],icon:[1],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconTrailing:[1,"icon-trailing"],showIconTrailing:[8,"show-icon-trailing"],size:[1],width:[1],variant:[1],noText:[8,"no-text"]}]),d=e,c=function(){"undefined"!=typeof customElements&&["db-custom-button"].forEach((t=>{"db-custom-button"===t&&(customElements.get(a(t))||customElements.define(a(t),e))}))};export{d as DbCustomButton,c as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as p}from"./p-LbPYp2oP.js";const s=o,r=p;export{s as DbCustomSelectDropdown,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-CQo0C7QE.js";const p=o,r=s;export{p as DbCustomSelectDropdown,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as e,H as s,z as t,d,t as c}from"./p-9fgrfYbf.js";const o=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,s){const t=null==e?void 0:e.closest(s);if(e&&t){const s=t.attributes;for(let d=0;d<s.length;d++){const c=s.item(d);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))e.setAttribute(c.name,c.value),t.removeAttribute(c.name);else if(c&&"data-density"!==c.name&&"class"!==c.name&&"style"===c.name)e.setAttribute(c.name,c.value),t.removeAttribute(c.name);else if(c&&"class"===c.name){const s=c.value.includes("hydrated"),d=c.value.replace("hydrated","").trim(),o=e.getAttribute("class");e.setAttribute(c.name,`${o?o+" ":""}${d}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(c.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-custom-select-form-field")}render(){var e,s;return t("summary",{key:"e438005a75d6d93c62b6e04bce4f99cee7f73619",class:d("db-custom-select-form-field",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(s=this.propOverrides)||void 0===s?void 0:s.id},t("slot",{key:"1dc82e35d01ac41cde18cb033d657ec7f53886b8"}))}get rootElement(){return this}},[260,"db-custom-select-form-field",{id:[1],propOverrides:[16],className:[1,"classname"]}]),i=o,n=function(){"undefined"!=typeof customElements&&["db-custom-select-form-field"].forEach((e=>{"db-custom-select-form-field"===e&&(customElements.get(c(e))||customElements.define(c(e),o))}))};export{i as DbCustomSelectFormField,n as defineCustomElement}
1
+ import{y as e,H as s,z as t,d,t as c}from"./p-CYYSsu3p.js";const o=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost()}enableAttributePassing(e,s){const t=null==e?void 0:e.closest(s);if(e&&t){const s=t.attributes;for(let d=0;d<s.length;d++){const c=s.item(d);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))e.setAttribute(c.name,c.value),t.removeAttribute(c.name);else if(c&&"data-density"!==c.name&&"class"!==c.name&&"style"===c.name)e.setAttribute(c.name,c.value),t.removeAttribute(c.name);else if(c&&"class"===c.name){const s=c.value.includes("hydrated"),d=c.value.replace("hydrated","").trim(),o=e.getAttribute("class");e.setAttribute(c.name,`${o?o+" ":""}${d}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(c.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-custom-select-form-field")}render(){var e,s;return t("summary",{key:"29aec52d355ed2fd7f032cc70cb7fbda8e22f3ad",class:d("db-custom-select-form-field",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(s=this.propOverrides)||void 0===s?void 0:s.id},t("slot",{key:"797ccea7210fbfe800a3c3c08e37b0d73690e419"}))}get rootElement(){return this}},[260,"db-custom-select-form-field",{id:[1],propOverrides:[16],className:[1,"classname"]}]),i=o,a=function(){"undefined"!=typeof customElements&&["db-custom-select-form-field"].forEach((e=>{"db-custom-select-form-field"===e&&(customElements.get(c(e))||customElements.define(c(e),o))}))};export{i as DbCustomSelectFormField,a as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-B5E_0kTi.js";const p=o,r=s;export{p as DbCustomSelectListItem,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-BNiKxu3y.js";const p=o,r=s;export{p as DbCustomSelectListItem,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as s,d as o}from"./p-DisehhY5.js";const p=s,r=o;export{p as DbCustomSelectList,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-D-XzX0R7.js";const p=o,r=s;export{p as DbCustomSelectList,r as defineCustomElement}
@@ -1 +1 @@
1
- import{u as t,y as i,H as s,A as e,h,f as l,p as a,q as o,z as d,j as n,F as c,k as r,d as u,t as v,o as w}from"./p-9fgrfYbf.js";import{l as m,a as b,m as f,f as p,g as y,h as g,e as k,d as x,i as _,o as A,k as L,c as I,s as C}from"./p-BdL-nI5y.js";import{D as F}from"./p-BLyvxOmU.js";import{a as T}from"./p-DOPXnIzL.js";import{b as D}from"./p-DstwggLZ.js";import{d as S}from"./p-C6_y8Tot.js";import{d as O}from"./p-LbPYp2oP.js";import{d as E}from"./p-DisehhY5.js";import{d as R}from"./p-B5E_0kTi.js";import{d as j}from"./p-CwzdaLE3.js";import{d as B}from"./p--qzKkpB9.js";import{d as q}from"./p-CnYMRGX1.js";import{d as M}from"./p-BPxBqqlc.js";class z{static runCallbacks(t){for(const i of Object.values(z.callbacks))"function"==typeof i&&i(t)}constructor(){if(z._instance)return z._instance;z._instance=this,self.document&&self.document.addEventListener("click",(t=>z.runCallbacks(t)))}addCallback(i){const s=t();return z.callbacks[s]=i,s}removeCallback(t){delete z.callbacks[t]}}z.callbacks={},z._instance=null;const P=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.amountChange=e(this,"amountChange"),this.dropdownToggle=e(this,"dropdownToggle"),this.optionSelected=e(this,"optionSelected"),this.search=e(this,"search"),this.showClearSelection=!0,this.clearSelectionText="Clear selection",this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._selectId=void 0,this._labelId=void 0,this._summaryId=void 0,this._placeholderId=void 0,this._infoTextId=void 0,this._validity="no-validation",this._userInteraction=!1,this.abortController=void 0,this._descByIds=void 0,this._selectedLabels="",this._selectedLabelsId=void 0,this._voiceOverFallback="",this._selectedOptions=[],this.selectAllEnabled=!1,this.searchEnabled=!1,this.amountOptions=0,this._values=[],this._options=[],this._hasNoOptions=!1,this._documentClickListenerCallbackId=void 0,this._internalChangeTimestamp=0,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._searchValue=void 0,this.selectAllChecked=!1,this.selectAllIndeterminate=!1,this.satisfyReact=function(t){t.stopPropagation()}}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this.detailsRef))&&this.handleAutoPlacement()}hasValidState(){var t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,e,o,d,n,c;this.selectRef&&(this.selectRef.value=this.getNativeSelectValue()),(null===(t=this.selectRef)||void 0===t?void 0:t.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(e=this.selectRef)||void 0===e?void 0:e.validity.valid)&&this.required?(this.setDescById(this._validMessageId),h()&&(this._voiceOverFallback=null!==(o=this.validMessage)&&void 0!==o?o:L,l((()=>this._voiceOverFallback=""),1e3)),this._validity=null!==(d=this.validation)&&void 0!==d?d:"valid"):a(this.message,this.showMessage)?(this.setDescById(this._messageId),this._validity=null!==(n=this.validation)&&void 0!==n?n:"no-validation"):(this.setDescById(this._placeholderId),this._validity=null!==(c=this.validation)&&void 0!==c?c:"no-validation"):(this.setDescById(this._invalidMessageId),this._invalidMessage=this.invalidMessage||(null===(i=this.selectRef)||void 0===i?void 0:i.validationMessage)||m,h()&&(this._voiceOverFallback=this._invalidMessage,l((()=>this._voiceOverFallback=""),1e3)),this._userInteraction&&(this._validity=null!==(s=this.validation)&&void 0!==s?s:"invalid"))}handleDropdownToggle(t){var i,s;this.dropdownToggle&&(t.stopPropagation(),this.dropdownToggle.emit(t)),t.target instanceof HTMLDetailsElement&&t.target.open?(this._documentClickListenerCallbackId=(new z).addCallback((t=>this.handleDocumentClose(t))),this._documentScrollListenerCallbackId=(new F).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement(),null===(i=this._observer)||void 0===i||i.observe(this.detailsRef),t.target.dataset.test||this.handleOpenByKeyboardFocus()):(this._documentClickListenerCallbackId&&(new z).removeCallback(this._documentClickListenerCallbackId),this._documentScrollListenerCallbackId&&(new F).removeCallback(this._documentScrollListenerCallbackId),null===(s=this._observer)||void 0===s||s.unobserve(this.detailsRef))}getNativeSelectValue(){var t,i;return(null===(t=this._values)||void 0===t?void 0:t.length)&&null!==(i=this._values.at(0))&&void 0!==i?i:""}setDescById(t){var i;const s=[];t&&s.push(t),this._selectedLabelsId&&(null===(i=this._selectedLabels)||void 0===i?void 0:i.length)&&s.push(this._selectedLabelsId),this._descByIds=s.join(" ")}getSelectAllLabel(){var t;return null!==(t=this.selectAllLabel)&&void 0!==t?t:b}getOptionLabel(t){var i,s,e;return null!==(e=null!==(i=t.label)&&void 0!==i?i:null===(s=t.value)||void 0===s?void 0:""+s)&&void 0!==e?e:""}getOptionChecked(t){var i,s;return!(!t||!(null===(i=this._values)||void 0===i?void 0:i.includes))&&(null===(s=this._values)||void 0===s?void 0:s.includes(t))}getTagRemoveLabel(t){const i=this.removeTagsTexts,s=this.options;if(i&&s){const e=s.findIndex((i=>i.value===t.value));if(e>=0&&e<i.length)return i[e]}return`${f} ${this.getOptionLabel(t)}`}handleTagRemove(t,i){i&&i.stopPropagation(),this.handleSelect(t.value),this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const t=this.detailsRef.querySelector("article");t&&l((()=>{var i;T(t,this.detailsRef,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}}handleArrowDownUp(t){var i,s,e;if(null===(i=this.detailsRef)||void 0===i?void 0:i.open){if(self.document){const i=self.document.activeElement;if(i)if("checkbox"===i.getAttribute("type")||"radio"===i.getAttribute("type")){const h=null==i?void 0:i.closest("li");if("ArrowDown"===t.key||"ArrowRight"===t.key){let t=null==h?void 0:h.nextElementSibling;for(;t;){const i=t.querySelector("input");if(i){i.focus();break}t=t.nextElementSibling}t||this.handleFocusFirstDropdownCheckbox(i)}else{let t=null==h?void 0:h.previousElementSibling;for(;t;){const i=t.querySelector("input");if(i){i.focus();break}t=t.previousElementSibling}if(!t){const t=this.detailsRef.querySelector('input[type="checkbox"]');if(t&&t!==i)this.handleFocusFirstDropdownCheckbox(i);else{const t=o(this.detailsRef);if(t)l((()=>{t.focus()}),100);else{const t=Array.from(null===(s=this.detailsRef)||void 0===s?void 0:s.querySelectorAll('input[type="checkbox"],input[type="radio"]'));t.length&&(null===(e=t.at(-1))||void 0===e||e.focus())}}}}}else"search"!==i.getAttribute("type")||"ArrowUp"!==t.key&&"ArrowLeft"!==t.key?this.handleFocusFirstDropdownCheckbox(i):(this.handleClose(void 0,!0),this.handleSummaryFocus())}}else"ArrowDown"!==t.key&&"ArrowRight"!==t.key||(this.handleAutoPlacement(),this.detailsRef&&(this.detailsRef.open=!0),this.handleOpenByKeyboardFocus());t.stopPropagation(),t.preventDefault()}handleKeyboardPress(t){var i,s,e;if(t.stopPropagation(),"Escape"===t.key&&(null===(i=this.detailsRef)||void 0===i?void 0:i.open))this.handleClose(void 0,!0),this.handleSummaryFocus();else if("Enter"===t.key&&(null===(s=this.detailsRef)||void 0===s?void 0:s.open)){if(self.document){const i=self.document.activeElement;if(["checkbox","radio"].includes(i.getAttribute("type")||""))i.click(),t.preventDefault();else if("search"===i.getAttribute("type")){const i=null===(e=this._options)||void 0===e?void 0:e.find((t=>!t.isGroupTitle&&!t.disabled));(null==i?void 0:i.value)&&(this.handleSelect(i.value),t.preventDefault())}}}else"ArrowDown"!==t.key&&"ArrowUp"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||this.handleArrowDownUp(t)}handleClose(t,i){if(this.detailsRef)if(i)this.detailsRef.open=!1,this.handleSummaryFocus();else if(this.detailsRef.open&&t&&t.relatedTarget){const i=t.relatedTarget;this.detailsRef.contains(i)||"dialog"===i.localName||l((()=>this.detailsRef.open=!1),1)}}handleDocumentClose(t){var i,s;if(t){const e="number"==typeof t.detail?t.target:null===(i=t.detail)||void 0===i?void 0:i.target;(null===(s=this.detailsRef)||void 0===s?void 0:s.open)&&!this.detailsRef.contains(e)&&(this.detailsRef.open=!1)}}handleOptionSelected(t){(new Date).getTime()-this._internalChangeTimestamp<200||(this._values=t,this._userInteraction=!0,this.optionSelected&&this.optionSelected.emit(null!=t?t:[]),this._internalChangeTimestamp=(new Date).getTime())}handleSelect(t){var i;t&&(this.multiple?(null===(i=this._values)||void 0===i?void 0:i.includes(t))?this.handleOptionSelected(this._values.filter((i=>i!==t))):this.handleOptionSelected([...this._values||[],t]):(this.handleOptionSelected([t]),this.handleClose(void 0,!0)))}handleSelectAll(t){var i;if(t.stopPropagation(),(null===(i=this._values)||void 0===i?void 0:i.length)===this.amountOptions)this.handleOptionSelected([]);else{const t=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:void 0;this.handleOptionSelected(this.options?this.options.filter((i=>{var s;return!i.isGroupTitle&&(!t||(null===(s=i.value)||void 0===s?void 0:s.toLowerCase().includes(t.toLowerCase())))})).map((t=>{var i;return null!==(i=t.value)&&void 0!==i?i:""})):[])}}handleFocusFirstDropdownCheckbox(t){if(this.detailsRef){const i=Array.from(this.detailsRef.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(i.length){const s=i.at(0),e=s===t&&i.length>1?i.at(1):s;e&&l((()=>{e.focus()}),1)}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const t=o(this.detailsRef);t?l((()=>{t.focus()}),1):this.handleFocusFirstDropdownCheckbox()}}handleSearch(t){if(void 0===t)return;let i;if("string"==typeof t)i=t;else{const s=t;s.stopPropagation(),this.search&&this.search.emit(s),i=s.target.value,this._searchValue=i}this._options=this.options&&i&&0!==i.length?this.options.filter(this.searchFilter?t=>this.searchFilter(t,i):t=>!t.isGroupTitle&&this.getOptionLabel(t).toLowerCase().includes(i.toLowerCase())):this.options}handleClearAll(t){t.stopPropagation(),this.handleOptionSelected([]),this.handleSummaryFocus()}handleSummaryFocus(){var t;this.detailsRef&&(null===(t=this.detailsRef.querySelector("summary"))||void 0===t||t.focus())}resetIds(){var i,s,e;const h=null!==(e=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==e?e:"custom-select-"+t();this._id=h,this._messageId=h+p,this._validMessageId=h+y,this._invalidMessageId=h+g,this._selectId=h+k,this._labelId=h+x,this._summaryId=h+"-summary",this._placeholderId=h+_,this._selectedLabelsId=h+"-selected-labels",this._infoTextId=h+"-info"}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-")))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"data-density"!==h.name&&"class"!==h.name&&"style"===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(),l=t.getAttribute("class");t.setAttribute(h.name,`${l?l+" ":""}${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.detailsRef&&this.detailsRef.addEventListener("focusout",(t=>this.handleClose(t)))}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const t=this._id+p;this._labelId=this._id+x,this._selectId=this._id+k,this._validMessageId=this._id+y,this._invalidMessageId=this._id+g,this._placeholderId=this._id+_,a(this.message,this.showMessage)?this.setDescById(t):this.setDescById()}}watch2(){this.watch2Fn()}watch3Fn(){var t;if(this.detailsRef){const i=this.detailsRef.querySelector("summary");i&&i.setAttribute("aria-describedby",null!==(t=this.ariaDescribedBy)&&void 0!==t?t:this._descByIds||"")}}watch3(){this.watch3Fn()}watch4Fn(){void 0!==this.showNoResults?this._hasNoOptions=this.showNoResults:this._options&&(this._hasNoOptions=0===this._options.length)}watch4(){this.watch4Fn()}watch5Fn(){var t;this.selectAllEnabled=!(!this.multiple||!(null!==(t=this.showSelectAll)&&void 0!==t?t:this.amountOptions>5))}watch5(){this.watch5Fn()}watch6Fn(){var t;this.searchEnabled=null!==(t=this.showSearch)&&void 0!==t?t:this.amountOptions>9}watch6(){this.watch6Fn()}watch7Fn(){var t;const i=this.values;Array.isArray(i)?this._values!==i&&(this._values=i):null==i&&0!==(null===(t=this._values)||void 0===t?void 0:t.length)&&(this._values=[])}watch7(){this.watch7Fn()}watch8Fn(){this.selectRef&&this.handleValidation()}watch8(){this.watch8Fn()}watch9Fn(){if(this.selectRef){let t=this.abortController;t||(t=new AbortController,this.abortController=t);const i=this.values;D(this.selectRef,(()=>{this.handleOptionSelected(i||(this.selectRef.value?[this.selectRef.value]:[])),this.handleValidation()}),t.signal)}}watch9(){this.watch9Fn()}watch10Fn(){this._validity=this.validation}watch10(){this.watch10Fn()}watch11Fn(){var t,i;0===(null===(t=this._values)||void 0===t?void 0:t.length)?(this.selectAllChecked=!1,this.selectAllIndeterminate=!1):(null===(i=this._values)||void 0===i?void 0:i.length)===this.amountOptions?(this.selectAllIndeterminate=!1,this.selectAllChecked=!0):this._values&&(this.selectAllIndeterminate=!0)}watch11(){this.watch11Fn()}watch12Fn(){var t,i;this._options=this.options,this.amountOptions=null!==(i=null===(t=this.options)||void 0===t?void 0:t.filter((t=>!t.isGroupTitle)).length)&&void 0!==i?i:0}watch12(){this.watch12Fn()}watch13Fn(){this._searchValue=this.searchValue,this.searchValue&&this.handleSearch(this.searchValue)}watch13(){this.watch13Fn()}watch14Fn(){var t,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this._selectedOptions=null===(i=this.options)||void 0===i?void 0:i.filter((t=>{var i,s;return!(!t.value||!(null===(i=this._values)||void 0===i?void 0:i.includes))&&!t.isGroupTitle&&(null===(s=this._values)||void 0===s?void 0:s.includes(t.value))})))}watch14(){this.watch14Fn()}watch15Fn(){var t,i,s;if(this.selectedLabels)this._selectedLabels=this.selectedLabels;else if(null===(t=this._selectedOptions)||void 0===t?void 0:t.length){if(this.transformSelectedLabels)return void(this._selectedLabels=(0,this.transformSelectedLabels)(this._selectedOptions));this._selectedLabels="amount"===this.selectedType?this.amountText?this.amountText:`${null===(i=this._selectedOptions)||void 0===i?void 0:i.length} ${A}`:null===(s=this._selectedOptions)||void 0===s?void 0:s.map((t=>this.getOptionLabel(t))).join(", ")}else this._selectedLabels=""}watch15(){this.watch15Fn()}watch16Fn(){var t,i;this.amountChange&&this.amountChange.emit(null!==(i=null===(t=this._selectedOptions)||void 0===t?void 0:t.length)&&void 0!==i?i:0)}watch16(){this.watch16Fn()}watch17Fn(){this.selectAllRef&&(this.selectAllRef.indeterminate=!!this.selectAllIndeterminate)}watch17(){this.watch17Fn()}watch18Fn(){var t;this._invalidMessage=this.invalidMessage||(null===(t=this.selectRef)||void 0===t?void 0:t.validationMessage)||m}watch18(){this.watch18Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select"),this.resetIds(),this._invalidMessage=this.invalidMessage||m,"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{if(this.detailsRef){const i=t.find((({target:t})=>t===this.detailsRef));i&&!i.isIntersecting&&this.detailsRef.open&&(this.detailsRef.open=!1)}}))),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn(),this.watch6Fn(),this.watch7Fn(),this.watch8Fn(),this.watch9Fn(),this.watch10Fn(),this.watch11Fn(),this.watch12Fn(),this.watch13Fn(),this.watch14Fn(),this.watch15Fn(),this.watch16Fn(),this.watch17Fn(),this.watch18Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){var t,i,s,e,h,l,o,v,m,f,p,y,g,k,x;return d("div",{key:"09c22c7eef838650142ba6cf5a9f7a5c04e45d53",class:u("db-custom-select",this.className),id:this._id,ref:t=>{this._ref=t},"aria-invalid":"invalid"===this._validity,"data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":"floating"===this.variant&&"tag"===this.selectedType&&this.multiple?"above":this.variant,"data-required":n(this.required),"data-hide-asterisk":w(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":w(this.showLabel),"data-icon":this.icon,"data-show-icon":n(this.showIcon)},d("label",{key:"377317d94a5689926923ee92eb0399a6e0085177",id:this._labelId},null!==(t=this.label)&&void 0!==t?t:b,d("select",{key:"016dc1cebfeb8e92a08286e445d2da2989e630d7",role:"none",hidden:!0,id:this._selectId,tabIndex:-1,ref:t=>{this.selectRef=t},form:this.form,name:this.name,"data-custom-validity":this._validity,multiple:r(this.multiple,"multiple"),disabled:r(this.disabled,"disabled"),required:r(this.required,"required"),onChange:t=>this.satisfyReact(t)},(null===(i=this.options)||void 0===i?void 0:i.length)?null===(s=this.options)||void 0===s?void 0:s.map((t=>d("option",{disabled:t.disabled,value:t.value,key:void 0},this.getOptionLabel(t)))):null)),d("details",{key:"eb36c96b7c443289a1464a4d25a7f189c852b7ab",ref:t=>{this.detailsRef=t},open:this.open,onToggle:t=>this.handleDropdownToggle(t),onKeyDown:t=>this.handleKeyboardPress(t)},d("slot",{key:"2ce1371b5683aa1162167a7e9dd9950e075920cf"}),this.options?d(c,null,d("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":n(this.disabled),tabIndex:this.disabled?-1:void 0,"aria-labelledby":this._labelId},(null===(e=this._selectedLabels)||void 0===e?void 0:e.length)?d("span",{"data-visually-hidden":n("tag"===this.selectedType),id:this._selectedLabelsId},this.selectedPrefix?d("span",{"data-visually-hidden":"true"},this.selectedPrefix):null,this._selectedLabels):null,"tag"===this.selectedType?d("div",null,null===(h=this._selectedOptions)||void 0===h?void 0:h.map((t=>d("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(t),onRemove:i=>this.handleTagRemove(t,i),key:void 0},this.getOptionLabel(t))))):null),d("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?d("div",null,d("db-input",{type:"search",ref:t=>{this.searchInputRef=t},name:this._id,form:this._id,showLabel:!1,value:this._searchValue,label:null!==(l=this.searchLabel)&&void 0!==l?l:b,placeholder:null!==(o=this.searchPlaceholder)&&void 0!==o?o:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:void 0,onInput:t=>this.handleSearch(t)})):null,this._hasNoOptions||this.showLoading?d("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":void 0,semantic:this.showLoading?"informational":"warning"},null!==(v=this.showLoading?this.loadingText:this.noResultsText)&&void 0!==v?v:I):d(c,null,this.selectAllEnabled?d("div",null,d("div",{class:"db-checkbox db-custom-select-list-item"},d("label",null,d("input",{type:"checkbox",value:"select-all",ref:t=>{this.selectAllRef=t},form:this._id,checked:this.selectAllChecked,onChange:t=>this.handleSelectAll(t)}),this.getSelectAllLabel()))):null,d("db-custom-select-list",{multiple:r(this.multiple,"multiple"),label:null!==(f=null!==(m=this.listLabel)&&void 0!==m?m:this.label)&&void 0!==f?f:b},null===(p=this._options)||void 0===p?void 0:p.map((t=>d("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:t.showDivider,icon:t.icon,isGroupTitle:t.isGroupTitle,groupTitle:this.getOptionLabel(t),name:this._id,checked:this.getOptionChecked(t.value),disabled:t.disabled,value:t.value,onChange:()=>this.handleSelect(t.value),key:void 0},t.isGroupTitle?null:this.getOptionLabel(t)))))),d("div",null,d("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(void 0,!0)},null!==(y=this.mobileCloseButtonText)&&void 0!==y?y:C)))):null),(null===(g=this.showClearSelection)||void 0===g||g)&&(null===(k=this._values)||void 0===k?void 0:k.length)?d("db-button",{icon:"cross",variant:"ghost",size:"small",noText:!0,name:this._id,form:this._id,disabled:r(this.disabled,"disabled"),onClick:t=>this.handleClearAll(t)},this.clearSelectionText,d("db-tooltip",{placement:"top"},this.clearSelectionText)):null,d("span",{key:"ab092f47ad6734f696000a852fc8e3a825a6d054",class:"db-custom-select-placeholder","aria-hidden":n(!0),id:this._placeholderId},null!==(x=this.placeholder)&&void 0!==x?x:this.label),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||L):null,d("db-infotext",{key:"c134d746d6e06109551880446ff27e791fc482b1",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),d("span",{key:"b5b1291d952eaea52a176a3b8c9d9ea7a0b57e34","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}}},[260,"db-custom-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],ariaDescribedBy:[1,"aria-described-by"],showNoResults:[4,"show-no-results"],showLoading:[4,"show-loading"],multiple:[8],showSelectAll:[4,"show-select-all"],showSearch:[4,"show-search"],values:[16],validation:[1],options:[16],searchValue:[1,"search-value"],selectedLabels:[1,"selected-labels"],transformSelectedLabels:[16],selectedType:[1,"selected-type"],amountText:[1,"amount-text"],validMessage:[1,"valid-message"],required:[8],selectAllLabel:[1,"select-all-label"],removeTagsTexts:[16],placement:[1],searchFilter:[16],className:[1,"classname"],formFieldWidth:[1,"form-field-width"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],icon:[1],showIcon:[8,"show-icon"],label:[1],form:[1],name:[1],disabled:[8],open:[4],selectedPrefix:[1,"selected-prefix"],dropdownWidth:[1,"dropdown-width"],searchLabel:[1,"search-label"],searchPlaceholder:[1,"search-placeholder"],listLabel:[1,"list-label"],loadingText:[1,"loading-text"],noResultsText:[1,"no-results-text"],mobileCloseButtonText:[1,"mobile-close-button-text"],showClearSelection:[4,"show-clear-selection"],clearSelectionText:[1,"clear-selection-text"],placeholder:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_selectId:[32],_labelId:[32],_summaryId:[32],_placeholderId:[32],_infoTextId:[32],_validity:[32],_userInteraction:[32],abortController:[32],_descByIds:[32],_selectedLabels:[32],_selectedLabelsId:[32],_voiceOverFallback:[32],_selectedOptions:[32],selectAllEnabled:[32],searchEnabled:[32],amountOptions:[32],_values:[32],_options:[32],_hasNoOptions:[32],_documentClickListenerCallbackId:[32],_internalChangeTimestamp:[32],_documentScrollListenerCallbackId:[32],_observer:[32],_searchValue:[32],selectAllChecked:[32],selectAllIndeterminate:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}]),V=P,$=function(){"undefined"!=typeof customElements&&["db-custom-select","db-button","db-custom-select-dropdown","db-custom-select-list","db-custom-select-list-item","db-infotext","db-input","db-tag","db-tooltip"].forEach((t=>{switch(t){case"db-custom-select":customElements.get(v(t))||customElements.define(v(t),P);break;case"db-button":customElements.get(v(t))||S();break;case"db-custom-select-dropdown":customElements.get(v(t))||O();break;case"db-custom-select-list":customElements.get(v(t))||E();break;case"db-custom-select-list-item":customElements.get(v(t))||R();break;case"db-infotext":customElements.get(v(t))||j();break;case"db-input":customElements.get(v(t))||B();break;case"db-tag":customElements.get(v(t))||q();break;case"db-tooltip":customElements.get(v(t))||M()}}))};export{z as D,V as DbCustomSelect,$ as defineCustomElement}
1
+ import{u as t,y as i,H as s,A as e,h,f as l,p as a,q as o,z as d,F as n,j as c,k as r,o as u,d as v,t as w}from"./p-CYYSsu3p.js";import{l as m,a as b,m as f,f as p,g as y,h as g,e as k,d as x,i as _,o as A,k as I,c as C,s as L}from"./p-BdL-nI5y.js";import{D as F}from"./p-DJTpgiBy.js";import{a as D}from"./p-DOPXnIzL.js";import{b as T}from"./p-D6L0n3gO.js";import{d as S}from"./p-B_bPnncM.js";import{d as O}from"./p-CQo0C7QE.js";import{d as R}from"./p-D-XzX0R7.js";import{d as E}from"./p-BNiKxu3y.js";import{d as j}from"./p-DMSIvqcA.js";import{d as B}from"./p-CR2ZbfYe.js";import{d as M}from"./p-CeDu282h.js";import{d as q}from"./p-BrBlnLrn.js";class z{static runCallbacks(t){for(const i of Object.values(z.callbacks))"function"==typeof i&&i(t)}constructor(){if(z._instance)return z._instance;z._instance=this,self.document&&self.document.addEventListener("click",(t=>z.runCallbacks(t)))}addCallback(i){const s=t();return z.callbacks[s]=i,s}removeCallback(t){delete z.callbacks[t]}}z.callbacks={},z._instance=null;const N=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.amountChange=e(this,"amountChange"),this.dropdownToggle=e(this,"dropdownToggle"),this.optionSelected=e(this,"optionSelected"),this.search=e(this,"search"),this.showClearSelection=!0,this.clearSelectionText="Clear selection",this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._selectId=void 0,this._labelId=void 0,this._summaryId=void 0,this._placeholderId=void 0,this._infoTextId=void 0,this._validity="no-validation",this._userInteraction=!1,this.abortController=void 0,this._descByIds=void 0,this._selectedLabels="",this._selectedLabelsId=void 0,this._voiceOverFallback="",this._selectedOptions=[],this.selectAllEnabled=!1,this.searchEnabled=!1,this.amountOptions=0,this._values=[],this._options=[],this._hasNoOptions=!1,this._documentClickListenerCallbackId=void 0,this._internalChangeTimestamp=0,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._searchValue=void 0,this.selectAllChecked=!1,this.selectAllIndeterminate=!1,this.satisfyReact=function(t){t.stopPropagation()}}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this.detailsRef))&&this.handleAutoPlacement()}hasValidState(){var t;return!!(null!==(t=this.validMessage)&&void 0!==t?t:"valid"===this.validation)}handleValidation(){var t,i,s,e,o,d,n,c;this.selectRef&&(this.selectRef.value=this.getNativeSelectValue()),(null===(t=this.selectRef)||void 0===t?void 0:t.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(e=this.selectRef)||void 0===e?void 0:e.validity.valid)&&this.required?(this.setDescById(this._validMessageId),h()&&(this._voiceOverFallback=null!==(o=this.validMessage)&&void 0!==o?o:I,l((()=>this._voiceOverFallback=""),1e3)),this._validity=null!==(d=this.validation)&&void 0!==d?d:"valid"):a(this.message,this.showMessage)?(this.setDescById(this._messageId),this._validity=null!==(n=this.validation)&&void 0!==n?n:"no-validation"):(this.setDescById(this._placeholderId),this._validity=null!==(c=this.validation)&&void 0!==c?c:"no-validation"):(this.setDescById(this._invalidMessageId),this._invalidMessage=this.invalidMessage||(null===(i=this.selectRef)||void 0===i?void 0:i.validationMessage)||m,h()&&(this._voiceOverFallback=this._invalidMessage,l((()=>this._voiceOverFallback=""),1e3)),this._userInteraction&&(this._validity=null!==(s=this.validation)&&void 0!==s?s:"invalid"))}handleDropdownToggle(t){var i,s;this.dropdownToggle&&(t.stopPropagation(),this.dropdownToggle.emit(t)),t.target instanceof HTMLDetailsElement&&t.target.open?(this._documentClickListenerCallbackId=(new z).addCallback((t=>this.handleDocumentClose(t))),this._documentScrollListenerCallbackId=(new F).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement(),null===(i=this._observer)||void 0===i||i.observe(this.detailsRef),t.target.dataset.test||this.handleOpenByKeyboardFocus()):(this._documentClickListenerCallbackId&&(new z).removeCallback(this._documentClickListenerCallbackId),this._documentScrollListenerCallbackId&&(new F).removeCallback(this._documentScrollListenerCallbackId),null===(s=this._observer)||void 0===s||s.unobserve(this.detailsRef))}getNativeSelectValue(){var t,i;return(null===(t=this._values)||void 0===t?void 0:t.length)&&null!==(i=this._values.at(0))&&void 0!==i?i:""}setDescById(t){var i;const s=[];t&&s.push(t),this._selectedLabelsId&&(null===(i=this._selectedLabels)||void 0===i?void 0:i.length)&&s.push(this._selectedLabelsId),this._descByIds=s.join(" ")}getSelectAllLabel(){var t;return null!==(t=this.selectAllLabel)&&void 0!==t?t:b}getOptionLabel(t){var i,s,e;return null!==(e=null!==(i=t.label)&&void 0!==i?i:null===(s=t.value)||void 0===s?void 0:""+s)&&void 0!==e?e:""}getOptionChecked(t){var i,s;return!(!t||!(null===(i=this._values)||void 0===i?void 0:i.includes))&&(null===(s=this._values)||void 0===s?void 0:s.includes(t))}getTagRemoveLabel(t){const i=this.removeTagsTexts,s=this.options;if(i&&s){const e=s.findIndex((i=>i.value===t.value));if(e>=0&&e<i.length)return i[e]}return`${f} ${this.getOptionLabel(t)}`}handleTagRemove(t,i){i&&i.stopPropagation(),this.handleSelect(t.value),this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const t=this.detailsRef.querySelector("article");t&&l((()=>{var i;D(t,this.detailsRef,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}}handleArrowDownUp(t){var i,s,e;if(null===(i=this.detailsRef)||void 0===i?void 0:i.open){if(self.document){const i=self.document.activeElement;if(i)if("checkbox"===i.getAttribute("type")||"radio"===i.getAttribute("type")){const h=null==i?void 0:i.closest("li");if("ArrowDown"===t.key||"ArrowRight"===t.key){let t=null==h?void 0:h.nextElementSibling;for(;t;){const i=t.querySelector("input");if(i){i.focus();break}t=t.nextElementSibling}t||this.handleFocusFirstDropdownCheckbox(i)}else{let t=null==h?void 0:h.previousElementSibling;for(;t;){const i=t.querySelector("input");if(i){i.focus();break}t=t.previousElementSibling}if(!t){const t=this.detailsRef.querySelector('input[type="checkbox"]');if(t&&t!==i)this.handleFocusFirstDropdownCheckbox(i);else{const t=o(this.detailsRef);if(t)l((()=>{t.focus()}),100);else{const t=Array.from(null===(s=this.detailsRef)||void 0===s?void 0:s.querySelectorAll('input[type="checkbox"],input[type="radio"]'));t.length&&(null===(e=t.at(-1))||void 0===e||e.focus())}}}}}else"search"!==i.getAttribute("type")||"ArrowUp"!==t.key&&"ArrowLeft"!==t.key?this.handleFocusFirstDropdownCheckbox(i):(this.handleClose(void 0,!0),this.handleSummaryFocus())}}else"ArrowDown"!==t.key&&"ArrowRight"!==t.key||(this.handleAutoPlacement(),this.detailsRef&&(this.detailsRef.open=!0),this.handleOpenByKeyboardFocus());t.stopPropagation(),t.preventDefault()}handleKeyboardPress(t){var i,s,e;if(t.stopPropagation(),"Escape"===t.key&&(null===(i=this.detailsRef)||void 0===i?void 0:i.open))this.handleClose(void 0,!0),this.handleSummaryFocus();else if("Enter"===t.key&&(null===(s=this.detailsRef)||void 0===s?void 0:s.open)){if(self.document){const i=self.document.activeElement;if(["checkbox","radio"].includes(i.getAttribute("type")||""))i.click(),t.preventDefault();else if("search"===i.getAttribute("type")){const i=null===(e=this._options)||void 0===e?void 0:e.find((t=>!t.isGroupTitle&&!t.disabled));(null==i?void 0:i.value)&&(this.handleSelect(i.value),t.preventDefault())}}}else"ArrowDown"!==t.key&&"ArrowUp"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||this.handleArrowDownUp(t)}handleClose(t,i){if(this.detailsRef)if(i)this.detailsRef.open=!1,this.handleSummaryFocus();else if(this.detailsRef.open&&t&&t.relatedTarget){const i=t.relatedTarget;this.detailsRef.contains(i)||"dialog"===i.localName||l((()=>this.detailsRef.open=!1),1)}}handleDocumentClose(t){var i,s;if(t){const e="number"==typeof t.detail?t.target:null===(i=t.detail)||void 0===i?void 0:i.target;(null===(s=this.detailsRef)||void 0===s?void 0:s.open)&&!this.detailsRef.contains(e)&&(this.detailsRef.open=!1)}}handleOptionSelected(t){(new Date).getTime()-this._internalChangeTimestamp<200||(this._values=t,this._userInteraction=!0,this.optionSelected&&this.optionSelected.emit(null!=t?t:[]),this._internalChangeTimestamp=(new Date).getTime())}handleSelect(t){var i;t&&(this.multiple?(null===(i=this._values)||void 0===i?void 0:i.includes(t))?this.handleOptionSelected(this._values.filter((i=>i!==t))):this.handleOptionSelected([...this._values||[],t]):(this.handleOptionSelected([t]),this.handleClose(void 0,!0)))}handleSelectAll(t){var i;if(t.stopPropagation(),(null===(i=this._values)||void 0===i?void 0:i.length)===this.amountOptions)this.handleOptionSelected([]);else{const t=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:void 0;this.handleOptionSelected(this.options?this.options.filter((i=>{var s;return!i.isGroupTitle&&(!t||(null===(s=i.value)||void 0===s?void 0:s.toLowerCase().includes(t.toLowerCase())))})).map((t=>{var i;return null!==(i=t.value)&&void 0!==i?i:""})):[])}}handleFocusFirstDropdownCheckbox(t){if(this.detailsRef){const i=Array.from(this.detailsRef.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(i.length){const s=i.at(0),e=s===t&&i.length>1?i.at(1):s;e&&l((()=>{e.focus()}),1)}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const t=o(this.detailsRef);t?l((()=>{t.focus()}),1):this.handleFocusFirstDropdownCheckbox()}}handleSearch(t){if(void 0===t)return;let i;if("string"==typeof t)i=t;else{const s=t;s.stopPropagation(),this.search&&this.search.emit(s),i=s.target.value,this._searchValue=i}this._options=this.options&&i&&0!==i.length?this.options.filter(this.searchFilter?t=>this.searchFilter(t,i):t=>!t.isGroupTitle&&this.getOptionLabel(t).toLowerCase().includes(i.toLowerCase())):this.options}handleClearAll(t){t.stopPropagation(),this.handleOptionSelected([]),this.handleSummaryFocus()}handleSummaryFocus(){var t;this.detailsRef&&(null===(t=this.detailsRef.querySelector("summary"))||void 0===t||t.focus())}resetIds(){var i,s,e;const h=null!==(e=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==e?e:"custom-select-"+t();this._id=h,this._messageId=h+p,this._validMessageId=h+y,this._invalidMessageId=h+g,this._selectId=h+k,this._labelId=h+x,this._summaryId=h+"-summary",this._placeholderId=h+_,this._selectedLabelsId=h+"-selected-labels",this._infoTextId=h+"-info"}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-")))t.setAttribute(h.name,h.value),s.removeAttribute(h.name);else if(h&&"data-density"!==h.name&&"class"!==h.name&&"style"===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(),l=t.getAttribute("class");t.setAttribute(h.name,`${l?l+" ":""}${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.detailsRef&&this.detailsRef.addEventListener("focusout",(t=>this.handleClose(t)))}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const t=this._id+p;this._labelId=this._id+x,this._selectId=this._id+k,this._validMessageId=this._id+y,this._invalidMessageId=this._id+g,this._placeholderId=this._id+_,a(this.message,this.showMessage)?this.setDescById(t):this.setDescById()}}watch2(){this.watch2Fn()}watch3Fn(){var t;if(this.detailsRef){const i=this.detailsRef.querySelector("summary");i&&i.setAttribute("aria-describedby",null!==(t=this.ariaDescribedBy)&&void 0!==t?t:this._descByIds||"")}}watch3(){this.watch3Fn()}watch4Fn(){void 0!==this.showNoResults?this._hasNoOptions=this.showNoResults:this._options&&(this._hasNoOptions=0===this._options.length)}watch4(){this.watch4Fn()}watch5Fn(){var t;this.selectAllEnabled=!(!this.multiple||!(null!==(t=this.showSelectAll)&&void 0!==t?t:this.amountOptions>5))}watch5(){this.watch5Fn()}watch6Fn(){var t;this.searchEnabled=null!==(t=this.showSearch)&&void 0!==t?t:this.amountOptions>9}watch6(){this.watch6Fn()}watch7Fn(){var t;const i=this.values;Array.isArray(i)?this._values!==i&&(this._values=i):null==i&&0!==(null===(t=this._values)||void 0===t?void 0:t.length)&&(this._values=[])}watch7(){this.watch7Fn()}watch8Fn(){this.selectRef&&this.handleValidation()}watch8(){this.watch8Fn()}watch9Fn(){if(this.selectRef){let t=this.abortController;t||(t=new AbortController,this.abortController=t);const i=this.values;T(this.selectRef,(()=>{this.handleOptionSelected(i||(this.selectRef.value?[this.selectRef.value]:[])),this.handleValidation()}),t.signal)}}watch9(){this.watch9Fn()}watch10Fn(){this._validity=this.validation}watch10(){this.watch10Fn()}watch11Fn(){var t,i;0===(null===(t=this._values)||void 0===t?void 0:t.length)?(this.selectAllChecked=!1,this.selectAllIndeterminate=!1):(null===(i=this._values)||void 0===i?void 0:i.length)===this.amountOptions?(this.selectAllIndeterminate=!1,this.selectAllChecked=!0):this._values&&(this.selectAllIndeterminate=!0)}watch11(){this.watch11Fn()}watch12Fn(){var t,i;this._options=this.options,this.amountOptions=null!==(i=null===(t=this.options)||void 0===t?void 0:t.filter((t=>!t.isGroupTitle)).length)&&void 0!==i?i:0}watch12(){this.watch12Fn()}watch13Fn(){this._searchValue=this.searchValue,this.searchValue&&this.handleSearch(this.searchValue)}watch13(){this.watch13Fn()}watch14Fn(){var t,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this._selectedOptions=null===(i=this.options)||void 0===i?void 0:i.filter((t=>{var i,s;return!(!t.value||!(null===(i=this._values)||void 0===i?void 0:i.includes))&&!t.isGroupTitle&&(null===(s=this._values)||void 0===s?void 0:s.includes(t.value))})))}watch14(){this.watch14Fn()}watch15Fn(){var t,i,s;if(this.selectedLabels)this._selectedLabels=this.selectedLabels;else if(null===(t=this._selectedOptions)||void 0===t?void 0:t.length){if(this.transformSelectedLabels)return void(this._selectedLabels=(0,this.transformSelectedLabels)(this._selectedOptions));this._selectedLabels="amount"===this.selectedType?this.amountText?this.amountText:`${null===(i=this._selectedOptions)||void 0===i?void 0:i.length} ${A}`:null===(s=this._selectedOptions)||void 0===s?void 0:s.map((t=>this.getOptionLabel(t))).join(", ")}else this._selectedLabels=""}watch15(){this.watch15Fn()}watch16Fn(){var t,i;this.amountChange&&this.amountChange.emit(null!==(i=null===(t=this._selectedOptions)||void 0===t?void 0:t.length)&&void 0!==i?i:0)}watch16(){this.watch16Fn()}watch17Fn(){this.selectAllRef&&(this.selectAllRef.indeterminate=!!this.selectAllIndeterminate)}watch17(){this.watch17Fn()}watch18Fn(){var t;this._invalidMessage=this.invalidMessage||(null===(t=this.selectRef)||void 0===t?void 0:t.validationMessage)||m}watch18(){this.watch18Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-custom-select"),this.resetIds(),this._invalidMessage=this.invalidMessage||m,"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{if(this.detailsRef){const i=t.find((({target:t})=>t===this.detailsRef));i&&!i.isIntersecting&&this.detailsRef.open&&(this.detailsRef.open=!1)}}))),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn(),this.watch6Fn(),this.watch7Fn(),this.watch8Fn(),this.watch9Fn(),this.watch10Fn(),this.watch11Fn(),this.watch12Fn(),this.watch13Fn(),this.watch14Fn(),this.watch15Fn(),this.watch16Fn(),this.watch17Fn(),this.watch18Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){var t,i,s,e,h,l,o,w,m,f,p,y,g,k,x;return d("div",{key:"23fbdff16d9ced63948418aa8a8bf40284fb098b",class:v("db-custom-select",this.className),id:this._id,ref:t=>{this._ref=t},"aria-invalid":"invalid"===this._validity,"data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":"floating"===this.variant&&"tag"===this.selectedType&&this.multiple?"above":this.variant,"data-required":c(this.required,"required"),"data-hide-asterisk":u(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":u(this.showLabel),"data-icon":this.icon,"data-show-icon":c(this.showIcon,"showIcon")},d("label",{key:"8ad75d1e949eba11cca0cc8d6c6e6bbcef26f66b",id:this._labelId},null!==(t=this.label)&&void 0!==t?t:b,d("select",{key:"baa3747700f7b3c68b6278fc867e381193380bbc",role:"none",hidden:!0,id:this._selectId,tabIndex:-1,ref:t=>{this.selectRef=t},form:this.form,name:this.name,"data-custom-validity":this._validity,multiple:r(this.multiple,"multiple"),disabled:r(this.disabled,"disabled"),required:r(this.required,"required"),onChange:t=>this.satisfyReact(t)},(null===(i=this.options)||void 0===i?void 0:i.length)?null===(s=this.options)||void 0===s?void 0:s.map((t=>d("option",{disabled:t.disabled,value:t.value,key:void 0},this.getOptionLabel(t)))):null)),d("details",{key:"dcb70261b5b4400566104e60611ab2f25face4e4",ref:t=>{this.detailsRef=t},open:this.open,onToggle:t=>this.handleDropdownToggle(t),onKeyDown:t=>this.handleKeyboardPress(t)},d("slot",{key:"9eeb9bd1d98bd9caa0542c8ab6343f39f7c18418"}),this.options?d(n,null,d("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":c(this.disabled,"disabled"),tabIndex:this.disabled?-1:void 0,"aria-labelledby":this._labelId},(null===(e=this._selectedLabels)||void 0===e?void 0:e.length)?d("span",{"data-visually-hidden":c("tag"===this.selectedType,"selectedType"),id:this._selectedLabelsId},this.selectedPrefix?d("span",{"data-visually-hidden":"true"},this.selectedPrefix):null,this._selectedLabels):null,"tag"===this.selectedType?d("div",null,null===(h=this._selectedOptions)||void 0===h?void 0:h.map((t=>d("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(t),onRemove:i=>this.handleTagRemove(t,i),key:void 0},this.getOptionLabel(t))))):null),d("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?d("div",null,d("db-input",{type:"search",ref:t=>{this.searchInputRef=t},name:this._id,form:this._id,showLabel:!1,value:this._searchValue,label:null!==(l=this.searchLabel)&&void 0!==l?l:b,placeholder:null!==(o=this.searchPlaceholder)&&void 0!==o?o:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:void 0,onInput:t=>this.handleSearch(t)})):null,this._hasNoOptions||this.showLoading?d("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":void 0,semantic:this.showLoading?"informational":"warning"},null!==(w=this.showLoading?this.loadingText:this.noResultsText)&&void 0!==w?w:C):d(n,null,this.selectAllEnabled?d("div",null,d("div",{class:"db-checkbox db-custom-select-list-item"},d("label",null,d("input",{type:"checkbox",value:"select-all",ref:t=>{this.selectAllRef=t},form:this._id,checked:this.selectAllChecked,onChange:t=>this.handleSelectAll(t)}),this.getSelectAllLabel()))):null,d("db-custom-select-list",{multiple:r(this.multiple,"multiple"),label:null!==(f=null!==(m=this.listLabel)&&void 0!==m?m:this.label)&&void 0!==f?f:b},null===(p=this._options)||void 0===p?void 0:p.map((t=>d("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:t.showDivider,icon:t.icon,isGroupTitle:t.isGroupTitle,groupTitle:this.getOptionLabel(t),name:this._id,checked:this.getOptionChecked(t.value),disabled:t.disabled,value:t.value,onChange:()=>this.handleSelect(t.value),key:void 0},t.isGroupTitle?null:this.getOptionLabel(t)))))),d("div",null,d("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(void 0,!0)},null!==(y=this.mobileCloseButtonText)&&void 0!==y?y:L)))):null),(null===(g=this.showClearSelection)||void 0===g||g)&&(null===(k=this._values)||void 0===k?void 0:k.length)?d("db-button",{icon:"cross",variant:"ghost",size:"small",noText:!0,name:this._id,form:this._id,disabled:r(this.disabled,"disabled"),onClick:t=>this.handleClearAll(t)},this.clearSelectionText,d("db-tooltip",{placement:"top"},this.clearSelectionText)):null,d("span",{key:"9629df613b269cc393dc90d13fb9272652ecf300",class:"db-custom-select-placeholder","aria-hidden":"true",id:this._placeholderId},null!==(x=this.placeholder)&&void 0!==x?x:this.label),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||I):null,d("db-infotext",{key:"682b3bf735bc32853f9a5aabc2a37e88575c5b1f",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),d("span",{key:"dee40917af4cd6d663fe0f7e42110390605f982f","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}}},[260,"db-custom-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],ariaDescribedBy:[1,"aria-described-by"],showNoResults:[4,"show-no-results"],showLoading:[4,"show-loading"],multiple:[8],showSelectAll:[4,"show-select-all"],showSearch:[4,"show-search"],values:[16],validation:[1],options:[16],searchValue:[1,"search-value"],selectedLabels:[1,"selected-labels"],transformSelectedLabels:[16],selectedType:[1,"selected-type"],amountText:[1,"amount-text"],validMessage:[1,"valid-message"],required:[8],selectAllLabel:[1,"select-all-label"],removeTagsTexts:[16],placement:[1],searchFilter:[16],className:[1,"classname"],formFieldWidth:[1,"form-field-width"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],icon:[1],showIcon:[8,"show-icon"],label:[1],form:[1],name:[1],disabled:[8],open:[4],selectedPrefix:[1,"selected-prefix"],dropdownWidth:[1,"dropdown-width"],searchLabel:[1,"search-label"],searchPlaceholder:[1,"search-placeholder"],listLabel:[1,"list-label"],loadingText:[1,"loading-text"],noResultsText:[1,"no-results-text"],mobileCloseButtonText:[1,"mobile-close-button-text"],showClearSelection:[4,"show-clear-selection"],clearSelectionText:[1,"clear-selection-text"],placeholder:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_selectId:[32],_labelId:[32],_summaryId:[32],_placeholderId:[32],_infoTextId:[32],_validity:[32],_userInteraction:[32],abortController:[32],_descByIds:[32],_selectedLabels:[32],_selectedLabelsId:[32],_voiceOverFallback:[32],_selectedOptions:[32],selectAllEnabled:[32],searchEnabled:[32],amountOptions:[32],_values:[32],_options:[32],_hasNoOptions:[32],_documentClickListenerCallbackId:[32],_internalChangeTimestamp:[32],_documentScrollListenerCallbackId:[32],_observer:[32],_searchValue:[32],selectAllChecked:[32],selectAllIndeterminate:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}]),P=N,V=function(){"undefined"!=typeof customElements&&["db-custom-select","db-button","db-custom-select-dropdown","db-custom-select-list","db-custom-select-list-item","db-infotext","db-input","db-tag","db-tooltip"].forEach((t=>{switch(t){case"db-custom-select":customElements.get(w(t))||customElements.define(w(t),N);break;case"db-button":customElements.get(w(t))||S();break;case"db-custom-select-dropdown":customElements.get(w(t))||O();break;case"db-custom-select-list":customElements.get(w(t))||R();break;case"db-custom-select-list-item":customElements.get(w(t))||E();break;case"db-infotext":customElements.get(w(t))||j();break;case"db-input":customElements.get(w(t))||B();break;case"db-tag":customElements.get(w(t))||M();break;case"db-tooltip":customElements.get(w(t))||q()}}))};export{z as D,P as DbCustomSelect,V as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,d as i,t as d}from"./p-9fgrfYbf.js";const a=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const d=s.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a?a+" ":""}${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-divider")}render(){var t,s;return e("div",{key:"fff7e6137a97f6cc76eed42c2a5225348d0f78a0",class:i("db-divider",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-margin":this.margin,"data-variant":this.variant,"data-emphasis":this.emphasis,"data-width":this.width})}get rootElement(){return this}},[0,"db-divider",{id:[1],propOverrides:[16],margin:[1],variant:[1],emphasis:[1],width:[1],className:[1,"classname"]}]),n=a,r=function(){"undefined"!=typeof customElements&&["db-divider"].forEach((t=>{"db-divider"===t&&(customElements.get(d(t))||customElements.define(d(t),a))}))};export{n as DbDivider,r as defineCustomElement}
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()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const d=s.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)t.setAttribute(d.name,d.value),e.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(d.name,`${a?a+" ":""}${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-divider")}render(){var t,s;return e("div",{key:"b0abc4940417f6bf2ec60d4dce76f50a6639ffec",class:i("db-divider",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-margin":this.margin,"data-variant":this.variant,"data-emphasis":this.emphasis,"data-width":this.width})}get rootElement(){return this}},[0,"db-divider",{id:[1],propOverrides:[16],margin:[1],variant:[1],emphasis:[1],width:[1],className:[1,"classname"]}]),n=a,r=function(){"undefined"!=typeof customElements&&["db-divider"].forEach((t=>{"db-divider"===t&&(customElements.get(d(t))||customElements.define(d(t),a))}))};export{n as DbDivider,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CyxQfbGC.js";const p=o,r=s;export{p as DbDrawer,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-CqED0CfD.js";const p=o,r=s;export{p as DbDrawer,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as e,H as a,A as d,c as t,z as c,k as s,d as i,t as n}from"./p-9fgrfYbf.js";import{p as o}from"./p-BdL-nI5y.js";import{i as b}from"./p-BuBrj57D.js";import{d as r}from"./p-C6_y8Tot.js";import{d as f}from"./p-CyxQfbGC.js";const l=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.toggle=d(this,"toggle"),this.initialized=!1,this.forcedToMobile=!1}handleToggle(e){e&&e.stopPropagation&&e.stopPropagation();const a=!s(this.drawerOpen,"drawerOpen");this.toggle&&this.toggle.emit(a)}handleNavigationItemClick(e){b(e)&&this.handleToggle()}enableAttributePassing(e,a){const d=null==e?void 0:e.closest(a);if(e&&d){const a=d.attributes;for(let t=0;t<a.length;t++){const c=a.item(t);if(c&&"data-density"!==c.name&&(c.name.startsWith("data-")||c.name.startsWith("aria-")))e.setAttribute(c.name,c.value),d.removeAttribute(c.name);else if(c&&"data-density"!==c.name&&"class"!==c.name&&"style"===c.name)e.setAttribute(c.name,c.value),d.removeAttribute(c.name);else if(c&&"class"===c.name){const a=c.value.includes("hydrated"),t=c.value.replace("hydrated","").trim(),s=e.getAttribute("class");e.setAttribute(c.name,`${s?s+" ":""}${t}`),a?d.setAttribute("class","hydrated"):d.removeAttribute(c.name)}}}}watch0Fn(){this.initialized&&this._ref&&this.forceMobile&&(t(this._ref,{key:"data-force-mobile",value:"true"}),this.forcedToMobile=!0)}watch0(){this.watch0Fn()}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-header"),this.initialized=!0,this.watch0Fn()}render(){var e,a,d;return c("header",{key:"e7aec08f10ae9d575b3f845be29ee19505df9216",class:i("db-header",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(a=this.propOverrides)||void 0===a?void 0:a.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},c("div",{key:"bdd8c85393260628938c33bfa1e8573d55a6d730",class:"db-header-meta-navigation"},c("slot",{key:"42854d3f106c63bbc300458bdcd1cee48a7209be",name:"metaNavigation"})),c("div",{key:"7ef93a1cb414b44657aaed9d7e4779690ca09cf5",class:"db-header-navigation-bar"},c("div",{key:"1e59f2987b83fe87cd22ae6bc95ac855c061869d",class:"db-header-brand-container"},c("slot",{key:"a610bb49cd670896fa1b980ffcdcbd40c2918b4e",name:"brand"})),c("div",{key:"1b94bf4ad2ae622875b7192812f9940e2a87c1e3",class:"db-header-navigation-container"},c("div",{key:"f57aac0c4268bf285de0c07bab40a736f0ca42a4",class:"db-header-navigation"},c("slot",{key:"45d426690fb2dcb6da32f6f646f6b1a932670cd2"})),c("div",{key:"e60bbd749efc91d9a00a54e3cbc6680e60f6e598",class:"db-header-primary-action"},c("slot",{key:"a41128047bc8063c45c14ff3ec58d83b7edd8361",name:"primaryAction"}))),c("div",{key:"82e9141ac1ad7f3a33c9bf0c15ccf969ccd5983f",class:"db-header-action-container"},c("div",{key:"3f3a5c503ecd11a0aff43623921bb185c59c1802",class:"db-header-burger-menu-container"},c("db-button",{key:"6547cf5982c0739960b9aa4363ddb71f1423a55b",icon:"menu",variant:"ghost",noText:!0,onClick:()=>this.handleToggle()},null!==(d=this.burgerMenuLabel)&&void 0!==d?d:o)),c("div",{key:"d2c691eb6980e0eeffa512ade5074400bd7973b8",class:"db-header-secondary-action"},c("slot",{key:"6cc84b46d137ac21aa90c3f84a873febc6fa0dba",name:"secondaryAction"})))),c("db-drawer",{key:"0dc5a353f9365bd76df967cdb3fee20be89c9525",class:"db-header-drawer",spacing:"small",rounded:!0,closeButtonId:this.closeButtonId,closeButtonText:this.closeButtonText,open:s(this.drawerOpen),onClose:()=>this.handleToggle()},c("div",{key:"3a28d35593fe006aa6269077466bd91f33d5f2e4",class:"db-header-drawer-navigation"},c("div",{key:"c42fff25d31fe234d841542b108805b0aa85e05c",class:"db-header-navigation",onClick:e=>this.handleNavigationItemClick(e)},c("slot",{key:"0de07dfbb68d8b6fcec8cf11e6398566fcd45ae2"})),c("div",{key:"062baf6f3e503751017a3715142e1622c27423bf",class:"db-header-meta-navigation"},c("slot",{key:"2e703195477c67270e9bfee04335321c52b9de4f",name:"metaNavigation"}))),c("div",{key:"028079c3fae38bc282d8b064e4515ab1c27aa45e",class:"db-header-secondary-action"},c("slot",{key:"879378953f36c55b5489a157a81e62f188ab5fca",name:"secondaryAction"}))))}get rootElement(){return this}static get watchers(){return{initialized:[{watch0:0}],_ref:[{watch0:0}]}}},[260,"db-header",{forceMobile:[8,"force-mobile"],drawerOpen:[8,"drawer-open"],className:[1,"classname"],id:[1],propOverrides:[16],width:[1],burgerMenuLabel:[1,"burger-menu-label"],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"],initialized:[32],forcedToMobile:[32]},void 0,{initialized:[{watch0:0}],_ref:[{watch0:0}]}]),h=l,m=function(){"undefined"!=typeof customElements&&["db-header","db-button","db-drawer"].forEach((e=>{switch(e){case"db-header":customElements.get(n(e))||customElements.define(n(e),l);break;case"db-button":customElements.get(n(e))||r();break;case"db-drawer":customElements.get(n(e))||f()}}))};export{h as DbHeader,m as defineCustomElement}
1
+ import{y as e,H as a,A as d,k as t,c as s,z as c,d as i,t as n}from"./p-CYYSsu3p.js";import{p as o}from"./p-BdL-nI5y.js";import{i as b}from"./p-BuBrj57D.js";import{d as r}from"./p-B_bPnncM.js";import{d as f}from"./p-CqED0CfD.js";const l=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.toggle=d(this,"toggle"),this.initialized=!1,this.forcedToMobile=!1}handleToggle(e){e&&e.stopPropagation&&e.stopPropagation();const a=!t(this.drawerOpen,"drawerOpen");this.toggle&&this.toggle.emit(a)}handleNavigationItemClick(e){b(e)&&this.handleToggle()}enableAttributePassing(e,a){const d=null==e?void 0:e.closest(a);if(e&&d){const a=d.attributes;for(let t=0;t<a.length;t++){const s=a.item(t);if(s&&"data-density"!==s.name&&(s.name.startsWith("data-")||s.name.startsWith("aria-")))e.setAttribute(s.name,s.value),d.removeAttribute(s.name);else if(s&&"data-density"!==s.name&&"class"!==s.name&&"style"===s.name)e.setAttribute(s.name,s.value),d.removeAttribute(s.name);else if(s&&"class"===s.name){const a=s.value.includes("hydrated"),t=s.value.replace("hydrated","").trim(),c=e.getAttribute("class");e.setAttribute(s.name,`${c?c+" ":""}${t}`),a?d.setAttribute("class","hydrated"):d.removeAttribute(s.name)}}}}watch0Fn(){this.initialized&&this._ref&&this.forceMobile&&(s(this._ref,{key:"data-force-mobile",value:"true"}),this.forcedToMobile=!0)}watch0(){this.watch0Fn()}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-header"),this.initialized=!0,this.watch0Fn()}render(){var e,a,d;return c("header",{key:"9e4e437f3e1f465a86e279c4062455c8398e1fca",class:i("db-header",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(a=this.propOverrides)||void 0===a?void 0:a.id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},c("div",{key:"008214cb908cacd9c0d836c5513391ced9889de0",class:"db-header-meta-navigation"},c("slot",{key:"77b7c0dd3867fa0625ade6b94886d8635cb9e9d0",name:"metaNavigation"})),c("div",{key:"c8b29a92b9fc2e02101b69514af7abbd0e6c3f53",class:"db-header-navigation-bar"},c("div",{key:"004aa45ef611647fd083a7605607bfd139d525e1",class:"db-header-brand-container"},c("slot",{key:"117eb0bf2810766c34dc0fc5809ef29b88ee38b8",name:"brand"})),c("div",{key:"5f08b698cdaf172905f862eea220bf08114f84ae",class:"db-header-navigation-container"},c("div",{key:"dbd332f8fbcef5b4097ae1e912b8c82e1cf308e7",class:"db-header-navigation"},c("slot",{key:"1add1d46f5591bb31a871f61308b9d2d4d9cc2fd"})),c("div",{key:"a6f002f461afc2055f5e045d486e883dc0ffbd26",class:"db-header-primary-action"},c("slot",{key:"5a9934b2b8b6242a0c893c5b669c52e20c60d28a",name:"primaryAction"}))),c("div",{key:"db912777f19f979e01edeef604eb97909e62c341",class:"db-header-action-container"},c("div",{key:"784e8f6fb73711b578d2b9105646878016a5cbde",class:"db-header-burger-menu-container"},c("db-button",{key:"06865f340c10c9da96b1ce632fe41fd8291cc051",icon:"menu",variant:"ghost",noText:!0,onClick:()=>this.handleToggle()},null!==(d=this.burgerMenuLabel)&&void 0!==d?d:o)),c("div",{key:"9b215d86d1f9a90bf94e7590cb62e131e16826df",class:"db-header-secondary-action"},c("slot",{key:"4568dfae1a86614dd3eeb0b708890fa429146488",name:"secondaryAction"})))),c("db-drawer",{key:"b3f5173536dbd5a567f10f69da2b6067c07687c9",class:"db-header-drawer",spacing:"small",rounded:!0,closeButtonId:this.closeButtonId,closeButtonText:this.closeButtonText,open:t(this.drawerOpen),onClose:()=>this.handleToggle()},c("div",{key:"d6e881f20c0aa9f96a32be21ca4da94dc1a62dfc",class:"db-header-drawer-navigation"},c("div",{key:"76b8fdfcd35fc7a544740c38ec24bfead9460232",class:"db-header-navigation",onClick:e=>this.handleNavigationItemClick(e)},c("slot",{key:"692234dca1ca4c54edd757dddb7a8ea0742347e3"})),c("div",{key:"b28eebcc6e14458ee5f059ffff24df8d0a740bbf",class:"db-header-meta-navigation"},c("slot",{key:"ad47d6ab3247db70a8cba9447ba7d8c3247b5110",name:"metaNavigation"}))),c("div",{key:"21415bf3aa1572acd48c6a6dfe226a66d0b7f219",class:"db-header-secondary-action"},c("slot",{key:"ba1f8f44f97b54a6a4037df031131041ff0ca6d7",name:"secondaryAction"}))))}get rootElement(){return this}static get watchers(){return{initialized:[{watch0:0}],_ref:[{watch0:0}]}}},[260,"db-header",{forceMobile:[8,"force-mobile"],drawerOpen:[8,"drawer-open"],className:[1,"classname"],id:[1],propOverrides:[16],width:[1],burgerMenuLabel:[1,"burger-menu-label"],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"],initialized:[32],forcedToMobile:[32]},void 0,{initialized:[{watch0:0}],_ref:[{watch0:0}]}]),h=l,m=function(){"undefined"!=typeof customElements&&["db-header","db-button","db-drawer"].forEach((e=>{switch(e){case"db-header":customElements.get(n(e))||customElements.define(n(e),l);break;case"db-button":customElements.get(n(e))||r();break;case"db-drawer":customElements.get(n(e))||f()}}))};export{h as DbHeader,m as defineCustomElement}
package/bundle/db-icon.js CHANGED
@@ -1 +1 @@
1
- import{y as t,H as s,z as e,d as i,t as n}from"./p-9fgrfYbf.js";const a=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),e.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===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?a+" ":""}${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-icon")}render(){var t,s;return e("span",{key:"004fb7b91cd27bc452f4777dfd68183bd4bfeaab",class:i("db-icon",this.className),"aria-hidden":"true",ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-icon":this.icon,"data-icon-weight":this.weight,"data-icon-variant":this.variant},this.text?this.text:null,e("slot",{key:"e9b5fbdefc6cf80abff634c60966ad719985e2be"}))}get rootElement(){return this}},[260,"db-icon",{id:[1],propOverrides:[16],className:[1,"classname"],icon:[1],weight:[1],variant:[1],text:[1]}]),d=a,o=function(){"undefined"!=typeof customElements&&["db-icon"].forEach((t=>{"db-icon"===t&&(customElements.get(n(t))||customElements.define(n(t),a))}))};export{d as DbIcon,o as defineCustomElement}
1
+ import{y as t,H as s,z as e,d as i,t as a}from"./p-CYYSsu3p.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const e=null==t?void 0:t.closest(s);if(t&&e){const s=e.attributes;for(let i=0;i<s.length;i++){const a=s.item(i);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),e.removeAttribute(a.name);else if(a&&"class"===a.name){const s=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?n+" ":""}${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-icon")}render(){var t,s;return e("span",{key:"f525692a77464f4dfa854e5ede76ad6ddd7050a9",class:i("db-icon",this.className),"aria-hidden":"true",ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-icon":this.icon,"data-icon-weight":this.weight,"data-icon-variant":this.variant},this.text?this.text:null,e("slot",{key:"89e010681206c29c706d38800937af2046a39b5c"}))}get rootElement(){return this}},[260,"db-icon",{id:[1],propOverrides:[16],className:[1,"classname"],icon:[1],weight:[1],variant:[1],text:[1]}]),d=n,o=function(){"undefined"!=typeof customElements&&["db-icon"].forEach((t=>{"db-icon"===t&&(customElements.get(a(t))||customElements.define(a(t),n))}))};export{d as DbIcon,o as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as s}from"./p-CwzdaLE3.js";const a=o,p=s;export{a as DbInfotext,p as defineCustomElement}
1
+ import{D as o,d as s}from"./p-DMSIvqcA.js";const p=o,r=s;export{p as DbInfotext,r as defineCustomElement}
@@ -1 +1 @@
1
- import{D as o,d as p}from"./p--qzKkpB9.js";const s=o,r=p;export{s as DbInput,r as defineCustomElement}
1
+ import{D as o,d as s}from"./p-CR2ZbfYe.js";const p=o,r=s;export{p as DbInput,r as defineCustomElement}
package/bundle/db-link.js CHANGED
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,d as i,t as a,j as n}from"./p-9fgrfYbf.js";const r=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 i=0;i<e.length;i++){const a=e.item(i);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const e=a.value.includes("hydrated"),i=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?n+" ":""}${i}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-link")}render(){var t,e,a,r;return s("a",{key:"5dd3f3df5614e0e717feadc833d8fe2fe8825479",class:i("db-link",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id,href:this.href,target:this.target,rel:this.rel,role:this.role,referrerPolicy:null!==(a=this.referrerpolicy)&&void 0!==a?a:this.referrerPolicy,hrefLang:this.hreflang,"aria-disabled":n(this.disabled),tabIndex:this.disabled?-1:0,"data-size":this.size,"data-show-icon-trailing":n(null===(r=this.showIcon)||void 0===r||r),"data-variant":this.variant,"data-content":this.content||"internal","data-wrap":n(this.wrap)},this.text?this.text:null,s("slot",{key:"c5dae4b61e3829e803a2ff89cfd0942cc4d6577d"}))}get rootElement(){return this}},[260,"db-link",{id:[1],propOverrides:[16],className:[1,"classname"],href:[1],target:[1],rel:[1],role:[1],referrerpolicy:[1],referrerPolicy:[1,"referrer-policy"],hreflang:[1],disabled:[8],size:[1],showIcon:[8,"show-icon"],variant:[1],content:[1],wrap:[8],text:[1]}]),d=r,l=function(){"undefined"!=typeof customElements&&["db-link"].forEach((t=>{"db-link"===t&&(customElements.get(a(t))||customElements.define(a(t),r))}))};export{d as DbLink,l as defineCustomElement}
1
+ import{D as o,d as p}from"./p-DdyMClpj.js";const s=o,r=p;export{s as DbLink,r as defineCustomElement}
@@ -1 +1 @@
1
- import{y as i,H as t,A as s,f as a,k as n,u as o,z as e,F as d,d as h,t as l,j as c}from"./p-9fgrfYbf.js";import{n as u}from"./p-BdL-nI5y.js";import{N as r}from"./p-BuBrj57D.js";import{d as v}from"./p-C6_y8Tot.js";const b=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=s(this,"click"),this.initialized=!1,this.hasAreaPopup=!1,this.hasSubNavigation=!0,this.isSubNavigationExpanded=!1,this.autoClose=!1,this.navigationItemSafeTriangle=void 0,this.subNavigationId=void 0,this.subNavigationToggleId=void 0}handleNavigationItemClick(i){var t;"A"===(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.nodeName)&&(this.autoClose=!0,a((()=>{this.autoClose=!1}),1e3))}handleClick(i){this.click&&(i.stopPropagation(),this.click.emit(i)),this.hasAreaPopup&&(this.isSubNavigationExpanded=!0)}handleBackClick(i){i.stopPropagation(),this.isSubNavigationExpanded=!1}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const n=t.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))i.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)i.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const t=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),o=i.getAttribute("class");i.setAttribute(n.name,`${o?o+" ":""}${a}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){void 0!==this.subNavigationExpanded&&(this.isSubNavigationExpanded=!!n(this.subNavigationExpanded,"subNavigationExpanded"))}watch0(){this.watch0Fn()}watch1Fn(){var i;if(this.initialized&&this._ref){const t=this._ref.querySelector("menu");t&&((null===(i=t.children)||void 0===i?void 0:i.length)>0?(this.hasAreaPopup=!0,this.navigationItemSafeTriangle||(this.navigationItemSafeTriangle=new r(this._ref,t))):this.hasSubNavigation=!1)}}watch1(){this.watch1Fn()}componentDidLoad(){var i;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-navigation-item"),this.initialized=!0;const t="sub-nav-"+(null!==(i=this.id)&&void 0!==i?i:o());this.subNavigationId=t,this.subNavigationToggleId=t+"-toggle",this.watch0Fn(),this.watch1Fn()}render(){var i,t,s;return e("li",{key:"555c0472fdd1d6888dc4a0b699fc85bb21e73199",class:h("db-navigation-item",this.className),ref:i=>{this._ref=i},id:null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id,onMouseOver:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.enableFollow()},onMouseLeave:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.disableFollow()},onMouseMove:i=>{var t;return null===(t=this.navigationItemSafeTriangle)||void 0===t?void 0:t.followByMouseEvent(i)},"data-width":this.width,"data-icon":this.icon,"data-show-icon":c(this.showIcon),"data-active":this.active,"data-wrap":c(this.wrap),"aria-disabled":c(this.disabled)},!n(this.hideSubNavigation,"hideSubNavigation")&&this.hasSubNavigation?e(d,null,e("button",{class:"db-navigation-item-expand-button",id:this.subNavigationToggleId,"aria-haspopup":this.hasAreaPopup?"true":void 0,"aria-expanded":this.isSubNavigationExpanded,"aria-controls":this.subNavigationId,disabled:n(this.disabled,"disabled"),onClick:i=>this.handleClick(i)},this.text?this.text:e("slot",{name:"expandButton"})),e("menu",{class:"db-sub-navigation",id:this.subNavigationId,"aria-labelledby":this.subNavigationToggleId,"data-force-close":this.autoClose,onClick:i=>this.handleNavigationItemClick(i)},this.hasAreaPopup?e("div",{class:"db-mobile-navigation-back"},e("db-button",{icon:"arrow_left",variant:"ghost",id:this.backButtonId,onClick:i=>this.handleBackClick(i)},null!==(s=this.backButtonText)&&void 0!==s?s:u)):null,e("slot",{name:"subNavigation"}))):this.text?this.text:e("slot",null))}get rootElement(){return this}static get watchers(){return{subNavigationExpanded:[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0}]}}},[260,"db-navigation-item",{id:[1],subNavigationExpanded:[8,"sub-navigation-expanded"],propOverrides:[16],className:[1,"classname"],width:[1],icon:[1],showIcon:[8,"show-icon"],active:[4],wrap:[8],disabled:[8],hideSubNavigation:[8,"hide-sub-navigation"],text:[1],backButtonId:[1,"back-button-id"],backButtonText:[1,"back-button-text"],initialized:[32],hasAreaPopup:[32],hasSubNavigation:[32],isSubNavigationExpanded:[32],autoClose:[32],navigationItemSafeTriangle:[32],subNavigationId:[32],subNavigationToggleId:[32]},void 0,{subNavigationExpanded:[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0}]}]),m=b,g=function(){"undefined"!=typeof customElements&&["db-navigation-item","db-button"].forEach((i=>{switch(i){case"db-navigation-item":customElements.get(l(i))||customElements.define(l(i),b);break;case"db-button":customElements.get(l(i))||v()}}))};export{m as DbNavigationItem,g as defineCustomElement}
1
+ import{y as i,H as t,A as s,f as a,k as n,u as o,z as e,F as d,j as h,d as l,t as c}from"./p-CYYSsu3p.js";import{n as u}from"./p-BdL-nI5y.js";import{N as r}from"./p-BuBrj57D.js";import{d as v}from"./p-B_bPnncM.js";const b=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=s(this,"click"),this.initialized=!1,this.hasAreaPopup=!1,this.hasSubNavigation=!0,this.isSubNavigationExpanded=!1,this.autoClose=!1,this.navigationItemSafeTriangle=void 0,this.subNavigationId=void 0,this.subNavigationToggleId=void 0}handleNavigationItemClick(i){var t;"A"===(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.nodeName)&&(this.autoClose=!0,a((()=>{this.autoClose=!1}),1e3))}handleClick(i){this.click&&(i.stopPropagation(),this.click.emit(i)),this.hasAreaPopup&&(this.isSubNavigationExpanded=!0)}handleBackClick(i){i.stopPropagation(),this.isSubNavigationExpanded=!1}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const n=t.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))i.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)i.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const t=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),o=i.getAttribute("class");i.setAttribute(n.name,`${o?o+" ":""}${a}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){void 0!==this.subNavigationExpanded&&(this.isSubNavigationExpanded=!!n(this.subNavigationExpanded,"subNavigationExpanded"))}watch0(){this.watch0Fn()}watch1Fn(){var i;if(this.initialized&&this._ref){const t=this._ref.querySelector("menu");t&&((null===(i=t.children)||void 0===i?void 0:i.length)>0?(this.hasAreaPopup=!0,this.navigationItemSafeTriangle||(this.navigationItemSafeTriangle=new r(this._ref,t))):this.hasSubNavigation=!1)}}watch1(){this.watch1Fn()}componentDidLoad(){var i;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-navigation-item"),this.initialized=!0;const t="sub-nav-"+(null!==(i=this.id)&&void 0!==i?i:o());this.subNavigationId=t,this.subNavigationToggleId=t+"-toggle",this.watch0Fn(),this.watch1Fn()}render(){var i,t,s;return e("li",{key:"3260e2400d47c705ac8438ecb762ee1a28fad47d",class:l("db-navigation-item",this.className),ref:i=>{this._ref=i},id:null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id,onMouseOver:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.enableFollow()},onMouseLeave:()=>{var i;return null===(i=this.navigationItemSafeTriangle)||void 0===i?void 0:i.disableFollow()},onMouseMove:i=>{var t;return null===(t=this.navigationItemSafeTriangle)||void 0===t?void 0:t.followByMouseEvent(i)},"data-width":this.width,"data-icon":this.icon,"data-show-icon":h(this.showIcon,"showIcon"),"data-active":this.active,"data-wrap":h(this.wrap,"wrap"),"aria-disabled":h(this.disabled,"disabled")},!n(this.hideSubNavigation,"hideSubNavigation")&&this.hasSubNavigation?e(d,null,e("button",{class:"db-navigation-item-expand-button",id:this.subNavigationToggleId,"aria-haspopup":this.hasAreaPopup?"true":void 0,"aria-expanded":this.isSubNavigationExpanded,"aria-controls":this.subNavigationId,disabled:n(this.disabled,"disabled"),onClick:i=>this.handleClick(i)},this.text?this.text:e("slot",{name:"expandButton"})),e("menu",{class:"db-sub-navigation",id:this.subNavigationId,"aria-labelledby":this.subNavigationToggleId,"data-force-close":this.autoClose,onClick:i=>this.handleNavigationItemClick(i)},this.hasAreaPopup?e("div",{class:"db-mobile-navigation-back"},e("db-button",{icon:"arrow_left",variant:"ghost",id:this.backButtonId,onClick:i=>this.handleBackClick(i)},null!==(s=this.backButtonText)&&void 0!==s?s:u)):null,e("slot",{name:"subNavigation"}))):this.text?this.text:e("slot",null))}get rootElement(){return this}static get watchers(){return{subNavigationExpanded:[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0}]}}},[260,"db-navigation-item",{id:[1],subNavigationExpanded:[8,"sub-navigation-expanded"],propOverrides:[16],className:[1,"classname"],width:[1],icon:[1],showIcon:[8,"show-icon"],active:[4],wrap:[8],disabled:[8],hideSubNavigation:[8,"hide-sub-navigation"],text:[1],backButtonId:[1,"back-button-id"],backButtonText:[1,"back-button-text"],initialized:[32],hasAreaPopup:[32],hasSubNavigation:[32],isSubNavigationExpanded:[32],autoClose:[32],navigationItemSafeTriangle:[32],subNavigationId:[32],subNavigationToggleId:[32]},void 0,{subNavigationExpanded:[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0}]}]),m=b,p=function(){"undefined"!=typeof customElements&&["db-navigation-item","db-button"].forEach((i=>{switch(i){case"db-navigation-item":customElements.get(c(i))||customElements.define(c(i),b);break;case"db-button":customElements.get(c(i))||v()}}))};export{m as DbNavigationItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as e,z as s,d as a,t as n}from"./p-9fgrfYbf.js";const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const n=e.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const e=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(n.name,`${d?d+" ":""}${a}`),e?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-navigation")}render(){var t,e;return s("nav",{key:"33d5425a509a5d224245fcde89b66bb129d3fb57",class:a("db-navigation",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id},s("menu",{key:"796fbbd89657a52bbd7e932efe96ff62726bf5ea"},s("slot",{key:"df8847f6522250c540acc1154201d1c6bfbbce07"})))}get rootElement(){return this}},[260,"db-navigation",{id:[1],propOverrides:[16],className:[1,"classname"]}]),i=d,o=function(){"undefined"!=typeof customElements&&["db-navigation"].forEach((t=>{"db-navigation"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))};export{i as DbNavigation,o as defineCustomElement}
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()}enableAttributePassing(t,e){const s=null==t?void 0:t.closest(e);if(t&&s){const e=s.attributes;for(let a=0;a<e.length;a++){const n=e.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const e=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),i=t.getAttribute("class");t.setAttribute(n.name,`${i?i+" ":""}${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-navigation")}render(){var t,e;return s("nav",{key:"fc6cc35b50d30498abfd5496f4e806b9ce94573d",class:a("db-navigation",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id},s("menu",{key:"da64193d61844f23632c1f71377f620af951e998"},s("slot",{key:"81269b82ae46ec9305e12e38c83592a9415bc7e8"})))}get rootElement(){return this}},[260,"db-navigation",{id:[1],propOverrides:[16],className:[1,"classname"]}]),d=i,o=function(){"undefined"!=typeof customElements&&["db-navigation"].forEach((t=>{"db-navigation"===t&&(customElements.get(n(t))||customElements.define(n(t),i))}))};export{d as DbNavigation,o as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as s,A as i,z as a,k as e,p as n,d as o,t as d,j as c,x as l}from"./p-9fgrfYbf.js";import{s as h}from"./p-BdL-nI5y.js";import{d as r}from"./p-C6_y8Tot.js";const m=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=i(this,"close")}handleClose(t){t&&(t.stopPropagation(),this.close&&this.close.emit(t))}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))t.setAttribute(e.name,e.value),i.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)t.setAttribute(e.name,e.value),i.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(e.name,`${n?n+" ":""}${a}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(e.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-notification")}render(){var t,s,i;return a("div",{key:"80b4682644b5cae7f09842e8683a9445f782055b",class:o("db-notification",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,role:l({semantic:this.semantic,role:this.role,ariaLive:this.ariaLive}),"aria-live":this.ariaLive,"data-semantic":this.semantic,"data-variant":this.variant,"data-icon":!1!==e(this.showIcon)?this.icon:void 0,"data-show-icon":c(this.showIcon),"data-link-variant":this.linkVariant},a("slot",{key:"4fc52fd9fff6357307c4bdc102c03082688b44cf",name:"image"}),n(this.headline,this.showHeadline)?a("header",{"data-area":"head"},this.headline):null,a("div",{key:"6d61a4b4966795950a3da5dba130734bd0bbb2d9","data-area":"content"},this.text?this.text:null,a("slot",{key:"f4ca4c620e00a203da07c3d0ce2974ade705f489"})),n(this.timestamp,this.showTimestamp)?a("time",{"data-area":"timestamp",dateTime:this.timestampDatetime},this.timestamp):null,a("slot",{key:"e1509dd146ff4288f96062e6286b47b495b388dc",name:"link"}),e(this.closeable,"closeable")?a("db-button",{icon:"cross",variant:"ghost",size:"small",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t)},null!==(i=this.closeButtonText)&&void 0!==i?i:h):null)}get rootElement(){return this}},[260,"db-notification",{id:[1],propOverrides:[16],className:[1,"classname"],semantic:[1],role:[1],ariaLive:[1,"aria-live"],variant:[1],showIcon:[8,"show-icon"],icon:[1],linkVariant:[1,"link-variant"],headline:[8],showHeadline:[8,"show-headline"],text:[1],timestamp:[1],showTimestamp:[8,"show-timestamp"],timestampDatetime:[1,"timestamp-datetime"],closeable:[8],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"]}]),f=m,b=function(){"undefined"!=typeof customElements&&["db-notification","db-button"].forEach((t=>{switch(t){case"db-notification":customElements.get(d(t))||customElements.define(d(t),m);break;case"db-button":customElements.get(d(t))||r()}}))};export{f as DbNotification,b as defineCustomElement}
1
+ import{y as t,H as s,A as i,z as e,k as a,p as n,j as o,d,t as c,x as l}from"./p-CYYSsu3p.js";import{s as h}from"./p-BdL-nI5y.js";import{d as r}from"./p-B_bPnncM.js";const m=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=i(this,"close")}handleClose(t){t&&(t.stopPropagation(),this.close&&this.close.emit(t))}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-")))t.setAttribute(a.name,a.value),i.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===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?n+" ":""}${e}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(a.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-notification")}render(){var t,s,i;return e("div",{key:"01a531f51b65c8cc55c739c4f18ee220e0e9701e",class:d("db-notification",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,role:l({semantic:this.semantic,role:this.role,ariaLive:this.ariaLive}),"aria-live":this.ariaLive,"data-semantic":this.semantic,"data-variant":this.variant,"data-icon":!1!==a(this.showIcon)?this.icon:void 0,"data-show-icon":o(this.showIcon,"showIcon"),"data-link-variant":this.linkVariant},e("slot",{key:"3e6e28cb42a9c7adb3663d01464930681e69c51d",name:"image"}),n(this.headline,this.showHeadline)?e("header",{"data-area":"head"},this.headline):null,e("div",{key:"d9f344fd4af06caa446ea4b9ad7f761466fcecdc","data-area":"content"},this.text?this.text:null,e("slot",{key:"2521549fee945b4a4c6040f360986c233af46c67"})),n(this.timestamp,this.showTimestamp)?e("time",{"data-area":"timestamp",dateTime:this.timestampDatetime},this.timestamp):null,e("slot",{key:"c96fb1c687e20ddb28be8b55f3218b6abd984f27",name:"link"}),a(this.closeable,"closeable")?e("db-button",{icon:"cross",variant:"ghost",size:"small",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t)},null!==(i=this.closeButtonText)&&void 0!==i?i:h):null)}get rootElement(){return this}},[260,"db-notification",{id:[1],propOverrides:[16],className:[1,"classname"],semantic:[1],role:[1],ariaLive:[1,"aria-live"],variant:[1],showIcon:[8,"show-icon"],icon:[1],linkVariant:[1,"link-variant"],headline:[8],showHeadline:[8,"show-headline"],text:[1],timestamp:[1],showTimestamp:[8,"show-timestamp"],timestampDatetime:[1,"timestamp-datetime"],closeable:[8],closeButtonId:[1,"close-button-id"],closeButtonText:[1,"close-button-text"]}]),f=m,b=function(){"undefined"!=typeof customElements&&["db-notification","db-button"].forEach((t=>{switch(t){case"db-notification":customElements.get(c(t))||customElements.define(c(t),m);break;case"db-button":customElements.get(c(t))||r()}}))};export{f as DbNotification,b as defineCustomElement}
package/bundle/db-page.js CHANGED
@@ -1 +1 @@
1
- import{y as e,H as t,z as a,d as s,t as d,j as n}from"./p-9fgrfYbf.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.fontsLoaded=!1}enableAttributePassing(e,t){const a=null==e?void 0:e.closest(t);if(e&&a){const t=a.attributes;for(let s=0;s<t.length;s++){const d=t.item(s);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))e.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)e.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),s=d.value.replace("hydrated","").trim(),n=e.getAttribute("class");e.setAttribute(d.name,`${n?n+" ":""}${s}`),t?a.setAttribute("class","hydrated"):a.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-page"),this.fontsLoaded=!this.fadeIn,document&&this.fadeIn?document.fonts.ready.then((()=>{this.fontsLoaded=!0})):this.fontsLoaded=!0}disconnectedCallback(){"undefined"!=typeof window&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}render(){var e,t;return a("div",{key:"ff82686603b48757d15136f99ffee2e8261a0868",class:s("db-page",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(t=this.propOverrides)||void 0===t?void 0:t.id,"data-variant":this.variant,"data-fade-in":n(this.fadeIn),"data-fonts-loaded":n(this.fontsLoaded)},a("slot",{key:"b545b6a529c6502b6d9acaf4349056f9b191b47f",name:"header"}),a("main",{key:"67fe344765eb3dabbb1e6882e653142522ba7e20",class:s("db-main",this.mainClass)},a("slot",{key:"5ab992699f2db9d811124d9ad0955e94c816896a"})),a("slot",{key:"2c0e00536dcac7decddc76aacc13b58989b02464",name:"footer"}))}get rootElement(){return this}},[260,"db-page",{fadeIn:[8,"fade-in"],documentOverflow:[1,"document-overflow"],variant:[1],id:[1],propOverrides:[16],className:[1,"classname"],mainClass:[1,"main-class"],fontsLoaded:[32]}]),o=i,c=function(){"undefined"!=typeof customElements&&["db-page"].forEach((e=>{"db-page"===e&&(customElements.get(d(e))||customElements.define(d(e),i))}))};export{o as DbPage,c as defineCustomElement}
1
+ import{y as e,H as t,z as s,d,j as a,t as n}from"./p-CYYSsu3p.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.fontsLoaded=!1}enableAttributePassing(e,t){const s=null==e?void 0:e.closest(t);if(e&&s){const t=s.attributes;for(let d=0;d<t.length;d++){const a=t.item(d);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))e.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)e.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),d=a.value.replace("hydrated","").trim(),n=e.getAttribute("class");e.setAttribute(a.name,`${n?n+" ":""}${d}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.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-page"),this.fontsLoaded=!this.fadeIn,document&&this.fadeIn?document.fonts.ready.then((()=>{this.fontsLoaded=!0})):this.fontsLoaded=!0}disconnectedCallback(){"undefined"!=typeof window&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}render(){var e,t;return s("div",{key:"3ffaa674adbf9b46c5b5b0e38014549932005dd3",class:d("db-page",this.className),ref:e=>{this._ref=e},id:null!==(e=this.id)&&void 0!==e?e:null===(t=this.propOverrides)||void 0===t?void 0:t.id,"data-variant":this.variant,"data-fade-in":a(this.fadeIn,"fadeIn"),"data-fonts-loaded":a(this.fontsLoaded,"fontsLoaded")},s("slot",{key:"2b96c66752fde23b9e81a91efd4a90474d0b68f5",name:"header"}),s("main",{key:"da246f1f15735b54940857f19832ccd216a2c769",class:d("db-main",this.mainClass)},s("slot",{key:"21a10349a9f9bfd75b8c29fc5dcd159b3c22bef5"})),s("slot",{key:"7a349e75b1b03cc540ee940c6d3647e742825e34",name:"footer"}))}get rootElement(){return this}},[260,"db-page",{fadeIn:[8,"fade-in"],documentOverflow:[1,"document-overflow"],variant:[1],id:[1],propOverrides:[16],className:[1,"classname"],mainClass:[1,"main-class"],fontsLoaded:[32]}]),o=i,c=function(){"undefined"!=typeof customElements&&["db-page"].forEach((e=>{"db-page"===e&&(customElements.get(n(e))||customElements.define(n(e),i))}))};export{o as DbPage,c as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as i,f as s,z as e,j as n,d as a,t as o}from"./p-9fgrfYbf.js";import{D as d}from"./p-BLyvxOmU.js";import{b as h}from"./p-DOPXnIzL.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&s((()=>{var i;h(t,this._ref,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new d).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const i=this.getTrigger();i&&(null===(t=this._observer)||void 0===t||t.observe(i))}handleLeave(t){var i;const s=null==t?void 0:t.target;if(!(null==s?void 0:s.parentNode)||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new d).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(i=this._observer)||void 0===i||i.unobserve(t))}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];return s.tagName.includes("-")?(null===(t=s.children)||void 0===t?void 0:t.length)>0?s.children[0]:null:s}}return null}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const n=i.item(e);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),e=n.value.replace("hydrated","").trim(),a=t.getAttribute("class");t.setAttribute(n.name,`${a?a+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));i&&!i.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=""+!!this.isExpanded)}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-popover"),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,i,s;return e("div",{key:"5695f78c16f768ca34b16c05167518c2a2e26c35",class:a("db-popover",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},e("slot",{key:"e765f506df650f9105ff6efb79c2d6fe36a48b91",name:"trigger"}),e("article",{key:"072c8716f82a49d319794e521f467d494fe4b313",class:"db-popover-content","data-spacing":this.spacing,"data-gap":n(this.gap),"data-animation":n(null===(s=this.animation)||void 0===s||s),"data-open":n(this.open),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},e("slot",{key:"3317509fd5cfbc56f9e0921f91e34520d9f93c87"})))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}},[260,"db-popover",{placement:[1],id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],gap:[8],animation:[8],open:[8],delay:[1],width:[1],initialized:[32],isExpanded:[32],_documentScrollListenerCallbackId:[32],_observer:[32]},void 0,{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}]),r=c,l=function(){"undefined"!=typeof customElements&&["db-popover"].forEach((t=>{"db-popover"===t&&(customElements.get(o(t))||customElements.define(o(t),c))}))};export{r as DbPopover,l as defineCustomElement}
1
+ import{y as t,H as i,f as s,z as e,j as a,d as n,t as o}from"./p-CYYSsu3p.js";import{D as d}from"./p-DJTpgiBy.js";import{b as h}from"./p-DOPXnIzL.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&s((()=>{var i;h(t,this._ref,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new d).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const i=this.getTrigger();i&&(null===(t=this._observer)||void 0===t||t.observe(i))}handleLeave(t){var i;const s=null==t?void 0:t.target;if(!(null==s?void 0:s.parentNode)||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new d).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(i=this._observer)||void 0===i||i.unobserve(t))}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];return s.tagName.includes("-")?(null===(t=s.children)||void 0===t?void 0:t.length)>0?s.children[0]:null:s}}return null}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?n+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));i&&!i.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=""+!!this.isExpanded)}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-popover"),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,i,s;return e("div",{key:"b4ade41cbe4f2ba97d817feb8d2921dc9a4c2e63",class:n("db-popover",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},e("slot",{key:"51ef67b406d5411f3622a8d62c51e26cdd8b44b0",name:"trigger"}),e("article",{key:"7a04c2dc442eea91ff41ed2a5030c238bc7b2740",class:"db-popover-content","data-spacing":this.spacing,"data-gap":a(this.gap,"gap"),"data-animation":a(null===(s=this.animation)||void 0===s||s,"animation"),"data-open":a(this.open,"open"),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},e("slot",{key:"8a8892cb2b035d6d50c5aa5599026f1476b0bede"})))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}},[260,"db-popover",{placement:[1],id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],gap:[8],animation:[8],open:[8],delay:[1],width:[1],initialized:[32],isExpanded:[32],_documentScrollListenerCallbackId:[32],_observer:[32]},void 0,{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}]),r=c,l=function(){"undefined"!=typeof customElements&&["db-popover"].forEach((t=>{"db-popover"===t&&(customElements.get(o(t))||customElements.define(o(t),c))}))};export{r as DbPopover,l as defineCustomElement}
@@ -1 +1 @@
1
- import{y as t,H as i,A as s,u as e,z as a,k as h,d,t as c,f as o,o as n}from"./p-9fgrfYbf.js";import{b as r}from"./p-DstwggLZ.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}handleInput(t,i){this.input&&this.input.emit(t)}handleChange(t,i){this.change&&this.change.emit(t)}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"radio-"+e()}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(a.name,`${h?h+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.checked&&this.initialized&&this._ref&&(this._ref.checked=!0)}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref){let t=this.abortController;t||(t=new AbortController,this.abortController=t),r(this._ref,(t=>{o((()=>{const i=this.checked?this.checked:this._ref.checked,s=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:"",checked:i})});this.handleChange(s,!0),this.handleInput(s,!0)}),1)}),t.signal)}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-radio"),this.initialized=!0,this.resetIds(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){return a("label",{key:"1ff5543af917149d3d1f51a2c67c7686b55f8d11",class:d("db-radio",this.className),"data-size":this.size,"data-hide-label":n(this.showLabel),"data-hide-asterisk":n(this.showRequiredAsterisk),htmlFor:this._id},a("input",{key:"3409b94c081b36bd60ba84f8e6a4064e43e2ad50",type:"radio","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:h(this.checked,"checked"),disabled:h(this.disabled,"disabled"),value:this.value,required:h(this.required,"required"),onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:null,a("slot",{key:"c9850bcf9efb2e272e6ae8cc83ab92d62e095094"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}}},[260,"db-radio",{id:[1],propOverrides:[16],checked:[8],size:[1],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],validation:[1],name:[1],disabled:[8],value:[8],required:[8],label:[1],initialized:[32],_id:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}]),u=l,b=function(){"undefined"!=typeof customElements&&["db-radio"].forEach((t=>{"db-radio"===t&&(customElements.get(c(t))||customElements.define(c(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 a,k as h,o as d,d as c,t as n,f as o}from"./p-CYYSsu3p.js";import{b as l}from"./p-D6L0n3gO.js";const r=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this.initialized=!1,this._id=void 0,this.abortController=void 0}handleInput(t,i){this.input&&this.input.emit(t)}handleChange(t,i){this.change&&this.change.emit(t)}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"radio-"+e()}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(a.name,`${h?h+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.checked&&this.initialized&&this._ref&&(this._ref.checked=!0)}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref){let t=this.abortController;t||(t=new AbortController,this.abortController=t),l(this._ref,(t=>{o((()=>{const i=this.checked?this.checked:this._ref.checked,s=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:"",checked:i})});this.handleChange(s,!0),this.handleInput(s,!0)}),1)}),t.signal)}}watch2(){this.watch2Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-radio"),this.initialized=!0,this.resetIds(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){return a("label",{key:"a0c0cd38ac8c6addb0f826294c56ff235d0ea624",class:c("db-radio",this.className),"data-size":this.size,"data-hide-label":d(this.showLabel),"data-hide-asterisk":d(this.showRequiredAsterisk),htmlFor:this._id},a("input",{key:"1dae5434da230a2e9268e89057d83b92f64b91c6",type:"radio","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:h(this.checked,"checked"),disabled:h(this.disabled,"disabled"),value:this.value,required:h(this.required,"required"),onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:null,a("slot",{key:"7e8423038fc180907953fe21a406bc7195dcdaeb"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}}},[260,"db-radio",{id:[1],propOverrides:[16],checked:[8],size:[1],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],validation:[1],name:[1],disabled:[8],value:[8],required:[8],label:[1],initialized:[32],_id:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}]),u=r,b=function(){"undefined"!=typeof customElements&&["db-radio"].forEach((t=>{"db-radio"===t&&(customElements.get(n(t))||customElements.define(n(t),r))}))};export{u as DbRadio,b as defineCustomElement}