@db-ux/wc-core-components 1.0.0-test-13b991d

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 (533) hide show
  1. package/README.md +92 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  4. package/dist/cjs/constants-89822e5f.js +116 -0
  5. package/dist/cjs/constants-89822e5f.js.map +1 -0
  6. package/dist/cjs/db-accordion-item.cjs.entry.js +73 -0
  7. package/dist/cjs/db-accordion-item.cjs.entry.js.map +1 -0
  8. package/dist/cjs/db-accordion.cjs.entry.js +130 -0
  9. package/dist/cjs/db-accordion.cjs.entry.js.map +1 -0
  10. package/dist/cjs/db-badge.cjs.entry.js +75 -0
  11. package/dist/cjs/db-badge.cjs.entry.js.map +1 -0
  12. package/dist/cjs/db-brand.cjs.entry.js +58 -0
  13. package/dist/cjs/db-brand.cjs.entry.js.map +1 -0
  14. package/dist/cjs/db-button.cjs.entry.js +62 -0
  15. package/dist/cjs/db-button.cjs.entry.js.map +1 -0
  16. package/dist/cjs/db-card.cjs.entry.js +62 -0
  17. package/dist/cjs/db-card.cjs.entry.js.map +1 -0
  18. package/dist/cjs/db-checkbox.cjs.entry.js +149 -0
  19. package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -0
  20. package/dist/cjs/db-divider.cjs.entry.js +56 -0
  21. package/dist/cjs/db-divider.cjs.entry.js.map +1 -0
  22. package/dist/cjs/db-drawer.cjs.entry.js +108 -0
  23. package/dist/cjs/db-drawer.cjs.entry.js.map +1 -0
  24. package/dist/cjs/db-header.cjs.entry.js +89 -0
  25. package/dist/cjs/db-header.cjs.entry.js.map +1 -0
  26. package/dist/cjs/db-icon.cjs.entry.js +56 -0
  27. package/dist/cjs/db-icon.cjs.entry.js.map +1 -0
  28. package/dist/cjs/db-infotext.cjs.entry.js +57 -0
  29. package/dist/cjs/db-infotext.cjs.entry.js.map +1 -0
  30. package/dist/cjs/db-input.cjs.entry.js +157 -0
  31. package/dist/cjs/db-input.cjs.entry.js.map +1 -0
  32. package/dist/cjs/db-link.cjs.entry.js +63 -0
  33. package/dist/cjs/db-link.cjs.entry.js.map +1 -0
  34. package/dist/cjs/db-navigation-item.cjs.entry.js +102 -0
  35. package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -0
  36. package/dist/cjs/db-navigation.cjs.entry.js +59 -0
  37. package/dist/cjs/db-navigation.cjs.entry.js.map +1 -0
  38. package/dist/cjs/db-notification.cjs.entry.js +64 -0
  39. package/dist/cjs/db-notification.cjs.entry.js.map +1 -0
  40. package/dist/cjs/db-page.cjs.entry.js +73 -0
  41. package/dist/cjs/db-page.cjs.entry.js.map +1 -0
  42. package/dist/cjs/db-popover.cjs.entry.js +113 -0
  43. package/dist/cjs/db-popover.cjs.entry.js.map +1 -0
  44. package/dist/cjs/db-radio.cjs.entry.js +98 -0
  45. package/dist/cjs/db-radio.cjs.entry.js.map +1 -0
  46. package/dist/cjs/db-section.cjs.entry.js +59 -0
  47. package/dist/cjs/db-section.cjs.entry.js.map +1 -0
  48. package/dist/cjs/db-select.cjs.entry.js +170 -0
  49. package/dist/cjs/db-select.cjs.entry.js.map +1 -0
  50. package/dist/cjs/db-stack.cjs.entry.js +56 -0
  51. package/dist/cjs/db-stack.cjs.entry.js.map +1 -0
  52. package/dist/cjs/db-switch.cjs.entry.js +91 -0
  53. package/dist/cjs/db-switch.cjs.entry.js.map +1 -0
  54. package/dist/cjs/db-tab-item_3.cjs.entry.js +175 -0
  55. package/dist/cjs/db-tab-item_3.cjs.entry.js.map +1 -0
  56. package/dist/cjs/db-tabs.cjs.entry.js +173 -0
  57. package/dist/cjs/db-tabs.cjs.entry.js.map +1 -0
  58. package/dist/cjs/db-tag.cjs.entry.js +83 -0
  59. package/dist/cjs/db-tag.cjs.entry.js.map +1 -0
  60. package/dist/cjs/db-textarea.cjs.entry.js +144 -0
  61. package/dist/cjs/db-textarea.cjs.entry.js.map +1 -0
  62. package/dist/cjs/db-tooltip.cjs.entry.js +86 -0
  63. package/dist/cjs/db-tooltip.cjs.entry.js.map +1 -0
  64. package/dist/cjs/db-ux.cjs.js +27 -0
  65. package/dist/cjs/db-ux.cjs.js.map +1 -0
  66. package/dist/cjs/index-3d093f06.js +1496 -0
  67. package/dist/cjs/index-3d093f06.js.map +1 -0
  68. package/dist/cjs/index-c0df827d.js +169 -0
  69. package/dist/cjs/index-c0df827d.js.map +1 -0
  70. package/dist/cjs/index.cjs.js +118 -0
  71. package/dist/cjs/index.cjs.js.map +1 -0
  72. package/dist/cjs/loader.cjs.js +17 -0
  73. package/dist/cjs/loader.cjs.js.map +1 -0
  74. package/dist/cjs/navigation-bb2d5552.js +140 -0
  75. package/dist/cjs/navigation-bb2d5552.js.map +1 -0
  76. package/dist/collection/collection-manifest.json +42 -0
  77. package/dist/collection/components/accordion/accordion.js +311 -0
  78. package/dist/collection/components/accordion/accordion.js.map +1 -0
  79. package/dist/collection/components/accordion/index.js +3 -0
  80. package/dist/collection/components/accordion/index.js.map +1 -0
  81. package/dist/collection/components/accordion/model.js +3 -0
  82. package/dist/collection/components/accordion/model.js.map +1 -0
  83. package/dist/collection/components/accordion-item/accordion-item.js +246 -0
  84. package/dist/collection/components/accordion-item/accordion-item.js.map +1 -0
  85. package/dist/collection/components/accordion-item/index.js +3 -0
  86. package/dist/collection/components/accordion-item/index.js.map +1 -0
  87. package/dist/collection/components/accordion-item/model.js +2 -0
  88. package/dist/collection/components/accordion-item/model.js.map +1 -0
  89. package/dist/collection/components/badge/badge.js +280 -0
  90. package/dist/collection/components/badge/badge.js.map +1 -0
  91. package/dist/collection/components/badge/index.js +3 -0
  92. package/dist/collection/components/badge/index.js.map +1 -0
  93. package/dist/collection/components/badge/model.js +2 -0
  94. package/dist/collection/components/badge/model.js.map +1 -0
  95. package/dist/collection/components/brand/brand.js +206 -0
  96. package/dist/collection/components/brand/brand.js.map +1 -0
  97. package/dist/collection/components/brand/index.js +3 -0
  98. package/dist/collection/components/brand/index.js.map +1 -0
  99. package/dist/collection/components/brand/model.js +2 -0
  100. package/dist/collection/components/brand/model.js.map +1 -0
  101. package/dist/collection/components/button/button.js +527 -0
  102. package/dist/collection/components/button/button.js.map +1 -0
  103. package/dist/collection/components/button/index.js +3 -0
  104. package/dist/collection/components/button/index.js.map +1 -0
  105. package/dist/collection/components/button/model.js +4 -0
  106. package/dist/collection/components/button/model.js.map +1 -0
  107. package/dist/collection/components/card/card.js +202 -0
  108. package/dist/collection/components/card/card.js.map +1 -0
  109. package/dist/collection/components/card/index.js +3 -0
  110. package/dist/collection/components/card/index.js.map +1 -0
  111. package/dist/collection/components/card/model.js +3 -0
  112. package/dist/collection/components/card/model.js.map +1 -0
  113. package/dist/collection/components/checkbox/checkbox.js +699 -0
  114. package/dist/collection/components/checkbox/checkbox.js.map +1 -0
  115. package/dist/collection/components/checkbox/index.js +3 -0
  116. package/dist/collection/components/checkbox/index.js.map +1 -0
  117. package/dist/collection/components/checkbox/model.js +2 -0
  118. package/dist/collection/components/checkbox/model.js.map +1 -0
  119. package/dist/collection/components/divider/divider.js +204 -0
  120. package/dist/collection/components/divider/divider.js.map +1 -0
  121. package/dist/collection/components/divider/index.js +3 -0
  122. package/dist/collection/components/divider/index.js.map +1 -0
  123. package/dist/collection/components/divider/model.js +3 -0
  124. package/dist/collection/components/divider/model.js.map +1 -0
  125. package/dist/collection/components/drawer/drawer.js +398 -0
  126. package/dist/collection/components/drawer/drawer.js.map +1 -0
  127. package/dist/collection/components/drawer/index.js +3 -0
  128. package/dist/collection/components/drawer/index.js.map +1 -0
  129. package/dist/collection/components/drawer/model.js +4 -0
  130. package/dist/collection/components/drawer/model.js.map +1 -0
  131. package/dist/collection/components/header/header.js +266 -0
  132. package/dist/collection/components/header/header.js.map +1 -0
  133. package/dist/collection/components/header/index.js +3 -0
  134. package/dist/collection/components/header/index.js.map +1 -0
  135. package/dist/collection/components/header/model.js +2 -0
  136. package/dist/collection/components/header/model.js.map +1 -0
  137. package/dist/collection/components/icon/icon.js +204 -0
  138. package/dist/collection/components/icon/icon.js.map +1 -0
  139. package/dist/collection/components/icon/index.js +3 -0
  140. package/dist/collection/components/icon/index.js.map +1 -0
  141. package/dist/collection/components/icon/model.js +3 -0
  142. package/dist/collection/components/icon/model.js.map +1 -0
  143. package/dist/collection/components/infotext/index.js +3 -0
  144. package/dist/collection/components/infotext/index.js.map +1 -0
  145. package/dist/collection/components/infotext/infotext.js +230 -0
  146. package/dist/collection/components/infotext/infotext.js.map +1 -0
  147. package/dist/collection/components/infotext/model.js +2 -0
  148. package/dist/collection/components/infotext/model.js.map +1 -0
  149. package/dist/collection/components/input/index.js +3 -0
  150. package/dist/collection/components/input/index.js.map +1 -0
  151. package/dist/collection/components/input/input.js +1118 -0
  152. package/dist/collection/components/input/input.js.map +1 -0
  153. package/dist/collection/components/input/model.js +6 -0
  154. package/dist/collection/components/input/model.js.map +1 -0
  155. package/dist/collection/components/link/index.js +3 -0
  156. package/dist/collection/components/link/index.js.map +1 -0
  157. package/dist/collection/components/link/link.js +478 -0
  158. package/dist/collection/components/link/link.js.map +1 -0
  159. package/dist/collection/components/link/model.js +4 -0
  160. package/dist/collection/components/link/model.js.map +1 -0
  161. package/dist/collection/components/navigation/index.js +3 -0
  162. package/dist/collection/components/navigation/index.js.map +1 -0
  163. package/dist/collection/components/navigation/model.js +2 -0
  164. package/dist/collection/components/navigation/model.js.map +1 -0
  165. package/dist/collection/components/navigation/navigation.js +139 -0
  166. package/dist/collection/components/navigation/navigation.js.map +1 -0
  167. package/dist/collection/components/navigation-item/index.js +3 -0
  168. package/dist/collection/components/navigation-item/index.js.map +1 -0
  169. package/dist/collection/components/navigation-item/model.js +2 -0
  170. package/dist/collection/components/navigation-item/model.js.map +1 -0
  171. package/dist/collection/components/navigation-item/navigation-item.js +404 -0
  172. package/dist/collection/components/navigation-item/navigation-item.js.map +1 -0
  173. package/dist/collection/components/notification/index.js +3 -0
  174. package/dist/collection/components/notification/index.js.map +1 -0
  175. package/dist/collection/components/notification/model.js +4 -0
  176. package/dist/collection/components/notification/model.js.map +1 -0
  177. package/dist/collection/components/notification/notification.js +480 -0
  178. package/dist/collection/components/notification/notification.js.map +1 -0
  179. package/dist/collection/components/page/index.js +3 -0
  180. package/dist/collection/components/page/index.js.map +1 -0
  181. package/dist/collection/components/page/model.js +3 -0
  182. package/dist/collection/components/page/model.js.map +1 -0
  183. package/dist/collection/components/page/page.js +204 -0
  184. package/dist/collection/components/page/page.js.map +1 -0
  185. package/dist/collection/components/popover/index.js +3 -0
  186. package/dist/collection/components/popover/index.js.map +1 -0
  187. package/dist/collection/components/popover/model.js +2 -0
  188. package/dist/collection/components/popover/model.js.map +1 -0
  189. package/dist/collection/components/popover/popover.js +344 -0
  190. package/dist/collection/components/popover/popover.js.map +1 -0
  191. package/dist/collection/components/radio/index.js +3 -0
  192. package/dist/collection/components/radio/index.js.map +1 -0
  193. package/dist/collection/components/radio/model.js +2 -0
  194. package/dist/collection/components/radio/model.js.map +1 -0
  195. package/dist/collection/components/radio/radio.js +518 -0
  196. package/dist/collection/components/radio/radio.js.map +1 -0
  197. package/dist/collection/components/section/index.js +3 -0
  198. package/dist/collection/components/section/index.js.map +1 -0
  199. package/dist/collection/components/section/model.js +2 -0
  200. package/dist/collection/components/section/model.js.map +1 -0
  201. package/dist/collection/components/section/section.js +164 -0
  202. package/dist/collection/components/section/section.js.map +1 -0
  203. package/dist/collection/components/select/index.js +3 -0
  204. package/dist/collection/components/select/index.js.map +1 -0
  205. package/dist/collection/components/select/model.js +2 -0
  206. package/dist/collection/components/select/model.js.map +1 -0
  207. package/dist/collection/components/select/select.js +846 -0
  208. package/dist/collection/components/select/select.js.map +1 -0
  209. package/dist/collection/components/stack/index.js +3 -0
  210. package/dist/collection/components/stack/index.js.map +1 -0
  211. package/dist/collection/components/stack/model.js +5 -0
  212. package/dist/collection/components/stack/model.js.map +1 -0
  213. package/dist/collection/components/stack/stack.js +254 -0
  214. package/dist/collection/components/stack/stack.js.map +1 -0
  215. package/dist/collection/components/switch/index.js +3 -0
  216. package/dist/collection/components/switch/index.js.map +1 -0
  217. package/dist/collection/components/switch/model.js +2 -0
  218. package/dist/collection/components/switch/model.js.map +1 -0
  219. package/dist/collection/components/switch/switch.js +587 -0
  220. package/dist/collection/components/switch/switch.js.map +1 -0
  221. package/dist/collection/components/tab-item/index.js +3 -0
  222. package/dist/collection/components/tab-item/index.js.map +1 -0
  223. package/dist/collection/components/tab-item/model.js +2 -0
  224. package/dist/collection/components/tab-item/model.js.map +1 -0
  225. package/dist/collection/components/tab-item/tab-item.js +399 -0
  226. package/dist/collection/components/tab-item/tab-item.js.map +1 -0
  227. package/dist/collection/components/tab-list/index.js +3 -0
  228. package/dist/collection/components/tab-list/index.js.map +1 -0
  229. package/dist/collection/components/tab-list/model.js +2 -0
  230. package/dist/collection/components/tab-list/model.js.map +1 -0
  231. package/dist/collection/components/tab-list/tab-list.js +114 -0
  232. package/dist/collection/components/tab-list/tab-list.js.map +1 -0
  233. package/dist/collection/components/tab-panel/index.js +3 -0
  234. package/dist/collection/components/tab-panel/index.js.map +1 -0
  235. package/dist/collection/components/tab-panel/model.js +2 -0
  236. package/dist/collection/components/tab-panel/model.js.map +1 -0
  237. package/dist/collection/components/tab-panel/tab-panel.js +154 -0
  238. package/dist/collection/components/tab-panel/tab-panel.js.map +1 -0
  239. package/dist/collection/components/tabs/index.js +3 -0
  240. package/dist/collection/components/tabs/index.js.map +1 -0
  241. package/dist/collection/components/tabs/model.js +3 -0
  242. package/dist/collection/components/tabs/model.js.map +1 -0
  243. package/dist/collection/components/tabs/tabs.js +458 -0
  244. package/dist/collection/components/tabs/tabs.js.map +1 -0
  245. package/dist/collection/components/tag/index.js +3 -0
  246. package/dist/collection/components/tag/index.js.map +1 -0
  247. package/dist/collection/components/tag/model.js +2 -0
  248. package/dist/collection/components/tag/model.js.map +1 -0
  249. package/dist/collection/components/tag/tag.js +430 -0
  250. package/dist/collection/components/tag/tag.js.map +1 -0
  251. package/dist/collection/components/textarea/index.js +3 -0
  252. package/dist/collection/components/textarea/index.js.map +1 -0
  253. package/dist/collection/components/textarea/model.js +3 -0
  254. package/dist/collection/components/textarea/model.js.map +1 -0
  255. package/dist/collection/components/textarea/textarea.js +956 -0
  256. package/dist/collection/components/textarea/textarea.js.map +1 -0
  257. package/dist/collection/components/tooltip/index.js +3 -0
  258. package/dist/collection/components/tooltip/index.js.map +1 -0
  259. package/dist/collection/components/tooltip/model.js +2 -0
  260. package/dist/collection/components/tooltip/model.js.map +1 -0
  261. package/dist/collection/components/tooltip/tooltip.js +292 -0
  262. package/dist/collection/components/tooltip/tooltip.js.map +1 -0
  263. package/dist/collection/index.js +37 -0
  264. package/dist/collection/index.js.map +1 -0
  265. package/dist/collection/shared/constants.js +88 -0
  266. package/dist/collection/shared/constants.js.map +1 -0
  267. package/dist/collection/shared/model.js +22 -0
  268. package/dist/collection/shared/model.js.map +1 -0
  269. package/dist/collection/utils/form-components.js +11 -0
  270. package/dist/collection/utils/form-components.js.map +1 -0
  271. package/dist/collection/utils/index.js +167 -0
  272. package/dist/collection/utils/index.js.map +1 -0
  273. package/dist/collection/utils/navigation.js +137 -0
  274. package/dist/collection/utils/navigation.js.map +1 -0
  275. package/dist/custom-elements.json +13474 -0
  276. package/dist/db-ux/db-ux.esm.js +2 -0
  277. package/dist/db-ux/db-ux.esm.js.map +1 -0
  278. package/dist/db-ux/index.esm.js +2 -0
  279. package/dist/db-ux/index.esm.js.map +1 -0
  280. package/dist/db-ux/p-031e9fbf.entry.js +2 -0
  281. package/dist/db-ux/p-031e9fbf.entry.js.map +1 -0
  282. package/dist/db-ux/p-08126c21.entry.js +2 -0
  283. package/dist/db-ux/p-08126c21.entry.js.map +1 -0
  284. package/dist/db-ux/p-1066cd52.entry.js +2 -0
  285. package/dist/db-ux/p-1066cd52.entry.js.map +1 -0
  286. package/dist/db-ux/p-10d30f53.entry.js +2 -0
  287. package/dist/db-ux/p-10d30f53.entry.js.map +1 -0
  288. package/dist/db-ux/p-1566cfef.entry.js +2 -0
  289. package/dist/db-ux/p-1566cfef.entry.js.map +1 -0
  290. package/dist/db-ux/p-1c12853c.entry.js +2 -0
  291. package/dist/db-ux/p-1c12853c.entry.js.map +1 -0
  292. package/dist/db-ux/p-1feee149.js +3 -0
  293. package/dist/db-ux/p-1feee149.js.map +1 -0
  294. package/dist/db-ux/p-2d32aa06.entry.js +2 -0
  295. package/dist/db-ux/p-2d32aa06.entry.js.map +1 -0
  296. package/dist/db-ux/p-2e318e2a.entry.js +2 -0
  297. package/dist/db-ux/p-2e318e2a.entry.js.map +1 -0
  298. package/dist/db-ux/p-34f88e4e.js +2 -0
  299. package/dist/db-ux/p-34f88e4e.js.map +1 -0
  300. package/dist/db-ux/p-3f2e2d87.entry.js +2 -0
  301. package/dist/db-ux/p-3f2e2d87.entry.js.map +1 -0
  302. package/dist/db-ux/p-43aa16d7.entry.js +2 -0
  303. package/dist/db-ux/p-43aa16d7.entry.js.map +1 -0
  304. package/dist/db-ux/p-5a689165.entry.js +2 -0
  305. package/dist/db-ux/p-5a689165.entry.js.map +1 -0
  306. package/dist/db-ux/p-683d690f.entry.js +2 -0
  307. package/dist/db-ux/p-683d690f.entry.js.map +1 -0
  308. package/dist/db-ux/p-6b6f1f7f.entry.js +2 -0
  309. package/dist/db-ux/p-6b6f1f7f.entry.js.map +1 -0
  310. package/dist/db-ux/p-6f645f17.entry.js +2 -0
  311. package/dist/db-ux/p-6f645f17.entry.js.map +1 -0
  312. package/dist/db-ux/p-71cb932e.entry.js +2 -0
  313. package/dist/db-ux/p-71cb932e.entry.js.map +1 -0
  314. package/dist/db-ux/p-78e5293a.entry.js +2 -0
  315. package/dist/db-ux/p-78e5293a.entry.js.map +1 -0
  316. package/dist/db-ux/p-79b43b42.entry.js +2 -0
  317. package/dist/db-ux/p-79b43b42.entry.js.map +1 -0
  318. package/dist/db-ux/p-79d9caa7.entry.js +2 -0
  319. package/dist/db-ux/p-79d9caa7.entry.js.map +1 -0
  320. package/dist/db-ux/p-871805e1.entry.js +2 -0
  321. package/dist/db-ux/p-871805e1.entry.js.map +1 -0
  322. package/dist/db-ux/p-8e2a086b.entry.js +2 -0
  323. package/dist/db-ux/p-8e2a086b.entry.js.map +1 -0
  324. package/dist/db-ux/p-99d90022.js +2 -0
  325. package/dist/db-ux/p-99d90022.js.map +1 -0
  326. package/dist/db-ux/p-a3be13fd.entry.js +2 -0
  327. package/dist/db-ux/p-a3be13fd.entry.js.map +1 -0
  328. package/dist/db-ux/p-a494046c.entry.js +2 -0
  329. package/dist/db-ux/p-a494046c.entry.js.map +1 -0
  330. package/dist/db-ux/p-ab8a1944.entry.js +2 -0
  331. package/dist/db-ux/p-ab8a1944.entry.js.map +1 -0
  332. package/dist/db-ux/p-af3834b6.js +2 -0
  333. package/dist/db-ux/p-af3834b6.js.map +1 -0
  334. package/dist/db-ux/p-b0f1a571.entry.js +2 -0
  335. package/dist/db-ux/p-b0f1a571.entry.js.map +1 -0
  336. package/dist/db-ux/p-b47af6eb.entry.js +2 -0
  337. package/dist/db-ux/p-b47af6eb.entry.js.map +1 -0
  338. package/dist/db-ux/p-c6d54dd4.entry.js +2 -0
  339. package/dist/db-ux/p-c6d54dd4.entry.js.map +1 -0
  340. package/dist/db-ux/p-d48f3770.entry.js +2 -0
  341. package/dist/db-ux/p-d48f3770.entry.js.map +1 -0
  342. package/dist/db-ux/p-e1255160.js +2 -0
  343. package/dist/db-ux/p-e1255160.js.map +1 -0
  344. package/dist/db-ux/p-f65f4eac.entry.js +2 -0
  345. package/dist/db-ux/p-f65f4eac.entry.js.map +1 -0
  346. package/dist/db-ux/p-fea6db86.entry.js +2 -0
  347. package/dist/db-ux/p-fea6db86.entry.js.map +1 -0
  348. package/dist/esm/app-globals-0f993ce5.js +5 -0
  349. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  350. package/dist/esm/constants-745cf8d7.js +91 -0
  351. package/dist/esm/constants-745cf8d7.js.map +1 -0
  352. package/dist/esm/db-accordion-item.entry.js +69 -0
  353. package/dist/esm/db-accordion-item.entry.js.map +1 -0
  354. package/dist/esm/db-accordion.entry.js +126 -0
  355. package/dist/esm/db-accordion.entry.js.map +1 -0
  356. package/dist/esm/db-badge.entry.js +71 -0
  357. package/dist/esm/db-badge.entry.js.map +1 -0
  358. package/dist/esm/db-brand.entry.js +54 -0
  359. package/dist/esm/db-brand.entry.js.map +1 -0
  360. package/dist/esm/db-button.entry.js +58 -0
  361. package/dist/esm/db-button.entry.js.map +1 -0
  362. package/dist/esm/db-card.entry.js +58 -0
  363. package/dist/esm/db-card.entry.js.map +1 -0
  364. package/dist/esm/db-checkbox.entry.js +145 -0
  365. package/dist/esm/db-checkbox.entry.js.map +1 -0
  366. package/dist/esm/db-divider.entry.js +52 -0
  367. package/dist/esm/db-divider.entry.js.map +1 -0
  368. package/dist/esm/db-drawer.entry.js +104 -0
  369. package/dist/esm/db-drawer.entry.js.map +1 -0
  370. package/dist/esm/db-header.entry.js +85 -0
  371. package/dist/esm/db-header.entry.js.map +1 -0
  372. package/dist/esm/db-icon.entry.js +52 -0
  373. package/dist/esm/db-icon.entry.js.map +1 -0
  374. package/dist/esm/db-infotext.entry.js +53 -0
  375. package/dist/esm/db-infotext.entry.js.map +1 -0
  376. package/dist/esm/db-input.entry.js +153 -0
  377. package/dist/esm/db-input.entry.js.map +1 -0
  378. package/dist/esm/db-link.entry.js +59 -0
  379. package/dist/esm/db-link.entry.js.map +1 -0
  380. package/dist/esm/db-navigation-item.entry.js +98 -0
  381. package/dist/esm/db-navigation-item.entry.js.map +1 -0
  382. package/dist/esm/db-navigation.entry.js +55 -0
  383. package/dist/esm/db-navigation.entry.js.map +1 -0
  384. package/dist/esm/db-notification.entry.js +60 -0
  385. package/dist/esm/db-notification.entry.js.map +1 -0
  386. package/dist/esm/db-page.entry.js +69 -0
  387. package/dist/esm/db-page.entry.js.map +1 -0
  388. package/dist/esm/db-popover.entry.js +109 -0
  389. package/dist/esm/db-popover.entry.js.map +1 -0
  390. package/dist/esm/db-radio.entry.js +94 -0
  391. package/dist/esm/db-radio.entry.js.map +1 -0
  392. package/dist/esm/db-section.entry.js +55 -0
  393. package/dist/esm/db-section.entry.js.map +1 -0
  394. package/dist/esm/db-select.entry.js +166 -0
  395. package/dist/esm/db-select.entry.js.map +1 -0
  396. package/dist/esm/db-stack.entry.js +52 -0
  397. package/dist/esm/db-stack.entry.js.map +1 -0
  398. package/dist/esm/db-switch.entry.js +87 -0
  399. package/dist/esm/db-switch.entry.js.map +1 -0
  400. package/dist/esm/db-tab-item_3.entry.js +169 -0
  401. package/dist/esm/db-tab-item_3.entry.js.map +1 -0
  402. package/dist/esm/db-tabs.entry.js +169 -0
  403. package/dist/esm/db-tabs.entry.js.map +1 -0
  404. package/dist/esm/db-tag.entry.js +79 -0
  405. package/dist/esm/db-tag.entry.js.map +1 -0
  406. package/dist/esm/db-textarea.entry.js +140 -0
  407. package/dist/esm/db-textarea.entry.js.map +1 -0
  408. package/dist/esm/db-tooltip.entry.js +82 -0
  409. package/dist/esm/db-tooltip.entry.js.map +1 -0
  410. package/dist/esm/db-ux.js +22 -0
  411. package/dist/esm/db-ux.js.map +1 -0
  412. package/dist/esm/index-5be50117.js +1468 -0
  413. package/dist/esm/index-5be50117.js.map +1 -0
  414. package/dist/esm/index-fad99efc.js +153 -0
  415. package/dist/esm/index-fad99efc.js.map +1 -0
  416. package/dist/esm/index.js +30 -0
  417. package/dist/esm/index.js.map +1 -0
  418. package/dist/esm/loader.js +13 -0
  419. package/dist/esm/loader.js.map +1 -0
  420. package/dist/esm/navigation-9fec9921.js +137 -0
  421. package/dist/esm/navigation-9fec9921.js.map +1 -0
  422. package/dist/index.cjs.js +1 -0
  423. package/dist/index.js +1 -0
  424. package/dist/loader/cdn.js +1 -0
  425. package/dist/loader/index.cjs.js +1 -0
  426. package/dist/loader/index.d.ts +24 -0
  427. package/dist/loader/index.es2017.js +1 -0
  428. package/dist/loader/index.js +2 -0
  429. package/dist/loader/package.json +11 -0
  430. package/dist/types/components/accordion/accordion.d.ts +29 -0
  431. package/dist/types/components/accordion/index.d.ts +2 -0
  432. package/dist/types/components/accordion/model.d.ts +41 -0
  433. package/dist/types/components/accordion-item/accordion-item.d.ts +27 -0
  434. package/dist/types/components/accordion-item/index.d.ts +2 -0
  435. package/dist/types/components/accordion-item/model.d.ts +24 -0
  436. package/dist/types/components/badge/badge.d.ts +26 -0
  437. package/dist/types/components/badge/index.d.ts +2 -0
  438. package/dist/types/components/badge/model.d.ts +16 -0
  439. package/dist/types/components/brand/brand.d.ts +22 -0
  440. package/dist/types/components/brand/index.d.ts +2 -0
  441. package/dist/types/components/brand/model.d.ts +10 -0
  442. package/dist/types/components/button/button.d.ts +37 -0
  443. package/dist/types/components/button/index.d.ts +2 -0
  444. package/dist/types/components/button/model.d.ts +52 -0
  445. package/dist/types/components/card/card.d.ts +24 -0
  446. package/dist/types/components/card/index.d.ts +2 -0
  447. package/dist/types/components/card/model.d.ts +18 -0
  448. package/dist/types/components/checkbox/checkbox.d.ts +51 -0
  449. package/dist/types/components/checkbox/index.d.ts +2 -0
  450. package/dist/types/components/checkbox/model.d.ts +10 -0
  451. package/dist/types/components/divider/divider.d.ts +22 -0
  452. package/dist/types/components/divider/index.d.ts +2 -0
  453. package/dist/types/components/divider/model.d.ts +18 -0
  454. package/dist/types/components/drawer/drawer.d.ts +32 -0
  455. package/dist/types/components/drawer/index.d.ts +2 -0
  456. package/dist/types/components/drawer/model.d.ts +41 -0
  457. package/dist/types/components/header/header.d.ts +32 -0
  458. package/dist/types/components/header/index.d.ts +2 -0
  459. package/dist/types/components/header/model.d.ts +44 -0
  460. package/dist/types/components/icon/icon.d.ts +22 -0
  461. package/dist/types/components/icon/index.d.ts +2 -0
  462. package/dist/types/components/icon/model.d.ts +12 -0
  463. package/dist/types/components/infotext/index.d.ts +2 -0
  464. package/dist/types/components/infotext/infotext.d.ts +23 -0
  465. package/dist/types/components/infotext/model.d.ts +5 -0
  466. package/dist/types/components/input/index.d.ts +2 -0
  467. package/dist/types/components/input/input.d.ts +71 -0
  468. package/dist/types/components/input/model.d.ts +39 -0
  469. package/dist/types/components/link/index.d.ts +2 -0
  470. package/dist/types/components/link/link.d.ts +35 -0
  471. package/dist/types/components/link/model.d.ts +24 -0
  472. package/dist/types/components/navigation/index.d.ts +2 -0
  473. package/dist/types/components/navigation/model.d.ts +5 -0
  474. package/dist/types/components/navigation/navigation.d.ts +20 -0
  475. package/dist/types/components/navigation-item/index.d.ts +2 -0
  476. package/dist/types/components/navigation-item/model.d.ts +34 -0
  477. package/dist/types/components/navigation-item/navigation-item.d.ts +39 -0
  478. package/dist/types/components/notification/index.d.ts +2 -0
  479. package/dist/types/components/notification/model.d.ts +57 -0
  480. package/dist/types/components/notification/notification.d.ts +36 -0
  481. package/dist/types/components/page/index.d.ts +2 -0
  482. package/dist/types/components/page/model.d.ts +32 -0
  483. package/dist/types/components/page/page.d.ts +24 -0
  484. package/dist/types/components/popover/index.d.ts +2 -0
  485. package/dist/types/components/popover/model.d.ts +18 -0
  486. package/dist/types/components/popover/popover.d.ts +31 -0
  487. package/dist/types/components/radio/index.d.ts +2 -0
  488. package/dist/types/components/radio/model.d.ts +7 -0
  489. package/dist/types/components/radio/radio.d.ts +41 -0
  490. package/dist/types/components/section/index.d.ts +2 -0
  491. package/dist/types/components/section/model.d.ts +5 -0
  492. package/dist/types/components/section/section.d.ts +21 -0
  493. package/dist/types/components/select/index.d.ts +2 -0
  494. package/dist/types/components/select/model.d.ts +43 -0
  495. package/dist/types/components/select/select.d.ts +62 -0
  496. package/dist/types/components/stack/index.d.ts +2 -0
  497. package/dist/types/components/stack/model.d.ts +34 -0
  498. package/dist/types/components/stack/stack.d.ts +24 -0
  499. package/dist/types/components/switch/index.d.ts +2 -0
  500. package/dist/types/components/switch/model.d.ts +12 -0
  501. package/dist/types/components/switch/switch.d.ts +44 -0
  502. package/dist/types/components/tab-item/index.d.ts +2 -0
  503. package/dist/types/components/tab-item/model.d.ts +24 -0
  504. package/dist/types/components/tab-item/tab-item.d.ts +34 -0
  505. package/dist/types/components/tab-list/index.d.ts +2 -0
  506. package/dist/types/components/tab-list/model.d.ts +5 -0
  507. package/dist/types/components/tab-list/tab-list.d.ts +19 -0
  508. package/dist/types/components/tab-panel/index.d.ts +2 -0
  509. package/dist/types/components/tab-panel/model.d.ts +10 -0
  510. package/dist/types/components/tab-panel/tab-panel.d.ts +20 -0
  511. package/dist/types/components/tabs/index.d.ts +2 -0
  512. package/dist/types/components/tabs/model.d.ts +47 -0
  513. package/dist/types/components/tabs/tabs.d.ts +39 -0
  514. package/dist/types/components/tag/index.d.ts +2 -0
  515. package/dist/types/components/tag/model.d.ts +45 -0
  516. package/dist/types/components/tag/tag.d.ts +34 -0
  517. package/dist/types/components/textarea/index.d.ts +2 -0
  518. package/dist/types/components/textarea/model.d.ts +30 -0
  519. package/dist/types/components/textarea/textarea.d.ts +63 -0
  520. package/dist/types/components/tooltip/index.d.ts +2 -0
  521. package/dist/types/components/tooltip/model.d.ts +7 -0
  522. package/dist/types/components/tooltip/tooltip.d.ts +30 -0
  523. package/dist/types/components.d.ts +1479 -0
  524. package/dist/types/index.d.ts +36 -0
  525. package/dist/types/shared/constants.d.ts +83 -0
  526. package/dist/types/shared/model.d.ts +445 -0
  527. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  528. package/dist/types/utils/form-components.d.ts +2 -0
  529. package/dist/types/utils/index.d.ts +61 -0
  530. package/dist/types/utils/navigation.d.ts +32 -0
  531. package/dist/vscode.html-custom-data.json +2245 -0
  532. package/dist/web-types.json +3991 -0
  533. package/package.json +48 -0
