@aithe/aithe-ui 26.2.3 → 26.3.1

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 (564) hide show
  1. package/README.md +16 -11
  2. package/dist/apps/admin/app.js +12 -0
  3. package/dist/apps/admin/components/admin-app.js +83 -0
  4. package/dist/apps/admin/components/admin-layout.d.ts +0 -1
  5. package/dist/apps/admin/components/admin-layout.d.ts.map +1 -1
  6. package/dist/apps/admin/components/admin-layout.js +250 -0
  7. package/dist/apps/admin/datahub/auth.js +24 -0
  8. package/dist/apps/admin/datahub/dashboard.js +16 -0
  9. package/dist/apps/admin/datahub/index.js +42 -0
  10. package/dist/apps/admin/datahub/menu.js +16 -0
  11. package/dist/apps/admin/datahub/mock/auth.js +11 -0
  12. package/dist/apps/admin/datahub/mock/dashboard.js +10 -0
  13. package/dist/apps/admin/datahub/mock/menu.js +42 -0
  14. package/dist/apps/admin/i18n/de-DE.js +37 -0
  15. package/dist/apps/admin/i18n/en-US.js +37 -0
  16. package/dist/apps/admin/i18n/es-ES.js +38 -0
  17. package/dist/apps/admin/i18n/fr-FR.js +37 -0
  18. package/dist/apps/admin/i18n/index.js +27 -0
  19. package/dist/apps/admin/i18n/ja-JP.js +38 -0
  20. package/dist/apps/admin/i18n/ko-KR.js +37 -0
  21. package/dist/apps/admin/i18n/pt-BR.js +37 -0
  22. package/dist/apps/admin/i18n/zh-CN.js +37 -0
  23. package/dist/apps/admin/i18n/zh-HK.js +37 -0
  24. package/dist/apps/admin/i18n/zh-TW.js +37 -0
  25. package/dist/apps/admin/pages/dashboard-page.d.ts +1 -0
  26. package/dist/apps/admin/pages/dashboard-page.d.ts.map +1 -1
  27. package/dist/apps/admin/pages/dashboard-page.js +199 -0
  28. package/dist/apps/admin/pages/login-page.js +278 -0
  29. package/dist/apps/admin/pages/not-found-page.js +57 -0
  30. package/dist/apps/admin/pages/role-page.js +76 -0
  31. package/dist/apps/admin/pages/settings-page.js +95 -0
  32. package/dist/apps/admin/pages/user-page.js +76 -0
  33. package/dist/apps/admin/router/index.js +43 -0
  34. package/dist/apps/admin/standalone.js +1 -0
  35. package/dist/apps/admin/store/auth.js +42 -0
  36. package/dist/apps/api/app.js +82 -0
  37. package/dist/apps/api/demo-data.d.ts.map +1 -1
  38. package/dist/apps/api/demo-data.js +965 -0
  39. package/dist/apps/api/docs-viewer.js +684 -0
  40. package/dist/apps/api/i18n/de-DE.d.ts.map +1 -1
  41. package/dist/apps/api/i18n/de-DE.js +130 -0
  42. package/dist/apps/api/i18n/en-US.d.ts.map +1 -1
  43. package/dist/apps/api/i18n/en-US.js +140 -0
  44. package/dist/apps/api/i18n/es-ES.d.ts.map +1 -1
  45. package/dist/apps/api/i18n/es-ES.js +130 -0
  46. package/dist/apps/api/i18n/fr-FR.d.ts.map +1 -1
  47. package/dist/apps/api/i18n/fr-FR.js +130 -0
  48. package/dist/apps/api/i18n/index.js +27 -0
  49. package/dist/apps/api/i18n/ja-JP.d.ts.map +1 -1
  50. package/dist/apps/api/i18n/ja-JP.js +130 -0
  51. package/dist/apps/api/i18n/ko-KR.d.ts.map +1 -1
  52. package/dist/apps/api/i18n/ko-KR.js +130 -0
  53. package/dist/apps/api/i18n/pt-BR.d.ts.map +1 -1
  54. package/dist/apps/api/i18n/pt-BR.js +130 -0
  55. package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -1
  56. package/dist/apps/api/i18n/zh-CN.js +140 -0
  57. package/dist/apps/api/i18n/zh-HK.d.ts.map +1 -1
  58. package/dist/apps/api/i18n/zh-HK.js +130 -0
  59. package/dist/apps/api/i18n/zh-TW.d.ts.map +1 -1
  60. package/dist/apps/api/i18n/zh-TW.js +130 -0
  61. package/dist/apps/api/pages/docs.d.ts.map +1 -1
  62. package/dist/apps/api/pages/docs.js +367 -0
  63. package/dist/apps/api/standalone.js +1 -0
  64. package/dist/apps/demo/app.js +273 -0
  65. package/dist/apps/demo/editor.d.ts.map +1 -1
  66. package/dist/apps/demo/editor.js +270 -0
  67. package/dist/apps/demo/helpers.js +7 -0
  68. package/dist/apps/demo/i18n/de-DE.d.ts.map +1 -1
  69. package/dist/apps/demo/i18n/de-DE.js +269 -0
  70. package/dist/apps/demo/i18n/en-US.d.ts.map +1 -1
  71. package/dist/apps/demo/i18n/en-US.js +281 -0
  72. package/dist/apps/demo/i18n/es-ES.d.ts.map +1 -1
  73. package/dist/apps/demo/i18n/es-ES.js +269 -0
  74. package/dist/apps/demo/i18n/fr-FR.d.ts.map +1 -1
  75. package/dist/apps/demo/i18n/fr-FR.js +269 -0
  76. package/dist/apps/demo/i18n/index.js +27 -0
  77. package/dist/apps/demo/i18n/ja-JP.d.ts.map +1 -1
  78. package/dist/apps/demo/i18n/ja-JP.js +269 -0
  79. package/dist/apps/demo/i18n/ko-KR.d.ts.map +1 -1
  80. package/dist/apps/demo/i18n/ko-KR.js +269 -0
  81. package/dist/apps/demo/i18n/pt-BR.d.ts.map +1 -1
  82. package/dist/apps/demo/i18n/pt-BR.js +269 -0
  83. package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -1
  84. package/dist/apps/demo/i18n/zh-CN.js +281 -0
  85. package/dist/apps/demo/i18n/zh-HK.d.ts.map +1 -1
  86. package/dist/apps/demo/i18n/zh-HK.js +269 -0
  87. package/dist/apps/demo/i18n/zh-TW.d.ts.map +1 -1
  88. package/dist/apps/demo/i18n/zh-TW.js +269 -0
  89. package/dist/apps/demo/pages/autoform.js +412 -0
  90. package/dist/apps/demo/pages/basic.js +157 -0
  91. package/dist/apps/demo/pages/code.js +1088 -0
  92. package/dist/apps/demo/pages/container.js +42 -0
  93. package/dist/apps/demo/pages/dashboard.js +159 -0
  94. package/dist/apps/demo/pages/data.d.ts.map +1 -1
  95. package/dist/apps/demo/pages/data.js +327 -0
  96. package/dist/apps/demo/pages/display.d.ts.map +1 -1
  97. package/dist/apps/demo/pages/display.js +295 -0
  98. package/dist/apps/demo/pages/feedback.js +94 -0
  99. package/dist/apps/demo/pages/form.js +99 -0
  100. package/dist/apps/demo/pages/layout.js +74 -0
  101. package/dist/apps/demo/pages/navigation.js +54 -0
  102. package/dist/apps/demo/pages/progress.js +42 -0
  103. package/dist/apps/demo/pages/theme.js +126 -0
  104. package/dist/apps/demo/standalone.js +1 -0
  105. package/dist/components/basic/AGENTS.md +1 -0
  106. package/dist/components/basic/avatar.js +168 -0
  107. package/dist/components/basic/badge.js +157 -0
  108. package/dist/components/basic/button-group.js +70 -0
  109. package/dist/components/basic/button.d.ts +2 -4
  110. package/dist/components/basic/button.d.ts.map +1 -1
  111. package/dist/components/basic/button.js +315 -0
  112. package/dist/components/basic/card.js +186 -0
  113. package/dist/components/basic/chip.js +103 -0
  114. package/dist/components/basic/divider.js +127 -0
  115. package/dist/components/basic/empty.js +72 -0
  116. package/dist/components/basic/icon.js +129 -0
  117. package/dist/components/basic/input.d.ts.map +1 -1
  118. package/dist/components/basic/input.js +314 -0
  119. package/dist/components/basic/tag.d.ts +7 -2
  120. package/dist/components/basic/tag.d.ts.map +1 -1
  121. package/dist/components/basic/tag.js +248 -0
  122. package/dist/components/basic/textarea.d.ts +0 -1
  123. package/dist/components/basic/textarea.d.ts.map +1 -1
  124. package/dist/components/basic/textarea.js +130 -0
  125. package/dist/components/container/callout.js +108 -0
  126. package/dist/components/container/details.js +117 -0
  127. package/dist/components/container/scroller.js +144 -0
  128. package/dist/components/container/split-panel.js +150 -0
  129. package/dist/components/data/AGENTS.md +1 -1
  130. package/dist/components/data/box-table.d.ts +53 -0
  131. package/dist/components/data/box-table.d.ts.map +1 -0
  132. package/dist/components/data/box-table.js +220 -0
  133. package/dist/components/data/dropdown.d.ts +8 -5
  134. package/dist/components/data/dropdown.d.ts.map +1 -1
  135. package/dist/components/data/dropdown.js +219 -0
  136. package/dist/components/data/metrics-group.js +180 -0
  137. package/dist/components/data/metrics.d.ts +11 -0
  138. package/dist/components/data/metrics.d.ts.map +1 -1
  139. package/dist/components/data/metrics.js +309 -0
  140. package/dist/components/data/pagination.js +119 -0
  141. package/dist/components/data/tab-pane.d.ts +58 -12
  142. package/dist/components/data/tab-pane.d.ts.map +1 -1
  143. package/dist/components/data/tab-pane.js +130 -0
  144. package/dist/components/data/table-column.d.ts +29 -5
  145. package/dist/components/data/table-column.d.ts.map +1 -1
  146. package/dist/components/data/table-column.js +123 -0
  147. package/dist/components/data/table.d.ts +134 -54
  148. package/dist/components/data/table.d.ts.map +1 -1
  149. package/dist/components/data/table.js +1210 -0
  150. package/dist/components/data/tabs.d.ts +60 -3
  151. package/dist/components/data/tabs.d.ts.map +1 -1
  152. package/dist/components/data/tabs.js +416 -0
  153. package/dist/components/data/timeline-item.js +127 -0
  154. package/dist/components/data/timeline.js +204 -0
  155. package/dist/components/data/tree-menu.d.ts +12 -2
  156. package/dist/components/data/tree-menu.d.ts.map +1 -1
  157. package/dist/components/data/tree-menu.js +482 -0
  158. package/dist/components/data/tree.js +269 -0
  159. package/dist/components/display/AGENTS.md +5 -2
  160. package/dist/components/display/animated-image.js +98 -0
  161. package/dist/components/display/brief-box.d.ts +42 -0
  162. package/dist/components/display/brief-box.d.ts.map +1 -0
  163. package/dist/components/display/brief-box.js +117 -0
  164. package/dist/components/display/carousel.js +223 -0
  165. package/dist/components/display/code-editor.d.ts.map +1 -1
  166. package/dist/components/display/code-editor.js +976 -0
  167. package/dist/components/display/comparison.js +132 -0
  168. package/dist/components/display/desc-item.d.ts +48 -0
  169. package/dist/components/display/desc-item.d.ts.map +1 -0
  170. package/dist/components/display/desc-item.js +150 -0
  171. package/dist/components/display/desc.d.ts +64 -0
  172. package/dist/components/display/desc.d.ts.map +1 -0
  173. package/dist/components/display/desc.js +363 -0
  174. package/dist/components/display/detail-box.d.ts +51 -0
  175. package/dist/components/display/detail-box.d.ts.map +1 -0
  176. package/dist/components/display/detail-box.js +157 -0
  177. package/dist/components/display/label.js +166 -0
  178. package/dist/components/display/markdown-editor.js +319 -0
  179. package/dist/components/display/markdown.d.ts.map +1 -1
  180. package/dist/components/display/markdown.js +193 -0
  181. package/dist/components/display/mini-box.d.ts +31 -0
  182. package/dist/components/display/mini-box.d.ts.map +1 -0
  183. package/dist/components/display/mini-box.js +137 -0
  184. package/dist/components/display/profile.d.ts +18 -0
  185. package/dist/components/display/profile.d.ts.map +1 -0
  186. package/dist/components/display/profile.js +164 -0
  187. package/dist/components/feedback/AGENTS.md +1 -0
  188. package/dist/components/feedback/alert.js +150 -0
  189. package/dist/components/feedback/dialog.js +228 -0
  190. package/dist/components/feedback/drawer.d.ts.map +1 -1
  191. package/dist/components/feedback/drawer.js +338 -0
  192. package/dist/components/feedback/loading.js +130 -0
  193. package/dist/components/feedback/modal.d.ts.map +1 -1
  194. package/dist/components/feedback/modal.js +303 -0
  195. package/dist/components/feedback/notification.js +170 -0
  196. package/dist/components/feedback/popover.d.ts +1 -1
  197. package/dist/components/feedback/popover.js +124 -0
  198. package/dist/components/feedback/toast.js +142 -0
  199. package/dist/components/feedback/tooltip.d.ts +1 -1
  200. package/dist/components/feedback/tooltip.js +153 -0
  201. package/dist/components/form/AGENTS.md +4 -0
  202. package/dist/components/form/autoform-item.js +761 -0
  203. package/dist/components/form/autoform.d.ts +15 -5
  204. package/dist/components/form/autoform.d.ts.map +1 -1
  205. package/dist/components/form/autoform.js +303 -0
  206. package/dist/components/form/checkbox-group.js +118 -0
  207. package/dist/components/form/checkbox.js +123 -0
  208. package/dist/components/form/color-picker.js +148 -0
  209. package/dist/components/form/combobox.d.ts.map +1 -1
  210. package/dist/components/form/combobox.js +282 -0
  211. package/dist/components/form/date-picker.js +123 -0
  212. package/dist/components/form/form-item.d.ts.map +1 -1
  213. package/dist/components/form/form-item.js +141 -0
  214. package/dist/components/form/form.js +94 -0
  215. package/dist/components/form/radio-group.js +106 -0
  216. package/dist/components/form/radio.js +110 -0
  217. package/dist/components/form/rate.js +116 -0
  218. package/dist/components/form/select.d.ts +1 -1
  219. package/dist/components/form/select.js +495 -0
  220. package/dist/components/form/slider.js +134 -0
  221. package/dist/components/form/switch.js +146 -0
  222. package/dist/components/form/time-picker.js +92 -0
  223. package/dist/components/form/transfer.js +273 -0
  224. package/dist/components/form/upload.js +138 -0
  225. package/dist/components/framework/body.js +333 -0
  226. package/dist/components/framework/dashboard-panel.js +519 -0
  227. package/dist/components/framework/dashboard.d.ts.map +1 -1
  228. package/dist/components/framework/dashboard.js +1084 -0
  229. package/dist/components/framework/header.js +237 -0
  230. package/dist/components/framework/log-panel.js +637 -0
  231. package/dist/components/framework/page.js +151 -0
  232. package/dist/components/framework/sidebar.d.ts +4 -10
  233. package/dist/components/framework/sidebar.d.ts.map +1 -1
  234. package/dist/components/framework/sidebar.js +477 -0
  235. package/dist/components/layout/affix.js +137 -0
  236. package/dist/components/layout/col.js +103 -0
  237. package/dist/components/layout/collapse-item.js +165 -0
  238. package/dist/components/layout/collapse.js +108 -0
  239. package/dist/components/layout/container.js +92 -0
  240. package/dist/components/layout/flex.js +100 -0
  241. package/dist/components/layout/row.js +103 -0
  242. package/dist/components/layout/space.js +85 -0
  243. package/dist/components/navigation/back-top.js +127 -0
  244. package/dist/components/navigation/breadcrumb-item.js +108 -0
  245. package/dist/components/navigation/breadcrumb.js +70 -0
  246. package/dist/components/navigation/menu-item.js +181 -0
  247. package/dist/components/navigation/menu.js +126 -0
  248. package/dist/components/navigation/steps.js +183 -0
  249. package/dist/components/navigation/sub-menu.js +253 -0
  250. package/dist/components/progress/progress-bar.js +97 -0
  251. package/dist/components/progress/progress-ring.js +111 -0
  252. package/dist/components/progress/skeleton.js +108 -0
  253. package/dist/components/progress/spinner.js +129 -0
  254. package/dist/components/theme/locale-switch.js +241 -0
  255. package/dist/components/theme/shadow-picker.js +233 -0
  256. package/dist/components/theme/shape-picker.js +232 -0
  257. package/dist/components/theme/theme-picker.js +236 -0
  258. package/dist/components/theme/theme-preview.d.ts +1 -2
  259. package/dist/components/theme/theme-preview.d.ts.map +1 -1
  260. package/dist/components/theme/theme-preview.js +376 -0
  261. package/dist/components/theme/theme-switch.d.ts.map +1 -1
  262. package/dist/components/theme/theme-switch.js +318 -0
  263. package/dist/components/theme/typo-picker.js +219 -0
  264. package/dist/core/AGENTS.md +6 -1
  265. package/dist/core/aithe-element.d.ts +2 -2
  266. package/dist/core/aithe-element.js +135 -0
  267. package/dist/core/aithe-widget.js +30 -0
  268. package/dist/core/anchored-overlay.d.ts +3 -0
  269. package/dist/core/anchored-overlay.d.ts.map +1 -1
  270. package/dist/core/anchored-overlay.js +111 -0
  271. package/dist/core/autoform/autoform.js +79 -0
  272. package/dist/core/autoform/condition.js +170 -0
  273. package/dist/core/autoform/index.js +8 -0
  274. package/dist/core/autoform/types.js +7 -0
  275. package/dist/core/datahub/config/strategy.d.ts +1 -1
  276. package/dist/core/datahub/config/strategy.d.ts.map +1 -1
  277. package/dist/core/datahub/config/strategy.js +50 -0
  278. package/dist/core/datahub/core/adapter/fetch-adapter.d.ts +1 -1
  279. package/dist/core/datahub/core/adapter/fetch-adapter.d.ts.map +1 -1
  280. package/dist/core/datahub/core/adapter/fetch-adapter.js +118 -0
  281. package/dist/core/datahub/core/adapter/index.js +7 -0
  282. package/dist/core/datahub/core/adapter/mock-adapter.d.ts +1 -1
  283. package/dist/core/datahub/core/adapter/mock-adapter.d.ts.map +1 -1
  284. package/dist/core/datahub/core/adapter/mock-adapter.js +58 -0
  285. package/dist/core/datahub/core/api-styles.d.ts +1 -1
  286. package/dist/core/datahub/core/api-styles.d.ts.map +1 -1
  287. package/dist/core/datahub/core/api-styles.js +131 -0
  288. package/dist/core/datahub/core/datahub-core.d.ts +3 -3
  289. package/dist/core/datahub/core/datahub-core.d.ts.map +1 -1
  290. package/dist/core/datahub/core/datahub-core.js +441 -0
  291. package/dist/core/datahub/core/index.js +7 -0
  292. package/dist/core/datahub/index.js +50 -0
  293. package/dist/core/datahub/types.d.ts +6 -0
  294. package/dist/core/datahub/types.d.ts.map +1 -1
  295. package/dist/core/datahub/types.js +31 -0
  296. package/dist/core/datahub/utils/cache.js +55 -0
  297. package/dist/core/datahub/utils/common.js +23 -0
  298. package/dist/core/datahub/utils/dedup.d.ts +1 -1
  299. package/dist/core/datahub/utils/dedup.d.ts.map +1 -1
  300. package/dist/core/datahub/utils/dedup.js +52 -0
  301. package/dist/core/datahub/utils/idempotent.js +61 -0
  302. package/dist/core/datahub/utils/is-query.js +53 -0
  303. package/dist/core/datahub/utils/loading.js +78 -0
  304. package/dist/core/filter/__tests__/index.test.d.ts +2 -0
  305. package/dist/core/filter/__tests__/index.test.d.ts.map +1 -0
  306. package/dist/core/filter/__tests__/index.test.js +230 -0
  307. package/dist/core/filter/builtins.d.ts +60 -0
  308. package/dist/core/filter/builtins.d.ts.map +1 -0
  309. package/dist/core/filter/builtins.js +172 -0
  310. package/dist/core/filter/factory.d.ts +54 -0
  311. package/dist/core/filter/factory.d.ts.map +1 -0
  312. package/dist/core/filter/factory.js +96 -0
  313. package/dist/core/filter/index.d.ts +11 -0
  314. package/dist/core/filter/index.d.ts.map +1 -0
  315. package/dist/core/filter/index.js +9 -0
  316. package/dist/core/filter/types.d.ts +12 -0
  317. package/dist/core/filter/types.d.ts.map +1 -0
  318. package/dist/core/filter/types.js +1 -0
  319. package/dist/core/floating.js +132 -0
  320. package/dist/core/highlight/index.js +43 -0
  321. package/dist/core/highlight/lang-bash.js +27 -0
  322. package/dist/core/highlight/lang-c.js +27 -0
  323. package/dist/core/highlight/lang-cmake.js +27 -0
  324. package/dist/core/highlight/lang-cpp.js +27 -0
  325. package/dist/core/highlight/lang-css.js +24 -0
  326. package/dist/core/highlight/lang-dart.js +27 -0
  327. package/dist/core/highlight/lang-dockerfile.js +16 -0
  328. package/dist/core/highlight/lang-fsharp.js +23 -0
  329. package/dist/core/highlight/lang-go.js +22 -0
  330. package/dist/core/highlight/lang-html.js +12 -0
  331. package/dist/core/highlight/lang-java.js +22 -0
  332. package/dist/core/highlight/lang-javascript.js +26 -0
  333. package/dist/core/highlight/lang-json.js +13 -0
  334. package/dist/core/highlight/lang-jsonline.js +13 -0
  335. package/dist/core/highlight/lang-jsx.js +30 -0
  336. package/dist/core/highlight/lang-kotlin.js +27 -0
  337. package/dist/core/highlight/lang-latex.js +22 -0
  338. package/dist/core/highlight/lang-lua.js +26 -0
  339. package/dist/core/highlight/lang-makefile.js +22 -0
  340. package/dist/core/highlight/lang-markdown.js +18 -0
  341. package/dist/core/highlight/lang-objectivec.js +24 -0
  342. package/dist/core/highlight/lang-perl.js +30 -0
  343. package/dist/core/highlight/lang-powershell.js +23 -0
  344. package/dist/core/highlight/lang-python.js +27 -0
  345. package/dist/core/highlight/lang-r.js +21 -0
  346. package/dist/core/highlight/lang-ruby.js +29 -0
  347. package/dist/core/highlight/lang-rust.js +24 -0
  348. package/dist/core/highlight/lang-scala.js +26 -0
  349. package/dist/core/highlight/lang-sql.js +21 -0
  350. package/dist/core/highlight/lang-svelte.js +27 -0
  351. package/dist/core/highlight/lang-swift.js +28 -0
  352. package/dist/core/highlight/lang-tsx.js +35 -0
  353. package/dist/core/highlight/lang-typescript.js +31 -0
  354. package/dist/core/highlight/lang-vue.js +29 -0
  355. package/dist/core/highlight/lang-wasm.js +22 -0
  356. package/dist/core/highlight/lang-xml.js +12 -0
  357. package/dist/core/highlight/lang-yaml.js +14 -0
  358. package/dist/core/highlight/registry.js +99 -0
  359. package/dist/core/logger/LoggerCore.js +626 -0
  360. package/dist/core/logger/index.js +10 -0
  361. package/dist/core/logger/types.js +29 -0
  362. package/dist/core/markdown/index.js +20 -0
  363. package/dist/core/markdown/parser.d.ts +2 -0
  364. package/dist/core/markdown/parser.d.ts.map +1 -1
  365. package/dist/core/markdown/parser.js +376 -0
  366. package/dist/core/markdown/plugins.js +608 -0
  367. package/dist/core/markdown/types.d.ts +5 -0
  368. package/dist/core/markdown/types.d.ts.map +1 -1
  369. package/dist/core/markdown/types.js +7 -0
  370. package/dist/core/router/index.js +244 -0
  371. package/dist/core/styles.js +44 -0
  372. package/dist/core/types.d.ts +50 -3
  373. package/dist/core/types.d.ts.map +1 -1
  374. package/dist/core/types.js +1 -0
  375. package/dist/index.d.ts +8 -0
  376. package/dist/index.d.ts.map +1 -1
  377. package/dist/index.js +2812 -1253
  378. package/dist/index.js.map +1 -1
  379. package/dist/index.umd.js +1670 -728
  380. package/dist/index.umd.js.map +1 -1
  381. package/dist/styles/aithe-ui.d.ts +23 -0
  382. package/dist/styles/aithe-ui.d.ts.map +1 -1
  383. package/dist/styles/aithe-ui.js +185 -0
  384. package/dist/styles/global.css.d.ts +1 -1
  385. package/dist/styles/global.css.d.ts.map +1 -1
  386. package/dist/styles/global.css.js +119 -0
  387. package/dist/styles/i18n/index.js +206 -0
  388. package/dist/styles/i18n/locales/de-DE.d.ts.map +1 -1
  389. package/dist/styles/i18n/locales/de-DE.js +148 -0
  390. package/dist/styles/i18n/locales/en-US.d.ts.map +1 -1
  391. package/dist/styles/i18n/locales/en-US.js +157 -0
  392. package/dist/styles/i18n/locales/es-ES.d.ts.map +1 -1
  393. package/dist/styles/i18n/locales/es-ES.js +148 -0
  394. package/dist/styles/i18n/locales/fr-FR.d.ts.map +1 -1
  395. package/dist/styles/i18n/locales/fr-FR.js +148 -0
  396. package/dist/styles/i18n/locales/index.js +14 -0
  397. package/dist/styles/i18n/locales/ja-JP.d.ts.map +1 -1
  398. package/dist/styles/i18n/locales/ja-JP.js +148 -0
  399. package/dist/styles/i18n/locales/ko-KR.d.ts.map +1 -1
  400. package/dist/styles/i18n/locales/ko-KR.js +148 -0
  401. package/dist/styles/i18n/locales/pt-BR.d.ts.map +1 -1
  402. package/dist/styles/i18n/locales/pt-BR.js +148 -0
  403. package/dist/styles/i18n/locales/zh-CN.d.ts.map +1 -1
  404. package/dist/styles/i18n/locales/zh-CN.js +157 -0
  405. package/dist/styles/i18n/locales/zh-HK.d.ts.map +1 -1
  406. package/dist/styles/i18n/locales/zh-HK.js +148 -0
  407. package/dist/styles/i18n/locales/zh-TW.d.ts.map +1 -1
  408. package/dist/styles/i18n/locales/zh-TW.js +148 -0
  409. package/dist/styles/layout/index.js +88 -0
  410. package/dist/styles/mixins.js +43 -0
  411. package/dist/styles/shadow/cyber.js +19 -0
  412. package/dist/styles/shadow/deep.js +19 -0
  413. package/dist/styles/shadow/diffuse.js +19 -0
  414. package/dist/styles/shadow/flat.js +19 -0
  415. package/dist/styles/shadow/glassmorphism.js +19 -0
  416. package/dist/styles/shadow/index.js +129 -0
  417. package/dist/styles/shadow/neumorphism.js +21 -0
  418. package/dist/styles/shadow/retro.js +19 -0
  419. package/dist/styles/shadow/sharp-business.js +19 -0
  420. package/dist/styles/shadow/skeuomorphic.js +21 -0
  421. package/dist/styles/shape/chamfer.js +19 -0
  422. package/dist/styles/shape/circle.js +19 -0
  423. package/dist/styles/shape/index.js +174 -0
  424. package/dist/styles/shape/organic.js +19 -0
  425. package/dist/styles/shape/pill.js +19 -0
  426. package/dist/styles/shape/rounded.js +21 -0
  427. package/dist/styles/shape/rounder.js +19 -0
  428. package/dist/styles/shape/sharp.js +19 -0
  429. package/dist/styles/shape/smooth.js +19 -0
  430. package/dist/styles/theme/aliyun.d.ts +1 -1
  431. package/dist/styles/theme/aliyun.d.ts.map +1 -1
  432. package/dist/styles/theme/aliyun.js +102 -0
  433. package/dist/styles/theme/amber.d.ts +1 -1
  434. package/dist/styles/theme/amber.d.ts.map +1 -1
  435. package/dist/styles/theme/amber.js +101 -0
  436. package/dist/styles/theme/blue.d.ts +1 -1
  437. package/dist/styles/theme/blue.d.ts.map +1 -1
  438. package/dist/styles/theme/blue.js +101 -0
  439. package/dist/styles/theme/charcoal.d.ts +1 -1
  440. package/dist/styles/theme/charcoal.d.ts.map +1 -1
  441. package/dist/styles/theme/charcoal.js +106 -0
  442. package/dist/styles/theme/cyan.d.ts +1 -1
  443. package/dist/styles/theme/cyan.d.ts.map +1 -1
  444. package/dist/styles/theme/cyan.js +96 -0
  445. package/dist/styles/theme/dark.d.ts +1 -1
  446. package/dist/styles/theme/dark.d.ts.map +1 -1
  447. package/dist/styles/theme/dark.js +106 -0
  448. package/dist/styles/theme/ebony.d.ts +1 -1
  449. package/dist/styles/theme/ebony.d.ts.map +1 -1
  450. package/dist/styles/theme/ebony.js +106 -0
  451. package/dist/styles/theme/festive.d.ts +1 -1
  452. package/dist/styles/theme/festive.d.ts.map +1 -1
  453. package/dist/styles/theme/festive.js +101 -0
  454. package/dist/styles/theme/graphite.d.ts +1 -1
  455. package/dist/styles/theme/graphite.d.ts.map +1 -1
  456. package/dist/styles/theme/graphite.js +106 -0
  457. package/dist/styles/theme/gray.d.ts +1 -1
  458. package/dist/styles/theme/gray.d.ts.map +1 -1
  459. package/dist/styles/theme/gray.js +101 -0
  460. package/dist/styles/theme/huawei.d.ts +1 -1
  461. package/dist/styles/theme/huawei.d.ts.map +1 -1
  462. package/dist/styles/theme/huawei.js +102 -0
  463. package/dist/styles/theme/index.d.ts +1 -1
  464. package/dist/styles/theme/index.d.ts.map +1 -1
  465. package/dist/styles/theme/index.js +276 -0
  466. package/dist/styles/theme/indigo.d.ts +1 -1
  467. package/dist/styles/theme/indigo.d.ts.map +1 -1
  468. package/dist/styles/theme/indigo.js +101 -0
  469. package/dist/styles/theme/ink.d.ts +1 -1
  470. package/dist/styles/theme/ink.d.ts.map +1 -1
  471. package/dist/styles/theme/ink.js +106 -0
  472. package/dist/styles/theme/light.d.ts +1 -1
  473. package/dist/styles/theme/light.d.ts.map +1 -1
  474. package/dist/styles/theme/light.js +102 -0
  475. package/dist/styles/theme/midnight.d.ts +1 -1
  476. package/dist/styles/theme/midnight.d.ts.map +1 -1
  477. package/dist/styles/theme/midnight.js +106 -0
  478. package/dist/styles/theme/navy.d.ts +1 -1
  479. package/dist/styles/theme/navy.d.ts.map +1 -1
  480. package/dist/styles/theme/navy.js +106 -0
  481. package/dist/styles/theme/obsidian.d.ts +1 -1
  482. package/dist/styles/theme/obsidian.d.ts.map +1 -1
  483. package/dist/styles/theme/obsidian.js +106 -0
  484. package/dist/styles/theme/onyx.d.ts +1 -1
  485. package/dist/styles/theme/onyx.d.ts.map +1 -1
  486. package/dist/styles/theme/onyx.js +106 -0
  487. package/dist/styles/theme/orange.d.ts +1 -1
  488. package/dist/styles/theme/orange.d.ts.map +1 -1
  489. package/dist/styles/theme/orange.js +101 -0
  490. package/dist/styles/theme/pink.d.ts +1 -1
  491. package/dist/styles/theme/pink.d.ts.map +1 -1
  492. package/dist/styles/theme/pink.js +101 -0
  493. package/dist/styles/theme/purple.d.ts +1 -1
  494. package/dist/styles/theme/purple.d.ts.map +1 -1
  495. package/dist/styles/theme/purple.js +101 -0
  496. package/dist/styles/theme/raisin.d.ts +1 -1
  497. package/dist/styles/theme/raisin.d.ts.map +1 -1
  498. package/dist/styles/theme/raisin.js +106 -0
  499. package/dist/styles/theme/slate.d.ts +1 -1
  500. package/dist/styles/theme/slate.d.ts.map +1 -1
  501. package/dist/styles/theme/slate.js +106 -0
  502. package/dist/styles/theme/teal.d.ts +1 -1
  503. package/dist/styles/theme/teal.d.ts.map +1 -1
  504. package/dist/styles/theme/teal.js +101 -0
  505. package/dist/styles/theme/tianyi.d.ts +1 -1
  506. package/dist/styles/theme/tianyi.d.ts.map +1 -1
  507. package/dist/styles/theme/tianyi.js +102 -0
  508. package/dist/styles/types.js +1 -0
  509. package/dist/styles/typo/business.js +34 -0
  510. package/dist/styles/typo/compact.js +34 -0
  511. package/dist/styles/typo/index.js +99 -0
  512. package/dist/styles/typo/luxury.js +34 -0
  513. package/dist/styles/typo/minimal.js +34 -0
  514. package/dist/types/index.js +2 -0
  515. package/dist/utils/dom.js +51 -0
  516. package/dist/utils/events.js +32 -0
  517. package/dist/utils/icon.js +176 -0
  518. package/dist/utils/index.js +4 -0
  519. package/dist/utils/utils.d.ts +5 -5
  520. package/dist/utils/utils.js +89 -0
  521. package/dist/utils/validation.js +52 -0
  522. package/docs/api/basic/button.md +9 -6
  523. package/docs/api/basic/tag.md +24 -17
  524. package/docs/api/data/box-table.md +73 -0
  525. package/docs/api/data/dropdown.md +3 -2
  526. package/docs/api/data/metrics.md +2 -0
  527. package/docs/api/data/table-column.md +37 -23
  528. package/docs/api/data/table.md +158 -44
  529. package/docs/api/data/tabs.md +46 -1
  530. package/docs/api/data/tree-menu.md +55 -2
  531. package/docs/api/display/box.md +66 -0
  532. package/docs/api/display/brief-box.md +73 -0
  533. package/docs/api/display/desc-item.md +57 -0
  534. package/docs/api/display/desc.md +204 -0
  535. package/docs/api/display/detail-box.md +75 -0
  536. package/docs/api/display/mini-box.md +100 -0
  537. package/docs/api/display/profile.md +92 -0
  538. package/docs/api/feedback/popover.md +10 -10
  539. package/docs/api/feedback/tooltip.md +14 -14
  540. package/docs/api/form/autoform-item.md +100 -0
  541. package/docs/api/form/autoform.md +4 -1
  542. package/docs/api/form/select.md +28 -28
  543. package/docs/api/framework/log-panel.md +46 -0
  544. package/docs/api/framework/sidebar.md +3 -2
  545. package/docs/api/summary.md +45 -35
  546. package/docs/api/theme/theme-switch.md +1 -1
  547. package/docs/autoform.md +13 -1
  548. package/docs/changelog/CHANGELOG.md +80 -0
  549. package/docs/changelog/VERSION_26.3.1.md +966 -0
  550. package/docs/datahub.md +1 -1
  551. package/docs/filter.md +332 -0
  552. package/docs/framework-integration.md +2 -2
  553. package/docs/guide.md +66 -1
  554. package/docs/i18n.md +2 -2
  555. package/docs/issue/issue_26.3.1.0.md +84 -0
  556. package/docs/issue/issue_26.3.1.1.md +72 -0
  557. package/docs/issue/issue_26.3.1.2.md +75 -0
  558. package/docs/issue/issue_26.3.1.3.md +78 -0
  559. package/docs/issue/issue_26.3.1.4.md +113 -0
  560. package/docs/issue/issue_26.3.1.5.md +142 -0
  561. package/docs/issue/issue_26.3.1.6.md +100 -0
  562. package/docs/issue/issue_26.3.1.7.md +78 -0
  563. package/docs/quickstart.md +5 -5
  564. package/package.json +5 -2
