@db-ux/wc-core-components 1.1.0 → 2.0.0-0-6589a60

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 (425) hide show
  1. package/README.md +7 -2
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  4. package/dist/cjs/{constants-89822e5f.js → constants-C75d4JiJ.js} +2 -1
  5. package/dist/cjs/constants-C75d4JiJ.js.map +1 -0
  6. package/dist/cjs/db-accordion-item.cjs.entry.js +5 -6
  7. package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -1
  8. package/dist/cjs/db-accordion-item.entry.cjs.js.map +1 -0
  9. package/dist/cjs/db-accordion.cjs.entry.js +39 -14
  10. package/dist/cjs/db-accordion.cjs.entry.js.map +1 -1
  11. package/dist/cjs/db-accordion.entry.cjs.js.map +1 -0
  12. package/dist/cjs/db-badge.cjs.entry.js +18 -11
  13. package/dist/cjs/db-badge.cjs.entry.js.map +1 -1
  14. package/dist/cjs/db-badge.entry.cjs.js.map +1 -0
  15. package/dist/cjs/db-brand.cjs.entry.js +4 -5
  16. package/dist/cjs/db-brand.cjs.entry.js.map +1 -1
  17. package/dist/cjs/db-brand.entry.cjs.js.map +1 -0
  18. package/dist/cjs/db-button.cjs.entry.js +4 -5
  19. package/dist/cjs/db-button.cjs.entry.js.map +1 -1
  20. package/dist/cjs/db-button.entry.cjs.js.map +1 -0
  21. package/dist/cjs/db-card.cjs.entry.js +4 -5
  22. package/dist/cjs/db-card.cjs.entry.js.map +1 -1
  23. package/dist/cjs/db-card.entry.cjs.js.map +1 -0
  24. package/dist/cjs/db-checkbox.cjs.entry.js +43 -21
  25. package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
  26. package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -0
  27. package/dist/cjs/db-divider.cjs.entry.js +3 -4
  28. package/dist/cjs/db-divider.cjs.entry.js.map +1 -1
  29. package/dist/cjs/db-divider.entry.cjs.js.map +1 -0
  30. package/dist/cjs/db-drawer.cjs.entry.js +18 -12
  31. package/dist/cjs/db-drawer.cjs.entry.js.map +1 -1
  32. package/dist/cjs/db-drawer.entry.cjs.js.map +1 -0
  33. package/dist/cjs/db-header.cjs.entry.js +21 -15
  34. package/dist/cjs/db-header.cjs.entry.js.map +1 -1
  35. package/dist/cjs/db-header.entry.cjs.js.map +1 -0
  36. package/dist/cjs/db-icon.cjs.entry.js +3 -4
  37. package/dist/cjs/db-icon.cjs.entry.js.map +1 -1
  38. package/dist/cjs/db-icon.entry.cjs.js.map +1 -0
  39. package/dist/cjs/db-infotext.cjs.entry.js +3 -4
  40. package/dist/cjs/db-infotext.cjs.entry.js.map +1 -1
  41. package/dist/cjs/db-infotext.entry.cjs.js.map +1 -0
  42. package/dist/cjs/db-input.cjs.entry.js +35 -22
  43. package/dist/cjs/db-input.cjs.entry.js.map +1 -1
  44. package/dist/cjs/db-input.entry.cjs.js.map +1 -0
  45. package/dist/cjs/db-link.cjs.entry.js +4 -5
  46. package/dist/cjs/db-link.cjs.entry.js.map +1 -1
  47. package/dist/cjs/db-link.entry.cjs.js.map +1 -0
  48. package/dist/cjs/db-navigation-item.cjs.entry.js +36 -14
  49. package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
  50. package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -0
  51. package/dist/cjs/db-navigation.cjs.entry.js +4 -5
  52. package/dist/cjs/db-navigation.cjs.entry.js.map +1 -1
  53. package/dist/cjs/db-navigation.entry.cjs.js.map +1 -0
  54. package/dist/cjs/db-notification.cjs.entry.js +5 -6
  55. package/dist/cjs/db-notification.cjs.entry.js.map +1 -1
  56. package/dist/cjs/db-notification.entry.cjs.js.map +1 -0
  57. package/dist/cjs/db-page.cjs.entry.js +5 -6
  58. package/dist/cjs/db-page.cjs.entry.js.map +1 -1
  59. package/dist/cjs/db-page.entry.cjs.js.map +1 -0
  60. package/dist/cjs/db-popover.cjs.entry.js +25 -11
  61. package/dist/cjs/db-popover.cjs.entry.js.map +1 -1
  62. package/dist/cjs/db-popover.entry.cjs.js.map +1 -0
  63. package/dist/cjs/db-radio.cjs.entry.js +21 -13
  64. package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
  65. package/dist/cjs/db-radio.entry.cjs.js.map +1 -0
  66. package/dist/cjs/db-section.cjs.entry.js +4 -5
  67. package/dist/cjs/db-section.cjs.entry.js.map +1 -1
  68. package/dist/cjs/db-section.entry.cjs.js.map +1 -0
  69. package/dist/cjs/db-select.cjs.entry.js +39 -25
  70. package/dist/cjs/db-select.cjs.entry.js.map +1 -1
  71. package/dist/cjs/db-select.entry.cjs.js.map +1 -0
  72. package/dist/cjs/db-stack.cjs.entry.js +3 -4
  73. package/dist/cjs/db-stack.cjs.entry.js.map +1 -1
  74. package/dist/cjs/db-stack.entry.cjs.js.map +1 -0
  75. package/dist/cjs/db-switch.cjs.entry.js +19 -13
  76. package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
  77. package/dist/cjs/db-switch.entry.cjs.js.map +1 -0
  78. package/dist/cjs/db-tab-item.db-tab-list.db-tab-panel.entry.cjs.js.map +1 -0
  79. package/dist/cjs/db-tab-item_3.cjs.entry.js +20 -13
  80. package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -1
  81. package/dist/cjs/db-tabs.cjs.entry.js +22 -15
  82. package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
  83. package/dist/cjs/db-tabs.entry.cjs.js.map +1 -0
  84. package/dist/cjs/db-tag.cjs.entry.js +19 -11
  85. package/dist/cjs/db-tag.cjs.entry.js.map +1 -1
  86. package/dist/cjs/db-tag.entry.cjs.js.map +1 -0
  87. package/dist/cjs/db-textarea.cjs.entry.js +34 -21
  88. package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
  89. package/dist/cjs/db-textarea.entry.cjs.js.map +1 -0
  90. package/dist/cjs/db-tooltip.cjs.entry.js +20 -13
  91. package/dist/cjs/db-tooltip.cjs.entry.js.map +1 -1
  92. package/dist/cjs/db-tooltip.entry.cjs.js.map +1 -0
  93. package/dist/cjs/db-ux.cjs.js +8 -7
  94. package/dist/cjs/db-ux.cjs.js.map +1 -1
  95. package/dist/cjs/{index-3d093f06.js → index-DBEtsnky.js} +223 -142
  96. package/dist/cjs/index-DBEtsnky.js.map +1 -0
  97. package/dist/cjs/{index-403366c7.js → index-sPDBdc1s.js} +2 -1
  98. package/dist/cjs/index-sPDBdc1s.js.map +1 -0
  99. package/dist/cjs/index.cjs.js +13 -22
  100. package/dist/cjs/index.cjs.js.map +1 -1
  101. package/dist/cjs/loader.cjs.js +4 -5
  102. package/dist/cjs/loader.cjs.js.map +1 -1
  103. package/dist/cjs/{navigation-5586b826.js → navigation-l4Ce-Ems.js} +3 -2
  104. package/dist/cjs/navigation-l4Ce-Ems.js.map +1 -0
  105. package/dist/collection/collection-manifest.json +1 -1
  106. package/dist/collection/components/accordion/accordion.js +55 -9
  107. package/dist/collection/components/accordion/accordion.js.map +1 -1
  108. package/dist/collection/components/accordion/model.js.map +1 -1
  109. package/dist/collection/components/badge/badge.js +19 -6
  110. package/dist/collection/components/badge/badge.js.map +1 -1
  111. package/dist/collection/components/badge/model.js.map +1 -1
  112. package/dist/collection/components/button/button.js +1 -1
  113. package/dist/collection/components/button/model.js.map +1 -1
  114. package/dist/collection/components/card/card.js +1 -1
  115. package/dist/collection/components/card/model.js.map +1 -1
  116. package/dist/collection/components/checkbox/checkbox.js +54 -14
  117. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  118. package/dist/collection/components/divider/divider.js +1 -1
  119. package/dist/collection/components/divider/model.js.map +1 -1
  120. package/dist/collection/components/drawer/drawer.js +18 -8
  121. package/dist/collection/components/drawer/drawer.js.map +1 -1
  122. package/dist/collection/components/drawer/model.js.map +1 -1
  123. package/dist/collection/components/header/header.js +19 -9
  124. package/dist/collection/components/header/header.js.map +1 -1
  125. package/dist/collection/components/icon/model.js.map +1 -1
  126. package/dist/collection/components/input/input.js +33 -14
  127. package/dist/collection/components/input/input.js.map +1 -1
  128. package/dist/collection/components/input/model.js.map +1 -1
  129. package/dist/collection/components/link/model.js.map +1 -1
  130. package/dist/collection/components/navigation-item/model.js.map +1 -1
  131. package/dist/collection/components/navigation-item/navigation-item.js +40 -11
  132. package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
  133. package/dist/collection/components/notification/model.js.map +1 -1
  134. package/dist/collection/components/page/model.js.map +1 -1
  135. package/dist/collection/components/page/page.js +27 -2
  136. package/dist/collection/components/page/page.js.map +1 -1
  137. package/dist/collection/components/popover/popover.js +33 -8
  138. package/dist/collection/components/popover/popover.js.map +1 -1
  139. package/dist/collection/components/radio/radio.js +23 -7
  140. package/dist/collection/components/radio/radio.js.map +1 -1
  141. package/dist/collection/components/section/section.js +1 -1
  142. package/dist/collection/components/select/select.js +38 -16
  143. package/dist/collection/components/select/select.js.map +1 -1
  144. package/dist/collection/components/stack/model.js.map +1 -1
  145. package/dist/collection/components/switch/switch.js +17 -7
  146. package/dist/collection/components/switch/switch.js.map +1 -1
  147. package/dist/collection/components/tab-item/tab-item.js +21 -8
  148. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  149. package/dist/collection/components/tabs/model.js.map +1 -1
  150. package/dist/collection/components/tabs/tabs.js +25 -12
  151. package/dist/collection/components/tabs/tabs.js.map +1 -1
  152. package/dist/collection/components/tag/model.js.map +1 -1
  153. package/dist/collection/components/tag/tag.js +23 -7
  154. package/dist/collection/components/tag/tag.js.map +1 -1
  155. package/dist/collection/components/textarea/model.js.map +1 -1
  156. package/dist/collection/components/textarea/textarea.js +32 -13
  157. package/dist/collection/components/textarea/textarea.js.map +1 -1
  158. package/dist/collection/components/tooltip/tooltip.js +21 -8
  159. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  160. package/dist/collection/shared/model.js.map +1 -1
  161. package/dist/collection/utils/navigation.js.map +1 -1
  162. package/dist/custom-elements.json +484 -116
  163. package/dist/db-ux/db-accordion-item.entry.esm.js.map +1 -0
  164. package/dist/db-ux/db-accordion.entry.esm.js.map +1 -0
  165. package/dist/db-ux/db-badge.entry.esm.js.map +1 -0
  166. package/dist/db-ux/db-brand.entry.esm.js.map +1 -0
  167. package/dist/db-ux/db-button.entry.esm.js.map +1 -0
  168. package/dist/db-ux/db-card.entry.esm.js.map +1 -0
  169. package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -0
  170. package/dist/db-ux/db-divider.entry.esm.js.map +1 -0
  171. package/dist/db-ux/db-drawer.entry.esm.js.map +1 -0
  172. package/dist/db-ux/db-header.entry.esm.js.map +1 -0
  173. package/dist/db-ux/db-icon.entry.esm.js.map +1 -0
  174. package/dist/db-ux/db-infotext.entry.esm.js.map +1 -0
  175. package/dist/db-ux/db-input.entry.esm.js.map +1 -0
  176. package/dist/db-ux/db-link.entry.esm.js.map +1 -0
  177. package/dist/db-ux/db-navigation-item.entry.esm.js.map +1 -0
  178. package/dist/db-ux/db-navigation.entry.esm.js.map +1 -0
  179. package/dist/db-ux/db-notification.entry.esm.js.map +1 -0
  180. package/dist/db-ux/db-page.entry.esm.js.map +1 -0
  181. package/dist/db-ux/db-popover.entry.esm.js.map +1 -0
  182. package/dist/db-ux/db-radio.entry.esm.js.map +1 -0
  183. package/dist/db-ux/db-section.entry.esm.js.map +1 -0
  184. package/dist/db-ux/db-select.entry.esm.js.map +1 -0
  185. package/dist/db-ux/db-stack.entry.esm.js.map +1 -0
  186. package/dist/db-ux/db-switch.entry.esm.js.map +1 -0
  187. package/dist/db-ux/db-tab-item.db-tab-list.db-tab-panel.entry.esm.js.map +1 -0
  188. package/dist/db-ux/db-tabs.entry.esm.js.map +1 -0
  189. package/dist/db-ux/db-tag.entry.esm.js.map +1 -0
  190. package/dist/db-ux/db-textarea.entry.esm.js.map +1 -0
  191. package/dist/db-ux/db-tooltip.entry.esm.js.map +1 -0
  192. package/dist/db-ux/db-ux.esm.js +1 -1
  193. package/dist/db-ux/db-ux.esm.js.map +1 -1
  194. package/dist/db-ux/index.esm.js +1 -1
  195. package/dist/db-ux/index.esm.js.map +1 -1
  196. package/dist/db-ux/loader.esm.js.map +1 -0
  197. package/dist/db-ux/{p-f23ca7f6.entry.js → p-13103208.entry.js} +2 -2
  198. package/dist/db-ux/{p-f23ca7f6.entry.js.map → p-13103208.entry.js.map} +1 -1
  199. package/dist/db-ux/p-2e23ff44.entry.js +2 -0
  200. package/dist/db-ux/{p-5c1b65ac.entry.js.map → p-2e23ff44.entry.js.map} +1 -1
  201. package/dist/db-ux/p-3d7843de.entry.js +2 -0
  202. package/dist/db-ux/p-3d7843de.entry.js.map +1 -0
  203. package/dist/db-ux/p-63c7cb8b.entry.js +2 -0
  204. package/dist/db-ux/p-63c7cb8b.entry.js.map +1 -0
  205. package/dist/db-ux/p-6c1ea804.entry.js +2 -0
  206. package/dist/db-ux/{p-1665a1f6.entry.js.map → p-6c1ea804.entry.js.map} +1 -1
  207. package/dist/db-ux/p-720aa9a5.entry.js +2 -0
  208. package/dist/db-ux/{p-cf22eaea.entry.js.map → p-720aa9a5.entry.js.map} +1 -1
  209. package/dist/db-ux/p-77fc7549.entry.js +2 -0
  210. package/dist/db-ux/p-77fc7549.entry.js.map +1 -0
  211. package/dist/db-ux/p-793d7f91.entry.js +2 -0
  212. package/dist/db-ux/p-793d7f91.entry.js.map +1 -0
  213. package/dist/db-ux/p-7f107bca.entry.js +2 -0
  214. package/dist/db-ux/p-7f107bca.entry.js.map +1 -0
  215. package/dist/db-ux/p-80639e12.entry.js +2 -0
  216. package/dist/db-ux/p-80639e12.entry.js.map +1 -0
  217. package/dist/db-ux/p-837442c2.entry.js +2 -0
  218. package/dist/db-ux/p-837442c2.entry.js.map +1 -0
  219. package/dist/db-ux/p-8822e255.entry.js +2 -0
  220. package/dist/db-ux/p-8822e255.entry.js.map +1 -0
  221. package/dist/db-ux/p-8e074bd8.entry.js +2 -0
  222. package/dist/db-ux/{p-300fb4ff.entry.js.map → p-8e074bd8.entry.js.map} +1 -1
  223. package/dist/db-ux/{p-7eb92648.entry.js → p-948a6441.entry.js} +2 -2
  224. package/dist/db-ux/{p-7eb92648.entry.js.map → p-948a6441.entry.js.map} +1 -1
  225. package/dist/db-ux/p-9638c44e.entry.js +2 -0
  226. package/dist/db-ux/p-9638c44e.entry.js.map +1 -0
  227. package/dist/db-ux/{p-45bb9feb.js → p-BJJmGwiD.js} +1 -1
  228. package/dist/db-ux/p-BJJmGwiD.js.map +1 -0
  229. package/dist/db-ux/{p-0cdf053e.js → p-CNYyu0D-.js} +2 -2
  230. package/dist/db-ux/p-CNYyu0D-.js.map +1 -0
  231. package/dist/db-ux/{p-af3834b6.js → p-CNj9Jn9q.js} +1 -1
  232. package/dist/db-ux/p-CNj9Jn9q.js.map +1 -0
  233. package/dist/db-ux/p-D-D8lQAG.js +3 -0
  234. package/dist/db-ux/p-D-D8lQAG.js.map +1 -0
  235. package/dist/db-ux/p-DQuL1Twl.js +2 -0
  236. package/dist/db-ux/p-DQuL1Twl.js.map +1 -0
  237. package/dist/db-ux/p-a33ead25.entry.js +2 -0
  238. package/dist/db-ux/p-a33ead25.entry.js.map +1 -0
  239. package/dist/db-ux/p-a7cb5508.entry.js +2 -0
  240. package/dist/db-ux/{p-95e59a69.entry.js.map → p-a7cb5508.entry.js.map} +1 -1
  241. package/dist/db-ux/p-ab698c11.entry.js +2 -0
  242. package/dist/db-ux/p-ab698c11.entry.js.map +1 -0
  243. package/dist/db-ux/p-b34a66b5.entry.js +2 -0
  244. package/dist/db-ux/p-b34a66b5.entry.js.map +1 -0
  245. package/dist/db-ux/p-b7ea60d8.entry.js +2 -0
  246. package/dist/db-ux/p-b7ea60d8.entry.js.map +1 -0
  247. package/dist/db-ux/{p-b4eefd78.entry.js → p-b8250e4a.entry.js} +2 -2
  248. package/dist/db-ux/{p-b4eefd78.entry.js.map → p-b8250e4a.entry.js.map} +1 -1
  249. package/dist/db-ux/p-c1e84446.entry.js +2 -0
  250. package/dist/db-ux/{p-2f695fb2.entry.js.map → p-c1e84446.entry.js.map} +1 -1
  251. package/dist/db-ux/p-d8fa16c3.entry.js +2 -0
  252. package/dist/db-ux/p-d8fa16c3.entry.js.map +1 -0
  253. package/dist/db-ux/p-da8fcf7f.entry.js +2 -0
  254. package/dist/db-ux/{p-b2886d1c.entry.js.map → p-da8fcf7f.entry.js.map} +1 -1
  255. package/dist/db-ux/{p-e6f5c82d.entry.js → p-e1893e40.entry.js} +2 -2
  256. package/dist/db-ux/{p-e6f5c82d.entry.js.map → p-e1893e40.entry.js.map} +1 -1
  257. package/dist/db-ux/p-e7905599.entry.js +2 -0
  258. package/dist/db-ux/p-e7905599.entry.js.map +1 -0
  259. package/dist/db-ux/p-f9804215.entry.js +2 -0
  260. package/dist/db-ux/{p-0d08f973.entry.js.map → p-f9804215.entry.js.map} +1 -1
  261. package/dist/db-ux/p-fa671633.entry.js +2 -0
  262. package/dist/db-ux/p-fa671633.entry.js.map +1 -0
  263. package/dist/db-ux/p-fd672c12.entry.js +2 -0
  264. package/dist/db-ux/p-fd672c12.entry.js.map +1 -0
  265. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  266. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  267. package/dist/esm/{constants-745cf8d7.js → constants-CNj9Jn9q.js} +2 -1
  268. package/dist/{db-ux/p-af3834b6.js.map → esm/constants-CNj9Jn9q.js.map} +1 -1
  269. package/dist/esm/db-accordion-item.entry.js +5 -4
  270. package/dist/esm/db-accordion-item.entry.js.map +1 -1
  271. package/dist/esm/db-accordion.entry.js +39 -12
  272. package/dist/esm/db-accordion.entry.js.map +1 -1
  273. package/dist/esm/db-badge.entry.js +18 -9
  274. package/dist/esm/db-badge.entry.js.map +1 -1
  275. package/dist/esm/db-brand.entry.js +4 -3
  276. package/dist/esm/db-brand.entry.js.map +1 -1
  277. package/dist/esm/db-button.entry.js +4 -3
  278. package/dist/esm/db-button.entry.js.map +1 -1
  279. package/dist/esm/db-card.entry.js +4 -3
  280. package/dist/esm/db-card.entry.js.map +1 -1
  281. package/dist/esm/db-checkbox.entry.js +43 -19
  282. package/dist/esm/db-checkbox.entry.js.map +1 -1
  283. package/dist/esm/db-divider.entry.js +3 -2
  284. package/dist/esm/db-divider.entry.js.map +1 -1
  285. package/dist/esm/db-drawer.entry.js +18 -10
  286. package/dist/esm/db-drawer.entry.js.map +1 -1
  287. package/dist/esm/db-header.entry.js +21 -13
  288. package/dist/esm/db-header.entry.js.map +1 -1
  289. package/dist/esm/db-icon.entry.js +3 -2
  290. package/dist/esm/db-icon.entry.js.map +1 -1
  291. package/dist/esm/db-infotext.entry.js +3 -2
  292. package/dist/esm/db-infotext.entry.js.map +1 -1
  293. package/dist/esm/db-input.entry.js +35 -20
  294. package/dist/esm/db-input.entry.js.map +1 -1
  295. package/dist/esm/db-link.entry.js +4 -3
  296. package/dist/esm/db-link.entry.js.map +1 -1
  297. package/dist/esm/db-navigation-item.entry.js +36 -12
  298. package/dist/esm/db-navigation-item.entry.js.map +1 -1
  299. package/dist/esm/db-navigation.entry.js +4 -3
  300. package/dist/esm/db-navigation.entry.js.map +1 -1
  301. package/dist/esm/db-notification.entry.js +5 -4
  302. package/dist/esm/db-notification.entry.js.map +1 -1
  303. package/dist/esm/db-page.entry.js +5 -4
  304. package/dist/esm/db-page.entry.js.map +1 -1
  305. package/dist/esm/db-popover.entry.js +25 -9
  306. package/dist/esm/db-popover.entry.js.map +1 -1
  307. package/dist/esm/db-radio.entry.js +21 -11
  308. package/dist/esm/db-radio.entry.js.map +1 -1
  309. package/dist/esm/db-section.entry.js +4 -3
  310. package/dist/esm/db-section.entry.js.map +1 -1
  311. package/dist/esm/db-select.entry.js +39 -23
  312. package/dist/esm/db-select.entry.js.map +1 -1
  313. package/dist/esm/db-stack.entry.js +3 -2
  314. package/dist/esm/db-stack.entry.js.map +1 -1
  315. package/dist/esm/db-switch.entry.js +19 -11
  316. package/dist/esm/db-switch.entry.js.map +1 -1
  317. package/dist/esm/db-tab-item.db-tab-list.db-tab-panel.entry.js.map +1 -0
  318. package/dist/esm/db-tab-item_3.entry.js +20 -11
  319. package/dist/esm/db-tab-item_3.entry.js.map +1 -1
  320. package/dist/esm/db-tabs.entry.js +22 -13
  321. package/dist/esm/db-tabs.entry.js.map +1 -1
  322. package/dist/esm/db-tag.entry.js +19 -9
  323. package/dist/esm/db-tag.entry.js.map +1 -1
  324. package/dist/esm/db-textarea.entry.js +34 -19
  325. package/dist/esm/db-textarea.entry.js.map +1 -1
  326. package/dist/esm/db-tooltip.entry.js +20 -11
  327. package/dist/esm/db-tooltip.entry.js.map +1 -1
  328. package/dist/esm/db-ux.js +7 -5
  329. package/dist/esm/db-ux.js.map +1 -1
  330. package/dist/esm/{index-7d31752e.js → index-BJJmGwiD.js} +2 -1
  331. package/dist/esm/index-BJJmGwiD.js.map +1 -0
  332. package/dist/esm/{index-5be50117.js → index-D-D8lQAG.js} +221 -120
  333. package/dist/esm/index-D-D8lQAG.js.map +1 -0
  334. package/dist/esm/index.js +5 -4
  335. package/dist/esm/index.js.map +1 -1
  336. package/dist/esm/loader.js +5 -4
  337. package/dist/esm/loader.js.map +1 -1
  338. package/dist/esm/{navigation-09e3ace3.js → navigation-Dg9V7r8H.js} +3 -2
  339. package/dist/esm/navigation-Dg9V7r8H.js.map +1 -0
  340. package/dist/types/components/accordion/accordion.d.ts +6 -1
  341. package/dist/types/components/badge/badge.d.ts +2 -1
  342. package/dist/types/components/checkbox/checkbox.d.ts +6 -1
  343. package/dist/types/components/drawer/drawer.d.ts +2 -1
  344. package/dist/types/components/header/header.d.ts +2 -1
  345. package/dist/types/components/input/input.d.ts +4 -1
  346. package/dist/types/components/navigation-item/model.d.ts +3 -2
  347. package/dist/types/components/navigation-item/navigation-item.d.ts +6 -1
  348. package/dist/types/components/page/model.d.ts +4 -0
  349. package/dist/types/components/page/page.d.ts +1 -0
  350. package/dist/types/components/popover/popover.d.ts +4 -1
  351. package/dist/types/components/radio/radio.d.ts +2 -1
  352. package/dist/types/components/select/select.d.ts +4 -1
  353. package/dist/types/components/switch/switch.d.ts +2 -1
  354. package/dist/types/components/tab-item/tab-item.d.ts +2 -1
  355. package/dist/types/components/tabs/tabs.d.ts +2 -1
  356. package/dist/types/components/tag/tag.d.ts +2 -1
  357. package/dist/types/components/textarea/textarea.d.ts +4 -1
  358. package/dist/types/components/tooltip/tooltip.d.ts +2 -1
  359. package/dist/types/components.d.ts +2 -0
  360. package/dist/types/shared/model.d.ts +5 -5
  361. package/dist/types/stencil-public-runtime.d.ts +1 -0
  362. package/dist/vscode.html-custom-data.json +19 -14
  363. package/dist/web-types.json +90 -79
  364. package/package.json +5 -5
  365. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  366. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  367. package/dist/cjs/constants-89822e5f.js.map +0 -1
  368. package/dist/cjs/index-3d093f06.js.map +0 -1
  369. package/dist/cjs/index-403366c7.js.map +0 -1
  370. package/dist/cjs/navigation-5586b826.js.map +0 -1
  371. package/dist/db-ux/p-0983e297.entry.js +0 -2
  372. package/dist/db-ux/p-0983e297.entry.js.map +0 -1
  373. package/dist/db-ux/p-0cdf053e.js.map +0 -1
  374. package/dist/db-ux/p-0d08f973.entry.js +0 -2
  375. package/dist/db-ux/p-123cb839.entry.js +0 -2
  376. package/dist/db-ux/p-123cb839.entry.js.map +0 -1
  377. package/dist/db-ux/p-1665a1f6.entry.js +0 -2
  378. package/dist/db-ux/p-1efdd41a.entry.js +0 -2
  379. package/dist/db-ux/p-1efdd41a.entry.js.map +0 -1
  380. package/dist/db-ux/p-1feee149.js +0 -3
  381. package/dist/db-ux/p-1feee149.js.map +0 -1
  382. package/dist/db-ux/p-223b1031.entry.js +0 -2
  383. package/dist/db-ux/p-223b1031.entry.js.map +0 -1
  384. package/dist/db-ux/p-2f695fb2.entry.js +0 -2
  385. package/dist/db-ux/p-300fb4ff.entry.js +0 -2
  386. package/dist/db-ux/p-3958b712.entry.js +0 -2
  387. package/dist/db-ux/p-3958b712.entry.js.map +0 -1
  388. package/dist/db-ux/p-398c72a6.entry.js +0 -2
  389. package/dist/db-ux/p-398c72a6.entry.js.map +0 -1
  390. package/dist/db-ux/p-45bb9feb.js.map +0 -1
  391. package/dist/db-ux/p-5c1b65ac.entry.js +0 -2
  392. package/dist/db-ux/p-69948f78.entry.js +0 -2
  393. package/dist/db-ux/p-69948f78.entry.js.map +0 -1
  394. package/dist/db-ux/p-8d9ef330.entry.js +0 -2
  395. package/dist/db-ux/p-8d9ef330.entry.js.map +0 -1
  396. package/dist/db-ux/p-90caefe4.entry.js +0 -2
  397. package/dist/db-ux/p-90caefe4.entry.js.map +0 -1
  398. package/dist/db-ux/p-95e59a69.entry.js +0 -2
  399. package/dist/db-ux/p-ab783af4.entry.js +0 -2
  400. package/dist/db-ux/p-ab783af4.entry.js.map +0 -1
  401. package/dist/db-ux/p-b0b04684.entry.js +0 -2
  402. package/dist/db-ux/p-b0b04684.entry.js.map +0 -1
  403. package/dist/db-ux/p-b2886d1c.entry.js +0 -2
  404. package/dist/db-ux/p-c367b891.entry.js +0 -2
  405. package/dist/db-ux/p-c367b891.entry.js.map +0 -1
  406. package/dist/db-ux/p-cf22eaea.entry.js +0 -2
  407. package/dist/db-ux/p-e1255160.js +0 -2
  408. package/dist/db-ux/p-e1255160.js.map +0 -1
  409. package/dist/db-ux/p-e1788dce.entry.js +0 -2
  410. package/dist/db-ux/p-e1788dce.entry.js.map +0 -1
  411. package/dist/db-ux/p-e24051a3.entry.js +0 -2
  412. package/dist/db-ux/p-e24051a3.entry.js.map +0 -1
  413. package/dist/db-ux/p-f3251c56.entry.js +0 -2
  414. package/dist/db-ux/p-f3251c56.entry.js.map +0 -1
  415. package/dist/db-ux/p-f78c8591.entry.js +0 -2
  416. package/dist/db-ux/p-f78c8591.entry.js.map +0 -1
  417. package/dist/db-ux/p-fa9a7966.entry.js +0 -2
  418. package/dist/db-ux/p-fa9a7966.entry.js.map +0 -1
  419. package/dist/esm/app-globals-0f993ce5.js +0 -5
  420. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  421. package/dist/esm/constants-745cf8d7.js.map +0 -1
  422. package/dist/esm/index-5be50117.js.map +0 -1
  423. package/dist/esm/index-7d31752e.js.map +0 -1
  424. package/dist/esm/navigation-09e3ace3.js.map +0 -1
  425. package/dist/loader/package.json +0 -11