@@ -0,0 +1,2 @@
1
+ import{p as e,b as a}from"./p-1feee149.js";export{s as setNonce}from"./p-1feee149.js";import{g as i}from"./p-e1255160.js";var n=()=>{const a=import.meta.url;const s={};if(a!==""){s.resourcesUrl=new URL(".",a).href}return e(s)};n().then((async e=>{await i();return a([["p-871805e1",[[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]}]]],["p-08126c21",[[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]}]]],["p-71cb932e",[[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]}]]],["p-6f645f17",[[4,"db-checkbox",{id:[1],message:[1],showMessage:[4,"show-message"],checked:[4],indeterminate:[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]}]]],["p-78e5293a",[[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],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]}]]],["p-8e2a086b",[[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]}]]],["p-43aa16d7",[[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"]}]]],["p-d48f3770",[[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],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]}]]],["p-031e9fbf",[[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]}]]],["p-1c12853c",[[4,"db-badge",{placement:[1],id:[1],className:[1,"classname"],semantic:[1],size:[1],emphasis:[1],label:[1],text:[1],initialized:[32]}]]],["p-f65f4eac",[[4,"db-brand",{hideLogo:[4,"hide-logo"],icon:[1],showIcon:[4,"show-icon"],id:[1],className:[1,"classname"],text:[1]}]]],["p-2d32aa06",[[4,"db-card",{id:[1],className:[1,"classname"],behavior:[1],elevationLevel:[1,"elevation-level"],spacing:[1]}]]],["p-5a689165",[[0,"db-divider",{id:[1],margin:[1],variant:[1],emphasis:[1],width:[1],className:[1,"classname"]}]]],["p-683d690f",[[4,"db-icon",{id:[1],className:[1,"classname"],icon:[1],weight:[1],variant:[1],text:[1]}]]],["p-1066cd52",[[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]}]]],["p-10d30f53",[[4,"db-navigation",{id:[1],labelledBy:[1,"labelled-by"],className:[1,"classname"],_id:[32]}]]],["p-b0f1a571",[[4,"db-page",{fadeIn:[4,"fade-in"],documentOverflow:[1,"document-overflow"],variant:[1],id:[1],className:[1,"classname"],fontsLoaded:[32]}]]],["p-fea6db86",[[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]}]]],["p-1566cfef",[[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]}]]],["p-79d9caa7",[[4,"db-section",{id:[1],className:[1,"classname"],spacing:[1],width:[1],_id:[32]}]]],["p-6b6f1f7f",[[4,"db-stack",{id:[1],className:[1,"classname"],gap:[1],variant:[1],direction:[1],alignment:[1],justifyContent:[1,"justify-content"],wrap:[4]}]]],["p-a494046c",[[4,"db-switch",{id:[1],change:[16],blur:[16],focus:[16],visualAid:[4,"visual-aid"],size:[1],showLabel:[4,"show-label"],emphasis:[1],className:[1,"classname"],checked:[4],disabled:[4],describedbyid:[1],validation:[1],name:[1],required:[4],icon:[1],iconAfter:[1,"icon-after"],label:[1],_id:[32],_checked:[32],initialized:[32]}]]],["p-3f2e2d87",[[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]}]]],["p-b47af6eb",[[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]}]]],["p-79b43b42",[[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"]}]]],["p-ab8a1944",[[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]}]]],["p-2e318e2a",[[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]}]]],["p-a3be13fd",[[4,"db-infotext",{id:[1],className:[1,"classname"],icon:[1],semantic:[1],size:[1],showIcon:[4,"show-icon"],text:[1]}]]],["p-c6d54dd4",[[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]}]]]],e)}));
2
+ //# sourceMappingURL=db-ux.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","async","options","globalScripts","bootstrapLazy","id","name","arrowScrollDistance","orientation","behavior","initialSelectedMode","initialSelectedIndex","className","alignment","width","tabs","_id","_name","initialized","showScrollLeft","showScrollRight","scrollContainer","forceMobile","drawerOpen","burgerMenuLabel","forcedToMobile","initOpenIndex","variant","items","_initOpenIndexDone","message","showMessage","checked","indeterminate","change","validation","invalidMessage","required","validMessage","blur","focus","size","showLabel","disabled","value","label","messageIcon","_messageId","_validMessageId","_invalidMessageId","_descByIds","_voiceOverFallback","dataListId","input","minLength","maxLength","pattern","showIcon","icon","iconAfter","type","placeholder","step","max","min","readOnly","form","autocomplete","autofocus","dataList","_dataListId","_value","subNavigationExpanded","active","text","backButtonId","backButtonText","hasAreaPopup","hasSubNavigation","isSubNavigationExpanded","subNavigationId","navigationItemSafeTriangle","ariaLive","semantic","linkVariant","headline","showHeadline","timestamp","showTimestamp","closeable","closeButtonId","closeButtonText","_placeholderId","resize","wrap","spellCheck","rows","cols","placement","emphasis","hideLogo","elevationLevel","spacing","margin","weight","target","rel","role","hreflang","selected","current","content","labelledBy","fadeIn","documentOverflow","fontsLoaded","gap","animation","open","delay","isExpanded","describedbyid","direction","justifyContent","visualAid","_checked","removeButton","showCheckState","noText","overflow","showArrow","backdrop","rounded","defaultOpen","headlinePlain","_open","controls","_selected","state","ariaexpanded","ariapressed"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"0HAOA,IAAIA,EAAe,KAUjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAA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lE,KAAA,SAAAxE,EAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import"./p-1feee149.js";export{s as COLOR,t as COLORS,u as COLORS_SIMPLE,C as COLOR_CONST,r as COLOR_SIMPLE,j as DEFAULT_BACK,k as DEFAULT_BURGER_MENU,n as DEFAULT_CLOSE_BUTTON,g as DEFAULT_DATALIST_ID_SUFFIX,l as DEFAULT_ICON,D as DEFAULT_ID,i as DEFAULT_INVALID_MESSAGE,e as DEFAULT_INVALID_MESSAGE_ID_SUFFIX,a as DEFAULT_LABEL,c as DEFAULT_MESSAGE_ID_SUFFIX,b as DEFAULT_PLACEHOLDER,f as DEFAULT_PLACEHOLDER_ID_SUFFIX,m as DEFAULT_ROWS,h as DEFAULT_VALID_MESSAGE,d as DEFAULT_VALID_MESSAGE_ID_SUFFIX,w as DEFAULT_VIEWPORT,q as DENSITIES,p as DENSITY,o as DENSITY_CONST,x as DESKTOP_VIEWPORT,S as SEMANTIC,v as SEMANTICS,T as TESTING_VIEWPORTS}from"./p-af3834b6.js";export{a as addAttributeToChildren,c as cls,j as delay,f as filterPassingProps,k as getBooleanAsString,l as getHideProp,g as getRootProps,h as handleDataOutside,e as hasVoiceOver,d as isArrayOfStrings,i as isInView,s as stringPropVisible,u as uuid,v as visibleInVX,b as visibleInVY}from"./p-99d90022.js";export{N as NavigationItemSafeTriangle,i as isEventTargetNavigationItem}from"./p-34f88e4e.js";const E=["adaptive","neutral","critical","informational","warning","successful"];const _=["medium","small","large","none"];const A=["medium","small","large","none"];const I=["left","right","top","bottom","left-start","left-end","right-start","right-end","top-start","top-end","bottom-start","bottom-end"];const L=["none","3x-large","2x-large","x-large","large","medium","small","x-small","2x-small","3x-small"];const F=["horizontal","vertical"];const O=["full","auto"];const U=["full","medium","large","small"];const y=["none","slow","fast"];const R=["auto","fixed"];const P=["small","medium"];const V=["weak","strong"];const M=[...V,"origin"];const G=["invalid","valid","no-validation"];const X=["above","floating"];const B=["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"];const W=["time","true","false","date","page","step","location"];const z=["_self","_blank","_parent","_top"];const H=["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin","strict-origin-when-cross-origin","unsafe-url"];const Y=["start","center"];export{Y as AlignmentList,B as AutoCompleteList,V as EmphasisList,L as GapSpacingList,X as LabelVariantList,W as LinkCurrentList,H as LinkReferrerPolicyList,z as LinkTargetList,A as MarginList,U as MaxWidthList,F as OrientationList,I as PlacementList,y as PopoverDelayList,R as PopoverWidthList,E as SemanticList,P as SizeList,_ as SpacingList,M as TagEmphasisList,G as ValidationList,O as WidthList};
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SemanticList","SpacingList","MarginList","PlacementList","GapSpacingList","OrientationList","WidthList","MaxWidthList","PopoverDelayList","PopoverWidthList","SizeList","EmphasisList","TagEmphasisList","ValidationList","LabelVariantList","AutoCompleteList","LinkCurrentList","LinkTargetList","LinkReferrerPolicyList","AlignmentList"],"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 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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,Y,MAErEC,EAAkB,CAAC,QAAS,SAAU,UAAW,Q,MAEjDC,EAA0B,CAAC,cAAe,6BAA8B,SAAU,2BAA4B,cAAe,gBAAiB,kCAAmC,c,MA6EjLC,EAAiB,CAAC,QAAS,iB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,c as s,h as t}from"./p-1feee149.js";import{e as h,j as e,s as a,u as d,c as l,l as n}from"./p-99d90022.js";import{i as o,h as c,c as f,d as r,e as u,b as v,m as b,a as m}from"./p-af3834b6.js";const p=class{constructor(t){i(this,t);this.onInput=s(this,"onInput",7);this.onChange=s(this,"onChange",7);this.onBlur=s(this,"onBlur",7);this.onFocus=s(this,"onFocus",7);this._id=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._descByIds="";this._value="";this._voiceOverFallback=""}handleInput(i){if(this.onInput){this.onInput.emit(i)}if(this.input){this.input(i)}}handleChange(i){var s,t,d,l,n,f;if(this.onChange){this.onChange.emit(i)}if(this.change){this.change(i)}if(!((s=this._ref)===null||s===void 0?void 0:s.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;if(h()){this._voiceOverFallback=(l=(t=this.invalidMessage)!==null&&t!==void 0?t:(d=this._ref)===null||d===void 0?void 0:d.validationMessage)!==null&&l!==void 0?l:o;e((()=>this._voiceOverFallback=""),1e3)}}else if(this.validation==="valid"||((n=this._ref)===null||n===void 0?void 0:n.validity.valid)&&(this.required||this.minLength||this.maxLength)){this._descByIds=this._validMessageId;if(h()){this._voiceOverFallback=(f=this.validMessage)!==null&&f!==void 0?f:c;e((()=>this._voiceOverFallback=""),1e3)}}else if(a(this.message,this.showMessage)){this._descByIds=this._messageId}else{this._descByIds=""}}handleBlur(i){if(this.onBlur){this.onBlur.emit(i)}if(this.blur){this.blur(i)}}handleFocus(i){if(this.onFocus){this.onFocus.emit(i)}if(this.focus){this.focus(i)}}enableAttributePassing(i,s){const t=i===null||i===void 0?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let h=0;h<s.length;h++){const e=s.item(h);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){i.setAttribute(e.name,e.value);t.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const h=e.value.replace("hydrated","").trim();const a=i.getAttribute("class");i.setAttribute(e.name,`${a?`${a} `:""}${h}`);if(s){t.setAttribute("class","hydrated")}else{t.removeAttribute(e.name)}}}}}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-textarea");const s=(i=this.id)!==null&&i!==void 0?i:`textarea-${d()}`;this._id=s;this._messageId=s+f;this._validMessageId=s+r;this._invalidMessageId=s+u}componentDidUpdate(){if(this._id){const i=this._id+f;this._messageId=i;this._validMessageId=this._id+r;this._invalidMessageId=this._id+u;if(a(this.message,this.showMessage)){this._descByIds=i}}this._value=this.value}render(){var i,s,h,e,d,f,r,u;return t("div",{key:"00e7421cc95291ae0b42e710f7e0dab15abf83f4",class:l("db-textarea",this.className),"data-variant":this.variant,"data-hide-label":n(this.showLabel)},t("label",{key:"038acbf2c0f722961956c4ab35f5ea05aece9f1d",htmlFor:this._id},(i=this.label)!==null&&i!==void 0?i:m),t("textarea",{key:"a4cd136c1b4067bbd057c0e1460894c69f398fff","aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,disabled:this.disabled,required:this.required,readOnly:this.readOnly,form:this.form,maxLength:this.maxLength,minLength:this.minLength,name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:(s=this.value)!==null&&s!==void 0?s:this._value,"aria-describedby":this._descByIds,placeholder:(h=this.placeholder)!==null&&h!==void 0?h:v,rows:(e=this.rows)!==null&&e!==void 0?e:b,cols:this.cols}),a(this.message,this.showMessage)?t("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,t("db-infotext",{key:"cd978d641857528de8f5b45e5c835a5e5e40d2f6",size:"small",semantic:"successful",id:this._validMessageId},(d=this.validMessage)!==null&&d!==void 0?d:c),t("db-infotext",{key:"29176035e95cc91274d6ee06384ee4e131af6da3",size:"small",semantic:"critical",id:this._invalidMessageId},(u=(f=this.invalidMessage)!==null&&f!==void 0?f:(r=this._ref)===null||r===void 0?void 0:r.validationMessage)!==null&&u!==void 0?u:o),t("span",{key:"42a703d938ea2c635b23372a8dd782a1e1ea34ef","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}};export{p as db_textarea};
2
+ //# sourceMappingURL=p-031e9fbf.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DBTextarea","constructor","hostRef","this","_id","undefined","_messageId","_validMessageId","_invalidMessageId","_descByIds","_value","_voiceOverFallback","handleInput","event","onInput","emit","input","handleChange","onChange","change","_a","_ref","validity","valid","validation","hasVoiceOver","_d","_b","invalidMessage","_c","validationMessage","DEFAULT_INVALID_MESSAGE","delay","_e","required","minLength","maxLength","_f","validMessage","DEFAULT_VALID_MESSAGE","stringPropVisible","message","showMessage","handleBlur","onBlur","blur","handleFocus","onFocus","focus","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","componentDidLoad","mId","id","uuid","DEFAULT_MESSAGE_ID_SUFFIX","DEFAULT_VALID_MESSAGE_ID_SUFFIX","DEFAULT_INVALID_MESSAGE_ID_SUFFIX","componentDidUpdate","messageId","render","h","key","class","cls","className","variant","getHideProp","showLabel","htmlFor","label","DEFAULT_LABEL","ref","el","resize","disabled","readOnly","form","wrap","spellcheck","spellCheck","autocomplete","placeholder","DEFAULT_PLACEHOLDER","rows","DEFAULT_ROWS","cols","size","icon","messageIcon","semantic","_h","_g","role"],"sources":["src/components/textarea/textarea.tsx"],"sourcesContent":["import { DBTextareaProps, DBTextareaState } from \"./model\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport {\n cls,\n delay,\n getHideProp,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n DEFAULT_INVALID_MESSAGE,\n DEFAULT_INVALID_MESSAGE_ID_SUFFIX,\n DEFAULT_LABEL,\n DEFAULT_MESSAGE_ID_SUFFIX,\n DEFAULT_PLACEHOLDER,\n DEFAULT_ROWS,\n DEFAULT_VALID_MESSAGE,\n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InputEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\n\nimport { Component, h, Fragment, Event, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-textarea\",\n})\nexport class DBTextarea {\n private _ref!: HTMLTextAreaElement | null;\n @Prop() id: DBTextareaProps[\"id\"];\n @Prop() message: DBTextareaProps[\"message\"];\n @Prop() showMessage: DBTextareaProps[\"showMessage\"];\n @Prop() value: DBTextareaProps[\"value\"];\n @Event() onInput: any;\n @Prop() input: DBTextareaProps[\"input\"];\n @Event() onChange: any;\n @Prop() change: DBTextareaProps[\"change\"];\n @Prop() validation: DBTextareaProps[\"validation\"];\n @Prop() invalidMessage: DBTextareaProps[\"invalidMessage\"];\n @Prop() required: DBTextareaProps[\"required\"];\n @Prop() minLength: DBTextareaProps[\"minLength\"];\n @Prop() maxLength: DBTextareaProps[\"maxLength\"];\n @Prop() validMessage: DBTextareaProps[\"validMessage\"];\n @Event() onBlur: any;\n @Prop() blur: DBTextareaProps[\"blur\"];\n @Event() onFocus: any;\n @Prop() focus: DBTextareaProps[\"focus\"];\n @Prop({attribute: \"classname\"}) className: DBTextareaProps[\"className\"];\n @Prop() variant: DBTextareaProps[\"variant\"];\n @Prop() showLabel: DBTextareaProps[\"showLabel\"];\n @Prop() label: DBTextareaProps[\"label\"];\n @Prop() resize: DBTextareaProps[\"resize\"];\n @Prop() disabled: DBTextareaProps[\"disabled\"];\n @Prop() readOnly: DBTextareaProps[\"readOnly\"];\n @Prop() form: DBTextareaProps[\"form\"];\n @Prop() name: DBTextareaProps[\"name\"];\n @Prop() wrap: DBTextareaProps[\"wrap\"];\n @Prop() spellCheck: DBTextareaProps[\"spellCheck\"];\n @Prop() autocomplete: DBTextareaProps[\"autocomplete\"];\n @Prop() placeholder: DBTextareaProps[\"placeholder\"];\n @Prop() rows: DBTextareaProps[\"rows\"];\n @Prop() cols: DBTextareaProps[\"cols\"];\n @Prop() messageIcon: DBTextareaProps[\"messageIcon\"];\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _descByIds = \"\";\n @State() _value = \"\";\n @State() _voiceOverFallback = \"\";\n\n handleInput(event: InputEvent<HTMLTextAreaElement>) {\n if (this.onInput) {\n this.onInput.emit(event);\n }\n if (this.input) {\n this.input(event);\n }\n }\n handleChange(event: ChangeEvent<HTMLTextAreaElement>) {\n if (this.onChange) {\n this.onChange.emit(event);\n }\n if (this.change) {\n this.change(event);\n }\n /* For a11y reasons we need to map the correct message with the textarea */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback =\n this.invalidMessage ??\n this._ref?.validationMessage ??\n DEFAULT_INVALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.validation === \"valid\" ||\n (this._ref?.validity.valid &&\n (this.required || this.minLength || this.maxLength))\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = \"\";\n }\n }\n handleBlur(event: InteractionEvent<HTMLTextAreaElement>) {\n if (this.onBlur) {\n this.onBlur.emit(event);\n }\n if (this.blur) {\n this.blur(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLTextAreaElement>) {\n if (this.onFocus) {\n this.onFocus.emit(event);\n }\n if (this.focus) {\n this.focus(event);\n }\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: HTMLTextAreaElement | 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-textarea\");\n const mId = this.id ?? `textarea-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n }\n\n componentDidUpdate() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n }\n this._value = this.value;\n }\n\n render() {\n return (\n <div\n class={cls(\"db-textarea\", this.className)}\n data-variant={this.variant}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>{this.label ?? DEFAULT_LABEL}</label>\n <textarea\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-resize={this.resize}\n disabled={this.disabled}\n required={this.required}\n readOnly={this.readOnly}\n form={this.form}\n maxLength={this.maxLength}\n minLength={this.minLength}\n name={this.name}\n wrap={this.wrap}\n spellcheck={this.spellCheck}\n autocomplete={this.autocomplete}\n onInput={(event) => this.handleInput(event)}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n value={this.value ?? this._value}\n aria-describedby={this._descByIds}\n placeholder={this.placeholder ?? DEFAULT_PLACEHOLDER}\n rows={this.rows ?? DEFAULT_ROWS}\n cols={this.cols}\n ></textarea>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage ?? DEFAULT_VALID_MESSAGE}\n </db-infotext>\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this.invalidMessage ??\n this._ref?.validationMessage ??\n DEFAULT_INVALID_MESSAGE}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"],"mappings":"oNAoCaA,EAAU,MAHtB,WAAAC,CAAAC,G,8IAuCUC,KAAAC,IAAMC,UACNF,KAAAG,WAAaD,UACbF,KAAAI,gB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,SAAA,EAAAA,EAAIyE,EACjCC,MAAM7E,EAAAvB,KAAKoG,QAAI,MAAA7E,SAAA,EAAAA,EAAI8E,EACnBC,KAAMtG,KAAKsG,OAEZjE,EAAkBrC,KAAKsC,QAAStC,KAAKuC,aACpCsC,EAAA,eACE0B,KAAK,QACLC,KAAMxG,KAAKyG,YACXpC,GAAIrE,KAAKG,YAERH,KAAKsC,SAEN,KACJuC,EAAA,eAAAC,IAAA,2CACEyB,KAAK,QACLG,SAAS,aACTrC,GAAIrE,KAAKI,kBAER0B,EAAA9B,KAAKmC,gBAAY,MAAAL,SAAA,EAAAA,EAAIM,GAExByC,EAAA,eAAAC,IAAA,2CACEyB,KAAK,QACLG,SAAS,WACTrC,GAAIrE,KAAKK,oBAERsG,GAAAzE,EAAAlC,KAAKyB,kBAAc,MAAAS,SAAA,EAAAA,GAClB0E,EAAA5G,KAAKkB,QAAI,MAAA0F,SAAA,SAAAA,EAAEjF,qBAAiB,MAAAgF,SAAA,EAAAA,EAC5B/E,GAEJiD,EAAA,QAAAC,IAAA,kEAA2B,OAAO+B,KAAK,UACpC7G,KAAKQ,oB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as a,c as e,h as d}from"./p-1feee149.js";import{u as c,a as s,c as i}from"./p-99d90022.js";import{D as t,k as b}from"./p-af3834b6.js";import{i as n}from"./p-34f88e4e.js";const o=class{constructor(d){a(this,d);this.onToggle=e(this,"onToggle",7);this._id=t;this.initialized=false;this.forcedToMobile=false}toggle(){if(this.onToggle){this.onToggle.emit(!this.drawerOpen)}}handleNavigationItemClick(a){if(n(a)){this.toggle()}}enableAttributePassing(a,e){const d=a===null||a===void 0?void 0:a.closest(e);if(a&&d){const e=d.attributes;for(let c=0;c<e.length;c++){const s=e.item(c);if(s&&(s.name.startsWith("data-")||s.name.startsWith("aria-"))){a.setAttribute(s.name,s.value);d.removeAttribute(s.name)}if(s&&s.name==="class"){const e=s.value.includes("hydrated");const c=s.value.replace("hydrated","").trim();const i=a.getAttribute("class");a.setAttribute(s.name,`${i?`${i} `:""}${c}`);if(e){d.setAttribute("class","hydrated")}else{d.removeAttribute(s.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-header");this.initialized=true;this._id=this.id||"header-"+c()}componentDidUpdate(){if(this.initialized&&document&&this._id&&this.forceMobile){const a=document.getElementById(this._id);if(a){s(a,{key:"data-force-mobile",value:"true"})}this.forcedToMobile=true}}render(){var a;return d("header",{key:"90e4860c36a39e77aa080e188c190d8213e05f31",class:i("db-header",this.className),ref:a=>{this._ref=a},id:this._id,"data-width":this.width,"data-on-forcing-mobile":this.forceMobile&&!this.forcedToMobile},d("db-drawer",{key:"baab2ea24ee50f1c57cdeee348a32a0bfe727181",class:"db-header-drawer",spacing:"small",rounded:true,open:this.drawerOpen,onClose:()=>this.toggle()},d("div",{key:"04227e024f8aa835274b00edeb729f248b843432",class:"db-header-drawer-navigation"},d("div",{key:"49255007dd63d0f48c403c6ea6982e29cb3be8ce",class:"db-header-navigation",onClick:a=>this.handleNavigationItemClick(a)},d("slot",{key:"52b2c8cea483255cebf7bbf824e490a2805c0812"})),d("div",{key:"d53b476dd0eb375a91571ed8b25f09533952b7ac",class:"db-header-meta-navigation"},d("slot",{key:"d7aca8fa660affa66857c78c70bf6d3bb6baf577",name:"metaNavigation"}))),d("div",{key:"1baa944ea37df34349cafe83ff9601a96b2f3845",class:"db-header-secondary-action"},d("slot",{key:"2df7106c6096adb6642a58d2afd865babb9a2aed",name:"secondaryAction"}))),d("div",{key:"3444df8cd284cf2f09fe8bcd561605eed25547ac",class:"db-header-meta-navigation"},d("slot",{key:"b3cdfb520b9bfaa69586c6d9d397b2564962e38e",name:"metaNavigation"})),d("div",{key:"e6f467e4e541179d37d30acc045261a007cf65d1",class:"db-header-navigation-bar"},d("div",{key:"5c6f78bcd3516b699a5f2b0c9c26a6142f6c534b",class:"db-header-brand-container"},d("slot",{key:"9fb25e7cdc3c44e1b7a388083c1e16ec66bcd100",name:"brand"})),d("div",{key:"a59204c004f0e03aaa7cf6190c304db448f9783e",class:"db-header-navigation-container"},d("div",{key:"7a4c5ab818ba78209bc63a6baecb9f0460355d0b",class:"db-header-navigation"},d("slot",{key:"799cbf46a06b87f8c2c7a42f17a0f2c23c65481f"})),d("div",{key:"756293dd8ecfff883cb90cc1ba904503beea77eb",class:"db-header-primary-action"},d("slot",{key:"181fa4b77a2c10bf091a6690b97d4e665d4fd824",name:"primaryAction"}))),d("div",{key:"0ba2601633b491a60b33166253a7da6695249c0a",class:"db-header-action-container"},d("div",{key:"21d5d4145aa40c14c475b9f9d72d0ce885aff81e",class:"db-header-burger-menu-container"},d("db-button",{key:"732bb354bbb363b32365215f2db1f25b3a54cee3",icon:"menu",variant:"ghost",id:this._id+"-burger-menu",noText:true,onClick:()=>this.toggle()},(a=this.burgerMenuLabel)!==null&&a!==void 0?a:b)),d("div",{key:"c9e3f15b97eabaf94dcaee166f7d0e31577ade58",class:"db-header-secondary-action"},d("slot",{key:"5e783e8c6347e28264f466829cd495973a6d23d8",name:"secondaryAction"})))))}};export{o as db_header};
2
+ //# sourceMappingURL=p-08126c21.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DBHeader","constructor","hostRef","this","_id","DEFAULT_ID","initialized","forcedToMobile","toggle","onToggle","emit","drawerOpen","handleNavigationItemClick","event","isEventTargetNavigationItem","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","componentDidLoad","_ref","id","uuid","componentDidUpdate","document","forceMobile","headerElement","getElementById","addAttributeToChildren","key","render","h","class","cls","className","ref","el","width","spacing","rounded","open","onClose","onClick","icon","variant","noText","_a","burgerMenuLabel","DEFAULT_BURGER_MENU"],"sources":["src/components/header/header.tsx"],"sourcesContent":["import { DBHeaderProps, DBHeaderState } from \"./model\";\nimport { addAttributeToChildren, cls, uuid } from \"../../utils\";\nimport { DBButton } from \"../button/button\";\nimport { DBDrawer } from \"../drawer/drawer\";\nimport { DEFAULT_BURGER_MENU, DEFAULT_ID } from \"../../shared/constants\";\nimport { isEventTargetNavigationItem } from \"../../utils/navigation\";\n\nimport { Component, h, Fragment, Event, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot metaNavigation - TODO: Add description for slotMetaNavigation\n * @slot secondaryAction - TODO: Add description for slotSecondaryAction\n * @slot brand - TODO: Add description for slotBrand\n * @slot primaryAction - TODO: Add description for slotPrimaryAction\n */\n @Component({\n tag: \"db-header\",\n})\nexport class DBHeader {\n private _ref!: HTMLDivElement | null;\n @Prop() id: DBHeaderProps[\"id\"];\n @Prop() forceMobile: DBHeaderProps[\"forceMobile\"];\n @Event() onToggle: any;\n @Prop() drawerOpen: DBHeaderProps[\"drawerOpen\"];\n @Prop({attribute: \"classname\"}) className: DBHeaderProps[\"className\"];\n @Prop() width: DBHeaderProps[\"width\"];\n\n @Prop() burgerMenuLabel: DBHeaderProps[\"burgerMenuLabel\"];\n @State() _id = DEFAULT_ID;\n @State() initialized = false;\n @State() forcedToMobile = false;\n\n toggle() {\n if (this.onToggle) {\n this.onToggle.emit(!this.drawerOpen);\n }\n }\n handleNavigationItemClick(event: unknown) {\n if (isEventTargetNavigationItem(event)) {\n this.toggle();\n }\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-header\");\n this.initialized = true;\n this._id = this.id || \"header-\" + uuid();\n }\n\n componentDidUpdate() {\n if (this.initialized && document && this._id && this.forceMobile) {\n const headerElement = document.getElementById(this._id) as HTMLElement;\n if (headerElement) {\n // Adds this attribute to the header to enable all styling which would have\n // @media screen and (min-width: $db-screens-m) to show mobile navigation on a desktop device\n addAttributeToChildren(headerElement, {\n key: \"data-force-mobile\",\n value: \"true\",\n });\n }\n this.forcedToMobile = true;\n }\n }\n\n render() {\n return (\n <header\n class={cls(\"db-header\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-width={this.width}\n data-on-forcing-mobile={this.forceMobile && !this.forcedToMobile}\n >\n <db-drawer\n class=\"db-header-drawer\"\n spacing=\"small\"\n rounded={true}\n open={this.drawerOpen}\n onClose={() => this.toggle()}\n >\n <div class=\"db-header-drawer-navigation\">\n <div\n class=\"db-header-navigation\"\n onClick={(event) => this.handleNavigationItemClick(event)}\n >\n <slot></slot>\n </div>\n <div class=\"db-header-meta-navigation\">\n <slot name=\"metaNavigation\"></slot>\n </div>\n </div>\n <div class=\"db-header-secondary-action\">\n <slot name=\"secondaryAction\"></slot>\n </div>\n </db-drawer>\n <div class=\"db-header-meta-navigation\">\n <slot name=\"metaNavigation\"></slot>\n </div>\n <div class=\"db-header-navigation-bar\">\n <div class=\"db-header-brand-container\">\n <slot name=\"brand\"></slot>\n </div>\n <div class=\"db-header-navigation-container\">\n <div class=\"db-header-navigation\">\n <slot></slot>\n </div>\n <div class=\"db-header-primary-action\">\n <slot name=\"primaryAction\"></slot>\n </div>\n </div>\n <div class=\"db-header-action-container\">\n <div class=\"db-header-burger-menu-container\">\n <db-button\n icon=\"menu\"\n variant=\"ghost\"\n id={this._id + \"-burger-menu\"}\n noText={true}\n onClick={() => this.toggle()}\n >\n {this.burgerMenuLabel ?? DEFAULT_BURGER_MENU}\n </db-button>\n </div>\n <div class=\"db-header-secondary-action\">\n <slot name=\"secondaryAction\"></slot>\n </div>\n </div>\n </div>\n </header>\n );\n }\n}\n"],"mappings":"yLAoBaA,EAAQ,MAHpB,WAAAC,CAAAC,G,6CAaUC,KAAAC,IAAMC,EACNF,KAAAG,YAAc,MACdH,KAAAI,eAAiB,K,CAE1B,MAAAC,GACE,GAAIL,KAAKM,SAAU,CACjBN,KAAKM,SAASC,MAAMP,KAAKQ,W,EAG7B,yBAAAC,CAA0BC,GACxB,GAAIC,EAA4BD,GAAQ,CACtCV,KAAKK,Q,EASD,sBAAAO,CACNC,EACAC,GAEA,MAAMC,EAASF,IAAO,MAAPA,SAAO,SAAPA,EAASG,QAAQF,GAChC,GAAID,GAAWE,EAAQ,CACrB,MAAME,EAAaF,EAAOE,WAC1B,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAWE,OAAQD,IAAK,CAC1C,MAAME,EAAOH,EAAWI,KAAKH,GAC7B,GACEE,IACCA,EAAKE,KAAKC,WAAW,UAAYH,EAAKE,KAAKC,WAAW,UACvD,CACAV,EAAQW,aAAaJ,EAAKE,KAAMF,EAAKK,OACrCV,EAAOW,gBAAgBN,EAAKE,K,CAE9B,GAAIF,GAAQA,EAAKE,OAAS,QAAS,CACjC,MAAMK,EAAiBP,EAAKK,MAAMG,SAAS,YAC3C,MAAMH,EAAQL,EAAKK,MAAMI,QAAQ,WAAY,IAAIC,OACjD,MAAMC,EAAelB,EAAQmB,aAAa,SAC1CnB,EAAQW,aACNJ,EAAKE,KACL,GAAGS,EAAe,GAAGA,KAAkB,KAAKN,KAE9C,GAAIE,EAAgB,CAElBZ,EAAOS,aAAa,QAAS,W,KACxB,CACL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B,KAAK,WAEbuB,EAAA,OAAAF,IAAA,2CAAKG,MAAM,kCACTD,EAAA,OAAAF,IAAA,2CAAKG,MAAM,wBACTD,EAAA,QAAAF,IAAA,8CAEFE,EAAA,OAAAF,IAAA,2CAAKG,MAAM,4BACTD,EAAA,QAAAF,IAAA,2CAAMrB,KAAK,oBAGfuB,EAAA,OAAAF,IAAA,2CAAKG,MAAM,8BACTD,EAAA,OAAAF,IAAA,2CAAKG,MAAM,mCACTD,EAAA,aAAAF,IAAA,2CACEc,KAAK,OACLC,QAAQ,QACRvB,GAAInC,KAAKC,IAAM,eACf0D,OAAQ,KACRH,QAAS,IAAMxD,KAAKK,WAEnBuD,EAAA5D,KAAK6D,mBAAe,MAAAD,SAAA,EAAAA,EAAIE,IAG7BjB,EAAA,OAAAF,IAAA,2CAAKG,MAAM,8BACTD,EAAA,QAAAF,IAAA,2CAAMrB,KAAK,uB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as i}from"./p-1feee149.js";import{c as a,k as e,l as r}from"./p-99d90022.js";const h=class{constructor(i){t(this,i);this.onClick=s(this,"onClick",7)}handleClick(t){if(this.onClick){this.onClick.emit(t)}}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const r=t.getAttribute("class");t.setAttribute(e.name,`${r?`${r} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-link")}render(){var t;return i("a",{key:"0ea3fa888ff388e9dab0d50ae38e61f07d591684",class:a("db-link",this.className),ref:t=>{this._ref=t},id:this.id,href:this.href,target:this.target,rel:this.rel,role:this.role,hrefLang:this.hreflang,"aria-disabled":e(this.disabled),tabIndex:this.disabled?-1:0,"aria-selected":this.selected,"aria-label":this.label,"aria-current":this.current,"data-size":this.size,"data-hide-icon-after":r((t=this.showIcon)!==null&&t!==void 0?t:true),"data-variant":this.variant,"data-content":this.content||"internal",onClick:t=>this.handleClick(t)},this.text?this.text:i("slot",null))}};export{h as db_link};
2
+ //# sourceMappingURL=p-1066cd52.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DBLink","handleClick","event","this","onClick","emit","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","componentDidLoad","_ref","render","h","key","class","cls","className","ref","el","id","href","target","rel","role","hrefLang","hreflang","getBooleanAsString","disabled","tabIndex","selected","label","current","size","getHideProp","_a","showIcon","variant","content","text"],"sources":["src/components/link/link.tsx"],"sourcesContent":["import { DBLinkProps, DBLinkState } from \"./model\";\nimport { cls, getBooleanAsString, getHideProp } from \"../../utils\";\nimport { ClickEvent } from \"../../shared/model\";\n\nimport { Component, h, Fragment, Event, Prop } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-link\",\n})\nexport class DBLink {\n private _ref!: HTMLAnchorElement | null;\n @Event() onClick: any;\n @Prop() id: DBLinkProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBLinkProps[\"className\"];\n @Prop() href: DBLinkProps[\"href\"];\n @Prop() target: DBLinkProps[\"target\"];\n @Prop() rel: DBLinkProps[\"rel\"];\n @Prop() role: DBLinkProps[\"role\"];\n @Prop() hreflang: DBLinkProps[\"hreflang\"];\n @Prop() disabled: DBLinkProps[\"disabled\"];\n @Prop() selected: DBLinkProps[\"selected\"];\n @Prop() label: DBLinkProps[\"label\"];\n @Prop() current: DBLinkProps[\"current\"];\n @Prop() size: DBLinkProps[\"size\"];\n @Prop() showIcon: DBLinkProps[\"showIcon\"];\n @Prop() variant: DBLinkProps[\"variant\"];\n @Prop() content: DBLinkProps[\"content\"];\n @Prop() text: DBLinkProps[\"text\"];\n\n\n handleClick(event: ClickEvent<HTMLAnchorElement>) {\n if (this.onClick) {\n this.onClick.emit(event);\n }\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-link\");\n }\n\n render() {\n return (\n <a\n class={cls(\"db-link\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n href={this.href}\n target={this.target}\n rel={this.rel}\n role={this.role}\n hrefLang={this.hreflang}\n aria-disabled={getBooleanAsString(this.disabled)}\n tabIndex={this.disabled ? -1 : 0}\n aria-selected={this.selected}\n aria-label={this.label}\n aria-current={this.current}\n data-size={this.size}\n data-hide-icon-after={getHideProp(this.showIcon ?? true)}\n data-variant={this.variant}\n data-content={this.content || \"internal\"}\n onClick={(event) => this.handleClick(event)}\n >\n {this.text ? this.text : <slot></slot>}\n </a>\n );\n }\n}\n"],"m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AK4C,SAAQ,aAChB5C,KAAK6C,MAAK,eACR7C,KAAK8C,QAAO,YACf9C,KAAK+C,KAAI,uBACEC,GAAYC,EAAAjD,KAAKkD,YAAQ,MAAAD,SAAA,EAAAA,EAAI,MAAK,eAC1CjD,KAAKmD,QAAO,eACZnD,KAAKoD,SAAW,WAC9BnD,QAAUF,GAAUC,KAAKF,YAAYC,IAEpCC,KAAKqD,KAAOrD,KAAKqD,KAAO1B,EAAA,a","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as a,h as s}from"./p-1feee149.js";import{u as t,c as e}from"./p-99d90022.js";import{D as i}from"./p-af3834b6.js";const o=class{constructor(s){a(this,s);this._id=i}enableAttributePassing(a,s){const t=a===null||a===void 0?void 0:a.closest(s);if(a&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const i=s.item(e);if(i&&(i.name.startsWith("data-")||i.name.startsWith("aria-"))){a.setAttribute(i.name,i.value);t.removeAttribute(i.name)}if(i&&i.name==="class"){const s=i.value.includes("hydrated");const e=i.value.replace("hydrated","").trim();const o=a.getAttribute("class");a.setAttribute(i.name,`${o?`${o} `:""}${e}`);if(s){t.setAttribute("class","hydrated")}else{t.removeAttribute(i.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation");this._id=this.id||"navigation-"+t()}render(){return s("nav",{key:"4591f1348a2d7fceafc4ad0fbd6ebc768b819af1",class:e("db-navigation",this.className),ref:a=>{this._ref=a},id:this._id,"aria-labelledby":this.labelledBy},s("menu",{key:"ade607816e1b561f5c74eb18ea7dbbef7d8e0d93"},s("slot",{key:"02578f17abb1eb0513aa2663b5617427eaa291c5"})))}};export{o as db_navigation};
2
+ //# sourceMappingURL=p-10d30f53.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DBNavigation","constructor","hostRef","this","_id","DEFAULT_ID","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","componentDidLoad","_ref","id","uuid","render","h","key","class","cls","className","ref","el","labelledBy"],"sources":["src/components/navigation/navigation.tsx"],"sourcesContent":["import { DBNavigationProps, DBNavigationState } from \"./model\";\nimport { cls, uuid } from \"../../utils\";\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-navigation\",\n})\nexport class DBNavigation {\n private _ref!: HTMLDivElement | null;\n @Prop() id: DBNavigationProps[\"id\"];\n @Prop() labelledBy: DBNavigationProps[\"labelledBy\"];\n @Prop({attribute: \"classname\"}) className: DBNavigationProps[\"className\"];\n\n @State() _id = DEFAULT_ID;\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-navigation\");\n this._id = this.id || \"navigation-\" + uuid();\n }\n\n render() {\n return (\n <nav\n class={cls(\"db-navigation\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n aria-labelledby={this.labelledBy}\n >\n <menu>\n <slot></slot>\n </menu>\n </nav>\n );\n }\n}\n"],"mappings":"gIAcaA,EAAY,MAHxB,WAAAC,CAAAC,G,UASUC,KAAAC,IAAMC,C,CAOP,sBAAAC,CACNC,EACAC,GAEA,MAAMC,EAASF,IAAO,MAAPA,SAAO,SAAPA,EAASG,QAAQF,GAChC,GAAID,GAAWE,EAAQ,CACrB,MAAME,EAAaF,EAAOE,WAC1B,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAWE,OAAQD,IAAK,CAC1C,MAAME,EAAOH,EAAWI,KAAKH,GAC7B,GACEE,IACCA,EAAKE,KAAKC,WAAW,UAAYH,EAAKE,KAAKC,WAAW,UACvD,CACAV,EAAQW,aAAaJ,EAAKE,KAAMF,EAAKK,OACrCV,EAAOW,gBAAgBN,EAAKE,K,CAE9B,GAAIF,GAAQA,EAAKE,OAAS,QAAS,CACjC,MAAMK,EAAiBP,EAAKK,MAAMG,SAAS,YAC3C,MAAMH,EAAQL,EAAKK,MAAMI,QAAQ,WAAY,IAAIC,OACjD,MAAMC,EAAelB,EAAQmB,aAAa,SAC1CnB,EAAQW,aACNJ,EAAKE,KACL,GAAGS,EAAe,GAAGA,KAAkB,KAAKN,KAE9C,GAAIE,EAAgB,CAElBZ,EAAOS,aAAa,QAAS,W,KACxB,CACLT,EAAOW,gBAAgBN,EAAKE,K,KAOtC,gBAAAW,GACExB,KAAKG,uBAAuBH,KAAKyB,KAAM,iBACvCzB,KAAKC,IAAMD,KAAK0B,IAAM,cAAgBC,G,CAGxC,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,MAAOC,EAAI,gBAAiBhC,KAAKiC,WACjCC,IAAMC,IACJnC,KAAKyB,KAAOU,CAAE,EAEhBT,GAAI1B,KAAKC,IAAG,kBACKD,KAAKoC,YAEtBP,EAAA,QAAAC,IAAA,4CACED,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,c as t,h as s}from"./p-1feee149.js";import{u as h,c as a,l as d}from"./p-99d90022.js";const e=class{constructor(s){i(this,s);this.onChange=t(this,"onChange",7);this.onBlur=t(this,"onBlur",7);this.onFocus=t(this,"onFocus",7);this.initialized=false;this._id=undefined}handleChange(i){if(this.onChange){this.onChange.emit(i)}if(this.change){this.change(i)}}handleBlur(i){if(this.onBlur){this.onBlur.emit(i)}if(this.blur){this.blur(i)}}handleFocus(i){if(this.onFocus){this.onFocus.emit(i)}if(this.focus){this.focus(i)}}enableAttributePassing(i,t){const s=i===null||i===void 0?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const a=t.item(h);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){i.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const t=a.value.includes("hydrated");const h=a.value.replace("hydrated","").trim();const d=i.getAttribute("class");i.setAttribute(a.name,`${d?`${d} `:""}${h}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-radio");this.initialized=true;this._id=(i=this.id)!==null&&i!==void 0?i:`radio-${h()}`}componentDidUpdate(){if(this.checked&&this.initialized&&document&&this._id){const i=document===null||document===void 0?void 0:document.getElementById(this._id);if(i){if(this.checked!=undefined){i.checked=true}}}}render(){return s("label",{key:"05c0a0bb7843d804b0cc07da56c7d8101a9a0cb2",class:a("db-radio",this.className),"data-size":this.size,"data-hide-label":d(this.showLabel),htmlFor:this._id},s("input",{key:"dd1b285bab651829e6b0dc7293d052b75f9c75fe",type:"radio","aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,ref:i=>{this._ref=i},id:this._id,name:this.name,checked:this.checked,disabled:this.disabled,"aria-describedby":this.describedbyid,value:this.value,required:this.required,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i)}),this.label?this.label:s("slot",null))}};export{e as db_radio};
2
+ //# sourceMappingURL=p-1566cfef.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DBRadio","constructor","hostRef","this","initialized","_id","undefined","handleChange","event","onChange","emit","change","handleBlur","onBlur","blur","handleFocus","onFocus","focus","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","componentDidLoad","_ref","_a","id","uuid","componentDidUpdate","checked","document","radioElement","getElementById","render","h","key","class","cls","className","size","getHideProp","showLabel","htmlFor","type","validation","ref","el","disabled","describedbyid","required","label"],"sources":["src/components/radio/radio.tsx"],"sourcesContent":["import { DBRadioProps, DBRadioState } from \"./model\";\nimport { cls, getHideProp, uuid } from \"../../utils\";\nimport { ChangeEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\n\nimport { Component, h, Fragment, Event, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-radio\",\n})\nexport class DBRadio {\n private _ref!: HTMLInputElement | null;\n @Prop() id: DBRadioProps[\"id\"];\n @Prop() checked: DBRadioProps[\"checked\"];\n @Event() onChange: any;\n @Prop() change: DBRadioProps[\"change\"];\n @Event() onBlur: any;\n @Prop() blur: DBRadioProps[\"blur\"];\n @Event() onFocus: any;\n @Prop() focus: DBRadioProps[\"focus\"];\n @Prop() size: DBRadioProps[\"size\"];\n @Prop() showLabel: DBRadioProps[\"showLabel\"];\n @Prop({attribute: \"classname\"}) className: DBRadioProps[\"className\"];\n @Prop() validation: DBRadioProps[\"validation\"];\n @Prop() name: DBRadioProps[\"name\"];\n @Prop() disabled: DBRadioProps[\"disabled\"];\n @Prop() describedbyid: DBRadioProps[\"describedbyid\"];\n @Prop() value: DBRadioProps[\"value\"];\n @Prop() required: DBRadioProps[\"required\"];\n @Prop() label: DBRadioProps[\"label\"];\n\n @State() initialized = false;\n @State() _id = undefined;\n\n handleChange(event: ChangeEvent<HTMLInputElement>) {\n if (this.onChange) {\n this.onChange.emit(event);\n }\n if (this.change) {\n this.change(event);\n }\n }\n handleBlur(event: InteractionEvent<HTMLInputElement>) {\n if (this.onBlur) {\n this.onBlur.emit(event);\n }\n if (this.blur) {\n this.blur(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLInputElement>) {\n if (this.onFocus) {\n this.onFocus.emit(event);\n }\n if (this.focus) {\n this.focus(event);\n }\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: HTMLInputElement | 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-radio\");\n this.initialized = true;\n this._id = this.id ?? `radio-${uuid()}`;\n }\n\n componentDidUpdate() {\n if (this.checked && this.initialized && document && this._id) {\n const radioElement = document?.getElementById(\n this._id\n ) as HTMLInputElement;\n if (radioElement) {\n if (this.checked != undefined) {\n radioElement.checked = true;\n }\n }\n }\n }\n\n render() {\n return (\n <label\n class={cls(\"db-radio\", this.className)}\n data-size={this.size}\n data-hide-label={getHideProp(this.showLabel)}\n htmlFor={this._id}\n >\n <input\n type=\"radio\"\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n aria-describedby={this.describedbyid}\n value={this.value}\n required={this.required}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n />\n {this.label ? this.label : <slot></slot>}\n </label>\n );\n }\n}\n"],"mappings":"0GAkBaA,EAAO,MAHnB,WAAAC,CAAAC,G,6GAwBUC,KAAAC,YAAc,MACdD,KAAAE,IAAMC,S,CAEf,YAAAC,CAAaC,GACX,GAAIL,KAAKM,SAAU,CACjBN,KAAKM,SAASC,KAAKF,E,CAErB,GAAIL,KAAKQ,OAAQ,CACfR,KAAKQ,OAAOH,E,EAGhB,UAAAI,CAAWJ,GACT,GAAIL,KAAKU,OAAQ,CACfV,KAAKU,OAAOH,KAAKF,E,CAEnB,GAAIL,KAAKW,KAAM,CACbX,KAAKW,KAAKN,E,EAGd,WAAAO,CAAYP,GACV,GAAIL,KAAKa,QAAS,CAChBb,KAAKa,QAAQN,KAAKF,E,CAEpB,GAAIL,KAAKc,MAAO,CACdd,KAAKc,MAAMT,E,EASP,sBAAAU,CACNC,EACAC,GAEA,MAAMC,EAASF,IAAO,MAAPA,SAAO,SAAPA,EAASG,QAAQF,GAChC,GAAID,GAAWE,EAAQ,CACrB,MAAME,EAAaF,EAAOE,WAC1B,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAWE,OAAQD,IAAK,CAC1C,MAAME,EAAOH,EAAWI,KAAKH,GAC7B,GACEE,IACCA,EAAKE,KAAKC,WAAW,UAAYH,EAAKE,KAAKC,WAAW,UACvD,CACAV,EAAQW,aAAaJ,EAAKE,KAAMF,EAAKK,OACrCV,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fxD,SAAWD,GAAUL,KAAKI,aAAaC,GACvCK,OAASL,GAAUL,KAAKS,WAAWJ,GACnCQ,QAAUR,GAAUL,KAAKY,YAAYP,KAEtCL,KAAK+D,MAAQ/D,KAAK+D,MAAQhB,EAAA,a","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as s}from"./p-1feee149.js";import{c as a}from"./p-99d90022.js";import{a as i}from"./p-af3834b6.js";const e=class{constructor(s){t(this,s);this.initialized=false}enableAttributePassing(t,s){const a=t===null||t===void 0?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const e=s.item(i);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);a.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const i=e.value.replace("hydrated","").trim();const d=t.getAttribute("class");t.setAttribute(e.name,`${d?`${d} `:""}${i}`);if(s){a.setAttribute("class","hydrated")}else{a.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-badge");this.initialized=true}componentDidUpdate(){var t;if(this._ref&&this.initialized){if((t=this.placement)===null||t===void 0?void 0:t.startsWith("corner")){let t=this._ref.parentElement;if(t&&t.localName.includes("badge")){t=t.parentElement}if(t){t.setAttribute("data-has-badge","true")}}}}render(){var t,e;return s("span",{key:"7f6ba75819424fcc333e56aebd40e23fe2b77a25",class:a("db-badge",this.className),ref:t=>{this._ref=t},id:this.id,"data-semantic":this.semantic,"data-size":this.size,"data-emphasis":this.emphasis,"data-placement":this.placement,"data-label":((t=this.placement)===null||t===void 0?void 0:t.startsWith("corner"))&&((e=this.label)!==null&&e!==void 0?e:i)},this.text?this.text:s("slot",null))}};export{e as db_badge};
2
+ //# sourceMappingURL=p-1c12853c.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DBBadge","constructor","hostRef","this","initialized","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","componentDidLoad","_ref","componentDidUpdate","_a","placement","parentElement","localName","render","h","key","class","cls","className","ref","el","id","semantic","size","emphasis","_b","label","DEFAULT_LABEL","text"],"sources":["src/components/badge/badge.tsx"],"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"],"mappings":"yHAcaA,EAAO,MAHnB,WAAAC,CAAAC,G,UAcUC,KAAAC,YAAc,K,CAOf,sBAAAC,CACNC,EACAC,GAEA,MAAMC,EAASF,IAAO,MAAPA,SAAO,SAAPA,EAASG,QAAQF,GAChC,GAAID,GAAWE,EAAQ,CACrB,MAAME,EAAaF,EAAOE,WAC1B,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAWE,OAAQD,IAAK,CAC1C,MAAME,EAAOH,EAAWI,KAAKH,GAC7B,GACEE,IACCA,EAAKE,KAAKC,WAAW,UAAYH,EAAKE,KAAKC,WAAW,UACvD,CACAV,EAAQW,aAAaJ,EAAKE,KAAMF,EAAKK,OACrCV,EAAOW,gBAAgBN,EAAKE,K,CAE9B,GAAIF,GAAQA,EAAKE,OAAS,QAAS,CACjC,MAAMK,EAAiBP,EAAKK,MAAMG,SAAS,YAC3C,MAAMH,EAAQL,EAAKK,MAAMI,QAAQ,WAAY,IAAIC,OACjD,MAAMC,EAAelB,EAAQmB,aAAa,SAC1CnB,EAAQW,aACNJ,EAAKE,KACL,GAAGS,EAAe,GAAGA,KAAkB,KAAKN,KAE9C,GAAIE,EAAgB,CAElBZ,EAAOS,aAAa,QAAS,W,KACxB,CACLT,EAAOW,gBAAgBN,EAAKE,K,KAOtC,gBAAAW,GACEvB,KAAKE,uBAAuBF,KAAKwB,KAAM,YACvCxB,KAAKC,YAAc,I,CAGrB,kBAAAwB,G,MACE,GAAIzB,KAAKwB,MAAQxB,KAAKC,YAAa,CACjC,IAAIyB,EAAA1B,KAAK2B,aAAS,MAAAD,SAAA,SAAAA,EAAEb,WAAW,UAAW,CACxC,IAAIR,EAASL,KAAKwB,KAAKI,cACvB,GAAIvB,GAAUA,EAAOwB,UAAUX,SAAS,SAAU,CAEhDb,EAASA,EAAOuB,a,CAElB,GAAIvB,EAAQ,CACVA,EAAOS,aAAa,iBAAkB,O,IAM9C,MAAAgB,G,QACE,OACEC,EAAA,QAAAC,IAAA,2CACEC,MAAOC,EAAI,WAAYlC,KAAKmC,WAC5BC,IAAMC,IACJrC,KAAKwB,KAAOa,CAAE,EAEhBC,GAAItC,KAAKsC,GAAE,gBACItC,KAAKuC,SAAQ,YACjBvC,KAAKwC,KAAI,gBACLxC,KAAKyC,SAAQ,iBACZzC,KAAK2B,UAAS,eAE5BD,EAAA1B,KAAK2B,aAAS,MAAAD,SAAA,SAAAA,EAAEb,WAAW,cAAc6B,EAAA1C,KAAK2C,SAAK,MAAAD,SAAA,EAAAA,EAAIE,IAGxD5C,KAAK6C,KAAO7C,KAAK6C,KAAOd,EAAA,a","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ const e="db-ux";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:false,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:false,propNumber:true,propString:true,reflect:false,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:false,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:false,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:false,vdomText:true,vdomXlink:false,watchCallback:false};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var l=new WeakMap;var s=e=>l.get(e);var i=(e,t)=>{l.set(t.t=e,t)};var o=(e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map};{n.u=new Promise((e=>n.v=e));e["s-p"]=[];e["s-rc"]=[]}const r=l.set(e,n);return r};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,n)=>{const r=e.h.replace(/-/g,"_");const l=e.p;if(!l){return void 0}const s=c.get(l);if(s){return s[r]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((e=>{{c.set(l,e)}return e[r]}),(e=>{f(e,t.$hostElement$)}))};var v="{visibility:hidden}.hydrated{visibility:inherit}";var d="slot-fb{display:contents}slot-fb[hidden]{display:none}";var h=typeof window!=="undefined"?window:{};var p=h.document||{head:{}};var m={l:0,m:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var y=t.shadowDom;var b=e=>Promise.resolve(e);var w=false;var $=[];var g=[];var S=(e,t)=>n=>{e.push(n);if(!w){w=true;if(t&&m.l&4){j(O)}else{m.raf(O)}}};var k=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var O=()=>{k($);{k(g);if(w=$.length>0){m.raf(O)}}};var j=e=>b().then(e);var C=S(g,true);var T=e=>{e=typeof e;return e==="object"||e==="function"};function x(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var L={};r(L,{err:()=>D,map:()=>R,ok:()=>F,unwrap:()=>E,unwrapErr:()=>M});var F=e=>({isOk:true,isErr:false,value:e});var D=e=>({isOk:false,isErr:true,value:e});function R(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>F(e)))}else{return F(n)}}if(e.isErr){const t=e.value;return D(t)}throw"should never get here"}var E=e=>{if(e.isOk){return e.value}else{throw e.value}};var M=e=>{if(e.isErr){return e.value}else{throw e.value}};var N=e=>{const t=e.__childNodes||e.childNodes;if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){P(t,e.tagName).forEach((e=>{var t;if(e.nodeType===1&&e.tagName==="SLOT-FB"){if((t=A(e,e["s-sn"],false))==null?void 0:t.length){e.hidden=true}else{e.hidden=false}}}))}for(const e of t){if(e.nodeType===1&&(e.__childNodes||e.childNodes).length){N(e)}}};function P(e,t,n){let r=0;let l=[];let s;for(;r<e.length;r++){s=e[r];if(s["s-sr"]&&s["s-hn"]===t&&(n===void 0||s["s-sn"]===n)){l.push(s);if(typeof n!=="undefined")return l}l=[...l,...P(s.childNodes,t,n)]}return l}var A=(e,t,n=true)=>{const r=[];if(n&&e["s-sr"]||!e["s-sr"])r.push(e);while((e=e.nextSibling)&&e["s-sn"]===t){r.push(e)}return r};var U=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var W=(e,t="")=>{{return()=>{}}};var B=(e,t)=>{{return()=>{}}};var z=(e,t,...n)=>{let r=null;let l=null;let s=null;let i=false;let o=false;const a=[];const f=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){f(r)}else if(r!=null&&typeof r!=="boolean"){if(i=typeof e!=="function"&&!T(r)){r=String(r)}if(i&&o){a[a.length-1].$+=r}else{a.push(i?H(null,r):r)}o=i}}};f(n);if(t){if(t.key){l=t.key}if(t.name){s=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,a,q)}const c=H(e,null);c.S=t;if(a.length>0){c.k=a}{c.O=l}{c.j=s}return c};var H=(e,t)=>{const n={l:0,C:e,$:t,T:null,k:null};{n.S=null}{n.O=null}{n.j=null}return n};var Q={};var V=e=>e&&e.C===Q;var q={forEach:(e,t)=>e.map(G).forEach(t),map:(e,t)=>e.map(G).map(t).map(I)};var G=e=>({vattrs:e.S,vchildren:e.k,vkey:e.O,vname:e.j,vtag:e.C,vtext:e.$});var I=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return z(e.vtag,t,...e.vchildren||[])}const t=H(e.vtag,e.vtext);t.S=e.vattrs;t.k=e.vchildren;t.O=e.vkey;t.j=e.vname;return t};var K=(e,t)=>{if(e!=null&&!T(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var X=e=>s(e).$hostElement$;var _=(e,t,n)=>{const r=X(e);return{emit:e=>J(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var J=(e,t,n)=>{const r=m.ce(t,n);e.dispatchEvent(r);return r};var Y=new WeakMap;var Z=(e,t,n,r,l,s,i)=>{if(n!==r){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const l=te(n);let s=te(r);{t.remove(...l.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!l.includes(e))))}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(h,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(n||r){const l=t.endsWith(ne);t=t.replace(re,"");if(n){m.rel(e,t,n,l)}if(r){m.ael(e,t,r,l)}}}else{const o=T(r);if((i||o&&r!==null)&&!l){try{if(!e.tagName.includes("-")){const l=r==null?"":r;if(t==="list"){i=false}else if(n==null||e[t]!=l){if(typeof e.__lookupSetter__(t)==="function"){e[t]=l}else{e.setAttribute(t,l)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!i||s&4||l)&&!o){r=r===true?"":r;{e.setAttribute(t,r)}}}}};var ee=/\s/;var te=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(ee)};var ne="Capture";var re=new RegExp(ne+"$");var le=(e,t,n,r)=>{const l=t.T.nodeType===11&&t.T.host?t.T.host:t.T;const s=e&&e.S||{};const i=t.S||{};{for(const e of se(Object.keys(s))){if(!(e in i)){Z(l,e,s[e],void 0,n,t.l)}}}for(const e of se(Object.keys(i))){Z(l,e,s[e],i[e],n,t.l)}};function se(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ie;var oe;var ae=false;var fe=false;var ce=false;var ue=false;var ve=(e,n,r)=>{var l;const s=n.k[r];let i=0;let o;let a;let f;if(!ae){ce=true;if(s.C==="slot"){s.l|=s.k?2:1}}if(s.$!==null){o=s.T=p.createTextNode(s.$)}else if(s.l&1){o=s.T=p.createTextNode("")}else{o=s.T=p.createElement(!ae&&t.slotRelocation&&s.l&2?"slot-fb":s.C);{le(null,s,ue)}if(s.k){for(i=0;i<s.k.length;++i){a=ve(e,s,i);if(a){o.appendChild(a)}}}}o["s-hn"]=oe;{if(s.l&(2|1)){o["s-sr"]=true;o["s-cr"]=ie;o["s-sn"]=s.j||"";o["s-rf"]=(l=s.S)==null?void 0:l.ref;f=e&&e.k&&e.k[r];if(f&&f.C===s.C&&e.T){{de(e.T,false)}}}}return o};var de=(e,n)=>{m.l|=1;const r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&t.experimentalSlotFixes){let t=e;while(t=t.nextSibling){if(t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===oe){r.push(t)}}}for(let e=r.length-1;e>=0;e--){const t=r[e];if(t["s-hn"]!==oe&&t["s-ol"]){ke(be(t).parentNode,t,be(t));t["s-ol"].remove();t["s-ol"]=void 0;t["s-sh"]=void 0;ce=true}if(n){de(t,n)}}m.l&=~1};var he=(e,t,n,r,l,s)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e;let o;for(;l<=s;++l){if(r[l]){o=ve(null,n,l);if(o){r[l].T=o;ke(i,o,be(t))}}}};var pe=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.T;Se(t);if(e){{fe=true;if(e["s-ol"]){e["s-ol"].remove()}else{de(e,true)}}e.remove()}}}};var me=(e,t,n,r,l=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let v=r.length-1;let d=r[0];let h=r[v];let p;let m;while(s<=f&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=r[++i]}else if(h==null){h=r[--v]}else if(ye(c,d,l)){we(c,d,l);c=t[++s];d=r[++i]}else if(ye(u,h,l)){we(u,h,l);u=t[--f];h=r[--v]}else if(ye(c,h,l)){if(c.C==="slot"||h.C==="slot"){de(c.T.parentNode,false)}we(c,h,l);ke(e,c.T,u.T.nextSibling);c=t[++s];h=r[--v]}else if(ye(u,d,l)){if(c.C==="slot"||h.C==="slot"){de(u.T.parentNode,false)}we(u,d,l);ke(e,u.T,c.T);u=t[--f];d=r[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===d.O){o=a;break}}}if(o>=0){m=t[o];if(m.C!==d.C){p=ve(t&&t[i],n,o)}else{we(m,d,l);t[o]=void 0;p=m.T}d=r[++i]}else{p=ve(t&&t[i],n,i);d=r[++i]}if(p){{ke(be(c.T).parentNode,p,be(c.T))}}}}if(s>f){he(e,r[v+1]==null?null:r[v+1].T,n,r,i,v)}else if(i>v){pe(t,s,f)}};var ye=(e,t,n=false)=>{if(e.C===t.C){if(e.C==="slot"){return e.j===t.j}if(!n){return e.O===t.O}if(n&&!e.O&&t.O){e.O=t.O}return true}return false};var be=e=>e&&e["s-ol"]||e;var we=(e,n,r=false)=>{const l=n.T=e.T;const s=e.k;const i=n.k;const o=n.C;const a=n.$;let f;if(a===null){{if(o==="slot"&&!ae);else{le(e,n,ue)}}if(s!==null&&i!==null){me(l,s,n,i,r)}else if(i!==null){if(e.$!==null){l.textContent=""}he(l,null,n,i,0,i.length-1)}else if(!r&&t.updatable&&s!==null){pe(s,0,s.length-1)}}else if(f=l["s-cr"]){f.parentNode.textContent=a}else if(e.$!==a){l.data=a}};var $e=[];var ge=e=>{let n;let r;let l;const s=e.__childNodes||e.childNodes;for(const e of s){if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){r=n.parentNode.__childNodes||n.parentNode.childNodes;const s=e["s-sn"];for(l=r.length-1;l>=0;l--){n=r[l];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]&&!t.experimentalSlotFixes){if(U(n,s)){let t=$e.find((e=>e.L===n));fe=true;n["s-sn"]=n["s-sn"]||s;if(t){t.L["s-sh"]=e["s-hn"];t.F=e}else{n["s-sh"]=e["s-hn"];$e.push({F:e,L:n})}if(n["s-sr"]){$e.map((e=>{if(U(e.L,n["s-sn"])){t=$e.find((e=>e.L===n));if(t&&!e.F){e.F=t.F}}}))}}else if(!$e.some((e=>e.L===n))){$e.push({L:n})}}}}if(e.nodeType===1){ge(e)}}};var Se=e=>{{e.S&&e.S.ref&&e.S.ref(null);e.k&&e.k.map(Se)}};var ke=(e,t,n)=>{{return e==null?void 0:e.insertBefore(t,n)}};var Oe=(e,t,n=false)=>{var r,l,s,i;const o=e.$hostElement$;const a=e.D||H(null,null);const f=V(t)?t:z(null,null,t);oe=o.tagName;if(n&&f.S){for(const e of Object.keys(f.S)){if(o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){f.S[e]=o[e]}}}f.C=null;f.l|=4;e.D=f;f.T=a.T=o;ae=y;{ie=o["s-cr"];fe=false}we(a,f,n);{m.l|=1;if(ce){ge(f.T);for(const e of $e){const t=e.L;if(!t["s-ol"]){const e=p.createTextNode("");e["s-nr"]=t;ke(t.parentNode,t["s-ol"]=e,t)}}for(const e of $e){const t=e.L;const o=e.F;if(o){const e=o.parentNode;let n=o.nextSibling;{let s=(r=t["s-ol"])==null?void 0:r.previousSibling;while(s){let r=(l=s["s-nr"])!=null?l:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){n=r;break}}s=s.previousSibling}}const i=t.__parentNode||t.parentNode;const a=t.__nextSibling||t.nextSibling;if(!n&&e!==i||a!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}ke(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(s=t["s-ih"])!=null?s:false}}}t&&typeof o["s-rf"]==="function"&&o["s-rf"](t)}else{if(t.nodeType===1){if(n){t["s-ih"]=(i=t.hidden)!=null?i:false}t.hidden=true}}}}if(fe){N(f.T)}m.l&=~1;$e.length=0}ie=void 0};var je=(e,t)=>{if(t&&!e.R&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.R=()=>{t["s-p"].splice(n-1,1);r()})))}};var Ce=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}je(e,e.M);const n=()=>Te(e,t);return C(n)};var Te=(e,t)=>{const n=e.$hostElement$;const r=W("scheduleUpdate",e.i.h);const l=e.t;if(!l){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;r();return xe(s,(()=>Fe(e,l,t)))};var xe=(e,t)=>Le(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Le=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Fe=async(e,t,n)=>{var r;const l=e.$hostElement$;const s=W("update",e.i.h);const i=l["s-rc"];const o=W("render",e.i.h);{De(e,t,l,n)}if(i){i.map((e=>e()));l["s-rc"]=void 0}o();s();{const t=(r=l["s-p"])!=null?r:[];const n=()=>Re(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var De=(e,t,n,r)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{Oe(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var Re=e=>{const t=e.i.h;const n=e.$hostElement$;const r=W("postUpdate",t);const l=e.t;const s=e.M;if(!(e.l&64)){e.l|=64;{Ne(n)}{Me(l,"componentDidLoad",void 0,n)}r();{e.v(n);if(!s){Ee()}}}else{{Me(l,"componentDidUpdate",void 0,n)}r()}{if(e.R){e.R();e.R=void 0}if(e.l&512){j((()=>Ce(e,false)))}e.l&=~(4|512)}};var Ee=t=>{j((()=>J(h,"appload",{detail:{namespace:e}})))};var Me=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e,r)}}return void 0};var Ne=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Pe=(e,t)=>s(e).o.get(t);var Ae=(e,t,n,r)=>{const l=s(e);if(!l){throw new Error(`Couldn't find host element for "${r.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const i=l.o.get(t);const o=l.l;const a=l.t;n=K(n,r.N[t][0]);const f=Number.isNaN(i)&&Number.isNaN(n);const c=n!==i&&!f;if((!(o&8)||i===void 0)&&c){l.o.set(t,n);if(a){if((o&(2|16))===2){Ce(l,false)}}}};var Ue=(e,n,r)=>{var l,i;const o=e.prototype;if(n.N||t.watchCallback){const a=Object.entries((l=n.N)!=null?l:{});a.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:l,set:i}=Object.getOwnPropertyDescriptor(o,e)||{};if(l)n.N[e][0]|=2048;if(i)n.N[e][0]|=4096;if(r&1||!l){Object.defineProperty(o,e,{get(){{if((n.N[e][0]&2048)===0){return Pe(this,e)}const t=s(this);const r=t?t.t:o;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(o,e,{set(l){const o=s(this);if(i){const r=t&32?this[e]:o.$hostElement$[e];if(typeof r==="undefined"&&o.o.get(e)){l=o.o.get(e)}else if(!o.o.get(e)&&r){o.o.set(e,r)}i.apply(this,[K(l,t)]);l=t&32?this[e]:o.$hostElement$[e];Ae(this,e,l,n);return}{if((r&1)===0||(n.N[e][0]&4096)===0){Ae(this,e,l,n);if(r&1&&!o.t){o.u.then((()=>{if(n.N[e][0]&4096&&o.t[e]!==o.o.get(e)){o.t[e]=l}}))}return}const s=()=>{const r=o.t[e];if(!o.o.get(e)&&r){o.o.set(e,r)}o.t[e]=K(l,t);Ae(this,e,o.t[e],n)};if(o.t){s()}else{o.u.then((()=>s()))}}}})}}));if(r&1){const r=new Map;o.attributeChangedCallback=function(e,l,i){m.jmp((()=>{var a;const f=r.get(e);if(this.hasOwnProperty(f)&&t.lazyLoad){i=this[f];delete this[f]}else if(o.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==i){return}else if(f==null){const t=s(this);const r=t==null?void 0:t.l;if(r&&!(r&8)&&r&128&&i!==l){const r=t.t;const s=(a=n.P)==null?void 0:a[e];s==null?void 0:s.forEach((t=>{if(r[t]!=null){r[t].call(r,i,l,e)}}))}return}const c=Object.getOwnPropertyDescriptor(o,f);i=i===null&&typeof this[f]==="boolean"?false:i;if(i!==this[f]&&(!c.get||!!c.set)){this[f]=i}}))};e.observedAttributes=Array.from(new Set([...Object.keys((i=n.P)!=null?i:{}),...a.filter((([e,t])=>t[0]&15)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var We=async(e,t,n,r)=>{let l;if((t.l&32)===0){t.l|=32;const r=n.p;if(r){const r=u(n,t);if(r&&"then"in r){const e=B();l=await r;e()}else{l=r}if(!l){throw new Error(`Constructor for "${n.h}#${t.A}" was not found`)}if(!l.isProxied){Ue(l,n,2);l.isProxied=true}const s=W("createInstance",n.h);{t.l|=8}try{new l(t)}catch(t){f(t,e)}{t.l&=~8}s()}else{l=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}}const s=t.M;const i=()=>Ce(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var Be=(e,t)=>{};var ze=e=>{if((m.l&1)===0){const t=s(e);const n=t.i;const r=W("connectedCallback",n.h);if(!(t.l&1)){t.l|=1;{if(n.l&(4|8)){He(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){je(t,t.M=n);break}}}if(n.N){Object.entries(n.N).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{We(e,t,n)}}else{if(t==null?void 0:t.t);else if(t==null?void 0:t.u){t.u.then((()=>Be()))}}r()}};var He=e=>{const t=e["s-cr"]=p.createComment("");t["s-cn"]=true;ke(e,t,e.firstChild)};var Qe=(e,t)=>{{Me(e,"disconnectedCallback",void 0,t||e)}};var Ve=async e=>{if((m.l&1)===0){const t=s(e);if(t==null?void 0:t.t){Qe(t.t,e)}else if(t==null?void 0:t.u){t.u.then((()=>Qe(t.t,e)))}}if(Y.has(e)){Y.delete(e)}if(e.shadowRoot&&Y.has(e.shadowRoot)){Y.delete(e.shadowRoot)}};var qe=(e,t={})=>{var n;const r=W();const l=[];const i=t.exclude||[];const a=h.customElements;const f=p.head;const c=f.querySelector("meta[charset]");const u=p.createElement("style");const y=[];let b;let w=true;Object.assign(m,t);m.m=new URL(t.resourcesUrl||"./",p.baseURI).href;let $=false;e.map((e=>{e[1].map((t=>{const n={l:t[0],h:t[1],N:t[2],U:t[3]};if(n.l&4){$=true}{n.N=t[2]}const r=n.h;const f=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,n)}connectedCallback(){s(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(b){clearTimeout(b);b=null}if(w){y.push(this)}else{m.jmp((()=>ze(this)))}}disconnectedCallback(){m.jmp((()=>Ve(this)));m.raf((()=>{var e;const t=s(this);const n=y.findIndex((e=>e===this));if(n>-1){y.splice(n,1)}if(((e=t==null?void 0:t.D)==null?void 0:e.T)instanceof Node&&!t.D.T.isConnected){delete t.D.T}}))}componentOnReady(){return s(this).u}};n.p=e[0];if(!i.includes(r)&&!a.get(r)){l.push(r);a.define(r,Ue(f,n,1))}}))}));if(l.length>0){if($){u.textContent+=d}{u.textContent+=l.sort()+v}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=m.W)!=null?n:x(p);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}w=false;if(y.length){y.map((e=>e.connectedCallback()))}else{{m.jmp((()=>b=setTimeout(Ee,30)))}}r()};var Ge=(e,t)=>t;var Ie=e=>m.W=e;export{Ge as F,qe as b,_ as c,z as h,b as p,i as r,Ie as s};
3
+ //# sourceMappingURL=p-1feee149.js.map