@@ -8,59 +8,70 @@
8
8
  AitheTable supports two column definition modes:
9
9
  AitheTable 支持两种列定义模式:
10
10
 
11
- | Mode | How to define | Custom rendering | Description |
12
- |------|---------------|------------------|-------------|
13
- | Data-driven | `columns` / `columns-json` attribute | Not supported | Columns defined as JSON data. Suitable for simple display. |
14
- | DOM-defined | `<aithe-table-column>` children | Supported via `.cellRenderer` | Columns defined as child elements. Supports custom cell rendering. |
11
+ | Mode | How to define | Custom rendering | Description |
12
+ | ----------- | ------------------------------------ | ----------------------------- | ------------------------------------------------------------------ |
13
+ | Data-driven | `columns` / `columns-json` attribute | Not supported | Columns defined as JSON data. Suitable for simple display. |
14
+ | DOM-defined | `<aithe-table-column>` children | Supported via `.cellRenderer` | Columns defined as child elements. Supports custom cell rendering. |
15
15
 
16
- | 模式 | 定义方式 | 自定义渲染 | 说明 |
17
- |------|----------|-----------|------|
18
- | 数据驱动 | `columns` / `columns-json` 属性 | 不支持 | 列以 JSON 数据定义,适用于简单展示。 |
19
- | DOM 定义 | `<aithe-table-column>` 子元素 | 支持,通过 `.cellRenderer` | 列以子元素定义,支持自定义单元格渲染。 |
16
+ | 模式 | 定义方式 | 自定义渲染 | 说明 |
17
+ | -------- | ------------------------------- | -------------------------- | -------------------------------------- |
18
+ | 数据驱动 | `columns` / `columns-json` 属性 | 不支持 | 列以 JSON 数据定义,适用于简单展示。 |
19
+ | DOM 定义 | `<aithe-table-column>` 子元素 | 支持,通过 `.cellRenderer` | 列以子元素定义,支持自定义单元格渲染。 |
20
20
 