@@ -1,11 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('./index-3d093f06.js');
6
- const constants = require('./constants-89822e5f.js');
7
- const index = require('./index-403366c7.js');
8
- const navigation = require('./navigation-5586b826.js');
3
+ require('./index-DBEtsnky.js');
4
+ var constants = require('./constants-C75d4JiJ.js');
5
+ var index = require('./index-sPDBdc1s.js');
6
+ var navigation = require('./navigation-l4Ce-Ems.js');
9
7
 
10
8
  /* eslint-disable @typescript-eslint/no-explicit-any */
11
9
  const SemanticList = ['adaptive', 'neutral', 'critical', 'informational', 'warning', 'successful'];
@@ -29,20 +27,16 @@ const LinkTargetList = ['_self', '_blank', '_parent', '_top'];
29
27
  const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'];
30
28
  const AlignmentList = ['start', 'center'];
31
29
 
32
- Object.defineProperty(exports, 'COLOR', {
30
+ Object.defineProperty(exports, "COLOR", {
33
31
  enumerable: true,
34
- get: function () {
35
- return constants.COLOR;
36
- }
32
+ get: function () { return constants.COLOR; }
37
33
  });
38
34
  exports.COLORS = constants.COLORS;
39
35
  exports.COLORS_SIMPLE = constants.COLORS_SIMPLE;
40
36
  exports.COLOR_CONST = constants.COLOR_CONST;
41
- Object.defineProperty(exports, 'COLOR_SIMPLE', {
37
+ Object.defineProperty(exports, "COLOR_SIMPLE", {
42
38
  enumerable: true,
43
- get: function () {
44
- return constants.COLOR_SIMPLE;
45
- }
39
+ get: function () { return constants.COLOR_SIMPLE; }
46
40
  });
47
41
  exports.DEFAULT_BACK = constants.DEFAULT_BACK;
48
42
  exports.DEFAULT_BURGER_MENU = constants.DEFAULT_BURGER_MENU;
@@ -61,19 +55,15 @@ exports.DEFAULT_VALID_MESSAGE = constants.DEFAULT_VALID_MESSAGE;
61
55
  exports.DEFAULT_VALID_MESSAGE_ID_SUFFIX = constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
62
56
  exports.DEFAULT_VIEWPORT = constants.DEFAULT_VIEWPORT;
63
57
  exports.DENSITIES = constants.DENSITIES;
64
- Object.defineProperty(exports, 'DENSITY', {
58
+ Object.defineProperty(exports, "DENSITY", {
65
59
  enumerable: true,
66
- get: function () {
67
- return constants.DENSITY;
68
- }
60
+ get: function () { return constants.DENSITY; }
69
61
  });
70
62
  exports.DENSITY_CONST = constants.DENSITY_CONST;
71
63
  exports.DESKTOP_VIEWPORT = constants.DESKTOP_VIEWPORT;
72
- Object.defineProperty(exports, 'SEMANTIC', {
64
+ Object.defineProperty(exports, "SEMANTIC", {
73
65
  enumerable: true,
74
- get: function () {
75
- return constants.SEMANTIC;
76
- }
66
+ get: function () { return constants.SEMANTIC; }
77
67
  });
78
68
  exports.SEMANTICS = constants.SEMANTICS;
79
69
  exports.TESTING_VIEWPORTS = constants.TESTING_VIEWPORTS;
@@ -112,5 +102,6 @@ exports.SpacingList = SpacingList;
112
102
  exports.TagEmphasisList = TagEmphasisList;
113
103
  exports.ValidationList = ValidationList;
114
104
  exports.WidthList = WidthList;
105
+ //# sourceMappingURL=index.cjs.js.map
115
106
 
116
107
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"file":"index.cjs.js","mappings":";;;;;;;;;AAAA;MAsCa,YAAY,GAAI,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY,EAAY;MA2BxG,WAAW,GAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAY;MAQ9D,UAAU,GAAI,CAAC,QAAQ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AAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAY;MA0Dn1B,eAAe,GAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAY;MAE3F,cAAc,GAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAY;MAEnE,sBAAsB,GAAI,CAAC,aAAa,EAAE,4BAA4B,EAAE,QAAQ,EAAE,0BAA0B,EAAE,aAAa,EAAE,eAAe,EAAE,iCAAiC,EAAE,YAAY,EAAY;MA6EzM,aAAa,GAAI,CAAC,OAAO,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/shared/model.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { IconTypes } from '@db-ux/core-foundations';\nexport type GlobalProps = {\n /**\n * default slot\n */\n\n children?: any;\n\n /**\n * React specific for adding className to the component.\n */\n className?: string;\n\n /**\n * Workaround for TypeScript using class for all components.\n */\n class?: string | any;\n\n /**\n * [`aria-describedby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby) is used to link to the elements that describe the element with the set attribute.\n */\n describedbyid?: string;\n\n /**\n * [ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.\n */\n id?: string;\n\n /**\n * Before using please check for the [accessibility concerns](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns)\n */\n autofocus?: boolean;\n};\nexport type GlobalState = {\n _id?: string;\n};\nexport const SemanticList = (['adaptive', 'neutral', 'critical', 'informational', 'warning', 'successful'] as const);\nexport type SemanticType = (typeof SemanticList)[number];\nexport type SemanticProps = {\n /**\n * The semantic defines the default variants for most components.\n */\n semantic?: SemanticType;\n};\nexport type IconProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n icon?: IconTypes;\n};\nexport type ShowIconProps = {\n /**\n * Enables or disables the visibility of the icon. The default value depends on the component.\n * For many components this property is optional to reflect Figma properties.\n */\n showIcon?: boolean;\n};\nexport type IconAfterProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n iconAfter?: IconTypes;\n};\nexport const SpacingList = (['medium', 'small', 'large', 'none'] as const);\nexport type SpacingType = (typeof SpacingList)[number];\nexport type SpacingProps = {\n /**\n * The spacing attribute changes the padding of the component.\n */\n spacing?: SpacingType;\n};\nexport const MarginList = (['medium', 'small', 'large', 'none'] as const);\nexport type MarginType = (typeof MarginList)[number];\nexport type MarginProps = {\n /**\n * The margin attribute changes the margin of the component.\n */\n margin?: MarginType;\n};\nexport const PlacementList = (['left', 'right', 'top', 'bottom', 'left-start', 'left-end', 'right-start', 'right-end', 'top-start', 'top-end', 'bottom-start', 'bottom-end'] as const);\nexport type PlacementType = (typeof PlacementList)[number];\nexport type PlacementProps = {\n /**\n * The `placement` attributes values change the position to absolute and adds a transform based on the placement.\n */\n placement?: PlacementType;\n};\nexport type NavigationBehaviorState = {\n handleNavigationItemClick: (event: unknown) => void;\n};\nexport type GapProps = {\n /**\n * If the absolute element should have a gap between the parent element.\n */\n gap?: boolean;\n};\nexport const GapSpacingList = (['none', '3x-large', '2x-large', 'x-large', 'large', 'medium', 'small', 'x-small', '2x-small', '3x-small'] as const);\nexport type GapSpacingType = (typeof GapSpacingList)[number];\nexport type GapSpacingProps = {\n /**\n * Set the gap/spacing between elements\n */\n gap?: GapSpacingType;\n};\nexport type OverflowProps = {\n /**\n * The overflow attribute sets a max-width and longer text will be dotted.\n */\n overflow?: boolean;\n};\nexport const OrientationList = (['horizontal', 'vertical'] as const);\nexport type OrientationType = (typeof OrientationList)[number];\nexport type OrientationProps = {\n /**\n * Change the orientation. Defaults to horizontal.\n */\n orientation?: OrientationType;\n};\nexport const WidthList = (['full', 'auto'] as const);\nexport type WidthType = (typeof WidthList)[number];\nexport type WidthProps = {\n /**\n * Width of the component. Auto width based on children size, full width based on parent elements width.\n */\n width?: WidthType;\n};\nexport const MaxWidthList = (['full', 'medium', 'large', 'small'] as const);\nexport type MaxWidthType = (typeof MaxWidthList)[number];\nexport type ContainerWidthProps = {\n /**\n * Set max width for the component\n */\n width?: MaxWidthType;\n};\nexport const PopoverDelayList = (['none', 'slow', 'fast'] as const);\nexport type PopoverDelayType = (typeof PopoverDelayList)[number];\nexport const PopoverWidthList = (['auto', 'fixed'] as const);\nexport type PopoverWidthType = (typeof PopoverWidthList)[number];\nexport type PopoverProps = {\n /**\n * Add a delay before showing the tooltip\n */\n delay?: PopoverDelayType;\n /**\n * Disable animation\n */\n animation?: boolean;\n /**\n * Use fixed with for default max-width\n */\n width?: PopoverWidthType;\n};\nexport type PopoverState = {\n handleAutoPlacement: () => void;\n};\nexport type ContentSlotProps = {\n /**\n * Default slot which is used to pass in additional content.\n */\n content?: any;\n};\nexport const SizeList = (['small', 'medium'] as const);\nexport type SizeType = (typeof SizeList)[number];\nexport type SizeProps = {\n /**\n * The size attribute changes the font-size and other related sizes of the component.\n */\n size?: SizeType;\n};\nexport const EmphasisList = (['weak', 'strong'] as const);\nexport type EmphasisType = (typeof EmphasisList)[number];\nexport type EmphasisProps = {\n /**\n * The emphasis attribute divides in between a weak or strong importance.\n */\n emphasis?: EmphasisType;\n};\nexport const TagEmphasisList = ([...EmphasisList, 'origin'] as const);\nexport type TagEmphasisType = (typeof TagEmphasisList)[number];\nexport type TagEmphasisProps = {\n /**\n * The emphasis attribute divides in between a weak, strong or origin appearance.\n */\n emphasis?: TagEmphasisType;\n};\nexport const ValidationList = (['invalid', 'valid', 'no-validation'] as const);\nexport type ValidationType = (typeof ValidationList)[number];\nexport type FormProps = {\n /**\n * Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.\n */\n validation?: ValidationType;\n /**\n * The disabled attribute can be set to keep a user from clicking on the form element.\n */\n disabled?: boolean;\n /**\n * \tAssociates the control with a form element\n */\n form?: string;\n\n /**\n * The label attribute specifies the caption of the form element.\n */\n label?: string;\n\n /**\n * The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.\n */\n name?: string;\n\n /**\n * When the required attribute specified, the user will be required to fill the form element before submitting the form.\n */\n required?: boolean;\n /**\n * Enables/disables the visibility of the label\n */\n showLabel?: boolean;\n /**\n * The value property is to receive results from the native form element.\n */\n value?: any;\n};\nexport type FormTextProps = {\n /**\n * Maximum length (number of characters) of value\n */\n maxLength?: number;\n /**\n * Minimum length (number of characters) of value\n */\n minLength?: number;\n /**\n * The disabled attribute can be set to keep a user from edit on the form element\n */\n readOnly?: boolean;\n};\nexport type FormSizeProps = {\n /**\n * Size of the control\n */\n size?: number;\n};\nexport type FormCheckProps = {\n /**\n * Define the radio or checkbox elements checked state\n */\n checked?: boolean;\n};\nexport const LabelVariantList = (['above', 'floating'] as const);\nexport type LabelVariantType = (typeof LabelVariantList)[number];\nexport const AutoCompleteList = (['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'] as const);\nexport type AutoCompleteType = (typeof AutoCompleteList)[number];\nexport type FormMessageProps = {\n /**\n * Change the variant of the label to float or hidden\n */\n variant?: LabelVariantType;\n /**\n * Text that appears in the form control when it has no value set\n */\n placeholder?: string;\n /**\n * Optional helper message for form components\n */\n message?: string;\n\n /**\n * Helper message for valid form components\n */\n validMessage?: string;\n\n /**\n * Helper message for invalid form components\n */\n invalidMessage?: string;\n\n /**\n * Set/overwrite icon for helper message for form components\n */\n messageIcon?: IconTypes;\n\n /**\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\n */\n autocomplete?: string | AutoCompleteType;\n\n /**\n * Enables or disables the visibility of the message.\n */\n showMessage?: boolean;\n};\nexport type FormState = {\n _messageId?: string;\n _validMessageId?: string;\n _invalidMessageId?: string;\n _descByIds?: string;\n _value?: string;\n\n /**\n * https://www.davidmacd.com/blog/test-aria-describedby-errormessage-aria-live.html\n * Currently VoiceOver isn't supporting changes from aria-describedby.\n * This is an internal Fallback\n */\n _voiceOverFallback?: string;\n};\nexport type InitializedState = {\n initialized: boolean;\n};\nexport const LinkCurrentList = (['time', 'true', 'false', 'date', 'page', 'step', 'location'] as const);\nexport type LinkCurrentType = (typeof LinkCurrentList)[number];\nexport const LinkTargetList = (['_self', '_blank', '_parent', '_top'] as const);\nexport type LinkTargetType = (typeof LinkTargetList)[number];\nexport const LinkReferrerPolicyList = (['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] as const);\nexport type LinkReferrerPolicyType = (typeof LinkReferrerPolicyList)[number];\nexport type LinkProps = {\n /**\n * Sets aria attribute based on [`aria-current`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current).\n */\n current?: boolean | LinkCurrentType;\n /**\n * Disables the link.\n */\n disabled?: boolean;\n /**\n * The [URL that the hyperlink points to](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href).\n */\n href?: string;\n /**\n * Hints for the human [language of the linked page or document](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#hreflang).\n */\n hreflang?: string;\n /**\n * Sets aria attribute based on [`aria-label`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label).\n */\n label?: string;\n /**\n * Where to open the linked URL, as the name for a [browsing context](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).\n */\n target?: LinkTargetType;\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n rel?: string;\n /**\n * Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).\n */\n role?: string;\n /**\n * How much of the referrer to send when following the link.\n */\n referrerpolicy?: LinkReferrerPolicyType;\n /**\n * Sets aria role based on [`aria-selected`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected).\n */\n selected?: boolean;\n};\nexport type TextProps = {\n /**\n * Alternative for default slot/children.\n */\n text?: string;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ClickEvent<T> = MouseEvent;\nexport type ClickEventProps<T> = {\n /**\n * React specific onClick to pass to forward ref.\n */\n onClick?: (event: ClickEvent<T>) => void;\n};\nexport type ClickEventState<T> = {\n handleClick: (event: ClickEvent<T>) => void;\n};\nexport type ToggleEventProps = {\n onToggle?: (open: boolean) => void;\n};\nexport type ToggleEventState<T> = {\n toggle: (event?: ClickEvent<T>) => void;\n};\nexport type CloseEventProps = {\n /**\n * Function to handle button click (close).\n */\n onClose?: (event?: any) => void;\n};\nexport type CloseEventState = {\n handleClose: (event: any) => void;\n};\nexport const AlignmentList = (['start', 'center'] as const);\nexport type AlignmentType = (typeof AlignmentList)[number];\nexport type AlignmentProps = {\n /**\n * Define the content alignment in full width\n */\n alignment?: AlignmentType;\n};\nexport type ActiveProps = {\n /**\n * If the tab is checked/active.\n */\n active?: boolean;\n};\nexport type InputEvent<T> = Event;\nexport type InputEventProps<T> = {\n input?: (event: InputEvent<T>) => void;\n onInput?: (event: InputEvent<T>) => void;\n};\nexport type InputEventState<T> = {\n handleInput: (event: InputEvent<T>) => void;\n};\nexport type ChangeEvent<T> = Event;\nexport type ChangeEventProps<T> = {\n change?: (event: ChangeEvent<T>) => void;\n onChange?: (event: ChangeEvent<T>) => void;\n};\nexport type ChangeEventState<T> = {\n handleChange: (event: ChangeEvent<T>) => void;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type InteractionEvent<T> = FocusEvent;\nexport type FocusEventProps<T> = {\n blur?: (event: InteractionEvent<T>) => void;\n onBlur?: (event: InteractionEvent<T>) => void;\n focus?: (event: InteractionEvent<T>) => void;\n onFocus?: (event: InteractionEvent<T>) => void;\n};\nexport type FocusEventState<T> = {\n handleBlur: (event: InteractionEvent<T>) => void;\n handleFocus: (event: InteractionEvent<T>) => void;\n};\nexport type InnerCloseButtonProps = {\n /**\n * The closeButtonId attribute changes the id inside the close button.\n */\n closeButtonId?: string;\n /**\n * The closeButtonText attribute changes the text inside the close button.\n */\n closeButtonText?: string;\n};\nexport type NavigationBackButtonProps = {\n /**\n * The backButtonId attribute changes the id inside the back button.\n */\n backButtonId?: string;\n /**\n * The backButtonText attribute changes the text inside the back button.\n */\n backButtonText?: string;\n};\nexport type AriaLabelledByProps = {\n /**\n * Pass aria-labelledby to inner element\n */\n labelledBy?: string;\n};\nexport type AriaControlsProps = {\n /**\n * Pass aria-controls to inner element\n */\n controls?: string;\n};\nexport type ValueLabelType = {\n value: string;\n label?: string;\n}"],"version":3}
1
+ {"version":3,"file":"index.cjs.js","sources":["src/shared/model.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { IconTypes } from '@db-ux/core-foundations';\nexport type GlobalProps = {\n /**\n * default slot\n */\n\n children?: any;\n\n /**\n * React specific for adding className to the component.\n */\n className?: string;\n\n /**\n * Workaround for TypeScript using class for all components.\n */\n class?: string | any;\n\n /**\n * [`aria-describedby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby) is used to link to the elements that describe the element with the set attribute.\n */\n describedbyid?: string;\n\n /**\n * [ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.\n */\n id?: string;\n\n /**\n * Before using please check for the [accessibility concerns](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns)\n */\n autofocus?: boolean;\n};\nexport type GlobalState = {\n _id?: string;\n};\nexport const SemanticList = ['adaptive', 'neutral', 'critical', 'informational', 'warning', 'successful'] as const;\nexport type SemanticType = (typeof SemanticList)[number];\nexport type SemanticProps = {\n /**\n * The semantic defines the default variants for most components.\n */\n semantic?: SemanticType;\n};\nexport type IconProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n icon?: IconTypes;\n};\nexport type ShowIconProps = {\n /**\n * Enables or disables the visibility of the icon. The default value depends on the component.\n * For many components this property is optional to reflect Figma properties.\n */\n showIcon?: boolean;\n};\nexport type IconAfterProps = {\n /**\n * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.\n */\n iconAfter?: IconTypes;\n};\nexport const SpacingList = ['medium', 'small', 'large', 'none'] as const;\nexport type SpacingType = (typeof SpacingList)[number];\nexport type SpacingProps = {\n /**\n * The spacing attribute changes the padding of the component.\n */\n spacing?: SpacingType | string;\n};\nexport const MarginList = ['medium', 'small', 'large', 'none'] as const;\nexport type MarginType = (typeof MarginList)[number];\nexport type MarginProps = {\n /**\n * The margin attribute changes the margin of the component.\n */\n margin?: MarginType;\n};\nexport const PlacementList = ['left', 'right', 'top', 'bottom', 'left-start', 'left-end', 'right-start', 'right-end', 'top-start', 'top-end', 'bottom-start', 'bottom-end'] as const;\nexport type PlacementType = (typeof PlacementList)[number];\nexport type PlacementProps = {\n /**\n * The `placement` attributes values change the position to absolute and adds a transform based on the placement.\n */\n placement?: PlacementType;\n};\nexport type NavigationBehaviorState = {\n handleNavigationItemClick: (event: unknown) => void;\n};\nexport type GapProps = {\n /**\n * If the absolute element should have a gap between the parent element.\n */\n gap?: boolean;\n};\nexport const GapSpacingList = ['none', '3x-large', '2x-large', 'x-large', 'large', 'medium', 'small', 'x-small', '2x-small', '3x-small'] as const;\nexport type GapSpacingType = (typeof GapSpacingList)[number];\nexport type GapSpacingProps = {\n /**\n * Set the gap/spacing between elements\n */\n gap?: GapSpacingType;\n};\nexport type OverflowProps = {\n /**\n * The overflow attribute sets a max-width and longer text will be dotted.\n */\n overflow?: boolean;\n};\nexport const OrientationList = ['horizontal', 'vertical'] as const;\nexport type OrientationType = (typeof OrientationList)[number];\nexport type OrientationProps = {\n /**\n * Change the orientation. Defaults to horizontal.\n */\n orientation?: OrientationType;\n};\nexport const WidthList = ['full', 'auto'] as const;\nexport type WidthType = (typeof WidthList)[number];\nexport type WidthProps = {\n /**\n * Width of the component. Auto width based on children size, full width based on parent elements width.\n */\n width?: WidthType | string;\n};\nexport const MaxWidthList = ['full', 'medium', 'large', 'small'] as const;\nexport type MaxWidthType = (typeof MaxWidthList)[number];\nexport type ContainerWidthProps = {\n /**\n * Set max width for the component\n */\n width?: MaxWidthType;\n};\nexport const PopoverDelayList = ['none', 'slow', 'fast'] as const;\nexport type PopoverDelayType = (typeof PopoverDelayList)[number];\nexport const PopoverWidthList = ['auto', 'fixed'] as const;\nexport type PopoverWidthType = (typeof PopoverWidthList)[number];\nexport type PopoverProps = {\n /**\n * Add a delay before showing the tooltip\n */\n delay?: PopoverDelayType;\n /**\n * Disable animation\n */\n animation?: boolean;\n /**\n * Use fixed with for default max-width\n */\n width?: PopoverWidthType;\n};\nexport type PopoverState = {\n handleAutoPlacement: () => void;\n};\nexport type ContentSlotProps = {\n /**\n * Default slot which is used to pass in additional content.\n */\n content?: any;\n};\nexport const SizeList = ['small', 'medium'] as const;\nexport type SizeType = (typeof SizeList)[number];\nexport type SizeProps = {\n /**\n * The size attribute changes the font-size and other related sizes of the component.\n */\n size?: SizeType;\n};\nexport const EmphasisList = ['weak', 'strong'] as const;\nexport type EmphasisType = (typeof EmphasisList)[number];\nexport type EmphasisProps = {\n /**\n * The emphasis attribute divides in between a weak or strong importance.\n */\n emphasis?: EmphasisType;\n};\nexport const TagEmphasisList = [...EmphasisList, 'origin'] as const;\nexport type TagEmphasisType = (typeof TagEmphasisList)[number];\nexport type TagEmphasisProps = {\n /**\n * The emphasis attribute divides in between a weak, strong or origin appearance.\n */\n emphasis?: TagEmphasisType;\n};\nexport const ValidationList = ['invalid', 'valid', 'no-validation'] as const;\nexport type ValidationType = (typeof ValidationList)[number];\nexport type FormProps = {\n /**\n * Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.\n */\n validation?: ValidationType;\n /**\n * The disabled attribute can be set to keep a user from clicking on the form element.\n */\n disabled?: boolean;\n /**\n * \tAssociates the control with a form element\n */\n form?: string;\n\n /**\n * The label attribute specifies the caption of the form element.\n */\n label?: string;\n\n /**\n * The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.\n */\n name?: string;\n\n /**\n * When the required attribute specified, the user will be required to fill the form element before submitting the form.\n */\n required?: boolean;\n /**\n * Enables/disables the visibility of the label\n */\n showLabel?: boolean;\n /**\n * The value property is to receive results from the native form element.\n */\n value?: any;\n};\nexport type FormTextProps = {\n /**\n * Maximum length (number of characters) of value\n */\n maxLength?: number;\n /**\n * Minimum length (number of characters) of value\n */\n minLength?: number;\n /**\n * The disabled attribute can be set to keep a user from edit on the form element\n */\n readOnly?: boolean;\n};\nexport type FormSizeProps = {\n /**\n * Size of the control\n */\n size?: number;\n};\nexport type FormCheckProps = {\n /**\n * Define the radio or checkbox elements checked state\n */\n checked?: boolean;\n};\nexport const LabelVariantList = ['above', 'floating'] as const;\nexport type LabelVariantType = (typeof LabelVariantList)[number];\nexport const AutoCompleteList = ['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'] as const;\nexport type AutoCompleteType = (typeof AutoCompleteList)[number];\nexport type FormMessageProps = {\n /**\n * Change the variant of the label to float or hidden\n */\n variant?: LabelVariantType;\n /**\n * Text that appears in the form control when it has no value set\n */\n placeholder?: string;\n /**\n * Optional helper message for form components\n */\n message?: string;\n\n /**\n * Helper message for valid form components\n */\n validMessage?: string;\n\n /**\n * Helper message for invalid form components\n */\n invalidMessage?: string;\n\n /**\n * Set/overwrite icon for helper message for form components\n */\n messageIcon?: IconTypes;\n\n /**\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\n */\n autocomplete?: string | AutoCompleteType;\n\n /**\n * Enables or disables the visibility of the message.\n */\n showMessage?: boolean;\n};\nexport type FormState = {\n _messageId?: string;\n _validMessageId?: string;\n _invalidMessageId?: string;\n _descByIds?: string;\n _value?: string;\n\n /**\n * https://www.davidmacd.com/blog/test-aria-describedby-errormessage-aria-live.html\n * Currently VoiceOver isn't supporting changes from aria-describedby.\n * This is an internal Fallback\n */\n _voiceOverFallback?: string;\n};\nexport type InitializedState = {\n initialized: boolean;\n};\nexport const LinkCurrentList = ['time', 'true', 'false', 'date', 'page', 'step', 'location'] as const;\nexport type LinkCurrentType = (typeof LinkCurrentList)[number];\nexport const LinkTargetList = ['_self', '_blank', '_parent', '_top'] as const;\nexport type LinkTargetType = (typeof LinkTargetList)[number];\nexport const LinkReferrerPolicyList = ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'same-origin', 'strict-origin', 'strict-origin-when-cross-origin', 'unsafe-url'] as const;\nexport type LinkReferrerPolicyType = (typeof LinkReferrerPolicyList)[number];\nexport type LinkProps = {\n /**\n * Sets aria attribute based on [`aria-current`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current).\n */\n current?: boolean | LinkCurrentType;\n /**\n * Disables the link.\n */\n disabled?: boolean;\n /**\n * The [URL that the hyperlink points to](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href).\n */\n href?: string;\n /**\n * Hints for the human [language of the linked page or document](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#hreflang).\n */\n hreflang?: string;\n /**\n * Sets aria attribute based on [`aria-label`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label).\n */\n label?: string;\n /**\n * Where to open the linked URL, as the name for a [browsing context](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).\n */\n target?: LinkTargetType;\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n rel?: string;\n /**\n * Sets aria role based on [`aria-role`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles).\n */\n role?: string;\n /**\n * How much of the referrer to send when following the link.\n */\n referrerpolicy?: LinkReferrerPolicyType;\n /**\n * Sets aria role based on [`aria-selected`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected).\n */\n selected?: boolean;\n};\nexport type TextProps = {\n /**\n * Alternative for default slot/children.\n */\n text?: string;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type ClickEvent<T> = MouseEvent;\nexport type ClickEventProps<T> = {\n /**\n * React specific onClick to pass to forward ref.\n */\n onClick?: (event: ClickEvent<T>) => void;\n};\nexport type ClickEventState<T> = {\n handleClick: (event: ClickEvent<T>) => void;\n};\nexport type ToggleEventProps = {\n onToggle?: (open: boolean) => void;\n};\nexport type ToggleEventState<T> = {\n toggle: (event?: ClickEvent<T>) => void;\n};\nexport type CloseEventProps = {\n /**\n * Function to handle button click (close).\n */\n onClose?: (event?: any) => void;\n};\nexport type CloseEventState = {\n handleClose: (event: any) => void;\n};\nexport const AlignmentList = ['start', 'center'] as const;\nexport type AlignmentType = (typeof AlignmentList)[number];\nexport type AlignmentProps = {\n /**\n * Define the content alignment in full width\n */\n alignment?: AlignmentType | string;\n};\nexport type ActiveProps = {\n /**\n * If the tab is checked/active.\n */\n active?: boolean;\n};\nexport type InputEvent<T> = Event;\nexport type InputEventProps<T> = {\n input?: (event: InputEvent<T>) => void;\n onInput?: (event: InputEvent<T>) => void;\n};\nexport type InputEventState<T> = {\n handleInput: (event: InputEvent<T>) => void;\n};\nexport type ChangeEvent<T> = Event;\nexport type ChangeEventProps<T> = {\n change?: (event: ChangeEvent<T>) => void;\n onChange?: (event: ChangeEvent<T>) => void;\n};\nexport type ChangeEventState<T> = {\n handleChange: (event: ChangeEvent<T>) => void;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type InteractionEvent<T> = FocusEvent;\nexport type FocusEventProps<T> = {\n blur?: (event: InteractionEvent<T>) => void;\n onBlur?: (event: InteractionEvent<T>) => void;\n focus?: (event: InteractionEvent<T>) => void;\n onFocus?: (event: InteractionEvent<T>) => void;\n};\nexport type FocusEventState<T> = {\n handleBlur: (event: InteractionEvent<T>) => void;\n handleFocus: (event: InteractionEvent<T>) => void;\n};\nexport type InnerCloseButtonProps = {\n /**\n * The closeButtonId attribute changes the id inside the close button.\n */\n closeButtonId?: string;\n /**\n * The closeButtonText attribute changes the text inside the close button.\n */\n closeButtonText?: string;\n};\nexport type NavigationBackButtonProps = {\n /**\n * The backButtonId attribute changes the id inside the back button.\n */\n backButtonId?: string;\n /**\n * The backButtonText attribute changes the text inside the back button.\n */\n backButtonText?: string;\n};\nexport type AriaLabelledByProps = {\n /**\n * Pass aria-labelledby to inner element\n */\n labelledBy?: string;\n};\nexport type AriaControlsProps = {\n /**\n * Pass aria-controls to inner element\n */\n controls?: string;\n};\nexport type ValueLabelType = {\n value: string;\n label?: string;\n}"],"names":[],"mappings":";;;;;;;AAAA;AAsCa,MAAA,YAAY,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY;AA2BjG,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM;AAQvD,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM;AAQtD,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY;AAiB7J,MAAA,cAAc,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU;MAc1H,eAAe,GAAG,CAAC,YAAY,EAA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O,EAAE,UAAU;AA0Dt0B,MAAA,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;AAEpF,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM;MAEtD,sBAAsB,GAAG,CAAC,aAAa,EAAE,4BAA4B,EAAE,QAAQ,EAAE,0BAA0B,EAAE,aAAa,EAAE,eAAe,EAAE,iCAAiC,EAAE,YAAY;MA6E5L,aAAa,GAAG,CAAC,OAAO,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,17 +1,16 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-3d093f06.js');
6
- const appGlobals = require('./app-globals-3a1e7e63.js');
3
+ var index = require('./index-DBEtsnky.js');
4
+ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
7
5
 
8
6
  const defineCustomElements = async (win, options) => {
9
7
  if (typeof window === 'undefined') return undefined;
10
8
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["db-tabs.cjs",[[4,"db-tabs",{"id":[1],"name":[1],"arrowScrollDistance":[2,"arrow-scroll-distance"],"orientation":[1],"behavior":[1],"initialSelectedMode":[1,"initial-selected-mode"],"initialSelectedIndex":[2,"initial-selected-index"],"className":[1,"classname"],"alignment":[1],"width":[1],"tabs":[1],"_id":[32],"_name":[32],"initialized":[32],"showScrollLeft":[32],"showScrollRight":[32],"scrollContainer":[32]}]]],["db-header.cjs",[[4,"db-header",{"id":[1],"forceMobile":[4,"force-mobile"],"drawerOpen":[4,"drawer-open"],"className":[1,"classname"],"width":[1],"burgerMenuLabel":[1,"burger-menu-label"],"_id":[32],"initialized":[32],"forcedToMobile":[32]}]]],["db-accordion.cjs",[[4,"db-accordion",{"id":[1],"name":[1],"behavior":[1],"initOpenIndex":[16],"className":[1,"classname"],"variant":[1],"items":[1],"_id":[32],"_name":[32],"initialized":[32],"_initOpenIndexDone":[32]}]]],["db-checkbox.cjs",[[4,"db-checkbox",{"id":[1],"message":[1],"showMessage":[4,"show-message"],"indeterminate":[4],"checked":[4],"change":[16],"validation":[1],"invalidMessage":[1,"invalid-message"],"required":[4],"validMessage":[1,"valid-message"],"blur":[16],"focus":[16],"className":[1,"classname"],"size":[1],"showLabel":[4,"show-label"],"name":[1],"disabled":[4],"value":[8],"label":[1],"messageIcon":[1,"message-icon"],"initialized":[32],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_descByIds":[32],"_voiceOverFallback":[32]}]]],["db-input.cjs",[[4,"db-input",{"id":[1],"dataListId":[1,"data-list-id"],"message":[1],"showMessage":[4,"show-message"],"value":[8],"input":[16],"change":[16],"validation":[1],"invalidMessage":[1,"invalid-message"],"required":[4],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"pattern":[1],"validMessage":[1,"valid-message"],"blur":[16],"focus":[16],"className":[1,"classname"],"variant":[1],"showLabel":[4,"show-label"],"showIcon":[4,"show-icon"],"icon":[1],"iconAfter":[1,"icon-after"],"label":[1],"name":[1],"type":[1],"placeholder":[1],"disabled":[4],"step":[8],"max":[8],"min":[8],"readOnly":[4,"read-only"],"form":[1],"size":[2],"autocomplete":[1],"autofocus":[4],"dataList":[16],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_dataListId":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32]}]]],["db-navigation-item.cjs",[[4,"db-navigation-item",{"subNavigationExpanded":[4,"sub-navigation-expanded"],"id":[1],"className":[1,"classname"],"width":[1],"icon":[1],"showIcon":[4,"show-icon"],"active":[4],"disabled":[4],"text":[1],"backButtonId":[1,"back-button-id"],"backButtonText":[1,"back-button-text"],"initialized":[32],"hasAreaPopup":[32],"hasSubNavigation":[32],"isSubNavigationExpanded":[32],"subNavigationId":[32],"navigationItemSafeTriangle":[32]}]]],["db-notification.cjs",[[4,"db-notification",{"id":[1],"className":[1,"classname"],"ariaLive":[1,"aria-live"],"semantic":[1],"variant":[1],"icon":[1],"showIcon":[4,"show-icon"],"linkVariant":[1,"link-variant"],"headline":[8],"showHeadline":[4,"show-headline"],"text":[1],"timestamp":[1],"showTimestamp":[4,"show-timestamp"],"closeable":[4],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"]}]]],["db-select.cjs",[[4,"db-select",{"id":[1],"message":[1],"showMessage":[4,"show-message"],"value":[8],"input":[16],"change":[16],"validation":[1],"invalidMessage":[1,"invalid-message"],"required":[4],"validMessage":[1,"valid-message"],"blur":[16],"focus":[16],"className":[1,"classname"],"variant":[1],"showLabel":[4,"show-label"],"icon":[1],"showIcon":[4,"show-icon"],"label":[1],"disabled":[4],"name":[1],"size":[2],"autocomplete":[1],"options":[16],"placeholder":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_placeholderId":[32],"_descByIds":[32],"_value":[32],"initialized":[32],"_voiceOverFallback":[32]}]]],["db-textarea.cjs",[[0,"db-textarea",{"id":[1],"message":[1],"showMessage":[4,"show-message"],"value":[8],"input":[16],"change":[16],"validation":[1],"invalidMessage":[1,"invalid-message"],"required":[4],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"validMessage":[1,"valid-message"],"blur":[16],"focus":[16],"className":[1,"classname"],"variant":[1],"showLabel":[4,"show-label"],"label":[1],"resize":[1],"disabled":[4],"readOnly":[4,"read-only"],"form":[1],"name":[1],"wrap":[1],"spellCheck":[4,"spell-check"],"autocomplete":[1],"placeholder":[1],"rows":[2],"cols":[2],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32]}]]],["db-badge.cjs",[[4,"db-badge",{"placement":[1],"id":[1],"className":[1,"classname"],"semantic":[1],"size":[1],"emphasis":[1],"label":[1],"text":[1],"initialized":[32]}]]],["db-brand.cjs",[[4,"db-brand",{"hideLogo":[4,"hide-logo"],"icon":[1],"showIcon":[4,"show-icon"],"id":[1],"className":[1,"classname"],"text":[1]}]]],["db-card.cjs",[[4,"db-card",{"id":[1],"className":[1,"classname"],"behavior":[1],"elevationLevel":[1,"elevation-level"],"spacing":[1]}]]],["db-divider.cjs",[[0,"db-divider",{"id":[1],"margin":[1],"variant":[1],"emphasis":[1],"width":[1],"className":[1,"classname"]}]]],["db-icon.cjs",[[4,"db-icon",{"id":[1],"className":[1,"classname"],"icon":[1],"weight":[1],"variant":[1],"text":[1]}]]],["db-link.cjs",[[4,"db-link",{"id":[1],"className":[1,"classname"],"href":[1],"target":[1],"rel":[1],"role":[1],"hreflang":[1],"disabled":[4],"selected":[4],"label":[1],"current":[8],"size":[1],"showIcon":[4,"show-icon"],"variant":[1],"content":[1],"text":[1]}]]],["db-navigation.cjs",[[4,"db-navigation",{"id":[1],"labelledBy":[1,"labelled-by"],"className":[1,"classname"],"_id":[32]}]]],["db-page.cjs",[[4,"db-page",{"fadeIn":[4,"fade-in"],"documentOverflow":[1,"document-overflow"],"variant":[1],"id":[1],"className":[1,"classname"],"fontsLoaded":[32]}]]],["db-popover.cjs",[[4,"db-popover",{"id":[1],"className":[1,"classname"],"spacing":[1],"gap":[4],"animation":[4],"open":[4],"delay":[1],"width":[1],"placement":[1],"initialized":[32],"isExpanded":[32]}]]],["db-radio.cjs",[[4,"db-radio",{"id":[1],"checked":[4],"change":[16],"blur":[16],"focus":[16],"size":[1],"showLabel":[4,"show-label"],"className":[1,"classname"],"validation":[1],"name":[1],"disabled":[4],"describedbyid":[1],"value":[8],"required":[4],"label":[1],"initialized":[32],"_id":[32]}]]],["db-section.cjs",[[4,"db-section",{"id":[1],"className":[1,"classname"],"spacing":[1],"width":[1],"_id":[32]}]]],["db-stack.cjs",[[4,"db-stack",{"id":[1],"className":[1,"classname"],"gap":[1],"variant":[1],"direction":[1],"alignment":[1],"justifyContent":[1,"justify-content"],"wrap":[4]}]]],["db-switch.cjs",[[4,"db-switch",{"id":[1],"checked":[4],"change":[16],"blur":[16],"focus":[16],"visualAid":[4,"visual-aid"],"size":[1],"showLabel":[4,"show-label"],"emphasis":[1],"className":[1,"classname"],"value":[8],"disabled":[4],"describedbyid":[1],"validation":[1],"name":[1],"required":[4],"icon":[1],"iconAfter":[1,"icon-after"],"label":[1],"_id":[32],"_checked":[32]}]]],["db-tag.cjs",[[4,"db-tag",{"disabled":[4],"removeButton":[1,"remove-button"],"id":[1],"className":[1,"classname"],"semantic":[1],"emphasis":[1],"icon":[1],"showCheckState":[4,"show-check-state"],"showIcon":[4,"show-icon"],"noText":[4,"no-text"],"overflow":[4],"text":[1],"behavior":[1],"initialized":[32]}]]],["db-tooltip.cjs",[[4,"db-tooltip",{"id":[1],"className":[1,"classname"],"emphasis":[1],"animation":[4],"delay":[1],"width":[1],"showArrow":[4,"show-arrow"],"placement":[1],"_id":[32],"initialized":[32]}]]],["db-drawer.cjs",[[4,"db-drawer",{"open":[4],"backdrop":[1],"variant":[1],"id":[1],"className":[1,"classname"],"spacing":[1],"width":[1],"direction":[1],"rounded":[4],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"]}]]],["db-accordion-item.cjs",[[4,"db-accordion-item",{"id":[1],"defaultOpen":[4,"default-open"],"className":[1,"classname"],"disabled":[4],"headlinePlain":[1,"headline-plain"],"text":[1],"_id":[32],"_open":[32]}]]],["db-tab-item_3.cjs",[[4,"db-tab-item",{"active":[4],"change":[16],"className":[1,"classname"],"id":[1],"icon":[1],"iconAfter":[1,"icon-after"],"showIcon":[4,"show-icon"],"noText":[4,"no-text"],"disabled":[4],"controls":[1],"checked":[4],"label":[1],"initialized":[32],"_selected":[32]}],[4,"db-tab-list",{"id":[1],"className":[1,"classname"],"_id":[32]}],[4,"db-tab-panel",{"className":[1,"classname"],"id":[1],"labelledBy":[1,"labelled-by"],"content":[1]}]]],["db-infotext.cjs",[[4,"db-infotext",{"id":[1],"className":[1,"classname"],"icon":[1],"semantic":[1],"size":[1],"showIcon":[4,"show-icon"],"text":[1]}]]],["db-button.cjs",[[4,"db-button",{"id":[1],"className":[1,"classname"],"type":[1],"disabled":[4],"label":[1],"icon":[1],"showIcon":[4,"show-icon"],"size":[1],"state":[1],"width":[1],"variant":[1],"noText":[4,"no-text"],"name":[1],"value":[1],"describedbyid":[1],"ariaexpanded":[4],"ariapressed":[4],"text":[1]}]]]], options);
9
+ return index.bootstrapLazy(JSON.parse("[[\"db-tabs.cjs\",[[4,\"db-tabs\",{\"id\":[1],\"name\":[1],\"arrowScrollDistance\":[2,\"arrow-scroll-distance\"],\"orientation\":[1],\"behavior\":[1],\"initialSelectedMode\":[1,\"initial-selected-mode\"],\"initialSelectedIndex\":[2,\"initial-selected-index\"],\"className\":[1,\"classname\"],\"alignment\":[1],\"width\":[1],\"tabs\":[1],\"_id\":[32],\"_name\":[32],\"initialized\":[32],\"showScrollLeft\":[32],\"showScrollRight\":[32],\"scrollContainer\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-header.cjs\",[[4,\"db-header\",{\"id\":[1],\"forceMobile\":[4,\"force-mobile\"],\"drawerOpen\":[4,\"drawer-open\"],\"className\":[1,\"classname\"],\"width\":[1],\"burgerMenuLabel\":[1,\"burger-menu-label\"],\"_id\":[32],\"initialized\":[32],\"forcedToMobile\":[32]},null,{\"initialized\":[\"watch0\"]}]]],[\"db-accordion.cjs\",[[4,\"db-accordion\",{\"id\":[1],\"name\":[1],\"behavior\":[1],\"initOpenIndex\":[16],\"className\":[1,\"classname\"],\"variant\":[1],\"items\":[1],\"_id\":[32],\"_name\":[32],\"initialized\":[32],\"_initOpenIndexDone\":[32]},null,{\"initialized\":[\"watch0\"],\"name\":[\"watch0\"],\"behavior\":[\"watch0\"],\"_id\":[\"watch0\"],\"_ref\":[\"watch1\",\"watch2\"],\"_name\":[\"watch1\"],\"_initOpenIndexDone\":[\"watch2\"],\"initOpenIndex\":[\"watch2\"]}]]],[\"db-checkbox.cjs\",[[4,\"db-checkbox\",{\"id\":[1],\"message\":[1],\"showMessage\":[4,\"show-message\"],\"indeterminate\":[4],\"checked\":[4],\"change\":[16],\"validation\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"required\":[4],\"validMessage\":[1,\"valid-message\"],\"blur\":[16],\"focus\":[16],\"className\":[1,\"classname\"],\"size\":[1],\"showLabel\":[4,\"show-label\"],\"name\":[1],\"disabled\":[4],\"value\":[8],\"label\":[1],\"messageIcon\":[1,\"message-icon\"],\"initialized\":[32],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_descByIds\":[32],\"_voiceOverFallback\":[32]},null,{\"_id\":[\"watch0\"],\"initialized\":[\"watch1\",\"watch2\"],\"_ref\":[\"watch1\",\"watch2\"],\"indeterminate\":[\"watch1\"],\"checked\":[\"watch2\"]}]]],[\"db-input.cjs\",[[4,\"db-input\",{\"id\":[1],\"dataListId\":[1,\"data-list-id\"],\"message\":[1],\"showMessage\":[4,\"show-message\"],\"value\":[8],\"input\":[16],\"change\":[16],\"validation\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"required\":[4],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"pattern\":[1],\"validMessage\":[1,\"valid-message\"],\"blur\":[16],\"focus\":[16],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[4,\"show-label\"],\"showIcon\":[4,\"show-icon\"],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"label\":[1],\"name\":[1],\"type\":[1],\"placeholder\":[1],\"disabled\":[4],\"step\":[8],\"max\":[8],\"min\":[8],\"readOnly\":[4,\"read-only\"],\"form\":[1],\"size\":[2],\"autocomplete\":[1],\"autofocus\":[4],\"dataList\":[16],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_dataListId\":[32],\"_descByIds\":[32],\"_value\":[32],\"_voiceOverFallback\":[32]},null,{\"_id\":[\"watch0\"],\"value\":[\"watch1\"]}]]],[\"db-navigation-item.cjs\",[[4,\"db-navigation-item\",{\"subNavigationExpanded\":[4,\"sub-navigation-expanded\"],\"id\":[1],\"className\":[1,\"classname\"],\"width\":[1],\"icon\":[1],\"showIcon\":[4,\"show-icon\"],\"active\":[4],\"disabled\":[4],\"text\":[1],\"backButtonId\":[1,\"back-button-id\"],\"backButtonText\":[1,\"back-button-text\"],\"initialized\":[32],\"hasAreaPopup\":[32],\"hasSubNavigation\":[32],\"isSubNavigationExpanded\":[32],\"autoClose\":[32],\"subNavigationId\":[32],\"navigationItemSafeTriangle\":[32]},null,{\"subNavigationExpanded\":[\"watch0\"],\"initialized\":[\"watch1\"]}]]],[\"db-notification.cjs\",[[4,\"db-notification\",{\"id\":[1],\"className\":[1,\"classname\"],\"ariaLive\":[1,\"aria-live\"],\"semantic\":[1],\"variant\":[1],\"icon\":[1],\"showIcon\":[4,\"show-icon\"],\"linkVariant\":[1,\"link-variant\"],\"headline\":[8],\"showHeadline\":[4,\"show-headline\"],\"text\":[1],\"timestamp\":[1],\"showTimestamp\":[4,\"show-timestamp\"],\"closeable\":[4],\"closeButtonId\":[1,\"close-button-id\"],\"closeButtonText\":[1,\"close-button-text\"]}]]],[\"db-select.cjs\",[[4,\"db-select\",{\"id\":[1],\"message\":[1],\"showMessage\":[4,\"show-message\"],\"value\":[8],\"input\":[16],\"change\":[16],\"validation\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"required\":[4],\"validMessage\":[1,\"valid-message\"],\"blur\":[16],\"focus\":[16],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[4,\"show-label\"],\"icon\":[1],\"showIcon\":[4,\"show-icon\"],\"label\":[1],\"disabled\":[4],\"name\":[1],\"size\":[2],\"autocomplete\":[1],\"options\":[16],\"placeholder\":[1],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_placeholderId\":[32],\"_descByIds\":[32],\"_value\":[32],\"initialized\":[32],\"_voiceOverFallback\":[32]},null,{\"_id\":[\"watch0\"],\"initialized\":[\"watch0\"],\"value\":[\"watch1\"]}]]],[\"db-textarea.cjs\",[[0,\"db-textarea\",{\"id\":[1],\"message\":[1],\"showMessage\":[4,\"show-message\"],\"value\":[8],\"input\":[16],\"change\":[16],\"validation\":[1],\"invalidMessage\":[1,\"invalid-message\"],\"required\":[4],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"validMessage\":[1,\"valid-message\"],\"blur\":[16],\"focus\":[16],\"className\":[1,\"classname\"],\"variant\":[1],\"showLabel\":[4,\"show-label\"],\"label\":[1],\"resize\":[1],\"disabled\":[4],\"readOnly\":[4,\"read-only\"],\"form\":[1],\"name\":[1],\"wrap\":[1],\"spellCheck\":[4,\"spell-check\"],\"autocomplete\":[1],\"placeholder\":[1],\"rows\":[2],\"cols\":[2],\"messageIcon\":[1,\"message-icon\"],\"_id\":[32],\"_messageId\":[32],\"_validMessageId\":[32],\"_invalidMessageId\":[32],\"_descByIds\":[32],\"_value\":[32],\"_voiceOverFallback\":[32]},null,{\"_id\":[\"watch0\"],\"value\":[\"watch1\"]}]]],[\"db-badge.cjs\",[[4,\"db-badge\",{\"placement\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"semantic\":[1],\"size\":[1],\"emphasis\":[1],\"label\":[1],\"text\":[1],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-brand.cjs\",[[4,\"db-brand\",{\"hideLogo\":[4,\"hide-logo\"],\"icon\":[1],\"showIcon\":[4,\"show-icon\"],\"id\":[1],\"className\":[1,\"classname\"],\"text\":[1]}]]],[\"db-card.cjs\",[[4,\"db-card\",{\"id\":[1],\"className\":[1,\"classname\"],\"behavior\":[1],\"elevationLevel\":[1,\"elevation-level\"],\"spacing\":[1]}]]],[\"db-divider.cjs\",[[0,\"db-divider\",{\"id\":[1],\"margin\":[1],\"variant\":[1],\"emphasis\":[1],\"width\":[1],\"className\":[1,\"classname\"]}]]],[\"db-icon.cjs\",[[4,\"db-icon\",{\"id\":[1],\"className\":[1,\"classname\"],\"icon\":[1],\"weight\":[1],\"variant\":[1],\"text\":[1]}]]],[\"db-link.cjs\",[[4,\"db-link\",{\"id\":[1],\"className\":[1,\"classname\"],\"href\":[1],\"target\":[1],\"rel\":[1],\"role\":[1],\"hreflang\":[1],\"disabled\":[4],\"selected\":[4],\"label\":[1],\"current\":[8],\"size\":[1],\"showIcon\":[4,\"show-icon\"],\"variant\":[1],\"content\":[1],\"text\":[1]}]]],[\"db-navigation.cjs\",[[4,\"db-navigation\",{\"id\":[1],\"labelledBy\":[1,\"labelled-by\"],\"className\":[1,\"classname\"],\"_id\":[32]}]]],[\"db-page.cjs\",[[4,\"db-page\",{\"fadeIn\":[4,\"fade-in\"],\"documentOverflow\":[1,\"document-overflow\"],\"variant\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"mainClass\":[1,\"main-class\"],\"fontsLoaded\":[32]}]]],[\"db-popover.cjs\",[[4,\"db-popover\",{\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"gap\":[4],\"animation\":[4],\"open\":[4],\"delay\":[1],\"width\":[1],\"placement\":[1],\"initialized\":[32],\"isExpanded\":[32]},null,{\"_ref\":[\"watch0\",\"watch1\"],\"initialized\":[\"watch0\"],\"isExpanded\":[\"watch1\"]}]]],[\"db-radio.cjs\",[[4,\"db-radio\",{\"id\":[1],\"checked\":[4],\"change\":[16],\"blur\":[16],\"focus\":[16],\"size\":[1],\"showLabel\":[4,\"show-label\"],\"className\":[1,\"classname\"],\"validation\":[1],\"name\":[1],\"disabled\":[4],\"describedbyid\":[1],\"value\":[8],\"required\":[4],\"label\":[1],\"initialized\":[32],\"_id\":[32]},null,{\"initialized\":[\"watch0\"],\"_ref\":[\"watch0\"],\"checked\":[\"watch0\"]}]]],[\"db-section.cjs\",[[4,\"db-section\",{\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"width\":[1],\"_id\":[32]}]]],[\"db-stack.cjs\",[[4,\"db-stack\",{\"id\":[1],\"className\":[1,\"classname\"],\"gap\":[1],\"variant\":[1],\"direction\":[1],\"alignment\":[1],\"justifyContent\":[1,\"justify-content\"],\"wrap\":[4]}]]],[\"db-switch.cjs\",[[4,\"db-switch\",{\"id\":[1],\"checked\":[4],\"change\":[16],\"blur\":[16],\"focus\":[16],\"visualAid\":[4,\"visual-aid\"],\"size\":[1],\"showLabel\":[4,\"show-label\"],\"emphasis\":[1],\"className\":[1,\"classname\"],\"value\":[8],\"disabled\":[4],\"describedbyid\":[1],\"validation\":[1],\"name\":[1],\"required\":[4],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"label\":[1],\"_id\":[32],\"_checked\":[32]},null,{\"checked\":[\"watch0\"]}]]],[\"db-tag.cjs\",[[4,\"db-tag\",{\"disabled\":[4],\"removeButton\":[1,\"remove-button\"],\"id\":[1],\"className\":[1,\"classname\"],\"semantic\":[1],\"emphasis\":[1],\"icon\":[1],\"showCheckState\":[4,\"show-check-state\"],\"showIcon\":[4,\"show-icon\"],\"noText\":[4,\"no-text\"],\"overflow\":[4],\"text\":[1],\"behavior\":[1],\"initialized\":[32]},null,{\"initialized\":[\"watch0\"],\"disabled\":[\"watch0\"],\"_ref\":[\"watch0\"]}]]],[\"db-tooltip.cjs\",[[4,\"db-tooltip\",{\"id\":[1],\"className\":[1,\"classname\"],\"emphasis\":[1],\"animation\":[4],\"delay\":[1],\"width\":[1],\"showArrow\":[4,\"show-arrow\"],\"placement\":[1],\"_id\":[32],\"initialized\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}]]],[\"db-drawer.cjs\",[[4,\"db-drawer\",{\"open\":[4],\"backdrop\":[1],\"variant\":[1],\"id\":[1],\"className\":[1,\"classname\"],\"spacing\":[1],\"width\":[1],\"direction\":[1],\"rounded\":[4],\"closeButtonId\":[1,\"close-button-id\"],\"closeButtonText\":[1,\"close-button-text\"]},null,{\"open\":[\"watch0\"]}]]],[\"db-accordion-item.cjs\",[[4,\"db-accordion-item\",{\"id\":[1],\"defaultOpen\":[4,\"default-open\"],\"className\":[1,\"classname\"],\"disabled\":[4],\"headlinePlain\":[1,\"headline-plain\"],\"text\":[1],\"_id\":[32],\"_open\":[32]}]]],[\"db-tab-item_3.cjs\",[[4,\"db-tab-item\",{\"active\":[4],\"change\":[16],\"className\":[1,\"classname\"],\"id\":[1],\"icon\":[1],\"iconAfter\":[1,\"icon-after\"],\"showIcon\":[4,\"show-icon\"],\"noText\":[4,\"no-text\"],\"disabled\":[4],\"controls\":[1],\"checked\":[4],\"label\":[1],\"initialized\":[32],\"_selected\":[32]},null,{\"_ref\":[\"watch0\"],\"initialized\":[\"watch0\"]}],[4,\"db-tab-list\",{\"id\":[1],\"className\":[1,\"classname\"],\"_id\":[32]}],[4,\"db-tab-panel\",{\"className\":[1,\"classname\"],\"id\":[1],\"labelledBy\":[1,\"labelled-by\"],\"content\":[1]}]]],[\"db-infotext.cjs\",[[4,\"db-infotext\",{\"id\":[1],\"className\":[1,\"classname\"],\"icon\":[1],\"semantic\":[1],\"size\":[1],\"showIcon\":[4,\"show-icon\"],\"text\":[1]}]]],[\"db-button.cjs\",[[4,\"db-button\",{\"id\":[1],\"className\":[1,\"classname\"],\"type\":[1],\"disabled\":[4],\"label\":[1],\"icon\":[1],\"showIcon\":[4,\"show-icon\"],\"size\":[1],\"state\":[1],\"width\":[1],\"variant\":[1],\"noText\":[4,\"no-text\"],\"name\":[1],\"value\":[1],\"describedbyid\":[1],\"ariaexpanded\":[4],\"ariapressed\":[4],\"text\":[1]}]]]]"), options);
12
10
  };
13
11
 
14
12
  exports.setNonce = index.setNonce;
15
13
  exports.defineCustomElements = defineCustomElements;
14
+ //# sourceMappingURL=loader.cjs.js.map
16
15
 
17
16
  //# sourceMappingURL=loader.cjs.js.map
@@ -1 +1 @@
1
- {"file":"loader.cjs.js","mappings":";;;;;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS,CAAC;AACtD,EAAE,MAAMA,wBAAa,EAAE,CAAC;AACxB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D;;;;;","names":["globalScripts","bootstrapLazy"],"sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"version":3}
1
+ {"version":3,"file":"loader.cjs.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":["globalScripts","bootstrapLazy"],"mappings":";;;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAMA,wBAAa,EAAE;AACvB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-403366c7.js');
3
+ var index = require('./index-sPDBdc1s.js');
4
4
 
5
5
  const isEventTargetNavigationItem = (event) => {
6
6
  var _a, _b;
@@ -136,5 +136,6 @@ class NavigationItemSafeTriangle {
136
136
 
137
137
  exports.NavigationItemSafeTriangle = NavigationItemSafeTriangle;
138
138
  exports.isEventTargetNavigationItem = isEventTargetNavigationItem;
139
+ //# sourceMappingURL=navigation-l4Ce-Ems.js.map
139
140
 
140
- //# sourceMappingURL=navigation-5586b826.js.map
141
+ //# sourceMappingURL=navigation-l4Ce-Ems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-l4Ce-Ems.js","sources":["src/utils/navigation.ts"],"sourcesContent":["import { handleDataOutside } from './index';\nexport type TriangleData = {\n itemRect: DOMRect;\n parentElementWidth: number;\n subNavigationHeight: number;\n padding: number;\n outsideVX: 'left' | 'right' | undefined;\n outsideVY: 'top' | 'bottom' | undefined;\n};\nexport const isEventTargetNavigationItem = (event: unknown): boolean => {\n const {\n target\n } = event as {\n target: HTMLElement;\n };\n return Boolean(!target?.classList?.contains('db-navigation-item-expand-button') && target?.parentElement?.classList.contains('db-navigation-item'));\n};\nexport class NavigationItemSafeTriangle {\n private readonly element: HTMLElement | null;\n private readonly subNavigation: Element | null;\n private readonly parentSubNavigation: Element | null = null;\n private triangleData?: TriangleData;\n private initialized: boolean = false;\n private mouseX: number = 0;\n private mouseY: number = 0;\n constructor(element: HTMLElement | null, subNavigation: Element | null) {\n this.element = element;\n this.subNavigation = subNavigation;\n if (!this.element || !this.subNavigation) {\n return;\n }\n this.parentSubNavigation = this.element?.closest('.db-sub-navigation');\n\n /*\n * only initiate if:\n * 1. item is not at root navigation level\n * 2. item is not in the mobile navigation / within db-drawer\n */\n if (this.parentSubNavigation && !this.element.closest('.db-drawer')) {\n this.init();\n }\n }\n private init() {\n const parentElementWidth = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;\n\n // the triangle has the width of the sub-navigation, current nav-item can be wider.\n // so the width of the triangle must be adapted to a possibly wider nav-item.\n this.element?.style.setProperty('--db-navigation-item-inline-size', `${parentElementWidth}px`);\n this.initialized = true;\n }\n public enableFollow() {\n if (!this.initialized || this.triangleData || !this.element || !this.subNavigation) {\n return;\n }\n const dataOutsidePair = handleDataOutside(this.subNavigation);\n const itemRect = this.element.getBoundingClientRect();\n const parentElementWidth = this.parentSubNavigation?.getBoundingClientRect().width ?? 0;\n this.triangleData = {\n itemRect,\n parentElementWidth,\n subNavigationHeight: this.subNavigation.getBoundingClientRect().height,\n padding: (parentElementWidth - itemRect.width) / 2,\n outsideVX: dataOutsidePair.vx,\n outsideVY: dataOutsidePair.vy\n };\n }\n public disableFollow() {\n this.triangleData = undefined;\n }\n private getTriangleTipX(): number {\n if (!this.triangleData) return 0;\n if (this.triangleData.outsideVX === 'right') {\n // vertical flipped triangle needs an inverted x pos\n return this.triangleData.itemRect.width - this.mouseX;\n }\n\n // triangle stops shrinking from 75% x pos\n return Math.min(this.mouseX, this.triangleData.itemRect.width * 0.75);\n }\n private getTriangleTipY(): number {\n if (!this.triangleData) return 0;\n\n // padding must be added to the y pos of the tip so that the y pos matches the cursor\n const mouseYLimited = Math.max(Math.min(this.mouseY, this.triangleData.itemRect.height), 0) + this.triangleData.padding;\n if (this.triangleData.outsideVY === 'bottom') {\n // add offset to tip y pos to match corrected sub-navigation y pos\n return mouseYLimited + (this.triangleData.subNavigationHeight - this.triangleData.padding * 2 - this.triangleData.itemRect.height);\n }\n return mouseYLimited;\n }\n private hasMouseEnteredSubNavigation(): boolean {\n if (!this.triangleData) {\n return false;\n }\n const isSubNavigationOnLeftSide = this.triangleData.outsideVX === 'right';\n if (isSubNavigationOnLeftSide && this.mouseX < -1 * this.triangleData.padding) {\n return true;\n }\n if (!isSubNavigationOnLeftSide && this.mouseX > this.triangleData.parentElementWidth - this.triangleData.padding) {\n return true;\n }\n return false;\n }\n private getTriangleCoordinates(variant: 'safe-triangle' | 'fill-gap'): undefined | {\n lb: string;\n lt: string;\n rt: string;\n rb: string;\n } {\n if (!this.triangleData) {\n return;\n }\n if (variant === 'fill-gap') {\n const itemHeight = `${this.triangleData.itemRect.height + 2 * this.triangleData.padding}px`;\n const xStart = `${this.triangleData.parentElementWidth - this.triangleData.padding}px`;\n return {\n lb: `${xStart} ${itemHeight}`,\n lt: `${xStart} 0`,\n rt: '100% 0',\n rb: `100% ${itemHeight}`\n };\n }\n const tipX = this.getTriangleTipX();\n const tipY = this.getTriangleTipY();\n const lb = `${tipX}px ${tipY}px`;\n const lt = `${tipX}px ${tipY}px`;\n return {\n lb,\n lt,\n rt: '100% 0',\n rb: '100% 100%'\n };\n }\n public followByMouseEvent(event: MouseEvent) {\n if (!this.initialized || !this.triangleData || !this.element || !this.subNavigation) {\n return;\n }\n this.mouseX = event.clientX - this.triangleData.itemRect.left;\n this.mouseY = event.clientY - this.triangleData.itemRect.top;\n const isOverSubNavigation = this.hasMouseEnteredSubNavigation();\n const coordinates = this.getTriangleCoordinates(isOverSubNavigation ? 'fill-gap' : 'safe-triangle');\n if (!coordinates) {\n return;\n }\n this.element.style.setProperty('--db-navigation-item-clip-path', `polygon(${coordinates.lb}, ${coordinates.lt}, ${coordinates.rt}, ${coordinates.rb})`);\n if (isOverSubNavigation) {\n this.triangleData = undefined;\n }\n }\n}\nexport default {\n isEventTargetNavigationItem,\n NavigationItemSafeTriangle\n}"],"names":["handleDataOutside"],"mappings":";;;;AASa,MAAA,2BAA2B,GAAG,CAAC,KAAc,KAAa;;AACrE,IAAA,MAAM,EACJ,MAAM,EACP,GAAG,KAEH;AACD,IAAA,OAAO,OAAO,CAAC,EAAC,CAAA,EAAA,GAAA,MAAM,KAAN,IAAA,IAAA,MAAM,KAAN,MAAA,GAAA,MAAA,GAAA,MAAM,CAAE,SAAS,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,QAAQ,CAAC,kCAAkC,CAAC,CAAA,KAAI,CAAA,EAAA,GAAA,MAAM,KAAN,IAAA,IAAA,MAAM,KAAN,MAAA,GAAA,M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GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG;AAC5D,QAAA,MAAM,mBAAmB,GAAG,IAAI,CAAC,4BAA4B,EAAE;AAC/D,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,GAAG,UAAU,GAAG,eAAe,CAAC;QACnG,IAAI,CAAC,WAAW,EAAE;YAChB;;QAEF,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,gCAAgC,EAAE,CAAW,QAAA,EAAA,WAAW,CAAC,EAAE,CAAK,EAAA,EAAA,WAAW,CAAC,EAAE,CAAK,EAAA,EAAA,WAAW,CAAC,EAAE,CAAK,EAAA,EAAA,WAAW,CAAC,EAAE,CAAG,CAAA,CAAA,CAAC;QACvJ,IAAI,mBAAmB,EAAE;AACvB,YAAA,IAAI,CAAC,YAAY,GAAG,SAAS;;;AAGlC;;;;;"}
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "compiler": {
36
36
  "name": "@stencil/core",
37
- "version": "4.26.0",
37
+ "version": "4.28.2",
38
38
  "typescriptVersion": "5.5.4"
39
39
  },
40
40
  "collections": [],
@@ -56,14 +56,7 @@ export class DBAccordion {
56
56
  }
57
57
  }
58
58
  }
59
- componentDidLoad() {
60
- this.enableAttributePassing(this._ref, "db-accordion");
61
- this._id = this.id || "accordion-" + uuid();
62
- this.initialized = true;
63
- this._initOpenIndexDone = true;
64
- }
65
- componentDidUpdate() {
66
- var _a;
59
+ watch0Fn() {
67
60
  // If we have a single behavior we first check for
68
61
  // props.name otherwise for state_id
69
62
  if (this.initialized) {
@@ -83,6 +76,11 @@ export class DBAccordion {
83
76
  this._name = "";
84
77
  }
85
78
  }
79
+ }
80
+ watch0() {
81
+ this.watch0Fn();
82
+ }
83
+ watch1Fn() {
86
84
  if (this._ref) {
87
85
  const childDetails = this._ref.getElementsByTagName("details");
88
86
  if (childDetails) {
@@ -96,6 +94,12 @@ export class DBAccordion {
96
94
  }
97
95
  }
98
96
  }
97
+ }
98
+ watch1() {
99
+ this.watch1Fn();
100
+ }
101
+ watch2Fn() {
102
+ var _a;
99
103
  if (this._ref && this._initOpenIndexDone) {
100
104
  if (this.initOpenIndex && ((_a = this.initOpenIndex) === null || _a === void 0 ? void 0 : _a.length) > 0) {
101
105
  const childDetails = this._ref.getElementsByTagName("details");
@@ -113,9 +117,21 @@ export class DBAccordion {
113
117
  this._initOpenIndexDone = false;
114
118
  }
115
119
  }
120
+ watch2() {
121
+ this.watch2Fn();
122
+ }
123
+ componentDidLoad() {
124
+ this.enableAttributePassing(this._ref, "db-accordion");
125
+ this._id = this.id || "accordion-" + uuid();
126
+ this.initialized = true;
127
+ this._initOpenIndexDone = true;
128
+ this.watch0Fn();
129
+ this.watch1Fn();
130
+ this.watch2Fn();
131
+ }
116
132
  render() {
117
133
  var _a;
118
- return (h("ul", { key: '6a2d7280077c11e5660b5638d2d10b4dce057be5', class: cls("db-accordion", this.className), ref: (el) => {
134
+ return (h("ul", { key: 'cbb0e2f58e5b0506125bc6c38830b5ce73f762ca', class: cls("db-accordion", this.className), ref: (el) => {
119
135
  this._ref = el;
120
136
  }, id: this._id, "data-variant": this.variant }, !this.items ? h("slot", null) : null, this.items
121
137
  ? (_a = this.convertItems(this.items)) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h("db-accordion-item", { key: `accordion-item-${index}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text })))
@@ -307,5 +323,35 @@ export class DBAccordion {
307
323
  "_initOpenIndexDone": {}
308
324
  };
309
325
  }
326
+ static get watchers() {
327
+ return [{
328
+ "propName": "initialized",
329
+ "methodName": "watch0"
330
+ }, {
331
+ "propName": "name",
332
+ "methodName": "watch0"
333
+ }, {
334
+ "propName": "behavior",
335
+ "methodName": "watch0"
336
+ }, {
337
+ "propName": "_id",
338
+ "methodName": "watch0"
339
+ }, {
340
+ "propName": "_ref",
341
+ "methodName": "watch1"
342
+ }, {
343
+ "propName": "_name",
344
+ "methodName": "watch1"
345
+ }, {
346
+ "propName": "_ref",
347
+ "methodName": "watch2"
348
+ }, {
349
+ "propName": "_initOpenIndexDone",
350
+ "methodName": "watch2"
351
+ }, {
352
+ "propName": "initOpenIndex",
353
+ "methodName": "watch2"
354
+ }];
355
+ }
310
356
  }
311
357
  //# sourceMappingURL=accordion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpE;;;GAGG;AAIH,MAAM,OAAO,WAAW;IAHvB;QAaU,QAAG,GAAG,UAAU,CAAC;QACjB,UAAK,GAAG,EAAE,CAAC;QACX,gBAAW,GAAG,KAAK,CAAC;QACpB,uBAAkB,GAAG,KAAK,CAAC;KAwIrC;IAtIC,YAAY,CAAC,KAAqC;QAChD,IAAI,CAAC;YACH,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC;YACD,OAAO,KAAsC,CAAC;QAChD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC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C,CAAC,CAAC,eAAa,CAAC,CAAC,CAAC,IAAI;YAClC,IAAI,CAAC,KAAK;gBACT,CAAC,CAAC,MAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,0CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAClD,yBACE,GAAG,EAAE,kBAAkB,KAAK,EAAE,EAC9B,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,GACI,CACtB,CAAC;gBACJ,CAAC,CAAC,IAAI,CACL,CACN,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBAccordionItemDefaultProps } from \"../accordion-item/model\";\nimport { DBAccordionProps, DBAccordionState } from \"./model\";\nimport { cls, uuid } from \"../../utils\";\nimport { DBAccordionItem } from \"../accordion-item/accordion-item\";\nimport { DEFAULT_ID } from \"../../shared/constants\";\n\nimport { Component, h, Fragment, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-accordion\",\n})\nexport class DBAccordion {\n private _ref!: HTMLUListElement | null;\n @Prop() id: DBAccordionProps[\"id\"];\n @Prop() name: DBAccordionProps[\"name\"];\n @Prop() behavior: DBAccordionProps[\"behavior\"];\n @Prop() initOpenIndex: DBAccordionProps[\"initOpenIndex\"];\n @Prop({attribute: \"classname\"}) className: DBAccordionProps[\"className\"];\n @Prop() variant: DBAccordionProps[\"variant\"];\n @Prop() items: DBAccordionProps[\"items\"];\n\n @State() _id = DEFAULT_ID;\n @State() _name = \"\";\n @State() initialized = false;\n @State() _initOpenIndexDone = false;\n\n convertItems(items: unknown[] | string | undefined) {\n try {\n if (typeof items === \"string\") {\n return JSON.parse(items);\n }\n return items as DBAccordionItemDefaultProps[];\n } catch (error) {\n console.error(error);\n }\n return [];\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-accordion\");\n this._id = this.id || \"accordion-\" + uuid();\n this.initialized = true;\n this._initOpenIndexDone = true;\n }\n\n componentDidUpdate() {\n // If we have a single behavior we first check for\n // props.name otherwise for state_id\n if (this.initialized) {\n if (this.behavior === \"single\") {\n if (this.name) {\n if (this._name !== this.name) {\n this._name = this.name;\n }\n } else {\n if (this._name !== this._id && this._id) {\n this._name = this._id;\n }\n }\n } else {\n this._name = \"\";\n }\n }\n if (this._ref) {\n const childDetails = this._ref.getElementsByTagName(\"details\");\n if (childDetails) {\n for (const details of Array.from<HTMLDetailsElement>(childDetails)) {\n if (this._name === \"\") {\n details.removeAttribute(\"name\");\n } else {\n details.name = this._name;\n }\n }\n }\n }\n if (this._ref && this._initOpenIndexDone) {\n if (this.initOpenIndex && this.initOpenIndex?.length > 0) {\n const childDetails = this._ref.getElementsByTagName(\"details\");\n if (childDetails) {\n const initOpenIndex =\n this.behavior === \"single\" && this.initOpenIndex.length > 1\n ? [this.initOpenIndex[0]] // use only one index for behavior=single\n : this.initOpenIndex;\n Array.from<HTMLDetailsElement>(childDetails).forEach(\n (details: HTMLDetailsElement, index: number) => {\n if (initOpenIndex.includes(index)) {\n details.open = true;\n }\n }\n );\n }\n }\n this._initOpenIndexDone = false;\n }\n }\n\n render() {\n return (\n <ul\n class={cls(\"db-accordion\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-variant={this.variant}\n >\n {!this.items ? <slot></slot> : null}\n {this.items\n ? this.convertItems(this.items)?.map((item, index) => (\n <db-accordion-item\n key={`accordion-item-${index}`}\n headlinePlain={item.headlinePlain}\n disabled={item.disabled}\n text={item.text}\n ></db-accordion-item>\n ))\n : null}\n </ul>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3E;;;GAGG;AAIH,MAAM,OAAO,WAAW;IAHvB;QAaU,QAAG,GAAG,UAAU,CAAC;QACjB,UAAK,GAAG,EAAE,CAAC;QACX,gBAAW,GAAG,KAAK,CAAC;QACpB,uBAAkB,GAAG,KAAK,CAAC;KAsKrC;IApKC,YAAY,CAAC,KAAqC;QAChD,IAAI,CAAC;YACH,IAAI,OAAO,KAAK,KAAK,QAAQ,EA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AAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBAccordionItemDefaultProps } from \"../accordion-item/model\";\nimport { DBAccordionProps, DBAccordionState } from \"./model\";\nimport { cls, uuid } from \"../../utils\";\nimport { DBAccordionItem } from \"../accordion-item/accordion-item\";\nimport { DEFAULT_ID } from \"../../shared/constants\";\n\nimport { Component, h, Fragment, Watch, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-accordion\",\n})\nexport class DBAccordion {\n private _ref!: HTMLUListElement | null;\n @Prop() id: DBAccordionProps[\"id\"];\n @Prop() name: DBAccordionProps[\"name\"];\n @Prop() behavior: DBAccordionProps[\"behavior\"];\n @Prop() initOpenIndex: DBAccordionProps[\"initOpenIndex\"];\n @Prop({attribute: \"classname\"}) className: DBAccordionProps[\"className\"];\n @Prop() variant: DBAccordionProps[\"variant\"];\n @Prop() items: DBAccordionProps[\"items\"];\n\n @State() _id = DEFAULT_ID;\n @State() _name = \"\";\n @State() initialized = false;\n @State() _initOpenIndexDone = false;\n\n convertItems(items: unknown[] | string | undefined) {\n try {\n if (typeof items === \"string\") {\n return JSON.parse(items);\n }\n return items as DBAccordionItemDefaultProps[];\n } catch (error) {\n console.error(error);\n }\n return [];\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n // If we have a single behavior we first check for\n // props.name otherwise for state_id\n if (this.initialized) {\n if (this.behavior === \"single\") {\n if (this.name) {\n if (this._name !== this.name) {\n this._name = this.name;\n }\n } else {\n if (this._name !== this._id && this._id) {\n this._name = this._id;\n }\n }\n } else {\n this._name = \"\";\n }\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"name\")\n @Watch(\"behavior\")\n @Watch(\"_id\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._ref) {\n const childDetails = this._ref.getElementsByTagName(\"details\");\n if (childDetails) {\n for (const details of Array.from<HTMLDetailsElement>(childDetails)) {\n if (this._name === \"\") {\n details.removeAttribute(\"name\");\n } else {\n details.name = this._name;\n }\n }\n }\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"_name\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n if (this._ref && this._initOpenIndexDone) {\n if (this.initOpenIndex && this.initOpenIndex?.length > 0) {\n const childDetails = this._ref.getElementsByTagName(\"details\");\n if (childDetails) {\n const initOpenIndex =\n this.behavior === \"single\" && this.initOpenIndex.length > 1\n ? [this.initOpenIndex[0]] // use only one index for behavior=single\n : this.initOpenIndex;\n Array.from<HTMLDetailsElement>(childDetails).forEach(\n (details: HTMLDetailsElement, index: number) => {\n if (initOpenIndex.includes(index)) {\n details.open = true;\n }\n }\n );\n }\n }\n this._initOpenIndexDone = false;\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"_initOpenIndexDone\")\n @Watch(\"initOpenIndex\")\n watch2() {\n this.watch2Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-accordion\");\n this._id = this.id || \"accordion-\" + uuid();\n this.initialized = true;\n this._initOpenIndexDone = true;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n }\n\n render() {\n return (\n <ul\n class={cls(\"db-accordion\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-variant={this.variant}\n >\n {!this.items ? <slot></slot> : null}\n {this.items\n ? this.convertItems(this.items)?.map((item, index) => (\n <db-accordion-item\n key={`accordion-item-${index}`}\n headlinePlain={item.headlinePlain}\n disabled={item.disabled}\n text={item.text}\n ></db-accordion-item>\n ))\n : null}\n </ul>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/accordion/model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAI,CAAC,SAAS,EAAE,MAAM,CAAW,CAAC;AAEnE,MAAM,CAAC,MAAM,qBAAqB,GAAI,CAAC,UAAU,EAAE,QAAQ,CAAW,CAAC","sourcesContent":["import { GlobalProps, GlobalState, InitializedState } from '../../shared/model';\nimport { DBAccordionItemDefaultProps } from '../accordion-item/model';\nexport const AccordionVariantList = (['divider', 'card'] as const);\nexport type AccordionVariantType = (typeof AccordionVariantList)[number];\nexport const AccordionBehaviorList = (['multiple', 'single'] as const);\nexport type AccordionBehaviorType = (typeof AccordionBehaviorList)[number];\nexport type DBAccordionDefaultProps = {\n /**\n * To allow multiple items open at the same time or only 1 item\n */\n behavior?: AccordionBehaviorType;\n /**\n * The index of items which should be open when loading the accordion\n */\n initOpenIndex?: number[];\n\n /**\n * Alternative to pass in a simple representation of accordion items\n */\n items?: DBAccordionItemDefaultProps[] | string;\n\n /**\n * Set details name for exclusive accordions, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#name\n */\n name?: string;\n\n /**\n * Informs about the changes in the internal state, which item is open\n */\n onChange?: (openAccordionItemIds: string[]) => void;\n\n /**\n * Defines the display of the accordion and the items:\n * \"divider\": with a dividing line between the items\n * \"card\": w/o dividing line, but items are shown in the card variant\n */\n variant?: AccordionVariantType;\n};\nexport type DBAccordionProps = DBAccordionDefaultProps & GlobalProps;\nexport type DBAccordionDefaultState = {\n _initOpenIndexDone: boolean;\n _name: string;\n convertItems: (items?: unknown[] | string) => DBAccordionItemDefaultProps[];\n};\nexport type DBAccordionState = DBAccordionDefaultState & GlobalState & InitializedState"]}
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/accordion/model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,CAAU,CAAC;AAEjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAU,CAAC","sourcesContent":["import { GlobalProps, GlobalState, InitializedState } from '../../shared/model';\nimport { DBAccordionItemDefaultProps } from '../accordion-item/model';\nexport const AccordionVariantList = ['divider', 'card'] as const;\nexport type AccordionVariantType = (typeof AccordionVariantList)[number];\nexport const AccordionBehaviorList = ['multiple', 'single'] as const;\nexport type AccordionBehaviorType = (typeof AccordionBehaviorList)[number];\nexport type DBAccordionDefaultProps = {\n /**\n * To allow multiple items open at the same time or only 1 item\n */\n behavior?: AccordionBehaviorType;\n /**\n * The index of items which should be open when loading the accordion\n */\n initOpenIndex?: number[];\n\n /**\n * Alternative to pass in a simple representation of accordion items\n */\n items?: DBAccordionItemDefaultProps[] | string;\n\n /**\n * Set details name for exclusive accordions, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#name\n */\n name?: string;\n\n /**\n * Informs about the changes in the internal state, which item is open\n */\n onChange?: (openAccordionItemIds: string[]) => void;\n\n /**\n * Defines the display of the accordion and the items:\n * \"divider\": with a dividing line between the items\n * \"card\": w/o dividing line, but items are shown in the card variant\n */\n variant?: AccordionVariantType;\n};\nexport type DBAccordionProps = DBAccordionDefaultProps & GlobalProps;\nexport type DBAccordionDefaultState = {\n _initOpenIndexDone: boolean;\n _name: string;\n convertItems: (items?: unknown[] | string) => DBAccordionItemDefaultProps[];\n};\nexport type DBAccordionState = DBAccordionDefaultState & GlobalState & InitializedState"]}
@@ -41,11 +41,7 @@ export class DBBadge {
41
41
  }
42
42
  }
43
43
  }
44
- componentDidLoad() {
45
- this.enableAttributePassing(this._ref, "db-badge");
46
- this.initialized = true;
47
- }
48
- componentDidUpdate() {
44
+ watch0Fn() {
49
45
  var _a;
50
46
  if (this._ref && this.initialized) {
51
47
  if ((_a = this.placement) === null || _a === void 0 ? void 0 : _a.startsWith("corner")) {
@@ -60,9 +56,17 @@ export class DBBadge {
60
56
  }
61
57
  }
62
58
  }
59
+ watch0() {
60
+ this.watch0Fn();
61
+ }
62
+ componentDidLoad() {
63
+ this.enableAttributePassing(this._ref, "db-badge");
64
+ this.initialized = true;
65
+ this.watch0Fn();
66
+ }
63
67
  render() {
64
68
  var _a, _b;
65
- return (h("span", { key: '7f6ba75819424fcc333e56aebd40e23fe2b77a25', class: cls("db-badge", this.className), ref: (el) => {
69
+ return (h("span", { key: '575b6dcb7b8d8599ce601a22c7ec30f2c6c31f41', class: cls("db-badge", this.className), ref: (el) => {
66
70
  this._ref = el;
67
71
  }, id: this.id, "data-semantic": this.semantic, "data-size": this.size, "data-emphasis": this.emphasis, "data-placement": this.placement, "data-label": ((_a = this.placement) === null || _a === void 0 ? void 0 : _a.startsWith("corner")) && ((_b = this.label) !== null && _b !== void 0 ? _b : DEFAULT_LABEL) }, this.text ? this.text : h("slot", null)));
68
72
  }
@@ -276,5 +280,14 @@ export class DBBadge {
276
280
  "initialized": {}
277
281
  };
278
282
  }
283
+ static get watchers() {
284
+ return [{
285
+ "propName": "_ref",
286
+ "methodName": "watch0"
287
+ }, {
288
+ "propName": "initialized",
289
+ "methodName": "watch0"
290
+ }];
291
+ }
279
292
  }
280
293
  //# sourceMappingURL=badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpE;;;GAGG;AAIH,MAAM,OAAO,OAAO;IAHnB;QAcU,gBAAW,GAAG,KAAK,CAAC;KAkF9B;IAhFC;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChC,IACE,IAAI;oBACJ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAChE,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACpC,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AAC,aAAa,CAAC;gBAChC,CAAC;gBACD,IAAI,MAAM,EAAE,CAAC;oBACX,MAAM,CAAC,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;gBAChD,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM;;QACJ,OAAO,CACL,6DACE,KAAK,EAAE,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,EACtC,GAAG,EAAE,CAAC,EAAO,EAAE,EAAE;gBACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACjB,CAAC,EACD,EAAE,EAAE,IAAI,CAAC,EAAE,mBACI,IAAI,CAAC,QAAQ,eACjB,IAAI,CAAC,IAAI,mBACL,IAAI,CAAC,QAAQ,oBACZ,IAAI,CAAC,SAAS,gBAE5B,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,UAAU,CAAC,QAAQ,CAAC,KAAI,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,aAAa,CAAC,IAGtE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,eAAa,CACjC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBBadgeProps, DBBadgeState } from \"./model\";\nimport { cls } from \"../../utils\";\nimport { DEFAULT_LABEL } from \"../../shared/constants\";\n\nimport { Component, h, Fragment, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-badge\",\n})\nexport class DBBadge {\n private _ref!: HTMLSpanElement | null;\n @Prop() placement: DBBadgeProps[\"placement\"];\n @Prop() id: DBBadgeProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBBadgeProps[\"className\"];\n @Prop() semantic: DBBadgeProps[\"semantic\"];\n @Prop() size: DBBadgeProps[\"size\"];\n @Prop() emphasis: DBBadgeProps[\"emphasis\"];\n @Prop() label: DBBadgeProps[\"label\"];\n @Prop() text: DBBadgeProps[\"text\"];\n\n @State() initialized = false;\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-badge\");\n this.initialized = true;\n }\n\n componentDidUpdate() {\n if (this._ref && this.initialized) {\n if (this.placement?.startsWith(\"corner\")) {\n let parent = this._ref.parentElement;\n if (parent && parent.localName.includes(\"badge\")) {\n // Angular workaround\n parent = parent.parentElement;\n }\n if (parent) {\n parent.setAttribute(\"data-has-badge\", \"true\");\n }\n }\n }\n }\n\n render() {\n return (\n <span\n class={cls(\"db-badge\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-semantic={this.semantic}\n data-size={this.size}\n data-emphasis={this.emphasis}\n data-placement={this.placement}\n data-label={\n this.placement?.startsWith(\"corner\") && (this.label ?? DEFAULT_LABEL)\n }\n >\n {this.text ? this.text : <slot></slot>}\n </span>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3E;;;GAGG;AAIH,MAAM,OAAO,OAAO;IAHnB;QAcU,gBAAW,GAAG,KAAK,CAAC;KAyF9B;IAvFC;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChC,IACE,IAAI;oBACJ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAChE,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,CAAC,eAAe,CAAC,IAAI,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AC,CAAC;gBAChD,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAID,MAAM;QACJ,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACnD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED,MAAM;;QACJ,OAAO,CACL,6DACE,KAAK,EAAE,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,EACtC,GAAG,EAAE,CAAC,EAAO,EAAE,EAAE;gBACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACjB,CAAC,EACD,EAAE,EAAE,IAAI,CAAC,EAAE,mBACI,IAAI,CAAC,QAAQ,eACjB,IAAI,CAAC,IAAI,mBACL,IAAI,CAAC,QAAQ,oBACZ,IAAI,CAAC,SAAS,gBAE5B,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,UAAU,CAAC,QAAQ,CAAC,KAAI,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,aAAa,CAAC,IAGtE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,eAAa,CACjC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBBadgeProps, DBBadgeState } from \"./model\";\nimport { cls } from \"../../utils\";\nimport { DEFAULT_LABEL } from \"../../shared/constants\";\n\nimport { Component, h, Fragment, Watch, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-badge\",\n})\nexport class DBBadge {\n private _ref!: HTMLSpanElement | null;\n @Prop() placement: DBBadgeProps[\"placement\"];\n @Prop() id: DBBadgeProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBBadgeProps[\"className\"];\n @Prop() semantic: DBBadgeProps[\"semantic\"];\n @Prop() size: DBBadgeProps[\"size\"];\n @Prop() emphasis: DBBadgeProps[\"emphasis\"];\n @Prop() label: DBBadgeProps[\"label\"];\n @Prop() text: DBBadgeProps[\"text\"];\n\n @State() initialized = false;\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n if (this._ref && this.initialized) {\n if (this.placement?.startsWith(\"corner\")) {\n let parent = this._ref.parentElement;\n if (parent && parent.localName.includes(\"badge\")) {\n // Angular workaround\n parent = parent.parentElement;\n }\n if (parent) {\n parent.setAttribute(\"data-has-badge\", \"true\");\n }\n }\n }\n }\n\n @Watch(\"_ref\")\n @Watch(\"initialized\")\n watch0() {\n this.watch0Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-badge\");\n this.initialized = true;\n this.watch0Fn();\n }\n\n render() {\n return (\n <span\n class={cls(\"db-badge\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-semantic={this.semantic}\n data-size={this.size}\n data-emphasis={this.emphasis}\n data-placement={this.placement}\n data-label={\n this.placement?.startsWith(\"corner\") && (this.label ?? DEFAULT_LABEL)\n }\n >\n {this.text ? this.text : <slot></slot>}\n </span>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/badge/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,kBAAkB,GAAI,CAAC,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,CAAW,CAAC","sourcesContent":["import { GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TagEmphasisProps, TextProps } from '../../shared/model';\nexport const BadgePlacementList = (['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'] as const);\nexport type BadgePlacementType = (typeof BadgePlacementList)[number];\nexport type DBBadgeDefaultProps = {\n /**\n * The `placement` attributes `corner-*` values change the position to absolute and adds a transform based on the placement.\n */\n placement?: BadgePlacementType;\n\n /**\n * Describes the badge for a11y if you use placement attribute with `corner-*`\n */\n label?: string;\n};\nexport type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & TagEmphasisProps & TextProps;\nexport type DBBadgeDefaultState = {};\nexport type DBBadgeState = DBBadgeDefaultState & GlobalState & InitializedState"]}
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/badge/model.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,CAAU,CAAC","sourcesContent":["import { GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TagEmphasisProps, TextProps } from '../../shared/model';\nexport const BadgePlacementList = ['inline', 'corner-top-left', 'corner-top-right', 'corner-center-left', 'corner-center-right', 'corner-bottom-left', 'corner-bottom-right'] as const;\nexport type BadgePlacementType = (typeof BadgePlacementList)[number];\nexport type DBBadgeDefaultProps = {\n /**\n * The `placement` attributes `corner-*` values change the position to absolute and adds a transform based on the placement.\n */\n placement?: BadgePlacementType;\n\n /**\n * Describes the badge for a11y if you use placement attribute with `corner-*`\n */\n label?: string;\n};\nexport type DBBadgeProps = DBBadgeDefaultProps & GlobalProps & SemanticProps & SizeProps & TagEmphasisProps & TextProps;\nexport type DBBadgeDefaultState = {};\nexport type DBBadgeState = DBBadgeDefaultState & GlobalState & InitializedState"]}
@@ -283,7 +283,7 @@ export class DBButton {
283
283
  "mutable": false,
284
284
  "complexType": {
285
285
  "original": "DBButtonProps[\"width\"]",
286
- "resolved": "\"auto\" | \"full\"",
286
+ "resolved": "string",
287
287
  "references": {
288
288
  "DBButtonProps": {
289
289
  "location": "import",