@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,154 @@
1
+ import { cls } from "../../utils";
2
+ import { h } from "@stencil/core";
3
+ /**
4
+ * @slot children - This is a default/unnamed slot
5
+
6
+ */
7
+ export class DBTabPanel {
8
+ /**
9
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
10
+ * @param element the ref for the component
11
+ * @param customElementSelector the custom element like `my-component`
12
+ */
13
+ enableAttributePassing(element, customElementSelector) {
14
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
15
+ if (element && parent) {
16
+ const attributes = parent.attributes;
17
+ for (let i = 0; i < attributes.length; i++) {
18
+ const attr = attributes.item(i);
19
+ if (attr &&
20
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
+ element.setAttribute(attr.name, attr.value);
22
+ parent.removeAttribute(attr.name);
23
+ }
24
+ if (attr && attr.name === "class") {
25
+ const isWebComponent = attr.value.includes("hydrated");
26
+ const value = attr.value.replace("hydrated", "").trim();
27
+ const currentClass = element.getAttribute("class");
28
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
29
+ if (isWebComponent) {
30
+ // Stencil is using this class for lazy loading component
31
+ parent.setAttribute("class", "hydrated");
32
+ }
33
+ else {
34
+ parent.removeAttribute(attr.name);
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ componentDidLoad() {
41
+ this.enableAttributePassing(this._ref, "db-tab-panel");
42
+ }
43
+ render() {
44
+ return (h("section", { key: '0d41da4c7a0ff41ae23c271fb550b1431c8b9de0', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
45
+ this._ref = el;
46
+ }, id: this.id, "aria-labelledby": this.labelledBy }, this.content ? this.content : null, h("slot", { key: '3a81ddc76c2b38a38c3b0006a59d2eb55f248ad7' })));
47
+ }
48
+ static get is() { return "db-tab-panel"; }
49
+ static get properties() {
50
+ return {
51
+ "className": {
52
+ "type": "string",
53
+ "mutable": false,
54
+ "complexType": {
55
+ "original": "DBTabPanelProps[\"className\"]",
56
+ "resolved": "string",
57
+ "references": {
58
+ "DBTabPanelProps": {
59
+ "location": "import",
60
+ "path": "./model",
61
+ "id": "src/components/tab-panel/model.ts::DBTabPanelProps"
62
+ }
63
+ }
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": ""
70
+ },
71
+ "getter": false,
72
+ "setter": false,
73
+ "attribute": "classname",
74
+ "reflect": false
75
+ },
76
+ "id": {
77
+ "type": "string",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "DBTabPanelProps[\"id\"]",
81
+ "resolved": "string",
82
+ "references": {
83
+ "DBTabPanelProps": {
84
+ "location": "import",
85
+ "path": "./model",
86
+ "id": "src/components/tab-panel/model.ts::DBTabPanelProps"
87
+ }
88
+ }
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": ""
95
+ },
96
+ "getter": false,
97
+ "setter": false,
98
+ "attribute": "id",
99
+ "reflect": false
100
+ },
101
+ "labelledBy": {
102
+ "type": "string",
103
+ "mutable": false,
104
+ "complexType": {
105
+ "original": "DBTabPanelProps[\"labelledBy\"]",
106
+ "resolved": "string",
107
+ "references": {
108
+ "DBTabPanelProps": {
109
+ "location": "import",
110
+ "path": "./model",
111
+ "id": "src/components/tab-panel/model.ts::DBTabPanelProps"
112
+ }
113
+ }
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": ""
120
+ },
121
+ "getter": false,
122
+ "setter": false,
123
+ "attribute": "labelled-by",
124
+ "reflect": false
125
+ },
126
+ "content": {
127
+ "type": "string",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "DBTabPanelProps[\"content\"]",
131
+ "resolved": "string",
132
+ "references": {
133
+ "DBTabPanelProps": {
134
+ "location": "import",
135
+ "path": "./model",
136
+ "id": "src/components/tab-panel/model.ts::DBTabPanelProps"
137
+ }
138
+ }
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": ""
145
+ },
146
+ "getter": false,
147
+ "setter": false,
148
+ "attribute": "content",
149
+ "reflect": false
150
+ }
151
+ };
152
+ }
153
+ }
154
+ //# sourceMappingURL=tab-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-panel.js","sourceRoot":"","sources":["../../../src/components/tab-panel/tab-panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,CAAC,EAAY,IAAI,EAAE,MAAM,eAAe,CAAC;AAG7D;;;GAGG;AAIH,MAAM,OAAO,UAAU;IAQrB;;;;OAIG;IACK,sBAAsB,CAC5B,OAA2B,EAC3B,qBAA6B;QAE7B,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACvD,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChC,IACE,IAAI;oBACJ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAChE,CAAC;oBACD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC5C,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACpC,CAAC;gBACD,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;oBAClC,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,CAAC,CAAC,CAAC,GAAG,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,CACpD,CAAC;oBACF,IAAI,cAAc,EAAE,CAAC;wBACnB,yDAAyD;wBACzD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;oBAC3C,CAAC;yBAAM,CAAC;wBACN,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACpC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IACzD,CAAC;IAED,MAAM;QACJ,OAAO,CACL,gEACE,KAAK,EAAE,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,EAC1C,IAAI,EAAC,UAAU,EACf,GAAG,EAAE,CAAC,EAAO,EAAE,EAAE;gBACf,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;YACjB,CAAC,EACD,EAAE,EAAE,IAAI,CAAC,EAAE,qBACM,IAAI,CAAC,UAAU;YAE/B,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;YACnC,8DAAa,CACL,CACX,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { DBTabPanelProps, DBTabPanelState } from \"./model\";\nimport { cls } from \"../../utils\";\n\nimport { Component, h, Fragment, Prop } from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-tab-panel\",\n})\nexport class DBTabPanel {\n private _ref!: HTMLDivElement | null;\n @Prop({attribute: \"classname\"}) className: DBTabPanelProps[\"className\"];\n @Prop() id: DBTabPanelProps[\"id\"];\n @Prop() labelledBy: DBTabPanelProps[\"labelledBy\"];\n @Prop() content: DBTabPanelProps[\"content\"];\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-tab-panel\");\n }\n\n render() {\n return (\n <section\n class={cls(\"db-tab-panel\", this.className)}\n role=\"tabpanel\"\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n aria-labelledby={this.labelledBy}\n >\n {this.content ? this.content : null}\n <slot></slot>\n </section>\n );\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import { DBTabs } from "./tabs";
2
+ export default DBTabs;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAe,MAAM,CAAC","sourcesContent":["import { DBTabs } from './tabs';\n\nexport default DBTabs;"]}
@@ -0,0 +1,3 @@
1
+ export const TabsBehaviorList = ['scrollbar', 'arrows'];
2
+ export const TabsInitialSelectedModeList = ['auto', 'manually'];
3
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/components/tabs/model.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,gBAAgB,GAAI,CAAC,WAAW,EAAE,QAAQ,CAAW,CAAC;AAEnE,MAAM,CAAC,MAAM,2BAA2B,GAAI,CAAC,MAAM,EAAE,UAAU,CAAW,CAAC","sourcesContent":["import { AlignmentProps, GlobalProps, GlobalState, InitializedState, OrientationProps, WidthProps } from '../../shared/model';\nimport { DBTabItemProps } from '../tab-item/model';\nimport { DBTabPanelProps } from '../tab-panel/model';\nexport const TabsBehaviorList = (['scrollbar', 'arrows'] as const);\nexport type TabsBehaviorType = (typeof TabsBehaviorList)[number];\nexport const TabsInitialSelectedModeList = (['auto', 'manually'] as const);\nexport type TabsInitialSelectedModeType = (typeof TabsInitialSelectedModeList)[number];\nexport type DBSimpleTabProps = DBTabItemProps & DBTabPanelProps;\nexport type DBTabsDefaultProps = {\n /**\n * Change amount of distance if you click on an arrow, only available with behavior=\"arrows\"\n */\n arrowScrollDistance?: number;\n\n /**\n * Show a scrollbar or buttons with arrows to navigate for horizontal tabs with overflow visible\n */\n behavior?: TabsBehaviorType;\n\n /**\n * Default behavior is auto selecting the first tab, change selected tab by index\n */\n initialSelectedIndex?: number;\n\n /**\n * Default behavior is auto selecting the first tab, disable it with 'manually'\n */\n initialSelectedMode?: TabsInitialSelectedModeType;\n\n /**\n * The name of the tab bar, is required for grouping multiple tabs together. Will overwrite names from children.\n */\n name?: string;\n\n /**\n * Provide simple tabs with label + text as content\n */\n tabs?: DBSimpleTabProps[] | string;\n};\nexport type DBTabsProps = DBTabsDefaultProps & GlobalProps & OrientationProps & WidthProps & AlignmentProps;\nexport type DBTabsDefaultState = {\n _name: string;\n scrollContainer?: Element | null;\n scroll: (left?: boolean) => void;\n showScrollLeft?: boolean;\n showScrollRight?: boolean;\n evaluateScrollButtons: (tabList: Element) => void;\n convertTabs: (tabs?: unknown[] | string | undefined) => DBSimpleTabProps[];\n initTabList: () => void;\n initTabs: (init?: boolean) => void;\n};\nexport type DBTabsState = DBTabsDefaultState & GlobalState & InitializedState"]}
@@ -0,0 +1,458 @@
1
+ import { cls, uuid } from "../../utils";
2
+ import { h, Fragment } from "@stencil/core";
3
+ /**
4
+ * @slot children - This is a default/unnamed slot
5
+
6
+ */
7
+ export class DBTabs {
8
+ constructor() {
9
+ this._id = "tabs-" + uuid();
10
+ this._name = "";
11
+ this.initialized = false;
12
+ this.showScrollLeft = false;
13
+ this.showScrollRight = false;
14
+ this.scrollContainer = null;
15
+ }
16
+ convertTabs(tabs) {
17
+ try {
18
+ if (typeof tabs === "string") {
19
+ return JSON.parse(tabs);
20
+ }
21
+ return tabs;
22
+ }
23
+ catch (error) {
24
+ console.error(error);
25
+ }
26
+ return [];
27
+ }
28
+ evaluateScrollButtons(tList) {
29
+ const needsScroll = tList.scrollWidth > tList.clientWidth;
30
+ this.showScrollLeft = needsScroll && tList.scrollLeft > 1;
31
+ this.showScrollRight =
32
+ needsScroll && tList.scrollLeft < tList.scrollWidth - tList.clientWidth;
33
+ }
34
+ scroll(left) {
35
+ var _a;
36
+ let step = this.arrowScrollDistance || 100;
37
+ if (left) {
38
+ step *= -1;
39
+ }
40
+ (_a = this.scrollContainer) === null || _a === void 0 ? void 0 : _a.scrollBy({
41
+ top: 0,
42
+ left: step,
43
+ behavior: "smooth",
44
+ });
45
+ }
46
+ initTabList() {
47
+ if (this._ref) {
48
+ const tabList = this._ref.querySelector(".db-tab-list");
49
+ if (tabList) {
50
+ const container = tabList.querySelector('[role="tablist"]');
51
+ if (container) {
52
+ container.setAttribute("aria-orientation", this.orientation || "horizontal");
53
+ if (this.behavior === "arrows") {
54
+ this.scrollContainer = container;
55
+ this.evaluateScrollButtons(container);
56
+ container.addEventListener("scroll", () => {
57
+ this.evaluateScrollButtons(container);
58
+ });
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ initTabs(init) {
65
+ if (this._ref) {
66
+ const tabItems = Array.from(this._ref.getElementsByClassName("db-tab-item"));
67
+ for (const tabItem of tabItems) {
68
+ const index = tabItems.indexOf(tabItem);
69
+ const label = tabItem.querySelector("label");
70
+ const input = tabItem.querySelector("input");
71
+ if (input && label) {
72
+ if (!input.id) {
73
+ const tabId = `${this._name}-tab-${index}`;
74
+ label.setAttribute("for", tabId);
75
+ input.setAttribute("aria-controls", `${this._name}-tab-panel-${index}`);
76
+ input.id = tabId;
77
+ input.setAttribute("name", this._name);
78
+ }
79
+ if (init) {
80
+ // Auto select
81
+ const autoSelect = !this.initialSelectedMode || this.initialSelectedMode === "auto";
82
+ const shouldAutoSelect = (this.initialSelectedIndex == null && index === 0) ||
83
+ this.initialSelectedIndex === index;
84
+ if (autoSelect && shouldAutoSelect) {
85
+ input.click();
86
+ }
87
+ }
88
+ }
89
+ }
90
+ const tabPanels = Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));
91
+ for (const panel of tabPanels) {
92
+ if (panel.id)
93
+ continue;
94
+ const index = tabPanels.indexOf(panel);
95
+ panel.id = `${this._name}-tab-panel-${index}`;
96
+ panel.setAttribute("aria-labelledby", `${this._name}-tab-${index}`);
97
+ }
98
+ }
99
+ }
100
+ /**
101
+ * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
102
+ * @param element the ref for the component
103
+ * @param customElementSelector the custom element like `my-component`
104
+ */
105
+ enableAttributePassing(element, customElementSelector) {
106
+ const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
107
+ if (element && parent) {
108
+ const attributes = parent.attributes;
109
+ for (let i = 0; i < attributes.length; i++) {
110
+ const attr = attributes.item(i);
111
+ if (attr &&
112
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
113
+ element.setAttribute(attr.name, attr.value);
114
+ parent.removeAttribute(attr.name);
115
+ }
116
+ if (attr && attr.name === "class") {
117
+ const isWebComponent = attr.value.includes("hydrated");
118
+ const value = attr.value.replace("hydrated", "").trim();
119
+ const currentClass = element.getAttribute("class");
120
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
121
+ if (isWebComponent) {
122
+ // Stencil is using this class for lazy loading component
123
+ parent.setAttribute("class", "hydrated");
124
+ }
125
+ else {
126
+ parent.removeAttribute(attr.name);
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ componentDidLoad() {
133
+ this.enableAttributePassing(this._ref, "db-tabs");
134
+ this._id = this.id || this._id;
135
+ this._name = `tabs-${this.name || uuid()}`;
136
+ this.initialized = true;
137
+ }
138
+ componentDidUpdate() {
139
+ if (this._ref && this.initialized) {
140
+ this.initTabList();
141
+ this.initTabs(true);
142
+ const tabList = this._ref.querySelector(".db-tab-list");
143
+ if (tabList) {
144
+ const observer = new MutationObserver((mutations) => {
145
+ mutations.forEach((mutation) => {
146
+ if (mutation.removedNodes.length || mutation.addedNodes.length) {
147
+ this.initTabList();
148
+ this.initTabs();
149
+ }
150
+ });
151
+ });
152
+ observer.observe(tabList, {
153
+ childList: true,
154
+ subtree: true,
155
+ });
156
+ }
157
+ this.initialized = false;
158
+ }
159
+ }
160
+ render() {
161
+ var _a, _b, _c, _d;
162
+ return (h("div", { key: '21022d470b48c2c96722eba446dee5b0a2dac8bf', class: cls("db-tabs", this.className), ref: (el) => {
163
+ this._ref = el;
164
+ }, id: this._id, "data-orientation": this.orientation, "data-scroll-behavior": this.behavior, "data-alignment": (_a = this.alignment) !== null && _a !== void 0 ? _a : "start", "data-width": (_b = this.width) !== null && _b !== void 0 ? _b : "auto" }, this.showScrollLeft ? (h("db-button", { class: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", noText: true, onClick: () => this.scroll(true) }, "Scroll left")) : null, this.tabs ? (h(Fragment, null, h("db-tab-list", null, (_c = this.convertTabs(this.tabs)) === null || _c === void 0 ? void 0 : _c.map((tab, index) => (h("db-tab-item", { key: this.name + "tab-item" + index, active: tab.active, label: tab.label, iconAfter: tab.iconAfter, icon: tab.icon, noText: tab.noText })))), (_d = this.convertTabs(this.tabs)) === null || _d === void 0 ? void 0 :
165
+ _d.map((tab, index) => (h("db-tab-panel", { key: this.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null, this.showScrollRight ? (h("db-button", { class: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", noText: true, onClick: () => this.scroll() }, "Scroll right")) : null, h("slot", { key: '79d11e4acb87af7cd40fb54ffae5c1affb28f3ba' })));
166
+ }
167
+ static get is() { return "db-tabs"; }
168
+ static get properties() {
169
+ return {
170
+ "id": {
171
+ "type": "string",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "DBTabsProps[\"id\"]",
175
+ "resolved": "string",
176
+ "references": {
177
+ "DBTabsProps": {
178
+ "location": "import",
179
+ "path": "./model",
180
+ "id": "src/components/tabs/model.ts::DBTabsProps"
181
+ }
182
+ }
183
+ },
184
+ "required": false,
185
+ "optional": false,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": ""
189
+ },
190
+ "getter": false,
191
+ "setter": false,
192
+ "attribute": "id",
193
+ "reflect": false
194
+ },
195
+ "name": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "DBTabsProps[\"name\"]",
200
+ "resolved": "string",
201
+ "references": {
202
+ "DBTabsProps": {
203
+ "location": "import",
204
+ "path": "./model",
205
+ "id": "src/components/tabs/model.ts::DBTabsProps"
206
+ }
207
+ }
208
+ },
209
+ "required": false,
210
+ "optional": false,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": ""
214
+ },
215
+ "getter": false,
216
+ "setter": false,
217
+ "attribute": "name",
218
+ "reflect": false
219
+ },
220
+ "arrowScrollDistance": {
221
+ "type": "number",
222
+ "mutable": false,
223
+ "complexType": {
224
+ "original": "DBTabsProps[\"arrowScrollDistance\"]",
225
+ "resolved": "number",
226
+ "references": {
227
+ "DBTabsProps": {
228
+ "location": "import",
229
+ "path": "./model",
230
+ "id": "src/components/tabs/model.ts::DBTabsProps"
231
+ }
232
+ }
233
+ },
234
+ "required": false,
235
+ "optional": false,
236
+ "docs": {
237
+ "tags": [],
238
+ "text": ""
239
+ },
240
+ "getter": false,
241
+ "setter": false,
242
+ "attribute": "arrow-scroll-distance",
243
+ "reflect": false
244
+ },
245
+ "orientation": {
246
+ "type": "string",
247
+ "mutable": false,
248
+ "complexType": {
249
+ "original": "DBTabsProps[\"orientation\"]",
250
+ "resolved": "\"horizontal\" | \"vertical\"",
251
+ "references": {
252
+ "DBTabsProps": {
253
+ "location": "import",
254
+ "path": "./model",
255
+ "id": "src/components/tabs/model.ts::DBTabsProps"
256
+ }
257
+ }
258
+ },
259
+ "required": false,
260
+ "optional": false,
261
+ "docs": {
262
+ "tags": [],
263
+ "text": ""
264
+ },
265
+ "getter": false,
266
+ "setter": false,
267
+ "attribute": "orientation",
268
+ "reflect": false
269
+ },
270
+ "behavior": {
271
+ "type": "string",
272
+ "mutable": false,
273
+ "complexType": {
274
+ "original": "DBTabsProps[\"behavior\"]",
275
+ "resolved": "\"arrows\" | \"scrollbar\"",
276
+ "references": {
277
+ "DBTabsProps": {
278
+ "location": "import",
279
+ "path": "./model",
280
+ "id": "src/components/tabs/model.ts::DBTabsProps"
281
+ }
282
+ }
283
+ },
284
+ "required": false,
285
+ "optional": false,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": ""
289
+ },
290
+ "getter": false,
291
+ "setter": false,
292
+ "attribute": "behavior",
293
+ "reflect": false
294
+ },
295
+ "initialSelectedMode": {
296
+ "type": "string",
297
+ "mutable": false,
298
+ "complexType": {
299
+ "original": "DBTabsProps[\"initialSelectedMode\"]",
300
+ "resolved": "\"auto\" | \"manually\"",
301
+ "references": {
302
+ "DBTabsProps": {
303
+ "location": "import",
304
+ "path": "./model",
305
+ "id": "src/components/tabs/model.ts::DBTabsProps"
306
+ }
307
+ }
308
+ },
309
+ "required": false,
310
+ "optional": false,
311
+ "docs": {
312
+ "tags": [],
313
+ "text": ""
314
+ },
315
+ "getter": false,
316
+ "setter": false,
317
+ "attribute": "initial-selected-mode",
318
+ "reflect": false
319
+ },
320
+ "initialSelectedIndex": {
321
+ "type": "number",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "DBTabsProps[\"initialSelectedIndex\"]",
325
+ "resolved": "number",
326
+ "references": {
327
+ "DBTabsProps": {
328
+ "location": "import",
329
+ "path": "./model",
330
+ "id": "src/components/tabs/model.ts::DBTabsProps"
331
+ }
332
+ }
333
+ },
334
+ "required": false,
335
+ "optional": false,
336
+ "docs": {
337
+ "tags": [],
338
+ "text": ""
339
+ },
340
+ "getter": false,
341
+ "setter": false,
342
+ "attribute": "initial-selected-index",
343
+ "reflect": false
344
+ },
345
+ "className": {
346
+ "type": "string",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "DBTabsProps[\"className\"]",
350
+ "resolved": "string",
351
+ "references": {
352
+ "DBTabsProps": {
353
+ "location": "import",
354
+ "path": "./model",
355
+ "id": "src/components/tabs/model.ts::DBTabsProps"
356
+ }
357
+ }
358
+ },
359
+ "required": false,
360
+ "optional": false,
361
+ "docs": {
362
+ "tags": [],
363
+ "text": ""
364
+ },
365
+ "getter": false,
366
+ "setter": false,
367
+ "attribute": "classname",
368
+ "reflect": false
369
+ },
370
+ "alignment": {
371
+ "type": "string",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "DBTabsProps[\"alignment\"]",
375
+ "resolved": "\"center\" | \"start\"",
376
+ "references": {
377
+ "DBTabsProps": {
378
+ "location": "import",
379
+ "path": "./model",
380
+ "id": "src/components/tabs/model.ts::DBTabsProps"
381
+ }
382
+ }
383
+ },
384
+ "required": false,
385
+ "optional": false,
386
+ "docs": {
387
+ "tags": [],
388
+ "text": ""
389
+ },
390
+ "getter": false,
391
+ "setter": false,
392
+ "attribute": "alignment",
393
+ "reflect": false
394
+ },
395
+ "width": {
396
+ "type": "string",
397
+ "mutable": false,
398
+ "complexType": {
399
+ "original": "DBTabsProps[\"width\"]",
400
+ "resolved": "\"auto\" | \"full\"",
401
+ "references": {
402
+ "DBTabsProps": {
403
+ "location": "import",
404
+ "path": "./model",
405
+ "id": "src/components/tabs/model.ts::DBTabsProps"
406
+ }
407
+ }
408
+ },
409
+ "required": false,
410
+ "optional": false,
411
+ "docs": {
412
+ "tags": [],
413
+ "text": ""
414
+ },
415
+ "getter": false,
416
+ "setter": false,
417
+ "attribute": "width",
418
+ "reflect": false
419
+ },
420
+ "tabs": {
421
+ "type": "string",
422
+ "mutable": false,
423
+ "complexType": {
424
+ "original": "DBTabsProps[\"tabs\"]",
425
+ "resolved": "DBSimpleTabProps[] | string",
426
+ "references": {
427
+ "DBTabsProps": {
428
+ "location": "import",
429
+ "path": "./model",
430
+ "id": "src/components/tabs/model.ts::DBTabsProps"
431
+ }
432
+ }
433
+ },
434
+ "required": false,
435
+ "optional": false,
436
+ "docs": {
437
+ "tags": [],
438
+ "text": ""
439
+ },
440
+ "getter": false,
441
+ "setter": false,
442
+ "attribute": "tabs",
443
+ "reflect": false
444
+ }
445
+ };
446
+ }
447
+ static get states() {
448
+ return {
449
+ "_id": {},
450
+ "_name": {},
451
+ "initialized": {},
452
+ "showScrollLeft": {},
453
+ "showScrollRight": {},
454
+ "scrollContainer": {}
455
+ };
456
+ }
457
+ }
458
+ //# sourceMappingURL=tabs.js.map