21
21
  ## Slots / 插槽
22
22
 
23
- | Name | Description (EN) | Description (CN) |
24
- |------|-------------------|-------------------|
23
+ | Name | Description (EN) | Description (CN) |
24
+ | --------- | -------------------------------------------------------------------- | -------------------------------------------------------------- |
25
25
  | (default) | Default slot for `<aithe-table-column>` children (DOM-defined mode). | 用于 `<aithe-table-column>` 子元素的默认插槽(DOM 定义模式)。 |
26
- | empty | Content shown when the table has no data. | 无数据时显示的内容。 |
26
+ | empty | Content shown when the table has no data. | 无数据时显示的内容。 |
27
+ | loading | Custom loading indicator content. | 自定义加载指示器内容。 |
27
28
 
28
29
  ## Properties / 属性
29
30
 
30
- | Name | Type | Default | Description (EN) | Description (CN) |
31
- |------|------|---------|-------------------|-------------------|
32
- | columnsJson | String | '' | JSON string of column definitions (parsed into `columns`). Data-driven mode only. | 列定义的 JSON 字符串(解析为 `columns`)。仅数据驱动模式。 |
33
- | columns | AitheTableColumnMeta[] | [] | Array of column definitions (prefer this over `columnsJson` in JS). Data-driven mode only. | 列定义数组(在 JS 中优先使用此属性而非 `columnsJson`)。仅数据驱动模式。 |
34
- | dataJson | String | '' | JSON string of row data (parsed into `data`). | 行数据的 JSON 字符串(解析为 `data`)。 |
35
- | data | TableRecord[] | [] | Array of row data (prefer this over `dataJson` in JS). | 行数据数组(在 JS 中优先使用此属性而非 `dataJson`)。 |
36
- | rowKey | String | 'id' | Unique key field for each row. | 每行的唯一键字段。 |
37
- | striped | Boolean | false | Whether rows use alternating background colors. | 行是否使用交替背景色。 |
38
- | bordered | Boolean | true | Whether cells have vertical border lines. | 单元格是否有垂直边框线。 |
39
- | hoverable | Boolean | true | Whether rows highlight on hover. | 行是否在悬停时高亮。 |
40
- | selectable | Boolean | false | Whether rows can be selected via checkboxes. | 行是否可通过复选框选择。 |
41
- | sortKey | String | '' | Current sort column key. | 当前排序的列键。 |
42
- | sortOrder | 'asc' \| 'desc' \| '' | '' | Current sort direction. | 当前排序方向。 |
31
+ | Name | Type | Default | Description (EN) | Description (CN) |
32
+ | ------------ | ----------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
33
+ | columnsJson | String | '' | JSON string of column definitions (parsed into `columns`). Data-driven mode only. | 列定义的 JSON 字符串(解析为 `columns`)。仅数据驱动模式。 |
34
+ | columns | AitheTableColumnMeta[] | [] | Array of column definitions (prefer this over `columnsJson` in JS). Data-driven mode only. | 列定义数组(在 JS 中优先使用此属性而非 `columnsJson`)。仅数据驱动模式。 |
35
+ | dataJson | String | '' | JSON string of row data (parsed into `data`). | 行数据的 JSON 字符串(解析为 `data`)。 |
36
+ | data | TableRecord[] | [] | Array of row data (prefer this over `dataJson` in JS). | 行数据数组(在 JS 中优先使用此属性而非 `dataJson`)。 |
37
+ | rowKey | String | 'id' | Unique key field for each row. | 每行的唯一键字段。 |
38
+ | striped | Boolean | false | Whether rows use alternating background colors. | 行是否使用交替背景色。 |
39
+ | bordered | Boolean | true | Whether cells have vertical border lines. | 单元格是否有垂直边框线。 |
40
+ | hoverable | Boolean | true | Whether rows highlight on hover. | 行是否在悬停时高亮。 |
41
+ | selectable | 'none' \| 'multi' \| 'single' | 'none' | Row selection mode. `'none'` disables selection, `'multi'` enables checkbox multi-select, `'single'` enables radio single-select. | 行选择模式。`'none'` 不选择,`'multi'` 启用复选框多选,`'single'` 启用单选框单选。 |
42
+ | selectionSet | Set\<string\> | new Set() | Shared Set instance for tracking selected row keys. Pass the same Set to multiple views to share selection state. | 共享的 Set 实例,用于跟踪选中的行键。将同一个 Set 传递给多个视图以共享选中状态。 |
43
+ | sortKey | String | '' | Current sort column key. | 当前排序的列键。 |
44
+ | sortOrder | 'asc' \| 'desc' \| '' | '' | Current sort direction. | 当前排序方向。 |
45
+ | loading | Boolean | false | Whether the table is in loading state. Shows a loading overlay with spinner and shimmer placeholder rows. | 表格是否处于加载状态。显示加载遮罩层、旋转器和 shimmer 占位行。 |
46
+ | loadingText | String | '' | Custom loading text displayed below the spinner. | 在旋转器下方显示的自定义加载文本。 |
43
47
 
