@db-ux/wc-core-components 4.10.2 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bundle/db-accordion-item.js +1 -1
  3. package/bundle/db-accordion.js +1 -1
  4. package/bundle/db-badge.js +1 -1
  5. package/bundle/db-brand.js +1 -1
  6. package/bundle/db-button.js +1 -1
  7. package/bundle/db-card.js +1 -1
  8. package/bundle/db-checkbox.js +1 -1
  9. package/bundle/db-custom-button.js +1 -1
  10. package/bundle/db-custom-select-dropdown.js +1 -1
  11. package/bundle/db-custom-select-form-field.js +1 -1
  12. package/bundle/db-custom-select-list-item.js +1 -1
  13. package/bundle/db-custom-select-list.js +1 -1
  14. package/bundle/db-custom-select.js +1 -1
  15. package/bundle/db-divider.js +1 -1
  16. package/bundle/db-drawer.js +1 -1
  17. package/bundle/db-header.js +1 -1
  18. package/bundle/db-icon.js +1 -1
  19. package/bundle/db-infotext.js +1 -1
  20. package/bundle/db-input.js +1 -1
  21. package/bundle/db-link.js +1 -1
  22. package/bundle/db-navigation-item.js +1 -1
  23. package/bundle/db-navigation.js +1 -1
  24. package/bundle/db-notification.js +1 -1
  25. package/bundle/db-page.js +1 -1
  26. package/bundle/db-popover.js +1 -1
  27. package/bundle/db-radio.js +1 -1
  28. package/bundle/db-section.js +1 -1
  29. package/bundle/db-select.js +1 -1
  30. package/bundle/db-stack.js +1 -1
  31. package/bundle/db-switch.js +1 -1
  32. package/bundle/db-tab-item.js +1 -1
  33. package/bundle/db-tab-list.js +1 -1
  34. package/bundle/db-tab-panel.js +1 -1
  35. package/bundle/db-table-body.d.ts +11 -0
  36. package/bundle/db-table-body.js +1 -0
  37. package/bundle/db-table-caption.d.ts +11 -0
  38. package/bundle/db-table-caption.js +1 -0
  39. package/bundle/db-table-data-cell.d.ts +11 -0
  40. package/bundle/db-table-data-cell.js +1 -0
  41. package/bundle/db-table-footer.d.ts +11 -0
  42. package/bundle/db-table-footer.js +1 -0
  43. package/bundle/db-table-head.d.ts +11 -0
  44. package/bundle/db-table-head.js +1 -0
  45. package/bundle/db-table-header-cell.d.ts +11 -0
  46. package/bundle/db-table-header-cell.js +1 -0
  47. package/bundle/db-table-row.d.ts +11 -0
  48. package/bundle/db-table-row.js +1 -0
  49. package/bundle/db-table.d.ts +11 -0
  50. package/bundle/db-table.js +1 -0
  51. package/bundle/db-tabs.js +1 -1
  52. package/bundle/db-tag.js +1 -1
  53. package/bundle/db-textarea.js +1 -1
  54. package/bundle/db-tooltip.js +1 -1
  55. package/bundle/index.js +1 -1
  56. package/bundle/{p-BGVLpaFn.js → p-B5ANMEnQ.js} +1 -1
  57. package/bundle/p-BJwvv-yT.js +1 -0
  58. package/bundle/{p-B5E_0kTi.js → p-BNiKxu3y.js} +1 -1
  59. package/bundle/p-B_bPnncM.js +1 -0
  60. package/bundle/p-BnLhi6Lz.js +1 -0
  61. package/bundle/p-BrBlnLrn.js +1 -0
  62. package/bundle/p-CByFfoSH.js +1 -0
  63. package/bundle/{p-LbPYp2oP.js → p-CQo0C7QE.js} +1 -1
  64. package/bundle/p-CR2ZbfYe.js +1 -0
  65. package/bundle/p-CYYSsu3p.js +1 -0
  66. package/bundle/p-CeDu282h.js +1 -0
  67. package/bundle/p-CfLPOLHz.js +1 -0
  68. package/bundle/p-CoOxyQb2.js +1 -0
  69. package/bundle/p-CqED0CfD.js +1 -0
  70. package/bundle/p-Cr_z1Jfi.js +1 -0
  71. package/bundle/{p-DisehhY5.js → p-D-XzX0R7.js} +1 -1
  72. package/{dist/db-ux/p-D5mInaY7.js → bundle/p-D6L0n3gO.js} +1 -1
  73. package/bundle/p-DJTpgiBy.js +1 -0
  74. package/bundle/p-DMSIvqcA.js +1 -0
  75. package/bundle/p-DUiroUyR.js +1 -0
  76. package/bundle/p-DdyMClpj.js +1 -0
  77. package/bundle/p-DjVjS2Tb.js +1 -0
  78. package/bundle/p-in4Kv88F.js +1 -0
  79. package/dist/cjs/db-accordion-item.cjs.entry.js +4 -4
  80. package/dist/cjs/db-accordion.cjs.entry.js +3 -3
  81. package/dist/cjs/db-badge.cjs.entry.js +4 -4
  82. package/dist/cjs/db-brand.cjs.entry.js +4 -4
  83. package/dist/cjs/db-button.cjs.entry.js +6 -5
  84. package/dist/cjs/db-card.cjs.entry.js +4 -4
  85. package/dist/cjs/db-checkbox.cjs.entry.js +5 -5
  86. package/dist/cjs/db-custom-button.cjs.entry.js +6 -5
  87. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +18 -17
  88. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
  89. package/dist/cjs/db-custom-select.cjs.entry.js +10 -10
  90. package/dist/cjs/db-divider.cjs.entry.js +3 -3
  91. package/dist/cjs/db-drawer.cjs.entry.js +5 -5
  92. package/dist/cjs/db-header.cjs.entry.js +4 -4
  93. package/dist/cjs/db-icon.cjs.entry.js +4 -4
  94. package/dist/cjs/db-infotext.cjs.entry.js +4 -4
  95. package/dist/cjs/db-link_4.cjs.entry.js +248 -0
  96. package/dist/cjs/db-navigation-item.cjs.entry.js +4 -4
  97. package/dist/cjs/db-navigation.cjs.entry.js +4 -4
  98. package/dist/cjs/db-notification.cjs.entry.js +4 -4
  99. package/dist/cjs/db-page.cjs.entry.js +4 -4
  100. package/dist/cjs/db-popover.cjs.entry.js +5 -5
  101. package/dist/cjs/db-radio.cjs.entry.js +5 -5
  102. package/dist/cjs/db-section.cjs.entry.js +4 -4
  103. package/dist/cjs/db-select.cjs.entry.js +6 -6
  104. package/dist/cjs/db-stack.cjs.entry.js +4 -4
  105. package/dist/cjs/db-switch.cjs.entry.js +5 -5
  106. package/dist/cjs/db-tab-item_3.cjs.entry.js +12 -11
  107. package/dist/cjs/db-table-body_3.cjs.entry.js +194 -0
  108. package/dist/cjs/{db-link.cjs.entry.js → db-table-caption.cjs.entry.js} +7 -8
  109. package/dist/cjs/db-table.cjs.entry.js +158 -0
  110. package/dist/cjs/db-tabs.cjs.entry.js +4 -4
  111. package/dist/cjs/db-textarea.cjs.entry.js +5 -5
  112. package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
  113. package/dist/cjs/db-ux.cjs.js +2 -2
  114. package/dist/cjs/{document-click-listener-B2-xKJv3.js → document-click-listener-DdNXbErU.js} +1 -1
  115. package/dist/cjs/{document-scroll-listener-ChQ7XZRk.js → document-scroll-listener-CvAZ6uPr.js} +1 -1
  116. package/dist/cjs/{form-components-_ncB_U2D.js → form-components-CmQlkARp.js} +1 -1
  117. package/dist/cjs/{index-HN8AqU2e.js → index-C313bRqJ.js} +21 -0
  118. package/dist/cjs/{index-2_9ESkQu.js → index-spuu3sXz.js} +13 -8
  119. package/dist/cjs/index.cjs.js +23 -4
  120. package/dist/cjs/loader.cjs.js +2 -2
  121. package/dist/collection/collection-manifest.json +8 -0
  122. package/dist/collection/components/accordion/accordion.js +1 -1
  123. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  124. package/dist/collection/components/badge/badge.js +2 -2
  125. package/dist/collection/components/brand/brand.js +3 -3
  126. package/dist/collection/components/button/button.js +7 -6
  127. package/dist/collection/components/card/card.js +2 -2
  128. package/dist/collection/components/checkbox/checkbox.js +3 -3
  129. package/dist/collection/components/custom-button/custom-button.js +7 -6
  130. package/dist/collection/components/custom-select/custom-select.js +7 -7
  131. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
  132. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  133. package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
  134. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +3 -3
  135. package/dist/collection/components/divider/divider.js +1 -1
  136. package/dist/collection/components/drawer/drawer.js +3 -3
  137. package/dist/collection/components/header/header.js +2 -2
  138. package/dist/collection/components/icon/icon.js +3 -3
  139. package/dist/collection/components/infotext/infotext.js +3 -3
  140. package/dist/collection/components/input/input.js +11 -10
  141. package/dist/collection/components/link/link.js +2 -2
  142. package/dist/collection/components/navigation/navigation.js +2 -2
  143. package/dist/collection/components/navigation-item/navigation-item.js +3 -3
  144. package/dist/collection/components/notification/notification.js +3 -3
  145. package/dist/collection/components/page/page.js +2 -2
  146. package/dist/collection/components/popover/popover.js +2 -2
  147. package/dist/collection/components/radio/radio.js +2 -2
  148. package/dist/collection/components/section/section.js +2 -2
  149. package/dist/collection/components/select/select.js +5 -5
  150. package/dist/collection/components/stack/stack.js +2 -2
  151. package/dist/collection/components/switch/switch.js +6 -6
  152. package/dist/collection/components/tab-item/tab-item.js +9 -8
  153. package/dist/collection/components/tab-list/tab-list.js +2 -2
  154. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  155. package/dist/collection/components/table/examples/data.js +258 -0
  156. package/dist/collection/components/table/index.js +2 -0
  157. package/dist/collection/components/table/model.js +6 -0
  158. package/dist/collection/components/table/table.js +478 -0
  159. package/dist/collection/components/table-body/index.js +2 -0
  160. package/dist/collection/components/table-body/model.js +1 -0
  161. package/dist/collection/components/table-body/table-body.js +144 -0
  162. package/dist/collection/components/table-caption/index.js +2 -0
  163. package/dist/collection/components/table-caption/model.js +1 -0
  164. package/dist/collection/components/table-caption/table-caption.js +116 -0
  165. package/dist/collection/components/table-data-cell/index.js +2 -0
  166. package/dist/collection/components/table-data-cell/model.js +1 -0
  167. package/dist/collection/components/table-data-cell/table-data-cell.js +298 -0
  168. package/dist/collection/components/table-footer/index.js +2 -0
  169. package/dist/collection/components/table-footer/model.js +1 -0
  170. package/dist/collection/components/table-footer/table-footer.js +144 -0
  171. package/dist/collection/components/table-head/index.js +2 -0
  172. package/dist/collection/components/table-head/model.js +1 -0
  173. package/dist/collection/components/table-head/table-head.js +147 -0
  174. package/dist/collection/components/table-header-cell/index.js +2 -0
  175. package/dist/collection/components/table-header-cell/model.js +1 -0
  176. package/dist/collection/components/table-header-cell/table-header-cell.js +376 -0
  177. package/dist/collection/components/table-row/index.js +2 -0
  178. package/dist/collection/components/table-row/model.js +1 -0
  179. package/dist/collection/components/table-row/table-row.js +202 -0
  180. package/dist/collection/components/tabs/tabs.js +2 -2
  181. package/dist/collection/components/tag/tag.js +3 -3
  182. package/dist/collection/components/textarea/textarea.js +3 -3
  183. package/dist/collection/components/tooltip/tooltip.js +2 -2
  184. package/dist/collection/index.js +16 -0
  185. package/dist/collection/shared/model.js +1 -1
  186. package/dist/collection/utils/index.js +13 -8
  187. package/dist/custom-elements.json +6998 -3826
  188. package/dist/db-ux/db-ux.esm.js +1 -1
  189. package/dist/db-ux/index.esm.js +1 -1
  190. package/dist/db-ux/{p-2461e08a.entry.js → p-08271c80.entry.js} +1 -1
  191. package/dist/db-ux/{p-0f524f6c.entry.js → p-105ffa74.entry.js} +1 -1
  192. package/dist/db-ux/p-15adca91.entry.js +1 -0
  193. package/dist/db-ux/{p-db71c251.entry.js → p-1a322a0c.entry.js} +1 -1
  194. package/dist/db-ux/{p-46e3033b.entry.js → p-1f7232c0.entry.js} +1 -1
  195. package/dist/db-ux/p-27e2f6f2.entry.js +1 -0
  196. package/dist/db-ux/p-2907f214.entry.js +1 -0
  197. package/dist/db-ux/p-2ff958e4.entry.js +1 -0
  198. package/dist/db-ux/p-3423b7af.entry.js +1 -0
  199. package/dist/db-ux/p-365e6edf.entry.js +1 -0
  200. package/dist/db-ux/{p-fd334f14.entry.js → p-42516007.entry.js} +1 -1
  201. package/dist/db-ux/p-5045182c.entry.js +1 -0
  202. package/dist/db-ux/{p-26b7e21f.entry.js → p-5e1d42e5.entry.js} +1 -1
  203. package/dist/db-ux/{p-94de5791.entry.js → p-61b28212.entry.js} +1 -1
  204. package/dist/db-ux/p-6850a53c.entry.js +1 -0
  205. package/dist/db-ux/p-6bff55b4.entry.js +1 -0
  206. package/dist/db-ux/p-6e7c5e42.entry.js +1 -0
  207. package/dist/db-ux/p-76adf385.entry.js +1 -0
  208. package/dist/db-ux/p-78f7b353.entry.js +1 -0
  209. package/dist/db-ux/p-7fa5d304.entry.js +1 -0
  210. package/dist/db-ux/p-95b69e71.entry.js +1 -0
  211. package/dist/db-ux/p-99ebe6ec.entry.js +1 -0
  212. package/dist/db-ux/p-BihrW11j.js +1 -0
  213. package/dist/db-ux/p-BlbKvvUv.js +2 -0
  214. package/{bundle/p-BLyvxOmU.js → dist/db-ux/p-BtImZ8Nt.js} +1 -1
  215. package/dist/db-ux/p-OOIf-5XP.js +1 -0
  216. package/dist/db-ux/p-a5dc355d.entry.js +1 -0
  217. package/dist/db-ux/{p-4d5201a3.entry.js → p-a6113789.entry.js} +1 -1
  218. package/dist/db-ux/p-b9c0feaf.entry.js +1 -0
  219. package/dist/db-ux/p-c14fa91a.entry.js +1 -0
  220. package/dist/db-ux/p-c65b807e.entry.js +1 -0
  221. package/dist/db-ux/{p-d173eace.entry.js → p-dd9cedbe.entry.js} +1 -1
  222. package/dist/db-ux/{p-652739e4.entry.js → p-e3f705fd.entry.js} +1 -1
  223. package/dist/db-ux/{p-5eae34e7.entry.js → p-e4cddc9f.entry.js} +1 -1
  224. package/dist/db-ux/p-e7a8612c.entry.js +1 -0
  225. package/dist/db-ux/{p-4c3a8823.entry.js → p-ee8c3243.entry.js} +1 -1
  226. package/dist/db-ux/p-f0d0acfc.entry.js +1 -0
  227. package/dist/db-ux/{p-e2740857.entry.js → p-f15748ea.entry.js} +1 -1
  228. package/dist/db-ux/p-fumiz06Y.js +1 -0
  229. package/dist/esm/db-accordion-item.entry.js +4 -4
  230. package/dist/esm/db-accordion.entry.js +3 -3
  231. package/dist/esm/db-badge.entry.js +4 -4
  232. package/dist/esm/db-brand.entry.js +4 -4
  233. package/dist/esm/db-button.entry.js +6 -5
  234. package/dist/esm/db-card.entry.js +4 -4
  235. package/dist/esm/db-checkbox.entry.js +5 -5
  236. package/dist/esm/db-custom-button.entry.js +6 -5
  237. package/dist/esm/db-custom-select-dropdown_5.entry.js +18 -17
  238. package/dist/esm/db-custom-select-form-field.entry.js +4 -4
  239. package/dist/esm/db-custom-select.entry.js +10 -10
  240. package/dist/esm/db-divider.entry.js +3 -3
  241. package/dist/esm/db-drawer.entry.js +5 -5
  242. package/dist/esm/db-header.entry.js +4 -4
  243. package/dist/esm/db-icon.entry.js +4 -4
  244. package/dist/esm/db-infotext.entry.js +4 -4
  245. package/dist/esm/db-link_4.entry.js +243 -0
  246. package/dist/esm/db-navigation-item.entry.js +4 -4
  247. package/dist/esm/db-navigation.entry.js +4 -4
  248. package/dist/esm/db-notification.entry.js +4 -4
  249. package/dist/esm/db-page.entry.js +4 -4
  250. package/dist/esm/db-popover.entry.js +5 -5
  251. package/dist/esm/db-radio.entry.js +5 -5
  252. package/dist/esm/db-section.entry.js +4 -4
  253. package/dist/esm/db-select.entry.js +6 -6
  254. package/dist/esm/db-stack.entry.js +4 -4
  255. package/dist/esm/db-switch.entry.js +5 -5
  256. package/dist/esm/db-tab-item_3.entry.js +12 -11
  257. package/dist/esm/db-table-body_3.entry.js +190 -0
  258. package/dist/esm/{db-link.entry.js → db-table-caption.entry.js} +7 -8
  259. package/dist/esm/db-table.entry.js +156 -0
  260. package/dist/esm/db-tabs.entry.js +4 -4
  261. package/dist/esm/db-textarea.entry.js +5 -5
  262. package/dist/esm/db-tooltip.entry.js +5 -5
  263. package/dist/esm/db-ux.js +3 -3
  264. package/dist/esm/{document-click-listener-D7W_VE5O.js → document-click-listener-9wJfRcvz.js} +1 -1
  265. package/dist/esm/{document-scroll-listener-DOBe3Oa9.js → document-scroll-listener-4F0ZAg9p.js} +1 -1
  266. package/dist/esm/{form-components-D6LQfJvq.js → form-components-ZV7IN0oG.js} +1 -1
  267. package/dist/esm/{index-BGaQ0Bx8.js → index-BlbKvvUv.js} +21 -0
  268. package/dist/esm/{index-xkoBSP8R.js → index-fumiz06Y.js} +13 -8
  269. package/dist/esm/index.js +16 -5
  270. package/dist/esm/loader.js +3 -3
  271. package/dist/types/components/table/examples/data.d.ts +9 -0
  272. package/dist/types/components/table/index.d.ts +2 -0
  273. package/dist/types/components/table/model.d.ts +74 -0
  274. package/dist/types/components/table/table.d.ts +38 -0
  275. package/dist/types/components/table-body/index.d.ts +2 -0
  276. package/dist/types/components/table-body/model.d.ts +8 -0
  277. package/dist/types/components/table-body/table-body.d.ts +20 -0
  278. package/dist/types/components/table-caption/index.d.ts +2 -0
  279. package/dist/types/components/table-caption/model.d.ts +5 -0
  280. package/dist/types/components/table-caption/table-caption.d.ts +19 -0
  281. package/dist/types/components/table-data-cell/index.d.ts +2 -0
  282. package/dist/types/components/table-data-cell/model.d.ts +5 -0
  283. package/dist/types/components/table-data-cell/table-data-cell.d.ts +26 -0
  284. package/dist/types/components/table-footer/index.d.ts +2 -0
  285. package/dist/types/components/table-footer/model.d.ts +8 -0
  286. package/dist/types/components/table-footer/table-footer.d.ts +20 -0
  287. package/dist/types/components/table-head/index.d.ts +2 -0
  288. package/dist/types/components/table-head/model.d.ts +10 -0
  289. package/dist/types/components/table-head/table-head.d.ts +59 -0
  290. package/dist/types/components/table-header-cell/index.d.ts +2 -0
  291. package/dist/types/components/table-header-cell/model.d.ts +24 -0
  292. package/dist/types/components/table-header-cell/table-header-cell.d.ts +29 -0
  293. package/dist/types/components/table-row/index.d.ts +2 -0
  294. package/dist/types/components/table-row/model.d.ts +30 -0
  295. package/dist/types/components/table-row/table-row.d.ts +24 -0
  296. package/dist/types/components.d.ts +278 -0
  297. package/dist/types/index.d.ts +16 -0
  298. package/dist/types/shared/figma.d.ts +70 -18
  299. package/dist/types/shared/model.d.ts +44 -2
  300. package/dist/types/utils/index.d.ts +9 -4
  301. package/dist/vscode.html-custom-data.json +400 -2
  302. package/dist/web-types.json +744 -5
  303. package/package.json +4 -4
  304. package/bundle/p--qzKkpB9.js +0 -1
  305. package/bundle/p-9fgrfYbf.js +0 -1
  306. package/bundle/p-BChikMGc.js +0 -1
  307. package/bundle/p-BPxBqqlc.js +0 -1
  308. package/bundle/p-C6_y8Tot.js +0 -1
  309. package/bundle/p-CKfRqzsn.js +0 -1
  310. package/bundle/p-CnYMRGX1.js +0 -1
  311. package/bundle/p-CwzdaLE3.js +0 -1
  312. package/bundle/p-CyxQfbGC.js +0 -1
  313. package/bundle/p-DstwggLZ.js +0 -1
  314. package/bundle/p-suxDlmXD.js +0 -1
  315. package/dist/db-ux/p-11211f1a.entry.js +0 -1
  316. package/dist/db-ux/p-1a4881de.entry.js +0 -1
  317. package/dist/db-ux/p-21e5f6d0.entry.js +0 -1
  318. package/dist/db-ux/p-272bdffc.entry.js +0 -1
  319. package/dist/db-ux/p-32c359a9.entry.js +0 -1
  320. package/dist/db-ux/p-33606da9.entry.js +0 -1
  321. package/dist/db-ux/p-44391c06.entry.js +0 -1
  322. package/dist/db-ux/p-4b99f205.entry.js +0 -1
  323. package/dist/db-ux/p-4c238643.entry.js +0 -1
  324. package/dist/db-ux/p-93a6b1ee.entry.js +0 -1
  325. package/dist/db-ux/p-9728504d.entry.js +0 -1
  326. package/dist/db-ux/p-BGaQ0Bx8.js +0 -2
  327. package/dist/db-ux/p-CHLgQ9vn.js +0 -1
  328. package/dist/db-ux/p-D_roHmuC.js +0 -1
  329. package/dist/db-ux/p-a6c3ceaa.entry.js +0 -1
  330. package/dist/db-ux/p-cd3cfb4e.entry.js +0 -1
  331. package/dist/db-ux/p-cf045f35.entry.js +0 -1
  332. package/dist/db-ux/p-d3ada4cb.entry.js +0 -1
  333. package/dist/db-ux/p-d858f147.entry.js +0 -1
  334. package/dist/db-ux/p-ed5b3877.entry.js +0 -1
  335. package/dist/db-ux/p-fed0fc42.entry.js +0 -1
  336. package/dist/db-ux/p-xkoBSP8R.js +0 -1
