@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
@@ -0,0 +1,100 @@
1
+ # AitheAutoformItem / AitheAutoformItem 自动表单项
2
+
3
+ > JSON-driven auto form item with three-section layout (header / control / footer) and built-in validation. Supports dependency rules for dynamic visibility, disabled state, and options.
4
+ > JSON 驱动的自动表单项,三段式布局(头部 / 控件 / 底部),内置校验。支持依赖联动规则动态控制可见性、禁用状态和选项。
5
+
6
+ ## Slots / 插槽
7
+
8
+ | Name | Description (EN) | Description (CN) |
9
+ | --------- | ------------------------------------------ | ------------------ |
10
+ | (default) | Default slot for the form control element. | 表单控件元素内容。 |
11
+
12
+ ## Properties / 属性
13
+
14
+ | Name | Type | Default | Description (EN) | Description (CN) |
15
+ | ------------------ | ------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
16
+ | name | `string` | `''` | Field unique identifier. | 字段唯一标识。 |
17
+ | type | `AutoformItemType` | `'input'` | Control type: input \| textarea \| select \| radio \| checkbox \| switch \| number \| slider \| rate \| color-picker \| date-picker \| time-picker \| combobox. | 控件类型。 |
18
+ | label | `string` | `''` | Label text. | 标签文本。 |
19
+ | icon | `string` | `''` | Icon name displayed before the label. | 标签前显示的图标名称。 |
20
+ | tooltip | `string` | `''` | Tooltip text shown on hover. | 悬停提示文本。 |
21
+ | description | `string` | `''` | Description text below the control. | 控件下方的说明文字。 |
22
+ | dft | `string` | `''` | Default value. | 缺省值。 |
23
+ | placeholder | `string` | `''` | Placeholder text. | 占位提示文本。 |
24
+ | disabled | `boolean` | `false` | Whether the field is disabled. | 是否禁用。 |
25
+ | required | `boolean` | `false` | Whether the field is required. | 是否必填。 |
26
+ | pattern | `string` | `''` | Validation regex pattern string. | 校验正则表达式字符串。 |
27
+ | message | `string` | `''` | Validation failure message. | 校验失败提示语。 |
28
+ | options | `FormItemOption[]` | `[]` | Options for select/radio/checkbox. | 选择类控件的选项。 |
29
+ | value | `string` | `''` | Current field value. | 当前字段值。 |
30
+ | inputType | `string` | `'text'` | Input type attribute for type="input". | input 控件的 type 属性。 |
31
+ | min | `string` | `''` | Minimum value for number/slider. | 数字/滑块最小值。 |
32
+ | max | `string` | `''` | Maximum value for number/slider. | 数字/滑块最大值。 |
33
+ | step | `string` | `''` | Step value for number/slider/rate. | 数字/滑块/评分步长。 |
34
+ | rows | `string` | `'3'` | Number of rows for textarea. | 文本域行数。 |
35
+ | validate-on-change | `boolean` | `true` | Whether to validate on every change. | 是否在每次变更时实时校验。 |
36
+ | dependencies | `string[]` | `[]` | Dependency field names. | 依赖字段名称列表。 |
37
+ | rules | `FormRule[]` | `[]` | Dependency rules. | 依赖联动规则。 |
38
+ | dependencyValues | `Record<string, unknown>` | `{}` | Current values of dependency fields. | 依赖字段的当前值。 |
39
+
40
+ ## Events / 事件
41
+
42
+ | Name | Detail | Cancelable | Description (EN) | Description (CN) |
43
+ | ------------ | ---------------------------------- | ---------- | ------------------------------------- | ------------------ |
44
+ | aithe-change | `{ name: string, value: unknown }` | No | Emitted when the field value changes. | 字段值变更时触发。 |
45
+
46
+ ## Methods / 方法
47
+
48
+ | Name | Return Type | Description (EN) | Description (CN) |
49
+ | --------------- | ----------- | ------------------------------------------------------------------ | ----------------------------------------- |
50
+ | validate() | `boolean` | Validates the field and sets error state. Returns `true` if valid. | 校验字段并设置错误状态,有效返回 `true`。 |
51
+ | clearError() | `void` | Clears the validation error. | 清除校验错误。 |
52
+ | getError() | `string` | Returns the current validation error message. | 返回当前校验错误消息。 |
53
+ | getFieldValue() | `unknown` | Returns the current field value (type-aware). | 返回当前字段值(类型感知)。 |
54
+
55
+ ## Properties (Getters) / 只读属性
56
+
57
+ | Name | Type | Description (EN) | Description (CN) |
58
+ | ------- | --------- | -------------------------------------------------------------- | -------------------------------- |
59
+ | visible | `boolean` | Whether the field is visible (controlled by dependency rules). | 字段是否可见(由依赖规则控制)。 |
60
+
61
+ ## Examples / 示例
62
+
63
+ ### 基本用法
64
+
65
+ ```html
66
+ <aithe-autoform-item
67
+ name="email"
68
+ type="input"
69
+ label="Email"
70
+ icon="mail"
71
+ tooltip="Your work email"
72
+ description="We will never share your email."
73
+ required
74
+ ></aithe-autoform-item>
75
+ ```
76
+
77
+ ### 选择类控件
78
+
79
+ ```html
80
+ <aithe-autoform-item
81
+ name="country"
82
+ type="select"
83
+ label="Country"
84
+ .options='[{ "id": "cn", "label": "China" }, { "id": "us", "label": "USA" }]'
85
+ ></aithe-autoform-item>
86
+ ```
87
+
88
+ ### 带校验规则
89
+
90
+ ```html
91
+ <aithe-autoform-item
92
+ name="phone"
93
+ type="input"
94
+ inputType="tel"
95
+ label="Phone"
96
+ required
97
+ pattern="^1[3-9]\d{9}$"
98
+ message="Please enter a valid phone number"
99
+ ></aithe-autoform-item>
100
+ ```
@@ -7,7 +7,7 @@
7
7
 