44
48
  ## Events / 事件
45
49
 
46
- | Name | Detail | Description (EN) | Description (CN) |
47
- |------|--------|-------------------|-------------------|
48
- | aithe-sort-change | { sortKey, sortOrder } | Emitted when a sortable column header is clicked. | 可排序列头被点击时触发。 |
49
- | aithe-selection-change | { selectedKeys } | Emitted when row selection changes. | 行选择变更时触发。 |
50
- | aithe-row-click | { record, rowIndex } | Emitted when a row is clicked. | 行被点击时触发。 |
50
+ | Name | Detail | Description (EN) | Description (CN) |
51
+ | ---------------------- | ---------------------- | --------------------------------------------------------------------------- | ------------------------------------------ |
52
+ | aithe-sort-change | { sortKey, sortOrder } | Emitted when a sortable column header is clicked. | 可排序列头被点击时触发。 |
53
+ | aithe-selection-change | { selectionSet } | Emitted when row selection changes. | 行选择变更时触发。 |
54
+ | aithe-row-click | { record, rowIndex } | Emitted when a row is clicked. | 行被点击时触发。 |
55
+ | aithe-column-resize | { columnId, width } | Emitted when a resizable column width is changed. | 可调整宽度的列宽变更时触发。 |
56
+ | aithe-column-reorder | { columns } | Emitted when columns are reordered. Contains the new column id order array. | 列重新排序时触发。包含新的列 ID 顺序数组。 |
51
57
 
