@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,965 @@
|
|
|
1
|
+
const animatedSvg = encodeURIComponent(`
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 540">
|
|
3
|
+
<defs>
|
|
4
|
+
<linearGradient id="g" x1="0" x2="1" y1="0" y2="1">
|
|
5
|
+
<stop stop-color="#1d4ed8"/>
|
|
6
|
+
<stop offset="1" stop-color="#0f172a"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<rect width="960" height="540" fill="url(#g)"/>
|
|
10
|
+
<circle cx="180" cy="160" r="110" fill="rgba(255,255,255,0.1)"/>
|
|
11
|
+
<circle cx="760" cy="360" r="150" fill="rgba(96,165,250,0.18)"/>
|
|
12
|
+
<text x="80" y="300" fill="#eff6ff" font-family="Arial" font-size="72" font-weight="700">Aithe UI</text>
|
|
13
|
+
<text x="82" y="360" fill="#cbd5e1" font-family="Arial" font-size="28">Enterprise Design System</text>
|
|
14
|
+
</svg>
|
|
15
|
+
`);
|
|
16
|
+
const demoMap = {
|
|
17
|
+
'basic-button': {
|
|
18
|
+
demoCode: `<aithe-space size="16" direction="horizontal" wrap>
|
|
19
|
+
<aithe-button variant="primary" title="Submit form">Primary Action</aithe-button>
|
|
20
|
+
<aithe-button title="Default action">Default</aithe-button>
|
|
21
|
+
<aithe-button type="dashed">Dashed</aithe-button>
|
|
22
|
+
<aithe-button type="text">Text</aithe-button>
|
|
23
|
+
<aithe-button type="link">Link</aithe-button>
|
|
24
|
+
<aithe-button variant="primary" loading>Generating</aithe-button>
|
|
25
|
+
<aithe-button variant="danger">Delete</aithe-button>
|
|
26
|
+
</aithe-space>`,
|
|
27
|
+
},
|
|
28
|
+
'basic-button-group': {
|
|
29
|
+
demoCode: `<aithe-button-group gap="12">
|
|
30
|
+
<aithe-button type="default">Cancel</aithe-button>
|
|
31
|
+
<aithe-button variant="primary">Save Workspace</aithe-button>
|
|
32
|
+
</aithe-button-group>`,
|
|
33
|
+
},
|
|
34
|
+
'basic-icon': {
|
|
35
|
+
demoCode: `<style>
|
|
36
|
+
.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;}
|
|
37
|
+
.icon-cell{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border:1px solid var(--aithe-color-border);border-radius:8px;background:var(--aithe-color-surface);cursor:default;transition:background .15s;}
|
|
38
|
+
.icon-cell:hover{background:var(--aithe-color-bg-subtle);}
|
|
39
|
+
.icon-name{font-size:11px;color:var(--aithe-color-text-muted);font-family:var(--aithe-font-family-mono);word-break:break-all;text-align:center;line-height:1.3;}
|
|
40
|
+
</style>
|
|
41
|
+
<div class="icon-grid">
|
|
42
|
+
<div class="icon-cell"><aithe-icon name="sparkles" size="20"></aithe-icon><span class="icon-name">sparkles</span></div>
|
|
43
|
+
<div class="icon-cell"><aithe-icon name="close" size="20"></aithe-icon><span class="icon-name">close</span></div>
|
|
44
|
+
<div class="icon-cell"><aithe-icon name="check" size="20"></aithe-icon><span class="icon-name">check</span></div>
|
|
45
|
+
<div class="icon-cell"><aithe-icon name="info" size="20"></aithe-icon><span class="icon-name">info</span></div>
|
|
46
|
+
<div class="icon-cell"><aithe-icon name="warning" size="20"></aithe-icon><span class="icon-name">warning</span></div>
|
|
47
|
+
<div class="icon-cell"><aithe-icon name="image" size="20"></aithe-icon><span class="icon-name">image</span></div>
|
|
48
|
+
<div class="icon-cell"><aithe-icon name="search" size="20"></aithe-icon><span class="icon-name">search</span></div>
|
|
49
|
+
<div class="icon-cell"><aithe-icon name="plus" size="20"></aithe-icon><span class="icon-name">plus</span></div>
|
|
50
|
+
<div class="icon-cell"><aithe-icon name="minus" size="20"></aithe-icon><span class="icon-name">minus</span></div>
|
|
51
|
+
<div class="icon-cell"><aithe-icon name="menu" size="20"></aithe-icon><span class="icon-name">menu</span></div>
|
|
52
|
+
<div class="icon-cell"><aithe-icon name="more" size="20"></aithe-icon><span class="icon-name">more</span></div>
|
|
53
|
+
<div class="icon-cell"><aithe-icon name="settings" size="20"></aithe-icon><span class="icon-name">settings</span></div>
|
|
54
|
+
<div class="icon-cell"><aithe-icon name="home" size="20"></aithe-icon><span class="icon-name">home</span></div>
|
|
55
|
+
<div class="icon-cell"><aithe-icon name="star" size="20"></aithe-icon><span class="icon-name">star</span></div>
|
|
56
|
+
<div class="icon-cell"><aithe-icon name="heart" size="20"></aithe-icon><span class="icon-name">heart</span></div>
|
|
57
|
+
<div class="icon-cell"><aithe-icon name="copy" size="20"></aithe-icon><span class="icon-name">copy</span></div>
|
|
58
|
+
<div class="icon-cell"><aithe-icon name="download" size="20"></aithe-icon><span class="icon-name">download</span></div>
|
|
59
|
+
<div class="icon-cell"><aithe-icon name="upload" size="20"></aithe-icon><span class="icon-name">upload</span></div>
|
|
60
|
+
<div class="icon-cell"><aithe-icon name="share" size="20"></aithe-icon><span class="icon-name">share</span></div>
|
|
61
|
+
<div class="icon-cell"><aithe-icon name="link" size="20"></aithe-icon><span class="icon-name">link</span></div>
|
|
62
|
+
<div class="icon-cell"><aithe-icon name="external" size="20"></aithe-icon><span class="icon-name">external</span></div>
|
|
63
|
+
<div class="icon-cell"><aithe-icon name="refresh" size="20"></aithe-icon><span class="icon-name">refresh</span></div>
|
|
64
|
+
<div class="icon-cell"><aithe-icon name="edit" size="20"></aithe-icon><span class="icon-name">edit</span></div>
|
|
65
|
+
<div class="icon-cell"><aithe-icon name="trash" size="20"></aithe-icon><span class="icon-name">trash</span></div>
|
|
66
|
+
<div class="icon-cell"><aithe-icon name="filter" size="20"></aithe-icon><span class="icon-name">filter</span></div>
|
|
67
|
+
<div class="icon-cell"><aithe-icon name="sort" size="20"></aithe-icon><span class="icon-name">sort</span></div>
|
|
68
|
+
<div class="icon-cell"><aithe-icon name="lock" size="20"></aithe-icon><span class="icon-name">lock</span></div>
|
|
69
|
+
<div class="icon-cell"><aithe-icon name="unlock" size="20"></aithe-icon><span class="icon-name">unlock</span></div>
|
|
70
|
+
<div class="icon-cell"><aithe-icon name="eye" size="20"></aithe-icon><span class="icon-name">eye</span></div>
|
|
71
|
+
<div class="icon-cell"><aithe-icon name="eyeOff" size="20"></aithe-icon><span class="icon-name">eyeOff</span></div>
|
|
72
|
+
<div class="icon-cell"><aithe-icon name="clock" size="20"></aithe-icon><span class="icon-name">clock</span></div>
|
|
73
|
+
<div class="icon-cell"><aithe-icon name="calendar" size="20"></aithe-icon><span class="icon-name">calendar</span></div>
|
|
74
|
+
<div class="icon-cell"><aithe-icon name="pin" size="20"></aithe-icon><span class="icon-name">pin</span></div>
|
|
75
|
+
<div class="icon-cell"><aithe-icon name="flag" size="20"></aithe-icon><span class="icon-name">flag</span></div>
|
|
76
|
+
<div class="icon-cell"><aithe-icon name="bookmark" size="20"></aithe-icon><span class="icon-name">bookmark</span></div>
|
|
77
|
+
<div class="icon-cell"><aithe-icon name="paperclip" size="20"></aithe-icon><span class="icon-name">paperclip</span></div>
|
|
78
|
+
<div class="icon-cell"><aithe-icon name="tag" size="20"></aithe-icon><span class="icon-name">tag</span></div>
|
|
79
|
+
<div class="icon-cell"><aithe-icon name="thumbUp" size="20"></aithe-icon><span class="icon-name">thumbUp</span></div>
|
|
80
|
+
<div class="icon-cell"><aithe-icon name="thumbDown" size="20"></aithe-icon><span class="icon-name">thumbDown</span></div>
|
|
81
|
+
<div class="icon-cell"><aithe-icon name="arrowUp" size="20"></aithe-icon><span class="icon-name">arrowUp</span></div>
|
|
82
|
+
<div class="icon-cell"><aithe-icon name="arrowDown" size="20"></aithe-icon><span class="icon-name">arrowDown</span></div>
|
|
83
|
+
<div class="icon-cell"><aithe-icon name="arrowLeft" size="20"></aithe-icon><span class="icon-name">arrowLeft</span></div>
|
|
84
|
+
<div class="icon-cell"><aithe-icon name="arrowRight" size="20"></aithe-icon><span class="icon-name">arrowRight</span></div>
|
|
85
|
+
<div class="icon-cell"><aithe-icon name="chevronUp" size="20"></aithe-icon><span class="icon-name">chevronUp</span></div>
|
|
86
|
+
<div class="icon-cell"><aithe-icon name="chevronDown" size="20"></aithe-icon><span class="icon-name">chevronDown</span></div>
|
|
87
|
+
<div class="icon-cell"><aithe-icon name="chevronLeft" size="20"></aithe-icon><span class="icon-name">chevronLeft</span></div>
|
|
88
|
+
<div class="icon-cell"><aithe-icon name="chevronRight" size="20"></aithe-icon><span class="icon-name">chevronRight</span></div>
|
|
89
|
+
<div class="icon-cell"><aithe-icon name="expand" size="20"></aithe-icon><span class="icon-name">expand</span></div>
|
|
90
|
+
<div class="icon-cell"><aithe-icon name="collapse" size="20"></aithe-icon><span class="icon-name">collapse</span></div>
|
|
91
|
+
<div class="icon-cell"><aithe-icon name="success" size="20" color="var(--aithe-success-6)"></aithe-icon><span class="icon-name">success</span></div>
|
|
92
|
+
<div class="icon-cell"><aithe-icon name="error" size="20" color="var(--aithe-danger-6)"></aithe-icon><span class="icon-name">error</span></div>
|
|
93
|
+
<div class="icon-cell"><aithe-icon name="question" size="20" color="var(--aithe-primary-6)"></aithe-icon><span class="icon-name">question</span></div>
|
|
94
|
+
<div class="icon-cell"><aithe-icon name="play" size="20"></aithe-icon><span class="icon-name">play</span></div>
|
|
95
|
+
<div class="icon-cell"><aithe-icon name="pause" size="20"></aithe-icon><span class="icon-name">pause</span></div>
|
|
96
|
+
<div class="icon-cell"><aithe-icon name="volume" size="20"></aithe-icon><span class="icon-name">volume</span></div>
|
|
97
|
+
<div class="icon-cell"><aithe-icon name="mute" size="20"></aithe-icon><span class="icon-name">mute</span></div>
|
|
98
|
+
<div class="icon-cell"><aithe-icon name="camera" size="20"></aithe-icon><span class="icon-name">camera</span></div>
|
|
99
|
+
<div class="icon-cell"><aithe-icon name="video" size="20"></aithe-icon><span class="icon-name">video</span></div>
|
|
100
|
+
<div class="icon-cell"><aithe-icon name="music" size="20"></aithe-icon><span class="icon-name">music</span></div>
|
|
101
|
+
<div class="icon-cell"><aithe-icon name="mail" size="20"></aithe-icon><span class="icon-name">mail</span></div>
|
|
102
|
+
<div class="icon-cell"><aithe-icon name="bell" size="20"></aithe-icon><span class="icon-name">bell</span></div>
|
|
103
|
+
<div class="icon-cell"><aithe-icon name="chat" size="20"></aithe-icon><span class="icon-name">chat</span></div>
|
|
104
|
+
<div class="icon-cell"><aithe-icon name="phone" size="20"></aithe-icon><span class="icon-name">phone</span></div>
|
|
105
|
+
<div class="icon-cell"><aithe-icon name="barChart" size="20"></aithe-icon><span class="icon-name">barChart</span></div>
|
|
106
|
+
<div class="icon-cell"><aithe-icon name="pieChart" size="20"></aithe-icon><span class="icon-name">pieChart</span></div>
|
|
107
|
+
<div class="icon-cell"><aithe-icon name="database" size="20"></aithe-icon><span class="icon-name">database</span></div>
|
|
108
|
+
<div class="icon-cell"><aithe-icon name="code" size="20"></aithe-icon><span class="icon-name">code</span></div>
|
|
109
|
+
<div class="icon-cell"><aithe-icon name="terminal" size="20"></aithe-icon><span class="icon-name">terminal</span></div>
|
|
110
|
+
<div class="icon-cell"><aithe-icon name="file" size="20"></aithe-icon><span class="icon-name">file</span></div>
|
|
111
|
+
<div class="icon-cell"><aithe-icon name="folder" size="20"></aithe-icon><span class="icon-name">folder</span></div>
|
|
112
|
+
<div class="icon-cell"><aithe-icon name="grid" size="20"></aithe-icon><span class="icon-name">grid</span></div>
|
|
113
|
+
<div class="icon-cell"><aithe-icon name="list" size="20"></aithe-icon><span class="icon-name">list</span></div>
|
|
114
|
+
<div class="icon-cell"><aithe-icon name="sidebar" size="20"></aithe-icon><span class="icon-name">sidebar</span></div>
|
|
115
|
+
<div class="icon-cell"><aithe-icon name="maximize" size="20"></aithe-icon><span class="icon-name">maximize</span></div>
|
|
116
|
+
<div class="icon-cell"><aithe-icon name="minimize" size="20"></aithe-icon><span class="icon-name">minimize</span></div>
|
|
117
|
+
<div class="icon-cell"><aithe-icon name="user" size="20"></aithe-icon><span class="icon-name">user</span></div>
|
|
118
|
+
<div class="icon-cell"><aithe-icon name="users" size="20"></aithe-icon><span class="icon-name">users</span></div>
|
|
119
|
+
<div class="icon-cell"><aithe-icon name="sun" size="20"></aithe-icon><span class="icon-name">sun</span></div>
|
|
120
|
+
<div class="icon-cell"><aithe-icon name="moon" size="20"></aithe-icon><span class="icon-name">moon</span></div>
|
|
121
|
+
<div class="icon-cell"><aithe-icon name="cloud" size="20"></aithe-icon><span class="icon-name">cloud</span></div>
|
|
122
|
+
</div>
|
|
123
|
+
<div style="display:flex;gap:16px;align-items:center;margin-top:16px;">
|
|
124
|
+
<aithe-icon name="sparkles" size="sm"></aithe-icon><span style="font-size:12px;color:var(--aithe-color-text-muted);">sm</span>
|
|
125
|
+
<aithe-icon name="sparkles" size="md"></aithe-icon><span style="font-size:12px;color:var(--aithe-color-text-muted);">md</span>
|
|
126
|
+
<aithe-icon name="sparkles" size="lg"></aithe-icon><span style="font-size:12px;color:var(--aithe-color-text-muted);">lg</span>
|
|
127
|
+
<aithe-icon name="sparkles" size="32px" color="var(--aithe-primary-6)"></aithe-icon><span style="font-size:12px;color:var(--aithe-color-text-muted);">32px</span>
|
|
128
|
+
</div>`,
|
|
129
|
+
previewHeight: '520px',
|
|
130
|
+
},
|
|
131
|
+
'basic-input': {
|
|
132
|
+
demoCode: `<div style="display:grid;gap:16px;max-width:720px;">
|
|
133
|
+
<aithe-input placeholder="Search agents, prompts or datasets" clearable value="Aithe UI">
|
|
134
|
+
<span slot="prefix">⌕</span>
|
|
135
|
+
<span slot="suffix">⌘K</span>
|
|
136
|
+
</aithe-input>
|
|
137
|
+
<aithe-input type="email" placeholder="owner@company.com" status="success"></aithe-input>
|
|
138
|
+
</div>`,
|
|
139
|
+
},
|
|
140
|
+
'basic-textarea': {
|
|
141
|
+
demoCode: `<aithe-textarea rows="4" placeholder="Describe the system message..."></aithe-textarea>`,
|
|
142
|
+
},
|
|
143
|
+
'basic-card': {
|
|
144
|
+
demoCode: `<aithe-space direction="vertical" size="16">
|
|
145
|
+
<aithe-card style="display:block;max-width:720px;" shadow="3" title="Model Output Summary" icon="sparkles">
|
|
146
|
+
<div style="display:grid;gap:12px;">
|
|
147
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">
|
|
148
|
+
This card uses the design token system and supports fluid content width.
|
|
149
|
+
</p>
|
|
150
|
+
</div>
|
|
151
|
+
<span slot="footer">Updated just now</span>
|
|
152
|
+
</aithe-card>
|
|
153
|
+
<aithe-card style="display:block;max-width:720px;" shadow="2" title="No Dividers" icon="file-text" divider="none">
|
|
154
|
+
<p style="margin:0;">divider="none" — no lines between sections.</p>
|
|
155
|
+
<span slot="footer">Footer without divider</span>
|
|
156
|
+
</aithe-card>
|
|
157
|
+
</aithe-space>`,
|
|
158
|
+
},
|
|
159
|
+
'basic-badge': {
|
|
160
|
+
demoCode: `<aithe-badge value="128">
|
|
161
|
+
<aithe-button type="default">Queued Jobs</aithe-button>
|
|
162
|
+
</aithe-badge>`,
|
|
163
|
+
},
|
|
164
|
+
'basic-tag': {
|
|
165
|
+
demoCode: `<aithe-space size="12" direction="horizontal" wrap>
|
|
166
|
+
<aithe-tag variant="primary">Inference</aithe-tag>
|
|
167
|
+
<aithe-tag variant="success">Stable</aithe-tag>
|
|
168
|
+
<aithe-tag variant="warning" closable>Reviewing</aithe-tag>
|
|
169
|
+
<aithe-tag variant="danger">Critical</aithe-tag>
|
|
170
|
+
</aithe-space>`,
|
|
171
|
+
},
|
|
172
|
+
'basic-avatar': {
|
|
173
|
+
demoCode: `<aithe-space size="12" direction="horizontal">
|
|
174
|
+
<aithe-avatar text="AI"></aithe-avatar>
|
|
175
|
+
<aithe-avatar shape="square" text="ML"></aithe-avatar>
|
|
176
|
+
<aithe-avatar size="lg" text="SYS"></aithe-avatar>
|
|
177
|
+
</aithe-space>`,
|
|
178
|
+
},
|
|
179
|
+
'basic-divider': {
|
|
180
|
+
demoCode: `<div style="display:grid;gap:20px;max-width:720px;">
|
|
181
|
+
<aithe-divider>System Modules</aithe-divider>
|
|
182
|
+
<div style="display:flex;gap:16px;align-items:center;">
|
|
183
|
+
<span>Retrieval</span>
|
|
184
|
+
<aithe-divider direction="vertical"></aithe-divider>
|
|
185
|
+
<span>Reasoning</span>
|
|
186
|
+
<aithe-divider direction="vertical"></aithe-divider>
|
|
187
|
+
<span>Delivery</span>
|
|
188
|
+
</div>
|
|
189
|
+
</div>`,
|
|
190
|
+
},
|
|
191
|
+
'basic-empty': {
|
|
192
|
+
demoCode: `<aithe-empty text="No generated artifacts yet. Start by creating a workflow."></aithe-empty>`,
|
|
193
|
+
previewHeight: '220px',
|
|
194
|
+
},
|
|
195
|
+
'basic-chip': {
|
|
196
|
+
demoCode: `<aithe-space size="12" direction="horizontal" wrap>
|
|
197
|
+
<aithe-chip selected>Realtime</aithe-chip>
|
|
198
|
+
<aithe-chip closable>Vision</aithe-chip>
|
|
199
|
+
</aithe-space>`,
|
|
200
|
+
},
|
|
201
|
+
'layout-container': {
|
|
202
|
+
demoCode: `<aithe-container direction="column" gap="16">
|
|
203
|
+
<aithe-flex justify="space-between" align="center" gap="16">
|
|
204
|
+
<div style="font-weight:600;">Aithe Workspace</div>
|
|
205
|
+
<aithe-space size="8" direction="horizontal">
|
|
206
|
+
<aithe-tag>US-East</aithe-tag>
|
|
207
|
+
<aithe-tag variant="success">Healthy</aithe-tag>
|
|
208
|
+
</aithe-space>
|
|
209
|
+
</aithe-flex>
|
|
210
|
+
<aithe-space size="12" direction="vertical">
|
|
211
|
+
<aithe-card>Prompt Registry</aithe-card>
|
|
212
|
+
<aithe-card>Model Routing</aithe-card>
|
|
213
|
+
<aithe-card>Guardrails</aithe-card>
|
|
214
|
+
</aithe-space>
|
|
215
|
+
</aithe-container>`,
|
|
216
|
+
},
|
|
217
|
+
'layout-row': {
|
|
218
|
+
demoCode: `<aithe-row gutter="16">
|
|
219
|
+
<aithe-col span="12"><aithe-card>Span 12</aithe-card></aithe-col>
|
|
220
|
+
<aithe-col span="12"><aithe-card>Span 12</aithe-card></aithe-col>
|
|
221
|
+
<aithe-col span="8"><aithe-card>Span 8</aithe-card></aithe-col>
|
|
222
|
+
<aithe-col span="8"><aithe-card>Span 8</aithe-card></aithe-col>
|
|
223
|
+
<aithe-col span="8"><aithe-card>Span 8</aithe-card></aithe-col>
|
|
224
|
+
</aithe-row>`,
|
|
225
|
+
},
|
|
226
|
+
'layout-col': {
|
|
227
|
+
demoCode: `<aithe-row gutter="16">
|
|
228
|
+
<aithe-col span="12"><aithe-card>Span 12</aithe-card></aithe-col>
|
|
229
|
+
<aithe-col span="12"><aithe-card>Span 12</aithe-card></aithe-col>
|
|
230
|
+
</aithe-row>`,
|
|
231
|
+
},
|
|
232
|
+
'layout-flex': {
|
|
233
|
+
demoCode: `<aithe-flex justify="space-between" align="center" gap="16">
|
|
234
|
+
<div style="font-weight:600;">Aithe Workspace</div>
|
|
235
|
+
<aithe-space size="8" direction="horizontal">
|
|
236
|
+
<aithe-tag>US-East</aithe-tag>
|
|
237
|
+
<aithe-tag variant="success">Healthy</aithe-tag>
|
|
238
|
+
</aithe-space>
|
|
239
|
+
</aithe-flex>`,
|
|
240
|
+
},
|
|
241
|
+
'layout-space': {
|
|
242
|
+
demoCode: `<aithe-space size="12" direction="vertical">
|
|
243
|
+
<aithe-card>Prompt Registry</aithe-card>
|
|
244
|
+
<aithe-card>Model Routing</aithe-card>
|
|
245
|
+
<aithe-card>Guardrails</aithe-card>
|
|
246
|
+
</aithe-space>`,
|
|
247
|
+
},
|
|
248
|
+
'layout-collapse': {
|
|
249
|
+
demoCode: `<aithe-collapse active-key="api">
|
|
250
|
+
<aithe-collapse-item name="api" title="API Design" icon="settings">Stable, event-based and theme-driven.</aithe-collapse-item>
|
|
251
|
+
<aithe-collapse-item name="theme" title="Theme System" icon="star">4 official themes and unlimited extensions.</aithe-collapse-item>
|
|
252
|
+
</aithe-collapse>`,
|
|
253
|
+
previewHeight: '320px',
|
|
254
|
+
},
|
|
255
|
+
'layout-collapse-item': {
|
|
256
|
+
demoCode: `<aithe-collapse active-key="api">
|
|
257
|
+
<aithe-collapse-item name="api" title="API Design" icon="settings">Stable, event-based and theme-driven.</aithe-collapse-item>
|
|
258
|
+
<aithe-collapse-item name="theme" title="Theme System" icon="star">4 official themes and unlimited extensions.</aithe-collapse-item>
|
|
259
|
+
</aithe-collapse>`,
|
|
260
|
+
previewHeight: '320px',
|
|
261
|
+
},
|
|
262
|
+
'data-timeline': {
|
|
263
|
+
demoCode: `<aithe-timeline
|
|
264
|
+
items='[{"content":"Design tokens published","timestamp":"09:00","variant":"primary"},{"content":"Demo routing completed","timestamp":"11:30","variant":"success"},{"content":"Accessibility audit pending","timestamp":"15:20","variant":"warning"}]'
|
|
265
|
+
></aithe-timeline>`,
|
|
266
|
+
previewHeight: '260px',
|
|
267
|
+
},
|
|
268
|
+
'data-timeline-item': {
|
|
269
|
+
demoCode: `<aithe-timeline>
|
|
270
|
+
<aithe-timeline-item type="primary" timestamp="09:00">Design tokens published</aithe-timeline-item>
|
|
271
|
+
<aithe-timeline-item type="success" timestamp="11:30">Demo routing completed</aithe-timeline-item>
|
|
272
|
+
</aithe-timeline>`,
|
|
273
|
+
previewHeight: '260px',
|
|
274
|
+
},
|
|
275
|
+
'layout-affix': {
|
|
276
|
+
demoCode: `<div class="affix-scroll" style="height:280px;overflow:auto;border:1px solid var(--aithe-color-border);border-radius:20px;padding:16px;background:var(--aithe-color-surface-elevated);">
|
|
277
|
+
<aithe-affix offset-top="16" target=".affix-scroll">
|
|
278
|
+
<aithe-tag variant="primary">Pinned Summary</aithe-tag>
|
|
279
|
+
</aithe-affix>
|
|
280
|
+
<div style="height:560px;padding-top:48px;color:var(--aithe-color-text-muted);">
|
|
281
|
+
Scroll this panel to see the summary remain attached near the top edge.
|
|
282
|
+
</div>
|
|
283
|
+
</div>`,
|
|
284
|
+
previewHeight: '320px',
|
|
285
|
+
},
|
|
286
|
+
'nav-menu': {
|
|
287
|
+
demoCode: `<aithe-menu active="overview" style="max-width:280px;">
|
|
288
|
+
<aithe-menu-item name="overview">Overview</aithe-menu-item>
|
|
289
|
+
<aithe-sub-menu name="assets" title="Assets" icon="star" open>
|
|
290
|
+
<aithe-menu-item name="library">Component Library</aithe-menu-item>
|
|
291
|
+
<aithe-menu-item name="tokens">Design Tokens</aithe-menu-item>
|
|
292
|
+
</aithe-sub-menu>
|
|
293
|
+
<aithe-menu-item name="governance">Governance</aithe-menu-item>
|
|
294
|
+
</aithe-menu>`,
|
|
295
|
+
previewHeight: '260px',
|
|
296
|
+
},
|
|
297
|
+
'nav-menu-item': {
|
|
298
|
+
demoCode: `<aithe-menu active="overview" style="max-width:280px;">
|
|
299
|
+
<aithe-menu-item name="overview">Overview</aithe-menu-item>
|
|
300
|
+
<aithe-menu-item name="governance">Governance</aithe-menu-item>
|
|
301
|
+
</aithe-menu>`,
|
|
302
|
+
previewHeight: '260px',
|
|
303
|
+
},
|
|
304
|
+
'nav-sub-menu': {
|
|
305
|
+
demoCode: `<aithe-menu active="library" style="max-width:280px;">
|
|
306
|
+
<aithe-sub-menu name="assets" title="Assets" icon="star" open>
|
|
307
|
+
<aithe-menu-item name="library">Component Library</aithe-menu-item>
|
|
308
|
+
<aithe-menu-item name="tokens">Design Tokens</aithe-menu-item>
|
|
309
|
+
</aithe-sub-menu>
|
|
310
|
+
</aithe-menu>`,
|
|
311
|
+
previewHeight: '260px',
|
|
312
|
+
},
|
|
313
|
+
'nav-breadcrumb': {
|
|
314
|
+
demoCode: `<aithe-breadcrumb separator="/">
|
|
315
|
+
<aithe-breadcrumb-item href="#">Workspace</aithe-breadcrumb-item>
|
|
316
|
+
<aithe-breadcrumb-item href="#">Aithe UI</aithe-breadcrumb-item>
|
|
317
|
+
<aithe-breadcrumb-item>Release Candidate</aithe-breadcrumb-item>
|
|
318
|
+
</aithe-breadcrumb>`,
|
|
319
|
+
},
|
|
320
|
+
'nav-breadcrumb-item': {
|
|
321
|
+
demoCode: `<aithe-breadcrumb separator="/">
|
|
322
|
+
<aithe-breadcrumb-item href="#">Workspace</aithe-breadcrumb-item>
|
|
323
|
+
<aithe-breadcrumb-item>Current Page</aithe-breadcrumb-item>
|
|
324
|
+
</aithe-breadcrumb>`,
|
|
325
|
+
},
|
|
326
|
+
'nav-steps': {
|
|
327
|
+
demoCode: `<aithe-steps
|
|
328
|
+
current="1"
|
|
329
|
+
items='[
|
|
330
|
+
{"title":"Define","description":"Prompt and token system"},
|
|
331
|
+
{"title":"Implement","description":"Components and demo"},
|
|
332
|
+
{"title":"Release","description":"QA and package publish"}
|
|
333
|
+
]'
|
|
334
|
+
></aithe-steps>`,
|
|
335
|
+
previewHeight: '220px',
|
|
336
|
+
},
|
|
337
|
+
'nav-back-top': {
|
|
338
|
+
demoCode: `<div class="backtop-scroll" style="position:relative;height:280px;overflow:auto;border:1px solid var(--aithe-color-border);border-radius:20px;padding:16px;background:var(--aithe-color-surface-elevated);">
|
|
339
|
+
<aithe-back-top target=".backtop-scroll" visibility-height="80"></aithe-back-top>
|
|
340
|
+
<div style="height:720px;color:var(--aithe-color-text-muted);">
|
|
341
|
+
This block intentionally creates vertical overflow inside the preview region.
|
|
342
|
+
</div>
|
|
343
|
+
</div>`,
|
|
344
|
+
previewHeight: '320px',
|
|
345
|
+
},
|
|
346
|
+
'form-checkbox': {
|
|
347
|
+
demoCode: `<aithe-checkbox-group value='["components"]'>
|
|
348
|
+
<aithe-checkbox value="design">Design Tokens</aithe-checkbox>
|
|
349
|
+
<aithe-checkbox value="components">Components</aithe-checkbox>
|
|
350
|
+
<aithe-checkbox value="docs">Docs</aithe-checkbox>
|
|
351
|
+
</aithe-checkbox-group>`,
|
|
352
|
+
},
|
|
353
|
+
'form-checkbox-group': {
|
|
354
|
+
demoCode: `<aithe-checkbox-group value='["components"]'>
|
|
355
|
+
<aithe-checkbox value="design">Design Tokens</aithe-checkbox>
|
|
356
|
+
<aithe-checkbox value="components">Components</aithe-checkbox>
|
|
357
|
+
<aithe-checkbox value="docs">Docs</aithe-checkbox>
|
|
358
|
+
</aithe-checkbox-group>`,
|
|
359
|
+
},
|
|
360
|
+
'form-radio': {
|
|
361
|
+
demoCode: `<aithe-radio-group value="beta">
|
|
362
|
+
<aithe-radio value="alpha">Alpha</aithe-radio>
|
|
363
|
+
<aithe-radio value="beta">Beta</aithe-radio>
|
|
364
|
+
<aithe-radio value="ga">GA</aithe-radio>
|
|
365
|
+
</aithe-radio-group>`,
|
|
366
|
+
},
|
|
367
|
+
'form-radio-group': {
|
|
368
|
+
demoCode: `<aithe-radio-group value="beta">
|
|
369
|
+
<aithe-radio value="alpha">Alpha</aithe-radio>
|
|
370
|
+
<aithe-radio value="beta">Beta</aithe-radio>
|
|
371
|
+
<aithe-radio value="ga">GA</aithe-radio>
|
|
372
|
+
</aithe-radio-group>`,
|
|
373
|
+
},
|
|
374
|
+
'form-select': {
|
|
375
|
+
demoCode: `<aithe-select
|
|
376
|
+
placeholder="Choose a model"
|
|
377
|
+
clearable
|
|
378
|
+
searchable
|
|
379
|
+
options='[{"label":"GPT-5.4","id":"gpt-5.4","icon":"sparkles","description":"Frontier reasoning model"},{"label":"GPT-5.3 Codex","id":"gpt-5.3-codex","icon":"code","description":"Agentic coding model"},{"label":"Vision Worker","id":"vision-worker","icon":"eye","description":"Image parsing runtime","variant":"warning"}]'
|
|
380
|
+
></aithe-select>`,
|
|
381
|
+
},
|
|
382
|
+
'form-switch': {
|
|
383
|
+
demoCode: `<aithe-switch checked></aithe-switch>`,
|
|
384
|
+
},
|
|
385
|
+
'form-color-picker': {
|
|
386
|
+
demoCode: `<aithe-color-picker alpha></aithe-color-picker>`,
|
|
387
|
+
},
|
|
388
|
+
'form-combobox': {
|
|
389
|
+
demoCode: `<aithe-combobox
|
|
390
|
+
placeholder="Search presets"
|
|
391
|
+
options='[{"label":"A/B Test","id":"ab-test","icon":"barChart"},{"label":"Assistant Shell","id":"assistant-shell","icon":"terminal"},{"label":"Retrieval QA","id":"retrieval-qa","icon":"search","variant":"primary"},{"label":"Workflow Editor","id":"workflow-editor","icon":"edit","variant":"warning"}]'
|
|
392
|
+
></aithe-combobox>`,
|
|
393
|
+
},
|
|
394
|
+
'form-date-picker': {
|
|
395
|
+
demoCode: `<aithe-date-picker value="2026-05-08"></aithe-date-picker>`,
|
|
396
|
+
},
|
|
397
|
+
'form-time-picker': {
|
|
398
|
+
demoCode: `<aithe-time-picker value="10:30"></aithe-time-picker>`,
|
|
399
|
+
},
|
|
400
|
+
'form-slider': {
|
|
401
|
+
demoCode: `<div style="display:grid;gap:16px;max-width:360px;">
|
|
402
|
+
<aithe-slider value="64"></aithe-slider>
|
|
403
|
+
<aithe-slider range value="24,76"></aithe-slider>
|
|
404
|
+
</div>`,
|
|
405
|
+
},
|
|
406
|
+
'form-rate': {
|
|
407
|
+
demoCode: `<aithe-rate allow-half value="3.5"></aithe-rate>`,
|
|
408
|
+
},
|
|
409
|
+
'form-form': {
|
|
410
|
+
demoCode: `<aithe-form id="demo-form">
|
|
411
|
+
<aithe-form-item label="Project Name" required>
|
|
412
|
+
<aithe-input name="projectName" placeholder="Aithe UI"></aithe-input>
|
|
413
|
+
</aithe-form-item>
|
|
414
|
+
<aithe-form-item label="Owner Email" required>
|
|
415
|
+
<aithe-input name="ownerEmail" type="email" placeholder="owner@company.com"></aithe-input>
|
|
416
|
+
</aithe-form-item>
|
|
417
|
+
<aithe-button id="demo-submit" type="primary">Submit Form</aithe-button>
|
|
418
|
+
</aithe-form>`,
|
|
419
|
+
demoSetup: (root) => {
|
|
420
|
+
const button = root.querySelector('aithe-button');
|
|
421
|
+
const form = root.querySelector('aithe-form');
|
|
422
|
+
button?.addEventListener('click', () => {
|
|
423
|
+
form.validate?.();
|
|
424
|
+
form?.dispatchEvent(new Event('submit', { bubbles: true, cancelable: true }));
|
|
425
|
+
});
|
|
426
|
+
},
|
|
427
|
+
previewHeight: '260px',
|
|
428
|
+
},
|
|
429
|
+
'form-form-item': {
|
|
430
|
+
demoCode: `<aithe-form>
|
|
431
|
+
<aithe-form-item label="Project Name" required>
|
|
432
|
+
<aithe-input name="projectName" placeholder="Aithe UI"></aithe-input>
|
|
433
|
+
</aithe-form-item>
|
|
434
|
+
</aithe-form>`,
|
|
435
|
+
},
|
|
436
|
+
'form-upload': {
|
|
437
|
+
demoCode: `<aithe-upload accept=".png,.jpg,.svg">Upload Assets</aithe-upload>`,
|
|
438
|
+
},
|
|
439
|
+
'form-transfer': {
|
|
440
|
+
demoCode: `<aithe-transfer
|
|
441
|
+
searchable
|
|
442
|
+
titles='["Available Blocks","Enabled Blocks"]'
|
|
443
|
+
data='[{"label":"Button","id":"button"},{"label":"Input","id":"input"},{"label":"Modal","id":"modal"},{"label":"Table","id":"table"}]'
|
|
444
|
+
value='["button","modal"]'
|
|
445
|
+
></aithe-transfer>`,
|
|
446
|
+
previewHeight: '420px',
|
|
447
|
+
},
|
|
448
|
+
'form-autoform': {
|
|
449
|
+
demoCode: `<aithe-autoform
|
|
450
|
+
fields='[
|
|
451
|
+
{"name":"username","type":"input","label":"Username","icon":"user","required":true,"message":"Username is required","placeholder":"Enter username"},
|
|
452
|
+
{"name":"email","type":"input","label":"Email","tooltip":"Your work email","required":true,"inputType":"email","pattern":"^[^\\\\s@]+@[^\\\\s@]+\\\\.[^\\\\s@]+$","message":"Invalid email format","placeholder":"you@company.com"},
|
|
453
|
+
{"name":"role","type":"select","label":"Role","options":"[{\\"label\\":\\"Admin\\",\\"id\\":\\"admin\\"},{\\"label\\":\\"Editor\\",\\"id\\":\\"editor\\"},{\\"label\\":\\"Viewer\\",\\"id\\":\\"viewer\\"}]","dft":"viewer"},
|
|
454
|
+
{"name":"notifications","type":"switch","label":"Notifications","dft":"true"}
|
|
455
|
+
]'
|
|
456
|
+
></aithe-autoform>`,
|
|
457
|
+
previewHeight: '520px',
|
|
458
|
+
},
|
|
459
|
+
'fb-dialog': {
|
|
460
|
+
demoCode: `<div style="display:flex;gap:12px;flex-wrap:wrap;">
|
|
461
|
+
<aithe-button id="open-dialog" type="default">Open Dialog</aithe-button>
|
|
462
|
+
</div>
|
|
463
|
+
<aithe-dialog id="demo-dialog" title="Discard changes?">This action will remove unsaved prompt edits.</aithe-dialog>`,
|
|
464
|
+
demoSetup: (root) => {
|
|
465
|
+
const dialog = root.querySelector('#demo-dialog');
|
|
466
|
+
root.querySelector('#open-dialog')?.addEventListener('click', () => {
|
|
467
|
+
dialog.visible = true;
|
|
468
|
+
});
|
|
469
|
+
},
|
|
470
|
+
previewHeight: '240px',
|
|
471
|
+
},
|
|
472
|
+
'fb-modal': {
|
|
473
|
+
demoCode: `<div style="display:flex;gap:12px;flex-wrap:wrap;">
|
|
474
|
+
<aithe-button id="open-modal" type="primary">Open Modal</aithe-button>
|
|
475
|
+
</div>
|
|
476
|
+
<aithe-modal id="demo-modal" title="Aithe Release Notes">
|
|
477
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">The new build ships categorized exports and a live demo site.</p>
|
|
478
|
+
</aithe-modal>`,
|
|
479
|
+
demoSetup: (root) => {
|
|
480
|
+
const modal = root.querySelector('#demo-modal');
|
|
481
|
+
root.querySelector('#open-modal')?.addEventListener('click', () => {
|
|
482
|
+
modal.open = true;
|
|
483
|
+
});
|
|
484
|
+
},
|
|
485
|
+
previewHeight: '240px',
|
|
486
|
+
},
|
|
487
|
+
'fb-drawer': {
|
|
488
|
+
demoCode: `<div style="display:flex;gap:12px;flex-wrap:wrap;">
|
|
489
|
+
<aithe-button id="open-drawer" type="dashed">Open Drawer</aithe-button>
|
|
490
|
+
</div>
|
|
491
|
+
<aithe-drawer id="demo-drawer" title="Workspace Settings">
|
|
492
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">Configure theme, density and deployment defaults.</p>
|
|
493
|
+
</aithe-drawer>`,
|
|
494
|
+
demoSetup: (root) => {
|
|
495
|
+
const drawer = root.querySelector('#demo-drawer');
|
|
496
|
+
root.querySelector('#open-drawer')?.addEventListener('click', () => {
|
|
497
|
+
drawer.open = true;
|
|
498
|
+
});
|
|
499
|
+
},
|
|
500
|
+
previewHeight: '240px',
|
|
501
|
+
},
|
|
502
|
+
'fb-tooltip': {
|
|
503
|
+
demoCode: `<aithe-tooltip content="Realtime token usage insights">
|
|
504
|
+
<aithe-button type="default">Tooltip</aithe-button>
|
|
505
|
+
</aithe-tooltip>`,
|
|
506
|
+
},
|
|
507
|
+
'fb-popover': {
|
|
508
|
+
demoCode: `<aithe-popover>
|
|
509
|
+
<aithe-button type="default">Popover</aithe-button>
|
|
510
|
+
<div slot="content" style="display:grid;gap:8px;">
|
|
511
|
+
<strong>Assistant Context</strong>
|
|
512
|
+
<span style="color:var(--aithe-color-text-muted);">Aithe UI keeps tokens and themes isolated.</span>
|
|
513
|
+
</div>
|
|
514
|
+
</aithe-popover>`,
|
|
515
|
+
},
|
|
516
|
+
'data-dropdown': {
|
|
517
|
+
demoCode: `<aithe-dropdown
|
|
518
|
+
items='[{"label":"Open playground","id":"playground","icon":"play"},{"label":"Themes","id":"themes","icon":"palette","children":[{"label":"Light","id":"light"},{"label":"Dark","id":"dark"},{"label":"Blue","id":"blue"}]},{"type":"divider","label":"","id":"divider"},{"label":"Delete workspace","id":"delete","icon":"trash","variant":"danger"}]'
|
|
519
|
+
>
|
|
520
|
+
<aithe-button type="default">Dropdown</aithe-button>
|
|
521
|
+
</aithe-dropdown>`,
|
|
522
|
+
},
|
|
523
|
+
'fb-toast': {
|
|
524
|
+
demoCode: `<div style="display:flex;gap:12px;flex-wrap:wrap;">
|
|
525
|
+
<aithe-button id="show-toast" type="primary">Show Toast</aithe-button>
|
|
526
|
+
</div>
|
|
527
|
+
<aithe-toast id="demo-toast" content="" duration="1800"></aithe-toast>`,
|
|
528
|
+
demoSetup: (root) => {
|
|
529
|
+
const toast = root.querySelector('#demo-toast');
|
|
530
|
+
root.querySelector('#show-toast')?.addEventListener('click', () => {
|
|
531
|
+
toast.content = 'Build finished successfully.';
|
|
532
|
+
toast.visible = true;
|
|
533
|
+
});
|
|
534
|
+
},
|
|
535
|
+
previewHeight: '180px',
|
|
536
|
+
},
|
|
537
|
+
'fb-alert': {
|
|
538
|
+
demoCode: `<aithe-alert type="warning" title="Release Candidate" closable>
|
|
539
|
+
Accessibility review is still in progress.
|
|
540
|
+
</aithe-alert>`,
|
|
541
|
+
},
|
|
542
|
+
'fb-notification': {
|
|
543
|
+
demoCode: `<div style="display:flex;gap:12px;flex-wrap:wrap;">
|
|
544
|
+
<aithe-button id="show-notice" type="default">Show Notification</aithe-button>
|
|
545
|
+
</div>
|
|
546
|
+
<aithe-notification id="demo-notification" title="Deployment" content="" duration="2200"></aithe-notification>`,
|
|
547
|
+
demoSetup: (root) => {
|
|
548
|
+
const notice = root.querySelector('#demo-notification');
|
|
549
|
+
root.querySelector('#show-notice')?.addEventListener('click', () => {
|
|
550
|
+
notice.content = 'The demo site theme has been synchronized.';
|
|
551
|
+
notice.open = true;
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
previewHeight: '180px',
|
|
555
|
+
},
|
|
556
|
+
'fb-loading': {
|
|
557
|
+
demoCode: `<div style="position:relative;min-height:160px;">
|
|
558
|
+
<aithe-loading spinning tip="Rebuilding component registry...">
|
|
559
|
+
<aithe-card style="display:block;height:160px;">Content remains mounted below the overlay.</aithe-card>
|
|
560
|
+
</aithe-loading>
|
|
561
|
+
</div>`,
|
|
562
|
+
previewHeight: '280px',
|
|
563
|
+
},
|
|
564
|
+
'data-table': {
|
|
565
|
+
demoCode: `<aithe-table
|
|
566
|
+
striped
|
|
567
|
+
selectable="multi"
|
|
568
|
+
.selectionSet={selectionSet}
|
|
569
|
+
columns='[{"id":"name","title":"Module","icon":"folder","sortable":true},{"id":"owner","title":"Owner"},{"id":"status","title":"Status","variant":"success","sortable":true}]'
|
|
570
|
+
data='[{"id":1,"name":"Theme Engine","owner":"Design Systems","status":"Ready"},{"id":2,"name":"Component API","owner":"Frontend Platform","status":"Review"},{"id":3,"name":"Demo Router","owner":"Experience Team","status":"Ready"}]'
|
|
571
|
+
></aithe-table>
|
|
572
|
+
|
|
573
|
+
<script>
|
|
574
|
+
const selectionSet = new Set();
|
|
575
|
+
</script>`,
|
|
576
|
+
previewHeight: '320px',
|
|
577
|
+
},
|
|
578
|
+
'data-table-column': {
|
|
579
|
+
demoCode: `<aithe-table
|
|
580
|
+
striped
|
|
581
|
+
data='[{"id":1,"name":"Theme Engine","owner":"Design Systems","status":"Ready"},{"id":2,"name":"Component API","owner":"Frontend Platform","status":"Review"},{"id":3,"name":"Demo Router","owner":"Experience Team","status":"Ready"}]'
|
|
582
|
+
>
|
|
583
|
+
<aithe-table-column id="name" title="Module" icon="folder" sortable></aithe-table-column>
|
|
584
|
+
<aithe-table-column id="owner" title="Owner"></aithe-table-column>
|
|
585
|
+
<aithe-table-column id="status" title="Status" variant="success"></aithe-table-column>
|
|
586
|
+
</aithe-table>`,
|
|
587
|
+
previewHeight: '320px',
|
|
588
|
+
},
|
|
589
|
+
'data-tabs': {
|
|
590
|
+
demoCode: `<aithe-tabs type="card" active-key="tokens" max-visible-tabs="3">
|
|
591
|
+
<aithe-tab-pane tab-id="tokens" label="Tokens" icon="palette">Theme tokens and semantic scales.</aithe-tab-pane>
|
|
592
|
+
<aithe-tab-pane tab-id="components" label="Components" icon="box">Enterprise-ready component catalog.</aithe-tab-pane>
|
|
593
|
+
<aithe-tab-pane tab-id="demo" label="Demo Site" icon="play">Sidebar routing and live editing.</aithe-tab-pane>
|
|
594
|
+
<aithe-tab-pane tab-id="docs" label="Documentation" icon="file">API documentation.</aithe-tab-pane>
|
|
595
|
+
<span slot="extra">
|
|
596
|
+
<aithe-button type="primary" size="small">Action</aithe-button>
|
|
597
|
+
</span>
|
|
598
|
+
</aithe-tabs>`,
|
|
599
|
+
previewHeight: '220px',
|
|
600
|
+
},
|
|
601
|
+
'data-tab-pane': {
|
|
602
|
+
demoCode: `<aithe-tab-group type="card" active-key="tokens">
|
|
603
|
+
<aithe-tab-pane tab-id="tokens" label="Tokens">Theme tokens and semantic scales.</aithe-tab-pane>
|
|
604
|
+
<aithe-tab-pane tab-id="components" label="Components">Enterprise-ready component catalog.</aithe-tab-pane>
|
|
605
|
+
</aithe-tab-group>`,
|
|
606
|
+
previewHeight: '220px',
|
|
607
|
+
},
|
|
608
|
+
'data-tree': {
|
|
609
|
+
demoCode: `<aithe-tree
|
|
610
|
+
checkable
|
|
611
|
+
expand-all
|
|
612
|
+
data='[
|
|
613
|
+
{"label":"Foundation","id":"foundation","icon":"folder","children":[
|
|
614
|
+
{"label":"Theme","id":"theme","icon":"palette","variant":"primary"},
|
|
615
|
+
{"label":"Typography","id":"typography","icon":"edit"}
|
|
616
|
+
]},
|
|
617
|
+
{"label":"Components","id":"components","icon":"box","children":[
|
|
618
|
+
{"label":"Basic","id":"basic","variant":"success"},
|
|
619
|
+
{"label":"Feedback","id":"feedback","variant":"warning"}
|
|
620
|
+
]}
|
|
621
|
+
]'
|
|
622
|
+
></aithe-tree>`,
|
|
623
|
+
previewHeight: '260px',
|
|
624
|
+
},
|
|
625
|
+
'data-tree-menu': {
|
|
626
|
+
demoCode: `<aithe-tree-menu
|
|
627
|
+
active="overview"
|
|
628
|
+
items='[
|
|
629
|
+
{"label":"Overview","id":"overview","icon":"home"},
|
|
630
|
+
{"label":"Assets","id":"assets","icon":"star","children":[
|
|
631
|
+
{"label":"Component Library","id":"library"},
|
|
632
|
+
{"label":"Design Tokens","id":"tokens"}
|
|
633
|
+
]},
|
|
634
|
+
{"label":"Governance","id":"governance","icon":"settings"},
|
|
635
|
+
{"label":"Reports","id":"reports","icon":"barChart","children":[
|
|
636
|
+
{"label":"Usage Analytics","id":"analytics"},
|
|
637
|
+
{"label":"Compliance","id":"compliance","disabled":true}
|
|
638
|
+
]}
|
|
639
|
+
]'
|
|
640
|
+
></aithe-tree-menu>`,
|
|
641
|
+
previewHeight: '320px',
|
|
642
|
+
},
|
|
643
|
+
'data-pagination': {
|
|
644
|
+
demoCode: `<aithe-pagination total="96" page-size="12" current-page="3"></aithe-pagination>`,
|
|
645
|
+
},
|
|
646
|
+
'data-box-table': {
|
|
647
|
+
demoCode: `<aithe-box-table
|
|
648
|
+
mode="box"
|
|
649
|
+
box-cols="3"
|
|
650
|
+
striped
|
|
651
|
+
selectable="multi"
|
|
652
|
+
data='[{"id":1,"name":"Theme Engine","owner":"Design Systems","status":"Ready","version":"v2.1.0"},{"id":2,"name":"Component API","owner":"Frontend Platform","status":"Review","version":"v1.8.3"},{"id":3,"name":"Demo Router","owner":"Experience Team","status":"Ready","version":"v3.0.1"},{"id":4,"name":"Theme Engine","owner":"Design Systems","status":"Blocked","version":"v2.1.0"},{"id":5,"name":"Component API","owner":"Frontend Platform","status":"Review","version":"v1.8.3"},{"id":6,"name":"Demo Router","owner":"Experience Team","status":"Ready","version":"v3.0.1"}]'
|
|
653
|
+
>
|
|
654
|
+
<aithe-table-column id="name" title="Module" box="name"></aithe-table-column>
|
|
655
|
+
<aithe-table-column id="owner" title="Owner" box="tags"></aithe-table-column>
|
|
656
|
+
<aithe-table-column id="status" title="Status" box="status"></aithe-table-column>
|
|
657
|
+
<aithe-table-column id="version" title="Version" box="content"></aithe-table-column>
|
|
658
|
+
</aithe-box-table>`,
|
|
659
|
+
previewHeight: '480px',
|
|
660
|
+
},
|
|
661
|
+
'disp-carousel': {
|
|
662
|
+
demoCode: `<aithe-carousel autoplay interval="2400">
|
|
663
|
+
<div style="height:280px;display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe,#eff6ff);font-size:28px;font-weight:700;">Launch Faster</div>
|
|
664
|
+
<div style="height:280px;display:grid;place-items:center;background:linear-gradient(135deg,#dcfce7,#f0fdf4);font-size:28px;font-weight:700;">Theme Everything</div>
|
|
665
|
+
<div style="height:280px;display:grid;place-items:center;background:linear-gradient(135deg,#ede9fe,#faf5ff);font-size:28px;font-weight:700;">Ship Cross-Framework</div>
|
|
666
|
+
</aithe-carousel>`,
|
|
667
|
+
previewHeight: '320px',
|
|
668
|
+
},
|
|
669
|
+
'disp-comparison': {
|
|
670
|
+
demoCode: `<aithe-comparison ratio="52">
|
|
671
|
+
<div slot="before" style="height:320px;display:grid;place-items:center;background:#f8fafc;color:#0f172a;font-size:28px;font-weight:700;">Before</div>
|
|
672
|
+
<div slot="after" style="height:320px;display:grid;place-items:center;background:#0f172a;color:#eff6ff;font-size:28px;font-weight:700;">After</div>
|
|
673
|
+
</aithe-comparison>`,
|
|
674
|
+
previewHeight: '360px',
|
|
675
|
+
},
|
|
676
|
+
'disp-animated-image': {
|
|
677
|
+
demoCode: `<aithe-animated-image src="data:image/svg+xml;utf8,${animatedSvg}" speed="1.2"></aithe-animated-image>`,
|
|
678
|
+
previewHeight: '280px',
|
|
679
|
+
},
|
|
680
|
+
'disp-markdown': {
|
|
681
|
+
demoCode: `<aithe-markdown content="# Aithe UI
|
|
682
|
+
|
|
683
|
+
- Lit + TypeScript + Web Components
|
|
684
|
+
- Multi-theme design tokens
|
|
685
|
+
- Live demo editor
|
|
686
|
+
|
|
687
|
+
> Enterprise-grade component architecture.
|
|
688
|
+
|
|
689
|
+
```ts
|
|
690
|
+
export const theme = 'blue';
|
|
691
|
+
```"></aithe-markdown>`,
|
|
692
|
+
previewHeight: '340px',
|
|
693
|
+
},
|
|
694
|
+
'disp-markdown-editor': {
|
|
695
|
+
demoCode: `<aithe-markdown-editor show-toolbar value="# Hello World
|
|
696
|
+
|
|
697
|
+
This is a **markdown editor** with \`live preview\`."></aithe-markdown-editor>`,
|
|
698
|
+
previewHeight: '360px',
|
|
699
|
+
},
|
|
700
|
+
'disp-code-editor': {
|
|
701
|
+
demoCode: `<aithe-code-editor language="javascript" show-toolbar></aithe-code-editor>`,
|
|
702
|
+
demoSetup: (root) => {
|
|
703
|
+
requestAnimationFrame(() => {
|
|
704
|
+
const editor = root.querySelector('aithe-code-editor');
|
|
705
|
+
if (editor) {
|
|
706
|
+
editor.value = `function greet(name) {
|
|
707
|
+
return 'Hello, ' + name + '!';
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
console.log(greet('Aithe'));`;
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
},
|
|
714
|
+
previewHeight: '280px',
|
|
715
|
+
},
|
|
716
|
+
'disp-label': {
|
|
717
|
+
demoCode: `<aithe-space size="16" direction="vertical">
|
|
718
|
+
<aithe-label content="**Bold** and \`code\`."></aithe-label>
|
|
719
|
+
<aithe-label content=":check: 已完成"></aithe-label>
|
|
720
|
+
</aithe-space>`,
|
|
721
|
+
},
|
|
722
|
+
'prog-bar': {
|
|
723
|
+
demoCode: `<div style="display:grid;gap:16px;max-width:420px;">
|
|
724
|
+
<aithe-progress-bar percent="42"></aithe-progress-bar>
|
|
725
|
+
<aithe-progress-bar percent="76" status="success"></aithe-progress-bar>
|
|
726
|
+
<aithe-progress-bar percent="91" status="danger"></aithe-progress-bar>
|
|
727
|
+
</div>`,
|
|
728
|
+
},
|
|
729
|
+
'prog-ring': {
|
|
730
|
+
demoCode: `<aithe-progress-ring percent="68" size="132" status="warning"></aithe-progress-ring>`,
|
|
731
|
+
previewHeight: '180px',
|
|
732
|
+
},
|
|
733
|
+
'prog-spinner': {
|
|
734
|
+
demoCode: `<div style="display:flex;gap:16px;align-items:center;">
|
|
735
|
+
<aithe-spinner size="sm"></aithe-spinner>
|
|
736
|
+
<aithe-spinner size="md"></aithe-spinner>
|
|
737
|
+
<aithe-spinner variant="dots" color="var(--aithe-success-6)"></aithe-spinner>
|
|
738
|
+
</div>`,
|
|
739
|
+
},
|
|
740
|
+
'prog-skeleton': {
|
|
741
|
+
demoCode: `<div style="display:grid;gap:16px;">
|
|
742
|
+
<aithe-skeleton rows="3"></aithe-skeleton>
|
|
743
|
+
<aithe-skeleton rows="1" shape="circle"></aithe-skeleton>
|
|
744
|
+
<aithe-skeleton rows="1" shape="rect"></aithe-skeleton>
|
|
745
|
+
</div>`,
|
|
746
|
+
previewHeight: '320px',
|
|
747
|
+
},
|
|
748
|
+
'cont-callout': {
|
|
749
|
+
demoCode: `<aithe-callout type="primary" title="Shipping Note">
|
|
750
|
+
Aithe UI components inherit theme changes automatically through CSS variables.
|
|
751
|
+
</aithe-callout>`,
|
|
752
|
+
},
|
|
753
|
+
'cont-details': {
|
|
754
|
+
demoCode: `<aithe-details summary="What does the global theme initializer do?">
|
|
755
|
+
It registers design tokens, restores the persisted theme and synchronizes the root attribute.
|
|
756
|
+
</aithe-details>`,
|
|
757
|
+
previewHeight: '200px',
|
|
758
|
+
},
|
|
759
|
+
'cont-scroller': {
|
|
760
|
+
demoCode: `<aithe-scroller height="220px" shadow>
|
|
761
|
+
<div style="height:560px;display:grid;place-items:center;color:var(--aithe-color-text-muted);">
|
|
762
|
+
Scroll inside this container to observe edge shadows and themed scrollbars.
|
|
763
|
+
</div>
|
|
764
|
+
</aithe-scroller>`,
|
|
765
|
+
previewHeight: '260px',
|
|
766
|
+
},
|
|
767
|
+
'cont-split-panel': {
|
|
768
|
+
demoCode: `<aithe-split-panel value="38">
|
|
769
|
+
<div slot="start" style="height:240px;display:grid;place-items:center;background:var(--aithe-neutral-1);">Navigator</div>
|
|
770
|
+
<div slot="end" style="height:240px;display:grid;place-items:center;background:var(--aithe-color-surface);">Editor</div>
|
|
771
|
+
</aithe-split-panel>`,
|
|
772
|
+
previewHeight: '300px',
|
|
773
|
+
},
|
|
774
|
+
'theme-picker': {
|
|
775
|
+
demoCode: `<aithe-theme-picker value="light"></aithe-theme-picker>`,
|
|
776
|
+
},
|
|
777
|
+
'theme-shape-picker': {
|
|
778
|
+
demoCode: `<aithe-shape-picker></aithe-shape-picker>`,
|
|
779
|
+
},
|
|
780
|
+
'theme-shadow-picker': {
|
|
781
|
+
demoCode: `<aithe-shadow-picker></aithe-shadow-picker>`,
|
|
782
|
+
},
|
|
783
|
+
'theme-typo-picker': {
|
|
784
|
+
demoCode: `<aithe-typo-picker></aithe-typo-picker>`,
|
|
785
|
+
},
|
|
786
|
+
'theme-preview': {
|
|
787
|
+
demoCode: `<aithe-theme-preview value="light"></aithe-theme-preview>`,
|
|
788
|
+
previewHeight: '520px',
|
|
789
|
+
},
|
|
790
|
+
'framework-sidebar': {
|
|
791
|
+
demoCode: `<aithe-sidebar
|
|
792
|
+
brand="Aithe UI"
|
|
793
|
+
icon="sparkles"
|
|
794
|
+
collapsible
|
|
795
|
+
items='[{"label":"Dashboard","id":"dashboard","icon":"home"},{"label":"Components","id":"components","icon":"grid","children":[{"label":"Basic","id":"basic"},{"label":"Layout","id":"layout"},{"label":"Form","id":"form"}]},{"label":"Settings","id":"settings","icon":"settings"},{"label":"Help","id":"help","icon":"question"}]'
|
|
796
|
+
active="dashboard"
|
|
797
|
+
style="height:420px;"
|
|
798
|
+
></aithe-sidebar>`,
|
|
799
|
+
previewHeight: '460px',
|
|
800
|
+
},
|
|
801
|
+
'framework-dashboard': {
|
|
802
|
+
demoCode: `<aithe-dashboard columns="12" cell-width="60" cell-height="50" gap="8" storage-key="api-demo-dashboard" style="height:420px;">
|
|
803
|
+
<aithe-dashboard-panel panel-id="users" x="0" y="0" w="4" h="3" label="Users" icon="users">
|
|
804
|
+
<aithe-metrics-group direction="vertical" gap="4" style="padding:8px;">
|
|
805
|
+
<aithe-metrics label="Active Users" value="1,024" variant="primary"></aithe-metrics>
|
|
806
|
+
<aithe-metrics label="New Today" value="47" variant="neutral"></aithe-metrics>
|
|
807
|
+
</aithe-metrics-group>
|
|
808
|
+
</aithe-dashboard-panel>
|
|
809
|
+
<aithe-dashboard-panel panel-id="revenue" x="4" y="0" w="4" h="3" label="Revenue" icon="barChart">
|
|
810
|
+
<aithe-metrics-group direction="vertical" gap="4" style="padding:8px;">
|
|
811
|
+
<aithe-metrics label="This Month" value="$42.5K" variant="success"></aithe-metrics>
|
|
812
|
+
<aithe-metrics label="vs Last Month" value="+12%" variant="primary"></aithe-metrics>
|
|
813
|
+
</aithe-metrics-group>
|
|
814
|
+
</aithe-dashboard-panel>
|
|
815
|
+
<aithe-dashboard-panel panel-id="uptime" x="8" y="0" w="4" h="3" label="Uptime" icon="clock">
|
|
816
|
+
<aithe-metrics-group direction="vertical" gap="4" style="padding:8px;">
|
|
817
|
+
<aithe-metrics label="Last 30 Days" value="99.9%" variant="primary"></aithe-metrics>
|
|
818
|
+
<aithe-metrics label="Incidents" value="0" variant="success"></aithe-metrics>
|
|
819
|
+
</aithe-metrics-group>
|
|
820
|
+
</aithe-dashboard-panel>
|
|
821
|
+
<aithe-dashboard-panel panel-id="requests" x="0" y="3" w="6" h="3" label="Requests" icon="database">
|
|
822
|
+
<aithe-metrics-group direction="horizontal" gap="24" style="justify-content:center;padding:16px;">
|
|
823
|
+
<aithe-metrics label="Total" value="8.2M" variant="warning" show-divider></aithe-metrics>
|
|
824
|
+
<aithe-metrics label="Today" value="12.4K" variant="primary" show-divider></aithe-metrics>
|
|
825
|
+
<aithe-metrics label="Avg Latency" value="45ms" variant="neutral"></aithe-metrics>
|
|
826
|
+
</aithe-metrics-group>
|
|
827
|
+
</aithe-dashboard-panel>
|
|
828
|
+
<aithe-dashboard-panel panel-id="health" x="6" y="3" w="6" h="3" label="System Health" icon="heart" closable="false">
|
|
829
|
+
<aithe-metrics-group direction="horizontal" gap="24" style="justify-content:center;padding:16px;">
|
|
830
|
+
<aithe-metrics label="Status" value="Healthy" variant="success" show-divider></aithe-metrics>
|
|
831
|
+
<aithe-metrics label="CPU" value="23%" variant="neutral" show-divider></aithe-metrics>
|
|
832
|
+
<aithe-metrics label="Memory" value="1.2GB" variant="neutral"></aithe-metrics>
|
|
833
|
+
</aithe-metrics-group>
|
|
834
|
+
</aithe-dashboard-panel>
|
|
835
|
+
</aithe-dashboard>`,
|
|
836
|
+
previewHeight: '520px',
|
|
837
|
+
layout: 'vertical',
|
|
838
|
+
},
|
|
839
|
+
'framework-dashboard-panel': {
|
|
840
|
+
demoCode: `<aithe-dashboard columns="12" cell-width="60" cell-height="50" gap="8" show-toolbar="false" style="height:200px;">
|
|
841
|
+
<aithe-dashboard-panel panel-id="demo-panel" x="0" y="0" w="6" h="3" label="Demo Panel" icon="sparkles">
|
|
842
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">Panel content goes here. Drag the header to reposition.</p>
|
|
843
|
+
</aithe-dashboard-panel>
|
|
844
|
+
<aithe-dashboard-panel panel-id="pinned-panel" x="6" y="0" w="6" h="3" label="Pinned" icon="pin" closable="false">
|
|
845
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">This panel cannot be closed.</p>
|
|
846
|
+
</aithe-dashboard-panel>
|
|
847
|
+
</aithe-dashboard>`,
|
|
848
|
+
previewHeight: '280px',
|
|
849
|
+
layout: 'vertical',
|
|
850
|
+
},
|
|
851
|
+
'data-metrics': {
|
|
852
|
+
demoCode: `<aithe-metrics-group direction="horizontal" gap="24">
|
|
853
|
+
<aithe-metrics label="Active Users" value="1,024" variant="primary" show-divider>
|
|
854
|
+
<aithe-icon name="arrowUp" size="16" style="color:var(--aithe-success-6);"></aithe-icon>
|
|
855
|
+
</aithe-metrics>
|
|
856
|
+
<aithe-metrics label="Revenue" value="$42.5K" variant="success" show-divider>
|
|
857
|
+
<aithe-icon name="arrowUp" size="16" style="color:var(--aithe-success-6);"></aithe-icon>
|
|
858
|
+
</aithe-metrics>
|
|
859
|
+
<aithe-metrics label="Errors" value="3" variant="danger" show-divider>
|
|
860
|
+
<aithe-icon name="close" size="16" style="color:var(--aithe-danger-6);"></aithe-icon>
|
|
861
|
+
</aithe-metrics>
|
|
862
|
+
<aithe-metrics label="Pending" value="12" variant="warning" show-divider></aithe-metrics>
|
|
863
|
+
<aithe-metrics label="Total" value="9,876" variant="neutral"></aithe-metrics>
|
|
864
|
+
</aithe-metrics-group>
|
|
865
|
+
|
|
866
|
+
<div style="display:flex;gap:32px;margin-top:16px;">
|
|
867
|
+
<aithe-metrics label="Small" value="1K" variant="primary" scale="small" align="center"></aithe-metrics>
|
|
868
|
+
<aithe-metrics label="Normal" value="1K" variant="success" scale="normal" align="center"></aithe-metrics>
|
|
869
|
+
<aithe-metrics label="Large" value="1K" variant="danger" scale="large" align="center"></aithe-metrics>
|
|
870
|
+
</div>
|
|
871
|
+
|
|
872
|
+
<div style="display:flex;gap:32px;margin-top:16px;">
|
|
873
|
+
<aithe-metrics label="Left" value="100" variant="primary" align="left"></aithe-metrics>
|
|
874
|
+
<aithe-metrics label="Center" value="200" variant="success" align="center"></aithe-metrics>
|
|
875
|
+
<aithe-metrics label="Right" value="300" variant="danger" align="right"></aithe-metrics>
|
|
876
|
+
</div>`,
|
|
877
|
+
previewHeight: '260px',
|
|
878
|
+
layout: 'horizontal',
|
|
879
|
+
},
|
|
880
|
+
'data-metrics-group': {
|
|
881
|
+
demoCode: `<div style="display:flex;flex-direction:column;gap:24px;">
|
|
882
|
+
<aithe-metrics-group direction="horizontal" gap="24">
|
|
883
|
+
<aithe-metrics label="Users" value="1,024" variant="primary" show-divider></aithe-metrics>
|
|
884
|
+
<aithe-metrics label="Revenue" value="$42.5K" variant="success" show-divider></aithe-metrics>
|
|
885
|
+
<aithe-metrics label="Errors" value="3" variant="danger"></aithe-metrics>
|
|
886
|
+
</aithe-metrics-group>
|
|
887
|
+
<aithe-metrics-group direction="vertical" gap="8" align="center">
|
|
888
|
+
<aithe-metrics label="CPU Usage" value="23%" variant="neutral" show-divider></aithe-metrics>
|
|
889
|
+
<aithe-metrics label="Memory" value="1.2 GB" variant="neutral" show-divider></aithe-metrics>
|
|
890
|
+
<aithe-metrics label="Disk" value="45% Used" variant="warning"></aithe-metrics>
|
|
891
|
+
</aithe-metrics-group>
|
|
892
|
+
<aithe-metrics-group direction="horizontal" gap="24">
|
|
893
|
+
<aithe-metrics label="Small" value="1K" variant="primary" scale="small"></aithe-metrics>
|
|
894
|
+
<aithe-metrics label="Normal" value="1K" variant="success" scale="normal"></aithe-metrics>
|
|
895
|
+
<aithe-metrics label="Large" value="1K" variant="danger" scale="large"></aithe-metrics>
|
|
896
|
+
</aithe-metrics-group>
|
|
897
|
+
</div>`,
|
|
898
|
+
previewHeight: '320px',
|
|
899
|
+
layout: 'vertical',
|
|
900
|
+
},
|
|
901
|
+
'disp-mini-box': {
|
|
902
|
+
demoCode: `<aithe-space direction="vertical" size="8" style="max-width:600px;">
|
|
903
|
+
<aithe-mini-box selectable="multi">
|
|
904
|
+
<aithe-profile slot="name" title="Design Tokens v2" desc="Frontend application" icon="app"></aithe-profile>
|
|
905
|
+
<span slot="status">Published</span>
|
|
906
|
+
</aithe-mini-box>
|
|
907
|
+
<aithe-mini-box selectable="multi">
|
|
908
|
+
<aithe-profile slot="name" title="Auth Service" desc="Authentication" icon="lock"></aithe-profile>
|
|
909
|
+
<span slot="status">In Review</span>
|
|
910
|
+
</aithe-mini-box>
|
|
911
|
+
<aithe-mini-box selectable="multi">
|
|
912
|
+
<aithe-profile slot="name" title="Legacy Dashboard" desc="Deprecated" icon="dashboard"></aithe-profile>
|
|
913
|
+
<span slot="status">Deprecated</span>
|
|
914
|
+
</aithe-mini-box>
|
|
915
|
+
<aithe-mini-box selectable="multi" selected>
|
|
916
|
+
<aithe-profile slot="name" title="Component Library" desc="Active" icon="app"></aithe-profile>
|
|
917
|
+
<span slot="status">Active</span>
|
|
918
|
+
</aithe-mini-box>
|
|
919
|
+
</aithe-space>`,
|
|
920
|
+
previewHeight: '280px',
|
|
921
|
+
},
|
|
922
|
+
'disp-brief-box': {
|
|
923
|
+
demoCode: `<aithe-space direction="vertical" size="8" style="max-width:600px;">
|
|
924
|
+
<aithe-brief-box selectable="multi">
|
|
925
|
+
<aithe-profile slot="name" title="Design Tokens v2" desc="Theme system" icon="app"></aithe-profile>
|
|
926
|
+
<span slot="status">Published</span>
|
|
927
|
+
<span slot="tags"><aithe-tag>theme</aithe-tag></span>
|
|
928
|
+
<span slot="actions"><aithe-button size="sm">Edit</aithe-button> <aithe-button size="sm" variant="danger">Delete</aithe-button></span>
|
|
929
|
+
</aithe-brief-box>
|
|
930
|
+
<aithe-brief-box selectable="multi">
|
|
931
|
+
<aithe-profile slot="name" title="Auth Service" desc="Security" icon="lock"></aithe-profile>
|
|
932
|
+
<span slot="status">In Review</span>
|
|
933
|
+
<span slot="tags"><aithe-tag>security</aithe-tag></span>
|
|
934
|
+
<span slot="actions"><aithe-button size="sm">View</aithe-button></span>
|
|
935
|
+
</aithe-brief-box>
|
|
936
|
+
<aithe-brief-box>
|
|
937
|
+
<aithe-profile slot="name" title="Custom Name" desc="Custom description" icon="star"></aithe-profile>
|
|
938
|
+
<span slot="actions"><aithe-button size="sm" variant="primary">Approve</aithe-button></span>
|
|
939
|
+
</aithe-brief-box>
|
|
940
|
+
</aithe-space>`,
|
|
941
|
+
previewHeight: '380px',
|
|
942
|
+
},
|
|
943
|
+
'disp-detail-box': {
|
|
944
|
+
demoCode: `<aithe-space direction="vertical" size="8" style="max-width:600px;">
|
|
945
|
+
<aithe-detail-box selectable="multi">
|
|
946
|
+
<aithe-profile slot="name" title="Design Tokens v2" desc="Theme system" icon="app"></aithe-profile>
|
|
947
|
+
<span slot="tags"><aithe-tag>theme</aithe-tag> <aithe-tag>tokens</aithe-tag> <aithe-tag>v2</aithe-tag></span>
|
|
948
|
+
<span slot="status">Published</span>
|
|
949
|
+
<span slot="actions"><aithe-button size="sm">Edit</aithe-button> <aithe-button size="sm" variant="danger">Delete</aithe-button></span>
|
|
950
|
+
<span slot="content">Semantic color scales, spacing units, and typography presets for the next theme engine release. Supports light, dark, and custom brand themes.</span>
|
|
951
|
+
</aithe-detail-box>
|
|
952
|
+
<aithe-detail-box selectable="multi" selected>
|
|
953
|
+
<aithe-profile slot="name" title="Auth Service" desc="Security" icon="lock"></aithe-profile>
|
|
954
|
+
<span slot="tags"><aithe-tag>security</aithe-tag> <aithe-tag>api</aithe-tag></span>
|
|
955
|
+
<span slot="status">In Review</span>
|
|
956
|
+
<span slot="actions"><aithe-button size="sm" variant="primary">Approve</aithe-button> <aithe-button size="sm">Reject</aithe-button></span>
|
|
957
|
+
<span slot="content">OAuth 2.0 + PKCE authentication microservice with session management and token refresh.</span>
|
|
958
|
+
</aithe-detail-box>
|
|
959
|
+
</aithe-space>`,
|
|
960
|
+
previewHeight: '320px',
|
|
961
|
+
},
|
|
962
|
+
};
|
|
963
|
+
export function getDemoData(entryKey) {
|
|
964
|
+
return demoMap[entryKey];
|
|
965
|
+
}
|