@db-ux/wc-core-components 4.9.1 → 4.10.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 (312) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +114 -25
  3. package/bundle/db-accordion-item.d.ts +11 -0
  4. package/bundle/db-accordion-item.js +1 -0
  5. package/bundle/db-accordion.d.ts +11 -0
  6. package/bundle/db-accordion.js +1 -0
  7. package/bundle/db-badge.d.ts +11 -0
  8. package/bundle/db-badge.js +1 -0
  9. package/bundle/db-brand.d.ts +11 -0
  10. package/bundle/db-brand.js +1 -0
  11. package/bundle/db-button.d.ts +11 -0
  12. package/bundle/db-button.js +1 -0
  13. package/bundle/db-card.d.ts +11 -0
  14. package/bundle/db-card.js +1 -0
  15. package/bundle/db-checkbox.d.ts +11 -0
  16. package/bundle/db-checkbox.js +1 -0
  17. package/bundle/db-custom-button.d.ts +11 -0
  18. package/bundle/db-custom-button.js +1 -0
  19. package/bundle/db-custom-select-dropdown.d.ts +11 -0
  20. package/bundle/db-custom-select-dropdown.js +1 -0
  21. package/bundle/db-custom-select-form-field.d.ts +11 -0
  22. package/bundle/db-custom-select-form-field.js +1 -0
  23. package/bundle/db-custom-select-list-item.d.ts +11 -0
  24. package/bundle/db-custom-select-list-item.js +1 -0
  25. package/bundle/db-custom-select-list.d.ts +11 -0
  26. package/bundle/db-custom-select-list.js +1 -0
  27. package/bundle/db-custom-select.d.ts +11 -0
  28. package/bundle/db-custom-select.js +1 -0
  29. package/bundle/db-divider.d.ts +11 -0
  30. package/bundle/db-divider.js +1 -0
  31. package/bundle/db-drawer.d.ts +11 -0
  32. package/bundle/db-drawer.js +1 -0
  33. package/bundle/db-header.d.ts +11 -0
  34. package/bundle/db-header.js +1 -0
  35. package/bundle/db-icon.d.ts +11 -0
  36. package/bundle/db-icon.js +1 -0
  37. package/bundle/db-infotext.d.ts +11 -0
  38. package/bundle/db-infotext.js +1 -0
  39. package/bundle/db-input.d.ts +11 -0
  40. package/bundle/db-input.js +1 -0
  41. package/bundle/db-link.d.ts +11 -0
  42. package/bundle/db-link.js +1 -0
  43. package/bundle/db-navigation-item.d.ts +11 -0
  44. package/bundle/db-navigation-item.js +1 -0
  45. package/bundle/db-navigation.d.ts +11 -0
  46. package/bundle/db-navigation.js +1 -0
  47. package/bundle/db-notification.d.ts +11 -0
  48. package/bundle/db-notification.js +1 -0
  49. package/bundle/db-page.d.ts +11 -0
  50. package/bundle/db-page.js +1 -0
  51. package/bundle/db-popover.d.ts +11 -0
  52. package/bundle/db-popover.js +1 -0
  53. package/bundle/db-radio.d.ts +11 -0
  54. package/bundle/db-radio.js +1 -0
  55. package/bundle/db-section.d.ts +11 -0
  56. package/bundle/db-section.js +1 -0
  57. package/bundle/db-select.d.ts +11 -0
  58. package/bundle/db-select.js +1 -0
  59. package/bundle/db-stack.d.ts +11 -0
  60. package/bundle/db-stack.js +1 -0
  61. package/bundle/db-switch.d.ts +11 -0
  62. package/bundle/db-switch.js +1 -0
  63. package/bundle/db-tab-item.d.ts +11 -0
  64. package/bundle/db-tab-item.js +1 -0
  65. package/bundle/db-tab-list.d.ts +11 -0
  66. package/bundle/db-tab-list.js +1 -0
  67. package/bundle/db-tab-panel.d.ts +11 -0
  68. package/bundle/db-tab-panel.js +1 -0
  69. package/bundle/db-tabs.d.ts +11 -0
  70. package/bundle/db-tabs.js +1 -0
  71. package/bundle/db-tag.d.ts +11 -0
  72. package/bundle/db-tag.js +1 -0
  73. package/bundle/db-textarea.d.ts +11 -0
  74. package/bundle/db-textarea.js +1 -0
  75. package/bundle/db-tooltip.d.ts +11 -0
  76. package/bundle/db-tooltip.js +1 -0
  77. package/bundle/index.d.ts +47 -0
  78. package/bundle/index.js +1 -0
  79. package/bundle/p-4TaCoruo.js +1 -0
  80. package/bundle/p-4nwUOzw7.js +1 -0
  81. package/bundle/p-BJJFATCC.js +1 -0
  82. package/bundle/p-BdL-nI5y.js +1 -0
  83. package/bundle/p-BuBrj57D.js +1 -0
  84. package/bundle/p-CCbaTFJ9.js +1 -0
  85. package/bundle/p-CEiQBevg.js +1 -0
  86. package/bundle/p-CV8l9qaA.js +1 -0
  87. package/bundle/p-CmqAwQNR.js +1 -0
  88. package/bundle/p-D4Ym01qf.js +1 -0
  89. package/bundle/p-DE_eDJiD.js +1 -0
  90. package/bundle/p-DOPXnIzL.js +1 -0
  91. package/bundle/p-DS39nEhJ.js +1 -0
  92. package/bundle/p-DVYa1bHg.js +1 -0
  93. package/bundle/p-DwwxAylo.js +1 -0
  94. package/bundle/p-QNp8H1KD.js +1 -0
  95. package/bundle/p-_2t1bnPD.js +1 -0
  96. package/bundle/p-bzxfqhtq.js +1 -0
  97. package/bundle/p-e18AQLns.js +1 -0
  98. package/dist/cjs/db-accordion-item.cjs.entry.js +26 -4
  99. package/dist/cjs/db-accordion.cjs.entry.js +10 -3
  100. package/dist/cjs/db-badge.cjs.entry.js +10 -3
  101. package/dist/cjs/db-brand.cjs.entry.js +10 -3
  102. package/dist/cjs/db-button.cjs.entry.js +10 -3
  103. package/dist/cjs/db-card.cjs.entry.js +10 -3
  104. package/dist/cjs/db-checkbox.cjs.entry.js +10 -3
  105. package/dist/cjs/db-custom-button.cjs.entry.js +10 -3
  106. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +45 -10
  107. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +10 -3
  108. package/dist/cjs/db-custom-select.cjs.entry.js +13 -6
  109. package/dist/cjs/db-divider.cjs.entry.js +9 -2
  110. package/dist/cjs/db-drawer.cjs.entry.js +14 -7
  111. package/dist/cjs/db-header.cjs.entry.js +10 -3
  112. package/dist/cjs/db-icon.cjs.entry.js +10 -3
  113. package/dist/cjs/db-infotext.cjs.entry.js +10 -3
  114. package/dist/cjs/db-link.cjs.entry.js +10 -3
  115. package/dist/cjs/db-navigation-item.cjs.entry.js +11 -3
  116. package/dist/cjs/db-navigation.cjs.entry.js +10 -3
  117. package/dist/cjs/db-notification.cjs.entry.js +10 -3
  118. package/dist/cjs/db-page.cjs.entry.js +10 -3
  119. package/dist/cjs/db-popover.cjs.entry.js +10 -3
  120. package/dist/cjs/db-radio.cjs.entry.js +10 -3
  121. package/dist/cjs/db-section.cjs.entry.js +10 -3
  122. package/dist/cjs/db-select.cjs.entry.js +10 -3
  123. package/dist/cjs/db-stack.cjs.entry.js +10 -3
  124. package/dist/cjs/db-switch.cjs.entry.js +10 -3
  125. package/dist/cjs/db-tab-item_3.cjs.entry.js +28 -7
  126. package/dist/cjs/db-tabs.cjs.entry.js +10 -3
  127. package/dist/cjs/db-textarea.cjs.entry.js +10 -3
  128. package/dist/cjs/db-tooltip.cjs.entry.js +10 -3
  129. package/dist/cjs/db-ux.cjs.js +2 -2
  130. package/dist/cjs/{index-BoC-BWt4.js → index-DLuhzJ0p.js} +1 -0
  131. package/dist/cjs/loader.cjs.js +2 -2
  132. package/dist/collection/components/accordion/accordion.js +9 -2
  133. package/dist/collection/components/accordion-item/accordion-item.js +53 -5
  134. package/dist/collection/components/badge/badge.js +9 -2
  135. package/dist/collection/components/brand/brand.js +9 -2
  136. package/dist/collection/components/button/button.js +10 -3
  137. package/dist/collection/components/card/card.js +10 -3
  138. package/dist/collection/components/checkbox/checkbox.js +10 -3
  139. package/dist/collection/components/custom-button/custom-button.js +9 -2
  140. package/dist/collection/components/custom-select/custom-select.js +13 -6
  141. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +9 -2
  142. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +9 -2
  143. package/dist/collection/components/custom-select-list/custom-select-list.js +9 -2
  144. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +9 -2
  145. package/dist/collection/components/divider/divider.js +8 -1
  146. package/dist/collection/components/drawer/drawer.js +15 -8
  147. package/dist/collection/components/header/header.js +20 -13
  148. package/dist/collection/components/icon/icon.js +9 -2
  149. package/dist/collection/components/infotext/infotext.js +9 -2
  150. package/dist/collection/components/input/input.js +10 -3
  151. package/dist/collection/components/link/link.js +9 -2
  152. package/dist/collection/components/navigation/navigation.js +9 -2
  153. package/dist/collection/components/navigation-item/navigation-item.js +37 -3
  154. package/dist/collection/components/notification/notification.js +10 -3
  155. package/dist/collection/components/page/page.js +9 -2
  156. package/dist/collection/components/popover/popover.js +9 -2
  157. package/dist/collection/components/radio/radio.js +10 -3
  158. package/dist/collection/components/section/section.js +9 -2
  159. package/dist/collection/components/select/select.js +10 -3
  160. package/dist/collection/components/stack/stack.js +9 -2
  161. package/dist/collection/components/switch/switch.js +10 -3
  162. package/dist/collection/components/tab-item/tab-item.js +10 -3
  163. package/dist/collection/components/tab-list/tab-list.js +9 -2
  164. package/dist/collection/components/tab-panel/tab-panel.js +9 -2
  165. package/dist/collection/components/tabs/tabs.js +10 -3
  166. package/dist/collection/components/tag/tag.js +10 -3
  167. package/dist/collection/components/textarea/textarea.js +10 -3
  168. package/dist/collection/components/tooltip/tooltip.js +9 -2
  169. package/dist/custom-elements.json +2276 -36
  170. package/dist/db-ux/db-ux.esm.js +1 -1
  171. package/dist/db-ux/p-0ae85978.entry.js +1 -0
  172. package/dist/db-ux/p-13afb969.entry.js +1 -0
  173. package/dist/db-ux/p-174d2486.entry.js +1 -0
  174. package/dist/db-ux/p-28c257d5.entry.js +1 -0
  175. package/dist/db-ux/p-293510ca.entry.js +1 -0
  176. package/dist/db-ux/p-331ad11c.entry.js +1 -0
  177. package/dist/db-ux/p-339a6ca0.entry.js +1 -0
  178. package/dist/db-ux/p-34e21986.entry.js +1 -0
  179. package/dist/db-ux/p-368d25ab.entry.js +1 -0
  180. package/dist/db-ux/p-4580938f.entry.js +1 -0
  181. package/dist/db-ux/p-47910fdc.entry.js +1 -0
  182. package/dist/db-ux/p-5d2e2a8d.entry.js +1 -0
  183. package/dist/db-ux/p-691ae341.entry.js +1 -0
  184. package/dist/db-ux/p-7c58337d.entry.js +1 -0
  185. package/dist/db-ux/p-7f4d00df.entry.js +1 -0
  186. package/dist/db-ux/p-9712c9c9.entry.js +1 -0
  187. package/dist/db-ux/p-9b907b56.entry.js +1 -0
  188. package/dist/db-ux/p-9c3ff50e.entry.js +1 -0
  189. package/dist/db-ux/p-Cr2cgn5B.js +2 -0
  190. package/dist/db-ux/p-a56886ea.entry.js +1 -0
  191. package/dist/db-ux/p-a617da42.entry.js +1 -0
  192. package/dist/db-ux/p-aad0c4ef.entry.js +1 -0
  193. package/dist/db-ux/p-ae3183f0.entry.js +1 -0
  194. package/dist/db-ux/p-ae457f95.entry.js +1 -0
  195. package/dist/db-ux/p-b1e7ba0f.entry.js +1 -0
  196. package/dist/db-ux/p-cac5b161.entry.js +1 -0
  197. package/dist/db-ux/p-dcf02351.entry.js +1 -0
  198. package/dist/db-ux/p-e46dc907.entry.js +1 -0
  199. package/dist/db-ux/p-f27c6655.entry.js +1 -0
  200. package/dist/db-ux/p-f583f756.entry.js +1 -0
  201. package/dist/db-ux/p-f65e1db8.entry.js +1 -0
  202. package/dist/db-ux/p-fe5d3eb6.entry.js +1 -0
  203. package/dist/esm/db-accordion-item.entry.js +27 -5
  204. package/dist/esm/db-accordion.entry.js +10 -3
  205. package/dist/esm/db-badge.entry.js +10 -3
  206. package/dist/esm/db-brand.entry.js +10 -3
  207. package/dist/esm/db-button.entry.js +10 -3
  208. package/dist/esm/db-card.entry.js +10 -3
  209. package/dist/esm/db-checkbox.entry.js +10 -3
  210. package/dist/esm/db-custom-button.entry.js +10 -3
  211. package/dist/esm/db-custom-select-dropdown_5.entry.js +45 -10
  212. package/dist/esm/db-custom-select-form-field.entry.js +10 -3
  213. package/dist/esm/db-custom-select.entry.js +13 -6
  214. package/dist/esm/db-divider.entry.js +9 -2
  215. package/dist/esm/db-drawer.entry.js +15 -8
  216. package/dist/esm/db-header.entry.js +10 -3
  217. package/dist/esm/db-icon.entry.js +10 -3
  218. package/dist/esm/db-infotext.entry.js +10 -3
  219. package/dist/esm/db-link.entry.js +10 -3
  220. package/dist/esm/db-navigation-item.entry.js +11 -3
  221. package/dist/esm/db-navigation.entry.js +10 -3
  222. package/dist/esm/db-notification.entry.js +10 -3
  223. package/dist/esm/db-page.entry.js +10 -3
  224. package/dist/esm/db-popover.entry.js +10 -3
  225. package/dist/esm/db-radio.entry.js +10 -3
  226. package/dist/esm/db-section.entry.js +10 -3
  227. package/dist/esm/db-select.entry.js +10 -3
  228. package/dist/esm/db-stack.entry.js +10 -3
  229. package/dist/esm/db-switch.entry.js +10 -3
  230. package/dist/esm/db-tab-item_3.entry.js +28 -7
  231. package/dist/esm/db-tabs.entry.js +10 -3
  232. package/dist/esm/db-textarea.entry.js +10 -3
  233. package/dist/esm/db-tooltip.entry.js +10 -3
  234. package/dist/esm/db-ux.js +3 -3
  235. package/dist/esm/{index-K4o-AcjZ.js → index-Cr2cgn5B.js} +1 -1
  236. package/dist/esm/loader.js +3 -3
  237. package/dist/types/components/accordion/accordion.d.ts +1 -0
  238. package/dist/types/components/accordion-item/accordion-item.d.ts +4 -0
  239. package/dist/types/components/accordion-item/model.d.ts +4 -0
  240. package/dist/types/components/badge/badge.d.ts +1 -0
  241. package/dist/types/components/brand/brand.d.ts +1 -0
  242. package/dist/types/components/button/button.d.ts +1 -0
  243. package/dist/types/components/card/card.d.ts +1 -0
  244. package/dist/types/components/checkbox/checkbox.d.ts +1 -0
  245. package/dist/types/components/custom-button/custom-button.d.ts +1 -0
  246. package/dist/types/components/custom-select/custom-select.d.ts +1 -0
  247. package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
  248. package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
  249. package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
  250. package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
  251. package/dist/types/components/divider/divider.d.ts +1 -0
  252. package/dist/types/components/drawer/drawer.d.ts +1 -0
  253. package/dist/types/components/header/header.d.ts +3 -2
  254. package/dist/types/components/icon/icon.d.ts +1 -0
  255. package/dist/types/components/infotext/infotext.d.ts +1 -0
  256. package/dist/types/components/input/input.d.ts +1 -0
  257. package/dist/types/components/link/link.d.ts +1 -0
  258. package/dist/types/components/navigation/navigation.d.ts +1 -0
  259. package/dist/types/components/navigation-item/model.d.ts +4 -0
  260. package/dist/types/components/navigation-item/navigation-item.d.ts +2 -0
  261. package/dist/types/components/notification/notification.d.ts +1 -0
  262. package/dist/types/components/page/page.d.ts +1 -0
  263. package/dist/types/components/popover/popover.d.ts +1 -0
  264. package/dist/types/components/radio/radio.d.ts +1 -0
  265. package/dist/types/components/section/section.d.ts +1 -0
  266. package/dist/types/components/select/select.d.ts +1 -0
  267. package/dist/types/components/stack/stack.d.ts +1 -0
  268. package/dist/types/components/switch/switch.d.ts +1 -0
  269. package/dist/types/components/tab-item/tab-item.d.ts +1 -0
  270. package/dist/types/components/tab-list/tab-list.d.ts +1 -0
  271. package/dist/types/components/tab-panel/tab-panel.d.ts +1 -0
  272. package/dist/types/components/tabs/tabs.d.ts +1 -0
  273. package/dist/types/components/tag/tag.d.ts +1 -0
  274. package/dist/types/components/textarea/textarea.d.ts +1 -0
  275. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  276. package/dist/types/components.d.ts +7 -1
  277. package/dist/types/shared/figma.d.ts +12 -6
  278. package/dist/vscode.html-custom-data.json +16 -6
  279. package/dist/web-types.json +1032 -248
  280. package/package.json +15 -9
  281. package/dist/db-ux/p-1b5d76a8.entry.js +0 -1
  282. package/dist/db-ux/p-296f989b.entry.js +0 -1
  283. package/dist/db-ux/p-3ae13ff1.entry.js +0 -1
  284. package/dist/db-ux/p-43f94079.entry.js +0 -1
  285. package/dist/db-ux/p-54508bad.entry.js +0 -1
  286. package/dist/db-ux/p-55e8b0b4.entry.js +0 -1
  287. package/dist/db-ux/p-69a59559.entry.js +0 -1
  288. package/dist/db-ux/p-6e7126c6.entry.js +0 -1
  289. package/dist/db-ux/p-7bed4611.entry.js +0 -1
  290. package/dist/db-ux/p-8ce816c0.entry.js +0 -1
  291. package/dist/db-ux/p-8e080864.entry.js +0 -1
  292. package/dist/db-ux/p-K4o-AcjZ.js +0 -2
  293. package/dist/db-ux/p-a0eccc08.entry.js +0 -1
  294. package/dist/db-ux/p-a7c6ec23.entry.js +0 -1
  295. package/dist/db-ux/p-a82c9875.entry.js +0 -1
  296. package/dist/db-ux/p-ae445d5d.entry.js +0 -1
  297. package/dist/db-ux/p-b33abf8d.entry.js +0 -1
  298. package/dist/db-ux/p-b8ab2bd4.entry.js +0 -1
  299. package/dist/db-ux/p-bb7c59d2.entry.js +0 -1
  300. package/dist/db-ux/p-bc510135.entry.js +0 -1
  301. package/dist/db-ux/p-c85d4be6.entry.js +0 -1
  302. package/dist/db-ux/p-d206ac6f.entry.js +0 -1
  303. package/dist/db-ux/p-e22b3725.entry.js +0 -1
  304. package/dist/db-ux/p-e432c81f.entry.js +0 -1
  305. package/dist/db-ux/p-e64606e2.entry.js +0 -1
  306. package/dist/db-ux/p-e8ee154f.entry.js +0 -1
  307. package/dist/db-ux/p-efb9d9bc.entry.js +0 -1
  308. package/dist/db-ux/p-f35229a1.entry.js +0 -1
  309. package/dist/db-ux/p-f582c886.entry.js +0 -1
  310. package/dist/db-ux/p-f6be9a48.entry.js +0 -1
  311. package/dist/db-ux/p-fb39506f.entry.js +0 -1
  312. package/dist/db-ux/p-fb9500ba.entry.js +0 -1
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbInfotext extends Components.DbInfotext, HTMLElement {}
4
+ export const DbInfotext: {
5
+ prototype: DbInfotext;
6
+ new (): DbInfotext;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{D as o,d as s}from"./p-_2t1bnPD.js";const t=o,p=s;export{t as DbInfotext,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbInput extends Components.DbInput, HTMLElement {}
4
+ export const DbInput: {
5
+ prototype: DbInput;
6
+ new (): DbInput;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{D as o,d as r}from"./p-4TaCoruo.js";const s=o,a=r;export{s as DbInput,a as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbLink extends Components.DbLink, HTMLElement {}
4
+ export const DbLink: {
5
+ prototype: DbLink;
6
+ new (): DbLink;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as t,H as e,z as s,d as i,t as a,j as n}from"./p-CCbaTFJ9.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 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,d;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===(d=this.showIcon)||void 0===d||d),"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]}]),r=d,l=function(){"undefined"!=typeof customElements&&["db-link"].forEach((t=>{"db-link"===t&&(customElements.get(a(t))||customElements.define(a(t),d))}))};export{r as DbLink,l as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbNavigationItem extends Components.DbNavigationItem, HTMLElement {}
4
+ export const DbNavigationItem: {
5
+ prototype: DbNavigationItem;
6
+ new (): DbNavigationItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as i,H as t,A as a,f as s,k as n,u as o,z as e,F as d,d as h,t as l,j as c}from"./p-CCbaTFJ9.js";import{n as u}from"./p-BdL-nI5y.js";import{N as r}from"./p-BuBrj57D.js";import{d as v}from"./p-DVYa1bHg.js";const b=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=a(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,s((()=>{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 a=null==i?void 0:i.closest(t);if(i&&a){const t=a.attributes;for(let s=0;s<t.length;s++){const n=t.item(s);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))i.setAttribute(n.name,n.value),a.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)i.setAttribute(n.name,n.value),a.removeAttribute(n.name);else if(n&&"class"===n.name){const t=n.value.includes("hydrated"),s=n.value.replace("hydrated","").trim(),o=i.getAttribute("class");i.setAttribute(n.name,`${o?o+" ":""}${s}`),t?a.setAttribute("class","hydrated"):a.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,a;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!==(a=this.backButtonText)&&void 0!==a?a: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}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbNavigation extends Components.DbNavigation, HTMLElement {}
4
+ export const DbNavigation: {
5
+ prototype: DbNavigation;
6
+ new (): DbNavigation;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as t,H as e,z as s,d as a,t as n}from"./p-CCbaTFJ9.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}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbNotification extends Components.DbNotification, HTMLElement {}
4
+ export const DbNotification: {
5
+ prototype: DbNotification;
6
+ new (): DbNotification;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +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-CCbaTFJ9.js";import{s as h}from"./p-BdL-nI5y.js";import{d as r}from"./p-DVYa1bHg.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"]}]),b=m,f=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{b as DbNotification,f as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbPage extends Components.DbPage, HTMLElement {}
4
+ export const DbPage: {
5
+ prototype: DbPage;
6
+ new (): DbPage;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as e,H as t,z as a,d as s,t as d,j as n}from"./p-CCbaTFJ9.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}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbPopover extends Components.DbPopover, HTMLElement {}
4
+ export const DbPopover: {
5
+ prototype: DbPopover;
6
+ new (): DbPopover;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +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-CCbaTFJ9.js";import{D as d}from"./p-4nwUOzw7.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}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbRadio extends Components.DbRadio, HTMLElement {}
4
+ export const DbRadio: {
5
+ prototype: DbRadio;
6
+ new (): DbRadio;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +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-CCbaTFJ9.js";import{b as l}from"./p-D4Ym01qf.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:"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=r,b=function(){"undefined"!=typeof customElements&&["db-radio"].forEach((t=>{"db-radio"===t&&(customElements.get(c(t))||customElements.define(c(t),r))}))};export{u as DbRadio,b as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbSection extends Components.DbSection, HTMLElement {}
4
+ export const DbSection: {
5
+ prototype: DbSection;
6
+ new (): DbSection;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as e,d,t as i}from"./p-CCbaTFJ9.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 d=0;d<s.length;d++){const i=s.item(d);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"),d=i.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(i.name,`${n?n+" ":""}${d}`),s?e.setAttribute("class","hydrated"):e.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-section")}render(){var t,s;return e("section",{key:"03d6f7ed2eea5b1374d0f5be00d77e59897033ea",class:d("db-section",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-spacing":this.spacing||"medium","data-width":this.width},e("slot",{key:"55c388d7e65e9bd27dd229f01a3c162719b90df2"}))}get rootElement(){return this}},[260,"db-section",{id:[1],propOverrides:[16],className:[1,"classname"],spacing:[1],width:[1]}]),a=n,o=function(){"undefined"!=typeof customElements&&["db-section"].forEach((t=>{"db-section"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{a as DbSection,o as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbSelect extends Components.DbSelect, HTMLElement {}
4
+ export const DbSelect: {
5
+ prototype: DbSelect;
6
+ new (): DbSelect;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as i,H as s,A as t,h,f as e,p as a,u as d,z as l,k as o,j as n,F as c,d as r,t as v,o as u}from"./p-CCbaTFJ9.js";import{l as p,f as m,g as b,h as f,i as w,k as y,a as g}from"./p-BdL-nI5y.js";import{c as k}from"./p-D4Ym01qf.js";import{d as _}from"./p-_2t1bnPD.js";const F=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.click=t(this,"click"),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._placeholderId="",this._descByIds=void 0,this._value="",this.initialized=!1,this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&this.required?(this._descByIds=this._validMessageId,h()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:y,e((()=>this._voiceOverFallback=""),1e3))):this._descByIds=a(this.message,this.showMessage)?this._messageId:this.placeholder?this._placeholderId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||p,h()&&(this._voiceOverFallback=this._invalidMessage,e((()=>this._voiceOverFallback=""),1e3)))}handleClick(i){this.click&&this.click.emit(i)}handleInput(i,s){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getOptionLabel(i){var s,t;return null!==(s=i.label)&&void 0!==s?s:null===(t=i.value)||void 0===t?void 0:""+t}shouldShowEmptyOption(){return!("floating"!==this.variant&&!this.placeholder)&&(void 0!==this.showEmptyOption?this.showEmptyOption:!this.required)}resetIds(){var i,s,t;const 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:"select-"+d();this._id=h,this._messageId=h+m,this._validMessageId=h+b,this._invalidMessageId=h+f,this._placeholderId=h+w}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)||p}watch1(){this.watch1Fn()}watch2Fn(){if(this._id&&this.initialized){const i=this._id+m,s=this._id+w;this._messageId=i,this._validMessageId=this._id+b,this._invalidMessageId=this._id+f,this._placeholderId=s,this._descByIds=a(this.message,this.showMessage)?i:this.placeholder?s:void 0,this.handleValidation(),this.initialized=!1}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),k(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),s.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-select"),this.initialized=!0,this.resetIds(),this._invalidMessage=this.invalidMessage||p,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,s,t,h,e,d;return l("div",{key:"3dd83828aaa06217389cf635687da0070ae88f56",class:r("db-select",this.className),"data-variant":this.variant,"data-hide-label":u(this.showLabel),"data-hide-asterisk":u(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":n(this.showIcon)},l("label",{key:"8fe580a4172003361a5c16551c4965882dbb3ce0",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:g),l("select",{key:"2f0ba052dafae5d44c27442eb4c27fa117c6ba76","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:i=>{this._ref=i},required:o(this.required,"required"),disabled:o(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:null!==(t=null!==(s=this.value)&&void 0!==s?s:this._value)&&void 0!==t?t:void 0,autocomplete:this.autocomplete,multiple:this.multiple,onInput:i=>this.handleInput(i),onClick:i=>this.handleClick(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":null!==(h=this.ariaDescribedBy)&&void 0!==h?h:this._descByIds},"floating"===this.variant||this.placeholder?l("option",{class:"placeholder",value:"","data-show-empty-option":n(this.shouldShowEmptyOption())}):null,(null===(e=this.options)||void 0===e?void 0:e.length)?null===(d=this.options)||void 0===d?void 0:d.map((i=>{var s;return l(c,null,i.options?l("optgroup",{label:this.getOptionLabel(i),key:void 0},null===(s=i.options)||void 0===s?void 0:s.map((i=>l("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:void 0},this.getOptionLabel(i))))):l("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:void 0},this.getOptionLabel(i)))})):l("slot",null)),this.placeholder?l("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,a(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||y):null,l("db-infotext",{key:"34ca1d025c67dc018375d56651a7f0ae1d2e245f",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"6f64314bcf457ddd86b3695e314125cca14d10d1","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-select",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],placeholder:[1],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],variant:[1],showEmptyOption:[4,"show-empty-option"],className:[1,"classname"],showLabel:[8,"show-label"],showRequiredAsterisk:[8,"show-required-asterisk"],icon:[1],showIcon:[8,"show-icon"],label:[1],disabled:[8],name:[1],size:[2],autocomplete:[1],multiple:[4],ariaDescribedBy:[1,"aria-described-by"],options:[16],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_placeholderId:[32],_descByIds:[32],_value:[32],initialized:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],initialized:[{watch2:0}],value:[{watch3:0}]}]),I=F,z=function(){"undefined"!=typeof customElements&&["db-select","db-infotext"].forEach((i=>{switch(i){case"db-select":customElements.get(v(i))||customElements.define(v(i),F);break;case"db-infotext":customElements.get(v(i))||_()}}))};export{I as DbSelect,z as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbStack extends Components.DbStack, HTMLElement {}
4
+ export const DbStack: {
5
+ prototype: DbStack;
6
+ new (): DbStack;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as t,H as s,z as a,d as e,t as i,j as d}from"./p-CCbaTFJ9.js";const n=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost()}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let e=0;e<s.length;e++){const i=s.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),a.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(i.name,`${d?d+" ":""}${e}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(i.name)}}}}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-stack")}render(){var t,s;return a("div",{key:"87f4f22cbfd4355da58ace757805c9e29758eb6d",class:e("db-stack",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":d(this.wrap)},a("slot",{key:"391ff9ee8a52408fa9830e0f5a30fd86a249a102"}))}get rootElement(){return this}},[260,"db-stack",{id:[1],propOverrides:[16],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[8]}]),c=n,o=function(){"undefined"!=typeof customElements&&["db-stack"].forEach((t=>{"db-stack"===t&&(customElements.get(i(t))||customElements.define(i(t),n))}))};export{c as DbStack,o as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbSwitch extends Components.DbSwitch, HTMLElement {}
4
+ export const DbSwitch: {
5
+ prototype: DbSwitch;
6
+ new (): DbSwitch;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as i,H as s,A as t,h as a,f as e,p as h,u as d,z as l,k as c,d as o,t as n,o as r,j as v}from"./p-CCbaTFJ9.js";import{l as u,f as w,g as f,h as m,k as b}from"./p-BdL-nI5y.js";import{a as g}from"./p-D4Ym01qf.js";import{d as p}from"./p-_2t1bnPD.js";const y=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,s,t,d,l,c;return(null===(s=null===(i=this._ref)||void 0===i?void 0:i.validity)||void 0===s?void 0:s.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(l=null===(d=this._ref)||void 0===d?void 0:d.validity)||void 0===l?void 0:l.valid)&&this.required?(this._descByIds=this._validMessageId,void(a()&&(this._voiceOverFallback=null!==(c=this.validMessage)&&void 0!==c?c:b,e((()=>{this._voiceOverFallback=""}),1e3)))):void(this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0):(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||u,void(a()&&(this._voiceOverFallback=this._invalidMessage||u,e((()=>{this._voiceOverFallback=""}),1e3))))}handleChange(i,s){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}handleKeyDown(i){var s;"Enter"===i.key&&(i.preventDefault(),this.disabled||null===(s=this._ref)||void 0===s||s.click())}resetIds(){var i,s,t;const a=null!==(t=null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&void 0!==t?t:"switch-"+d();this._id=a,this._messageId=`${a}${w}`,this._validMessageId=`${a}${f}`,this._invalidMessageId=`${a}${m}`}enableAttributePassing(i,s){const t=null==i?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),t.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h?h+" ":""}${a}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(e.name)}}}}watch0Fn(){var i,s;(null!==(i=this.id)&&void 0!==i?i:null===(s=this.propOverrides)||void 0===s?void 0:s.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.handleValidation()}watch1(){this.watch1Fn()}watch2Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u}watch2(){this.watch2Fn()}watch3Fn(){if(this._ref){const i=void 0;let s=this.abortController;s||(s=new AbortController,this.abortController=s),g(this._ref,{checked:this.checked,defaultChecked:i},(i=>{this.handleChange(i,!0)}),s.signal)}}watch3(){this.watch3Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-switch"),this.resetIds(),this.handleValidation(),this._invalidMessage=this.invalidMessage||u,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,s;return l("div",{key:"c82a033ffefd600a9c96ea487d9fd909ff1b72de",class:o("db-switch",this.className),"data-visual-aid":v(this.visualAid),"data-size":this.size,"data-hide-label":r(this.showLabel),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-custom-validity":this.validation},l("label",{key:"c1047871716d0d24f026c8ffaf37581a2b080375",htmlFor:this._id},l("input",{key:"883712cbfdd95c525ea615270546e2127f9bdbf8",type:"checkbox",role:"switch",id:this._id,ref:i=>{this._ref=i},checked:c(this.checked,"checked"),value:this.value,disabled:c(this.disabled,"disabled"),"aria-invalid":"invalid"===this.validation?"true":void 0,"aria-describedby":this._descByIds,name:this.name,required:c(this.required,"required"),"data-aid-icon":null!==(i=this.iconLeading)&&void 0!==i?i:this.icon,"data-aid-icon-trailing":this.iconTrailing,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),onKeyDown:i=>this.handleKeyDown(i)}),this.label?this.label:null,l("slot",{key:"106b299aca93a4e6498c74e7c43df87564122c40"})),h(this.message,this.showMessage)?l("db-infotext",{size:"small",semantic:"adaptive",id:this._messageId,icon:this.messageIcon},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},null!==(s=this.validMessage)&&void 0!==s?s:b):null,l("db-infotext",{key:"e2848f2de604908a0e05fbb0cde3c77a36adcc4e",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"37bcc9cd24041762a62822d118803b0eef247f12","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}}},[260,"db-switch",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],validation:[1],required:[8],message:[1],showMessage:[8,"show-message"],validMessage:[1,"valid-message"],checked:[8],disabled:[8],visualAid:[8,"visual-aid"],size:[1],showLabel:[8,"show-label"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],className:[1,"classname"],value:[8],name:[1],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],label:[1],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],validation:[{watch1:0}],required:[{watch1:0}],message:[{watch1:0}],showMessage:[{watch1:0}],validMessage:[{watch1:0}],invalidMessage:[{watch1:0},{watch2:0}],checked:[{watch1:0}],_ref:[{watch2:0},{watch3:0}]}]),k=y,M=function(){"undefined"!=typeof customElements&&["db-switch","db-infotext"].forEach((i=>{switch(i){case"db-switch":customElements.get(n(i))||customElements.define(n(i),y);break;case"db-infotext":customElements.get(n(i))||p()}}))};export{k as DbSwitch,M as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbTabItem extends Components.DbTabItem, HTMLElement {}
4
+ export const DbTabItem: {
5
+ prototype: DbTabItem;
6
+ new (): DbTabItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{D as o,d as s}from"./p-CEiQBevg.js";const p=o,r=s;export{p as DbTabItem,r as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbTabList extends Components.DbTabList, HTMLElement {}
4
+ export const DbTabList: {
5
+ prototype: DbTabList;
6
+ new (): DbTabList;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{D as o,d as s}from"./p-CV8l9qaA.js";const a=o,p=s;export{a as DbTabList,p as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbTabPanel extends Components.DbTabPanel, HTMLElement {}
4
+ export const DbTabPanel: {
5
+ prototype: DbTabPanel;
6
+ new (): DbTabPanel;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{D as o,d as p}from"./p-QNp8H1KD.js";const s=o,r=p;export{s as DbTabPanel,r as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbTabs extends Components.DbTabs, HTMLElement {}
4
+ export const DbTabs: {
5
+ prototype: DbTabs;
6
+ new (): DbTabs;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as t,H as i,A as s,u as e,z as a,F as n,d as o,t as l}from"./p-CCbaTFJ9.js";import{d as h}from"./p-DVYa1bHg.js";import{d as r}from"./p-CEiQBevg.js";import{d as c}from"./p-CV8l9qaA.js";import{d}from"./p-QNp8H1KD.js";const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.indexChange=s(this,"indexChange"),this.tabSelect=s(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const i=t.scrollWidth>t.clientWidth;this.showScrollLeft=i&&t.scrollLeft>1,this.showScrollRight=i&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var i;let s=Number(this.arrowScrollDistance)||100;t&&(s*=-1),null===(i=this.scrollContainer)||void 0===i||i.scrollBy({top:0,left:s,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const i=t.querySelector('[role="tablist"]');if(i&&(i.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=i,this.evaluateScrollButtons(i),i.addEventListener("scroll",(()=>{this.evaluateScrollButtons(i)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(i)}));t.observe(i),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const i=Array.from(this._ref.getElementsByClassName("db-tab-item")),s=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const e of i){const a=i.indexOf(e),n=e.querySelector("label"),o=e.querySelector("input");if(o&&n){if(!o.id){const t=`${this._name}-tab-${a}`;n.setAttribute("for",t),o.id=t,o.setAttribute("name",this._name),s.length>a&&o.setAttribute("aria-controls",`${this._name}-tab-panel-${a}`)}t&&(!this.initialSelectedMode||"auto"===this.initialSelectedMode)&&(null==this.initialSelectedIndex&&0===a||Number(this.initialSelectedIndex)===a)&&o.click()}}for(const t of s){if(t.id)continue;const i=s.indexOf(t);t.id=`${this._name}-tab-panel-${i}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${i}`)}}}handleChange(t){var i;if(t.stopPropagation(),t.target){const s=t.target.parentElement;if(s&&s.parentElement&&"LI"===(null===(i=s.parentElement)||void 0===i?void 0:i.nodeName)){const i=s.parentElement.parentElement;if(i){const s=i.parentElement;if(s){const e=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(e),this.tabSelect&&this.tabSelect.emit(t)}}}}}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),n=t.getAttribute("class");t.setAttribute(a.name,`${n?n+" ":""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tabs"),this._name="tabs-"+(this.name||e()),this.initialized=!0,this.watch0Fn()}disconnectedCallback(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0}render(){var t,i,s,e,l,h;return a("div",{key:"71e69e614a98de1b0fe789b210815d03bcee6286",class:o("db-tabs",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(s=this.alignment)&&void 0!==s?s:"start","data-width":null!==(e=this.width)&&void 0!==e?e:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?a("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?a(n,null,a("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>a("db-tab-item",{key:this.name+"tab-item"+i,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(h=this.convertTabs())||void 0===h?void 0:h.map(((t,i)=>a("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?a("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,a("slot",{key:"2e8a007adff7051a1266f88b95419a510ce7494a"}))}get rootElement(){return this}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}},[260,"db-tabs",{name:[1],tabs:[1],arrowScrollDistance:[8,"arrow-scroll-distance"],orientation:[1],behavior:[1],initialSelectedMode:[1,"initial-selected-mode"],initialSelectedIndex:[8,"initial-selected-index"],id:[1],propOverrides:[16],className:[1,"classname"],alignment:[1],width:[1],_name:[32],initialized:[32],showScrollLeft:[32],showScrollRight:[32],scrollContainer:[32],_resizeObserver:[32]},void 0,{_ref:[{watch0:0}],initialized:[{watch0:0}]}]),u=b,f=function(){"undefined"!=typeof customElements&&["db-tabs","db-button","db-tab-item","db-tab-list","db-tab-panel"].forEach((t=>{switch(t){case"db-tabs":customElements.get(l(t))||customElements.define(l(t),b);break;case"db-button":customElements.get(l(t))||h();break;case"db-tab-item":customElements.get(l(t))||r();break;case"db-tab-list":customElements.get(l(t))||c();break;case"db-tab-panel":customElements.get(l(t))||d()}}))};export{u as DbTabs,f as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbTag extends Components.DbTag, HTMLElement {}
4
+ export const DbTag: {
5
+ prototype: DbTag;
6
+ new (): DbTag;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{D as o,d as s}from"./p-DwwxAylo.js";const p=o,r=s;export{p as DbTag,r as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbTextarea extends Components.DbTextarea, HTMLElement {}
4
+ export const DbTextarea: {
5
+ prototype: DbTextarea;
6
+ new (): DbTextarea;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{y as s,H as i,A as t,h as e,f as a,p as h,u as d,z as l,l as n,k as o,o as r,d as c,t as v}from"./p-CCbaTFJ9.js";import{l as u,f,g as m,h as b,k as w,b as g,r as p,a as y}from"./p-BdL-nI5y.js";import{c as x}from"./p-D4Ym01qf.js";import{d as k}from"./p-_2t1bnPD.js";const _=s(class extends i{constructor(s){super(),!1!==s&&this.__registerHost(),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var s;return!!(null!==(s=this.validMessage)&&void 0!==s?s:"valid"===this.validation)}handleValidation(){var s,i,t,d;(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(t=this._ref)||void 0===t?void 0:t.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,e()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:w,a((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||u,e()&&(this._voiceOverFallback=this._invalidMessage,a((()=>this._voiceOverFallback=""),1e3)))}handleInput(s,i){this.input&&this.input.emit(s),this.handleValidation()}handleChange(s,i){this.change&&this.change.emit(s),this.handleValidation()}handleBlur(s){this.blur&&this.blur.emit(s)}handleFocus(s){this.focus&&this.focus.emit(s)}resetIds(){var s,i,t;const e=null!==(t=null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==t?t:"textarea-"+d();this._id=e,this._messageId=e+f,this._validMessageId=e+m,this._invalidMessageId=e+b}enableAttributePassing(s,i){const t=null==s?void 0:s.closest(i);if(s&&t){const i=t.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-")))s.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)s.setAttribute(a.name,a.value),t.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),h=s.getAttribute("class");s.setAttribute(a.name,`${h?h+" ":""}${e}`),i?t.setAttribute("class","hydrated"):t.removeAttribute(a.name)}}}}watch0Fn(){var s,i;(null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var s;this._invalidMessage=this.invalidMessage||(null===(s=this._ref)||void 0===s?void 0:s.validationMessage)||u}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const s=this._id+f;this._messageId=s,this._validMessageId=this._id+m,this._invalidMessageId=this._id+b,h(this.message,this.showMessage)&&(this._descByIds=s),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const s=void 0;let i=this.abortController;i||(i=new AbortController,this.abortController=i),x(this._ref,{value:this.value,defaultValue:s},(s=>{this.handleChange(s,!0),this.handleInput(s,!0)}),i.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const s=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);s&&s.remove()}this.enableAttributePassing(this._ref,"db-textarea"),this.resetIds(),this._invalidMessage=this.invalidMessage||u,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var s;null===(s=this.abortController)||void 0===s||s.abort()}render(){var s,i,t,e,a,d;return l("div",{key:"011c369f6437bb150f6afb7534da123ed5987621",class:c("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":r(this.showRequiredAsterisk),"data-hide-label":r(this.showLabel)},l("label",{key:"2ce564dca8898dedd7e666eb39f1b94226cc3547",htmlFor:this._id},null!==(s=this.label)&&void 0!==s?s:y),l("textarea",{key:"8cafda914ea6b0f48fe096472e71fd89ee85ec23","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:s=>{this._ref=s},id:this._id,"data-resize":this.resize,"data-hide-resizer":r(null===(i=this.showResizer)||void 0===i||i),disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly"),form:this.form,maxLength:n(this.maxLength,this.maxlength),minLength:n(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:s=>this.handleInput(s),onChange:s=>this.handleChange(s),onBlur:s=>this.handleBlur(s),onFocus:s=>this.handleFocus(s),value:null!==(e=null!==(t=this.value)&&void 0!==t?t:this._value)&&void 0!==e?e:"","aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(d=this.placeholder)&&void 0!==d?d:g,rows:n(this.rows,p),cols:n(this.cols)}),h(this.message,this.showMessage)?l("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,l("db-infotext",{key:"489ca97fb9dc385ec1483d47918025f6db999e01",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),l("span",{key:"c1aa196f836729f0b821f4b3f9300a924fd8e08c","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[0,"db-textarea",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],className:[1,"classname"],variant:[1],showRequiredAsterisk:[8,"show-required-asterisk"],showLabel:[8,"show-label"],label:[1],fieldSizing:[1,"field-sizing"],resize:[1],showResizer:[8,"show-resizer"],disabled:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],maxlength:[8],minlength:[8],name:[1],wrap:[1],spellCheck:[4,"spell-check"],autocomplete:[1],ariaDescribedBy:[1,"aria-described-by"],placeholder:[1],rows:[8],cols:[8],messageIcon:[1,"message-icon"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]),z=_,F=function(){"undefined"!=typeof customElements&&["db-textarea","db-infotext"].forEach((s=>{switch(s){case"db-textarea":customElements.get(v(s))||customElements.define(v(s),_);break;case"db-infotext":customElements.get(v(s))||k()}}))};export{z as DbTextarea,F as defineCustomElement}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface DbTooltip extends Components.DbTooltip, HTMLElement {}
4
+ export const DbTooltip: {
5
+ prototype: DbTooltip;
6
+ new (): DbTooltip;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1 @@
1
+ import{D as o,d as s}from"./p-BJJFATCC.js";const p=o,r=s;export{p as DbTooltip,r as defineCustomElement}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
34
+
35
+ export * from '../dist/types';
36
+
37
+ /**
38
+ * Utility to define all custom elements within this package using the tag name provided in the component's source.
39
+ * When defining each custom element, it will also check it's safe to define by:
40
+ *
41
+ * 1. Ensuring the "customElements" registry is available in the global context (window).
42
+ * 2. Ensuring that the component tag name is not already defined.
43
+ *
44
+ * Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
45
+ * method instead to define custom elements individually, or to provide a different tag name.
46
+ */
47
+ export declare const defineCustomElements: (opts?: any) => void;
@@ -0,0 +1 @@
1
+ import{t as _}from"./p-CCbaTFJ9.js";export{c as addAttributeToChildren,d as cls,f as delay,g as getAssetPath,k as getBoolean,j as getBooleanAsString,o as getHideProp,n as getInputValue,x as getNotificationRole,l as getNumber,v as getOptionKey,q as getSearchInput,m as getStep,h as hasVoiceOver,i as isArrayOfStrings,e as isIOSSafari,w as isKeyboardEvent,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions,p as stringPropVisible,u as uuid}from"./p-CCbaTFJ9.js";import{DbAccordion as L}from"./db-accordion.js";import{DbAccordionItem as I}from"./db-accordion-item.js";import{DbBadge as O}from"./db-badge.js";import{DbBrand as U}from"./db-brand.js";import{DbButton as R}from"./db-button.js";import{DbCard as P}from"./db-card.js";import{DbCheckbox as M}from"./db-checkbox.js";import{DbCustomButton as V}from"./db-custom-button.js";import{DbCustomSelect as X}from"./db-custom-select.js";export{D as DocumentClickListener}from"./db-custom-select.js";import{DbCustomSelectDropdown as K}from"./db-custom-select-dropdown.js";import{DbCustomSelectFormField as W}from"./db-custom-select-form-field.js";import{DbCustomSelectList as H}from"./db-custom-select-list.js";import{DbCustomSelectListItem as J}from"./db-custom-select-list-item.js";import{DbDivider as Y}from"./db-divider.js";import{DbDrawer as Q}from"./db-drawer.js";import{DbHeader as Z}from"./db-header.js";import{DbIcon as $}from"./db-icon.js";import{DbInfotext as ee}from"./db-infotext.js";import{DbInput as te}from"./db-input.js";import{DbLink as oe}from"./db-link.js";import{DbNavigation as ae}from"./db-navigation.js";import{DbNavigationItem as re}from"./db-navigation-item.js";import{DbNotification as se}from"./db-notification.js";import{DbPage as ie}from"./db-page.js";import{DbPopover as ne}from"./db-popover.js";import{DbRadio as me}from"./db-radio.js";import{DbSection as le}from"./db-section.js";import{DbSelect as de}from"./db-select.js";import{DbStack as ce}from"./db-stack.js";import{DbSwitch as pe}from"./db-switch.js";import{DbTabItem as fe}from"./db-tab-item.js";import{DbTabList as be}from"./db-tab-list.js";import{DbTabPanel as Ee}from"./db-tab-panel.js";import{DbTabs as ue}from"./db-tabs.js";import{DbTag as ge}from"./db-tag.js";import{DbTextarea as _e}from"./db-textarea.js";import{DbTooltip as De}from"./db-tooltip.js";export{x as COLOR,y as COLORS,z as COLORS_SIMPLE,C as COLOR_CONST,w as COLOR_SIMPLE,F as DB_UX_LOCAL_STORAGE_FRAMEWORK,G as DB_UX_LOCAL_STORAGE_MODE,n as DEFAULT_BACK,p as DEFAULT_BURGER_MENU,s as DEFAULT_CLOSE_BUTTON,j as DEFAULT_DATALIST_ID_SUFFIX,q as DEFAULT_ICON,D as DEFAULT_ID,l as DEFAULT_INVALID_MESSAGE,h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,d as DEFAULT_LABEL_ID_SUFFIX,c as DEFAULT_MESSAGE,f as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,i as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_REMOVE,r as DEFAULT_ROWS,o as DEFAULT_SELECTED,e as DEFAULT_SELECT_ID_SUFFIX,k as DEFAULT_VALID_MESSAGE,g as DEFAULT_VALID_MESSAGE_ID_SUFFIX,B as DEFAULT_VIEWPORT,v as DENSITIES,u as DENSITY,t as DENSITY_CONST,E as DESKTOP_VIEWPORT,S as SEMANTIC,A as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-BdL-nI5y.js";export{D as DocumentScrollListener}from"./p-4nwUOzw7.js";export{g as getFloatingProps,h as handleDataOutside,a as handleFixedDropdown,b as handleFixedPopover}from"./p-DOPXnIzL.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-BuBrj57D.js";const Le=["divider","card"],Ae=["multiple","single"],Se=["inline","corner-top-left","corner-top-right","corner-center-left","corner-center-right","corner-bottom-left","corner-bottom-right"],Te=["outlined","brand","filled","ghost"],je=["button","reset","submit"],he=["static","interactive"],Fe=["1","2","3"],Ie=["fixed","auto","full"],Oe=["checkbox","radio"],xe=["amount","text","tag"],ve=["none","_"],Ue=["horizontal","vertical"],we=["none","strong","weak","invisible"],Ce=["left","right","up","down"],ye=["modal","inside"],Ne=["fixed","absolute"],Re=["16","20","24","32","48","64"],Pe=["color","date","datetime-local","email","file","hidden","month","number","password","range","search","tel","text","time","url","week"],ke=["adaptive","brand","inline"],Me=["medium","small"],Be=["external","internal"],Ge=["docked","standalone","overlay"],Ve=["block","inline"],Xe=["assertive","polite","off"],ze=["auto","fixed"],Ke=["hidden","auto"],We=["simple","divider"],He=["row","column"],qe=["stretch","start","end","center"],Je=["space-between","start","end","center"],Ye=["scrollbar","arrows"],Qe=["auto","manually"],Ze=["static","removable"],$e=["none","both","horizontal","vertical"],et=["hard","soft","off"],tt=["description","label"],ot=["adaptive","neutral","critical","informational","warning","successful"],at=["medium","small","large","none"],rt=["medium","small","large","none"],st=["left","right","left-start","left-end","right-start","right-end"],it=["top","bottom","top-start","top-end","bottom-start","bottom-end"],nt=[...st,...it],mt=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"],lt=["horizontal","vertical"],dt=["full","auto"],ct=["full","medium","large","small"],pt=["none","slow","fast"],ft=["auto","fixed"],bt=["small","medium"],Et=["weak","strong"],ut=["invalid","valid","no-validation"],gt=["fixed","content"],_t=["above","floating"],Dt=["leading","trailing"],Lt=["off","on","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","email","username","new-password","current-password","one-time-code","organization-title","organization","street-address","shipping","billing","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-extension","impp","url","photo","webauthn"],At=["_self","_blank","_parent","_top"],St=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"],Tt=["start","center"],jt=e=>{"undefined"!=typeof customElements&&[L,I,O,U,R,P,M,V,X,K,W,H,J,Y,Q,Z,$,ee,te,oe,ae,re,se,ie,ne,me,le,de,ce,pe,fe,be,Ee,ue,ge,_e,De].forEach((t=>{customElements.get(_(t.is))||customElements.define(_(t.is),t,e)}))};export{Ae as AccordionBehaviorList,Le as AccordionVariantList,Tt as AlignmentList,Lt as AutoCompleteList,Se as BadgePlacementList,je as ButtonTypeList,Te as ButtonVariantList,he as CardBehaviorList,Fe as CardElevationLevelList,Ie as CustomSelectDropdownWidthList,Oe as CustomSelectListItemTypeList,ve as DividerMarginList,Ue as DividerVariantList,we as DrawerBackdropList,Ce as DrawerDirectionList,Ne as DrawerPositionList,ye as DrawerVariantList,Et as EmphasisList,gt as FieldSizingList,mt as GapSpacingList,Re as IconWeightList,Pe as InputTypeList,Dt as LabelVariantHorizontalList,_t as LabelVariantList,Be as LinkContentList,St as LinkReferrerPolicyList,Me as LinkSizeList,At as LinkTargetList,ke as LinkVariantList,rt as MarginList,ct as MaxWidthList,Xe as NotificationAriaLiveList,Ve as NotificationLinkVariantList,Ge as NotificationVariantList,lt as OrientationList,Ke as PageDocumentOverflowList,ze as PageVariantList,st as PlacementHorizontalList,nt as PlacementList,it as PlacementVerticalList,pt as PopoverDelayList,ft as PopoverWidthList,xe as SelectedTypeList,ot as SemanticList,bt as SizeList,at as SpacingList,qe as StackAlignmentList,He as StackDirectionList,Je as StackJustifyContentList,We as StackVariantList,Ye as TabsBehaviorList,Qe as TabsInitialSelectedModeList,Ze as TagBehaviorList,$e as TextareaResizeList,et as TextareaWrapList,tt as TooltipVariantList,ut as ValidationList,dt as WidthList,jt as defineCustomElements}
@@ -0,0 +1 @@
1
+ import{y as i,H as t,A as s,h as a,f as e,p as h,i as d,u as n,z as l,k as o,n as c,l as r,m as u,e as v,d as m,t as f,j as g,o as p}from"./p-CCbaTFJ9.js";import{l as b,f as w,g as y,h as k,j as x,k as z,b as I,a as _}from"./p-BdL-nI5y.js";import{c as L}from"./p-D4Ym01qf.js";import{d as F}from"./p-_2t1bnPD.js";const M=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.input=s(this,"input"),this.change=s(this,"change"),this.blur=s(this,"blur"),this.focus=s(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._dataListId=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,d;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength||this.pattern)?(this._descByIds=this._validMessageId,a()&&(this._voiceOverFallback=null!==(d=this.validMessage)&&void 0!==d?d:z,e((()=>this._voiceOverFallback=""),1e3))):this._descByIds=h(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||b,a()&&(this._voiceOverFallback=this._invalidMessage,e((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,t){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,t){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}getDataList(){const i=this.dataList;return Array.from((d(i)?null==i?void 0:i.map((i=>({value:i,label:void 0}))):i)||[])}resetIds(){var i,t,s;const a=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`input-${n()}`;this._id=a,this._messageId=a+w,this._validMessageId=a+y,this._invalidMessageId=a+k,this._dataListId=a+x}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 e=t.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)i.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const t=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=i.getAttribute("class");i.setAttribute(e.name,`${h?`${h} `:""}${a}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(e.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||b}watch1(){this.watch1Fn()}watch2Fn(){var i;if(this._id){const t=this._id+w;this._messageId=t,this._validMessageId=this._id+y,this._invalidMessageId=this._id+k,this._dataListId=null!==(i=this.dataListId)&&void 0!==i?i:this._id+x,h(this.message,this.showMessage)&&(this._descByIds=t),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){this._value=this.value}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let t=this.abortController;t||(t=new AbortController,this.abortController=t),L(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),t.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const i=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);i&&i.remove()}this.enableAttributePassing(this._ref,"db-input"),this.resetIds(),this._invalidMessage=this.invalidMessage||b,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,t,s,a,e,d,n,f,b;return l("div",{key:"09f1dff4d884168cb140705b0f310519e60e3aa2",class:m("db-input",this.className),"data-variant":this.variant,"data-hide-label":p(this.showLabel),"data-show-icon":g(null!==(i=this.showIconLeading)&&void 0!==i?i:this.showIcon),"data-icon":null!==(t=this.iconLeading)&&void 0!==t?t:this.icon,"data-icon-trailing":this.iconTrailing,"data-hide-asterisk":p(this.showRequiredAsterisk),"data-show-icon-trailing":g(this.showIconTrailing)},l("label",{key:"17c5e2ddca81cd88f5fbc5d0b5024fb833aff026",htmlFor:this._id},null!==(s=this.label)&&void 0!==s?s:_),l("input",{key:"ed0381ce65f0a89035804412d736adf3b6e0aea1","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,name:this.name,type:this.type||"text",multiple:o(this.multiple,"multiple"),accept:this.accept,placeholder:null!==(a=this.placeholder)&&void 0!==a?a:I,disabled:o(this.disabled,"disabled"),required:o(this.required,"required"),step:u(this.step),value:null!==(d=null!==(e=this.value)&&void 0!==e?e:this._value)&&void 0!==d?d:"",maxLength:r(this.maxLength,this.maxlength),minLength:r(this.minLength,this.minlength),max:c(this.max,this.type),min:c(this.min,this.type),readOnly:o(this.readOnly,"readOnly")||o(this.readonly,"readonly"),form:this.form,pattern:this.pattern,size:this.size,autoComplete:this.autocomplete,autoFocus:o(this.autofocus,"autofocus"),enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),list:this.dataList&&this._dataListId,"aria-describedby":null!==(n=this.ariaDescribedBy)&&void 0!==n?n:this._descByIds,role:["datetime-local","date","time","week","month","color"].includes(null!==(f=this.type)&&void 0!==f?f:"")&&v()?"textbox":void 0}),this.dataList?l("datalist",{id:this._dataListId},null===(b=this.getDataList())||void 0===b?void 0:b.map((i=>l("option",{key:this._dataListId+"-option-"+i.value,value:i.value},i.label)))):null,l("slot",{key:"e7c51c3d97314fd153f606a346244dac365171e5"}),h(this.message,this.showMessage)?l("db-infotext",{size:this.messageSize||"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?l("db-infotext",{semantic:"successful",id:this._validMessageId,size:this.validMessageSize||"small"},this.validMessage||z):null,l("db-infotext",{key:"f92de27dbfd942534f83a83d181b533fc0b4a6e2",semantic:"critical",id:this._invalidMessageId,size:this.invalidMessageSize||"small"},this._invalidMessage),l("span",{key:"af168dd9e11d853f76db0edee198a744d36a228d","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}},[260,"db-input",{invalidMessage:[1,"invalid-message"],id:[1],propOverrides:[16],dataListId:[1,"data-list-id"],message:[1],showMessage:[8,"show-message"],value:[8],validMessage:[1,"valid-message"],validation:[1],required:[8],minLength:[8,"min-length"],maxLength:[8,"max-length"],pattern:[1],dataList:[16],className:[1,"classname"],variant:[1],showLabel:[8,"show-label"],showIconLeading:[8,"show-icon-leading"],showIcon:[8,"show-icon"],iconLeading:[1,"icon-leading"],icon:[1],iconTrailing:[1,"icon-trailing"],showRequiredAsterisk:[8,"show-required-asterisk"],showIconTrailing:[8,"show-icon-trailing"],label:[1],fieldSizing:[1,"field-sizing"],name:[1],type:[1],multiple:[8],accept:[1],placeholder:[1],disabled:[8],step:[8],maxlength:[8],minlength:[8],max:[8],min:[8],readOnly:[8,"read-only"],readonly:[8],form:[1],size:[2],autocomplete:[1],autofocus:[8],enterkeyhint:[1],inputmode:[1],ariaDescribedBy:[1,"aria-described-by"],messageSize:[1,"message-size"],messageIcon:[1,"message-icon"],validMessageSize:[1,"valid-message-size"],invalidMessageSize:[1,"invalid-message-size"],_id:[32],_messageId:[32],_validMessageId:[32],_invalidMessageId:[32],_invalidMessage:[32],_dataListId:[32],_descByIds:[32],_value:[32],_voiceOverFallback:[32],abortController:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}]);function C(){"undefined"!=typeof customElements&&["db-input","db-infotext"].forEach((i=>{switch(i){case"db-input":customElements.get(f(i))||customElements.define(f(i),M);break;case"db-infotext":customElements.get(f(i))||F()}}))}export{M as D,C as d}
@@ -0,0 +1 @@
1
+ import{u as t}from"./p-CCbaTFJ9.js";class s{static runCallbacks(t){for(const l of Object.values(s.callbacks))"function"==typeof l&&l(t)}constructor(){if(this.ticking=!1,s._instance)return s._instance;s._instance=this,self.document&&self.document.addEventListener("scroll",(t=>{this.ticking||(window.requestAnimationFrame((()=>{s.runCallbacks(t),this.ticking=!1})),this.ticking=!0)}),!0)}addCallback(l){const o=t();return s.callbacks[o]=l,o}removeCallback(t){delete s.callbacks[t]}}s.callbacks={},s._instance=null;export{s as D}
@@ -0,0 +1 @@
1
+ import{y as t,H as i,f as s,u as e,z as a,d as o,t as d,j as h}from"./p-CCbaTFJ9.js";import{D as n}from"./p-BdL-nI5y.js";import{D as l}from"./p-4nwUOzw7.js";import{b as r}from"./p-DOPXnIzL.js";const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this._id=n,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleClick(t){t.stopPropagation()}handleEscape(t){t&&"Escape"!==t.key||!this._ref||"visible"!==getComputedStyle(this._ref).visibility||this.getParent().blur()}getParent(){let t=this._ref.parentElement;return t&&t.localName.includes("tooltip")&&(t=t.parentElement),t}handleAutoPlacement(t){t&&this._ref&&s((()=>{var i;this._ref&&r(this._ref,t,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t,i){var s,e;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.contains(this._ref))&&this.handleAutoPlacement(i)}handleLeave(){var t;this._documentScrollListenerCallbackId&&(new l).removeCallback(this._documentScrollListenerCallbackId),null===(t=this._observer)||void 0===t||t.unobserve(this.getParent())}handleEnter(t){var i;this._documentScrollListenerCallbackId=(new l).addCallback((i=>this.handleDocumentScroll(i,t))),this.handleAutoPlacement(t),null===(i=this._observer)||void 0===i||i.observe(this.getParent())}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"tooltip-"+e()}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(),o=t.getAttribute("class");t.setAttribute(a.name,`${o?`${o} `:""}${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(){if(this._ref&&this.initialized&&this._id){const t=this.getParent();t&&(this.handleAutoPlacement(t),["mouseenter","focusin"].forEach((i=>{t.addEventListener(i,(()=>this.handleEnter(t)))})),t.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseleave","focusout"].forEach((i=>{t.addEventListener(i,(()=>this.handleLeave()))})),t.dataset.hasTooltip="true",t.setAttribute("label"===this.variant?"aria-labelledby":"aria-describedby",this._id)),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));i&&!i.isIntersecting&&this.handleEscape(!1)}))),this.initialized=!1}}watch1(){this.watch1Fn()}componentDidLoad(){if("undefined"!=typeof document&&this.rootElement&&this.rootElement.dataset.connect){const t=document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);t&&t.remove()}this.enableAttributePassing(this._ref,"db-tooltip"),this.resetIds(),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,i;return a("i",{key:"baf376c4ee424f78a7e062b864586139846b2073",class:o("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-wrap":h(this.wrap),"data-animation":h(null===(t=this.animation)||void 0===t||t),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":h(null===(i=this.showArrow)||void 0===i||i),"data-placement":this.placement,onClick:t=>this.handleClick(t)},this.text?this.text:null,a("slot",{key:"6ec094383bad1237ce6ae7d02a7a62cf5c8de19d"}))}get rootElement(){return this}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}},[260,"db-tooltip",{id:[1],propOverrides:[16],variant:[1],placement:[1],className:[1,"classname"],emphasis:[1],wrap:[8],animation:[8],delay:[1],width:[1],showArrow:[8,"show-arrow"],text:[1],_id:[32],initialized:[32],_documentScrollListenerCallbackId:[32],_observer:[32]},void 0,{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}]);function u(){"undefined"!=typeof customElements&&["db-tooltip"].forEach((t=>{"db-tooltip"===t&&(customElements.get(d(t))||customElements.define(d(t),c))}))}export{c as D,u as d}
@@ -0,0 +1 @@
1
+ const a="OVERWRITE_DEFAULT_ID",s="LABEL SHOULD BE SET",e=" ",i="MESSAGE SHOULD BE SET",l="-label",n="-select",b="-message",c="-valid-message",t="-invalid-message",r="-placeholder",g="-datalist",u="TODO: Add a validMessage",o="TODO: Add an invalidMessage",v="Remove",d="Back",f="Selected",m="BurgerMenu",p="brand",O=4,h="Close",w="density",E="color";var S;!function(a){a.FUNCTIONAL="functional",a.REGULAR="regular",a.EXPRESSIVE="expressive"}(S||(S={}));const j=Object.entries(S).map((([,a])=>a));var D,T;!function(a){a.PRIMARY="primary"}(D||(D={})),function(a){a.NEUTRAL_BG_LEVEL_1="neutral-bg-basic-level-1",a.NEUTRAL_BG_LEVEL_2="neutral-bg-basic-level-2",a.NEUTRAL_BG_LEVEL_3="neutral-bg-basic-level-3",a.NEUTRAL_BG_TRANSPARENT_SEMI="neutral-bg-basic-transparent-semi",a.NEUTRAL_BG_TRANSPARENT_FULL="neutral-bg-basic-transparent-full",a.BRAND_BG_LEVEL_1="brand-bg-basic-level-1",a.BRAND_BG_LEVEL_2="brand-bg-basic-level-2",a.BRAND_BG_LEVEL_3="brand-bg-basic-level-3",a.BRAND_BG_TRANSPARENT_SEMI="brand-bg-basic-transparent-semi",a.BRAND_BG_TRANSPARENT_FULL="brand-bg-basic-transparent-full",a.SUCCESSFUL_BG_LEVEL_1="successful-bg-basic-level-1",a.SUCCESSFUL_BG_LEVEL_2="successful-bg-basic-level-2",a.SUCCESSFUL_BG_LEVEL_3="successful-bg-basic-level-3",a.SUCCESSFUL_BG_TRANSPARENT_SEMI="successful-bg-basic-transparent-semi",a.SUCCESSFUL_BG_TRANSPARENT_FULL="successful-bg-basic-transparent-full",a.CRITICAL_BG_LEVEL_1="critical-bg-basic-level-1",a.CRITICAL_BG_LEVEL_2="critical-bg-basic-level-2",a.CRITICAL_BG_LEVEL_3="critical-bg-basic-level-3",a.CRITICAL_BG_TRANSPARENT_SEMI="critical-bg-basic-transparent-semi",a.CRITICAL_BG_TRANSPARENT_Full="critical-bg-basic-transparent-full",a.WARNING_BG_LEVEL_1="warning-bg-basic-level-1",a.WARNING_BG_LEVEL_2="warning-bg-basic-level-2",a.WARNING_BG_LEVEL_3="warning-bg-basic-level-3",a.WARNING_BG_TRANSPARENT_SEMI="warning-bg-basic-transparent-semi",a.WARNING_BG_TRANSPARENT_FULL="warning-bg-basic-transparent-full",a.INFORMATIONAL_BG_LEVEL_1="informational-bg-basic-level-1",a.INFORMATIONAL_BG_LEVEL_2="informational-bg-basic-level-2",a.INFORMATIONAL_BG_LEVEL_3="informational-bg-basic-level-3",a.INFORMATIONAL_BG_TRANSPARENT_SEMI="informational-bg-basic-transparent-semi",a.INFORMATIONAL_BG_TRANSPARENT_FULL="informational-bg-basic-transparent-full"}(T||(T={}));const A=Object.entries(T).map((([,a])=>a)),B=Object.entries(D).map((([,a])=>a));var x;!function(a){a.CRITICAL="critical",a.INFORMATIONAL="informational",a.WARNING="warning",a.SUCCESSFUL="successful"}(x||(x={}));const L=Object.entries(x).map((([,a])=>a)),k={width:390,height:884},M={width:1920,height:1280},y=[Object.assign({name:"desktop"},M),{name:"tablet",width:768,height:1024},Object.assign({name:"mobile"},k)],R="db-ux-framework",U="db-ux-mode";export{L as A,k as B,E as C,a as D,M as E,R as F,U as G,x as S,y as T,s as a,e as b,i as c,l as d,n as e,b as f,c as g,t as h,r as i,g as j,u as k,o as l,v as m,d as n,f as o,m as p,p as q,O as r,h as s,w as t,S as u,j as v,D as w,T as x,A as y,B as z}
@@ -0,0 +1 @@
1
+ import{h as i}from"./p-DOPXnIzL.js";const t=i=>{var t,s;const{target:h}=i;return Boolean(!(null===(t=null==h?void 0:h.classList)||void 0===t?void 0:t.contains("db-navigation-item-expand-button"))&&(null===(s=null==h?void 0:h.parentElement)||void 0===s?void 0:s.classList.contains("db-navigation-item")))};class s{constructor(i,t){var s;this.parentSubNavigation=null,this.initialized=!1,this.mouseX=0,this.mouseY=0,this.element=i,this.subNavigation=t,this.element&&this.subNavigation&&(this.parentSubNavigation=null===(s=this.element)||void 0===s?void 0:s.closest(".db-sub-navigation"),this.parentSubNavigation&&!this.element.closest(".db-drawer")&&this.init())}init(){var i,t,s;const h=null!==(t=null===(i=this.parentSubNavigation)||void 0===i?void 0:i.getBoundingClientRect().width)&&void 0!==t?t:0;null===(s=this.element)||void 0===s||s.style.setProperty("--db-navigation-item-inline-size",`${h}px`),this.initialized=!0}enableFollow(){var t,s;if(!this.initialized||this.triangleData||!this.element||!this.subNavigation)return;const h=i(this.subNavigation),n=this.element.getBoundingClientRect(),o=null!==(s=null===(t=this.parentSubNavigation)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==s?s:0;this.triangleData={itemRect:n,parentElementWidth:o,subNavigationHeight:this.subNavigation.getBoundingClientRect().height,padding:(o-n.width)/2,outsideVX:h.vx,outsideVY:h.vy}}disableFollow(){this.triangleData=void 0}getTriangleTipX(){return this.triangleData?"right"===this.triangleData.outsideVX?this.triangleData.itemRect.width-this.mouseX:Math.min(this.mouseX,.75*this.triangleData.itemRect.width):0}getTriangleTipY(){if(!this.triangleData)return 0;const i=Math.max(Math.min(this.mouseY,this.triangleData.itemRect.height),0)+this.triangleData.padding;return"bottom"===this.triangleData.outsideVY?i+(this.triangleData.subNavigationHeight-2*this.triangleData.padding-this.triangleData.itemRect.height):i}hasMouseEnteredSubNavigation(){if(!this.triangleData)return!1;const i="right"===this.triangleData.outsideVX;return!!(i&&this.mouseX<-1*this.triangleData.padding)||!i&&this.mouseX>this.triangleData.parentElementWidth-this.triangleData.padding}getTriangleCoordinates(i){if(!this.triangleData)return;if("fill-gap"===i){const i=`${this.triangleData.itemRect.height+2*this.triangleData.padding}px`,t=this.triangleData.parentElementWidth-this.triangleData.padding+"px";return{lb:`${t} ${i}`,lt:`${t} 0`,rt:"100% 0",rb:`100% ${i}`}}const t=this.getTriangleTipX(),s=this.getTriangleTipY();return{lb:`${t}px ${s}px`,lt:`${t}px ${s}px`,rt:"100% 0",rb:"100% 100%"}}followByMouseEvent(i){if(!(this.initialized&&this.triangleData&&this.element&&this.subNavigation))return;this.mouseX=i.clientX-this.triangleData.itemRect.left,this.mouseY=i.clientY-this.triangleData.itemRect.top;const t=this.hasMouseEnteredSubNavigation(),s=this.getTriangleCoordinates(t?"fill-gap":"safe-triangle");s&&(this.element.style.setProperty("--db-navigation-item-clip-path",`polygon(${s.lb}, ${s.lt}, ${s.rt}, ${s.rb})`),t&&(this.triangleData=void 0))}}export{s as N,t as i}