52
58
  ## Column Fields (Data-driven) / 列字段(数据驱动模式)
53
59
 
54
- | Field | Type | Description (EN) | Description (CN) |
55
- |-------|------|-------------------|-------------------|
56
- | id | `string` | Unique column key. | 唯一列键。 |
57
- | title | `string` | Header title. | 表头标题。 |
58
- | dataIndex | keyof T \| string | Property path on the data record. | 数据记录上的属性路径。 |
59
- | width | `string` | Fixed column width. | 固定列宽。 |
60
- | align | 'left' \| 'center' \| 'right' | Text alignment. | 文本对齐方式。 |
61
- | sortable | `boolean` | Enable client-side sorting. | 启用客户端排序。 |
62
- | icon | `string` | Icon name rendered in the header via aithe-icon. | 通过 aithe-icon 在表头渲染的图标名称。 |
63
- | variant | AitheVariant | Visual variant / semantic color for the column cells. | 列单元格的视觉变体/语义色。 |
60
+ | Field | Type | Description (EN) | Description (CN) |
61
+ | --------- | ----------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
62
+ | id | `string` | Unique column key. | 唯一列键。 |
63
+ | title | `string` | Header title. | 表头标题。 |
64
+ | dataIndex | keyof T \| string | Property path on the data record. | 数据记录上的属性路径。 |
65
+ | width | `string` | Fixed column width. | 固定列宽。 |
66
+ | minWidth | `string` | Minimum column width (for resizable columns). | 最小列宽(用于可调整宽度的列)。 |
67
+ | align | 'left' \| 'center' \| 'right' | Text alignment. | 文本对齐方式。 |
68
+ | sortable | `boolean` | Enable client-side sorting. | 启用客户端排序。 |
69
+ | fixed | 'left' \| 'right' | Fixed column position. The column will stick to the left or right side with shadow indicators. | 固定列位置。列将固定在左侧或右侧,并显示阴影指示器。 |
70
+ | resizable | `boolean` | Enable column width resizing via drag handle on the right edge of the header. | 启用通过表头右侧边缘拖拽手柄调整列宽。 |
71
+ | draggable | `boolean` | Enable column drag-to-reorder via drag handle icon in the header. | 启用通过表头拖拽手柄图标拖拽排序列。 |
72
+ | icon | `string` | Icon name rendered in the header via aithe-icon. | 通过 aithe-icon 在表头渲染的图标名称。 |
73
+ | variant | AitheVariant | Visual variant / semantic color for the column cells. | 列单元格的视觉变体/语义色。 |
74
+ | filter | `string` | Filter expression to format cell value. See [Filter](/docs/filter.md). | 用于格式化单元格值的过滤器表达式。参见 [Filter](/docs/filter.md)。 |
64
75
 