8
8
  | Name | Description (EN) | Description (CN) |
9
9
  | --------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
10
- | (default) | Default slot for custom actions below the form items. Replaces the built-in submit button when provided. | 表单项下方的自定义操作区域,传入内容后将替换内置提交按钮。 |
10
+ | (default) | Default slot for custom actions (buttons) below the form items. Use together with `show-submit` to control the built-in submit button. | 表单项下方的自定义操作区域(按钮),配合 `show-submit` 属性控制内置提交按钮的显隐。 |
11
11
 
12
12
  ## Properties / 属性
13
13
 
@@ -17,6 +17,8 @@
17
17
  | submitText | String | '' | Custom submit button label. Falls back to i18n key `form.autoform.submit`. | 自定义提交按钮文本。缺省使用 i18n 键 `form.autoform.submit`。 |
18
18
  | loading | Boolean | false | Whether the form is in a submitting state. | 表单是否处于提交中状态。 |
19
19
  | validate-on-change | Boolean | true | Whether to validate on every field change. | 是否在每次字段变更时实时校验。 |
20
+ | initial-values | Object / String | {} | Initial values for form fields, as an object or JSON string. Overrides `dft` for each matching field. | 表单字段初始值,支持对象或 JSON 字符串,覆盖对应字段的 `dft`。 |
21
+ | show-submit | Boolean | true | Whether to show the built-in submit button. Set to `false` when using custom action slot. | 是否显示内置提交按钮,设为 `false` 时使用自定义 slot。 |
20
22
 
21
23
  ## Methods / 方法
22
24
 
@@ -25,6 +27,7 @@
25
27
  | validate | — | boolean | Validate all fields and return whether the form is valid. | 校验所有字段并返回表单是否有效。 |
26
28
  | getValues | — | Record<string, unknown> | Return current values of all fields. | 返回所有字段的当前值。 |
27
29
  | reset | — | void | Reset all fields to their default values and clear errors. | 重置所有字段为缺省值并清除错误。 |
30
+ | submit | — | void | Trigger form validation and submission programmatically. Emits aithe-submit if valid. | 编程触发表单校验和提交,通过后触发 aithe-submit 事件。 |
28
31
 
29
32
  ## Events / 事件
30
33
 
@@ -5,43 +5,43 @@
5
5
 
6
6
  ## Slots / 插槽
7
7
 
8
- | Name | Description (EN) | Description (CN) |
9
- |------|-------------------|-------------------|
8
+ | Name | Description (EN) | Description (CN) |
9
+ | --------- | ------------------------------------------------- | ----------------------------------------- |
10
10
  | (default) | Default slot (unused; content driven by options). | 默认插槽(未使用,内容由 options 控制)。 |
11
11
 
12
12
  ## Properties / 属性
13
13
 
14
- | Name | Type | Default | Description (EN) | Description (CN) |
15
- |------|------|---------|-------------------|-------------------|
16
- | optionsJson | String | '' | JSON string of select options. | 选项的 JSON 字符串。 |
17
- | options | AitheSelectOption[] | [] | Array of select option objects. Each option supports `icon` and `variant` (AitheVariant) fields. | 选项对象数组。每个选项支持 `icon` 和 `variant`(AitheVariant)字段。 |
18
- | value | String | '' | Currently selected value. | 当前选中的值。 |
19
- | title | `string` | `''` | Display title (shown as tooltip). | 显示标题(作为工具提示)。 |
20
- | icon | `string` | `''` | Icon name to display before the selected value. | 在选中值前显示的图标名称。 |
21
- | placeholder | String | '请选择' | Placeholder text shown when no value is selected. | 无选中值时的占位文本。 |
22
- | searchable | Boolean | false | Whether the select supports search/filter. | 是否支持搜索过滤。 |
23
- | clearable | Boolean | false | Whether the selected value can be cleared. | 是否允许清除选中值。 |
24
- | disabled | Boolean | false | Whether the select is disabled. | 是否禁用。 |
25
- | placement | 'bottom-start' \| 'top-start' | 'bottom-start' | Dropdown panel placement. | 下拉面板位置。 |
14
+ | Name | Type | Default | Description (EN) | Description (CN) |
15
+ | ----------- | ----------------------------- | -------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- |
16
+ | optionsJson | String | '' | JSON string of select options. | 选项的 JSON 字符串。 |
17
+ | options | AitheSelectOption[] | [] | Array of select option objects. Each option supports `icon` and `variant` (AitheVariant) fields. | 选项对象数组。每个选项支持 `icon` 和 `variant`(AitheVariant)字段。 |
18
+ | value | String | '' | Currently selected value. | 当前选中的值。 |
19
+ | title | `string` | `''` | Display title (shown as tooltip). | 显示标题(作为工具提示)。 |
20
+ | icon | `string` | `''` | Icon name to display before the selected value. | 在选中值前显示的图标名称。 |
21
+ | placeholder | String | '请选择' | Placeholder text shown when no value is selected. | 无选中值时的占位文本。 |
22
+ | searchable | Boolean | false | Whether the select supports search/filter. | 是否支持搜索过滤。 |
23
+ | clearable | Boolean | false | Whether the selected value can be cleared. | 是否允许清除选中值。 |
24
+ | disabled | Boolean | false | Whether the select is disabled. | 是否禁用。 |
25
+ | placement | 'bottom-start' \| 'top-start' | 'bottom-start' | Dropdown panel placement. | 下拉面板位置。 |
26
26
 
27
27
  ## Events / 事件
28
28
 