@@ -0,0 +1,116 @@
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 DBTableCaption {
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 && attr.name !== 'data-density' &&
20
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
+ element.setAttribute(attr.name, attr.value);
22
+ parent.removeAttribute(attr.name);
23
+ }
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
29
+ const isWebComponent = attr.value.includes("hydrated");
30
+ const value = attr.value.replace("hydrated", "").trim();
31
+ const currentClass = element.getAttribute("class");
32
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
33
+ if (isWebComponent) {
34
+ // Stencil is using this class for lazy loading component
35
+ parent.setAttribute("class", "hydrated");
36
+ }
37
+ else {
38
+ parent.removeAttribute(attr.name);
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
51
+ this.enableAttributePassing(this._ref, "db-table-caption");
52
+ }
53
+ render() {
54
+ return (h("caption", { key: '45129365b814f87e7d337464f8f768fb3d9bd9c8', class: cls("db-table-caption", this.className), ref: (el) => {
55
+ this._ref = el;
56
+ }, id: this.id }, h("slot", { key: '80e7f4789799c755d2a03b55ef8ee7e05939bf96' })));
57
+ }
58
+ static get is() { return "db-table-caption"; }
59
+ static get properties() {
60
+ return {
61
+ "id": {
62
+ "type": "string",
63
+ "mutable": false,
64
+ "complexType": {
65
+ "original": "DBTableCaptionProps[\"id\"]",
66
+ "resolved": "string",
67
+ "references": {
68
+ "DBTableCaptionProps": {
69
+ "location": "import",
70
+ "path": "./model",
71
+ "id": "src/components/table-caption/model.ts::DBTableCaptionProps",
72
+ "referenceLocation": "DBTableCaptionProps"
73
+ }
74
+ }
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": ""
81
+ },
82
+ "getter": false,
83
+ "setter": false,
84
+ "reflect": false,
85
+ "attribute": "id"
86
+ },
87
+ "className": {
88
+ "type": "string",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "DBTableCaptionProps[\"className\"]",
92
+ "resolved": "string",
93
+ "references": {
94
+ "DBTableCaptionProps": {
95
+ "location": "import",
96
+ "path": "./model",
97
+ "id": "src/components/table-caption/model.ts::DBTableCaptionProps",
98
+ "referenceLocation": "DBTableCaptionProps"
99
+ }
100
+ }
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": ""
107
+ },
108
+ "getter": false,
109
+ "setter": false,
110
+ "reflect": false,
111
+ "attribute": "classname"
112
+ }
113
+ };
114
+ }
115
+ static get elementRef() { return "rootElement"; }
116
+ }
@@ -0,0 +1,2 @@
1
+ import { DBTableDataCell } from "./table-data-cell";
2
+ export default DBTableDataCell;
@@ -0,0 +1,298 @@
1
+ import { cls, getNumber } from "../../utils";
2
+ import { h } from "@stencil/core";
3
+ /**
4
+ * @slot children - This is a default/unnamed slot
5
+
6
+ */
7
+ export class DBTableDataCell {
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 && attr.name !== 'data-density' &&
20
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
+ element.setAttribute(attr.name, attr.value);
22
+ parent.removeAttribute(attr.name);
23
+ }
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
29
+ const isWebComponent = attr.value.includes("hydrated");
30
+ const value = attr.value.replace("hydrated", "").trim();
31
+ const currentClass = element.getAttribute("class");
32
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
33
+ if (isWebComponent) {
34
+ // Stencil is using this class for lazy loading component
35
+ parent.setAttribute("class", "hydrated");
36
+ }
37
+ else {
38
+ parent.removeAttribute(attr.name);
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
51
+ this.enableAttributePassing(this._ref, "db-table-data-cell");
52
+ }
53
+ render() {
54
+ return (h("td", { key: '9f67b2926bd9e418572aa855b1dba754bddd8297', class: cls("db-table-data-cell", this.className), ref: (el) => {
55
+ this._ref = el;
56
+ }, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, colSpan: getNumber(this.colSpan, this.colspan), rowSpan: getNumber(this.rowSpan, this.rowspan), headers: this.headers }, h("slot", { key: '73553f85f1a5ccb0d8b59b06760fd19318a2e19c' })));
57
+ }
58
+ static get is() { return "db-table-data-cell"; }
59
+ static get properties() {
60
+ return {
61
+ "id": {
62
+ "type": "string",
63
+ "mutable": false,
64
+ "complexType": {
65
+ "original": "DBTableDataCellProps[\"id\"]",
66
+ "resolved": "string",
67
+ "references": {
68
+ "DBTableDataCellProps": {
69
+ "location": "import",
70
+ "path": "./model",
71
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
72
+ "referenceLocation": "DBTableDataCellProps"
73
+ }
74
+ }
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": ""
81
+ },
82
+ "getter": false,
83
+ "setter": false,
84
+ "reflect": false,
85
+ "attribute": "id"
86
+ },
87
+ "className": {
88
+ "type": "string",
89
+ "mutable": false,
90
+ "complexType": {
91
+ "original": "DBTableDataCellProps[\"className\"]",
92
+ "resolved": "string",
93
+ "references": {
94
+ "DBTableDataCellProps": {
95
+ "location": "import",
96
+ "path": "./model",
97
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
98
+ "referenceLocation": "DBTableDataCellProps"
99
+ }
100
+ }
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": ""
107
+ },
108
+ "getter": false,
109
+ "setter": false,
110
+ "reflect": false,
111
+ "attribute": "classname"
112
+ },
113
+ "horizontalAlignment": {
114
+ "type": "string",
115
+ "mutable": false,
116
+ "complexType": {
117
+ "original": "DBTableDataCellProps[\"horizontalAlignment\"]",
118
+ "resolved": "\"center\" | \"end\" | \"start\"",
119
+ "references": {
120
+ "DBTableDataCellProps": {
121
+ "location": "import",
122
+ "path": "./model",
123
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
124
+ "referenceLocation": "DBTableDataCellProps"
125
+ }
126
+ }
127
+ },
128
+ "required": false,
129
+ "optional": false,
130
+ "docs": {
131
+ "tags": [],
132
+ "text": ""
133
+ },
134
+ "getter": false,
135
+ "setter": false,
136
+ "reflect": false,
137
+ "attribute": "horizontal-alignment"
138
+ },
139
+ "verticalAlignment": {
140
+ "type": "string",
141
+ "mutable": false,
142
+ "complexType": {
143
+ "original": "DBTableDataCellProps[\"verticalAlignment\"]",
144
+ "resolved": "\"center\" | \"end\" | \"start\"",
145
+ "references": {
146
+ "DBTableDataCellProps": {
147
+ "location": "import",
148
+ "path": "./model",
149
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
150
+ "referenceLocation": "DBTableDataCellProps"
151
+ }
152
+ }
153
+ },
154
+ "required": false,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": ""
159
+ },
160
+ "getter": false,
161
+ "setter": false,
162
+ "reflect": false,
163
+ "attribute": "vertical-alignment"
164
+ },
165
+ "colSpan": {
166
+ "type": "any",
167
+ "mutable": false,
168
+ "complexType": {
169
+ "original": "DBTableDataCellProps[\"colSpan\"]",
170
+ "resolved": "number | string",
171
+ "references": {
172
+ "DBTableDataCellProps": {
173
+ "location": "import",
174
+ "path": "./model",
175
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
176
+ "referenceLocation": "DBTableDataCellProps"
177
+ }
178
+ }
179
+ },
180
+ "required": false,
181
+ "optional": false,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "getter": false,
187
+ "setter": false,
188
+ "reflect": false,
189
+ "attribute": "col-span"
190
+ },
191
+ "colspan": {
192
+ "type": "any",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "DBTableDataCellProps[\"colspan\"]",
196
+ "resolved": "number | string",
197
+ "references": {
198
+ "DBTableDataCellProps": {
199
+ "location": "import",
200
+ "path": "./model",
201
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
202
+ "referenceLocation": "DBTableDataCellProps"
203
+ }
204
+ }
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "getter": false,
213
+ "setter": false,
214
+ "reflect": false,
215
+ "attribute": "colspan"
216
+ },
217
+ "rowSpan": {
218
+ "type": "any",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "DBTableDataCellProps[\"rowSpan\"]",
222
+ "resolved": "number | string",
223
+ "references": {
224
+ "DBTableDataCellProps": {
225
+ "location": "import",
226
+ "path": "./model",
227
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
228
+ "referenceLocation": "DBTableDataCellProps"
229
+ }
230
+ }
231
+ },
232
+ "required": false,
233
+ "optional": false,
234
+ "docs": {
235
+ "tags": [],
236
+ "text": ""
237
+ },
238
+ "getter": false,
239
+ "setter": false,
240
+ "reflect": false,
241
+ "attribute": "row-span"
242
+ },
243
+ "rowspan": {
244
+ "type": "any",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "DBTableDataCellProps[\"rowspan\"]",
248
+ "resolved": "number | string",
249
+ "references": {
250
+ "DBTableDataCellProps": {
251
+ "location": "import",
252
+ "path": "./model",
253
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
254
+ "referenceLocation": "DBTableDataCellProps"
255
+ }
256
+ }
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": ""
263
+ },
264
+ "getter": false,
265
+ "setter": false,
266
+ "reflect": false,
267
+ "attribute": "rowspan"
268
+ },
269
+ "headers": {
270
+ "type": "string",
271
+ "mutable": false,
272
+ "complexType": {
273
+ "original": "DBTableDataCellProps[\"headers\"]",
274
+ "resolved": "string",
275
+ "references": {
276
+ "DBTableDataCellProps": {
277
+ "location": "import",
278
+ "path": "./model",
279
+ "id": "src/components/table-data-cell/model.ts::DBTableDataCellProps",
280
+ "referenceLocation": "DBTableDataCellProps"
281
+ }
282
+ }
283
+ },
284
+ "required": false,
285
+ "optional": false,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": ""
289
+ },
290
+ "getter": false,
291
+ "setter": false,
292
+ "reflect": false,
293
+ "attribute": "headers"
294
+ }
295
+ };
296
+ }
297
+ static get elementRef() { return "rootElement"; }
298
+ }
@@ -0,0 +1,2 @@
1
+ import { DBTableFooter } from "./table-footer";
2
+ export default DBTableFooter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,144 @@
1
+ import { cls, uuid } from "../../utils";
2
+ import { h } from "@stencil/core";
3
+ /**
4
+ * @slot children - This is a default/unnamed slot
5
+
6
+ */
7
+ export class DBTableFooter {
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 && attr.name !== 'data-density' &&
20
+ (attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
21
+ element.setAttribute(attr.name, attr.value);
22
+ parent.removeAttribute(attr.name);
23
+ }
24
+ else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
25
+ element.setAttribute(attr.name, attr.value);
26
+ parent.removeAttribute(attr.name);
27
+ }
28
+ else if (attr && attr.name === "class") {
29
+ const isWebComponent = attr.value.includes("hydrated");
30
+ const value = attr.value.replace("hydrated", "").trim();
31
+ const currentClass = element.getAttribute("class");
32
+ element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
33
+ if (isWebComponent) {
34
+ // Stencil is using this class for lazy loading component
35
+ parent.setAttribute("class", "hydrated");
36
+ }
37
+ else {
38
+ parent.removeAttribute(attr.name);
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ componentDidLoad() {
45
+ if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
46
+ const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
47
+ if (connectedElement) {
48
+ connectedElement.remove();
49
+ }
50
+ }
51
+ this.enableAttributePassing(this._ref, "db-table-footer");
52
+ }
53
+ render() {
54
+ var _a;
55
+ return (h("tfoot", { key: 'ba1fcacfa32d5746615ba0aaaa5580a6c5c92f99', class: cls("db-table-footer", this.className), ref: (el) => {
56
+ this._ref = el;
57
+ }, id: this.id }, this.rows ? ((_a = this.rows) === null || _a === void 0 ? void 0 : _a.map((row, index) => {
58
+ var _a, _b, _c;
59
+ return (h("db-table-row", { class: (_a = row.className) !== null && _a !== void 0 ? _a : row.class, key: `${(_c = (_b = row.id) !== null && _b !== void 0 ? _b : this.id) !== null && _c !== void 0 ? _c : uuid()}-table-footer-row-${index}`, cells: row.cells, interactive: row.interactive, id: row.id }));
60
+ })) : (h("slot", null))));
61
+ }
62
+ static get is() { return "db-table-footer"; }
63
+ static get properties() {
64
+ return {
65
+ "id": {
66
+ "type": "string",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "DBTableFooterProps[\"id\"]",
70
+ "resolved": "string",
71
+ "references": {
72
+ "DBTableFooterProps": {
73
+ "location": "import",
74
+ "path": "./model",
75
+ "id": "src/components/table-footer/model.ts::DBTableFooterProps",
76
+ "referenceLocation": "DBTableFooterProps"
77
+ }
78
+ }
79
+ },
80
+ "required": false,
81
+ "optional": false,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": ""
85
+ },
86
+ "getter": false,
87
+ "setter": false,
88
+ "reflect": false,
89
+ "attribute": "id"
90
+ },
91
+ "className": {
92
+ "type": "string",
93
+ "mutable": false,
94
+ "complexType": {
95
+ "original": "DBTableFooterProps[\"className\"]",
96
+ "resolved": "string",
97
+ "references": {
98
+ "DBTableFooterProps": {
99
+ "location": "import",
100
+ "path": "./model",
101
+ "id": "src/components/table-footer/model.ts::DBTableFooterProps",
102
+ "referenceLocation": "DBTableFooterProps"
103
+ }
104
+ }
105
+ },
106
+ "required": false,
107
+ "optional": false,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": ""
111
+ },
112
+ "getter": false,
113
+ "setter": false,
114
+ "reflect": false,
115
+ "attribute": "classname"
116
+ },
117
+ "rows": {
118
+ "type": "unknown",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "DBTableFooterProps[\"rows\"]",
122
+ "resolved": "DBTableRowProps[]",
123
+ "references": {
124
+ "DBTableFooterProps": {
125
+ "location": "import",
126
+ "path": "./model",
127
+ "id": "src/components/table-footer/model.ts::DBTableFooterProps",
128
+ "referenceLocation": "DBTableFooterProps"
129
+ }
130
+ }
131
+ },
132
+ "required": false,
133
+ "optional": false,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": ""
137
+ },
138
+ "getter": false,
139
+ "setter": false
140
+ }
141
+ };
142
+ }
143
+ static get elementRef() { return "rootElement"; }
144
+ }
@@ -0,0 +1,2 @@
1
+ import { DBTableHead } from "./table-head";
2
+ export default DBTableHead;
@@ -0,0 +1 @@
1
+ export {};