65
76
  ## Examples / 示例
66
77
 
@@ -71,19 +82,122 @@ AitheTable 支持两种列定义模式:
71
82
  columns-json='[{"id":"name","title":"Name","sortable":true}]'
72
83
  data-json='[{"name":"Alice"},{"name":"Bob"}]'
73
84
  striped
74
- selectable
85
+ selectable="multi"
86
+ ></aithe-table>
87
+ ```
88
+
89
+ ### Data-driven mode with shared selection / 数据驱动模式 + 共享选中状态
90
+
91
+ ```html
92
+ <aithe-table
93
+ columns-json='[{"id":"name","title":"Name","sortable":true}]'
94
+ data-json='[{"name":"Alice"},{"name":"Bob"}]'
95
+ striped
96
+ selectable="multi"
97
+ .selectionSet="${mySet}"
75
98
  ></aithe-table>
76
99
  ```
77
100
 
78
101
  ### DOM-defined mode / DOM 定义模式
79
102
 
80
103
  ```html
81
- <aithe-table .data=${records} striped selectable>
104
+ <aithe-table .data="${records}" striped selectable>
82
105
  <aithe-table-column id="name" title="Name" sortable></aithe-table-column>
83
106
  <aithe-table-column id="owner" title="Owner"></aithe-table-column>
84
107
  <aithe-table-column id="status" title="Status" variant="success" sortable></aithe-table-column>
85
- <aithe-table-column id="action" title="Action" align="center"
86
- .cellRenderer=${(value, record, rowIndex) => html`<aithe-button type="primary" size="sm">Edit</aithe-button>`}
108
+ <aithe-table-column
109
+ id="action"
110
+ title="Action"
111
+ align="center"
112
+ .cellRenderer="${(key,"
113
+ value,
114
+ record)=""
115
+ >
116
+ html`
117
+ <aithe-button type="primary" size="sm">Edit</aithe-button>
118
+ `} >
119
+ </aithe-table-column>
120
+ </aithe-table>
121
+ ```
122
+
123
+ ### Column fixed / 列固定
124
+
125
+ ```html
126
+ <aithe-table .data="${records}" striped bordered selectable>
127
+ <aithe-table-column id="name" title="Name" fixed="left" width="160" sortable></aithe-table-column>
128
+ <aithe-table-column id="owner" title="Owner" width="200"></aithe-table-column>
129
+ <aithe-table-column id="status" title="Status" width="200" variant="success"></aithe-table-column>
130
+ <aithe-table-column
131
+ id="action"
132
+ title="Action"
133
+ fixed="right"
134
+ width="120"
135
+ align="center"
136
+ ></aithe-table-column>
137
+ </aithe-table>
138
+ ```
139
+
140
+ ### Column resize / 列宽调整
141
+
142
+ ```html
143
+ <aithe-table .data="${records}" striped bordered>
144
+ <aithe-table-column
145
+ id="name"
146
+ title="Name"
147
+ resizable
148
+ min-width="120"
149
+ width="200"
150
+ sortable
151
+ ></aithe-table-column>
152
+ <aithe-table-column
153
+ id="owner"
154
+ title="Owner"
155
+ resizable
156
+ min-width="100"
157
+ width="200"
158
+ ></aithe-table-column>
159
+ <aithe-table-column
160
+ id="status"
161
+ title="Status"
162
+ resizable
163
+ min-width="100"
164
+ width="200"
87
165
  ></aithe-table-column>
88
166
  </aithe-table>
89
- ```
167
+ ```
168
+
169
+ ### Column reorder / 列排序
170
+
171
+ ```html
172
+ <aithe-table .data="${records}" striped bordered>
173
+ <aithe-table-column id="name" title="Name" draggable sortable></aithe-table-column>
174
+ <aithe-table-column id="owner" title="Owner" draggable></aithe-table-column>
175
+ <aithe-table-column id="status" title="Status" draggable variant="success"></aithe-table-column>
176
+ </aithe-table>
177
+ ```
178
+
179
+ ### Loading state / 加载状态
180
+
181
+ ```html
182
+ <aithe-table
183
+ loading
184
+ loading-text="Loading..."
185
+ .data="${records}"
186
+ columns-json='[{"id":"name","title":"Name","sortable":true}]'
187
+ striped
188
+ selectable="multi"
189
+ ></aithe-table>
190
+ ```
191
+
192
+ ### Single row selection / 行单选
193
+
194
+ ```html
195
+ <aithe-table
196
+ selectable="multi"
197
+ ="single"
198
+ .selectionSet="${mySet}"
199
+ .data="${records}"
200
+ columns-json='[{"id":"name","title":"Name","sortable":true}]'
201
+ striped
202
+ ></aithe-table>
203
+ ```
@@ -8,6 +8,7 @@
8
8
  | Name | Description (EN) | Description (CN) |
9
9
  |------|-------------------|-------------------|
10
10
  | (default) | Default slot for `aithe-tab-pane` children. | 默认插槽,用于 `aithe-tab-pane` 子组件。 |
11
+ | extra | Slot for extra content rendered at the end of the tab bar (e.g. action buttons). | 额外内容插槽,渲染在标签栏末尾(如操作按钮)。 |
11
12
 
12
13
  ## Properties / 属性
13
14
 
@@ -16,6 +17,7 @@
16
17
  | type | 'line' \| 'card' \| 'button' | 'line' | Visual style of the tab navigation. | 标签页导航的视觉样式。 |
17
18
  | activeKey | String | '' | Key of the currently active tab pane. | 当前活动标签页的键。 |
18
19
  | addable | Boolean | false | Whether to show an add button in the tab bar. | 是否在标签栏中显示添加按钮。 |
20
+ | maxVisibleTabs | Number | 0 | Maximum visible tabs before overflow dropdown. `0` = no limit. | 最大可见标签页数量,超出部分折叠到下拉菜单。`0` 表示不限制。 |
19
21
 
20
22
  ## Events / 事件
21
23
 
@@ -25,11 +27,54 @@
25
27
  | aithe-tab-remove | { key } | Emitted when a closable tab is removed. | 可关闭标签页被移除时触发。 |
26
28
  | aithe-tab-add | — | Emitted when the add button is clicked. | 添加按钮被点击时触发。 |
27
29
 
30
+ ## CSS Custom Properties / CSS 自定义属性
31
+
32
+ | Property | Default | Description (EN) | Description (CN) |
33
+ |----------|---------|-------------------|-------------------|
34
+ | --aithe-tabs-nav-gap | var(--aithe-space-2) | Gap between tab items in the nav bar. | 标签栏中标签项之间的间距。 |
35
+ | --aithe-tabs-nav-border-color | var(--aithe-color-border) | Bottom border color of the nav bar. | 标签栏底部边框颜色。 |
36
+ | --aithe-tabs-tab-padding | 0 var(--aithe-space-4) | Padding inside each tab button. | 标签按钮内边距。 |
37
+ | --aithe-tabs-tab-min-height | 38px | Minimum height of each tab button. | 标签按钮最小高度。 |
38
+ | --aithe-tabs-tab-radius | var(--aithe-radius-md) | Border radius of tab buttons. | 标签按钮圆角。 |
39
+ | --aithe-tabs-tab-color | var(--aithe-color-text-muted) | Text color of inactive tabs. | 非活动标签文字颜色。 |
40
+ | --aithe-tabs-tab-active-color | var(--aithe-primary-7) | Text color of active tabs (line type). | 活动标签文字颜色(line 类型)。 |
41
+ | --aithe-tabs-tab-active-border-color | var(--aithe-primary-6) | Active indicator border color (line type). | 活动标签指示器边框颜色(line 类型)。 |
42
+ | --aithe-tabs-tab-active-bg | var(--aithe-color-surface-elevated) | Background of active tabs (card/button type). | 活动标签背景色(card/button 类型)。 |
43
+ | --aithe-tabs-tab-disabled-opacity | 0.48 | Opacity of disabled tabs. | 禁用标签的不透明度。 |
44
+
45
+ ## CSS Parts / CSS 部件
46
+
47
+ | Part | Description (EN) | Description (CN) |
48
+ |------|-------------------|-------------------|
49
+ | nav | The tab navigation bar container. | 标签导航栏容器。 |
50
+ | panel | The tab content panel area. | 标签内容面板区域。 |
51
+ | tab | Individual tab button. | 单个标签按钮。 |
52
+ | tab-active | Active tab button. | 活动标签按钮。 |
53
+ | tab-disabled | Disabled tab button. | 禁用标签按钮。 |
54
+ | remove-btn | Close button on closable tabs. | 可关闭标签上的关闭按钮。 |
55
+ | add-btn | Add tab button. | 添加标签按钮。 |
56
+ | overflow-select | Overflow dropdown select. | 溢出下拉选择器。 |
57
+ | nav-extra | Extra content slot container. | 额外内容插槽容器。 |
58
+
28
59
  ## Examples / 示例
29
60
 