29
- | Name | Detail | Description (EN) | Description (CN) |
30
- |------|--------|-------------------|-------------------|
31
- | aithe-change | { option, value } | Emitted when a value is selected. | 选中值变更时触发。 |
32
- | aithe-clear | — | Emitted when the value is cleared. | 值被清除时触发。 |
33
- | aithe-open-change | { open } | Emitted when the dropdown opens or closes. | 下拉框开关状态变更时触发。 |
29
+ | Name | Detail | Description (EN) | Description (CN) |
30
+ | --------------------- | ----------------- | ------------------------------------------ | -------------------------- |
31
+ | aithe-change | { option, value } | Emitted when a value is selected. | 选中值变更时触发。 |
32
+ | aithe-clear | — | Emitted when the value is cleared. | 值被清除时触发。 |
33
+ | aithe-dropdown-change | { open } | Emitted when the dropdown opens or closes. | 下拉框开关状态变更时触发。 |
34
34
 
35
35
  ## Option Fields / 选项字段
36
36
 
37
- | Field | Type | Description (EN) | Description (CN) |
38
- |-------|------|-------------------|-------------------|
39
- | label | `string` | Display text. | 显示文本。 |
40
- | id | `string` | Unique value emitted on select. | 选择时发出的唯一值。 |
41
- | disabled | `boolean` | Whether the option is non-interactive. | 是否不可交互。 |
42
- | description | `string` | Secondary description line. | 二级描述行。 |
43
- | icon | `string` | Icon name rendered before the label via aithe-icon. | 通过 aithe-icon 在标签前渲染的图标名称。 |
44
- | variant | AitheVariant | Visual variant / semantic color for the option. | 选项的视觉变体/语义色。 |
37
+ | Field | Type | Description (EN) | Description (CN) |
38
+ | ----------- | ------------ | --------------------------------------------------- | ---------------------------------------- |
39
+ | label | `string` | Display text. | 显示文本。 |
40
+ | id | `string` | Unique value emitted on select. | 选择时发出的唯一值。 |
41
+ | disabled | `boolean` | Whether the option is non-interactive. | 是否不可交互。 |
42
+ | description | `string` | Secondary description line. | 二级描述行。 |
43
+ | icon | `string` | Icon name rendered before the label via aithe-icon. | 通过 aithe-icon 在标签前渲染的图标名称。 |
44
+ | variant | AitheVariant | Visual variant / semantic color for the option. | 选项的视觉变体/语义色。 |
45
45
 
46
46
  ## Examples / 示例
47
47
 
@@ -53,4 +53,4 @@
53
53
  searchable
54
54
  clearable
55
55
  ></aithe-select>
56
- ```
56
+ ```
@@ -0,0 +1,46 @@
1
+ # AitheLogPanel / AitheLogPanel 日志面板
2
+
3
+ > Floating or inline log panel that subscribes to the global `logger` and displays log entries with level filtering, search, copy, and resize support.
4
+ > 浮动或内联日志面板,订阅全局 `logger` 并展示日志条目,支持级别过滤、搜索、复制和拖拽调整高度。
5
+
6
+ ## Properties / 属性
7
+
8
+ | Name | Type | Default | Description (EN) | Description (CN) |
9
+ | --------------- | ----------------------- | ----------- | ------------------------------------------------------------------------------- | ------------------------------------------------- |
10
+ | open | `boolean` | `false` | Whether the panel is expanded. | 面板是否展开。 |
11
+ | panel-placement | `'overlay' \| 'inline'` | `'overlay'` | Placement mode: `overlay` floats at bottom-right; `inline` fills the container. | 放置模式:`overlay` 右下浮动;`inline` 填充容器。 |
12
+
13
+ ## Events / 事件
14
+
15
+ | Name | Detail | Cancelable | Description (EN) | Description (CN) |
16
+ | ---------------- | ------------------- | ---------- | ---------------------------------- | --------------------- |
17
+ | log-panel-toggle | `{ open: boolean }` | No | Emitted when the panel is toggled. | 面板展开/收起时触发。 |
18
+
19
+ ## CSS Custom Properties / CSS 自定义属性
20
+
21
+ | Name | Default | Description (EN) | Description (CN) |
22
+ | -------------------------- | ------- | ----------------------------------- | -------------------- |
23
+ | `--aithe-log-panel-height` | `200px` | Height of the panel in inline mode. | 内联模式下面板高度。 |
24
+
25
+ ## Examples / 示例
26
+
27
+ ### 浮动模式(默认)
28
+
29
+ ```html
30
+ <aithe-log-panel open></aithe-log-panel>
31
+ ```
32
+
33
+ ### 内联模式
34
+
35
+ ```html
36
+ <aithe-log-panel open panel-placement="inline"></aithe-log-panel>
37
+ ```
38
+
39
+ ### 监听切换事件
40
+
41
+ ```js
42
+ const panel = document.querySelector('aithe-log-panel');
43
+ panel.addEventListener('log-panel-toggle', (e) => {
44
+ console.log('Panel open:', e.detail.open);
45
+ });
46
+ ```
@@ -36,13 +36,13 @@
36
36
  | mobile-breakpoint | `number` | `768` | Viewport width threshold (px); when ≤ this value, overlay mode is auto-enabled and sidebar collapses. | 移动端断点(像素);视口宽度 ≤ 此值时自动启用 overlay 并收起。 |
37
37
  | expanded-width | `string` | `'260px'` | Sidebar width when expanded (CSS value). | 展开时的侧边栏宽度。 |
38
38
  | collapsed-width | `string` | `'64px'` | Sidebar width when collapsed (CSS value). | 收起时的侧边栏宽度。 |
