@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,412 @@
1
+ import { t } from '../../../styles/i18n';
2
+ function setFields(root, fieldsJson) {
3
+ const form = root.querySelector('aithe-autoform');
4
+ if (form) {
5
+ form.fields = JSON.stringify(fieldsJson);
6
+ }
7
+ }
8
+ function bindAutoformSubmit(root) {
9
+ const form = root.querySelector('aithe-autoform');
10
+ if (!form)
11
+ return;
12
+ form.addEventListener('aithe-submit', (e) => {
13
+ const { values } = e.detail;
14
+ let dialog = root.querySelector('aithe-dialog');
15
+ if (!dialog) {
16
+ dialog = document.createElement('aithe-dialog');
17
+ dialog.setAttribute('title', 'Form Data');
18
+ dialog.setAttribute('confirm-text', 'OK');
19
+ dialog.addEventListener('aithe-confirm', () => {
20
+ dialog.visible = false;
21
+ });
22
+ dialog.addEventListener('aithe-cancel', () => {
23
+ dialog.visible = false;
24
+ });
25
+ root.appendChild(dialog);
26
+ }
27
+ const pre = document.createElement('pre');
28
+ pre.style.cssText =
29
+ 'margin:0;white-space:pre-wrap;word-break:break-all;font-size:13px;max-height:400px;overflow:auto;';
30
+ pre.textContent = JSON.stringify(values, null, 2);
31
+ dialog.visible = false;
32
+ const slot = dialog.querySelector('slot');
33
+ const parent = slot?.parentElement;
34
+ if (parent) {
35
+ parent.innerHTML = '';
36
+ parent.appendChild(pre);
37
+ }
38
+ else {
39
+ dialog.innerHTML = '';
40
+ dialog.appendChild(pre);
41
+ }
42
+ requestAnimationFrame(() => {
43
+ dialog.visible = true;
44
+ });
45
+ });
46
+ }
47
+ function setupWithFields(fieldsJson) {
48
+ return (root) => {
49
+ setFields(root, fieldsJson);
50
+ bindAutoformSubmit(root);
51
+ };
52
+ }
53
+ const basicFields = [
54
+ {
55
+ name: 'username',
56
+ type: 'input',
57
+ label: 'Username',
58
+ icon: 'user',
59
+ required: true,
60
+ placeholder: 'Enter username',
61
+ description: 'Your unique username for the platform',
62
+ },
63
+ {
64
+ name: 'email',
65
+ type: 'input',
66
+ label: 'Email',
67
+ icon: 'mail',
68
+ required: true,
69
+ placeholder: 'user@example.com',
70
+ inputType: 'email',
71
+ pattern: String.raw `^[^\s@]+@[^\s@]+\.[^\s@]+$`,
72
+ message: 'Please enter a valid email',
73
+ },
74
+ {
75
+ name: 'bio',
76
+ type: 'textarea',
77
+ label: 'Bio',
78
+ placeholder: 'Tell us about yourself...',
79
+ rows: '4',
80
+ },
81
+ ];
82
+ const selectionFields = [
83
+ {
84
+ name: 'role',
85
+ type: 'select',
86
+ label: 'Role',
87
+ required: true,
88
+ placeholder: 'Select a role',
89
+ options: [
90
+ { label: 'Admin', id: 'admin' },
91
+ { label: 'Editor', id: 'editor' },
92
+ { label: 'Viewer', id: 'viewer' },
93
+ ],
94
+ },
95
+ {
96
+ name: 'department',
97
+ type: 'radio',
98
+ label: 'Department',
99
+ options: [
100
+ { label: 'Engineering', id: 'eng' },
101
+ { label: 'Design', id: 'design' },
102
+ { label: 'Marketing', id: 'marketing' },
103
+ ],
104
+ },
105
+ {
106
+ name: 'skills',
107
+ type: 'checkbox',
108
+ label: 'Skills',
109
+ options: [
110
+ { label: 'TypeScript', id: 'ts' },
111
+ { label: 'Python', id: 'py' },
112
+ { label: 'Go', id: 'go' },
113
+ { label: 'Rust', id: 'rs' },
114
+ ],
115
+ },
116
+ { name: 'notifications', type: 'switch', label: 'Enable Notifications', dft: 'true' },
117
+ ];
118
+ const advancedFields = [
119
+ { name: 'priority', type: 'slider', label: 'Priority', min: '0', max: '10', step: '1', dft: '5' },
120
+ { name: 'satisfaction', type: 'rate', label: 'Satisfaction', dft: '3' },
121
+ { name: 'theme', type: 'color-picker', label: 'Brand Color', dft: '#4d8dff' },
122
+ { name: 'startDate', type: 'date-picker', label: 'Start Date' },
123
+ { name: 'deadline', type: 'time-picker', label: 'Deadline' },
124
+ {
125
+ name: 'tags',
126
+ type: 'combobox',
127
+ label: 'Tags',
128
+ placeholder: 'Search or create...',
129
+ options: [
130
+ { label: 'Bug', id: 'bug' },
131
+ { label: 'Feature', id: 'feature' },
132
+ { label: 'Improvement', id: 'improvement' },
133
+ ],
134
+ },
135
+ ];
136
+ const validationFields = [
137
+ {
138
+ name: 'phone',
139
+ type: 'input',
140
+ label: 'Phone',
141
+ required: true,
142
+ placeholder: '+1 (555) 000-0000',
143
+ pattern: String.raw `^\+?\d{7,15}$`,
144
+ message: 'Enter a valid phone number (7-15 digits)',
145
+ icon: 'phone',
146
+ },
147
+ {
148
+ name: 'website',
149
+ type: 'input',
150
+ label: 'Website',
151
+ placeholder: 'https://example.com',
152
+ inputType: 'url',
153
+ pattern: '^https?://.+',
154
+ message: 'URL must start with http:// or https://',
155
+ },
156
+ {
157
+ name: 'age',
158
+ type: 'number',
159
+ label: 'Age',
160
+ required: true,
161
+ min: '18',
162
+ max: '120',
163
+ placeholder: '18-120',
164
+ },
165
+ {
166
+ name: 'code',
167
+ type: 'input',
168
+ label: 'Access Code',
169
+ required: true,
170
+ pattern: String.raw `^[A-Z]{3}-\d{4}$`,
171
+ message: 'Format: ABC-1234',
172
+ placeholder: 'ABC-1234',
173
+ },
174
+ ];
175
+ const disabledFields = [
176
+ { name: 'readonlyName', type: 'input', label: 'Name', dft: 'Jane Doe', disabled: true },
177
+ {
178
+ name: 'readonlyRole',
179
+ type: 'select',
180
+ label: 'Role',
181
+ dft: 'admin',
182
+ disabled: true,
183
+ options: [
184
+ { label: 'Admin', id: 'admin' },
185
+ { label: 'User', id: 'user' },
186
+ ],
187
+ },
188
+ { name: 'readonlyActive', type: 'switch', label: 'Active', dft: 'true', disabled: true },
189
+ {
190
+ name: 'readonlyNotes',
191
+ type: 'textarea',
192
+ label: 'Notes',
193
+ dft: 'This content is read-only.',
194
+ disabled: true,
195
+ rows: '2',
196
+ },
197
+ ];
198
+ const fullFields = [
199
+ {
200
+ name: 'fullName',
201
+ type: 'input',
202
+ label: 'Full Name',
203
+ icon: 'user',
204
+ required: true,
205
+ placeholder: 'John Doe',
206
+ tooltip: 'Your legal name',
207
+ },
208
+ {
209
+ name: 'email',
210
+ type: 'input',
211
+ label: 'Email',
212
+ icon: 'mail',
213
+ required: true,
214
+ placeholder: 'john@company.com',
215
+ inputType: 'email',
216
+ description: 'We will never share your email.',
217
+ },
218
+ {
219
+ name: 'phone',
220
+ type: 'input',
221
+ label: 'Phone',
222
+ icon: 'phone',
223
+ placeholder: '+1 555-0000',
224
+ inputType: 'tel',
225
+ },
226
+ {
227
+ name: 'role',
228
+ type: 'select',
229
+ label: 'Role',
230
+ required: true,
231
+ placeholder: 'Choose...',
232
+ options: [
233
+ { label: 'Developer', id: 'dev' },
234
+ { label: 'Designer', id: 'design' },
235
+ { label: 'Manager', id: 'mgr' },
236
+ ],
237
+ },
238
+ {
239
+ name: 'experience',
240
+ type: 'slider',
241
+ label: 'Years of Experience',
242
+ min: '0',
243
+ max: '20',
244
+ step: '1',
245
+ dft: '3',
246
+ },
247
+ { name: 'rating', type: 'rate', label: 'Self Rating', dft: '4' },
248
+ { name: 'theme', type: 'color-picker', label: 'Favorite Color', dft: '#1677ff' },
249
+ { name: 'startDate', type: 'date-picker', label: 'Start Date' },
250
+ { name: 'remote', type: 'switch', label: 'Remote Work', dft: 'true' },
251
+ {
252
+ name: 'skills',
253
+ type: 'checkbox',
254
+ label: 'Skills',
255
+ options: [
256
+ { label: 'Frontend', id: 'fe' },
257
+ { label: 'Backend', id: 'be' },
258
+ { label: 'DevOps', id: 'ops' },
259
+ { label: 'Data', id: 'data' },
260
+ ],
261
+ },
262
+ {
263
+ name: 'team',
264
+ type: 'radio',
265
+ label: 'Team',
266
+ options: [
267
+ { label: 'Alpha', id: 'alpha' },
268
+ { label: 'Beta', id: 'beta' },
269
+ { label: 'Gamma', id: 'gamma' },
270
+ ],
271
+ },
272
+ {
273
+ name: 'notes',
274
+ type: 'textarea',
275
+ label: 'Additional Notes',
276
+ placeholder: 'Anything else...',
277
+ rows: '3',
278
+ },
279
+ ];
280
+ const dependencyFields = [
281
+ {
282
+ name: 'province',
283
+ type: 'select',
284
+ label: 'Province',
285
+ placeholder: 'Select province',
286
+ options: [
287
+ { label: 'Beijing', id: 'BJ' },
288
+ { label: 'Shanghai', id: 'SH' },
289
+ { label: 'Guangdong', id: 'GD' },
290
+ ],
291
+ },
292
+ {
293
+ name: 'city',
294
+ type: 'select',
295
+ label: 'City',
296
+ placeholder: 'Select city',
297
+ dependencies: ['province'],
298
+ rules: [
299
+ { type: 'show', condition: "province !== ''" },
300
+ {
301
+ type: 'update',
302
+ condition: "province === 'BJ'",
303
+ options: [
304
+ { label: 'Haidian', id: 'hd' },
305
+ { label: 'Chaoyang', id: 'cy' },
306
+ ],
307
+ },
308
+ {
309
+ type: 'update',
310
+ condition: "province === 'SH'",
311
+ options: [
312
+ { label: 'Pudong', id: 'pd' },
313
+ { label: "Jing'an", id: 'ja' },
314
+ ],
315
+ },
316
+ {
317
+ type: 'update',
318
+ condition: "province === 'GD'",
319
+ options: [
320
+ { label: 'Guangzhou', id: 'gz' },
321
+ { label: 'Shenzhen', id: 'sz' },
322
+ ],
323
+ },
324
+ { type: 'clear' },
325
+ ],
326
+ },
327
+ { name: 'hasCar', type: 'switch', label: 'Do you have a car?', dft: 'false' },
328
+ {
329
+ name: 'carModel',
330
+ type: 'input',
331
+ label: 'Car Model',
332
+ placeholder: 'Enter car model',
333
+ dependencies: ['hasCar'],
334
+ rules: [{ type: 'show', condition: 'hasCar === true' }, { type: 'clear' }],
335
+ },
336
+ { name: 'agreement', type: 'switch', label: 'I agree to the terms', dft: 'false' },
337
+ {
338
+ name: 'comments',
339
+ type: 'textarea',
340
+ label: 'Comments',
341
+ placeholder: 'Only available after agreement',
342
+ rows: '3',
343
+ dependencies: ['agreement'],
344
+ rules: [{ type: 'disable', condition: 'agreement !== true' }],
345
+ },
346
+ ];
347
+ function formatDisplayCode(fieldsJson) {
348
+ return JSON.stringify(fieldsJson, null, 2);
349
+ }
350
+ export const autoformPage = {
351
+ key: 'autoform',
352
+ title: () => t('demo.autoform.title'),
353
+ description: () => t('demo.autoform.description'),
354
+ examples: [
355
+ {
356
+ title: () => t('demo.autoform.basic.title'),
357
+ description: () => t('demo.autoform.basic.description'),
358
+ code: '<aithe-autoform fields=""></aithe-autoform>',
359
+ displayCode: formatDisplayCode(basicFields),
360
+ setup: setupWithFields(basicFields),
361
+ previewHeight: '420px',
362
+ },
363
+ {
364
+ title: () => t('demo.autoform.selection.title'),
365
+ description: () => t('demo.autoform.selection.description'),
366
+ code: '<aithe-autoform fields=""></aithe-autoform>',
367
+ displayCode: formatDisplayCode(selectionFields),
368
+ setup: setupWithFields(selectionFields),
369
+ previewHeight: '480px',
370
+ },
371
+ {
372
+ title: () => t('demo.autoform.advanced.title'),
373
+ description: () => t('demo.autoform.advanced.description'),
374
+ code: '<aithe-autoform fields=""></aithe-autoform>',
375
+ displayCode: formatDisplayCode(advancedFields),
376
+ setup: setupWithFields(advancedFields),
377
+ previewHeight: '520px',
378
+ },
379
+ {
380
+ title: () => t('demo.autoform.validation.title'),
381
+ description: () => t('demo.autoform.validation.description'),
382
+ code: '<aithe-autoform validate-on-change fields=""></aithe-autoform>',
383
+ displayCode: formatDisplayCode(validationFields),
384
+ setup: setupWithFields(validationFields),
385
+ previewHeight: '440px',
386
+ },
387
+ {
388
+ title: () => t('demo.autoform.disabled.title'),
389
+ description: () => t('demo.autoform.disabled.description'),
390
+ code: '<aithe-autoform fields=""></aithe-autoform><aithe-button disabled>Read Only</aithe-button>',
391
+ displayCode: formatDisplayCode(disabledFields),
392
+ setup: setupWithFields(disabledFields),
393
+ previewHeight: '380px',
394
+ },
395
+ {
396
+ title: () => t('demo.autoform.full.title'),
397
+ description: () => t('demo.autoform.full.description'),
398
+ code: '<aithe-autoform fields=""></aithe-autoform>',
399
+ displayCode: formatDisplayCode(fullFields),
400
+ setup: setupWithFields(fullFields),
401
+ previewHeight: '780px',
402
+ },
403
+ {
404
+ title: () => t('demo.autoform.dependency.title'),
405
+ description: () => t('demo.autoform.dependency.description'),
406
+ code: '<aithe-autoform fields=""></aithe-autoform>',
407
+ displayCode: formatDisplayCode(dependencyFields),
408
+ setup: setupWithFields(dependencyFields),
409
+ previewHeight: '620px',
410
+ },
411
+ ],
412
+ };
@@ -0,0 +1,157 @@
1
+ import { t } from '../../../styles/i18n';
2
+ export const basicPage = {
3
+ key: 'basic',
4
+ title: () => t('demo.basic.title'),
5
+ description: () => t('demo.basic.description'),
6
+ examples: [
7
+ {
8
+ title: () => t('demo.basic.buttons.title'),
9
+ description: () => t('demo.basic.buttons.description'),
10
+ code: `<aithe-space size="16" direction="horizontal" wrap>
11
+ <aithe-button variant="primary" title="Primary action button" icon="check">Primary Action</aithe-button>
12
+ <aithe-button title="Standard button">Default</aithe-button>
13
+ <aithe-button type="dashed">Dashed</aithe-button>
14
+ <aithe-button type="text">Text</aithe-button>
15
+ <aithe-button type="link">Link</aithe-button>
16
+ <aithe-button variant="primary" loading>Generating</aithe-button>
17
+ <aithe-button variant="danger">Delete</aithe-button>
18
+ </aithe-space>
19
+ <div style="height: 16px;"></div>
20
+ <aithe-button-group gap="12">
21
+ <aithe-button type="default">Cancel</aithe-button>
22
+ <aithe-button type="primary">Save Workspace</aithe-button>
23
+ </aithe-button-group>`,
24
+ },
25
+ {
26
+ title: () => t('demo.basic.input.title'),
27
+ description: () => t('demo.basic.input.description'),
28
+ code: `<div style="display:grid;gap:16px;max-width:720px;">
29
+ <aithe-input placeholder="Search agents, prompts or datasets" clearable value="Aithe UI">
30
+ <span slot="prefix">⌕</span>
31
+ <span slot="suffix">⌘K</span>
32
+ </aithe-input>
33
+ <aithe-input type="email" placeholder="owner@company.com" status="success"></aithe-input>
34
+ <aithe-textarea rows="4" placeholder="Describe the system message..."></aithe-textarea>
35
+ </div>`,
36
+ },
37
+ {
38
+ title: () => t('demo.basic.card.title'),
39
+ description: () => t('demo.basic.card.description'),
40
+ code: `<aithe-card style="display:block;max-width:720px;" shadow="3" title="Model Output Summary" icon="sparkles">
41
+ <div style="display:grid;gap:12px;">
42
+ <p style="margin:0;color:var(--aithe-color-text-muted);">
43
+ This card uses the design token system and supports fluid content width.
44
+ </p>
45
+ <aithe-badge value="128">
46
+ <aithe-button type="default">Queued Jobs</aithe-button>
47
+ </aithe-badge>
48
+ </div>
49
+ <span slot="footer">Updated just now</span>
50
+ </aithe-card>`,
51
+ },
52
+ {
53
+ title: () => t('demo.basic.cardDivider.title'),
54
+ description: () => t('demo.basic.cardDivider.description'),
55
+ code: `<aithe-space direction="vertical" size="16">
56
+ <aithe-card style="display:block;max-width:720px;" shadow="2" title="With Dividers" icon="file-text">
57
+ <p style="margin:0;">Default divider="border" — lines between sections.</p>
58
+ <span slot="footer">Footer with divider above</span>
59
+ </aithe-card>
60
+ <aithe-card style="display:block;max-width:720px;" shadow="2" title="No Dividers" icon="file-text" divider="none">
61
+ <p style="margin:0;">divider="none" — no lines between sections.</p>
62
+ <span slot="footer">Footer without divider</span>
63
+ </aithe-card>
64
+ </aithe-space>`,
65
+ },
66
+ {
67
+ title: () => t('demo.basic.tag.title'),
68
+ description: () => t('demo.basic.tag.description'),
69
+ code: `<aithe-space size="12" direction="horizontal" wrap>
70
+ <aithe-tag variant="primary">Inference</aithe-tag>
71
+ <aithe-tag variant="success">Stable</aithe-tag>
72
+ <aithe-tag variant="warning" closable>Reviewing</aithe-tag>
73
+ <aithe-tag variant="danger">Critical</aithe-tag>
74
+ <aithe-chip selected>Realtime</aithe-chip>
75
+ <aithe-chip closable>Vision</aithe-chip>
76
+ </aithe-space>`,
77
+ },
78
+ {
79
+ title: () => t('demo.basic.avatar.title'),
80
+ description: () => t('demo.basic.avatar.description'),
81
+ code: `<div style="display:grid;gap:20px;max-width:720px;">
82
+ <aithe-space size="12" direction="horizontal">
83
+ <aithe-avatar text="AI"></aithe-avatar>
84
+ <aithe-avatar shape="square" text="ML"></aithe-avatar>
85
+ <aithe-avatar size="lg" text="SYS"></aithe-avatar>
86
+ </aithe-space>
87
+ <aithe-divider>Icon Format — Built-in / URL / Auto</aithe-divider>
88
+ <aithe-space size="12" direction="horizontal">
89
+ <aithe-avatar text="(class)user" shape="circle" size="lg"></aithe-avatar>
90
+ <aithe-avatar text="(class)sparkles" shape="square" size="lg"></aithe-avatar>
91
+ <aithe-avatar text="(auto)Admin" shape="circle" size="lg"></aithe-avatar>
92
+ <aithe-avatar text="(url)https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/bot.svg|Bot" shape="circle" size="lg"></aithe-avatar>
93
+ </aithe-space>
94
+ <aithe-divider>System Modules</aithe-divider>
95
+ <div style="display:flex;gap:16px;align-items:center;">
96
+ <span>Retrieval</span>
97
+ <aithe-divider direction="vertical"></aithe-divider>
98
+ <span>Reasoning</span>
99
+ <aithe-divider direction="vertical"></aithe-divider>
100
+ <span>Delivery</span>
101
+ </div>
102
+ </div>`,
103
+ },
104
+ {
105
+ title: () => t('demo.basic.icon.title'),
106
+ description: () => t('demo.basic.icon.description'),
107
+ code: `<div style="display:grid;gap:20px;">
108
+ <aithe-divider>Class — Size Presets (xs ~ 6xl)</aithe-divider>
109
+ <div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap;">
110
+ <aithe-icon name="sparkles" size="xs"></aithe-icon>
111
+ <aithe-icon name="sparkles" size="sm"></aithe-icon>
112
+ <aithe-icon name="sparkles" size="md"></aithe-icon>
113
+ <aithe-icon name="sparkles" size="lg"></aithe-icon>
114
+ <aithe-icon name="sparkles" size="xl"></aithe-icon>
115
+ <aithe-icon name="sparkles" size="2xl"></aithe-icon>
116
+ <aithe-icon name="sparkles" size="3xl"></aithe-icon>
117
+ <aithe-icon name="sparkles" size="4xl"></aithe-icon>
118
+ <aithe-icon name="sparkles" size="5xl"></aithe-icon>
119
+ <aithe-icon name="sparkles" size="6xl"></aithe-icon>
120
+ </div>
121
+
122
+ <aithe-divider>Class — Color & Glyphs</aithe-divider>
123
+ <div style="display:flex;gap:12px;align-items:center;flex-wrap:wrap;">
124
+ <aithe-icon name="check" size="lg" color="var(--aithe-success-6)"></aithe-icon>
125
+ <aithe-icon name="warning" size="lg" color="var(--aithe-warning-6)"></aithe-icon>
126
+ <aithe-icon name="error" size="lg" color="var(--aithe-danger-6)"></aithe-icon>
127
+ <aithe-icon name="info" size="lg" color="var(--aithe-info-6)"></aithe-icon>
128
+ <aithe-icon name="heart" size="lg" color="var(--aithe-danger-5)"></aithe-icon>
129
+ <aithe-icon name="star" size="lg" color="var(--aithe-warning-5)"></aithe-icon>
130
+ <aithe-icon name="search" size="lg"></aithe-icon>
131
+ <aithe-icon name="settings" size="lg"></aithe-icon>
132
+ <aithe-icon name="user" size="lg"></aithe-icon>
133
+ <aithe-icon name="bell" size="lg"></aithe-icon>
134
+ </div>
135
+
136
+ <aithe-divider>Auto — First Character</aithe-divider>
137
+ <div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap;">
138
+ <aithe-icon name="(auto)User Name" size="lg"></aithe-icon>
139
+ <aithe-icon name="(auto)AI" size="xl"></aithe-icon>
140
+ <aithe-icon name="(auto)System" size="2xl"></aithe-icon>
141
+ <aithe-icon name="(auto)Database" size="3xl"></aithe-icon>
142
+ </div>
143
+
144
+ <aithe-divider>URL — Remote Image with Alt Fallback</aithe-divider>
145
+ <div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap;">
146
+ <aithe-icon name="(url)https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/check.svg|Check" size="lg"></aithe-icon>
147
+ <aithe-icon name="(url)https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/x.svg|X" size="xl"></aithe-icon>
148
+ <aithe-icon name="(url)https://invalid.example.com/missing.svg|?" size="lg"></aithe-icon>
149
+ </div>
150
+
151
+ <aithe-divider>Empty State</aithe-divider>
152
+ <aithe-empty text="No generated artifacts yet. Start by creating a workflow."></aithe-empty>
153
+ </div>`,
154
+ previewHeight: '520px',
155
+ },
156
+ ],
157
+ };