61
+ ### Basic usage / 基础用法
62
+
30
63
  ```html
31
64
  <aithe-tabs type="card" active-key="a">
32
65
  <aithe-tab-pane tab-id="a" label="Tab A">Content A</aithe-tab-pane>
33
66
  <aithe-tab-pane tab-id="b" label="Tab B">Content B</aithe-tab-pane>
34
67
  </aithe-tabs>
35
- ```
68
+ ```
69
+
70
+ ### With overflow dropdown / 带溢出下拉
71
+
72
+ ```html
73
+ <aithe-tabs max-visible-tabs="3" type="card" active-key="tab1">
74
+ <aithe-tab-pane tab-id="tab1" label="Tab 1">Content 1</aithe-tab-pane>
75
+ <aithe-tab-pane tab-id="tab2" label="Tab 2">Content 2</aithe-tab-pane>
76
+ <aithe-tab-pane tab-id="tab3" label="Tab 3">Content 3</aithe-tab-pane>
77
+ <aithe-tab-pane tab-id="tab4" label="Tab 4">Content 4</aithe-tab-pane>
78
+ <aithe-tab-pane tab-id="tab5" label="Tab 5">Content 5</aithe-tab-pane>
79
+ </aithe-tabs>
80
+ ```
@@ -18,13 +18,18 @@
18
18
  | active | `string` | `''` | Active (selected) menu item value. | 当前选中的菜单项值。 |
19
19
  | expandAll | Boolean | false | Whether all nodes are expanded by default. | 是否默认展开所有节点。 |
20
20
  | direction | 'vertical' \| 'horizontal' | 'vertical' | Layout direction. Vertical stacks items; horizontal arranges top-level items in a row with dropdown sub-menus. | 布局方向。垂直堆叠菜单项;水平将顶级菜单项排列为一行,子菜单以下拉方式展开。 |
21
- | item-filter | `AitheSidebarItemFilter \| null` | `null` | Filter callback for menu items. Return `true` to show, `false` to hide. Useful for permission control. | 菜单项过滤回调。返回 `true` 显示,`false` 隐藏。适用于权限控制。 |
21
+ | collapsible | Boolean | false | Whether the tree menu supports collapse/expand toggle. | 树菜单是否支持伸缩切换。 |
22
+ | collapsed | Boolean | false | Whether the tree menu is currently collapsed. | 树菜单当前是否收起。 |
23
+ | collapsed-width | String | `'64px'` | Width when collapsed (CSS value). | 收起时的宽度。 |
24
+ | expanded-width | String | `'260px'` | Width when expanded (CSS value). | 展开时的宽度。 |
25
+ | item-filter | `AitheTreeNodeFilter \| null` | 内置默认值 | Filter callback for menu items. Return `true` to show, `false` to hide. Defaults to `(item) => item.hasPermission !== false` — items with `hasPermission: false` are hidden. Useful for permission control. | 菜单项过滤回调。返回 `true` 显示,`false` 隐藏。默认值为 `(item) => item.hasPermission !== false` — 设置 `hasPermission: false` 的项会被隐藏。适用于权限控制。 |
26
+ | item-renderer | `((item: AitheTreeNodeMeta) => TemplateResult \| nothing) \| null` | `null` | Custom item renderer. When provided, called for each leaf item; its return value replaces the default icon/label rendering inside the button. Useful for custom previews (color dots, shape previews, etc.). | 自定义 item 渲染器。提供后,每个叶子项调用此函数,返回值替换按钮内默认的图标/标签渲染。适用于自定义预览(颜色圆点、形状预览等)。 |
22
27
 
23
28
  ## Events / 事件
24
29
 
25
30
  | Name | Detail | Description (EN) | Description (CN) |
26
31
  | ------------ | ----------- | ------------------------------------- | ------------------ |
27
- | aithe-select | `{ value }` | Emitted when a menu item is selected. | 菜单项选中时触发。 |
32
+ | aithe-select | `{ value, item }` | Emitted when a menu item is selected. `value` is the item's `id`, `item` is the full `AitheTreeNodeMeta` object. The event is composed and bubbles, so it will propagate through shadow DOM boundaries of ancestor components (e.g. `<aithe-sidebar>`, `<aithe-dropdown>`). | 菜单项选中时触发。`value` 为项的 `id`,`item` 为完整的 `AitheTreeNodeMeta` 对象。事件为 composed 且冒泡,会穿透祖先组件(如 `<aithe-sidebar>`、`<aithe-dropdown>`)的 shadow DOM 边界。 |
28
33
 
29
34
  ## Data Item Fields / 数据项字段
30
35
 
@@ -34,6 +39,7 @@
34
39
  | id | `string` | Unique value identifying this node. | 节点唯一标识值。 |
35
40
  | icon | `string` | Icon name rendered before the label via aithe-icon. | 通过 aithe-icon 在标签前渲染的图标名称。 |
36
41
  | disabled | `boolean` | Whether the menu item is non-interactive. | 是否禁用菜单项。 |
42
+ | hasPermission | `boolean` | Permission flag. When set to `false`, the item is hidden by the default `itemFilter`. | 权限标记。设为 `false` 时,默认 `itemFilter` 会隐藏该项。 |
37
43
  | variant | `AitheVariant` | Visual variant / semantic color for the node. | 节点的视觉变体/语义色。 |
38
44
  | children | `AitheTreeNodeMeta[]` | Nested sub-menu items. | 嵌套子菜单项。 |
39
45
  | i18n | `string` | i18n translation key. When set, `t(i18n, label)` is used to translate the label; `label` serves as the default value. | 国际化翻译键。设置后通过 `t(i18n, label)` 翻译 label,`label` 作为缺省值。 |
@@ -95,3 +101,50 @@ menu.itemFilter = (item, depth) => {
95
101
  active="dashboard"
96
102
  ></aithe-tree-menu>
97
103
  ```