39
- | item-filter | `AitheSidebarItemFilter \| null` | `null` | Filter callback for menu items. Return `true` to show, `false` to hide. Useful for permission control. | 菜单项过滤回调。返回 `true` 显示,`false` 隐藏。适用于权限控制。 |
39
+ | 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` 的项会被隐藏。适用于权限控制。 |
40
40
 
41
41
  ## Events / 事件
42
42
 
43
43
  | Name | Detail | Cancelable | Description (EN) | Description (CN) |
44
44
  | --------------------- | ------------------------ | ---------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
45
- | aithe-select | `{ value: string }` | No | Emitted when a menu item is selected. | 菜单项选中时发出。 |
45
+ | aithe-select | `{ value: string, item: AitheTreeNodeMeta }` | No | Propagated from the inner `<aithe-tree-menu>` (composed event). Sidebar does not re-emit — listen on the sidebar element directly. `value` is the item's `id`, `item` is the full node metadata. | 由内部 `<aithe-tree-menu>` 透传(composed 事件)。sidebar 不重新发射 — 直接监听 sidebar 元素即可。`value` 为项的 `id`,`item` 为完整节点元数据。 |
46
46
  | aithe-collapse-change | `{ collapsed: boolean }` | Yes | Emitted when sidebar collapse state is about to change. Call `preventDefault()` to suppress the toggle. | 侧边栏伸缩状态即将变更时发出。调用 `preventDefault()` 可阻止切换。 |
47
47
 
48
48
  ## AitheTreeNodeMeta / 树节点元数据
@@ -53,6 +53,7 @@
53
53
  | id | `string` | Unique identifier. | 节点唯一标识。 |
54
54
  | icon | `string` | Icon name (via `aithe-icon`). | 图标名称。 |
55
55
  | disabled | `boolean` | Whether the node is disabled. | 是否禁用节点。 |
56
+ | hasPermission | `boolean` | Permission flag. When set to `false`, the item is hidden by the default `itemFilter`. | 权限标记。设为 `false` 时,默认 `itemFilter` 会隐藏该项。 |
56
57
  | intent | `AitheVariant` | Visual variant / semantic color. | 视觉变体/语义色。 |
57
58
  | children | `AitheTreeNodeMeta[]` | Nested child nodes. | 嵌套子节点。 |
58
59
  | 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` 作为缺省值。 |
@@ -40,8 +40,6 @@ Structural layout primitives for page composition. 页面结构布局基础组
40
40
  | [Space](layout/space.md) | `<aithe-space>` | Equal spacing helper for child elements. 等间距辅助组件。 |
41
41
  | [Collapse](layout/collapse.md) | `<aithe-collapse>` | Accordion / multi-expand collapse container. 手风琴/多展开折叠容器。 |
42
42
  | [Collapse Item](layout/collapse-item.md) | `<aithe-collapse-item>` | Single collapsible panel. 单个可折叠面板。 |
43
- | [Timeline](data/timeline.md) | `<aithe-timeline>` | Timeline container for process records. 时间线容器。 |
44
- | [Timeline Item](data/timeline-item.md) | `<aithe-timeline-item>` | Single timeline node. 时间线节点。 |
45
43
  | [Affix](layout/affix.md) | `<aithe-affix>` | Sticky wrapper that pins content on scroll. 固定/吸顶包装器。 |
46
44
 
47
45
  ---
@@ -58,7 +56,7 @@ Application-level layout and routing components for admin-style applications.
58
56
  | [Page](framework/page.md) | `<aithe-page>` | Route container that renders the matched page component. 路由容器,渲染匹配到的页面组件。 |
59
57
  | [Dashboard](framework/dashboard.md) | `<aithe-dashboard>` | Drag-and-drop dashboard with grid layout, toolbar, and state persistence. 拖拽式仪表盘,支持格子布局、工具栏和状态持久化。 |
60
58
  | [Dashboard Panel](framework/dashboard-panel.md) | `<aithe-dashboard-panel>` | Dashboard panel card with drag, close, maximize and slot content. 仪表盘面板卡片,支持拖拽、关闭、最大化和插槽内容。 |
61
-
59
+ | [Log Panel](framework/log-panel.md) | `<aithe-log-panel>` | Floating/inline log panel with level filtering and search. 浮动/内联日志面板,支持级别过滤和搜索。 |
62
60
 
63
61
  ---
64
62
 
@@ -82,25 +80,26 @@ Components for site navigation and wayfinding. 站点导航和路径指引组件
82
80
 
83
81
  Interactive form controls for data entry and selection. 交互式表单控件,用于数据输入和选择。
84
82
 
