@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,59 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3d093f06.js');
6
+ const index$1 = require('./index-c0df827d.js');
7
+ const constants = require('./constants-89822e5f.js');
8
+
9
+ const DBNavigation = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this._id = constants.DEFAULT_ID;
13
+ }
14
+ /**
15
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
16
+ * @param element the ref for the component
17
+ * @param customElementSelector the custom element like `my-component`
18
+ */
19
+ enableAttributePassing(element, customElementSelector) {
20
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
21
+ if (element && parent) {
22
+ const attributes = parent.attributes;
23
+ for (let i = 0; i < attributes.length; i++) {
24
+ const attr = attributes.item(i);
25
+ if (attr &&
26
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
27
+ element.setAttribute(attr.name, attr.value);
28
+ parent.removeAttribute(attr.name);
29
+ }
30
+ if (attr && attr.name === "class") {
31
+ const isWebComponent = attr.value.includes("hydrated");
32
+ const value = attr.value.replace("hydrated", "").trim();
33
+ const currentClass = element.getAttribute("class");
34
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
35
+ if (isWebComponent) {
36
+ // Stencil is using this class for lazy loading component
37
+ parent.setAttribute("class", "hydrated");
38
+ }
39
+ else {
40
+ parent.removeAttribute(attr.name);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ componentDidLoad() {
47
+ this.enableAttributePassing(this._ref, "db-navigation");
48
+ this._id = this.id || "navigation-" + index$1.uuid();
49
+ }
50
+ render() {
51
+ return (index.h("nav", { key: '4591f1348a2d7fceafc4ad0fbd6ebc768b819af1', class: index$1.cls("db-navigation", this.className), ref: (el) => {
52
+ this._ref = el;
53
+ }, id: this._id, "aria-labelledby": this.labelledBy }, index.h("menu", { key: 'ade607816e1b561f5c74eb18ea7dbbef7d8e0d93' }, index.h("slot", { key: '02578f17abb1eb0513aa2663b5617427eaa291c5' }))));
54
+ }
55
+ };
56
+
57
+ exports.db_navigation = DBNavigation;
58
+
59
+ //# sourceMappingURL=db-navigation.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"db-navigation.entry.cjs.js","mappings":";;;;;;;;MAca,YAAY;IAHxB;;QASU,QAAG,GAAGA,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U,CAAC,CAAC;qBAC1C;yBAAM;wBACL,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;qBACnC;iBACF;aACF;SACF;KACF;IAED,gBAAgB;QACd,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACxD,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,IAAI,aAAa,GAAGC,YAAI,EAAE,CAAC;KAC9C;IAED,MAAM;QACJ,QACEC,kEACE,KAAK,EAAEC,WAAG,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,EAC3C,GAAG,EAAE,CAAC,EAAO;gBACX,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;aAChB,EACD,EAAE,EAAE,IAAI,CAAC,GAAG,qBACK,IAAI,CAAC,UAAU,IAEhCD,qEACEA,oEAAa,CACR,CACH,EACN;KACH;;;;;","names":["DEFAULT_ID","uuid","h","cls"],"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"],"version":3}
@@ -0,0 +1,64 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3d093f06.js');
6
+ const constants = require('./constants-89822e5f.js');
7
+ const index$1 = require('./index-c0df827d.js');
8
+
9
+ const DBNotification = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.onClose = index.createEvent(this, "onClose", 7);
13
+ }
14
+ handleClose(event) {
15
+ if (this.onClose) {
16
+ this.onClose.emit();
17
+ }
18
+ }
19
+ /**
20
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
21
+ * @param element the ref for the component
22
+ * @param customElementSelector the custom element like `my-component`
23
+ */
24
+ enableAttributePassing(element, customElementSelector) {
25
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
26
+ if (element && parent) {
27
+ const attributes = parent.attributes;
28
+ for (let i = 0; i < attributes.length; i++) {
29
+ const attr = attributes.item(i);
30
+ if (attr &&
31
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
32
+ element.setAttribute(attr.name, attr.value);
33
+ parent.removeAttribute(attr.name);
34
+ }
35
+ if (attr && attr.name === "class") {
36
+ const isWebComponent = attr.value.includes("hydrated");
37
+ const value = attr.value.replace("hydrated", "").trim();
38
+ const currentClass = element.getAttribute("class");
39
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
40
+ if (isWebComponent) {
41
+ // Stencil is using this class for lazy loading component
42
+ parent.setAttribute("class", "hydrated");
43
+ }
44
+ else {
45
+ parent.removeAttribute(attr.name);
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ componentDidLoad() {
52
+ this.enableAttributePassing(this._ref, "db-notification");
53
+ }
54
+ render() {
55
+ var _a;
56
+ return (index.h("article", { key: '687caef11f1936276ea751c770a202132d7ff823', class: index$1.cls("db-notification", this.className), ref: (el) => {
57
+ this._ref = el;
58
+ }, id: this.id, "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": this.icon, "data-hide-icon": index$1.getHideProp(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: '8b8fe272272196ebf585a0b3166c27fdf8a81c0a', name: "image" }), index$1.stringPropVisible(this.headline, this.showHeadline) ? (index.h("header", null, this.headline)) : null, index.h("p", { key: '57f127bde56e0ea9ecebf371f2119c4b5b6c0e50' }, this.text ? this.text : index.h("slot", null)), index$1.stringPropVisible(this.timestamp, this.showTimestamp) ? (index.h("span", null, this.timestamp)) : null, index.h("slot", { key: 'ab7ddf6617b5df95984d2d7dc21ef6dd517981fc', name: "link" }), this.closeable ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_CLOSE_BUTTON)) : null));
59
+ }
60
+ };
61
+
62
+ exports.db_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AAI,CAAC,SAAS,IACbA,uBACE,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,OAAO,EACZ,EAAE,EAAE,IAAI,CAAC,aAAa,EACtB,MAAM,EAAE,IAAI,EACZ,OAAO,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAE1C,MAAA,IAAI,CAAC,eAAe,mCAAII,8BAAoB,CACnC,IACV,IAAI,CACA,EACV;KACH;;;;;","names":["h","cls","getHideProp","stringPropVisible","DEFAULT_CLOSE_BUTTON"],"sources":["src/components/notification/notification.tsx"],"sourcesContent":["import { DBNotificationProps, DBNotificationState } from \"./model\";\nimport { DBButton } from \"../button/button\";\nimport { DEFAULT_CLOSE_BUTTON } from \"../../shared/constants\";\nimport { cls, getHideProp, stringPropVisible } 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 * @slot image - TODO: Add description for slotImage\n * @slot link - TODO: Add description for slotLink\n */\n @Component({\n tag: \"db-notification\",\n})\nexport class DBNotification {\n private _ref!: HTMLDivElement | null;\n @Event() onClose: any;\n @Prop() id: DBNotificationProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBNotificationProps[\"className\"];\n @Prop() ariaLive: DBNotificationProps[\"ariaLive\"];\n @Prop() semantic: DBNotificationProps[\"semantic\"];\n @Prop() variant: DBNotificationProps[\"variant\"];\n @Prop() icon: DBNotificationProps[\"icon\"];\n @Prop() showIcon: DBNotificationProps[\"showIcon\"];\n @Prop() linkVariant: DBNotificationProps[\"linkVariant\"];\n @Prop() headline: DBNotificationProps[\"headline\"];\n @Prop() showHeadline: DBNotificationProps[\"showHeadline\"];\n @Prop() text: DBNotificationProps[\"text\"];\n\n @Prop() timestamp: DBNotificationProps[\"timestamp\"];\n @Prop() showTimestamp: DBNotificationProps[\"showTimestamp\"];\n @Prop() closeable: DBNotificationProps[\"closeable\"];\n @Prop() closeButtonId: DBNotificationProps[\"closeButtonId\"];\n @Prop() closeButtonText: DBNotificationProps[\"closeButtonText\"];\n\n handleClose(event: ClickEvent<HTMLButtonElement>) {\n if (this.onClose) {\n this.onClose.emit();\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-notification\");\n }\n\n render() {\n return (\n <article\n class={cls(\"db-notification\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n aria-live={this.ariaLive}\n data-semantic={this.semantic}\n data-variant={this.variant}\n data-icon={this.icon}\n data-hide-icon={getHideProp(this.showIcon)}\n data-link-variant={this.linkVariant}\n >\n <slot name=\"image\"></slot>\n {stringPropVisible(this.headline, this.showHeadline) ? (\n <header>{this.headline}</header>\n ) : null}\n <p>{this.text ? this.text : <slot></slot>}</p>\n {stringPropVisible(this.timestamp, this.showTimestamp) ? (\n <span>{this.timestamp}</span>\n ) : null}\n <slot name=\"link\"></slot>\n {this.closeable ? (\n <db-button\n icon=\"cross\"\n variant=\"ghost\"\n size=\"small\"\n id={this.closeButtonId}\n noText={true}\n onClick={(event) => this.handleClose(event)}\n >\n {this.closeButtonText ?? DEFAULT_CLOSE_BUTTON}\n </db-button>\n ) : null}\n </article>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,73 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3d093f06.js');
6
+ const index$1 = require('./index-c0df827d.js');
7
+
8
+ const DBPage = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.fontsLoaded = false;
12
+ }
13
+ /**
14
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
15
+ * @param element the ref for the component
16
+ * @param customElementSelector the custom element like `my-component`
17
+ */
18
+ enableAttributePassing(element, customElementSelector) {
19
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
20
+ if (element && parent) {
21
+ const attributes = parent.attributes;
22
+ for (let i = 0; i < attributes.length; i++) {
23
+ const attr = attributes.item(i);
24
+ if (attr &&
25
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
26
+ element.setAttribute(attr.name, attr.value);
27
+ parent.removeAttribute(attr.name);
28
+ }
29
+ if (attr && attr.name === "class") {
30
+ const isWebComponent = attr.value.includes("hydrated");
31
+ const value = attr.value.replace("hydrated", "").trim();
32
+ const currentClass = element.getAttribute("class");
33
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
34
+ if (isWebComponent) {
35
+ // Stencil is using this class for lazy loading component
36
+ parent.setAttribute("class", "hydrated");
37
+ }
38
+ else {
39
+ parent.removeAttribute(attr.name);
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ componentDidLoad() {
46
+ this.enableAttributePassing(this._ref, "db-page");
47
+ this.fontsLoaded = !this.fadeIn;
48
+ if (document && this.fadeIn) {
49
+ document.fonts.ready.then(() => {
50
+ this.fontsLoaded = true;
51
+ });
52
+ }
53
+ else {
54
+ this.fontsLoaded = true;
55
+ }
56
+ }
57
+ disconnectedCallback() {
58
+ if (typeof window !== "undefined" &&
59
+ document.documentElement.classList.contains("db-page-document")) {
60
+ // remove document styles set by this
61
+ document.documentElement.classList.remove("db-page-document");
62
+ }
63
+ }
64
+ render() {
65
+ return (index.h("div", { key: '1813172b90b8bdae5e14024bdb764211a9516af7', class: index$1.cls("db-page", this.className), ref: (el) => {
66
+ this._ref = el;
67
+ }, id: this.id, "data-variant": this.variant, "data-fade-in": this.fadeIn, "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '7b3cb18c6f48fa169c68b528f500a856fdb829a4', name: "header" }), index.h("main", { key: '17468d52548cee8710499a796bc5a8454744508a', class: "db-main" }, index.h("slot", { key: '23f7b20371a3e8cb6d0dc7388a4217d2361eef5e' })), index.h("slot", { key: 'b9143dcf291836be5bf133934c546e5168c7676f', name: "footer" })));
68
+ }
69
+ };
70
+
71
+ exports.db_page = DBPage;
72
+
73
+ //# sourceMappingURL=db-page.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"db-page.entry.cjs.js","mappings":";;;;;;;MAca,MAAM;IAHlB;;QAWU,gBAAW,GAAG,KAAK,CAAC;KAmF9B;;;;;;IA5ES,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE;YACrB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC1C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC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zB,CAAC,CAAC;SACJ;aAAM;YACL,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;SACzB;KACF;IACD,oBAAoB;QAClB,IACE,OAAO,MAAM,KAAK,WAAW;YAC7B,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAC/D;;YAEA,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;SAC/D;KACF;IAED,MAAM;QACJ,QACEA,kEACE,KAAK,EAAEC,WAAG,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,EACrC,GAAG,EAAE,CAAC,EAAO;gBACX,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;aAChB,EACD,EAAE,EAAE,IAAI,CAAC,EAAE,kBACG,IAAI,CAAC,OAAO,kBACZ,IAAI,CAAC,MAAM,uBACNC,0BAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,IAEvDF,mEAAM,IAAI,EAAC,QAAQ,GAAQ,EAC3BA,mEAAM,KAAK,EAAC,SAAS,IACnBA,oEAAa,CACR,EACPA,mEAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,EACN;KACH;;;;;","names":["h","cls","getBooleanAsString"],"sources":["src/components/page/page.tsx"],"sourcesContent":["import { DBPageProps, DBPageState } from \"./model\";\nimport { cls, getBooleanAsString } from \"../../utils\";\n\nimport { Component, h, Fragment, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot header - TODO: Add description for slotHeader\n * @slot footer - TODO: Add description for slotFooter\n */\n @Component({\n tag: \"db-page\",\n})\nexport class DBPage {\n private _ref!: HTMLDivElement | null;\n @Prop() fadeIn: DBPageProps[\"fadeIn\"];\n @Prop() documentOverflow: DBPageProps[\"documentOverflow\"];\n @Prop() variant: DBPageProps[\"variant\"];\n @Prop() id: DBPageProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBPageProps[\"className\"];\n\n @State() fontsLoaded = 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-page\");\n this.fontsLoaded = !this.fadeIn;\n if (document && this.fadeIn) {\n document.fonts.ready.then(() => {\n this.fontsLoaded = true;\n });\n } else {\n this.fontsLoaded = true;\n }\n }\n disconnectedCallback() {\n if (\n typeof window !== \"undefined\" &&\n document.documentElement.classList.contains(\"db-page-document\")\n ) {\n // remove document styles set by this\n document.documentElement.classList.remove(\"db-page-document\");\n }\n }\n\n render() {\n return (\n <div\n class={cls(\"db-page\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n data-variant={this.variant}\n data-fade-in={this.fadeIn}\n data-fonts-loaded={getBooleanAsString(this.fontsLoaded)}\n >\n <slot name=\"header\"></slot>\n <main class=\"db-main\">\n <slot></slot>\n </main>\n <slot name=\"footer\"></slot>\n </div>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,113 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3d093f06.js');
6
+ const index$1 = require('./index-c0df827d.js');
7
+
8
+ const DBPopover = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.initialized = false;
12
+ this.isExpanded = false;
13
+ }
14
+ handleAutoPlacement() {
15
+ this.isExpanded = true;
16
+ if (!this._ref)
17
+ return;
18
+ const article = this._ref.querySelector("article");
19
+ if (!article)
20
+ return;
21
+ index$1.handleDataOutside(article);
22
+ }
23
+ handleLeave(event) {
24
+ const element = event.target;
25
+ const parent = element.parentNode;
26
+ if (!parent ||
27
+ (element.parentNode.querySelector(":focus") !== element &&
28
+ element.parentNode.querySelector(":focus-within") !== element &&
29
+ element.parentNode.querySelector(":hover") !== element)) {
30
+ this.isExpanded = false;
31
+ }
32
+ }
33
+ getTrigger() {
34
+ var _a;
35
+ if (this._ref) {
36
+ const children = Array.from(this._ref.children);
37
+ if (children.length >= 2) {
38
+ const firstChild = children[0];
39
+ if (firstChild.tagName.includes("-")) {
40
+ // this is a workaround for custom angular components
41
+ return ((_a = firstChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0
42
+ ? firstChild.children[0]
43
+ : null;
44
+ }
45
+ else {
46
+ return firstChild;
47
+ }
48
+ }
49
+ }
50
+ return null;
51
+ }
52
+ /**
53
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
54
+ * @param element the ref for the component
55
+ * @param customElementSelector the custom element like `my-component`
56
+ */
57
+ enableAttributePassing(element, customElementSelector) {
58
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
59
+ if (element && parent) {
60
+ const attributes = parent.attributes;
61
+ for (let i = 0; i < attributes.length; i++) {
62
+ const attr = attributes.item(i);
63
+ if (attr &&
64
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
65
+ element.setAttribute(attr.name, attr.value);
66
+ parent.removeAttribute(attr.name);
67
+ }
68
+ if (attr && attr.name === "class") {
69
+ const isWebComponent = attr.value.includes("hydrated");
70
+ const value = attr.value.replace("hydrated", "").trim();
71
+ const currentClass = element.getAttribute("class");
72
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
73
+ if (isWebComponent) {
74
+ // Stencil is using this class for lazy loading component
75
+ parent.setAttribute("class", "hydrated");
76
+ }
77
+ else {
78
+ parent.removeAttribute(attr.name);
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ componentDidLoad() {
85
+ this.enableAttributePassing(this._ref, "db-popover");
86
+ this.initialized = true;
87
+ }
88
+ componentDidUpdate() {
89
+ if (this._ref && this.initialized) {
90
+ const child = this.getTrigger();
91
+ if (child) {
92
+ child.ariaHasPopup = "true";
93
+ }
94
+ this.initialized = false;
95
+ }
96
+ if (this._ref) {
97
+ const child = this.getTrigger();
98
+ if (child) {
99
+ child.ariaExpanded = Boolean(this.isExpanded).toString();
100
+ }
101
+ }
102
+ }
103
+ render() {
104
+ var _a;
105
+ return (index.h("div", { key: '959688fa0ba764ae73b1dc6c184aaf74c31d163c', class: index$1.cls("db-popover", this.className), ref: (el) => {
106
+ this._ref = el;
107
+ }, id: this.id, onFocus: () => this.handleAutoPlacement(), onBlur: (event) => this.handleLeave(event), onMouseEnter: () => this.handleAutoPlacement(), onMouseLeave: (event) => this.handleLeave(event) }, index.h("slot", { key: 'a4d9922139a48d24095791378175abca0b6bd53e', name: "trigger" }), index.h("article", { key: 'dabb36120c1a3b7f56f723a18abadc539f4ef851', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": index$1.getBooleanAsString(this.gap), "data-animation": index$1.getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": this.open, "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, index.h("slot", { key: 'c184bdeeaf5db986c6631b5cbd9a2dce4a8d3eec' }))));
108
+ }
109
+ };
110
+
111
+ exports.db_popover = DBPopover;
112
+
113
+ //# sourceMappingURL=db-popover.cjs.entry.js.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KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAEhDD,mEAAM,IAAI,EAAC,SAAS,GAAQ,EAC5BA,sEACE,KAAK,EAAC,oBAAoB,kBACZ,IAAI,CAAC,OAAO,cAChBE,0BAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,oBACtBA,0BAAkB,CAAC,MAAA,IAAI,CAAC,SAAS,mCAAI,IAAI,CAAC,eAC/C,IAAI,CAAC,IAAI,gBACR,IAAI,CAAC,KAAK,gBACV,IAAI,CAAC,KAAK,oBACN,IAAI,CAAC,SAAS,IAE9BF,oEAAa,CACL,CACN,EACN;KACH;;;;;","names":["handleDataOutside","h","cls","getBooleanAsString"],"sources":["src/components/popover/popover.tsx"],"sourcesContent":["import { DBPopoverProps, DBPopoverState } from \"./model\";\nimport { cls, getBooleanAsString, handleDataOutside } from \"../../utils\";\n\nimport { Component, h, Fragment, Prop, State } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot trigger - TODO: Add description for slotTrigger\n */\n @Component({\n tag: \"db-popover\",\n})\nexport class DBPopover {\n private _ref!: HTMLDivElement | null;\n @Prop() id: DBPopoverProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBPopoverProps[\"className\"];\n @Prop() spacing: DBPopoverProps[\"spacing\"];\n @Prop() gap: DBPopoverProps[\"gap\"];\n @Prop() animation: DBPopoverProps[\"animation\"];\n @Prop() open: DBPopoverProps[\"open\"];\n @Prop() delay: DBPopoverProps[\"delay\"];\n @Prop() width: DBPopoverProps[\"width\"];\n @Prop() placement: DBPopoverProps[\"placement\"];\n\n @State() initialized = false;\n @State() isExpanded = false;\n\n handleAutoPlacement() {\n this.isExpanded = true;\n if (!this._ref) return;\n const article = this._ref.querySelector(\"article\");\n if (!article) return;\n handleDataOutside(article);\n }\n handleLeave(event: any) {\n const element = event.target as HTMLElement;\n const parent = element.parentNode;\n if (\n !parent ||\n (element.parentNode.querySelector(\":focus\") !== element &&\n element.parentNode.querySelector(\":focus-within\") !== element &&\n element.parentNode.querySelector(\":hover\") !== element)\n ) {\n this.isExpanded = false;\n }\n }\n getTrigger() {\n if (this._ref) {\n const children: Element[] = Array.from(this._ref.children);\n if (children.length >= 2) {\n const firstChild = children[0];\n if (firstChild.tagName.includes(\"-\")) {\n // this is a workaround for custom angular components\n return firstChild.children?.length > 0\n ? firstChild.children[0]\n : null;\n } else {\n return firstChild;\n }\n }\n }\n return null;\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-popover\");\n this.initialized = true;\n }\n\n componentDidUpdate() {\n if (this._ref && this.initialized) {\n const child = this.getTrigger();\n if (child) {\n child.ariaHasPopup = \"true\";\n }\n this.initialized = false;\n }\n if (this._ref) {\n const child = this.getTrigger();\n if (child) {\n child.ariaExpanded = Boolean(this.isExpanded).toString();\n }\n }\n }\n\n render() {\n return (\n <div\n class={cls(\"db-popover\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n onFocus={() => this.handleAutoPlacement()}\n onBlur={(event) => this.handleLeave(event)}\n onMouseEnter={() => this.handleAutoPlacement()}\n onMouseLeave={(event) => this.handleLeave(event)}\n >\n <slot name=\"trigger\"></slot>\n <article\n class=\"db-popover-content\"\n data-spacing={this.spacing}\n data-gap={getBooleanAsString(this.gap)}\n data-animation={getBooleanAsString(this.animation ?? true)}\n data-open={this.open}\n data-delay={this.delay}\n data-width={this.width}\n data-placement={this.placement}\n >\n <slot></slot>\n </article>\n </div>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,98 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3d093f06.js');
6
+ const index$1 = require('./index-c0df827d.js');
7
+
8
+ const DBRadio = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.onChange = index.createEvent(this, "onChange", 7);
12
+ this.onBlur = index.createEvent(this, "onBlur", 7);
13
+ this.onFocus = index.createEvent(this, "onFocus", 7);
14
+ this.initialized = false;
15
+ this._id = undefined;
16
+ }
17
+ handleChange(event) {
18
+ if (this.onChange) {
19
+ this.onChange.emit(event);
20
+ }
21
+ if (this.change) {
22
+ this.change(event);
23
+ }
24
+ }
25
+ handleBlur(event) {
26
+ if (this.onBlur) {
27
+ this.onBlur.emit(event);
28
+ }
29
+ if (this.blur) {
30
+ this.blur(event);
31
+ }
32
+ }
33
+ handleFocus(event) {
34
+ if (this.onFocus) {
35
+ this.onFocus.emit(event);
36
+ }
37
+ if (this.focus) {
38
+ this.focus(event);
39
+ }
40
+ }
41
+ /**
42
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
43
+ * @param element the ref for the component
44
+ * @param customElementSelector the custom element like `my-component`
45
+ */
46
+ enableAttributePassing(element, customElementSelector) {
47
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
48
+ if (element && parent) {
49
+ const attributes = parent.attributes;
50
+ for (let i = 0; i < attributes.length; i++) {
51
+ const attr = attributes.item(i);
52
+ if (attr &&
53
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
54
+ element.setAttribute(attr.name, attr.value);
55
+ parent.removeAttribute(attr.name);
56
+ }
57
+ if (attr && attr.name === "class") {
58
+ const isWebComponent = attr.value.includes("hydrated");
59
+ const value = attr.value.replace("hydrated", "").trim();
60
+ const currentClass = element.getAttribute("class");
61
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
62
+ if (isWebComponent) {
63
+ // Stencil is using this class for lazy loading component
64
+ parent.setAttribute("class", "hydrated");
65
+ }
66
+ else {
67
+ parent.removeAttribute(attr.name);
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ componentDidLoad() {
74
+ var _a;
75
+ this.enableAttributePassing(this._ref, "db-radio");
76
+ this.initialized = true;
77
+ this._id = (_a = this.id) !== null && _a !== void 0 ? _a : `radio-${index$1.uuid()}`;
78
+ }
79
+ componentDidUpdate() {
80
+ if (this.checked && this.initialized && document && this._id) {
81
+ const radioElement = document === null || document === void 0 ? void 0 : document.getElementById(this._id);
82
+ if (radioElement) {
83
+ if (this.checked != undefined) {
84
+ radioElement.checked = true;
85
+ }
86
+ }
87
+ }
88
+ }
89
+ render() {
90
+ return (index.h("label", { key: '05c0a0bb7843d804b0cc07da56c7d8101a9a0cb2', class: index$1.cls("db-radio", this.className), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), htmlFor: this._id }, index.h("input", { key: 'dd1b285bab651829e6b0dc7293d052b75f9c75fe', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
91
+ this._ref = el;
92
+ }, id: this._id, name: this.name, checked: this.checked, disabled: this.disabled, "aria-describedby": this.describedbyid, value: this.value, required: this.required, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : index.h("slot", null)));
93
+ }
94
+ };
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AAa,CAClC,EACR;KACH;;;;;","names":["uuid","h","cls","getHideProp"],"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"],"version":3}
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-3d093f06.js');
6
+ const index$1 = require('./index-c0df827d.js');
7
+ const constants = require('./constants-89822e5f.js');
8
+
9
+ const DBSection = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this._id = constants.DEFAULT_ID;
13
+ }
14
+ /**
15
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
16
+ * @param element the ref for the component
17
+ * @param customElementSelector the custom element like `my-component`
18
+ */
19
+ enableAttributePassing(element, customElementSelector) {
20
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
21
+ if (element && parent) {
22
+ const attributes = parent.attributes;
23
+ for (let i = 0; i < attributes.length; i++) {
24
+ const attr = attributes.item(i);
25
+ if (attr &&
26
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
27
+ element.setAttribute(attr.name, attr.value);
28
+ parent.removeAttribute(attr.name);
29
+ }
30
+ if (attr && attr.name === "class") {
31
+ const isWebComponent = attr.value.includes("hydrated");
32
+ const value = attr.value.replace("hydrated", "").trim();
33
+ const currentClass = element.getAttribute("class");
34
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
35
+ if (isWebComponent) {
36
+ // Stencil is using this class for lazy loading component
37
+ parent.setAttribute("class", "hydrated");
38
+ }
39
+ else {
40
+ parent.removeAttribute(attr.name);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ componentDidLoad() {
47
+ this.enableAttributePassing(this._ref, "db-section");
48
+ this._id = this.id || "section-" + index$1.uuid();
49
+ }
50
+ render() {
51
+ return (index.h("section", { key: 'e7968521b6967bc9832d0953f3adf5c0f12263c4', class: index$1.cls("db-section", this.className), ref: (el) => {
52
+ this._ref = el;
53
+ }, id: this._id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: 'a87c12f1d2379a3e6a41b7db1d1e5ba3dc64d60c' })));
54
+ }
55
+ };
56
+
57
+ exports.db_section = DBSection;
58
+
59
+ //# sourceMappingURL=db-section.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"db-section.entry.cjs.js","mappings":";;;;;;;;MAca,SAAS;IAHrB;;QAUU,QAAG,GAAGA,oBAAU,CAAC;KA8D3B;;;;;;IAvDS,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE;YACrB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC1C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChC,IACE,IAAI;qBACH,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAChE;oBACA,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACnC;gBACD,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACjC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;oBACvD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;oBACxD,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;oBACnD,OAAO,CAAC,YAAY,CAClB,IAAI,CAAC,IAAI,EACT,GAAG,YAAY,GAAG,GAAG,YAAY,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,CACpD,CAAC;oBACF,IAAI,cAAc,EAAE;;wBAElB,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;qBAC1C;yBAAM;wBACL,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;qBACnC;iBACF;aACF;SACF;KACF;IAED,gBAAgB;QACd,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QACrD,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,IAAI,UAAU,GAAGC,YAAI,EAAE,CAAC;KAC3C;IAED,MAAM;QACJ,QACEC,sEACE,KAAK,EAAEC,WAAG,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,EACxC,GAAG,EAAE,CAAC,EAAO;gBACX,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;aAChB,EACD,EAAE,EAAE,IAAI,CAAC,GAAG,kBACE,IAAI,CAAC,OAAO,IAAI,QAAQ,gBAC1B,IAAI,CAAC,KAAK,IAEtBD,oEAAa,CACL,EACV;KACH;;;;;","names":["DEFAULT_ID","uuid","h","cls"],"sources":["src/components/section/section.tsx"],"sourcesContent":["import { DBSectionProps, DBSectionState } 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-section\",\n})\nexport class DBSection {\n private _ref!: HTMLDivElement | null;\n @Prop() id: DBSectionProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBSectionProps[\"className\"];\n @Prop() spacing: DBSectionProps[\"spacing\"];\n @Prop() width: DBSectionProps[\"width\"];\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-section\");\n this._id = this.id || \"section-\" + uuid();\n }\n\n render() {\n return (\n <section\n class={cls(\"db-section\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-spacing={this.spacing || \"medium\"}\n data-width={this.width}\n >\n <slot></slot>\n </section>\n );\n }\n}\n"],"version":3}