@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,42 @@
|
|
|
1
|
+
import { t } from '../../../styles/i18n';
|
|
2
|
+
export const containerPage = {
|
|
3
|
+
key: 'container',
|
|
4
|
+
title: () => t('demo.container.title'),
|
|
5
|
+
description: () => t('demo.container.description'),
|
|
6
|
+
examples: [
|
|
7
|
+
{
|
|
8
|
+
title: () => t('demo.container.callout.title'),
|
|
9
|
+
description: () => t('demo.container.callout.description'),
|
|
10
|
+
code: `<aithe-callout type="primary" title="Shipping Note" icon="info">
|
|
11
|
+
Aithe UI components inherit theme changes automatically through CSS variables.
|
|
12
|
+
</aithe-callout>`,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: () => t('demo.container.details.title'),
|
|
16
|
+
description: () => t('demo.container.details.description'),
|
|
17
|
+
code: `<aithe-details summary="What does the global theme initializer do?" title="Theme initializer details" icon="info">
|
|
18
|
+
It registers design tokens, restores the persisted theme and synchronizes the root attribute.
|
|
19
|
+
</aithe-details>`,
|
|
20
|
+
previewHeight: '200px',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: () => t('demo.container.scroller.title'),
|
|
24
|
+
description: () => t('demo.container.scroller.description'),
|
|
25
|
+
code: `<aithe-scroller height="220px" shadow>
|
|
26
|
+
<div style="height:560px;display:grid;place-items:center;color:var(--aithe-color-text-muted);">
|
|
27
|
+
Scroll inside this container to observe edge shadows and themed scrollbars.
|
|
28
|
+
</div>
|
|
29
|
+
</aithe-scroller>`,
|
|
30
|
+
previewHeight: '260px',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: () => t('demo.container.splitPanel.title'),
|
|
34
|
+
description: () => t('demo.container.splitPanel.description'),
|
|
35
|
+
code: `<aithe-split-panel value="38">
|
|
36
|
+
<div slot="start" style="height:240px;display:grid;place-items:center;background:var(--aithe-neutral-1);">Navigator</div>
|
|
37
|
+
<div slot="end" style="height:240px;display:grid;place-items:center;background:var(--aithe-color-surface);">Editor</div>
|
|
38
|
+
</aithe-split-panel>`,
|
|
39
|
+
previewHeight: '300px',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { t } from '../../../styles/i18n';
|
|
2
|
+
export const dashboardPage = {
|
|
3
|
+
key: 'dashboard',
|
|
4
|
+
title: () => t('demo.dashboard.title'),
|
|
5
|
+
description: () => t('demo.dashboard.description'),
|
|
6
|
+
examples: [
|
|
7
|
+
{
|
|
8
|
+
title: () => t('demo.dashboard.basic.title'),
|
|
9
|
+
description: () => t('demo.dashboard.basic.description'),
|
|
10
|
+
code: `<aithe-dashboard columns="12" cell-height="60" gap="10" storage-key="demo-basic">
|
|
11
|
+
<aithe-dashboard-panel panel-id="revenue" x="0" y="0" w="6" h="4" label="Revenue" icon="barChart">
|
|
12
|
+
<div style="display:flex;flex-direction:column;gap:8px;">
|
|
13
|
+
<span style="font-size:28px;font-weight:700;color:var(--aithe-primary-6);">$128,430</span>
|
|
14
|
+
<span style="color:var(--aithe-success-6);">↑ 12.5% vs last month</span>
|
|
15
|
+
</div>
|
|
16
|
+
</aithe-dashboard-panel>
|
|
17
|
+
<aithe-dashboard-panel panel-id="users" x="6" y="0" w="6" h="4" label="Active Users" icon="user">
|
|
18
|
+
<div style="display:flex;flex-direction:column;gap:8px;">
|
|
19
|
+
<span style="font-size:28px;font-weight:700;color:var(--aithe-primary-6);">3,842</span>
|
|
20
|
+
<span style="color:var(--aithe-success-6);">↑ 8.1% vs last week</span>
|
|
21
|
+
</div>
|
|
22
|
+
</aithe-dashboard-panel>
|
|
23
|
+
<aithe-dashboard-panel panel-id="tasks" x="0" y="4" w="4" h="4" label="Tasks" icon="check">
|
|
24
|
+
<div style="display:flex;flex-direction:column;gap:8px;">
|
|
25
|
+
<span style="font-size:28px;font-weight:700;color:var(--aithe-warning-6);">27</span>
|
|
26
|
+
<span style="color:var(--aithe-color-text-muted);">Pending review</span>
|
|
27
|
+
</div>
|
|
28
|
+
</aithe-dashboard-panel>
|
|
29
|
+
<aithe-dashboard-panel panel-id="alerts" x="4" y="4" w="8" h="4" label="Alerts" icon="warning">
|
|
30
|
+
<div style="display:flex;flex-direction:column;gap:8px;">
|
|
31
|
+
<span style="font-size:28px;font-weight:700;color:var(--aithe-danger-6);">5</span>
|
|
32
|
+
<span style="color:var(--aithe-color-text-muted);">Critical alerts require attention</span>
|
|
33
|
+
</div>
|
|
34
|
+
</aithe-dashboard-panel>
|
|
35
|
+
</aithe-dashboard>`,
|
|
36
|
+
previewHeight: '520px',
|
|
37
|
+
layout: 'vertical',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: () => t('demo.dashboard.locked.title'),
|
|
41
|
+
description: () => t('demo.dashboard.locked.description'),
|
|
42
|
+
code: `<aithe-dashboard columns="12" cell-height="60" gap="10" locked storage-key="demo-locked">
|
|
43
|
+
<aithe-dashboard-panel panel-id="kpi1" x="0" y="0" w="3" h="3" label="CPU" icon="barChart">
|
|
44
|
+
<span style="font-size:24px;font-weight:700;">72%</span>
|
|
45
|
+
</aithe-dashboard-panel>
|
|
46
|
+
<aithe-dashboard-panel panel-id="kpi2" x="3" y="0" w="3" h="3" label="Memory" icon="barChart">
|
|
47
|
+
<span style="font-size:24px;font-weight:700;">4.2 GB</span>
|
|
48
|
+
</aithe-dashboard-panel>
|
|
49
|
+
<aithe-dashboard-panel panel-id="kpi3" x="6" y="0" w="3" h="3" label="Disk" icon="barChart">
|
|
50
|
+
<span style="font-size:24px;font-weight:700;">128 GB</span>
|
|
51
|
+
</aithe-dashboard-panel>
|
|
52
|
+
<aithe-dashboard-panel panel-id="kpi4" x="9" y="0" w="3" h="3" label="Network" icon="barChart">
|
|
53
|
+
<span style="font-size:24px;font-weight:700;">1.2 Gbps</span>
|
|
54
|
+
</aithe-dashboard-panel>
|
|
55
|
+
</aithe-dashboard>`,
|
|
56
|
+
previewHeight: '320px',
|
|
57
|
+
layout: 'vertical',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: () => t('demo.dashboard.noToolbar.title'),
|
|
61
|
+
description: () => t('demo.dashboard.noToolbar.description'),
|
|
62
|
+
code: `<aithe-dashboard columns="6" cell-height="80" gap="8" show-toolbar="false" storage-key="demo-notoolbar">
|
|
63
|
+
<aithe-dashboard-panel panel-id="card1" x="0" y="0" w="3" h="2" label="Widget A" show-header="false">
|
|
64
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;">
|
|
65
|
+
<span style="font-size:20px;font-weight:600;">Embedded View</span>
|
|
66
|
+
</div>
|
|
67
|
+
</aithe-dashboard-panel>
|
|
68
|
+
<aithe-dashboard-panel panel-id="card2" x="3" y="0" w="3" h="2" label="Widget B" show-header="false">
|
|
69
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;">
|
|
70
|
+
<span style="font-size:20px;font-weight:600;">Chart Area</span>
|
|
71
|
+
</div>
|
|
72
|
+
</aithe-dashboard-panel>
|
|
73
|
+
</aithe-dashboard>`,
|
|
74
|
+
previewHeight: '280px',
|
|
75
|
+
layout: 'vertical',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: () => t('demo.dashboard.customContent.title'),
|
|
79
|
+
description: () => t('demo.dashboard.customContent.description'),
|
|
80
|
+
code: `<aithe-dashboard columns="12" cell-height="60" gap="10" storage-key="demo-content">
|
|
81
|
+
<aithe-dashboard-panel panel-id="profile" x="0" y="0" w="4" h="5" label="User Profile" icon="user">
|
|
82
|
+
<div style="display:flex;flex-direction:column;gap:12px;">
|
|
83
|
+
<aithe-avatar size="lg" text="JD"></aithe-avatar>
|
|
84
|
+
<div>
|
|
85
|
+
<div style="font-weight:600;">Jane Doe</div>
|
|
86
|
+
<div style="color:var(--aithe-color-text-muted);font-size:13px;">Product Manager</div>
|
|
87
|
+
</div>
|
|
88
|
+
<aithe-tag variant="success">Active</aithe-tag>
|
|
89
|
+
</div>
|
|
90
|
+
</aithe-dashboard-panel>
|
|
91
|
+
<aithe-dashboard-panel panel-id="activity" x="4" y="0" w="8" h="5" label="Recent Activity" icon="barChart">
|
|
92
|
+
<div style="display:flex;flex-direction:column;gap:8px;">
|
|
93
|
+
<div style="display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--aithe-color-border);">
|
|
94
|
+
<span>Deployed v2.4.0</span><aithe-tag variant="success">Success</aithe-tag>
|
|
95
|
+
</div>
|
|
96
|
+
<div style="display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--aithe-color-border);">
|
|
97
|
+
<span>DB Migration</span><aithe-tag variant="warning">Pending</aithe-tag>
|
|
98
|
+
</div>
|
|
99
|
+
<div style="display:flex;justify-content:space-between;padding:4px 0;">
|
|
100
|
+
<span>API Rate Limit</span><aithe-tag variant="danger">Alert</aithe-tag>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</aithe-dashboard-panel>
|
|
104
|
+
<aithe-dashboard-panel panel-id="settings" x="0" y="5" w="12" h="3" label="Quick Settings" icon="settings" closable>
|
|
105
|
+
<div style="display:flex;gap:24px;align-items:center;flex-wrap:wrap;">
|
|
106
|
+
<aithe-switch checked>Notifications</aithe-switch>
|
|
107
|
+
<aithe-switch>Auto-deploy</aithe-switch>
|
|
108
|
+
<aithe-switch checked>Monitoring</aithe-switch>
|
|
109
|
+
</div>
|
|
110
|
+
</aithe-dashboard-panel>
|
|
111
|
+
</aithe-dashboard>`,
|
|
112
|
+
previewHeight: '600px',
|
|
113
|
+
layout: 'vertical',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
title: () => t('demo.dashboard.persistence.title'),
|
|
117
|
+
description: () => t('demo.dashboard.persistence.description'),
|
|
118
|
+
code: `<aithe-dashboard columns="8" cell-height="70" gap="12" storage-key="demo-persist" show-visibility show-lock show-reset show-fullscreen>
|
|
119
|
+
<aithe-dashboard-panel panel-id="p1" x="0" y="0" w="4" h="3" label="Panel A" icon="barChart" closable>
|
|
120
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">Drag, resize, close, then refresh. State is saved to localStorage.</p>
|
|
121
|
+
</aithe-dashboard-panel>
|
|
122
|
+
<aithe-dashboard-panel panel-id="p2" x="4" y="0" w="4" h="3" label="Panel B" icon="user" closable>
|
|
123
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">Use the toolbar: visibility, lock, reset, fullscreen.</p>
|
|
124
|
+
</aithe-dashboard-panel>
|
|
125
|
+
<aithe-dashboard-panel panel-id="p3" x="0" y="3" w="8" h="2" label="Panel C" icon="warning" closable>
|
|
126
|
+
<p style="margin:0;color:var(--aithe-color-text-muted);">Try the reset button to restore initial layout.</p>
|
|
127
|
+
</aithe-dashboard-panel>
|
|
128
|
+
</aithe-dashboard>`,
|
|
129
|
+
previewHeight: '480px',
|
|
130
|
+
layout: 'vertical',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
title: () => t('demo.dashboard.dense.title'),
|
|
134
|
+
description: () => t('demo.dashboard.dense.description'),
|
|
135
|
+
code: `<aithe-dashboard columns="16" cell-height="40" gap="6" storage-key="demo-dense" show-toolbar="false">
|
|
136
|
+
<aithe-dashboard-panel panel-id="d1" x="0" y="0" w="4" h="2" label="M1" show-header="false">
|
|
137
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;font-size:13px;font-weight:600;">Metric 1</div>
|
|
138
|
+
</aithe-dashboard-panel>
|
|
139
|
+
<aithe-dashboard-panel panel-id="d2" x="4" y="0" w="4" h="2" label="M2" show-header="false">
|
|
140
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;font-size:13px;font-weight:600;">Metric 2</div>
|
|
141
|
+
</aithe-dashboard-panel>
|
|
142
|
+
<aithe-dashboard-panel panel-id="d3" x="8" y="0" w="4" h="2" label="M3" show-header="false">
|
|
143
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;font-size:13px;font-weight:600;">Metric 3</div>
|
|
144
|
+
</aithe-dashboard-panel>
|
|
145
|
+
<aithe-dashboard-panel panel-id="d4" x="12" y="0" w="4" h="2" label="M4" show-header="false">
|
|
146
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;font-size:13px;font-weight:600;">Metric 4</div>
|
|
147
|
+
</aithe-dashboard-panel>
|
|
148
|
+
<aithe-dashboard-panel panel-id="d5" x="0" y="2" w="8" h="3" label="Chart" icon="barChart">
|
|
149
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;color:var(--aithe-color-text-muted);">Chart Area</div>
|
|
150
|
+
</aithe-dashboard-panel>
|
|
151
|
+
<aithe-dashboard-panel panel-id="d6" x="8" y="2" w="8" h="3" label="Table" icon="barChart">
|
|
152
|
+
<div style="display:flex;align-items:center;justify-content:center;height:100%;color:var(--aithe-color-text-muted);">Table Area</div>
|
|
153
|
+
</aithe-dashboard-panel>
|
|
154
|
+
</aithe-dashboard>`,
|
|
155
|
+
previewHeight: '320px',
|
|
156
|
+
layout: 'vertical',
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/apps/demo/pages/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/apps/demo/pages/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAO1C,eAAO,MAAM,QAAQ,EAAE,QAmUtB,CAAC"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { t } from '../../../styles/i18n';
|
|
2
|
+
const TABLE_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"},{"id":4,"name":"Icon Library","owner":"Design Systems","status":"Blocked"},{"id":5,"name":"Auth Module","owner":"Backend Team","status":"Ready"}]';
|
|
3
|
+
const TABLE_COLUMNS = '[{"id":"name","title":"Module","icon":"folder","sortable":true},{"id":"owner","title":"Owner"},{"id":"status","title":"Status","intent":"success","sortable":true}]';
|
|
4
|
+
export const dataPage = {
|
|
5
|
+
key: 'data',
|
|
6
|
+
title: () => t('demo.data.title'),
|
|
7
|
+
description: () => t('demo.data.description'),
|
|
8
|
+
examples: [
|
|
9
|
+
{
|
|
10
|
+
title: () => t('demo.data.table.title'),
|
|
11
|
+
description: () => t('demo.data.table.description'),
|
|
12
|
+
code: `<aithe-table
|
|
13
|
+
striped
|
|
14
|
+
selectable="multi"
|
|
15
|
+
.selectionSet={selectionSet}
|
|
16
|
+
columns='${TABLE_COLUMNS}'
|
|
17
|
+
data='${TABLE_DATA}'
|
|
18
|
+
></aithe-table>`,
|
|
19
|
+
previewHeight: '320px',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: () => t('demo.data.tableFixed.title'),
|
|
23
|
+
description: () => t('demo.data.tableFixed.description'),
|
|
24
|
+
code: `<aithe-table
|
|
25
|
+
striped
|
|
26
|
+
bordered
|
|
27
|
+
selectable="multi"
|
|
28
|
+
.selectionSet={selectionSet}
|
|
29
|
+
data='${TABLE_DATA}'
|
|
30
|
+
>
|
|
31
|
+
<aithe-table-column id="name" title="Module" fixed="left" width="160" sortable icon="folder"></aithe-table-column>
|
|
32
|
+
<aithe-table-column id="owner" title="Owner" width="200"></aithe-table-column>
|
|
33
|
+
<aithe-table-column id="status" title="Status" width="200" variant="success" sortable></aithe-table-column>
|
|
34
|
+
<aithe-table-column id="version" title="Version" width="200"></aithe-table-column>
|
|
35
|
+
<aithe-table-column id="priority" title="Priority" width="200"></aithe-table-column>
|
|
36
|
+
<aithe-table-column id="progress" title="Progress" width="200"></aithe-table-column>
|
|
37
|
+
<aithe-table-column id="action" title="Action" fixed="right" width="120" align="center"></aithe-table-column>
|
|
38
|
+
</aithe-table>`,
|
|
39
|
+
previewHeight: '320px',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: () => t('demo.data.tableResize.title'),
|
|
43
|
+
description: () => t('demo.data.tableResize.description'),
|
|
44
|
+
code: `<aithe-table
|
|
45
|
+
striped
|
|
46
|
+
bordered
|
|
47
|
+
selectable="multi"
|
|
48
|
+
.selectionSet={selectionSet}
|
|
49
|
+
data='${TABLE_DATA}'
|
|
50
|
+
>
|
|
51
|
+
<aithe-table-column id="name" title="Module" resizable min-width="120" width="200" sortable icon="folder"></aithe-table-column>
|
|
52
|
+
<aithe-table-column id="owner" title="Owner" resizable min-width="100" width="200"></aithe-table-column>
|
|
53
|
+
<aithe-table-column id="status" title="Status" resizable min-width="100" width="200" variant="success" sortable></aithe-table-column>
|
|
54
|
+
</aithe-table>`,
|
|
55
|
+
previewHeight: '320px',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: () => t('demo.data.tableReorder.title'),
|
|
59
|
+
description: () => t('demo.data.tableReorder.description'),
|
|
60
|
+
code: `<aithe-table
|
|
61
|
+
striped
|
|
62
|
+
bordered
|
|
63
|
+
selectable="multi"
|
|
64
|
+
.selectionSet={selectionSet}
|
|
65
|
+
data='${TABLE_DATA}'
|
|
66
|
+
>
|
|
67
|
+
<aithe-table-column id="name" title="Module" draggable sortable icon="folder"></aithe-table-column>
|
|
68
|
+
<aithe-table-column id="owner" title="Owner" draggable></aithe-table-column>
|
|
69
|
+
<aithe-table-column id="status" title="Status" draggable variant="success" sortable></aithe-table-column>
|
|
70
|
+
</aithe-table>`,
|
|
71
|
+
previewHeight: '320px',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: () => t('demo.data.tableLoading.title'),
|
|
75
|
+
description: () => t('demo.data.tableLoading.description'),
|
|
76
|
+
code: `<aithe-table
|
|
77
|
+
loading
|
|
78
|
+
loading-text="Loading modules..."
|
|
79
|
+
striped
|
|
80
|
+
selectable="multi"
|
|
81
|
+
.selectionSet={selectionSet}
|
|
82
|
+
columns='${TABLE_COLUMNS}'
|
|
83
|
+
data='${TABLE_DATA}'
|
|
84
|
+
></aithe-table>`,
|
|
85
|
+
previewHeight: '320px',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: () => t('demo.data.tableSingleSelect.title'),
|
|
89
|
+
description: () => t('demo.data.tableSingleSelect.description'),
|
|
90
|
+
code: `<aithe-table
|
|
91
|
+
striped
|
|
92
|
+
bordered
|
|
93
|
+
selectable="single"
|
|
94
|
+
.selectionSet={selectionSet}
|
|
95
|
+
columns='${TABLE_COLUMNS}'
|
|
96
|
+
data='${TABLE_DATA}'
|
|
97
|
+
></aithe-table>`,
|
|
98
|
+
previewHeight: '320px',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: () => t('demo.data.tableKeyboard.title'),
|
|
102
|
+
description: () => t('demo.data.tableKeyboard.description'),
|
|
103
|
+
code: `<aithe-table
|
|
104
|
+
striped
|
|
105
|
+
bordered
|
|
106
|
+
selectable="multi"
|
|
107
|
+
.selectionSet={selectionSet}
|
|
108
|
+
columns='${TABLE_COLUMNS}'
|
|
109
|
+
data='${TABLE_DATA}'
|
|
110
|
+
></aithe-table>`,
|
|
111
|
+
previewHeight: '320px',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: () => t('demo.data.tabs.title'),
|
|
115
|
+
description: () => t('demo.data.tabs.description'),
|
|
116
|
+
code: `<aithe-tab-group type="card" active-key="tokens">
|
|
117
|
+
<aithe-tab-pane tab-id="tokens" label="Tokens" title="Theme tokens" icon="palette">Theme tokens and semantic scales.</aithe-tab-pane>
|
|
118
|
+
<aithe-tab-pane tab-id="components" label="Components" title="Component catalog" icon="box">Enterprise-ready component catalog.</aithe-tab-pane>
|
|
119
|
+
<aithe-tab-pane tab-id="demo" label="Demo Site" title="Live demo" icon="play">Sidebar routing and live editing.</aithe-tab-pane>
|
|
120
|
+
</aithe-tab-group>`,
|
|
121
|
+
previewHeight: '220px',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
title: () => t('demo.data.tabsTypes.title'),
|
|
125
|
+
description: () => t('demo.data.tabsTypes.description'),
|
|
126
|
+
code: `<div style="display:flex;flex-direction:column;gap:24px;">
|
|
127
|
+
<aithe-tabs type="line" active-key="a">
|
|
128
|
+
<aithe-tab-pane tab-id="a" label="Line Tab A">Line style content A.</aithe-tab-pane>
|
|
129
|
+
<aithe-tab-pane tab-id="b" label="Line Tab B">Line style content B.</aithe-tab-pane>
|
|
130
|
+
</aithe-tabs>
|
|
131
|
+
<aithe-tabs type="card" active-key="x">
|
|
132
|
+
<aithe-tab-pane tab-id="x" label="Card Tab X">Card style content X.</aithe-tab-pane>
|
|
133
|
+
<aithe-tab-pane tab-id="y" label="Card Tab Y">Card style content Y.</aithe-tab-pane>
|
|
134
|
+
</aithe-tabs>
|
|
135
|
+
<aithe-tabs type="button" active-key="1">
|
|
136
|
+
<aithe-tab-pane tab-id="1" label="Button Tab 1">Button style content 1.</aithe-tab-pane>
|
|
137
|
+
<aithe-tab-pane tab-id="2" label="Button Tab 2">Button style content 2.</aithe-tab-pane>
|
|
138
|
+
</aithe-tabs>
|
|
139
|
+
</div>`,
|
|
140
|
+
previewHeight: '340px',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
title: () => t('demo.data.tabsIcons.title'),
|
|
144
|
+
description: () => t('demo.data.tabsIcons.description'),
|
|
145
|
+
code: `<aithe-tabs type="card" active-key="home">
|
|
146
|
+
<aithe-tab-pane tab-id="home" label="Home" icon="home">Home page content.</aithe-tab-pane>
|
|
147
|
+
<aithe-tab-pane tab-id="settings" label="Settings" icon="settings">Settings page content.</aithe-tab-pane>
|
|
148
|
+
<aithe-tab-pane tab-id="user" label="Profile" icon="user">Profile page content.</aithe-tab-pane>
|
|
149
|
+
</aithe-tabs>`,
|
|
150
|
+
previewHeight: '220px',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
title: () => t('demo.data.tabsClosable.title'),
|
|
154
|
+
description: () => t('demo.data.tabsClosable.description'),
|
|
155
|
+
code: `<aithe-tabs type="card" active-key="tab1">
|
|
156
|
+
<aithe-tab-pane tab-id="tab1" label="Tab 1" closable>Closable tab content 1.</aithe-tab-pane>
|
|
157
|
+
<aithe-tab-pane tab-id="tab2" label="Tab 2" closable>Closable tab content 2.</aithe-tab-pane>
|
|
158
|
+
<aithe-tab-pane tab-id="tab3" label="Tab 3" closable>Closable tab content 3.</aithe-tab-pane>
|
|
159
|
+
</aithe-tabs>`,
|
|
160
|
+
previewHeight: '220px',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
title: () => t('demo.data.tabsAddable.title'),
|
|
164
|
+
description: () => t('demo.data.tabsAddable.description'),
|
|
165
|
+
code: `<aithe-tabs type="card" active-key="a" addable>
|
|
166
|
+
<aithe-tab-pane tab-id="a" label="Tab A" closable>Addable tab content A.</aithe-tab-pane>
|
|
167
|
+
<aithe-tab-pane tab-id="b" label="Tab B" closable>Addable tab content B.</aithe-tab-pane>
|
|
168
|
+
</aithe-tabs>`,
|
|
169
|
+
previewHeight: '220px',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
title: () => t('demo.data.tabsDisabled.title'),
|
|
173
|
+
description: () => t('demo.data.tabsDisabled.description'),
|
|
174
|
+
code: `<aithe-tabs type="card" active-key="enabled1">
|
|
175
|
+
<aithe-tab-pane tab-id="enabled1" label="Enabled 1">This tab is active and clickable.</aithe-tab-pane>
|
|
176
|
+
<aithe-tab-pane tab-id="disabled1" label="Disabled 1" disabled>This tab is disabled.</aithe-tab-pane>
|
|
177
|
+
<aithe-tab-pane tab-id="enabled2" label="Enabled 2">This tab is also clickable.</aithe-tab-pane>
|
|
178
|
+
<aithe-tab-pane tab-id="disabled2" label="Disabled 2" disabled>This tab is also disabled.</aithe-tab-pane>
|
|
179
|
+
</aithe-tabs>`,
|
|
180
|
+
previewHeight: '220px',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
title: () => t('demo.data.tabsOverflow.title'),
|
|
184
|
+
description: () => t('demo.data.tabsOverflow.description'),
|
|
185
|
+
code: `<aithe-tabs max-visible-tabs="3" type="card" active-key="tab1">
|
|
186
|
+
<aithe-tab-pane tab-id="tab1" label="Tab 1">Overflow demo content 1.</aithe-tab-pane>
|
|
187
|
+
<aithe-tab-pane tab-id="tab2" label="Tab 2">Overflow demo content 2.</aithe-tab-pane>
|
|
188
|
+
<aithe-tab-pane tab-id="tab3" label="Tab 3">Overflow demo content 3.</aithe-tab-pane>
|
|
189
|
+
<aithe-tab-pane tab-id="tab4" label="Tab 4">Overflow demo content 4.</aithe-tab-pane>
|
|
190
|
+
<aithe-tab-pane tab-id="tab5" label="Tab 5">Overflow demo content 5.</aithe-tab-pane>
|
|
191
|
+
</aithe-tabs>`,
|
|
192
|
+
previewHeight: '220px',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
title: () => t('demo.data.tabsExtraSlot.title'),
|
|
196
|
+
description: () => t('demo.data.tabsExtraSlot.description'),
|
|
197
|
+
code: `<aithe-tabs type="card" active-key="tab1">
|
|
198
|
+
<aithe-tab-pane tab-id="tab1" label="Tab 1">Extra slot demo content 1.</aithe-tab-pane>
|
|
199
|
+
<aithe-tab-pane tab-id="tab2" label="Tab 2">Extra slot demo content 2.</aithe-tab-pane>
|
|
200
|
+
<span slot="extra">
|
|
201
|
+
<aithe-button type="primary" size="small">Action</aithe-button>
|
|
202
|
+
</span>
|
|
203
|
+
</aithe-tabs>`,
|
|
204
|
+
previewHeight: '220px',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
title: () => t('demo.data.tree.title'),
|
|
208
|
+
description: () => t('demo.data.tree.description'),
|
|
209
|
+
code: `<aithe-tree
|
|
210
|
+
title="Project structure"
|
|
211
|
+
icon="folder"
|
|
212
|
+
checkable
|
|
213
|
+
expand-all
|
|
214
|
+
data='[
|
|
215
|
+
{"label":"Foundation","id":"foundation","icon":"folder","children":[
|
|
216
|
+
{"label":"Theme","id":"theme","icon":"palette","intent":"primary"},
|
|
217
|
+
{"label":"Typography","id":"typography","icon":"edit"}
|
|
218
|
+
]},
|
|
219
|
+
{"label":"Components","id":"components","icon":"box","children":[
|
|
220
|
+
{"label":"Basic","id":"basic","intent":"success"},
|
|
221
|
+
{"label":"Feedback","id":"feedback","intent":"warning"}
|
|
222
|
+
]}
|
|
223
|
+
]'
|
|
224
|
+
></aithe-tree>`,
|
|
225
|
+
previewHeight: '260px',
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
title: () => t('demo.data.pagination.title'),
|
|
229
|
+
description: () => t('demo.data.pagination.description'),
|
|
230
|
+
code: `<aithe-pagination total="96" page-size="12" current-page="3"></aithe-pagination>`,
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
title: () => t('demo.data.timelineData.title'),
|
|
234
|
+
description: () => t('demo.data.timelineData.description'),
|
|
235
|
+
code: `<aithe-timeline
|
|
236
|
+
items='[{"content":"Design tokens published","timestamp":"09:00","type":"primary"},{"content":"Demo routing completed","timestamp":"11:30","type":"success"},{"content":"Accessibility audit pending","timestamp":"15:20","type":"warning"}]'
|
|
237
|
+
></aithe-timeline>`,
|
|
238
|
+
previewHeight: '260px',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
title: () => t('demo.data.timelineDom.title'),
|
|
242
|
+
description: () => t('demo.data.timelineDom.description'),
|
|
243
|
+
code: `<aithe-timeline>
|
|
244
|
+
<aithe-timeline-item type="primary" timestamp="09:00">Design tokens published</aithe-timeline-item>
|
|
245
|
+
<aithe-timeline-item type="success" timestamp="11:30">Demo routing completed</aithe-timeline-item>
|
|
246
|
+
<aithe-timeline-item type="warning" timestamp="15:20">Accessibility audit pending</aithe-timeline-item>
|
|
247
|
+
</aithe-timeline>`,
|
|
248
|
+
previewHeight: '260px',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
title: () => t('demo.data.treeMenu.title'),
|
|
252
|
+
description: () => t('demo.data.treeMenu.description'),
|
|
253
|
+
code: `<aithe-tree-menu
|
|
254
|
+
active="overview"
|
|
255
|
+
items='[
|
|
256
|
+
{"label":"Overview","id":"overview","icon":"home"},
|
|
257
|
+
{"label":"Assets","id":"assets","icon":"star","children":[
|
|
258
|
+
{"label":"Component Library","id":"library"},
|
|
259
|
+
{"label":"Design Tokens","id":"tokens"}
|
|
260
|
+
]},
|
|
261
|
+
{"label":"Governance","id":"governance","icon":"settings"},
|
|
262
|
+
{"label":"Reports","id":"reports","icon":"barChart","children":[
|
|
263
|
+
{"label":"Usage Analytics","id":"analytics"},
|
|
264
|
+
{"label":"Compliance","id":"compliance","disabled":true}
|
|
265
|
+
]}
|
|
266
|
+
]'
|
|
267
|
+
></aithe-tree-menu>`,
|
|
268
|
+
previewHeight: '320px',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
title: () => t('demo.data.treeMenuHorizontal.title'),
|
|
272
|
+
description: () => t('demo.data.treeMenuHorizontal.description'),
|
|
273
|
+
code: `<aithe-tree-menu
|
|
274
|
+
direction="horizontal"
|
|
275
|
+
active="overview"
|
|
276
|
+
items='[
|
|
277
|
+
{"label":"Overview","id":"overview","icon":"home"},
|
|
278
|
+
{"label":"Assets","id":"assets","icon":"star","children":[
|
|
279
|
+
{"label":"Component Library","id":"library"},
|
|
280
|
+
{"label":"Design Tokens","id":"tokens"}
|
|
281
|
+
]},
|
|
282
|
+
{"label":"Governance","id":"governance","icon":"settings"},
|
|
283
|
+
{"label":"Reports","id":"reports","icon":"barChart","children":[
|
|
284
|
+
{"label":"Usage Analytics","id":"analytics"},
|
|
285
|
+
{"label":"Compliance","id":"compliance","disabled":true}
|
|
286
|
+
]}
|
|
287
|
+
]'
|
|
288
|
+
></aithe-tree-menu>`,
|
|
289
|
+
previewHeight: '320px',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
title: () => t('demo.data.dropdown.title'),
|
|
293
|
+
description: () => t('demo.data.dropdown.description'),
|
|
294
|
+
code: `<div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap;">
|
|
295
|
+
<aithe-dropdown
|
|
296
|
+
title="Context menu"
|
|
297
|
+
icon="menu"
|
|
298
|
+
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"}]'
|
|
299
|
+
>
|
|
300
|
+
<aithe-button type="default">Dropdown</aithe-button>
|
|
301
|
+
</aithe-dropdown>
|
|
302
|
+
<aithe-dropdown trigger="hover" placement="bottom-end"
|
|
303
|
+
items='[{"label":"Profile","id":"profile","icon":"user"},{"label":"Settings","id":"settings","icon":"settings"},{"label":"Sign out","id":"signout","icon":"external","variant":"danger"}]'
|
|
304
|
+
>
|
|
305
|
+
<aithe-button type="primary">Hover Dropdown</aithe-button>
|
|
306
|
+
</aithe-dropdown>
|
|
307
|
+
</div>`,
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
title: () => t('demo.data.boxTable.title'),
|
|
311
|
+
description: () => t('demo.data.boxTable.description'),
|
|
312
|
+
code: `<aithe-box-table
|
|
313
|
+
mode="box"
|
|
314
|
+
box-cols="3"
|
|
315
|
+
striped
|
|
316
|
+
selectable="multi"
|
|
317
|
+
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"}]'
|
|
318
|
+
>
|
|
319
|
+
<aithe-table-column id="name" title="Module" box="name"></aithe-table-column>
|
|
320
|
+
<aithe-table-column id="owner" title="Owner" box="tags"></aithe-table-column>
|
|
321
|
+
<aithe-table-column id="status" title="Status" box="status"></aithe-table-column>
|
|
322
|
+
<aithe-table-column id="version" title="Version" box="content"></aithe-table-column>
|
|
323
|
+
</aithe-box-table>`,
|
|
324
|
+
previewHeight: '480px',
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../src/apps/demo/pages/display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAmB1C,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../src/apps/demo/pages/display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAmB1C,eAAO,MAAM,WAAW,EAAE,QAsRzB,CAAC"}
|