85
- | Component | Tag | Description |
86
- | ---------------------------------------- | ------------------------ | ---------------------------------------------------------------------------------------- |
87
- | [Checkbox](form/checkbox.md) | `<aithe-checkbox>` | Binary selection control. 二选控件。 |
88
- | [Checkbox Group](form/checkbox-group.md) | `<aithe-checkbox-group>` | Multi-select group of checkboxes. 多选复选框组。 |
89
- | [Radio](form/radio.md) | `<aithe-radio>` | Single selection control. 单选控件。 |
90
- | [Radio Group](form/radio-group.md) | `<aithe-radio-group>` | Group of mutually exclusive radios. 单选按钮组。 |
91
- | [Select](form/select.md) | `<aithe-select>` | Dropdown single/multi selector. 下拉单选/多选器。 |
92
- | [Switch](form/switch.md) | `<aithe-switch>` | Toggle switch for on/off state. 开关切换控件。 |
93
- | [Color Picker](form/color-picker.md) | `<aithe-color-picker>` | Color selection input. 颜色选择器。 |
94
- | [Combobox](form/combobox.md) | `<aithe-combobox>` | Searchable dropdown with free input. 可搜索下拉输入框。 |
95
- | [Date Picker](form/date-picker.md) | `<aithe-date-picker>` | Date selection input. 日期选择器。 |
96
- | [Time Picker](form/time-picker.md) | `<aithe-time-picker>` | Time selection input. 时间选择器。 |
97
- | [Slider](form/slider.md) | `<aithe-slider>` | Range slider for numeric input. 滑块数值输入。 |
98
- | [Rate](form/rate.md) | `<aithe-rate>` | Star rating input. 星级评分输入。 |
99
- | [Form](form/form.md) | `<aithe-form>` | Form container with validation. 表单容器,支持校验。 |
100
- | [Form Item](form/form-item.md) | `<aithe-form-item>` | Form field wrapper with label and validation. 表单字段包装器。 |
101
- | [Upload](form/upload.md) | `<aithe-upload>` | File upload control. 文件上传控件。 |
102
- | [Transfer](form/transfer.md) | `<aithe-transfer>` | Dual-list transfer selector. 双栏穿梭选择器。 |
103
- | [Autoform](form/autoform.md) | `<aithe-autoform>` | JSON-driven auto-rendering form with validation. JSON 配置驱动的自动渲染表单,支持校验。 |
83
+ | Component | Tag | Description |
84
+ | ---------------------------------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------- |
85
+ | [Checkbox](form/checkbox.md) | `<aithe-checkbox>` | Binary selection control. 二选控件。 |
86
+ | [Checkbox Group](form/checkbox-group.md) | `<aithe-checkbox-group>` | Multi-select group of checkboxes. 多选复选框组。 |
87
+ | [Radio](form/radio.md) | `<aithe-radio>` | Single selection control. 单选控件。 |
88
+ | [Radio Group](form/radio-group.md) | `<aithe-radio-group>` | Group of mutually exclusive radios. 单选按钮组。 |
89
+ | [Select](form/select.md) | `<aithe-select>` | Dropdown single/multi selector. 下拉单选/多选器。 |
90
+ | [Switch](form/switch.md) | `<aithe-switch>` | Toggle switch for on/off state. 开关切换控件。 |
91
+ | [Color Picker](form/color-picker.md) | `<aithe-color-picker>` | Color selection input. 颜色选择器。 |
92
+ | [Combobox](form/combobox.md) | `<aithe-combobox>` | Searchable dropdown with free input. 可搜索下拉输入框。 |
93
+ | [Date Picker](form/date-picker.md) | `<aithe-date-picker>` | Date selection input. 日期选择器。 |
94
+ | [Time Picker](form/time-picker.md) | `<aithe-time-picker>` | Time selection input. 时间选择器。 |
95
+ | [Slider](form/slider.md) | `<aithe-slider>` | Range slider for numeric input. 滑块数值输入。 |
96
+ | [Rate](form/rate.md) | `<aithe-rate>` | Star rating input. 星级评分输入。 |
97
+ | [Form](form/form.md) | `<aithe-form>` | Form container with validation. 表单容器,支持校验。 |
98
+ | [Form Item](form/form-item.md) | `<aithe-form-item>` | Form field wrapper with label and validation. 表单字段包装器。 |
99
+ | [Upload](form/upload.md) | `<aithe-upload>` | File upload control. 文件上传控件。 |
100
+ | [Transfer](form/transfer.md) | `<aithe-transfer>` | Dual-list transfer selector. 双栏穿梭选择器。 |
101
+ | [Autoform](form/autoform.md) | `<aithe-autoform>` | JSON-driven auto-rendering form with validation. JSON 配置驱动的自动渲染表单,支持校验。 |
102
+ | [Autoform Item](form/autoform-item.md) | `<aithe-autoform-item>` | JSON-driven form item with three-section layout and dependency rules. JSON 驱动表单项,三段式布局,支持依赖联动规则。 |
104
103
 
105
104
  ---
106
105
 
@@ -126,18 +125,22 @@ Components for user feedback, overlays, and notifications. 用户反馈、浮层
126
125
 
127
126
  Components for displaying and interacting with structured data. 结构化数据展示和交互组件。
128
127
 
129
- | Component | Tag | Description |
130
- | ------------------------------------ | ---------------------- | -------------------------------------------------------------------------------- |
131
- | [Table](data/table.md) | `<aithe-table>` | Data table with sorting and selection. 数据表格,支持排序和选择。 |
132
- | [Table Column](data/table-column.md) | `<aithe-table-column>` | Column definition for DOM-defined mode. DOM 定义模式的列定义。 |
133
- | [Tabs](data/tabs.md) | `<aithe-tabs>` | Tab navigation container. 标签页导航容器。 |
134
- | [Tab Pane](data/tab-pane.md) | `<aithe-tab-pane>` | Single tab content panel. 单个标签页内容面板。 |
135
- | [Tree](data/tree.md) | `<aithe-tree>` | Hierarchical tree view. 层级树视图。 |
136
- | [Tree Menu](data/tree-menu.md) | `<aithe-tree-menu>` | Data-driven tree menu with active highlighting. 数据驱动树形菜单,支持高亮选中。 |
137
- | [Dropdown](data/dropdown.md) | `<aithe-dropdown>` | Dropdown menu overlay. 下拉菜单浮层。 |
138
- | [Metrics](data/metrics.md) | `<aithe-metrics>` | Business metric display with label, value and variant colors. 业务指标展示,含标签、数值和 variant 颜色样式。 |
139
- | [Metrics Group](data/metrics-group.md) | `<aithe-metrics-group>` | Container that groups multiple metrics with direction and gap. 业务指标组容器,支持方向和间距配置。 |
140
- | [Pagination](data/pagination.md) | `<aithe-pagination>` | Page navigation for large datasets. 大数据集分页导航。 |
128
+ | Component | Tag | Description |
129
+ | -------------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------- |
130
+ | [Table](data/table.md) | `<aithe-table>` | Data table with sorting and selection. 数据表格,支持排序和选择。 |
131
+ | [Table Column](data/table-column.md) | `<aithe-table-column>` | Column definition for DOM-defined mode. DOM 定义模式的列定义。 |
132
+ | [Tabs](data/tabs.md) | `<aithe-tabs>` | Tab navigation container. 标签页导航容器。 |
133
+ | [Tab Pane](data/tab-pane.md) | `<aithe-tab-pane>` | Single tab content panel. 单个标签页内容面板。 |
134
+ | [Tab Group](data/tabs.md) | `<aithe-tab-group>` | Alias of `<aithe-tabs>`. `<aithe-tabs>` 的别名组件。 |
135
+ | [Tree](data/tree.md) | `<aithe-tree>` | Hierarchical tree view. 层级树视图。 |
136
+ | [Tree Menu](data/tree-menu.md) | `<aithe-tree-menu>` | Data-driven tree menu with active highlighting. 数据驱动树形菜单,支持高亮选中。 |
137
+ | [Dropdown](data/dropdown.md) | `<aithe-dropdown>` | Dropdown menu overlay. 下拉菜单浮层。 |
138
+ | [Metrics](data/metrics.md) | `<aithe-metrics>` | Business metric display with label, value and variant colors. 业务指标展示,含标签、数值和 variant 颜色样式。 |
139
+ | [Metrics Group](data/metrics-group.md) | `<aithe-metrics-group>` | Container that groups multiple metrics with direction and gap. 业务指标组容器,支持方向和间距配置。 |
140
+ | [Pagination](data/pagination.md) | `<aithe-pagination>` | Page navigation for large datasets. 大数据集分页导航。 |
141
+ | [Timeline](data/timeline.md) | `<aithe-timeline>` | Timeline container for process records. 时间线容器。 |
142
+ | [Timeline Item](data/timeline-item.md) | `<aithe-timeline-item>` | Single timeline node. 时间线节点。 |
143
+ | [Box Table](data/box-table.md) | `<aithe-box-table>` | Dual-mode table/box view with sortable columns and selection. 双模式表格/盒子视图,支持排序和选择。 |
141
144
 