104
+
105
+ ### Collapsible mode / 伸缩模式
106
+
107
+ When `collapsible` is set, the menu can toggle between expanded and collapsed states. In collapsed mode, only icons are shown (centered), labels and arrows are hidden, and sub-menus expand inline without floating panels. If an item has no icon, the first letter of its label is shown as a fallback.
108
+
109
+ 设置 `collapsible` 后,菜单可在展开和收起状态间切换。收起模式下仅显示图标(居中),标签和箭头隐藏,子菜单以内联方式展开而非浮层。若项无图标,则显示标签首字母作为回退。
110
+
111
+ ```html
112
+ <aithe-tree-menu
113
+ collapsible
114
+ collapsed
115
+ collapsed-width="64px"
116
+ expanded-width="260px"
117
+ .items="${menuItems}"
118
+ active="dashboard"
119
+ ></aithe-tree-menu>
120
+ ```
121
+
122
+ ### Custom item renderer / 自定义项渲染器
123
+
124
+ Use `itemRenderer` to render custom content (e.g. color dots, shape previews) inside each leaf item's button, replacing the default icon/label rendering.
125
+
126
+ 使用 `itemRenderer` 在每个叶子项的按钮内渲染自定义内容(如颜色圆点、形状预览),替换默认的图标/标签渲染。
127
+
128
+ ```js
129
+ const menu = document.querySelector('aithe-tree-menu');
130
+ menu.itemRenderer = (item) => {
131
+ if (item.color) {
132
+ return html`<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:${item.color}"></span>`;
133
+ }
134
+ return nothing;
135
+ };
136
+ ```
137
+
138
+ ### Event propagation / 事件传播
139
+
140
+ The `aithe-select` event is composed (`composed: true`) and bubbles (`bubbles: true`), so it automatically propagates through shadow DOM boundaries. When `<aithe-tree-menu>` is used inside container components like `<aithe-sidebar>` or `<aithe-dropdown>`, listeners on the container will receive the event directly — no re-emission is needed.
141
+
142
+ `aithe-select` 事件为 composed 且冒泡,会自动穿透 shadow DOM 边界。当 `<aithe-tree-menu>` 在 `<aithe-sidebar>` 或 `<aithe-dropdown>` 等容器组件内使用时,监听容器即可直接接收事件,无需重新发射。
143
+
144
+ ```js
145
+ // Listen on sidebar — receives tree-menu's aithe-select directly
146
+ // 监听 sidebar — 直接接收 tree-menu 的 aithe-select
147
+ document.querySelector('aithe-sidebar').addEventListener('aithe-select', (e) => {
148
+ console.log(e.detail.value, e.detail.item);
149
+ });
150
+ ```
@@ -0,0 +1,66 @@
1
+ # AitheBox / AitheBox 记录容器
2
+
3
+ > The Box component family provides structured record display layouts. `AitheMiniBox` serves as the base class, providing region-based layout with named slots. The box only defines layout structure — all content is provided via named slots, with no data binding.
4
+ > Box 组件族提供结构化记录展示布局。`AitheMiniBox` 作为基类,提供基于区域的布局和具名插槽。Box 只定义布局结构——所有内容通过具名插槽提供,无数据绑定。
5
+
6
+ ## Import / 引入
7
+
8
+ ```ts
9
+ import '@aithe/aithe-ui/components/display/mini-box';
10
+ // or
11
+ import '@aithe/aithe-ui/components/display/brief-box';
12
+ // or
13
+ import '@aithe/aithe-ui/components/display/detail-box';
14
+ ```
15
+
16
+ ## Description / 描述
17
+
18
+ The Box component family includes three variants, each implementing a distinct layout strategy:
19
+
20
+ - `<aithe-mini-box>` — single horizontal row (compact list view)
21
+ - `<aithe-brief-box>` — three rows with description and vertically spanning checkbox/actions
22
+ - `<aithe-detail-box>` — two-column split with left metadata and right actions
23
+
24
+ All content is provided via named slots. The box only defines layout structure — it does not bind data.
25
+
26
+ Box 组件族包含三种变体,每种实现不同的布局策略:
27
+
28
+ - `<aithe-mini-box>` — 单行水平布局(紧凑列表视图)
29
+ - `<aithe-brief-box>` — 三行布局,含描述和垂直贯穿的 checkbox/actions
30
+ - `<aithe-detail-box>` — 左右分栏布局,左侧元数据、右侧操作
31
+
32
+ 所有内容通过具名插槽提供。Box 只定义布局结构——不绑定数据。
33
+
34
+ ## Common Slots / 公共插槽
35
+
36
+ | Name | Description (EN) | Description (CN) |
37
+ | --------- | ------------------------------------------------------------------- | ------------------------------ |
38
+ | select | Selection control region (e.g. radio). | 选择控件区域(如单选框)。 |
39
+ | checkbox | Checkbox region. | 复选框区域。 |
40
+ | name | Primary label / title region. | 主标签/标题区域。 |
41
+ | tags | Tags region. | 标签区域。 |
42
+ | status | Status indicator region. | 状态指示器区域。 |
43
+ | actions | Action buttons region. | 操作按钮区域。 |
44
+ | content | Expandable content region. | 可展开的内容区域。 |
45
+ | (default) | Default slot, rendered inside the content region. | 默认插槽,渲染在内容区域内。 |
46
+
47
+ ## Common Properties / 公共属性
48
+
49
+ | Name | Type | Default | Attribute | Description (EN) | Description (CN) |
50
+ | -------- | --------- | ------- | ---------- | ------------------------------------------ | ------------------------- |
51
+ | selected | `boolean` | `false` | `selected` | Whether the box is selected. | box 是否被选中。 |
52
+ | expanded | `boolean` | `false` | `expanded` | Whether the content region is expanded. | 内容区域是否展开。 |
53
+
54
+ ## Common Events / 公共事件
55
+
56
+ | Name | Detail | Cancelable | Description (EN) | Description (CN) |
57
+ | ----------------- | ------ | ---------- | ------------------------------ | ----------------------- |
58
+ | `aithe-box-click` | `{}` | No | Fired when the box is clicked. | 点击 box 时触发。 |
59
+
60
+ ## Variants / 变体
61
+
62
+ See the individual variant pages for layout details and usage examples:
63
+
64
+ - [AitheMiniBox](mini-box.md)
65
+ - [AitheBriefBox](brief-box.md)
66
+ - [AitheDetailBox](detail-box.md)
@@ -0,0 +1,73 @@
1
+ # AitheBriefBox / AitheBriefBox 简要记录
2
+
3
+ > Three-row brief record display with description and vertically spanning checkbox/actions regions. All content is provided via named slots.
4
+ > 三行简要记录展示,含描述行和垂直贯穿的 checkbox/actions 区域。所有内容通过具名插槽提供。
5
+
6
+ ## Import / 引入
7
+
8
+ ```ts
9
+ import '@aithe/aithe-ui/components/data/brief-box';
10
+ ```
11
+
12
+ ## Description / 描述
13
+
14
+ `<aithe-brief-box>` renders a three-row layout: the first row contains select, name, tags, and status; the second row shows the content; the third row is the expandable default slot region. The checkbox and actions regions span vertically across all rows. All content is provided via named slots.
15
+
16
+ `<aithe-brief-box>` 渲染三行布局:第一行包含 select、name、tags 和 status;第二行显示内容;第三行是可展开的默认插槽区域。checkbox 和 actions 区域垂直贯穿所有行。所有内容通过具名插槽提供。
17
+
18
+ ## Slots / 插槽
19
+
20
+ | Name | Description (EN) | Description (CN) |
21
+ | --------- | ------------------------------------------------------------------- | ------------------------------ |
22
+ | select | Selection control region (e.g. radio). | 选择控件区域(如单选框)。 |
23
+ | checkbox | Checkbox region (spans vertically). | 复选框区域(垂直贯穿)。 |
24
+ | name | Primary label / title region. | 主标签/标题区域。 |
25
+ | tags | Tags region. | 标签区域。 |
26
+ | status | Status indicator region. | 状态指示器区域。 |
27
+ | actions | Action buttons region (spans vertically). | 操作按钮区域(垂直贯穿)。 |
28
+ | content | Expandable content region. | 可展开的内容区域。 |
29
+ | (default) | Default slot, rendered inside the content region. | 默认插槽,渲染在内容区域内。 |
30
+
31
+ ## CSS Parts / CSS 部件
32
+
33
+ | Name | Description (EN) | Description (CN) |
34
+ | ------- | ----------------------------------- | -------------------- |
35
+ | select | The select region container. | 选择区域容器。 |
36
+ | checkbox| The checkbox region container. | 复选框区域容器。 |
37
+ | name | The name region container. | 名称区域容器。 |
38
+ | tags | The tags region container. | 标签区域容器。 |
39
+ | status | The status region container. | 状态区域容器。 |
40
+ | actions | The actions region container. | 操作区域容器。 |
41
+ | content | The content region container. | 内容区域容器。 |
42
+
43
+ ## Properties / 属性
44
+
45
+ Inherits all properties from `AitheMiniBox`. See [AitheMiniBox](mini-box.md) for details.
46
+
47
+ ## Events / 事件
48
+
49
+ Inherits all events from `AitheMiniBox`. See [AitheMiniBox](mini-box.md) for details.
50
+
51
+ ## Usage / 用法
52
+
53
+ ### Basic / 基础用法
54
+
55
+ ```html
56
+ <aithe-brief-box>
57
+ <aithe-profile slot="name" title="Project Alpha" desc="Frontend application" icon="app"></aithe-profile>
58
+ <span slot="status">Active</span>
59
+ <span slot="tags"><aithe-tag>frontend</aithe-tag></span>
60
+ <span slot="actions"><aithe-button size="sm">Edit</aithe-button></span>
61
+ </aithe-brief-box>
62
+ ```
63
+
64
+ ### With Checkbox / 带复选框
65
+
66
+ ```html
67
+ <aithe-brief-box selectable>
68
+ <aithe-profile slot="name" title="Project Alpha" desc="Frontend application" icon="app"></aithe-profile>
69
+ <span slot="status">Active</span>
70
+ <span slot="tags"><aithe-tag>frontend</aithe-tag></span>
71
+ <span slot="actions"><aithe-button size="sm">Edit</aithe-button></span>
72
+ </aithe-brief-box>
73
+ ```
@@ -0,0 +1,57 @@
1
+ # AitheDescItem / AitheDescItem 描述列表项
2
+
3
+ > A single item in a description list, containing a label and a value. Supports filter expressions for content formatting.
4
+ > 描述列表中的单个条目,包含标签和值。支持过滤器表达式对内容进行格式化。
5
+
6
+ ## Slots / 插槽
7
+
8
+ | Name | Description (EN) | Description (CN) |
9
+ | --------- | --------------------------------------------- | -------------------------------- |
10
+ | label | Custom label content. | 自定义标签内容。 |
11
+ | (default) | Value content (used when `content` is empty). | 值内容(`content` 为空时使用)。 |
12
+
13
+ ## Properties / 属性
14
+
15
+ | Name | Type | Default | Description (EN) | Description (CN) |
16
+ | ---------- | ------------------------------- | -------- | ------------------------------------------------------ | ------------------------------------ |
17
+ | label | `string` | `''` | Label text for the item. | 条目标签文本。 |
18
+ | span | `number` | `1` | Column span for this item. | 该条目占用的列数。 |
19
+ | rowspan | `number` | `1` | Row span for this item. | 该条目占用的行数。 |
20
+ | width | `string` | `''` | Width of the content cell. | 内容单元格宽度。 |
21
+ | labelAlign | `'left' \| 'center' \| 'right'` | `'left'` | Text alignment of the label. | 标签文本对齐方式。 |
22
+ | align | `'left' \| 'center' \| 'right'` | `'left'` | Text alignment of the content. | 内容文本对齐方式。 |
23
+ | min-width | `string` | `''` | Minimum width of the content cell. | 内容单元格最小宽度。 |
24
+ | content | `string` | `''` | Content value. When set, used instead of slot content. | 内容值。设置后优先于 slot 内容使用。 |
25
+ | filter | `string` | `''` | Filter expression for formatting the content value. | 内容值的过滤器表达式。 |
26
+
27
+ ## CSS Parts / CSS 部分
28
+
29
+ | Name | Description (EN) | Description (CN) |
30
+ | ------- | --------------------------- | ---------------- |
31
+ | item | The item container. | 条目容器。 |
32
+ | label | The label cell container. | 标签单元格容器。 |
33
+ | content | The content cell container. | 内容单元格容器。 |
34
+
35
+ ## Examples / 示例
36
+
37
+ ### 基本用法
38
+
39
+ ```html
40
+ <aithe-desc-item label="Name">John Doe</aithe-desc-item>
41
+ ```
42
+
43
+ ### 使用 content 属性和过滤器
44
+
45
+ ```html
46
+ <aithe-desc-item label="Amount" content="1234.5" filter="amount"></aithe-desc-item>
47
+ <aithe-desc-item label="Created" content="2024-01-15" filter="date"></aithe-desc-item>
48
+ ```
49
+
50
+ ### 自定义标签插槽
51
+
52
+ ```html
53
+ <aithe-desc-item>
54
+ <span slot="label" style="color: red;">Custom Label</span>
55
+ Custom value content
56
+ </aithe-desc-item>
57
+ ```