@aithe/aithe-ui 26.2.3 → 26.3.2
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.
- package/README.md +19 -11
- package/dist/apps/admin/app.js +12 -0
- package/dist/apps/admin/components/admin-app.js +83 -0
- package/dist/apps/admin/components/admin-layout.d.ts +0 -1
- package/dist/apps/admin/components/admin-layout.d.ts.map +1 -1
- package/dist/apps/admin/components/admin-layout.js +250 -0
- package/dist/apps/admin/datahub/auth.js +24 -0
- package/dist/apps/admin/datahub/dashboard.js +16 -0
- package/dist/apps/admin/datahub/index.js +42 -0
- package/dist/apps/admin/datahub/menu.js +16 -0
- package/dist/apps/admin/datahub/mock/auth.js +11 -0
- package/dist/apps/admin/datahub/mock/dashboard.js +10 -0
- package/dist/apps/admin/datahub/mock/menu.js +42 -0
- package/dist/apps/admin/i18n/de-DE.js +37 -0
- package/dist/apps/admin/i18n/en-US.js +37 -0
- package/dist/apps/admin/i18n/es-ES.js +38 -0
- package/dist/apps/admin/i18n/fr-FR.js +37 -0
- package/dist/apps/admin/i18n/index.js +27 -0
- package/dist/apps/admin/i18n/ja-JP.js +38 -0
- package/dist/apps/admin/i18n/ko-KR.js +37 -0
- package/dist/apps/admin/i18n/pt-BR.js +37 -0
- package/dist/apps/admin/i18n/zh-CN.js +37 -0
- package/dist/apps/admin/i18n/zh-HK.js +37 -0
- package/dist/apps/admin/i18n/zh-TW.js +37 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts +1 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts.map +1 -1
- package/dist/apps/admin/pages/dashboard-page.js +199 -0
- package/dist/apps/admin/pages/login-page.js +278 -0
- package/dist/apps/admin/pages/not-found-page.js +57 -0
- package/dist/apps/admin/pages/role-page.js +76 -0
- package/dist/apps/admin/pages/settings-page.js +95 -0
- package/dist/apps/admin/pages/user-page.js +76 -0
- package/dist/apps/admin/router/index.js +43 -0
- package/dist/apps/admin/standalone.js +1 -0
- package/dist/apps/admin/store/auth.js +42 -0
- package/dist/apps/api/app.js +82 -0
- package/dist/apps/api/demo-data.d.ts.map +1 -1
- package/dist/apps/api/demo-data.js +965 -0
- package/dist/apps/api/docs-viewer.js +684 -0
- package/dist/apps/api/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/api/i18n/de-DE.js +131 -0
- package/dist/apps/api/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/api/i18n/en-US.js +141 -0
- package/dist/apps/api/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/api/i18n/es-ES.js +131 -0
- package/dist/apps/api/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/api/i18n/fr-FR.js +131 -0
- package/dist/apps/api/i18n/index.js +27 -0
- package/dist/apps/api/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/api/i18n/ja-JP.js +131 -0
- package/dist/apps/api/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/api/i18n/ko-KR.js +131 -0
- package/dist/apps/api/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/api/i18n/pt-BR.js +131 -0
- package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-CN.js +141 -0
- package/dist/apps/api/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-HK.js +131 -0
- package/dist/apps/api/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-TW.js +131 -0
- package/dist/apps/api/pages/docs.d.ts.map +1 -1
- package/dist/apps/api/pages/docs.js +369 -0
- package/dist/apps/api/standalone.js +1 -0
- package/dist/apps/demo/app.d.ts.map +1 -1
- package/dist/apps/demo/app.js +275 -0
- package/dist/apps/demo/editor.d.ts.map +1 -1
- package/dist/apps/demo/editor.js +270 -0
- package/dist/apps/demo/helpers.js +7 -0
- package/dist/apps/demo/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/demo/i18n/de-DE.js +289 -0
- package/dist/apps/demo/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/demo/i18n/en-US.js +301 -0
- package/dist/apps/demo/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/demo/i18n/es-ES.js +289 -0
- package/dist/apps/demo/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/fr-FR.js +289 -0
- package/dist/apps/demo/i18n/index.js +27 -0
- package/dist/apps/demo/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ja-JP.js +289 -0
- package/dist/apps/demo/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ko-KR.js +289 -0
- package/dist/apps/demo/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/pt-BR.js +289 -0
- package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-CN.js +301 -0
- package/dist/apps/demo/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-HK.js +289 -0
- package/dist/apps/demo/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-TW.js +289 -0
- package/dist/apps/demo/pages/autoform.d.ts.map +1 -1
- package/dist/apps/demo/pages/autoform.js +422 -0
- package/dist/apps/demo/pages/autoview.d.ts +3 -0
- package/dist/apps/demo/pages/autoview.d.ts.map +1 -0
- package/dist/apps/demo/pages/autoview.js +310 -0
- package/dist/apps/demo/pages/basic.js +157 -0
- package/dist/apps/demo/pages/code.js +1088 -0
- package/dist/apps/demo/pages/container.js +42 -0
- package/dist/apps/demo/pages/dashboard.js +159 -0
- package/dist/apps/demo/pages/data.d.ts.map +1 -1
- package/dist/apps/demo/pages/data.js +327 -0
- package/dist/apps/demo/pages/display.d.ts.map +1 -1
- package/dist/apps/demo/pages/display.js +295 -0
- package/dist/apps/demo/pages/feedback.js +94 -0
- package/dist/apps/demo/pages/form.d.ts.map +1 -1
- package/dist/apps/demo/pages/form.js +119 -0
- package/dist/apps/demo/pages/layout.js +74 -0
- package/dist/apps/demo/pages/navigation.js +54 -0
- package/dist/apps/demo/pages/progress.js +42 -0
- package/dist/apps/demo/pages/theme.js +126 -0
- package/dist/apps/demo/standalone.js +1 -0
- package/dist/components/basic/AGENTS.md +1 -0
- package/dist/components/basic/avatar.js +168 -0
- package/dist/components/basic/badge.js +157 -0
- package/dist/components/basic/button-group.js +70 -0
- package/dist/components/basic/button.d.ts +2 -4
- package/dist/components/basic/button.d.ts.map +1 -1
- package/dist/components/basic/button.js +315 -0
- package/dist/components/basic/card.js +186 -0
- package/dist/components/basic/chip.js +103 -0
- package/dist/components/basic/divider.js +127 -0
- package/dist/components/basic/empty.js +72 -0
- package/dist/components/basic/icon.js +129 -0
- package/dist/components/basic/input.d.ts.map +1 -1
- package/dist/components/basic/input.js +314 -0
- package/dist/components/basic/tag.d.ts +7 -2
- package/dist/components/basic/tag.d.ts.map +1 -1
- package/dist/components/basic/tag.js +248 -0
- package/dist/components/basic/textarea.d.ts +0 -1
- package/dist/components/basic/textarea.d.ts.map +1 -1
- package/dist/components/basic/textarea.js +130 -0
- package/dist/components/container/callout.js +108 -0
- package/dist/components/container/details.js +117 -0
- package/dist/components/container/scroller.js +144 -0
- package/dist/components/container/split-panel.js +150 -0
- package/dist/components/data/AGENTS.md +1 -1
- package/dist/components/data/box-table.d.ts +53 -0
- package/dist/components/data/box-table.d.ts.map +1 -0
- package/dist/components/data/box-table.js +220 -0
- package/dist/components/data/dropdown.d.ts +8 -5
- package/dist/components/data/dropdown.d.ts.map +1 -1
- package/dist/components/data/dropdown.js +219 -0
- package/dist/components/data/metrics-group.js +180 -0
- package/dist/components/data/metrics.d.ts +11 -0
- package/dist/components/data/metrics.d.ts.map +1 -1
- package/dist/components/data/metrics.js +309 -0
- package/dist/components/data/pagination.js +119 -0
- package/dist/components/data/tab-pane.d.ts +58 -12
- package/dist/components/data/tab-pane.d.ts.map +1 -1
- package/dist/components/data/tab-pane.js +130 -0
- package/dist/components/data/table-column.d.ts +29 -5
- package/dist/components/data/table-column.d.ts.map +1 -1
- package/dist/components/data/table-column.js +123 -0
- package/dist/components/data/table.d.ts +134 -54
- package/dist/components/data/table.d.ts.map +1 -1
- package/dist/components/data/table.js +1210 -0
- package/dist/components/data/tabs.d.ts +60 -3
- package/dist/components/data/tabs.d.ts.map +1 -1
- package/dist/components/data/tabs.js +416 -0
- package/dist/components/data/timeline-item.js +127 -0
- package/dist/components/data/timeline.js +204 -0
- package/dist/components/data/tree-menu.d.ts +12 -2
- package/dist/components/data/tree-menu.d.ts.map +1 -1
- package/dist/components/data/tree-menu.js +482 -0
- package/dist/components/data/tree.js +269 -0
- package/dist/components/display/AGENTS.md +5 -2
- package/dist/components/display/animated-image.js +98 -0
- package/dist/components/display/autoview.d.ts +139 -0
- package/dist/components/display/autoview.d.ts.map +1 -0
- package/dist/components/display/autoview.js +460 -0
- package/dist/components/display/brief-box.d.ts +42 -0
- package/dist/components/display/brief-box.d.ts.map +1 -0
- package/dist/components/display/brief-box.js +117 -0
- package/dist/components/display/carousel.js +223 -0
- package/dist/components/display/code-editor.d.ts.map +1 -1
- package/dist/components/display/code-editor.js +976 -0
- package/dist/components/display/comparison.js +132 -0
- package/dist/components/display/desc-item.d.ts +48 -0
- package/dist/components/display/desc-item.d.ts.map +1 -0
- package/dist/components/display/desc-item.js +150 -0
- package/dist/components/display/desc.d.ts +68 -0
- package/dist/components/display/desc.d.ts.map +1 -0
- package/dist/components/display/desc.js +405 -0
- package/dist/components/display/detail-box.d.ts +51 -0
- package/dist/components/display/detail-box.d.ts.map +1 -0
- package/dist/components/display/detail-box.js +157 -0
- package/dist/components/display/label.js +166 -0
- package/dist/components/display/markdown-editor.js +319 -0
- package/dist/components/display/markdown.d.ts.map +1 -1
- package/dist/components/display/markdown.js +193 -0
- package/dist/components/display/mini-box.d.ts +31 -0
- package/dist/components/display/mini-box.d.ts.map +1 -0
- package/dist/components/display/mini-box.js +137 -0
- package/dist/components/display/profile.d.ts +18 -0
- package/dist/components/display/profile.d.ts.map +1 -0
- package/dist/components/display/profile.js +164 -0
- package/dist/components/feedback/AGENTS.md +1 -0
- package/dist/components/feedback/alert.js +150 -0
- package/dist/components/feedback/dialog.js +228 -0
- package/dist/components/feedback/drawer.d.ts.map +1 -1
- package/dist/components/feedback/drawer.js +338 -0
- package/dist/components/feedback/loading.js +130 -0
- package/dist/components/feedback/modal.d.ts.map +1 -1
- package/dist/components/feedback/modal.js +303 -0
- package/dist/components/feedback/notification.js +170 -0
- package/dist/components/feedback/popover.d.ts +1 -1
- package/dist/components/feedback/popover.js +124 -0
- package/dist/components/feedback/toast.js +142 -0
- package/dist/components/feedback/tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip.js +153 -0
- package/dist/components/form/AGENTS.md +4 -0
- package/dist/components/form/autoform-item.d.ts +6 -0
- package/dist/components/form/autoform-item.d.ts.map +1 -1
- package/dist/components/form/autoform-item.js +791 -0
- package/dist/components/form/autoform.d.ts +15 -5
- package/dist/components/form/autoform.d.ts.map +1 -1
- package/dist/components/form/autoform.js +303 -0
- package/dist/components/form/checkbox-group.js +118 -0
- package/dist/components/form/checkbox.js +123 -0
- package/dist/components/form/color-picker.js +148 -0
- package/dist/components/form/combobox.d.ts +4 -0
- package/dist/components/form/combobox.d.ts.map +1 -1
- package/dist/components/form/combobox.js +325 -0
- package/dist/components/form/date-picker.js +123 -0
- package/dist/components/form/form-item.d.ts.map +1 -1
- package/dist/components/form/form-item.js +141 -0
- package/dist/components/form/form.js +94 -0
- package/dist/components/form/radio-group.js +106 -0
- package/dist/components/form/radio.js +110 -0
- package/dist/components/form/rate.js +116 -0
- package/dist/components/form/select.d.ts +5 -1
- package/dist/components/form/select.d.ts.map +1 -1
- package/dist/components/form/select.js +539 -0
- package/dist/components/form/slider.js +134 -0
- package/dist/components/form/switch.js +146 -0
- package/dist/components/form/time-picker.js +92 -0
- package/dist/components/form/transfer.js +273 -0
- package/dist/components/form/upload.js +138 -0
- package/dist/components/framework/body.js +333 -0
- package/dist/components/framework/dashboard-panel.js +519 -0
- package/dist/components/framework/dashboard.d.ts.map +1 -1
- package/dist/components/framework/dashboard.js +1084 -0
- package/dist/components/framework/header.js +237 -0
- package/dist/components/framework/log-panel.js +637 -0
- package/dist/components/framework/page.js +151 -0
- package/dist/components/framework/sidebar.d.ts +4 -10
- package/dist/components/framework/sidebar.d.ts.map +1 -1
- package/dist/components/framework/sidebar.js +477 -0
- package/dist/components/layout/affix.js +137 -0
- package/dist/components/layout/col.js +103 -0
- package/dist/components/layout/collapse-item.js +165 -0
- package/dist/components/layout/collapse.js +108 -0
- package/dist/components/layout/container.js +92 -0
- package/dist/components/layout/flex.js +100 -0
- package/dist/components/layout/row.js +103 -0
- package/dist/components/layout/space.js +85 -0
- package/dist/components/navigation/back-top.js +127 -0
- package/dist/components/navigation/breadcrumb-item.js +108 -0
- package/dist/components/navigation/breadcrumb.js +70 -0
- package/dist/components/navigation/menu-item.js +181 -0
- package/dist/components/navigation/menu.js +126 -0
- package/dist/components/navigation/steps.js +183 -0
- package/dist/components/navigation/sub-menu.d.ts.map +1 -1
- package/dist/components/navigation/sub-menu.js +252 -0
- package/dist/components/progress/progress-bar.js +97 -0
- package/dist/components/progress/progress-ring.js +111 -0
- package/dist/components/progress/skeleton.js +108 -0
- package/dist/components/progress/spinner.js +129 -0
- package/dist/components/theme/locale-switch.js +241 -0
- package/dist/components/theme/shadow-picker.js +233 -0
- package/dist/components/theme/shape-picker.js +232 -0
- package/dist/components/theme/theme-picker.js +236 -0
- package/dist/components/theme/theme-preview.d.ts +1 -2
- package/dist/components/theme/theme-preview.d.ts.map +1 -1
- package/dist/components/theme/theme-preview.js +376 -0
- package/dist/components/theme/theme-switch.d.ts.map +1 -1
- package/dist/components/theme/theme-switch.js +318 -0
- package/dist/components/theme/typo-picker.js +219 -0
- package/dist/core/AGENTS.md +6 -1
- package/dist/core/aithe-element.d.ts +2 -2
- package/dist/core/aithe-element.js +135 -0
- package/dist/core/aithe-widget.js +30 -0
- package/dist/core/anchored-overlay.d.ts +3 -0
- package/dist/core/anchored-overlay.d.ts.map +1 -1
- package/dist/core/anchored-overlay.js +111 -0
- package/dist/core/autoform/autoform.js +79 -0
- package/dist/core/autoform/autoview.d.ts +86 -0
- package/dist/core/autoform/autoview.d.ts.map +1 -0
- package/dist/core/autoform/autoview.js +37 -0
- package/dist/core/autoform/condition.js +170 -0
- package/dist/core/autoform/index.d.ts +2 -0
- package/dist/core/autoform/index.d.ts.map +1 -1
- package/dist/core/autoform/index.js +9 -0
- package/dist/core/autoform/types.js +7 -0
- package/dist/core/datahub/__tests__/force-options.test.d.ts +8 -0
- package/dist/core/datahub/__tests__/force-options.test.d.ts.map +1 -0
- package/dist/core/datahub/__tests__/force-options.test.js +161 -0
- package/dist/core/datahub/config/strategy.d.ts +1 -1
- package/dist/core/datahub/config/strategy.d.ts.map +1 -1
- package/dist/core/datahub/config/strategy.js +50 -0
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts +1 -1
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts.map +1 -1
- package/dist/core/datahub/core/adapter/fetch-adapter.js +118 -0
- package/dist/core/datahub/core/adapter/index.js +7 -0
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts +1 -1
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts.map +1 -1
- package/dist/core/datahub/core/adapter/mock-adapter.js +58 -0
- package/dist/core/datahub/core/api-styles.d.ts +1 -1
- package/dist/core/datahub/core/api-styles.d.ts.map +1 -1
- package/dist/core/datahub/core/api-styles.js +136 -0
- package/dist/core/datahub/core/datahub-core.d.ts +53 -3
- package/dist/core/datahub/core/datahub-core.d.ts.map +1 -1
- package/dist/core/datahub/core/datahub-core.js +520 -0
- package/dist/core/datahub/core/index.js +7 -0
- package/dist/core/datahub/index.js +50 -0
- package/dist/core/datahub/types.d.ts +24 -0
- package/dist/core/datahub/types.d.ts.map +1 -1
- package/dist/core/datahub/types.js +31 -0
- package/dist/core/datahub/utils/cache.js +55 -0
- package/dist/core/datahub/utils/common.js +23 -0
- package/dist/core/datahub/utils/dedup.d.ts +1 -1
- package/dist/core/datahub/utils/dedup.d.ts.map +1 -1
- package/dist/core/datahub/utils/dedup.js +52 -0
- package/dist/core/datahub/utils/idempotent.js +61 -0
- package/dist/core/datahub/utils/is-query.js +53 -0
- package/dist/core/datahub/utils/loading.js +78 -0
- package/dist/core/filter/__tests__/index.test.d.ts +2 -0
- package/dist/core/filter/__tests__/index.test.d.ts.map +1 -0
- package/dist/core/filter/__tests__/index.test.js +230 -0
- package/dist/core/filter/builtins.d.ts +60 -0
- package/dist/core/filter/builtins.d.ts.map +1 -0
- package/dist/core/filter/builtins.js +172 -0
- package/dist/core/filter/factory.d.ts +54 -0
- package/dist/core/filter/factory.d.ts.map +1 -0
- package/dist/core/filter/factory.js +96 -0
- package/dist/core/filter/index.d.ts +11 -0
- package/dist/core/filter/index.d.ts.map +1 -0
- package/dist/core/filter/index.js +9 -0
- package/dist/core/filter/types.d.ts +12 -0
- package/dist/core/filter/types.d.ts.map +1 -0
- package/dist/core/filter/types.js +1 -0
- package/dist/core/floating.js +132 -0
- package/dist/core/highlight/index.js +43 -0
- package/dist/core/highlight/lang-bash.js +27 -0
- package/dist/core/highlight/lang-c.js +27 -0
- package/dist/core/highlight/lang-cmake.js +27 -0
- package/dist/core/highlight/lang-cpp.js +27 -0
- package/dist/core/highlight/lang-css.js +24 -0
- package/dist/core/highlight/lang-dart.js +27 -0
- package/dist/core/highlight/lang-dockerfile.js +16 -0
- package/dist/core/highlight/lang-fsharp.js +23 -0
- package/dist/core/highlight/lang-go.js +22 -0
- package/dist/core/highlight/lang-html.js +12 -0
- package/dist/core/highlight/lang-java.js +22 -0
- package/dist/core/highlight/lang-javascript.js +26 -0
- package/dist/core/highlight/lang-json.js +13 -0
- package/dist/core/highlight/lang-jsonline.js +13 -0
- package/dist/core/highlight/lang-jsx.js +30 -0
- package/dist/core/highlight/lang-kotlin.js +27 -0
- package/dist/core/highlight/lang-latex.js +22 -0
- package/dist/core/highlight/lang-lua.js +26 -0
- package/dist/core/highlight/lang-makefile.js +22 -0
- package/dist/core/highlight/lang-markdown.js +18 -0
- package/dist/core/highlight/lang-objectivec.js +24 -0
- package/dist/core/highlight/lang-perl.js +30 -0
- package/dist/core/highlight/lang-powershell.js +23 -0
- package/dist/core/highlight/lang-python.js +27 -0
- package/dist/core/highlight/lang-r.js +21 -0
- package/dist/core/highlight/lang-ruby.js +29 -0
- package/dist/core/highlight/lang-rust.js +24 -0
- package/dist/core/highlight/lang-scala.js +26 -0
- package/dist/core/highlight/lang-sql.js +21 -0
- package/dist/core/highlight/lang-svelte.js +27 -0
- package/dist/core/highlight/lang-swift.js +28 -0
- package/dist/core/highlight/lang-tsx.js +35 -0
- package/dist/core/highlight/lang-typescript.js +31 -0
- package/dist/core/highlight/lang-vue.js +29 -0
- package/dist/core/highlight/lang-wasm.js +22 -0
- package/dist/core/highlight/lang-xml.js +12 -0
- package/dist/core/highlight/lang-yaml.js +14 -0
- package/dist/core/highlight/registry.js +99 -0
- package/dist/core/logger/LoggerCore.js +626 -0
- package/dist/core/logger/index.js +10 -0
- package/dist/core/logger/types.js +29 -0
- package/dist/core/markdown/index.js +20 -0
- package/dist/core/markdown/parser.d.ts +2 -0
- package/dist/core/markdown/parser.d.ts.map +1 -1
- package/dist/core/markdown/parser.js +376 -0
- package/dist/core/markdown/plugins.d.ts +2 -1
- package/dist/core/markdown/plugins.d.ts.map +1 -1
- package/dist/core/markdown/plugins.js +755 -0
- package/dist/core/markdown/types.d.ts +5 -0
- package/dist/core/markdown/types.d.ts.map +1 -1
- package/dist/core/markdown/types.js +7 -0
- package/dist/core/router/index.js +244 -0
- package/dist/core/styles.js +44 -0
- package/dist/core/types.d.ts +52 -3
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3695 -1622
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1844 -758
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/aithe-ui.d.ts +23 -0
- package/dist/styles/aithe-ui.d.ts.map +1 -1
- package/dist/styles/aithe-ui.js +185 -0
- package/dist/styles/global.css.d.ts +1 -1
- package/dist/styles/global.css.d.ts.map +1 -1
- package/dist/styles/global.css.js +119 -0
- package/dist/styles/i18n/index.js +206 -0
- package/dist/styles/i18n/locales/de-DE.d.ts.map +1 -1
- package/dist/styles/i18n/locales/de-DE.js +151 -0
- package/dist/styles/i18n/locales/en-US.d.ts.map +1 -1
- package/dist/styles/i18n/locales/en-US.js +160 -0
- package/dist/styles/i18n/locales/es-ES.d.ts.map +1 -1
- package/dist/styles/i18n/locales/es-ES.js +151 -0
- package/dist/styles/i18n/locales/fr-FR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/fr-FR.js +151 -0
- package/dist/styles/i18n/locales/index.js +14 -0
- package/dist/styles/i18n/locales/ja-JP.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ja-JP.js +151 -0
- package/dist/styles/i18n/locales/ko-KR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ko-KR.js +151 -0
- package/dist/styles/i18n/locales/pt-BR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/pt-BR.js +151 -0
- package/dist/styles/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-CN.js +160 -0
- package/dist/styles/i18n/locales/zh-HK.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-HK.js +151 -0
- package/dist/styles/i18n/locales/zh-TW.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-TW.js +151 -0
- package/dist/styles/layout/index.js +88 -0
- package/dist/styles/mixins.js +43 -0
- package/dist/styles/shadow/cyber.js +19 -0
- package/dist/styles/shadow/deep.js +19 -0
- package/dist/styles/shadow/diffuse.js +19 -0
- package/dist/styles/shadow/flat.js +19 -0
- package/dist/styles/shadow/glassmorphism.js +19 -0
- package/dist/styles/shadow/index.js +129 -0
- package/dist/styles/shadow/neumorphism.js +21 -0
- package/dist/styles/shadow/retro.js +19 -0
- package/dist/styles/shadow/sharp-business.js +19 -0
- package/dist/styles/shadow/skeuomorphic.js +21 -0
- package/dist/styles/shape/chamfer.js +19 -0
- package/dist/styles/shape/circle.js +19 -0
- package/dist/styles/shape/index.js +174 -0
- package/dist/styles/shape/organic.js +19 -0
- package/dist/styles/shape/pill.js +19 -0
- package/dist/styles/shape/rounded.js +21 -0
- package/dist/styles/shape/rounder.js +19 -0
- package/dist/styles/shape/sharp.js +19 -0
- package/dist/styles/shape/smooth.js +19 -0
- package/dist/styles/theme/aliyun.d.ts +1 -1
- package/dist/styles/theme/aliyun.d.ts.map +1 -1
- package/dist/styles/theme/aliyun.js +102 -0
- package/dist/styles/theme/amber.d.ts +1 -1
- package/dist/styles/theme/amber.d.ts.map +1 -1
- package/dist/styles/theme/amber.js +101 -0
- package/dist/styles/theme/blue.d.ts +1 -1
- package/dist/styles/theme/blue.d.ts.map +1 -1
- package/dist/styles/theme/blue.js +101 -0
- package/dist/styles/theme/charcoal.d.ts +1 -1
- package/dist/styles/theme/charcoal.d.ts.map +1 -1
- package/dist/styles/theme/charcoal.js +106 -0
- package/dist/styles/theme/cyan.d.ts +1 -1
- package/dist/styles/theme/cyan.d.ts.map +1 -1
- package/dist/styles/theme/cyan.js +96 -0
- package/dist/styles/theme/dark.d.ts +1 -1
- package/dist/styles/theme/dark.d.ts.map +1 -1
- package/dist/styles/theme/dark.js +106 -0
- package/dist/styles/theme/ebony.d.ts +1 -1
- package/dist/styles/theme/ebony.d.ts.map +1 -1
- package/dist/styles/theme/ebony.js +106 -0
- package/dist/styles/theme/festive.d.ts +1 -1
- package/dist/styles/theme/festive.d.ts.map +1 -1
- package/dist/styles/theme/festive.js +101 -0
- package/dist/styles/theme/graphite.d.ts +1 -1
- package/dist/styles/theme/graphite.d.ts.map +1 -1
- package/dist/styles/theme/graphite.js +106 -0
- package/dist/styles/theme/gray.d.ts +1 -1
- package/dist/styles/theme/gray.d.ts.map +1 -1
- package/dist/styles/theme/gray.js +101 -0
- package/dist/styles/theme/huawei.d.ts +1 -1
- package/dist/styles/theme/huawei.d.ts.map +1 -1
- package/dist/styles/theme/huawei.js +102 -0
- package/dist/styles/theme/index.d.ts +1 -1
- package/dist/styles/theme/index.d.ts.map +1 -1
- package/dist/styles/theme/index.js +276 -0
- package/dist/styles/theme/indigo.d.ts +1 -1
- package/dist/styles/theme/indigo.d.ts.map +1 -1
- package/dist/styles/theme/indigo.js +101 -0
- package/dist/styles/theme/ink.d.ts +1 -1
- package/dist/styles/theme/ink.d.ts.map +1 -1
- package/dist/styles/theme/ink.js +106 -0
- package/dist/styles/theme/light.d.ts +1 -1
- package/dist/styles/theme/light.d.ts.map +1 -1
- package/dist/styles/theme/light.js +102 -0
- package/dist/styles/theme/midnight.d.ts +1 -1
- package/dist/styles/theme/midnight.d.ts.map +1 -1
- package/dist/styles/theme/midnight.js +106 -0
- package/dist/styles/theme/navy.d.ts +1 -1
- package/dist/styles/theme/navy.d.ts.map +1 -1
- package/dist/styles/theme/navy.js +106 -0
- package/dist/styles/theme/obsidian.d.ts +1 -1
- package/dist/styles/theme/obsidian.d.ts.map +1 -1
- package/dist/styles/theme/obsidian.js +106 -0
- package/dist/styles/theme/onyx.d.ts +1 -1
- package/dist/styles/theme/onyx.d.ts.map +1 -1
- package/dist/styles/theme/onyx.js +106 -0
- package/dist/styles/theme/orange.d.ts +1 -1
- package/dist/styles/theme/orange.d.ts.map +1 -1
- package/dist/styles/theme/orange.js +101 -0
- package/dist/styles/theme/pink.d.ts +1 -1
- package/dist/styles/theme/pink.d.ts.map +1 -1
- package/dist/styles/theme/pink.js +101 -0
- package/dist/styles/theme/purple.d.ts +1 -1
- package/dist/styles/theme/purple.d.ts.map +1 -1
- package/dist/styles/theme/purple.js +101 -0
- package/dist/styles/theme/raisin.d.ts +1 -1
- package/dist/styles/theme/raisin.d.ts.map +1 -1
- package/dist/styles/theme/raisin.js +106 -0
- package/dist/styles/theme/slate.d.ts +1 -1
- package/dist/styles/theme/slate.d.ts.map +1 -1
- package/dist/styles/theme/slate.js +106 -0
- package/dist/styles/theme/teal.d.ts +1 -1
- package/dist/styles/theme/teal.d.ts.map +1 -1
- package/dist/styles/theme/teal.js +101 -0
- package/dist/styles/theme/tianyi.d.ts +1 -1
- package/dist/styles/theme/tianyi.d.ts.map +1 -1
- package/dist/styles/theme/tianyi.js +102 -0
- package/dist/styles/types.js +1 -0
- package/dist/styles/typo/business.js +34 -0
- package/dist/styles/typo/compact.js +34 -0
- package/dist/styles/typo/index.js +99 -0
- package/dist/styles/typo/luxury.js +34 -0
- package/dist/styles/typo/minimal.js +34 -0
- package/dist/types/index.js +2 -0
- package/dist/utils/dom.js +51 -0
- package/dist/utils/events.js +32 -0
- package/dist/utils/icon.js +176 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/utils.d.ts +5 -5
- package/dist/utils/utils.js +89 -0
- package/dist/utils/validation.js +52 -0
- package/docs/api/basic/button.md +9 -6
- package/docs/api/basic/tag.md +24 -17
- package/docs/api/data/box-table.md +73 -0
- package/docs/api/data/dropdown.md +3 -2
- package/docs/api/data/metrics.md +2 -0
- package/docs/api/data/table-column.md +37 -23
- package/docs/api/data/table.md +158 -44
- package/docs/api/data/tabs.md +46 -1
- package/docs/api/data/tree-menu.md +55 -2
- package/docs/api/display/autoview.md +277 -0
- package/docs/api/display/box.md +66 -0
- package/docs/api/display/brief-box.md +73 -0
- package/docs/api/display/desc-item.md +57 -0
- package/docs/api/display/desc.md +246 -0
- package/docs/api/display/detail-box.md +75 -0
- package/docs/api/display/mini-box.md +100 -0
- package/docs/api/display/profile.md +92 -0
- package/docs/api/feedback/popover.md +10 -10
- package/docs/api/feedback/tooltip.md +14 -14
- package/docs/api/form/autoform-item.md +115 -0
- package/docs/api/form/autoform.md +7 -3
- package/docs/api/form/combobox.md +27 -7
- package/docs/api/form/select.md +50 -28
- package/docs/api/framework/log-panel.md +46 -0
- package/docs/api/framework/sidebar.md +3 -2
- package/docs/api/summary.md +46 -35
- package/docs/api/theme/theme-switch.md +1 -1
- package/docs/autoform.md +14 -33
- package/docs/changelog/CHANGELOG.md +155 -0
- package/docs/changelog/VERSION_26.3.1.md +966 -0
- package/docs/changelog/VERSION_26.3.2.md +852 -0
- package/docs/datahub.md +4 -1
- package/docs/filter.md +332 -0
- package/docs/framework-integration.md +2 -2
- package/docs/guide.md +72 -6
- package/docs/i18n.md +2 -4
- package/docs/issue/26.3.1/issue_26.3.1.0.md +84 -0
- package/docs/issue/26.3.1/issue_26.3.1.1.md +72 -0
- package/docs/issue/26.3.1/issue_26.3.1.2.md +75 -0
- package/docs/issue/26.3.1/issue_26.3.1.3.md +78 -0
- package/docs/issue/26.3.1/issue_26.3.1.4.md +113 -0
- package/docs/issue/26.3.1/issue_26.3.1.5.md +142 -0
- package/docs/issue/26.3.1/issue_26.3.1.6.md +100 -0
- package/docs/issue/26.3.1/issue_26.3.1.7.md +78 -0
- package/docs/issue/26.3.2/issue_26.3.2.1.md +46 -0
- package/docs/issue/26.3.2/issue_26.3.2.2.md +82 -0
- package/docs/issue/26.3.2/issue_26.3.2.3.md +57 -0
- package/docs/issue/26.3.2/issue_26.3.2.4.md +43 -0
- package/docs/issue/AGENTS.md +24 -3
- package/docs/markdown.md +2 -2
- package/docs/quickstart.md +5 -5
- package/docs/theming.md +5 -4
- package/package.json +5 -2
- package/dist/components/navigation/dropdown.d.ts +0 -56
- package/dist/components/navigation/dropdown.d.ts.map +0 -1
- /package/docs/issue/{issue_26.2.2.1.md → 26.2.2/issue_26.2.2.1.md} +0 -0
- /package/docs/issue/{issue_26.2.2.2.md → 26.2.2/issue_26.2.2.2.md} +0 -0
- /package/docs/issue/{issue_26.2.2.3.md → 26.2.2/issue_26.2.2.3.md} +0 -0
- /package/docs/issue/{issue_26.2.2.4.md → 26.2.2/issue_26.2.2.4.md} +0 -0
- /package/docs/issue/{issue_26.2.3.1.md → 26.2.3/issue_26.2.3.1.md} +0 -0
- /package/docs/issue/{issue_26.2.3.10.md → 26.2.3/issue_26.2.3.10.md} +0 -0
- /package/docs/issue/{issue_26.2.3.11.md → 26.2.3/issue_26.2.3.11.md} +0 -0
- /package/docs/issue/{issue_26.2.3.12.md → 26.2.3/issue_26.2.3.12.md} +0 -0
- /package/docs/issue/{issue_26.2.3.13.md → 26.2.3/issue_26.2.3.13.md} +0 -0
- /package/docs/issue/{issue_26.2.3.14.md → 26.2.3/issue_26.2.3.14.md} +0 -0
- /package/docs/issue/{issue_26.2.3.15.md → 26.2.3/issue_26.2.3.15.md} +0 -0
- /package/docs/issue/{issue_26.2.3.16.md → 26.2.3/issue_26.2.3.16.md} +0 -0
- /package/docs/issue/{issue_26.2.3.2.md → 26.2.3/issue_26.2.3.2.md} +0 -0
- /package/docs/issue/{issue_26.2.3.3.md → 26.2.3/issue_26.2.3.3.md} +0 -0
- /package/docs/issue/{issue_26.2.3.4.md → 26.2.3/issue_26.2.3.4.md} +0 -0
- /package/docs/issue/{issue_26.2.3.5.md → 26.2.3/issue_26.2.3.5.md} +0 -0
- /package/docs/issue/{issue_26.2.3.6.md → 26.2.3/issue_26.2.3.6.md} +0 -0
- /package/docs/issue/{issue_26.2.3.7.md → 26.2.3/issue_26.2.3.7.md} +0 -0
- /package/docs/issue/{issue_26.2.3.8.md → 26.2.3/issue_26.2.3.8.md} +0 -0
- /package/docs/issue/{issue_26.2.3.9.md → 26.2.3/issue_26.2.3.9.md} +0 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { t } from '../../../styles/i18n';
|
|
2
|
+
function setupAutoView(fieldsJson, data) {
|
|
3
|
+
return (root) => {
|
|
4
|
+
const view = root.querySelector('aithe-autoview');
|
|
5
|
+
if (view) {
|
|
6
|
+
view.fields = JSON.stringify(fieldsJson);
|
|
7
|
+
view.data = data;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function formatDisplayCode(fieldsJson, data) {
|
|
12
|
+
return `// fields\n${JSON.stringify(fieldsJson, null, 2)}\n\n// data\n${JSON.stringify(data, null, 2)}`;
|
|
13
|
+
}
|
|
14
|
+
const basicFields = [
|
|
15
|
+
{ name: 'username', type: 'input', label: 'Username' },
|
|
16
|
+
{ name: 'email', type: 'input', label: 'Email', inputType: 'email' },
|
|
17
|
+
{ name: 'bio', type: 'textarea', label: 'Bio', span: 2 },
|
|
18
|
+
];
|
|
19
|
+
const basicData = {
|
|
20
|
+
username: 'John Doe',
|
|
21
|
+
email: 'john@example.com',
|
|
22
|
+
bio: 'Frontend engineer who loves building design systems and Web Components.',
|
|
23
|
+
};
|
|
24
|
+
const selectionFields = [
|
|
25
|
+
{
|
|
26
|
+
name: 'role',
|
|
27
|
+
type: 'select',
|
|
28
|
+
label: 'Role',
|
|
29
|
+
options: [
|
|
30
|
+
{ label: 'Admin', id: 'admin' },
|
|
31
|
+
{ label: 'Editor', id: 'editor' },
|
|
32
|
+
{ label: 'Viewer', id: 'viewer' },
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'department',
|
|
37
|
+
type: 'radio',
|
|
38
|
+
label: 'Department',
|
|
39
|
+
options: [
|
|
40
|
+
{ label: 'Engineering', id: 'eng' },
|
|
41
|
+
{ label: 'Design', id: 'design' },
|
|
42
|
+
{ label: 'Marketing', id: 'marketing' },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'skills',
|
|
47
|
+
type: 'checkbox',
|
|
48
|
+
label: 'Skills',
|
|
49
|
+
options: [
|
|
50
|
+
{ label: 'TypeScript', id: 'ts' },
|
|
51
|
+
{ label: 'Python', id: 'py' },
|
|
52
|
+
{ label: 'Go', id: 'go' },
|
|
53
|
+
{ label: 'Rust', id: 'rs' },
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{ name: 'notifications', type: 'switch', label: 'Notifications' },
|
|
57
|
+
];
|
|
58
|
+
const selectionData = {
|
|
59
|
+
role: 'editor',
|
|
60
|
+
department: 'design',
|
|
61
|
+
skills: ['ts', 'go'],
|
|
62
|
+
notifications: true,
|
|
63
|
+
};
|
|
64
|
+
const advancedFields = [
|
|
65
|
+
{ name: 'priority', type: 'slider', label: 'Priority' },
|
|
66
|
+
{ name: 'satisfaction', type: 'rate', label: 'Satisfaction' },
|
|
67
|
+
{ name: 'theme', type: 'color-picker', label: 'Brand Color' },
|
|
68
|
+
{ name: 'startDate', type: 'date-picker', label: 'Start Date', filter: 'date yyyy-MM-dd' },
|
|
69
|
+
{ name: 'deadline', type: 'time-picker', label: 'Deadline' },
|
|
70
|
+
{
|
|
71
|
+
name: 'tags',
|
|
72
|
+
type: 'combobox',
|
|
73
|
+
label: 'Tags',
|
|
74
|
+
options: [
|
|
75
|
+
{ label: 'Bug', id: 'bug' },
|
|
76
|
+
{ label: 'Feature', id: 'feature' },
|
|
77
|
+
{ label: 'Improvement', id: 'improvement' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
const advancedData = {
|
|
82
|
+
priority: '7',
|
|
83
|
+
satisfaction: '4',
|
|
84
|
+
theme: '#4d8dff',
|
|
85
|
+
startDate: '2026-08-31',
|
|
86
|
+
deadline: '18:30',
|
|
87
|
+
tags: 'feature',
|
|
88
|
+
};
|
|
89
|
+
const dependencyFields = [
|
|
90
|
+
{
|
|
91
|
+
name: 'province',
|
|
92
|
+
type: 'select',
|
|
93
|
+
label: 'Province',
|
|
94
|
+
options: [
|
|
95
|
+
{ label: 'Beijing', id: 'BJ' },
|
|
96
|
+
{ label: 'Shanghai', id: 'SH' },
|
|
97
|
+
{ label: 'Guangdong', id: 'GD' },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'city',
|
|
102
|
+
type: 'select',
|
|
103
|
+
label: 'City',
|
|
104
|
+
dependencies: ['province'],
|
|
105
|
+
rules: [
|
|
106
|
+
{ type: 'show', condition: "province !== ''" },
|
|
107
|
+
{
|
|
108
|
+
type: 'update',
|
|
109
|
+
condition: "province === 'BJ'",
|
|
110
|
+
options: [
|
|
111
|
+
{ label: 'Haidian', id: 'hd' },
|
|
112
|
+
{ label: 'Chaoyang', id: 'cy' },
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'update',
|
|
117
|
+
condition: "province === 'SH'",
|
|
118
|
+
options: [
|
|
119
|
+
{ label: 'Pudong', id: 'pd' },
|
|
120
|
+
{ label: "Jing'an", id: 'ja' },
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: 'update',
|
|
125
|
+
condition: "province === 'GD'",
|
|
126
|
+
options: [
|
|
127
|
+
{ label: 'Guangzhou', id: 'gz' },
|
|
128
|
+
{ label: 'Shenzhen', id: 'sz' },
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
{ name: 'hasCar', type: 'switch', label: 'Has a car?' },
|
|
134
|
+
{
|
|
135
|
+
name: 'carModel',
|
|
136
|
+
type: 'input',
|
|
137
|
+
label: 'Car Model',
|
|
138
|
+
dependencies: ['hasCar'],
|
|
139
|
+
rules: [{ type: 'show', condition: 'hasCar === true' }],
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
const dependencyData = {
|
|
143
|
+
province: 'BJ',
|
|
144
|
+
city: 'hd',
|
|
145
|
+
hasCar: true,
|
|
146
|
+
carModel: 'Tesla Model 3',
|
|
147
|
+
};
|
|
148
|
+
const fullFields = [
|
|
149
|
+
{ name: 'fullName', type: 'input', label: 'Full Name' },
|
|
150
|
+
{ name: 'email', type: 'input', label: 'Email', inputType: 'email' },
|
|
151
|
+
{ name: 'phone', type: 'input', label: 'Phone', inputType: 'tel' },
|
|
152
|
+
{
|
|
153
|
+
name: 'role',
|
|
154
|
+
type: 'select',
|
|
155
|
+
label: 'Role',
|
|
156
|
+
options: [
|
|
157
|
+
{ label: 'Developer', id: 'dev' },
|
|
158
|
+
{ label: 'Designer', id: 'design' },
|
|
159
|
+
{ label: 'Manager', id: 'mgr' },
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
{ name: 'experience', type: 'slider', label: 'Years of Experience' },
|
|
163
|
+
{ name: 'rating', type: 'rate', label: 'Self Rating' },
|
|
164
|
+
{ name: 'theme', type: 'color-picker', label: 'Favorite Color' },
|
|
165
|
+
{ name: 'startDate', type: 'date-picker', label: 'Start Date', filter: 'date yyyy-MM-dd' },
|
|
166
|
+
{ name: 'remote', type: 'switch', label: 'Remote Work' },
|
|
167
|
+
{
|
|
168
|
+
name: 'skills',
|
|
169
|
+
type: 'checkbox',
|
|
170
|
+
label: 'Skills',
|
|
171
|
+
options: [
|
|
172
|
+
{ label: 'Frontend', id: 'fe' },
|
|
173
|
+
{ label: 'Backend', id: 'be' },
|
|
174
|
+
{ label: 'DevOps', id: 'ops' },
|
|
175
|
+
{ label: 'Data', id: 'data' },
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'team',
|
|
180
|
+
type: 'radio',
|
|
181
|
+
label: 'Team',
|
|
182
|
+
options: [
|
|
183
|
+
{ label: 'Alpha', id: 'alpha' },
|
|
184
|
+
{ label: 'Beta', id: 'beta' },
|
|
185
|
+
{ label: 'Gamma', id: 'gamma' },
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
{ name: 'notes', type: 'textarea', label: 'Additional Notes', span: 2 },
|
|
189
|
+
];
|
|
190
|
+
const fullData = {
|
|
191
|
+
fullName: 'Jane Smith',
|
|
192
|
+
email: 'jane@company.com',
|
|
193
|
+
phone: '+1 555-0123',
|
|
194
|
+
role: 'dev',
|
|
195
|
+
experience: '5',
|
|
196
|
+
rating: '4',
|
|
197
|
+
theme: '#1677ff',
|
|
198
|
+
startDate: '2026-03-15',
|
|
199
|
+
remote: true,
|
|
200
|
+
skills: ['fe', 'be'],
|
|
201
|
+
team: 'beta',
|
|
202
|
+
notes: 'Passionate about building accessible and performant web applications.',
|
|
203
|
+
};
|
|
204
|
+
const emptyFields = [
|
|
205
|
+
{ name: 'username', type: 'input', label: 'Username' },
|
|
206
|
+
{ name: 'role', type: 'select', label: 'Role', options: [{ label: 'Admin', id: 'admin' }] },
|
|
207
|
+
{ name: 'active', type: 'switch', label: 'Active' },
|
|
208
|
+
{ name: 'createdAt', type: 'date-picker', label: 'Created At', filter: 'date yyyy-MM-dd' },
|
|
209
|
+
];
|
|
210
|
+
const emptyData = {
|
|
211
|
+
username: '',
|
|
212
|
+
role: '',
|
|
213
|
+
active: false,
|
|
214
|
+
createdAt: '',
|
|
215
|
+
};
|
|
216
|
+
const borderStyleFields = [
|
|
217
|
+
{ name: 'name', type: 'input', label: 'Name' },
|
|
218
|
+
{ name: 'department', type: 'input', label: 'Department' },
|
|
219
|
+
{ name: 'position', type: 'input', label: 'Position' },
|
|
220
|
+
{ name: 'email', type: 'input', label: 'Email', inputType: 'email' },
|
|
221
|
+
{ name: 'phone', type: 'input', label: 'Phone', inputType: 'tel' },
|
|
222
|
+
{ name: 'location', type: 'input', label: 'Location' },
|
|
223
|
+
];
|
|
224
|
+
const borderStyleData = {
|
|
225
|
+
name: 'Jane Smith',
|
|
226
|
+
department: 'Engineering',
|
|
227
|
+
position: 'Senior Frontend Engineer',
|
|
228
|
+
email: 'jane@company.com',
|
|
229
|
+
phone: '+1 555-0123',
|
|
230
|
+
location: 'San Francisco, CA',
|
|
231
|
+
};
|
|
232
|
+
export const autoViewPage = {
|
|
233
|
+
key: 'autoview',
|
|
234
|
+
title: () => t('demo.autoView.title'),
|
|
235
|
+
description: () => t('demo.autoView.description'),
|
|
236
|
+
examples: [
|
|
237
|
+
{
|
|
238
|
+
title: () => t('demo.autoView.basic.title'),
|
|
239
|
+
description: () => t('demo.autoView.basic.description'),
|
|
240
|
+
code: '<aithe-autoview column="2" border></aithe-autoview>',
|
|
241
|
+
displayCode: formatDisplayCode(basicFields, basicData),
|
|
242
|
+
setup: setupAutoView(basicFields, basicData),
|
|
243
|
+
previewHeight: '240px',
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
title: () => t('demo.autoView.selection.title'),
|
|
247
|
+
description: () => t('demo.autoView.selection.description'),
|
|
248
|
+
code: '<aithe-autoview column="2" border></aithe-autoview>',
|
|
249
|
+
displayCode: formatDisplayCode(selectionFields, selectionData),
|
|
250
|
+
setup: setupAutoView(selectionFields, selectionData),
|
|
251
|
+
previewHeight: '280px',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
title: () => t('demo.autoView.advanced.title'),
|
|
255
|
+
description: () => t('demo.autoView.advanced.description'),
|
|
256
|
+
code: '<aithe-autoview column="2" border></aithe-autoview>',
|
|
257
|
+
displayCode: formatDisplayCode(advancedFields, advancedData),
|
|
258
|
+
setup: setupAutoView(advancedFields, advancedData),
|
|
259
|
+
previewHeight: '320px',
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
title: () => t('demo.autoView.dependency.title'),
|
|
263
|
+
description: () => t('demo.autoView.dependency.description'),
|
|
264
|
+
code: '<aithe-autoview column="2" border></aithe-autoview>',
|
|
265
|
+
displayCode: formatDisplayCode(dependencyFields, dependencyData),
|
|
266
|
+
setup: setupAutoView(dependencyFields, dependencyData),
|
|
267
|
+
previewHeight: '280px',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
title: () => t('demo.autoView.full.title'),
|
|
271
|
+
description: () => t('demo.autoView.full.description'),
|
|
272
|
+
code: '<aithe-autoview column="2" border title="Employee Profile"></aithe-autoview>',
|
|
273
|
+
displayCode: formatDisplayCode(fullFields, fullData),
|
|
274
|
+
setup: setupAutoView(fullFields, fullData),
|
|
275
|
+
previewHeight: '520px',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
title: () => t('demo.autoView.empty.title'),
|
|
279
|
+
description: () => t('demo.autoView.empty.description'),
|
|
280
|
+
code: '<aithe-autoview column="2" border></aithe-autoview>',
|
|
281
|
+
displayCode: formatDisplayCode(emptyFields, emptyData),
|
|
282
|
+
setup: setupAutoView(emptyFields, emptyData),
|
|
283
|
+
previewHeight: '200px',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
title: () => t('demo.autoView.borderNone.title'),
|
|
287
|
+
description: () => t('demo.autoView.borderNone.description'),
|
|
288
|
+
code: '<aithe-autoview column="2" border-style="none" label-background="none"></aithe-autoview>',
|
|
289
|
+
displayCode: formatDisplayCode(borderStyleFields, borderStyleData),
|
|
290
|
+
setup: setupAutoView(borderStyleFields, borderStyleData),
|
|
291
|
+
previewHeight: '240px',
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
title: () => t('demo.autoView.borderFull.title'),
|
|
295
|
+
description: () => t('demo.autoView.borderFull.description'),
|
|
296
|
+
code: '<aithe-autoview column="2" border-style="full" label-background="filled"></aithe-autoview>',
|
|
297
|
+
displayCode: formatDisplayCode(borderStyleFields, borderStyleData),
|
|
298
|
+
setup: setupAutoView(borderStyleFields, borderStyleData),
|
|
299
|
+
previewHeight: '240px',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
title: () => t('demo.autoView.borderRow.title'),
|
|
303
|
+
description: () => t('demo.autoView.borderRow.description'),
|
|
304
|
+
code: '<aithe-autoview column="2" border-style="row" label-background="none"></aithe-autoview>',
|
|
305
|
+
displayCode: formatDisplayCode(borderStyleFields, borderStyleData),
|
|
306
|
+
setup: setupAutoView(borderStyleFields, borderStyleData),
|
|
307
|
+
previewHeight: '240px',
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
};
|
|
@@ -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
|
+
};
|