142
145
  ---
143
146
 
@@ -154,6 +157,13 @@ Rich content display and media components. 富内容展示和媒体组件。
154
157
  | [Markdown Editor](display/markdown-editor.md) | `<aithe-markdown-editor>` | Markdown editor with live preview. Markdown 编辑器,带实时预览。 |
155
158
  | [Code Editor](display/code-editor.md) | `<aithe-code-editor>` | Syntax-highlighted code editor with toolbar. 语法高亮代码编辑器,带工具栏。 |
156
159
  | [Label](display/label.md) | `<aithe-label>` | Lightweight label component that renders a Markdown subset. 轻量级标签组件,渲染 Markdown 子集。 |
160
+ | [Box Overview](display/box.md) | — | Box component family overview (Mini Box / Brief Box / Detail Box). Box 组件族概览。 |
161
+ | [Mini Box](display/mini-box.md) | `<aithe-mini-box>` | Single-row compact record display (base class). 单行紧凑记录展示(基类)。 |
162
+ | [Brief Box](display/brief-box.md) | `<aithe-brief-box>` | Three-row brief record display with description. 三行简要记录展示,含描述行。 |
163
+ | [Detail Box](display/detail-box.md) | `<aithe-detail-box>` | Two-column detail record display. 双列详情记录展示。 |
164
+ | [Profile](display/profile.md) | `<aithe-profile>` | Profile display with icon/avatar, title and description. 档案展示,含图标/头像、标题和描述。 |
165
+ | [Description List](display/desc.md) | `<aithe-desc>` | Structured key-value description list. 结构化键值描述列表。 |
166
+ | [Description Item](display/desc-item.md) | `<aithe-desc-item>` | Single item in a description list with label and value. 描述列表中的单个条目,含标签和值。 |
157
167
 
158
168
  ---
159
169
 
@@ -191,7 +201,7 @@ Theme, shape, shadow, typo, and locale management components. The **Theme × Sha
191
201
 
192
202
  | Component | Tag | Description |
193
203
  | --------------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------- |
194
- | [Theme Switch](theme/theme-switch.md) | `<aithe-theme-switch>` | Unified appearance switch — theme, shadow, shape & typo in one dropdown. 统一外观切换器,整合主题、阴影、形状和排版。 |
204
+ | [Theme Switch](theme/theme-switch.md) | `<aithe-theme-switch>` | Unified appearance switch — theme, shadow, shape & typo in one dropdown. 统一外观切换器,整合主题、阴影、形状和排版。 |
195
205
  | [Theme Picker](theme/theme-picker.md) | `<aithe-theme-picker>` | Grouped theme selector with color dot previews. 分组主题选择器,带色点预览。 |
196
206
  | [Shape Picker](theme/shape-picker.md) | `<aithe-shape-picker>` | Shape style selector with preview thumbnails. 形状风格选择器,带预览缩略图。 |
197
207
  | [Shadow Picker](theme/shadow-picker.md) | `<aithe-shadow-picker>` | Shadow style selector with preview thumbnails. 阴影风格选择器,带预览缩略图。 |
@@ -20,7 +20,7 @@
20
20
 
21
21
  | Name | Detail | Cancelable | Description (EN) | Description (CN) |
22
22
  | ------------------ | -------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
23
- | aithe-theme-change | `{ category: string, value: string }` | Yes | Emitted when any option (theme/shadow/shape/typo) is selected. `category` is one of `'theme'`, `'shadow'`, `'shape'`, `'typo'`. Built-in switch (`aitheUI.setTheme()` / `aitheUI.setShadow()` / `aitheUI.setShape()` / `aitheUI.setTypo()`) runs by default. Call `preventDefault()` to suppress the built-in behavior and handle switching manually. | 选择任意选项(主题/阴影/形状/排版)时发出。`category` `'theme'`、`'shadow'`、`'shape'` 或 `'typo'`。默认执行内置切换逻辑。调用 `preventDefault()` 可阻止内置切换,由外部自行处理。 |
23
+ | aithe-theme-change | `{ category: string, value: string }` | Yes | Emitted when any option (theme/shadow/shape/typo) is selected. `category` is read from `item.category` on the selected tree-menu item (one of `'theme'`, `'shadow'`, `'shape'`, `'typo'`). Built-in switch (`aitheUI.setTheme()` / `aitheUI.setShadow()` / `aitheUI.setShape()` / `aitheUI.setTypo()`) runs by default. Call `preventDefault()` to suppress the built-in behavior and handle switching manually. | 选择任意选项(主题/阴影/形状/排版)时发出。`category` 从选中项的 `item.category` 读取(`'theme'`、`'shadow'`、`'shape'` 或 `'typo'`)。默认执行内置切换逻辑。调用 `preventDefault()` 可阻止内置切换,由外部自行处理。 |
24
24
 
