@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,115 @@
|
|
|
1
|
+
# AitheAutoformItem / AitheAutoformItem 自动表单项
|
|
2
|
+
|
|
3
|
+
> JSON-driven auto form item with three-section layout (header / control / footer) and built-in validation. Supports dependency rules for dynamic visibility, disabled state, and options.
|
|
4
|
+
> JSON 驱动的自动表单项,三段式布局(头部 / 控件 / 底部),内置校验。支持依赖联动规则动态控制可见性、禁用状态和选项。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
| --------- | ------------------------------------------ | ------------------ |
|
|
10
|
+
| (default) | Default slot for the form control element. | 表单控件元素内容。 |
|
|
11
|
+
|
|
12
|
+
## Properties / 属性
|
|
13
|
+
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
| ------------------ | ------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
|
|
16
|
+
| name | `string` | `''` | Field unique identifier. | 字段唯一标识。 |
|
|
17
|
+
| type | `AutoformItemType` | `'input'` | Control type: input \| textarea \| select \| radio \| checkbox \| switch \| number \| slider \| rate \| color-picker \| date-picker \| time-picker \| combobox. | 控件类型。 |
|
|
18
|
+
| label | `string` | `''` | Label text. | 标签文本。 |
|
|
19
|
+
| icon | `string` | `''` | Icon name displayed before the label. | 标签前显示的图标名称。 |
|
|
20
|
+
| tooltip | `string` | `''` | Tooltip text shown on hover. | 悬停提示文本。 |
|
|
21
|
+
| description | `string` | `''` | Description text below the control. | 控件下方的说明文字。 |
|
|
22
|
+
| dft | `string` | `''` | Default value. | 缺省值。 |
|
|
23
|
+
| placeholder | `string` | `''` | Placeholder text. | 占位提示文本。 |
|
|
24
|
+
| disabled | `boolean` | `false` | Whether the field is disabled. | 是否禁用。 |
|
|
25
|
+
| required | `boolean` | `false` | Whether the field is required. | 是否必填。 |
|
|
26
|
+
| pattern | `string` | `''` | Validation regex pattern string. | 校验正则表达式字符串。 |
|
|
27
|
+
| message | `string` | `''` | Validation failure message. | 校验失败提示语。 |
|
|
28
|
+
| options | `FormItemOption[]` | `[]` | Options for select/radio/checkbox. | 选择类控件的选项。 |
|
|
29
|
+
| value | `string` | `''` | Current field value. | 当前字段值。 |
|
|
30
|
+
| inputType | `string` | `'text'` | Input type attribute for type="input". When set to `password`, a suffix icon button (`eye`/`eyeOff`) is rendered to toggle between masked and plaintext display. | input 控件的 type 属性。设为 `password` 时,后缀渲染图标按钮(`eye`/`eyeOff`)用于在密文与明文之间切换。 |
|
|
31
|
+
| min | `string` | `''` | Minimum value for number/slider. | 数字/滑块最小值。 |
|
|
32
|
+
| max | `string` | `''` | Maximum value for number/slider. | 数字/滑块最大值。 |
|
|
33
|
+
| step | `string` | `''` | Step value for number/slider/rate. | 数字/滑块/评分步长。 |
|
|
34
|
+
| rows | `string` | `'3'` | Number of rows for textarea. | 文本域行数。 |
|
|
35
|
+
| validate-on-change | `boolean` | `true` | Whether to validate on every change. | 是否在每次变更时实时校验。 |
|
|
36
|
+
| dependencies | `string[]` | `[]` | Dependency field names. | 依赖字段名称列表。 |
|
|
37
|
+
| rules | `FormRule[]` | `[]` | Dependency rules. | 依赖联动规则。 |
|
|
38
|
+
| dependencyValues | `Record<string, unknown>` | `{}` | Current values of dependency fields. | 依赖字段的当前值。 |
|
|
39
|
+
|
|
40
|
+
## Events / 事件
|
|
41
|
+
|
|
42
|
+
| Name | Detail | Cancelable | Description (EN) | Description (CN) |
|
|
43
|
+
| ------------ | ---------------------------------- | ---------- | ------------------------------------- | ------------------ |
|
|
44
|
+
| aithe-change | `{ name: string, value: unknown }` | No | Emitted when the field value changes. | 字段值变更时触发。 |
|
|
45
|
+
|
|
46
|
+
## Methods / 方法
|
|
47
|
+
|
|
48
|
+
| Name | Return Type | Description (EN) | Description (CN) |
|
|
49
|
+
| --------------- | ----------- | ------------------------------------------------------------------ | ----------------------------------------- |
|
|
50
|
+
| validate() | `boolean` | Validates the field and sets error state. Returns `true` if valid. | 校验字段并设置错误状态,有效返回 `true`。 |
|
|
51
|
+
| clearError() | `void` | Clears the validation error. | 清除校验错误。 |
|
|
52
|
+
| getError() | `string` | Returns the current validation error message. | 返回当前校验错误消息。 |
|
|
53
|
+
| getFieldValue() | `unknown` | Returns the current field value (type-aware). | 返回当前字段值(类型感知)。 |
|
|
54
|
+
|
|
55
|
+
## Properties (Getters) / 只读属性
|
|
56
|
+
|
|
57
|
+
| Name | Type | Description (EN) | Description (CN) |
|
|
58
|
+
| ------- | --------- | -------------------------------------------------------------- | -------------------------------- |
|
|
59
|
+
| visible | `boolean` | Whether the field is visible (controlled by dependency rules). | 字段是否可见(由依赖规则控制)。 |
|
|
60
|
+
|
|
61
|
+
## Examples / 示例
|
|
62
|
+
|
|
63
|
+
### 基本用法
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<aithe-autoform-item
|
|
67
|
+
name="email"
|
|
68
|
+
type="input"
|
|
69
|
+
label="Email"
|
|
70
|
+
icon="mail"
|
|
71
|
+
tooltip="Your work email"
|
|
72
|
+
description="We will never share your email."
|
|
73
|
+
required
|
|
74
|
+
></aithe-autoform-item>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 选择类控件
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<aithe-autoform-item
|
|
81
|
+
name="country"
|
|
82
|
+
type="select"
|
|
83
|
+
label="Country"
|
|
84
|
+
.options='[{ "id": "cn", "label": "China" }, { "id": "us", "label": "USA" }]'
|
|
85
|
+
></aithe-autoform-item>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 带校验规则
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<aithe-autoform-item
|
|
92
|
+
name="phone"
|
|
93
|
+
type="input"
|
|
94
|
+
inputType="tel"
|
|
95
|
+
label="Phone"
|
|
96
|
+
required
|
|
97
|
+
pattern="^1[3-9]\d{9}$"
|
|
98
|
+
message="Please enter a valid phone number"
|
|
99
|
+
></aithe-autoform-item>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 密码输入(带明文切换)
|
|
103
|
+
|
|
104
|
+
```html
|
|
105
|
+
<aithe-autoform-item
|
|
106
|
+
name="password"
|
|
107
|
+
type="input"
|
|
108
|
+
inputType="password"
|
|
109
|
+
label="Password"
|
|
110
|
+
icon="lock"
|
|
111
|
+
required
|
|
112
|
+
placeholder="Enter your password"
|
|
113
|
+
message="Password is required"
|
|
114
|
+
></aithe-autoform-item>
|
|
115
|
+
```
|
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
|
|
8
8
|
| Name | Description (EN) | Description (CN) |
|
|
9
9
|
| --------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
|
|
10
|
-
| (default) | Default slot for custom actions below the form items.
|
|
10
|
+
| (default) | Default slot for custom actions (buttons) below the form items. Use together with `show-submit` to control the built-in submit button. | 表单项下方的自定义操作区域(按钮),配合 `show-submit` 属性控制内置提交按钮的显隐。 |
|
|
11
11
|
|
|
12
12
|
## Properties / 属性
|
|
13
13
|
|
|
14
14
|
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
15
|
| ------------------ | ------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
16
|
-
| fields | String | '[]' | JSON string of field configurations. Each field supports: name, type, label, icon, tooltip, description, dft, rules (required/pattern/message), placeholder, disabled, options, dependencies, rules (dependency). | 字段配置的 JSON 字符串。每个字段支持:name、type、label、icon、tooltip、description、dft、rules(required/pattern/message)、placeholder、disabled、options、dependencies、rules
|
|
16
|
+
| fields | String | '[]' | JSON string of field configurations. Each field supports: name, type, label, icon, tooltip, description, dft, rules (required/pattern/message), placeholder, disabled, options, dependencies, rules (dependency), inputType (for type="input", e.g. `password`/`email`/`tel`; `password` renders a visibility toggle). | 字段配置的 JSON 字符串。每个字段支持:name、type、label、icon、tooltip、description、dft、rules(required/pattern/message)、placeholder、disabled、options、dependencies、rules(依赖联动)、inputType(用于 type="input",如 `password`/`email`/`tel`;`password` 渲染明文切换按钮)。 |
|
|
17
17
|
| submitText | String | '' | Custom submit button label. Falls back to i18n key `form.autoform.submit`. | 自定义提交按钮文本。缺省使用 i18n 键 `form.autoform.submit`。 |
|
|
18
18
|
| loading | Boolean | false | Whether the form is in a submitting state. | 表单是否处于提交中状态。 |
|
|
19
19
|
| validate-on-change | Boolean | true | Whether to validate on every field change. | 是否在每次字段变更时实时校验。 |
|
|
20
|
+
| initial-values | Object / String | {} | Initial values for form fields, as an object or JSON string. Overrides `dft` for each matching field. | 表单字段初始值,支持对象或 JSON 字符串,覆盖对应字段的 `dft`。 |
|
|
21
|
+
| show-submit | Boolean | true | Whether to show the built-in submit button. Set to `false` when using custom action slot. | 是否显示内置提交按钮,设为 `false` 时使用自定义 slot。 |
|
|
20
22
|
|
|
21
23
|
## Methods / 方法
|
|
22
24
|
|
|
@@ -25,6 +27,7 @@
|
|
|
25
27
|
| validate | — | boolean | Validate all fields and return whether the form is valid. | 校验所有字段并返回表单是否有效。 |
|
|
26
28
|
| getValues | — | Record<string, unknown> | Return current values of all fields. | 返回所有字段的当前值。 |
|
|
27
29
|
| reset | — | void | Reset all fields to their default values and clear errors. | 重置所有字段为缺省值并清除错误。 |
|
|
30
|
+
| submit | — | void | Trigger form validation and submission programmatically. Emits aithe-submit if valid. | 编程触发表单校验和提交,通过后触发 aithe-submit 事件。 |
|
|
28
31
|
|
|
29
32
|
## Events / 事件
|
|
30
33
|
|
|
@@ -41,7 +44,7 @@
|
|
|
41
44
|
| input | Single-line text input. | 单行文本输入。 |
|
|
42
45
|
| textarea | Multi-line text input. | 多行文本输入。 |
|
|
43
46
|
| number | Numeric input. | 数值输入。 |
|
|
44
|
-
| password | Password input.
|
|
47
|
+
| password | Password input with a visibility toggle suffix icon. | 密码输入,后缀图标切换明文显示。 |
|
|
45
48
|
| email | Email input. | 邮箱输入。 |
|
|
46
49
|
| select | Dropdown selector. | 下拉选择器。 |
|
|
47
50
|
| radio | Radio button group. | 单选按钮组。 |
|
|
@@ -261,6 +264,7 @@ String values use single or double quotes. Boolean values use `true`/`false`. Nu
|
|
|
261
264
|
fields='[
|
|
262
265
|
{"name":"username","type":"input","label":"Username","icon":"user","required":true,"message":"Username is required","placeholder":"Enter username"},
|
|
263
266
|
{"name":"email","type":"input","label":"Email","tooltip":"Your work email","required":true,"inputType":"email","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$","message":"Invalid email","placeholder":"you@company.com"},
|
|
267
|
+
{"name":"password","type":"input","label":"Password","icon":"lock","required":true,"inputType":"password","placeholder":"Enter your password","message":"Password is required"},
|
|
264
268
|
{"name":"role","type":"select","label":"Role","options":"[{\\"label\\":\\"Admin\\",\\"id\\":\\"admin\\"},{\\"label\\":\\"Editor\\",\\"id\\":\\"editor\\"},{\\"label\\":\\"Viewer\\",\\"id\\":\\"viewer\\"}]","dft":"viewer"},
|
|
265
269
|
{"name":"notifications","type":"switch","label":"Notifications","dft":"true"}
|
|
266
270
|
]'
|
|
@@ -30,15 +30,24 @@
|
|
|
30
30
|
|
|
31
31
|
## Option Fields / 选项字段
|
|
32
32
|
|
|
33
|
-
| Field
|
|
34
|
-
|
|
35
|
-
| label
|
|
36
|
-
| id
|
|
37
|
-
| icon
|
|
38
|
-
| variant | AitheVariant | Visual variant / semantic color for the option.
|
|
33
|
+
| Field | Type | Description (EN) | Description (CN) |
|
|
34
|
+
| ------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
35
|
+
| label | `string` | Display text. | 显示文本。 |
|
|
36
|
+
| id | `string` | Unique value emitted on select. | 选择时发出的唯一值。 |
|
|
37
|
+
| icon | `string` | Icon name rendered before the label via aithe-icon. | 通过 aithe-icon 在标签前渲染的图标名称。 |
|
|
38
|
+
| variant | AitheVariant | Visual variant / semantic color for the option. | 选项的视觉变体/语义色。 |
|
|
39
|
+
| group | `string` | Group name for grouped rendering. When any option carries a `group` field, all options are aggregated by `group` and rendered under a group header. | 分组名称,用于分组显示。任一选项携带 `group` 字段时,所有选项按 `group` 聚合,每组前置分组标题渲染。 |
|
|
40
|
+
|
|
41
|
+
## Grouped Rendering / 分组渲染
|
|
42
|
+
|
|
43
|
+
When any option in `options` carries a `group` field, the combobox automatically switches to grouped rendering mode: options are aggregated by `group` (preserving insertion order), each group is preceded by a `.group-header` title, and options within a group are indented. Options without a `group` field are collected under an untitled section. When no option carries `group`, rendering falls back to the flat list.
|
|
44
|
+
|
|
45
|
+
当 `options` 中任一选项携带 `group` 字段时,combobox 自动切换到分组渲染模式:选项按 `group` 聚合(保留插入顺序),每组前置 `.group-header` 标题,组内选项缩进显示。未携带 `group` 字段的选项归入无标题分组。无任何 `group` 字段时回退为扁平列表渲染。
|
|
39
46
|
|
|
40
47
|
## Examples / 示例
|
|
41
48
|
|
|
49
|
+
### 基本用法
|
|
50
|
+
|
|
42
51
|
```html
|
|
43
52
|
<aithe-combobox
|
|
44
53
|
options='[{"label":"Apple","id":"apple"},{"label":"Banana","id":"banana"}]'
|
|
@@ -46,4 +55,15 @@
|
|
|
46
55
|
icon="search"
|
|
47
56
|
filterable
|
|
48
57
|
></aithe-combobox>
|
|
49
|
-
```
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 分组选项
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<aithe-combobox
|
|
64
|
+
title="Preset search"
|
|
65
|
+
icon="search"
|
|
66
|
+
placeholder="Search presets"
|
|
67
|
+
options='[{"label":"A/B Test","id":"ab-test","group":"Analytics","icon":"barChart"},{"label":"Funnel","id":"funnel","group":"Analytics","icon":"filter"},{"label":"Assistant Shell","id":"assistant-shell","group":"Automation","icon":"terminal"},{"label":"Workflow Editor","id":"workflow-editor","group":"Automation","icon":"edit"}]'
|
|
68
|
+
></aithe-combobox>
|
|
69
|
+
```
|
package/docs/api/form/select.md
CHANGED
|
@@ -5,46 +5,55 @@
|
|
|
5
5
|
|
|
6
6
|
## Slots / 插槽
|
|
7
7
|
|
|
8
|
-
| Name
|
|
9
|
-
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
| --------- | ------------------------------------------------- | ----------------------------------------- |
|
|
10
10
|
| (default) | Default slot (unused; content driven by options). | 默认插槽(未使用,内容由 options 控制)。 |
|
|
11
11
|
|
|
12
12
|
## Properties / 属性
|
|
13
13
|
|
|
14
|
-
| Name
|
|
15
|
-
|
|
16
|
-
| optionsJson | String
|
|
17
|
-
| options
|
|
18
|
-
| value
|
|
19
|
-
| title
|
|
20
|
-
| icon
|
|
21
|
-
| placeholder | String
|
|
22
|
-
| searchable
|
|
23
|
-
| clearable
|
|
24
|
-
| disabled
|
|
25
|
-
| placement
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
| ----------- | ----------------------------- | -------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- |
|
|
16
|
+
| optionsJson | String | '' | JSON string of select options. | 选项的 JSON 字符串。 |
|
|
17
|
+
| options | AitheSelectOption[] | [] | Array of select option objects. Each option supports `icon` and `variant` (AitheVariant) fields. | 选项对象数组。每个选项支持 `icon` 和 `variant`(AitheVariant)字段。 |
|
|
18
|
+
| value | String | '' | Currently selected value. | 当前选中的值。 |
|
|
19
|
+
| title | `string` | `''` | Display title (shown as tooltip). | 显示标题(作为工具提示)。 |
|
|
20
|
+
| icon | `string` | `''` | Icon name to display before the selected value. | 在选中值前显示的图标名称。 |
|
|
21
|
+
| placeholder | String | '请选择' | Placeholder text shown when no value is selected. | 无选中值时的占位文本。 |
|
|
22
|
+
| searchable | Boolean | false | Whether the select supports search/filter. | 是否支持搜索过滤。 |
|
|
23
|
+
| clearable | Boolean | false | Whether the selected value can be cleared. | 是否允许清除选中值。 |
|
|
24
|
+
| disabled | Boolean | false | Whether the select is disabled. | 是否禁用。 |
|
|
25
|
+
| placement | 'bottom-start' \| 'top-start' | 'bottom-start' | Dropdown panel placement. | 下拉面板位置。 |
|
|
26
26
|
|
|
27
27
|
## Events / 事件
|
|
28
28
|
|
|
29
|
-
| Name
|
|
30
|
-
|
|
31
|
-
| aithe-change
|
|
32
|
-
| aithe-clear
|
|
33
|
-
| aithe-
|
|
29
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
30
|
+
| --------------------- | ----------------- | ------------------------------------------ | -------------------------- |
|
|
31
|
+
| aithe-change | { option, value } | Emitted when a value is selected. | 选中值变更时触发。 |
|
|
32
|
+
| aithe-clear | — | Emitted when the value is cleared. | 值被清除时触发。 |
|
|
33
|
+
| aithe-dropdown-change | { open } | Emitted when the dropdown opens or closes. | 下拉框开关状态变更时触发。 |
|
|
34
34
|
|
|
35
35
|
## Option Fields / 选项字段
|
|
36
36
|
|
|
37
|
-
| Field
|
|
38
|
-
|
|
39
|
-
| label
|
|
40
|
-
| id
|
|
41
|
-
| disabled
|
|
42
|
-
| description | `string`
|
|
43
|
-
| icon
|
|
44
|
-
| variant
|
|
37
|
+
| Field | Type | Description (EN) | Description (CN) |
|
|
38
|
+
| ----------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
39
|
+
| label | `string` | Display text. | 显示文本。 |
|
|
40
|
+
| id | `string` | Unique value emitted on select. | 选择时发出的唯一值。 |
|
|
41
|
+
| disabled | `boolean` | Whether the option is non-interactive. | 是否不可交互。 |
|
|
42
|
+
| description | `string` | Secondary description line. | 二级描述行。 |
|
|
43
|
+
| icon | `string` | Icon name rendered before the label via aithe-icon. | 通过 aithe-icon 在标签前渲染的图标名称。 |
|
|
44
|
+
| variant | AitheVariant | Visual variant / semantic color for the option. | 选项的视觉变体/语义色。 |
|
|
45
|
+
| group | `string` | Group name for grouped rendering. When any option carries a `group` field, all options are aggregated by `group` and rendered under a group header. | 分组名称,用于分组显示。任一选项携带 `group` 字段时,所有选项按 `group` 聚合,每组前置分组标题渲染。 |
|
|
46
|
+
|
|
47
|
+
## Grouped Rendering / 分组渲染
|
|
48
|
+
|
|
49
|
+
When any option in `options` carries a `group` field, the select automatically switches to grouped rendering mode: options are aggregated by `group` (preserving insertion order), each group is preceded by a `.group-header` title, and options within a group are indented. Options without a `group` field are collected under an untitled section. When no option carries `group`, rendering falls back to the flat list. Keyboard navigation (`activeIndex`) is maintained via a flattened index across groups.
|
|
50
|
+
|
|
51
|
+
当 `options` 中任一选项携带 `group` 字段时,select 自动切换到分组渲染模式:选项按 `group` 聚合(保留插入顺序),每组前置 `.group-header` 标题,组内选项缩进显示。未携带 `group` 字段的选项归入无标题分组。无任何 `group` 字段时回退为扁平列表渲染。键盘导航(`activeIndex`)通过跨分组的扁平索引维护。
|
|
45
52
|
|
|
46
53
|
## Examples / 示例
|
|
47
54
|
|
|
55
|
+
### 基本用法
|
|
56
|
+
|
|
48
57
|
```html
|
|
49
58
|
<aithe-select
|
|
50
59
|
options='[{"id":"a","label":"Option A"},{"id":"b","label":"Option B"}]'
|
|
@@ -53,4 +62,17 @@
|
|
|
53
62
|
searchable
|
|
54
63
|
clearable
|
|
55
64
|
></aithe-select>
|
|
56
|
-
```
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 分组选项
|
|
68
|
+
|
|
69
|
+
```html
|
|
70
|
+
<aithe-select
|
|
71
|
+
title="Region selector"
|
|
72
|
+
icon="globe"
|
|
73
|
+
placeholder="Choose a city"
|
|
74
|
+
clearable
|
|
75
|
+
searchable
|
|
76
|
+
options='[{"label":"上海","id":"sh","group":"华东"},{"label":"杭州","id":"hz","group":"华东"},{"label":"北京","id":"bj","group":"华北"},{"label":"天津","id":"tj","group":"华北"},{"label":"广州","id":"gz","group":"华南"},{"label":"深圳","id":"sz","group":"华南"}]'
|
|
77
|
+
></aithe-select>
|
|
78
|
+
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# AitheLogPanel / AitheLogPanel 日志面板
|
|
2
|
+
|
|
3
|
+
> Floating or inline log panel that subscribes to the global `logger` and displays log entries with level filtering, search, copy, and resize support.
|
|
4
|
+
> 浮动或内联日志面板,订阅全局 `logger` 并展示日志条目,支持级别过滤、搜索、复制和拖拽调整高度。
|
|
5
|
+
|
|
6
|
+
## Properties / 属性
|
|
7
|
+
|
|
8
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
9
|
+
| --------------- | ----------------------- | ----------- | ------------------------------------------------------------------------------- | ------------------------------------------------- |
|
|
10
|
+
| open | `boolean` | `false` | Whether the panel is expanded. | 面板是否展开。 |
|
|
11
|
+
| panel-placement | `'overlay' \| 'inline'` | `'overlay'` | Placement mode: `overlay` floats at bottom-right; `inline` fills the container. | 放置模式:`overlay` 右下浮动;`inline` 填充容器。 |
|
|
12
|
+
|
|
13
|
+
## Events / 事件
|
|
14
|
+
|
|
15
|
+
| Name | Detail | Cancelable | Description (EN) | Description (CN) |
|
|
16
|
+
| ---------------- | ------------------- | ---------- | ---------------------------------- | --------------------- |
|
|
17
|
+
| log-panel-toggle | `{ open: boolean }` | No | Emitted when the panel is toggled. | 面板展开/收起时触发。 |
|
|
18
|
+
|
|
19
|
+
## CSS Custom Properties / CSS 自定义属性
|
|
20
|
+
|
|
21
|
+
| Name | Default | Description (EN) | Description (CN) |
|
|
22
|
+
| -------------------------- | ------- | ----------------------------------- | -------------------- |
|
|
23
|
+
| `--aithe-log-panel-height` | `200px` | Height of the panel in inline mode. | 内联模式下面板高度。 |
|
|
24
|
+
|
|
25
|
+
## Examples / 示例
|
|
26
|
+
|
|
27
|
+
### 浮动模式(默认)
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<aithe-log-panel open></aithe-log-panel>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### 内联模式
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<aithe-log-panel open panel-placement="inline"></aithe-log-panel>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 监听切换事件
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
const panel = document.querySelector('aithe-log-panel');
|
|
43
|
+
panel.addEventListener('log-panel-toggle', (e) => {
|
|
44
|
+
console.log('Panel open:', e.detail.open);
|
|
45
|
+
});
|
|
46
|
+
```
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
| mobile-breakpoint | `number` | `768` | Viewport width threshold (px); when ≤ this value, overlay mode is auto-enabled and sidebar collapses. | 移动端断点(像素);视口宽度 ≤ 此值时自动启用 overlay 并收起。 |
|
|
37
37
|
| expanded-width | `string` | `'260px'` | Sidebar width when expanded (CSS value). | 展开时的侧边栏宽度。 |
|
|
38
38
|
| collapsed-width | `string` | `'64px'` | Sidebar width when collapsed (CSS value). | 收起时的侧边栏宽度。 |
|
|
39
|
-
| item-filter | `
|
|
39
|
+
| item-filter | `AitheTreeNodeFilter \| null` | 内置默认值 | Filter callback for menu items. Return `true` to show, `false` to hide. Defaults to `(item) => item.hasPermission !== false` — items with `hasPermission: false` are hidden. Useful for permission control. | 菜单项过滤回调。返回 `true` 显示,`false` 隐藏。默认值为 `(item) => item.hasPermission !== false` — 设置 `hasPermission: false` 的项会被隐藏。适用于权限控制。 |
|
|
40
40
|
|
|
41
41
|
## Events / 事件
|
|
42
42
|
|
|
43
43
|
| Name | Detail | Cancelable | Description (EN) | Description (CN) |
|
|
44
44
|
| --------------------- | ------------------------ | ---------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
45
|
-
| aithe-select | `{ value: string }`
|
|
45
|
+
| aithe-select | `{ value: string, item: AitheTreeNodeMeta }` | No | Propagated from the inner `<aithe-tree-menu>` (composed event). Sidebar does not re-emit — listen on the sidebar element directly. `value` is the item's `id`, `item` is the full node metadata. | 由内部 `<aithe-tree-menu>` 透传(composed 事件)。sidebar 不重新发射 — 直接监听 sidebar 元素即可。`value` 为项的 `id`,`item` 为完整节点元数据。 |
|
|
46
46
|
| aithe-collapse-change | `{ collapsed: boolean }` | Yes | Emitted when sidebar collapse state is about to change. Call `preventDefault()` to suppress the toggle. | 侧边栏伸缩状态即将变更时发出。调用 `preventDefault()` 可阻止切换。 |
|
|
47
47
|
|
|
48
48
|
## AitheTreeNodeMeta / 树节点元数据
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
| id | `string` | Unique identifier. | 节点唯一标识。 |
|
|
54
54
|
| icon | `string` | Icon name (via `aithe-icon`). | 图标名称。 |
|
|
55
55
|
| disabled | `boolean` | Whether the node is disabled. | 是否禁用节点。 |
|
|
56
|
+
| hasPermission | `boolean` | Permission flag. When set to `false`, the item is hidden by the default `itemFilter`. | 权限标记。设为 `false` 时,默认 `itemFilter` 会隐藏该项。 |
|
|
56
57
|
| intent | `AitheVariant` | Visual variant / semantic color. | 视觉变体/语义色。 |
|
|
57
58
|
| children | `AitheTreeNodeMeta[]` | Nested child nodes. | 嵌套子节点。 |
|
|
58
59
|
| i18n | `string` | i18n translation key. When set, `t(i18n, label)` is used to translate the label; `label` serves as the default value. | 国际化翻译键。设置后通过 `t(i18n, label)` 翻译 label,`label` 作为缺省值。 |
|
package/docs/api/summary.md
CHANGED
|
@@ -40,8 +40,6 @@ Structural layout primitives for page composition. 页面结构布局基础组
|
|
|
40
40
|
| [Space](layout/space.md) | `<aithe-space>` | Equal spacing helper for child elements. 等间距辅助组件。 |
|
|
41
41
|
| [Collapse](layout/collapse.md) | `<aithe-collapse>` | Accordion / multi-expand collapse container. 手风琴/多展开折叠容器。 |
|
|
42
42
|
| [Collapse Item](layout/collapse-item.md) | `<aithe-collapse-item>` | Single collapsible panel. 单个可折叠面板。 |
|
|
43
|
-
| [Timeline](data/timeline.md) | `<aithe-timeline>` | Timeline container for process records. 时间线容器。 |
|
|
44
|
-
| [Timeline Item](data/timeline-item.md) | `<aithe-timeline-item>` | Single timeline node. 时间线节点。 |
|
|
45
43
|
| [Affix](layout/affix.md) | `<aithe-affix>` | Sticky wrapper that pins content on scroll. 固定/吸顶包装器。 |
|
|
46
44
|
|
|
47
45
|
---
|
|
@@ -58,7 +56,7 @@ Application-level layout and routing components for admin-style applications.
|
|
|
58
56
|
| [Page](framework/page.md) | `<aithe-page>` | Route container that renders the matched page component. 路由容器,渲染匹配到的页面组件。 |
|
|
59
57
|
| [Dashboard](framework/dashboard.md) | `<aithe-dashboard>` | Drag-and-drop dashboard with grid layout, toolbar, and state persistence. 拖拽式仪表盘,支持格子布局、工具栏和状态持久化。 |
|
|
60
58
|
| [Dashboard Panel](framework/dashboard-panel.md) | `<aithe-dashboard-panel>` | Dashboard panel card with drag, close, maximize and slot content. 仪表盘面板卡片,支持拖拽、关闭、最大化和插槽内容。 |
|
|
61
|
-
|
|
59
|
+
| [Log Panel](framework/log-panel.md) | `<aithe-log-panel>` | Floating/inline log panel with level filtering and search. 浮动/内联日志面板,支持级别过滤和搜索。 |
|
|
62
60
|
|
|
63
61
|
---
|
|
64
62
|
|
|
@@ -82,25 +80,26 @@ Components for site navigation and wayfinding. 站点导航和路径指引组件
|
|
|
82
80
|
|
|
83
81
|
Interactive form controls for data entry and selection. 交互式表单控件,用于数据输入和选择。
|
|
84
82
|
|
|
85
|
-
| Component | Tag | Description
|
|
86
|
-
| ---------------------------------------- | ------------------------ |
|
|
87
|
-
| [Checkbox](form/checkbox.md) | `<aithe-checkbox>` | Binary selection control. 二选控件。
|
|
88
|
-
| [Checkbox Group](form/checkbox-group.md) | `<aithe-checkbox-group>` | Multi-select group of checkboxes. 多选复选框组。
|
|
89
|
-
| [Radio](form/radio.md) | `<aithe-radio>` | Single selection control. 单选控件。
|
|
90
|
-
| [Radio Group](form/radio-group.md) | `<aithe-radio-group>` | Group of mutually exclusive radios. 单选按钮组。
|
|
91
|
-
| [Select](form/select.md) | `<aithe-select>` | Dropdown single/multi selector. 下拉单选/多选器。
|
|
92
|
-
| [Switch](form/switch.md) | `<aithe-switch>` | Toggle switch for on/off state. 开关切换控件。
|
|
93
|
-
| [Color Picker](form/color-picker.md) | `<aithe-color-picker>` | Color selection input. 颜色选择器。
|
|
94
|
-
| [Combobox](form/combobox.md) | `<aithe-combobox>` | Searchable dropdown with free input. 可搜索下拉输入框。
|
|
95
|
-
| [Date Picker](form/date-picker.md) | `<aithe-date-picker>` | Date selection input. 日期选择器。
|
|
96
|
-
| [Time Picker](form/time-picker.md) | `<aithe-time-picker>` | Time selection input. 时间选择器。
|
|
97
|
-
| [Slider](form/slider.md) | `<aithe-slider>` | Range slider for numeric input. 滑块数值输入。
|
|
98
|
-
| [Rate](form/rate.md) | `<aithe-rate>` | Star rating input. 星级评分输入。
|
|
99
|
-
| [Form](form/form.md) | `<aithe-form>` | Form container with validation. 表单容器,支持校验。
|
|
100
|
-
| [Form Item](form/form-item.md) | `<aithe-form-item>` | Form field wrapper with label and validation. 表单字段包装器。
|
|
101
|
-
| [Upload](form/upload.md) | `<aithe-upload>` | File upload control. 文件上传控件。
|
|
102
|
-
| [Transfer](form/transfer.md) | `<aithe-transfer>` | Dual-list transfer selector. 双栏穿梭选择器。
|
|
103
|
-
| [Autoform](form/autoform.md) | `<aithe-autoform>` | JSON-driven auto-rendering form with validation. JSON 配置驱动的自动渲染表单,支持校验。
|
|
83
|
+
| Component | Tag | Description |
|
|
84
|
+
| ---------------------------------------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------- |
|
|
85
|
+
| [Checkbox](form/checkbox.md) | `<aithe-checkbox>` | Binary selection control. 二选控件。 |
|
|
86
|
+
| [Checkbox Group](form/checkbox-group.md) | `<aithe-checkbox-group>` | Multi-select group of checkboxes. 多选复选框组。 |
|
|
87
|
+
| [Radio](form/radio.md) | `<aithe-radio>` | Single selection control. 单选控件。 |
|
|
88
|
+
| [Radio Group](form/radio-group.md) | `<aithe-radio-group>` | Group of mutually exclusive radios. 单选按钮组。 |
|
|
89
|
+
| [Select](form/select.md) | `<aithe-select>` | Dropdown single/multi selector. 下拉单选/多选器。 |
|
|
90
|
+
| [Switch](form/switch.md) | `<aithe-switch>` | Toggle switch for on/off state. 开关切换控件。 |
|
|
91
|
+
| [Color Picker](form/color-picker.md) | `<aithe-color-picker>` | Color selection input. 颜色选择器。 |
|
|
92
|
+
| [Combobox](form/combobox.md) | `<aithe-combobox>` | Searchable dropdown with free input. 可搜索下拉输入框。 |
|
|
93
|
+
| [Date Picker](form/date-picker.md) | `<aithe-date-picker>` | Date selection input. 日期选择器。 |
|
|
94
|
+
| [Time Picker](form/time-picker.md) | `<aithe-time-picker>` | Time selection input. 时间选择器。 |
|
|
95
|
+
| [Slider](form/slider.md) | `<aithe-slider>` | Range slider for numeric input. 滑块数值输入。 |
|
|
96
|
+
| [Rate](form/rate.md) | `<aithe-rate>` | Star rating input. 星级评分输入。 |
|
|
97
|
+
| [Form](form/form.md) | `<aithe-form>` | Form container with validation. 表单容器,支持校验。 |
|
|
98
|
+
| [Form Item](form/form-item.md) | `<aithe-form-item>` | Form field wrapper with label and validation. 表单字段包装器。 |
|
|
99
|
+
| [Upload](form/upload.md) | `<aithe-upload>` | File upload control. 文件上传控件。 |
|
|
100
|
+
| [Transfer](form/transfer.md) | `<aithe-transfer>` | Dual-list transfer selector. 双栏穿梭选择器。 |
|
|
101
|
+
| [Autoform](form/autoform.md) | `<aithe-autoform>` | JSON-driven auto-rendering form with validation. JSON 配置驱动的自动渲染表单,支持校验。 |
|
|
102
|
+
| [Autoform Item](form/autoform-item.md) | `<aithe-autoform-item>` | JSON-driven form item with three-section layout and dependency rules. JSON 驱动表单项,三段式布局,支持依赖联动规则。 |
|
|
104
103
|
|
|
105
104
|
---
|
|
106
105
|
|
|
@@ -126,18 +125,22 @@ Components for user feedback, overlays, and notifications. 用户反馈、浮层
|
|
|
126
125
|
|
|
127
126
|
Components for displaying and interacting with structured data. 结构化数据展示和交互组件。
|
|
128
127
|
|
|
129
|
-
| Component
|
|
130
|
-
|
|
|
131
|
-
| [Table](data/table.md)
|
|
132
|
-
| [Table Column](data/table-column.md)
|
|
133
|
-
| [Tabs](data/tabs.md)
|
|
134
|
-
| [Tab Pane](data/tab-pane.md)
|
|
135
|
-
| [
|
|
136
|
-
| [Tree
|
|
137
|
-
| [
|
|
138
|
-
| [
|
|
139
|
-
| [Metrics
|
|
140
|
-
| [
|
|
128
|
+
| Component | Tag | Description |
|
|
129
|
+
| -------------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
130
|
+
| [Table](data/table.md) | `<aithe-table>` | Data table with sorting and selection. 数据表格,支持排序和选择。 |
|
|
131
|
+
| [Table Column](data/table-column.md) | `<aithe-table-column>` | Column definition for DOM-defined mode. DOM 定义模式的列定义。 |
|
|
132
|
+
| [Tabs](data/tabs.md) | `<aithe-tabs>` | Tab navigation container. 标签页导航容器。 |
|
|
133
|
+
| [Tab Pane](data/tab-pane.md) | `<aithe-tab-pane>` | Single tab content panel. 单个标签页内容面板。 |
|
|
134
|
+
| [Tab Group](data/tabs.md) | `<aithe-tab-group>` | Alias of `<aithe-tabs>`. `<aithe-tabs>` 的别名组件。 |
|
|
135
|
+
| [Tree](data/tree.md) | `<aithe-tree>` | Hierarchical tree view. 层级树视图。 |
|
|
136
|
+
| [Tree Menu](data/tree-menu.md) | `<aithe-tree-menu>` | Data-driven tree menu with active highlighting. 数据驱动树形菜单,支持高亮选中。 |
|
|
137
|
+
| [Dropdown](data/dropdown.md) | `<aithe-dropdown>` | Dropdown menu overlay. 下拉菜单浮层。 |
|
|
138
|
+
| [Metrics](data/metrics.md) | `<aithe-metrics>` | Business metric display with label, value and variant colors. 业务指标展示,含标签、数值和 variant 颜色样式。 |
|
|
139
|
+
| [Metrics Group](data/metrics-group.md) | `<aithe-metrics-group>` | Container that groups multiple metrics with direction and gap. 业务指标组容器,支持方向和间距配置。 |
|
|
140
|
+
| [Pagination](data/pagination.md) | `<aithe-pagination>` | Page navigation for large datasets. 大数据集分页导航。 |
|
|
141
|
+
| [Timeline](data/timeline.md) | `<aithe-timeline>` | Timeline container for process records. 时间线容器。 |
|
|
142
|
+
| [Timeline Item](data/timeline-item.md) | `<aithe-timeline-item>` | Single timeline node. 时间线节点。 |
|
|
143
|
+
| [Box Table](data/box-table.md) | `<aithe-box-table>` | Dual-mode table/box view with sortable columns and selection. 双模式表格/盒子视图,支持排序和选择。 |
|
|
141
144
|
|
|
142
145
|
---
|
|
143
146
|
|
|
@@ -154,6 +157,14 @@ Rich content display and media components. 富内容展示和媒体组件。
|
|
|
154
157
|
| [Markdown Editor](display/markdown-editor.md) | `<aithe-markdown-editor>` | Markdown editor with live preview. Markdown 编辑器,带实时预览。 |
|
|
155
158
|
| [Code Editor](display/code-editor.md) | `<aithe-code-editor>` | Syntax-highlighted code editor with toolbar. 语法高亮代码编辑器,带工具栏。 |
|
|
156
159
|
| [Label](display/label.md) | `<aithe-label>` | Lightweight label component that renders a Markdown subset. 轻量级标签组件,渲染 Markdown 子集。 |
|
|
160
|
+
| [Box Overview](display/box.md) | — | Box component family overview (Mini Box / Brief Box / Detail Box). Box 组件族概览。 |
|
|
161
|
+
| [Mini Box](display/mini-box.md) | `<aithe-mini-box>` | Single-row compact record display (base class). 单行紧凑记录展示(基类)。 |
|
|
162
|
+
| [Brief Box](display/brief-box.md) | `<aithe-brief-box>` | Three-row brief record display with description. 三行简要记录展示,含描述行。 |
|
|
163
|
+
| [Detail Box](display/detail-box.md) | `<aithe-detail-box>` | Two-column detail record display. 双列详情记录展示。 |
|
|
164
|
+
| [Profile](display/profile.md) | `<aithe-profile>` | Profile display with icon/avatar, title and description. 档案展示,含图标/头像、标题和描述。 |
|
|
165
|
+
| [Description List](display/desc.md) | `<aithe-desc>` | Structured key-value description list. 结构化键值描述列表。 |
|
|
166
|
+
| [Description Item](display/desc-item.md) | `<aithe-desc-item>` | Single item in a description list with label and value. 描述列表中的单个条目,含标签和值。 |
|
|
167
|
+
| [Auto View](display/autoview.md) | `<aithe-autoview>` | JSON-driven read-only detail view, the display-only counterpart of autoform. JSON 驱动的只读详情视图,autoform 的只读镜像。 |
|
|
157
168
|
|
|
158
169
|
---
|
|
159
170
|
|
|
@@ -191,7 +202,7 @@ Theme, shape, shadow, typo, and locale management components. The **Theme × Sha
|
|
|
191
202
|
|
|
192
203
|
| Component | Tag | Description |
|
|
193
204
|
| --------------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
194
|
-
| [Theme Switch](theme/theme-switch.md) | `<aithe-theme-switch>` | Unified appearance switch — theme, shadow, shape & typo in one dropdown. 统一外观切换器,整合主题、阴影、形状和排版。
|
|
205
|
+
| [Theme Switch](theme/theme-switch.md) | `<aithe-theme-switch>` | Unified appearance switch — theme, shadow, shape & typo in one dropdown. 统一外观切换器,整合主题、阴影、形状和排版。 |
|
|
195
206
|
| [Theme Picker](theme/theme-picker.md) | `<aithe-theme-picker>` | Grouped theme selector with color dot previews. 分组主题选择器,带色点预览。 |
|
|
196
207
|
| [Shape Picker](theme/shape-picker.md) | `<aithe-shape-picker>` | Shape style selector with preview thumbnails. 形状风格选择器,带预览缩略图。 |
|
|
197
208
|
| [Shadow Picker](theme/shadow-picker.md) | `<aithe-shadow-picker>` | Shadow style selector with preview thumbnails. 阴影风格选择器,带预览缩略图。 |
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
| Name | Detail | Cancelable | Description (EN) | Description (CN) |
|
|
22
22
|
| ------------------ | -------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
-
| aithe-theme-change | `{ category: string, value: string }` | Yes | Emitted when any option (theme/shadow/shape/typo) is selected. `category` is one of `'theme'`, `'shadow'`, `'shape'`, `'typo'
|
|
23
|
+
| aithe-theme-change | `{ category: string, value: string }` | Yes | Emitted when any option (theme/shadow/shape/typo) is selected. `category` is read from `item.category` on the selected tree-menu item (one of `'theme'`, `'shadow'`, `'shape'`, `'typo'`). Built-in switch (`aitheUI.setTheme()` / `aitheUI.setShadow()` / `aitheUI.setShape()` / `aitheUI.setTypo()`) runs by default. Call `preventDefault()` to suppress the built-in behavior and handle switching manually. | 选择任意选项(主题/阴影/形状/排版)时发出。`category` 从选中项的 `item.category` 读取(`'theme'`、`'shadow'`、`'shape'` 或 `'typo'`)。默认执行内置切换逻辑。调用 `preventDefault()` 可阻止内置切换,由外部自行处理。 |
|
|
24
24
|
|
|
25
25
|
## Menu Structure / 菜单结构
|
|
26
26
|
|