25
25
  ## Menu Structure / 菜单结构
26
26
 
package/docs/autoform.md CHANGED
@@ -150,6 +150,9 @@ const values: Record<string, unknown> = form.getValues();
150
150
  // 重置为缺省值
151
151
  form.reset();
152
152
 
153
+ // 编程触发表单提交(校验通过后触发 aithe-submit 事件)
154
+ form.submit();
155
+
153
156
  // 监听提交事件
154
157
  form.addEventListener('aithe-submit', (e: CustomEvent<{ values: Record<string, unknown> }>) => {
155
158
  console.log('提交数据:', e.detail.values);
@@ -257,10 +260,16 @@ FormRegistry.register({
257
260
 
258
261
  ### 自定义提交按钮
259
262
 
260
- 通过 slot 替换内置提交按钮:
263
+ 通过 slot 和 `show-submit` 属性控制操作区域:
261
264
 
262
265
  ```html
266
+ <!-- 使用 slot 添加自定义按钮,同时保留内置提交按钮 -->
263
267
  <aithe-autoform fields="[...]">
268
+ <aithe-button>取消</aithe-button>
269
+ </aithe-autoform>
270
+
271
+ <!-- 关闭内置提交按钮,完全使用 slot 自定义 -->
272
+ <aithe-autoform fields="[...]" show-submit="false">
264
273
  <aithe-button type="primary">保存</aithe-button>
265
274
  <aithe-button>取消</aithe-button>
266
275
  </aithe-autoform>
@@ -278,6 +287,8 @@ FormRegistry.register({
278
287
  | `submit-text` | `String` | `''` | 提交按钮文本 |
279
288
  | `loading` | `Boolean` | `false` | 提交中状态 |
280
289
  | `validate-on-change` | `Boolean` | `true` | 是否在每次变更时实时校验 |
290
+ | `initial-values` | `Object` / `String` | `{}` | 表单字段初始值,支持对象或 JSON 字符串,覆盖对应字段的 `dft` |
291
+ | `show-submit` | `Boolean` | `true` | 是否显示内置提交按钮,设为 `false` 时使用自定义 slot |
281
292
 
282
293
  ### `<aithe-autoform>` 方法
283
294
 
@@ -286,6 +297,7 @@ FormRegistry.register({
286
297
  | `validate()` | `boolean` | 校验所有可见字段 |
287
298
  | `getValues()` | `Record<string, unknown>` | 获取所有可见字段值 |
288
299
  | `reset()` | `void` | 重置所有字段为缺省值 |
300
+ | `submit()` | `void` | 编程触发表单校验和提交,通过后触发 `aithe-submit` 事件 |
289
301
 
290
302
  ### 事件
291
303
 
@@ -4,6 +4,86 @@
4
4
 
5
5
  ---
6
6
 
7
+ ## 26.3.1 (2026-08-06)
8
+
9
+ ### 2026年第3季度第1个月版本 - 组件功能增强与质量提升
10
+
11
+ - **树形菜单伸缩与事件改造**: `<aithe-tree-menu>` 新增 `expand-all`/`collapse-all` 方法与 `aithe-tree-toggle` 事件,事件参数统一为 `{ node, expanded }`
12
+ - **Filter 数据格式化框架**: 新增 `@core/filter` 模块,提供 `registerFilter()`/`getFilter()`/`applyFilter()` API,内置 12 种过滤器(date/number/currency/percent/truncate/upper/lower/capitalize/strip-html/default/yes-no/enum)
13
+ - **Table 六项新功能**: 列固定(sticky)、`max-visible-tabs` 溢出折叠、`has-fixed` 属性、斑马纹行固定列背景修复、`selection-cell` sticky 固定、`min-width: max-content` 控制
14
+ - **Autoform 增强**: 条件渲染、字段联动、自定义控件注册表扩展
15
+ - **Tabs 溢出折叠**: `<aithe-tabs>` 新增 `max-visible-tabs` 属性,溢出 tab 折叠为下拉选择;新增 `extra` 具名插槽
16
+ - **Display 组件系列新增**: 新增 `<aithe-desc>`、`<aithe-desc-item>`、`<aithe-log-panel>`、`<aithe-mini-box>`、`<aithe-detail-box>`、`<aithe-brief-box>`、`<aithe-box-table>` 7 个新组件
17
+ - **主题 CSS 变量统一**: 25 个主题统一新增 8 个 CSS 变量(`--aithe-fill-1`/`--aithe-fill-2`/`--aithe-color-surface-hover` 等),CSS 自定义属性命名规范化
18
+ - **DataHub 错误处理增强**: HTTP 非 2xx 错误响应优先用 APIStyle 解析,`DataHubError` 新增 `data` 字段;K8s APIStyle 支持 `Status` 对象解析
19
+ - **SSR 环境适配**: 4 个组件 `window` 引用改为 `globalThis`,兼容非浏览器环境
20
+ - **测试框架集成**: 集成 vitest 测试框架,Filter 模块测试导入路径规范化
21
+ - **SonarQube 代码质量修复**: 消除 S3358/S3776 等告警,提取公共方法
22
+ - **AitheUI 浏览器环境检测**: 新增 `isMobile`/`isAndroid`/`isIOS`/`isChrome`/`isEdge`/`isWechat` 等 10 个环境检测 getter
23
+ - **`AitheSelectableType` 类型重构**: 从 `boolean | 'single'` 改为 `'none' | 'multi' | 'single'` 纯字符串枚举
24
+ - **组件数量**: 100 个可复用的 UI 组件
25
+
26
+ ### 破坏性变更
27
+
28
+ - **事件名统一**: `aithe-open-change` → `aithe-dropdown-change`
29
+ - **`cellRenderer` 签名变更**: 渲染函数参数结构调整
30
+ - **`AitheSelectableType` 重构**: `boolean | 'single'` → `'none' | 'multi' | 'single'`,Box 组件族 `selectable` 从 `Boolean` 统一为 `AitheSelectableType`
31
+ - **`danger` 属性废弃**: 相关组件移除 `danger` 属性,改用 `variant="danger"`
32
+ - **CSS 自定义属性重命名**: `--aithe-duration-normal` → `--aithe-duration-base`/`--aithe-duration-slow`,`--aithe-container-radius` → `--aithe-container-radius-md`,`--aithe-border-radius-md` → `--aithe-radius-md`,`--aithe-font-mono` → `--aithe-font-family-mono`
33
+ - **`<aithe-desc>` 布局重构**: label+content 合并单元格改为独立 grid 列,移除 `desc-item` 的 `labelWidth` 属性
34
+ - **`<aithe-box-table>` 重构**: 移除自建卡片 DOM,改用 `<aithe-brief-box>` 组件;移除 `content` 列插槽
35
+
36
+ ### 组件分类
37
+
38
+ | 分类 | 数量 | 组件 |
39
+ | ----------------- | ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
40
+ | 基础 (basic) | 12 | button, button-group, icon, input, textarea, card, tag, badge, avatar, divider, empty, chip |
41
+ | 布局 (layout) | 8 | container, row, col, flex, space, collapse, collapse-item, affix |
42
+ | 导航 (navigation) | 7 | menu, menu-item, sub-menu, breadcrumb, breadcrumb-item, steps, back-top |
43
+ | 表单 (form) | 18 | autoform, autoform-item, checkbox, checkbox-group, radio, radio-group, select, switch, color-picker, combobox, date-picker, time-picker, slider, rate, form, form-item, upload, transfer |
44
+ | 反馈 (feedback) | 9 | dialog, modal, drawer, tooltip, popover, toast, alert, notification, loading |
45
+ | 数据展示 (data) | 14 | table, table-column, tabs, tab-pane, tab-group, tree, tree-menu, dropdown, metrics, metrics-group, pagination, timeline, timeline-item, box-table |
46
+ | 展示 (display) | 13 | carousel, comparison, animated-image, markdown, markdown-editor, code-editor, label, mini-box, brief-box, detail-box, profile, desc, desc-item |
47
+ | 进度 (progress) | 4 | progress-bar, progress-ring, spinner, skeleton |
48
+ | 容器 (container) | 4 | callout, details, scroller, split-panel |
49
+ | 主题 (theme) | 7 | theme-picker, shape-picker, shadow-picker, typo-picker, theme-preview, locale-switch, theme-switch |
50
+ | 框架 (framework) | 7 | page, body, header, sidebar, dashboard, dashboard-panel, log-panel |
51
+
52
+ ### 主题列表
53
+
54
+ **Light 系 (11)**: light, blue, festive, orange, purple, pink, teal, indigo, cyan, amber, gray
55
+
56
+ **Dark 系 (11)**: dark, slate, charcoal, midnight, obsidian, graphite, ink, onyx, ebony, navy, raisin
57
+
58
+ **云主题 (3)**: aliyun, huawei, tianyi
59
+
60
+ ### 阴影风格列表
61
+
62
+ **内置阴影 (9)**: flat, neumorphism, skeuomorphic, glassmorphism, cyber, deep, diffuse, sharp-business, retro
63
+
64
+ ### 形状风格列表
65
+
66
+ **内置形状 (8)**: sharp, smooth, rounded, rounder, pill, circle, chamfer, organic
67
+
68
+ ### 核心特性摘要
69
+
70
+ - **Filter 数据格式化框架**: `@core/filter` 模块,12 种内置过滤器,支持自定义注册
71
+ - **Table 列固定**: sticky 定位实现列固定,斑马纹背景修复
72
+ - **Tabs 溢出折叠**: `max-visible-tabs` 属性,溢出 tab 折叠为下拉选择
73
+ - **Display 组件系列**: 7 个新组件覆盖描述列表、日志面板、卡片表格等场景
74
+ - **主题 CSS 变量统一**: 25 个主题统一 8 个 CSS 变量,命名规范化
75
+ - **DataHub 错误处理**: APIStyle 解析错误响应,K8s Status 对象支持
76
+ - **SSR 环境适配**: `globalThis` 替代 `window`,兼容非浏览器环境
77
+ - **测试框架集成**: vitest 测试框架,Filter 模块测试覆盖
78
+ - **浏览器环境检测**: `AitheUI` 类新增 10 个环境检测 getter
79
+ - **跨框架兼容**: Web Components 标准,框架无关
80
+ - **样式隔离**: Shadow DOM 确保组件样式不冲突
81
+ - **多主题系统**: 25 套预设主题,支持全局和局部切换
82
+ - **无障碍访问**: ARIA 语义、键盘导航、焦点管理
83
+ - **自定义事件**: `aithe-*` 前缀的统一事件系统
84
+
85
+ ---
86
+
7
87
  ## 26.2.3 (2026-05-14)
8
88
 
9
89
  ### 2026年第2季度第3个月版本 - 代码规范与架构质量提升