@aithe/aithe-ui 26.2.2 → 26.2.3
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 +210 -104
- package/dist/apps/admin/AGENTS.md +35 -0
- package/dist/apps/admin/app.d.ts +9 -0
- package/dist/apps/admin/app.d.ts.map +1 -0
- package/dist/apps/admin/components/admin-app.d.ts +26 -0
- package/dist/apps/admin/components/admin-app.d.ts.map +1 -0
- package/dist/apps/admin/components/admin-layout.d.ts +30 -0
- package/dist/apps/admin/components/admin-layout.d.ts.map +1 -0
- package/dist/apps/admin/datahub/auth.d.ts +21 -0
- package/dist/apps/admin/datahub/auth.d.ts.map +1 -0
- package/dist/apps/admin/datahub/dashboard.d.ts +16 -0
- package/dist/apps/admin/datahub/dashboard.d.ts.map +1 -0
- package/dist/apps/admin/datahub/index.d.ts +4 -0
- package/dist/apps/admin/datahub/index.d.ts.map +1 -0
- package/dist/apps/admin/datahub/menu.d.ts +11 -0
- package/dist/apps/admin/datahub/menu.d.ts.map +1 -0
- package/dist/apps/admin/datahub/mock/auth.d.ts +10 -0
- package/dist/apps/admin/datahub/mock/auth.d.ts.map +1 -0
- package/dist/apps/admin/datahub/mock/dashboard.d.ts +11 -0
- package/dist/apps/admin/datahub/mock/dashboard.d.ts.map +1 -0
- package/dist/apps/admin/datahub/mock/menu.d.ts +26 -0
- package/dist/apps/admin/datahub/mock/menu.d.ts.map +1 -0
- package/dist/apps/admin/i18n/de-DE.d.ts +6 -0
- package/dist/apps/admin/i18n/de-DE.d.ts.map +1 -0
- package/dist/apps/admin/i18n/en-US.d.ts +6 -0
- package/dist/apps/admin/i18n/en-US.d.ts.map +1 -0
- package/dist/apps/admin/i18n/es-ES.d.ts +6 -0
- package/dist/apps/admin/i18n/es-ES.d.ts.map +1 -0
- package/dist/apps/admin/i18n/fr-FR.d.ts +6 -0
- package/dist/apps/admin/i18n/fr-FR.d.ts.map +1 -0
- package/dist/apps/admin/i18n/index.d.ts +2 -0
- package/dist/apps/admin/i18n/index.d.ts.map +1 -0
- package/dist/apps/admin/i18n/ja-JP.d.ts +6 -0
- package/dist/apps/admin/i18n/ja-JP.d.ts.map +1 -0
- package/dist/apps/admin/i18n/ko-KR.d.ts +6 -0
- package/dist/apps/admin/i18n/ko-KR.d.ts.map +1 -0
- package/dist/apps/admin/i18n/pt-BR.d.ts +6 -0
- package/dist/apps/admin/i18n/pt-BR.d.ts.map +1 -0
- package/dist/apps/admin/i18n/zh-CN.d.ts +6 -0
- package/dist/apps/admin/i18n/zh-CN.d.ts.map +1 -0
- package/dist/apps/admin/i18n/zh-HK.d.ts +6 -0
- package/dist/apps/admin/i18n/zh-HK.d.ts.map +1 -0
- package/dist/apps/admin/i18n/zh-TW.d.ts +6 -0
- package/dist/apps/admin/i18n/zh-TW.d.ts.map +1 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts +32 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts.map +1 -0
- package/dist/apps/admin/pages/login-page.d.ts +25 -0
- package/dist/apps/admin/pages/login-page.d.ts.map +1 -0
- package/dist/apps/admin/pages/not-found-page.d.ts +14 -0
- package/dist/apps/admin/pages/not-found-page.d.ts.map +1 -0
- package/dist/apps/admin/pages/role-page.d.ts +14 -0
- package/dist/apps/admin/pages/role-page.d.ts.map +1 -0
- package/dist/apps/admin/pages/settings-page.d.ts +14 -0
- package/dist/apps/admin/pages/settings-page.d.ts.map +1 -0
- package/dist/apps/admin/pages/user-page.d.ts +14 -0
- package/dist/apps/admin/pages/user-page.d.ts.map +1 -0
- package/dist/apps/admin/router/index.d.ts +6 -0
- package/dist/apps/admin/router/index.d.ts.map +1 -0
- package/dist/apps/admin/standalone.d.ts.map +1 -0
- package/dist/apps/admin/store/auth.d.ts +21 -0
- package/dist/apps/admin/store/auth.d.ts.map +1 -0
- package/dist/apps/api/AGENTS.md +30 -0
- package/dist/apps/api/app.d.ts +3 -7
- package/dist/apps/api/app.d.ts.map +1 -1
- package/dist/apps/api/demo-data.d.ts +1 -1
- package/dist/apps/api/demo-data.d.ts.map +1 -1
- package/dist/apps/api/docs-viewer.d.ts +6 -3
- package/dist/apps/api/docs-viewer.d.ts.map +1 -1
- package/dist/apps/api/i18n/de-DE.d.ts +6 -0
- package/dist/apps/api/i18n/de-DE.d.ts.map +1 -0
- package/dist/apps/api/i18n/en-US.d.ts +1 -2
- package/dist/apps/api/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/api/i18n/es-ES.d.ts +6 -0
- package/dist/apps/api/i18n/es-ES.d.ts.map +1 -0
- package/dist/apps/api/i18n/fr-FR.d.ts +6 -0
- package/dist/apps/api/i18n/fr-FR.d.ts.map +1 -0
- package/dist/apps/api/i18n/index.d.ts.map +1 -1
- package/dist/apps/api/i18n/ja-JP.d.ts +6 -0
- package/dist/apps/api/i18n/ja-JP.d.ts.map +1 -0
- package/dist/apps/api/i18n/ko-KR.d.ts +6 -0
- package/dist/apps/api/i18n/ko-KR.d.ts.map +1 -0
- package/dist/apps/api/i18n/pt-BR.d.ts +6 -0
- package/dist/apps/api/i18n/pt-BR.d.ts.map +1 -0
- package/dist/apps/api/i18n/zh-CN.d.ts +1 -2
- package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-HK.d.ts +6 -0
- package/dist/apps/api/i18n/zh-HK.d.ts.map +1 -0
- package/dist/apps/api/i18n/zh-TW.d.ts +6 -0
- package/dist/apps/api/i18n/zh-TW.d.ts.map +1 -0
- package/dist/apps/api/pages/docs.d.ts.map +1 -1
- package/dist/apps/api/standalone.d.ts.map +1 -1
- package/dist/apps/demo/AGENTS.md +48 -0
- package/dist/apps/demo/app.d.ts +4 -7
- package/dist/apps/demo/app.d.ts.map +1 -1
- package/dist/apps/demo/editor.d.ts +6 -1
- package/dist/apps/demo/editor.d.ts.map +1 -1
- package/dist/apps/demo/helpers.d.ts.map +1 -1
- package/dist/apps/demo/i18n/de-DE.d.ts +6 -0
- package/dist/apps/demo/i18n/de-DE.d.ts.map +1 -0
- package/dist/apps/demo/i18n/en-US.d.ts +1 -2
- package/dist/apps/demo/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/demo/i18n/es-ES.d.ts +6 -0
- package/dist/apps/demo/i18n/es-ES.d.ts.map +1 -0
- package/dist/apps/demo/i18n/fr-FR.d.ts +6 -0
- package/dist/apps/demo/i18n/fr-FR.d.ts.map +1 -0
- package/dist/apps/demo/i18n/index.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ja-JP.d.ts +6 -0
- package/dist/apps/demo/i18n/ja-JP.d.ts.map +1 -0
- package/dist/apps/demo/i18n/ko-KR.d.ts +6 -0
- package/dist/apps/demo/i18n/ko-KR.d.ts.map +1 -0
- package/dist/apps/demo/i18n/pt-BR.d.ts +6 -0
- package/dist/apps/demo/i18n/pt-BR.d.ts.map +1 -0
- package/dist/apps/demo/i18n/zh-CN.d.ts +1 -2
- package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-HK.d.ts +6 -0
- package/dist/apps/demo/i18n/zh-HK.d.ts.map +1 -0
- package/dist/apps/demo/i18n/zh-TW.d.ts +6 -0
- package/dist/apps/demo/i18n/zh-TW.d.ts.map +1 -0
- package/dist/apps/demo/pages/autoform.d.ts +3 -0
- package/dist/apps/demo/pages/autoform.d.ts.map +1 -0
- package/dist/apps/demo/pages/basic.d.ts.map +1 -1
- package/dist/apps/demo/pages/code.d.ts +3 -0
- package/dist/apps/demo/pages/code.d.ts.map +1 -0
- package/dist/apps/demo/pages/container.d.ts.map +1 -1
- package/dist/apps/demo/pages/dashboard.d.ts +3 -0
- package/dist/apps/demo/pages/dashboard.d.ts.map +1 -0
- package/dist/apps/demo/pages/data.d.ts.map +1 -1
- package/dist/apps/demo/pages/display.d.ts.map +1 -1
- package/dist/apps/demo/pages/feedback.d.ts.map +1 -1
- package/dist/apps/demo/pages/form.d.ts.map +1 -1
- package/dist/apps/demo/pages/layout.d.ts.map +1 -1
- package/dist/apps/demo/pages/navigation.d.ts.map +1 -1
- package/dist/apps/demo/pages/progress.d.ts.map +1 -1
- package/dist/apps/demo/pages/theme.d.ts.map +1 -1
- package/dist/apps/demo/standalone.d.ts.map +1 -1
- package/dist/components/basic/AGENTS.md +34 -0
- package/dist/components/basic/avatar.d.ts +39 -2
- package/dist/components/basic/avatar.d.ts.map +1 -1
- package/dist/components/basic/badge.d.ts +21 -2
- package/dist/components/basic/badge.d.ts.map +1 -1
- package/dist/components/basic/button-group.d.ts +14 -2
- package/dist/components/basic/button-group.d.ts.map +1 -1
- package/dist/components/basic/button.d.ts +43 -1
- package/dist/components/basic/button.d.ts.map +1 -1
- package/dist/components/basic/card.d.ts +27 -7
- package/dist/components/basic/card.d.ts.map +1 -1
- package/dist/components/basic/chip.d.ts +17 -4
- package/dist/components/basic/chip.d.ts.map +1 -1
- package/dist/components/basic/divider.d.ts +14 -0
- package/dist/components/basic/divider.d.ts.map +1 -1
- package/dist/components/basic/empty.d.ts +11 -2
- package/dist/components/basic/empty.d.ts.map +1 -1
- package/dist/components/basic/icon.d.ts +81 -2
- package/dist/components/basic/icon.d.ts.map +1 -1
- package/dist/components/basic/input.d.ts +36 -7
- package/dist/components/basic/input.d.ts.map +1 -1
- package/dist/components/basic/tag.d.ts +22 -2
- package/dist/components/basic/tag.d.ts.map +1 -1
- package/dist/components/basic/textarea.d.ts +21 -5
- package/dist/components/basic/textarea.d.ts.map +1 -1
- package/dist/components/container/AGENTS.md +23 -0
- package/dist/components/container/callout.d.ts +14 -2
- package/dist/components/container/callout.d.ts.map +1 -1
- package/dist/components/container/details.d.ts +19 -3
- package/dist/components/container/details.d.ts.map +1 -1
- package/dist/components/container/scroller.d.ts +19 -3
- package/dist/components/container/scroller.d.ts.map +1 -1
- package/dist/components/container/split-panel.d.ts +23 -5
- package/dist/components/container/split-panel.d.ts.map +1 -1
- package/dist/components/data/AGENTS.md +34 -0
- package/dist/components/data/dropdown.d.ts +56 -0
- package/dist/components/data/dropdown.d.ts.map +1 -0
- package/dist/components/data/metrics-group.d.ts +110 -0
- package/dist/components/data/metrics-group.d.ts.map +1 -0
- package/dist/components/data/metrics.d.ts +120 -0
- package/dist/components/data/metrics.d.ts.map +1 -0
- package/dist/components/data/pagination.d.ts +14 -2
- package/dist/components/data/pagination.d.ts.map +1 -1
- package/dist/components/data/tab-pane.d.ts +23 -1
- package/dist/components/data/tab-pane.d.ts.map +1 -1
- package/dist/components/data/table-column.d.ts +46 -0
- package/dist/components/data/table-column.d.ts.map +1 -0
- package/dist/components/data/table.d.ts +60 -2
- package/dist/components/data/table.d.ts.map +1 -1
- package/dist/components/data/tabs.d.ts +24 -3
- package/dist/components/data/tabs.d.ts.map +1 -1
- package/dist/components/data/timeline-item.d.ts +24 -0
- package/dist/components/data/timeline-item.d.ts.map +1 -0
- package/dist/components/data/timeline.d.ts +49 -0
- package/dist/components/data/timeline.d.ts.map +1 -0
- package/dist/components/data/tree-menu.d.ts +63 -0
- package/dist/components/data/tree-menu.d.ts.map +1 -0
- package/dist/components/data/tree.d.ts +29 -2
- package/dist/components/data/tree.d.ts.map +1 -1
- package/dist/components/display/AGENTS.md +28 -0
- package/dist/components/display/animated-image.d.ts +14 -2
- package/dist/components/display/animated-image.d.ts.map +1 -1
- package/dist/components/display/carousel.d.ts +21 -3
- package/dist/components/display/carousel.d.ts.map +1 -1
- package/dist/components/display/code-editor.d.ts +246 -0
- package/dist/components/display/code-editor.d.ts.map +1 -0
- package/dist/components/display/comparison.d.ts +14 -2
- package/dist/components/display/comparison.d.ts.map +1 -1
- package/dist/components/display/label.d.ts +55 -0
- package/dist/components/display/label.d.ts.map +1 -0
- package/dist/components/display/markdown-editor.d.ts +134 -0
- package/dist/components/display/markdown-editor.d.ts.map +1 -0
- package/dist/components/display/markdown.d.ts +53 -3
- package/dist/components/display/markdown.d.ts.map +1 -1
- package/dist/components/feedback/AGENTS.md +30 -0
- package/dist/components/feedback/alert.d.ts +20 -3
- package/dist/components/feedback/alert.d.ts.map +1 -1
- package/dist/components/feedback/dialog.d.ts +27 -5
- package/dist/components/feedback/dialog.d.ts.map +1 -1
- package/dist/components/feedback/drawer.d.ts +36 -6
- package/dist/components/feedback/drawer.d.ts.map +1 -1
- package/dist/components/feedback/loading.d.ts +16 -2
- package/dist/components/feedback/loading.d.ts.map +1 -1
- package/dist/components/feedback/modal.d.ts +36 -6
- package/dist/components/feedback/modal.d.ts.map +1 -1
- package/dist/components/feedback/notification.d.ts +18 -3
- package/dist/components/feedback/notification.d.ts.map +1 -1
- package/dist/components/feedback/popover.d.ts +23 -4
- package/dist/components/feedback/popover.d.ts.map +1 -1
- package/dist/components/feedback/toast.d.ts +19 -2
- package/dist/components/feedback/toast.d.ts.map +1 -1
- package/dist/components/feedback/tooltip.d.ts +27 -4
- package/dist/components/feedback/tooltip.d.ts.map +1 -1
- package/dist/components/form/AGENTS.md +39 -0
- package/dist/components/form/autoform-item.d.ts +142 -0
- package/dist/components/form/autoform-item.d.ts.map +1 -0
- package/dist/components/form/autoform.d.ts +90 -0
- package/dist/components/form/autoform.d.ts.map +1 -0
- package/dist/components/form/checkbox-group.d.ts +24 -3
- package/dist/components/form/checkbox-group.d.ts.map +1 -1
- package/dist/components/form/checkbox.d.ts +22 -2
- package/dist/components/form/checkbox.d.ts.map +1 -1
- package/dist/components/form/color-picker.d.ts +19 -4
- package/dist/components/form/color-picker.d.ts.map +1 -1
- package/dist/components/form/combobox.d.ts +26 -3
- package/dist/components/form/combobox.d.ts.map +1 -1
- package/dist/components/form/date-picker.d.ts +16 -1
- package/dist/components/form/date-picker.d.ts.map +1 -1
- package/dist/components/form/form-item.d.ts +20 -1
- package/dist/components/form/form-item.d.ts.map +1 -1
- package/dist/components/form/form.d.ts +22 -3
- package/dist/components/form/form.d.ts.map +1 -1
- package/dist/components/form/radio-group.d.ts +23 -3
- package/dist/components/form/radio-group.d.ts.map +1 -1
- package/dist/components/form/radio.d.ts +19 -1
- package/dist/components/form/radio.d.ts.map +1 -1
- package/dist/components/form/rate.d.ts +14 -1
- package/dist/components/form/rate.d.ts.map +1 -1
- package/dist/components/form/select.d.ts +47 -8
- package/dist/components/form/select.d.ts.map +1 -1
- package/dist/components/form/slider.d.ts +17 -1
- package/dist/components/form/slider.d.ts.map +1 -1
- package/dist/components/form/switch.d.ts +16 -3
- package/dist/components/form/switch.d.ts.map +1 -1
- package/dist/components/form/time-picker.d.ts +14 -1
- package/dist/components/form/time-picker.d.ts.map +1 -1
- package/dist/components/form/transfer.d.ts +20 -2
- package/dist/components/form/transfer.d.ts.map +1 -1
- package/dist/components/form/upload.d.ts +20 -2
- package/dist/components/form/upload.d.ts.map +1 -1
- package/dist/components/framework/AGENTS.md +27 -0
- package/dist/components/framework/body.d.ts +62 -0
- package/dist/components/framework/body.d.ts.map +1 -0
- package/dist/components/framework/dashboard-panel.d.ts +123 -0
- package/dist/components/framework/dashboard-panel.d.ts.map +1 -0
- package/dist/components/framework/dashboard.d.ts +182 -0
- package/dist/components/framework/dashboard.d.ts.map +1 -0
- package/dist/components/framework/header.d.ts +42 -0
- package/dist/components/framework/header.d.ts.map +1 -0
- package/dist/components/framework/log-panel.d.ts +32 -0
- package/dist/components/framework/log-panel.d.ts.map +1 -0
- package/dist/components/framework/page.d.ts +46 -0
- package/dist/components/framework/page.d.ts.map +1 -0
- package/dist/components/framework/sidebar.d.ts +98 -0
- package/dist/components/framework/sidebar.d.ts.map +1 -0
- package/dist/components/layout/AGENTS.md +27 -0
- package/dist/components/layout/affix.d.ts +15 -3
- package/dist/components/layout/affix.d.ts.map +1 -1
- package/dist/components/layout/col.d.ts +16 -1
- package/dist/components/layout/col.d.ts.map +1 -1
- package/dist/components/layout/collapse-item.d.ts +20 -4
- package/dist/components/layout/collapse-item.d.ts.map +1 -1
- package/dist/components/layout/collapse.d.ts +17 -4
- package/dist/components/layout/collapse.d.ts.map +1 -1
- package/dist/components/layout/container.d.ts +16 -1
- package/dist/components/layout/container.d.ts.map +1 -1
- package/dist/components/layout/flex.d.ts +17 -1
- package/dist/components/layout/flex.d.ts.map +1 -1
- package/dist/components/layout/row.d.ts +15 -1
- package/dist/components/layout/row.d.ts.map +1 -1
- package/dist/components/layout/space.d.ts +15 -1
- package/dist/components/layout/space.d.ts.map +1 -1
- package/dist/components/navigation/AGENTS.md +26 -0
- package/dist/components/navigation/back-top.d.ts +13 -4
- package/dist/components/navigation/back-top.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumb-item.d.ts +15 -0
- package/dist/components/navigation/breadcrumb-item.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumb.d.ts +17 -2
- package/dist/components/navigation/breadcrumb.d.ts.map +1 -1
- package/dist/components/navigation/dropdown.d.ts +56 -0
- package/dist/components/navigation/dropdown.d.ts.map +1 -0
- package/dist/components/navigation/menu-item.d.ts +27 -4
- package/dist/components/navigation/menu-item.d.ts.map +1 -1
- package/dist/components/navigation/menu.d.ts +21 -4
- package/dist/components/navigation/menu.d.ts.map +1 -1
- package/dist/components/navigation/steps.d.ts +19 -2
- package/dist/components/navigation/steps.d.ts.map +1 -1
- package/dist/components/navigation/sub-menu.d.ts +27 -3
- package/dist/components/navigation/sub-menu.d.ts.map +1 -1
- package/dist/components/progress/AGENTS.md +24 -0
- package/dist/components/progress/progress-bar.d.ts +11 -2
- package/dist/components/progress/progress-bar.d.ts.map +1 -1
- package/dist/components/progress/progress-ring.d.ts +12 -2
- package/dist/components/progress/progress-ring.d.ts.map +1 -1
- package/dist/components/progress/skeleton.d.ts +17 -2
- package/dist/components/progress/skeleton.d.ts.map +1 -1
- package/dist/components/progress/spinner.d.ts +11 -2
- package/dist/components/progress/spinner.d.ts.map +1 -1
- package/dist/components/theme/AGENTS.md +27 -0
- package/dist/components/theme/locale-switch.d.ts +37 -0
- package/dist/components/theme/locale-switch.d.ts.map +1 -0
- package/dist/components/theme/shadow-picker.d.ts +28 -0
- package/dist/components/theme/shadow-picker.d.ts.map +1 -0
- package/dist/components/theme/shape-picker.d.ts +28 -0
- package/dist/components/theme/shape-picker.d.ts.map +1 -0
- package/dist/components/theme/theme-picker.d.ts +43 -0
- package/dist/components/theme/theme-picker.d.ts.map +1 -0
- package/dist/components/theme/theme-preview.d.ts +39 -0
- package/dist/components/theme/theme-preview.d.ts.map +1 -0
- package/dist/components/theme/theme-switch.d.ts +34 -0
- package/dist/components/theme/theme-switch.d.ts.map +1 -0
- package/dist/components/theme/typo-picker.d.ts +28 -0
- package/dist/components/theme/typo-picker.d.ts.map +1 -0
- package/dist/core/AGENTS.md +38 -0
- package/dist/core/aithe-element.d.ts +62 -1
- package/dist/core/aithe-element.d.ts.map +1 -1
- package/dist/core/aithe-widget.d.ts +20 -0
- package/dist/core/aithe-widget.d.ts.map +1 -0
- package/dist/core/anchored-overlay.d.ts +26 -0
- package/dist/core/anchored-overlay.d.ts.map +1 -1
- package/dist/core/autoform/autoform.d.ts +95 -0
- package/dist/core/autoform/autoform.d.ts.map +1 -0
- package/dist/core/autoform/condition.d.ts +45 -0
- package/dist/core/autoform/condition.d.ts.map +1 -0
- package/dist/core/autoform/index.d.ts +11 -0
- package/dist/core/autoform/index.d.ts.map +1 -0
- package/dist/core/autoform/types.d.ts +44 -0
- package/dist/core/autoform/types.d.ts.map +1 -0
- package/dist/core/datahub/config/strategy.d.ts +25 -0
- package/dist/core/datahub/config/strategy.d.ts.map +1 -0
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts +39 -0
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts.map +1 -0
- package/dist/core/datahub/core/adapter/index.d.ts +8 -0
- package/dist/core/datahub/core/adapter/index.d.ts.map +1 -0
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts +31 -0
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts.map +1 -0
- package/dist/core/datahub/core/api-styles.d.ts +25 -0
- package/dist/core/datahub/core/api-styles.d.ts.map +1 -0
- package/dist/core/datahub/core/datahub-core.d.ts +166 -0
- package/dist/core/datahub/core/datahub-core.d.ts.map +1 -0
- package/dist/core/datahub/core/index.d.ts +8 -0
- package/dist/core/datahub/core/index.d.ts.map +1 -0
- package/dist/core/datahub/index.d.ts +47 -0
- package/dist/core/datahub/index.d.ts.map +1 -0
- package/dist/core/datahub/types.d.ts +226 -0
- package/dist/core/datahub/types.d.ts.map +1 -0
- package/dist/core/datahub/utils/cache.d.ts +35 -0
- package/dist/core/datahub/utils/cache.d.ts.map +1 -0
- package/dist/core/datahub/utils/common.d.ts +21 -0
- package/dist/core/datahub/utils/common.d.ts.map +1 -0
- package/dist/core/datahub/utils/dedup.d.ts +28 -0
- package/dist/core/datahub/utils/dedup.d.ts.map +1 -0
- package/dist/core/datahub/utils/idempotent.d.ts +31 -0
- package/dist/core/datahub/utils/idempotent.d.ts.map +1 -0
- package/dist/core/datahub/utils/is-query.d.ts +39 -0
- package/dist/core/datahub/utils/is-query.d.ts.map +1 -0
- package/dist/core/datahub/utils/loading.d.ts +50 -0
- package/dist/core/datahub/utils/loading.d.ts.map +1 -0
- package/dist/core/floating.d.ts +31 -0
- package/dist/core/floating.d.ts.map +1 -1
- package/dist/core/highlight/index.d.ts +44 -0
- package/dist/core/highlight/index.d.ts.map +1 -0
- package/dist/core/highlight/lang-bash.d.ts +2 -0
- package/dist/core/highlight/lang-bash.d.ts.map +1 -0
- package/dist/core/highlight/lang-c.d.ts +2 -0
- package/dist/core/highlight/lang-c.d.ts.map +1 -0
- package/dist/core/highlight/lang-cmake.d.ts +2 -0
- package/dist/core/highlight/lang-cmake.d.ts.map +1 -0
- package/dist/core/highlight/lang-cpp.d.ts +2 -0
- package/dist/core/highlight/lang-cpp.d.ts.map +1 -0
- package/dist/core/highlight/lang-css.d.ts +2 -0
- package/dist/core/highlight/lang-css.d.ts.map +1 -0
- package/dist/core/highlight/lang-dart.d.ts +2 -0
- package/dist/core/highlight/lang-dart.d.ts.map +1 -0
- package/dist/core/highlight/lang-dockerfile.d.ts +2 -0
- package/dist/core/highlight/lang-dockerfile.d.ts.map +1 -0
- package/dist/core/highlight/lang-fsharp.d.ts +2 -0
- package/dist/core/highlight/lang-fsharp.d.ts.map +1 -0
- package/dist/core/highlight/lang-go.d.ts +2 -0
- package/dist/core/highlight/lang-go.d.ts.map +1 -0
- package/dist/core/highlight/lang-html.d.ts +2 -0
- package/dist/core/highlight/lang-html.d.ts.map +1 -0
- package/dist/core/highlight/lang-java.d.ts +2 -0
- package/dist/core/highlight/lang-java.d.ts.map +1 -0
- package/dist/core/highlight/lang-javascript.d.ts +2 -0
- package/dist/core/highlight/lang-javascript.d.ts.map +1 -0
- package/dist/core/highlight/lang-json.d.ts +2 -0
- package/dist/core/highlight/lang-json.d.ts.map +1 -0
- package/dist/core/highlight/lang-jsonline.d.ts +2 -0
- package/dist/core/highlight/lang-jsonline.d.ts.map +1 -0
- package/dist/core/highlight/lang-jsx.d.ts +2 -0
- package/dist/core/highlight/lang-jsx.d.ts.map +1 -0
- package/dist/core/highlight/lang-kotlin.d.ts +2 -0
- package/dist/core/highlight/lang-kotlin.d.ts.map +1 -0
- package/dist/core/highlight/lang-latex.d.ts +2 -0
- package/dist/core/highlight/lang-latex.d.ts.map +1 -0
- package/dist/core/highlight/lang-lua.d.ts +2 -0
- package/dist/core/highlight/lang-lua.d.ts.map +1 -0
- package/dist/core/highlight/lang-makefile.d.ts +2 -0
- package/dist/core/highlight/lang-makefile.d.ts.map +1 -0
- package/dist/core/highlight/lang-markdown.d.ts +2 -0
- package/dist/core/highlight/lang-markdown.d.ts.map +1 -0
- package/dist/core/highlight/lang-objectivec.d.ts +2 -0
- package/dist/core/highlight/lang-objectivec.d.ts.map +1 -0
- package/dist/core/highlight/lang-perl.d.ts +2 -0
- package/dist/core/highlight/lang-perl.d.ts.map +1 -0
- package/dist/core/highlight/lang-powershell.d.ts +2 -0
- package/dist/core/highlight/lang-powershell.d.ts.map +1 -0
- package/dist/core/highlight/lang-python.d.ts +2 -0
- package/dist/core/highlight/lang-python.d.ts.map +1 -0
- package/dist/core/highlight/lang-r.d.ts +2 -0
- package/dist/core/highlight/lang-r.d.ts.map +1 -0
- package/dist/core/highlight/lang-ruby.d.ts +2 -0
- package/dist/core/highlight/lang-ruby.d.ts.map +1 -0
- package/dist/core/highlight/lang-rust.d.ts +2 -0
- package/dist/core/highlight/lang-rust.d.ts.map +1 -0
- package/dist/core/highlight/lang-scala.d.ts +2 -0
- package/dist/core/highlight/lang-scala.d.ts.map +1 -0
- package/dist/core/highlight/lang-sql.d.ts +2 -0
- package/dist/core/highlight/lang-sql.d.ts.map +1 -0
- package/dist/core/highlight/lang-svelte.d.ts +2 -0
- package/dist/core/highlight/lang-svelte.d.ts.map +1 -0
- package/dist/core/highlight/lang-swift.d.ts +2 -0
- package/dist/core/highlight/lang-swift.d.ts.map +1 -0
- package/dist/core/highlight/lang-tsx.d.ts +2 -0
- package/dist/core/highlight/lang-tsx.d.ts.map +1 -0
- package/dist/core/highlight/lang-typescript.d.ts +2 -0
- package/dist/core/highlight/lang-typescript.d.ts.map +1 -0
- package/dist/core/highlight/lang-vue.d.ts +2 -0
- package/dist/core/highlight/lang-vue.d.ts.map +1 -0
- package/dist/core/highlight/lang-wasm.d.ts +2 -0
- package/dist/core/highlight/lang-wasm.d.ts.map +1 -0
- package/dist/core/highlight/lang-xml.d.ts +2 -0
- package/dist/core/highlight/lang-xml.d.ts.map +1 -0
- package/dist/core/highlight/lang-yaml.d.ts +2 -0
- package/dist/core/highlight/lang-yaml.d.ts.map +1 -0
- package/dist/core/highlight/registry.d.ts +22 -0
- package/dist/core/highlight/registry.d.ts.map +1 -0
- package/dist/core/logger/LoggerCore.d.ts +186 -0
- package/dist/core/logger/LoggerCore.d.ts.map +1 -0
- package/dist/core/logger/index.d.ts +12 -0
- package/dist/core/logger/index.d.ts.map +1 -0
- package/dist/core/logger/types.d.ts +106 -0
- package/dist/core/logger/types.d.ts.map +1 -0
- package/dist/core/markdown/index.d.ts +22 -0
- package/dist/core/markdown/index.d.ts.map +1 -0
- package/dist/core/markdown/parser.d.ts +67 -0
- package/dist/core/markdown/parser.d.ts.map +1 -0
- package/dist/core/markdown/plugins.d.ts +113 -0
- package/dist/core/markdown/plugins.d.ts.map +1 -0
- package/dist/core/markdown/types.d.ts +150 -0
- package/dist/core/markdown/types.d.ts.map +1 -0
- package/dist/core/router/index.d.ts +113 -0
- package/dist/core/router/index.d.ts.map +1 -0
- package/dist/core/styles.d.ts +11 -2
- package/dist/core/styles.d.ts.map +1 -1
- package/dist/core/types.d.ts +104 -14
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.d.ts +37 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14831 -5244
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6252 -2837
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/AGENTS.md +36 -0
- package/dist/styles/aithe-ui.d.ts +90 -0
- package/dist/styles/aithe-ui.d.ts.map +1 -0
- package/dist/styles/global.css.d.ts +3 -1
- package/dist/styles/global.css.d.ts.map +1 -1
- package/dist/styles/i18n/index.d.ts +66 -0
- package/dist/styles/i18n/index.d.ts.map +1 -0
- package/dist/styles/i18n/locales/de-DE.d.ts +6 -0
- package/dist/styles/i18n/locales/de-DE.d.ts.map +1 -0
- package/dist/styles/i18n/locales/en-US.d.ts +6 -0
- package/dist/styles/i18n/locales/en-US.d.ts.map +1 -0
- package/dist/styles/i18n/locales/es-ES.d.ts +6 -0
- package/dist/styles/i18n/locales/es-ES.d.ts.map +1 -0
- package/dist/styles/i18n/locales/fr-FR.d.ts +6 -0
- package/dist/styles/i18n/locales/fr-FR.d.ts.map +1 -0
- package/dist/styles/i18n/locales/index.d.ts +15 -0
- package/dist/styles/i18n/locales/index.d.ts.map +1 -0
- package/dist/styles/i18n/locales/ja-JP.d.ts +6 -0
- package/dist/styles/i18n/locales/ja-JP.d.ts.map +1 -0
- package/dist/styles/i18n/locales/ko-KR.d.ts +6 -0
- package/dist/styles/i18n/locales/ko-KR.d.ts.map +1 -0
- package/dist/styles/i18n/locales/pt-BR.d.ts +6 -0
- package/dist/styles/i18n/locales/pt-BR.d.ts.map +1 -0
- package/dist/styles/i18n/locales/zh-CN.d.ts +6 -0
- package/dist/styles/i18n/locales/zh-CN.d.ts.map +1 -0
- package/dist/styles/i18n/locales/zh-HK.d.ts +6 -0
- package/dist/styles/i18n/locales/zh-HK.d.ts.map +1 -0
- package/dist/styles/i18n/locales/zh-TW.d.ts +6 -0
- package/dist/styles/i18n/locales/zh-TW.d.ts.map +1 -0
- package/dist/styles/layout/index.d.ts +44 -0
- package/dist/styles/layout/index.d.ts.map +1 -0
- package/dist/styles/mixins.d.ts +4 -0
- package/dist/styles/mixins.d.ts.map +1 -1
- package/dist/styles/shadow/cyber.d.ts +9 -0
- package/dist/styles/shadow/cyber.d.ts.map +1 -0
- package/dist/styles/shadow/deep.d.ts +9 -0
- package/dist/styles/shadow/deep.d.ts.map +1 -0
- package/dist/styles/shadow/diffuse.d.ts +9 -0
- package/dist/styles/shadow/diffuse.d.ts.map +1 -0
- package/dist/styles/shadow/flat.d.ts +9 -0
- package/dist/styles/shadow/flat.d.ts.map +1 -0
- package/dist/styles/shadow/glassmorphism.d.ts +9 -0
- package/dist/styles/shadow/glassmorphism.d.ts.map +1 -0
- package/dist/styles/shadow/index.d.ts +30 -0
- package/dist/styles/shadow/index.d.ts.map +1 -0
- package/dist/styles/shadow/neumorphism.d.ts +11 -0
- package/dist/styles/shadow/neumorphism.d.ts.map +1 -0
- package/dist/styles/shadow/retro.d.ts +9 -0
- package/dist/styles/shadow/retro.d.ts.map +1 -0
- package/dist/styles/shadow/sharp-business.d.ts +9 -0
- package/dist/styles/shadow/sharp-business.d.ts.map +1 -0
- package/dist/styles/shadow/skeuomorphic.d.ts +11 -0
- package/dist/styles/shadow/skeuomorphic.d.ts.map +1 -0
- package/dist/styles/shape/chamfer.d.ts +9 -0
- package/dist/styles/shape/chamfer.d.ts.map +1 -0
- package/dist/styles/shape/circle.d.ts +9 -0
- package/dist/styles/shape/circle.d.ts.map +1 -0
- package/dist/styles/shape/index.d.ts +66 -0
- package/dist/styles/shape/index.d.ts.map +1 -0
- package/dist/styles/shape/organic.d.ts +9 -0
- package/dist/styles/shape/organic.d.ts.map +1 -0
- package/dist/styles/shape/pill.d.ts +9 -0
- package/dist/styles/shape/pill.d.ts.map +1 -0
- package/dist/styles/shape/rounded.d.ts +11 -0
- package/dist/styles/shape/rounded.d.ts.map +1 -0
- package/dist/styles/shape/rounder.d.ts +9 -0
- package/dist/styles/shape/rounder.d.ts.map +1 -0
- package/dist/styles/shape/sharp.d.ts +9 -0
- package/dist/styles/shape/sharp.d.ts.map +1 -0
- package/dist/styles/shape/smooth.d.ts +9 -0
- package/dist/styles/shape/smooth.d.ts.map +1 -0
- package/dist/styles/theme/aliyun.d.ts +10 -0
- package/dist/styles/theme/aliyun.d.ts.map +1 -0
- package/dist/styles/theme/amber.d.ts +9 -0
- package/dist/styles/theme/amber.d.ts.map +1 -0
- package/dist/styles/theme/blue.d.ts +8 -1
- package/dist/styles/theme/blue.d.ts.map +1 -1
- package/dist/styles/theme/charcoal.d.ts +9 -0
- package/dist/styles/theme/charcoal.d.ts.map +1 -0
- package/dist/styles/theme/cyan.d.ts +9 -0
- package/dist/styles/theme/cyan.d.ts.map +1 -0
- package/dist/styles/theme/dark.d.ts +8 -1
- package/dist/styles/theme/dark.d.ts.map +1 -1
- package/dist/styles/theme/ebony.d.ts +9 -0
- package/dist/styles/theme/ebony.d.ts.map +1 -0
- package/dist/styles/theme/festive.d.ts +9 -0
- package/dist/styles/theme/festive.d.ts.map +1 -0
- package/dist/styles/theme/graphite.d.ts +9 -0
- package/dist/styles/theme/graphite.d.ts.map +1 -0
- package/dist/styles/theme/gray.d.ts +8 -1
- package/dist/styles/theme/gray.d.ts.map +1 -1
- package/dist/styles/theme/huawei.d.ts +10 -0
- package/dist/styles/theme/huawei.d.ts.map +1 -0
- package/dist/styles/theme/index.d.ts +85 -0
- package/dist/styles/theme/index.d.ts.map +1 -0
- package/dist/styles/theme/indigo.d.ts +9 -0
- package/dist/styles/theme/indigo.d.ts.map +1 -0
- package/dist/styles/theme/ink.d.ts +9 -0
- package/dist/styles/theme/ink.d.ts.map +1 -0
- package/dist/styles/theme/light.d.ts +8 -1
- package/dist/styles/theme/light.d.ts.map +1 -1
- package/dist/styles/theme/midnight.d.ts +9 -0
- package/dist/styles/theme/midnight.d.ts.map +1 -0
- package/dist/styles/theme/navy.d.ts +9 -0
- package/dist/styles/theme/navy.d.ts.map +1 -0
- package/dist/styles/theme/obsidian.d.ts +9 -0
- package/dist/styles/theme/obsidian.d.ts.map +1 -0
- package/dist/styles/theme/onyx.d.ts +9 -0
- package/dist/styles/theme/onyx.d.ts.map +1 -0
- package/dist/styles/theme/orange.d.ts +9 -0
- package/dist/styles/theme/orange.d.ts.map +1 -0
- package/dist/styles/theme/pink.d.ts +9 -0
- package/dist/styles/theme/pink.d.ts.map +1 -0
- package/dist/styles/theme/purple.d.ts +9 -0
- package/dist/styles/theme/purple.d.ts.map +1 -0
- package/dist/styles/theme/raisin.d.ts +9 -0
- package/dist/styles/theme/raisin.d.ts.map +1 -0
- package/dist/styles/theme/slate.d.ts +9 -0
- package/dist/styles/theme/slate.d.ts.map +1 -0
- package/dist/styles/theme/teal.d.ts +9 -0
- package/dist/styles/theme/teal.d.ts.map +1 -0
- package/dist/styles/theme/tianyi.d.ts +10 -0
- package/dist/styles/theme/tianyi.d.ts.map +1 -0
- package/dist/styles/types.d.ts +56 -0
- package/dist/styles/types.d.ts.map +1 -0
- package/dist/styles/typo/business.d.ts +2 -0
- package/dist/styles/typo/business.d.ts.map +1 -0
- package/dist/styles/typo/compact.d.ts +2 -0
- package/dist/styles/typo/compact.d.ts.map +1 -0
- package/dist/styles/typo/index.d.ts +22 -0
- package/dist/styles/typo/index.d.ts.map +1 -0
- package/dist/styles/typo/luxury.d.ts +2 -0
- package/dist/styles/typo/luxury.d.ts.map +1 -0
- package/dist/styles/typo/minimal.d.ts +2 -0
- package/dist/styles/typo/minimal.d.ts.map +1 -0
- package/dist/types/AGENTS.md +25 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/AGENTS.md +28 -0
- package/dist/utils/dom.d.ts +22 -0
- package/dist/utils/dom.d.ts.map +1 -1
- package/dist/utils/events.d.ts +11 -1
- package/dist/utils/events.d.ts.map +1 -1
- package/dist/utils/icon.d.ts +16 -0
- package/dist/utils/icon.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +47 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/validation.d.ts +26 -0
- package/dist/utils/validation.d.ts.map +1 -1
- package/docs/api/AGENTS.md +61 -0
- package/docs/api/basic/avatar.md +22 -2
- package/docs/api/basic/button.md +46 -21
- package/docs/api/basic/icon.md +64 -8
- package/docs/api/data/dropdown.md +73 -0
- package/docs/api/data/metrics-group.md +120 -0
- package/docs/api/data/metrics.md +153 -0
- package/docs/api/data/table-column.md +2 -2
- package/docs/api/data/table.md +2 -2
- package/docs/api/data/timeline.md +4 -4
- package/docs/api/data/tree-menu.md +58 -19
- package/docs/api/data/tree.md +41 -24
- package/docs/api/display/code-editor.md +275 -0
- package/docs/api/display/label.md +85 -0
- package/docs/api/display/markdown-editor.md +110 -0
- package/docs/api/display/markdown.md +72 -14
- package/docs/api/form/autoform.md +268 -0
- package/docs/api/form/combobox.md +2 -2
- package/docs/api/form/select.md +2 -2
- package/docs/api/form/switch.md +2 -2
- package/docs/api/framework/body.md +72 -0
- package/docs/api/framework/dashboard-panel.md +127 -0
- package/docs/api/framework/dashboard.md +140 -0
- package/docs/api/framework/header.md +112 -0
- package/docs/api/framework/page.md +144 -0
- package/docs/api/framework/sidebar.md +180 -0
- package/docs/api/navigation/menu-item.md +24 -16
- package/docs/api/navigation/sub-menu.md +29 -18
- package/docs/api/summary.md +133 -95
- package/docs/api/theme/locale-switch.md +65 -11
- package/docs/api/theme/shadow-picker.md +103 -0
- package/docs/api/theme/shape-picker.md +94 -0
- package/docs/api/theme/theme-picker.md +32 -14
- package/docs/api/theme/theme-preview.md +58 -11
- package/docs/api/theme/theme-switch.md +93 -0
- package/docs/api/theme/typo-picker.md +238 -0
- package/docs/api/utils/icon.md +192 -0
- package/docs/autoform.md +327 -0
- package/docs/changelog/AGENTS.md +23 -0
- package/docs/changelog/CHANGELOG.md +86 -1
- package/docs/changelog/VERSION_26.2.3.md +877 -0
- package/docs/datahub.md +832 -0
- package/docs/framework-integration.md +168 -20
- package/docs/guide.md +770 -7
- package/docs/highlight.md +363 -0
- package/docs/i18n.md +147 -81
- package/docs/issue/AGENTS.md +22 -0
- package/docs/issue/issue_26.2.3.1.md +45 -0
- package/docs/issue/issue_26.2.3.10.md +81 -0
- package/docs/issue/issue_26.2.3.11.md +87 -0
- package/docs/issue/issue_26.2.3.12.md +100 -0
- package/docs/issue/issue_26.2.3.13.md +72 -0
- package/docs/issue/issue_26.2.3.14.md +130 -0
- package/docs/issue/issue_26.2.3.15.md +208 -0
- package/docs/issue/issue_26.2.3.16.md +88 -0
- package/docs/issue/issue_26.2.3.2.md +83 -0
- package/docs/issue/issue_26.2.3.3.md +131 -0
- package/docs/issue/issue_26.2.3.4.md +24 -0
- package/docs/issue/issue_26.2.3.5.md +54 -0
- package/docs/issue/issue_26.2.3.6.md +84 -0
- package/docs/issue/issue_26.2.3.7.md +61 -0
- package/docs/issue/issue_26.2.3.8.md +90 -0
- package/docs/issue/issue_26.2.3.9.md +76 -0
- package/docs/markdown.md +432 -0
- package/docs/quickstart.md +162 -28
- package/docs/theming.md +421 -32
- package/package.json +13 -10
- package/dist/apps/api/index.html +0 -13
- package/dist/apps/demo/i18n/en.d.ts +0 -3
- package/dist/apps/demo/i18n/en.d.ts.map +0 -1
- package/dist/apps/demo/i18n/zh.d.ts +0 -3
- package/dist/apps/demo/i18n/zh.d.ts.map +0 -1
- package/dist/apps/demo/index.html +0 -13
- package/dist/base/aithe-element.d.ts +0 -29
- package/dist/base/aithe-element.d.ts.map +0 -1
- package/dist/components/avatar/avatar.d.ts +0 -13
- package/dist/components/avatar/avatar.d.ts.map +0 -1
- package/dist/components/badge/badge.d.ts +0 -14
- package/dist/components/badge/badge.d.ts.map +0 -1
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +0 -11
- package/dist/components/breadcrumb/breadcrumb-item.d.ts.map +0 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -9
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +0 -1
- package/dist/components/button/button.d.ts +0 -13
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/card/card.d.ts +0 -18
- package/dist/components/card/card.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox-group.d.ts +0 -17
- package/dist/components/checkbox/checkbox-group.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.d.ts +0 -15
- package/dist/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/components/data/tab-group.d.ts +0 -8
- package/dist/components/data/tab-group.d.ts.map +0 -1
- package/dist/components/divider/divider.d.ts +0 -9
- package/dist/components/divider/divider.d.ts.map +0 -1
- package/dist/components/drawer/drawer.d.ts +0 -29
- package/dist/components/drawer/drawer.d.ts.map +0 -1
- package/dist/components/dropdown/dropdown.d.ts +0 -34
- package/dist/components/dropdown/dropdown.d.ts.map +0 -1
- package/dist/components/feedback/dropdown.d.ts +0 -34
- package/dist/components/feedback/dropdown.d.ts.map +0 -1
- package/dist/components/input/input.d.ts +0 -28
- package/dist/components/input/input.d.ts.map +0 -1
- package/dist/components/layout/page-container.d.ts +0 -11
- package/dist/components/layout/page-container.d.ts.map +0 -1
- package/dist/components/layout/page.d.ts +0 -8
- package/dist/components/layout/page.d.ts.map +0 -1
- package/dist/components/layout/timeline-item.d.ts +0 -12
- package/dist/components/layout/timeline-item.d.ts.map +0 -1
- package/dist/components/layout/timeline.d.ts +0 -12
- package/dist/components/layout/timeline.d.ts.map +0 -1
- package/dist/components/modal/modal.d.ts +0 -28
- package/dist/components/modal/modal.d.ts.map +0 -1
- package/dist/components/popover/popover.d.ts +0 -16
- package/dist/components/popover/popover.d.ts.map +0 -1
- package/dist/components/radio/radio-group.d.ts +0 -15
- package/dist/components/radio/radio-group.d.ts.map +0 -1
- package/dist/components/radio/radio.d.ts +0 -12
- package/dist/components/radio/radio.d.ts.map +0 -1
- package/dist/components/select/select.d.ts +0 -35
- package/dist/components/select/select.d.ts.map +0 -1
- package/dist/components/switch/switch.d.ts +0 -12
- package/dist/components/switch/switch.d.ts.map +0 -1
- package/dist/components/table/table.d.ts +0 -30
- package/dist/components/table/table.d.ts.map +0 -1
- package/dist/components/tabs/tab-pane.d.ts +0 -11
- package/dist/components/tabs/tab-pane.d.ts.map +0 -1
- package/dist/components/tabs/tabs.d.ts +0 -15
- package/dist/components/tabs/tabs.d.ts.map +0 -1
- package/dist/components/tag/tag.d.ts +0 -14
- package/dist/components/tag/tag.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.d.ts +0 -18
- package/dist/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/core/utils.d.ts +0 -6
- package/dist/core/utils.d.ts.map +0 -1
- package/dist/demo/app.d.ts +0 -19
- package/dist/demo/app.d.ts.map +0 -1
- package/dist/demo/editor.d.ts +0 -28
- package/dist/demo/editor.d.ts.map +0 -1
- package/dist/demo/helpers.d.ts +0 -2
- package/dist/demo/helpers.d.ts.map +0 -1
- package/dist/demo/pages/basic.d.ts +0 -3
- package/dist/demo/pages/basic.d.ts.map +0 -1
- package/dist/demo/pages/container.d.ts +0 -3
- package/dist/demo/pages/container.d.ts.map +0 -1
- package/dist/demo/pages/data.d.ts +0 -3
- package/dist/demo/pages/data.d.ts.map +0 -1
- package/dist/demo/pages/display.d.ts +0 -3
- package/dist/demo/pages/display.d.ts.map +0 -1
- package/dist/demo/pages/feedback.d.ts +0 -3
- package/dist/demo/pages/feedback.d.ts.map +0 -1
- package/dist/demo/pages/form.d.ts +0 -3
- package/dist/demo/pages/form.d.ts.map +0 -1
- package/dist/demo/pages/layout.d.ts +0 -3
- package/dist/demo/pages/layout.d.ts.map +0 -1
- package/dist/demo/pages/navigation.d.ts +0 -3
- package/dist/demo/pages/navigation.d.ts.map +0 -1
- package/dist/demo/pages/progress.d.ts +0 -3
- package/dist/demo/pages/progress.d.ts.map +0 -1
- package/dist/demo/standalone.d.ts.map +0 -1
- package/dist/demo-page.d.ts +0 -2
- package/dist/demo-page.d.ts.map +0 -1
- package/dist/demo.d.ts +0 -2
- package/dist/demo.d.ts.map +0 -1
- package/dist/global.d.ts +0 -5
- package/dist/global.d.ts.map +0 -1
- package/dist/index-jd7NIlfT.js +0 -9798
- package/dist/index-jd7NIlfT.js.map +0 -1
- package/dist/index2.js +0 -9892
- package/dist/index2.js.map +0 -1
- package/dist/src/base/aithe-element.d.ts +0 -59
- package/dist/src/base/aithe-element.d.ts.map +0 -1
- package/dist/src/components/basic/avatar.d.ts +0 -31
- package/dist/src/components/basic/avatar.d.ts.map +0 -1
- package/dist/src/components/basic/badge.d.ts +0 -33
- package/dist/src/components/basic/badge.d.ts.map +0 -1
- package/dist/src/components/basic/button-group.d.ts +0 -23
- package/dist/src/components/basic/button-group.d.ts.map +0 -1
- package/dist/src/components/basic/button.d.ts +0 -44
- package/dist/src/components/basic/button.d.ts.map +0 -1
- package/dist/src/components/basic/card.d.ts +0 -38
- package/dist/src/components/basic/card.d.ts.map +0 -1
- package/dist/src/components/basic/chip.d.ts +0 -26
- package/dist/src/components/basic/chip.d.ts.map +0 -1
- package/dist/src/components/basic/divider.d.ts +0 -23
- package/dist/src/components/basic/divider.d.ts.map +0 -1
- package/dist/src/components/basic/empty.d.ts +0 -21
- package/dist/src/components/basic/empty.d.ts.map +0 -1
- package/dist/src/components/basic/icon.d.ts +0 -60
- package/dist/src/components/basic/icon.d.ts.map +0 -1
- package/dist/src/components/basic/input.d.ts +0 -57
- package/dist/src/components/basic/input.d.ts.map +0 -1
- package/dist/src/components/basic/tag.d.ts +0 -34
- package/dist/src/components/basic/tag.d.ts.map +0 -1
- package/dist/src/components/basic/textarea.d.ts +0 -34
- package/dist/src/components/basic/textarea.d.ts.map +0 -1
- package/dist/src/components/container/callout.d.ts +0 -23
- package/dist/src/components/container/callout.d.ts.map +0 -1
- package/dist/src/components/container/details.d.ts +0 -29
- package/dist/src/components/container/details.d.ts.map +0 -1
- package/dist/src/components/container/scroller.d.ts +0 -32
- package/dist/src/components/container/scroller.d.ts.map +0 -1
- package/dist/src/components/container/split-panel.d.ts +0 -38
- package/dist/src/components/container/split-panel.d.ts.map +0 -1
- package/dist/src/components/data/pagination.d.ts +0 -27
- package/dist/src/components/data/pagination.d.ts.map +0 -1
- package/dist/src/components/data/tab-pane.d.ts +0 -33
- package/dist/src/components/data/tab-pane.d.ts.map +0 -1
- package/dist/src/components/data/table-column.d.ts +0 -46
- package/dist/src/components/data/table-column.d.ts.map +0 -1
- package/dist/src/components/data/table.d.ts +0 -88
- package/dist/src/components/data/table.d.ts.map +0 -1
- package/dist/src/components/data/tabs.d.ts +0 -38
- package/dist/src/components/data/tabs.d.ts.map +0 -1
- package/dist/src/components/data/timeline-item.d.ts +0 -24
- package/dist/src/components/data/timeline-item.d.ts.map +0 -1
- package/dist/src/components/data/timeline.d.ts +0 -49
- package/dist/src/components/data/timeline.d.ts.map +0 -1
- package/dist/src/components/data/tree-menu.d.ts +0 -43
- package/dist/src/components/data/tree-menu.d.ts.map +0 -1
- package/dist/src/components/data/tree.d.ts +0 -45
- package/dist/src/components/data/tree.d.ts.map +0 -1
- package/dist/src/components/display/animated-image.d.ts +0 -25
- package/dist/src/components/display/animated-image.d.ts.map +0 -1
- package/dist/src/components/display/carousel.d.ts +0 -41
- package/dist/src/components/display/carousel.d.ts.map +0 -1
- package/dist/src/components/display/comparison.d.ts +0 -24
- package/dist/src/components/display/comparison.d.ts.map +0 -1
- package/dist/src/components/display/markdown.d.ts +0 -19
- package/dist/src/components/display/markdown.d.ts.map +0 -1
- package/dist/src/components/feedback/alert.d.ts +0 -32
- package/dist/src/components/feedback/alert.d.ts.map +0 -1
- package/dist/src/components/feedback/dialog.d.ts +0 -42
- package/dist/src/components/feedback/dialog.d.ts.map +0 -1
- package/dist/src/components/feedback/drawer.d.ts +0 -59
- package/dist/src/components/feedback/drawer.d.ts.map +0 -1
- package/dist/src/components/feedback/dropdown.d.ts +0 -70
- package/dist/src/components/feedback/dropdown.d.ts.map +0 -1
- package/dist/src/components/feedback/loading.d.ts +0 -27
- package/dist/src/components/feedback/loading.d.ts.map +0 -1
- package/dist/src/components/feedback/modal.d.ts +0 -58
- package/dist/src/components/feedback/modal.d.ts.map +0 -1
- package/dist/src/components/feedback/notification.d.ts +0 -35
- package/dist/src/components/feedback/notification.d.ts.map +0 -1
- package/dist/src/components/feedback/popover.d.ts +0 -35
- package/dist/src/components/feedback/popover.d.ts.map +0 -1
- package/dist/src/components/feedback/toast.d.ts +0 -35
- package/dist/src/components/feedback/toast.d.ts.map +0 -1
- package/dist/src/components/feedback/tooltip.d.ts +0 -41
- package/dist/src/components/feedback/tooltip.d.ts.map +0 -1
- package/dist/src/components/form/checkbox-group.d.ts +0 -38
- package/dist/src/components/form/checkbox-group.d.ts.map +0 -1
- package/dist/src/components/form/checkbox.d.ts +0 -35
- package/dist/src/components/form/checkbox.d.ts.map +0 -1
- package/dist/src/components/form/color-picker.d.ts +0 -32
- package/dist/src/components/form/color-picker.d.ts.map +0 -1
- package/dist/src/components/form/combobox.d.ts +0 -45
- package/dist/src/components/form/combobox.d.ts.map +0 -1
- package/dist/src/components/form/date-picker.d.ts +0 -30
- package/dist/src/components/form/date-picker.d.ts.map +0 -1
- package/dist/src/components/form/form-item.d.ts +0 -34
- package/dist/src/components/form/form-item.d.ts.map +0 -1
- package/dist/src/components/form/form.d.ts +0 -32
- package/dist/src/components/form/form.d.ts.map +0 -1
- package/dist/src/components/form/radio-group.d.ts +0 -34
- package/dist/src/components/form/radio-group.d.ts.map +0 -1
- package/dist/src/components/form/radio.d.ts +0 -30
- package/dist/src/components/form/radio.d.ts.map +0 -1
- package/dist/src/components/form/rate.d.ts +0 -27
- package/dist/src/components/form/rate.d.ts.map +0 -1
- package/dist/src/components/form/select.d.ts +0 -74
- package/dist/src/components/form/select.d.ts.map +0 -1
- package/dist/src/components/form/slider.d.ts +0 -33
- package/dist/src/components/form/slider.d.ts.map +0 -1
- package/dist/src/components/form/switch.d.ts +0 -28
- package/dist/src/components/form/switch.d.ts.map +0 -1
- package/dist/src/components/form/time-picker.d.ts +0 -26
- package/dist/src/components/form/time-picker.d.ts.map +0 -1
- package/dist/src/components/form/transfer.d.ts +0 -42
- package/dist/src/components/form/transfer.d.ts.map +0 -1
- package/dist/src/components/form/upload.d.ts +0 -34
- package/dist/src/components/form/upload.d.ts.map +0 -1
- package/dist/src/components/layout/affix.d.ts +0 -35
- package/dist/src/components/layout/affix.d.ts.map +0 -1
- package/dist/src/components/layout/col.d.ts +0 -32
- package/dist/src/components/layout/col.d.ts.map +0 -1
- package/dist/src/components/layout/collapse-item.d.ts +0 -31
- package/dist/src/components/layout/collapse-item.d.ts.map +0 -1
- package/dist/src/components/layout/collapse.d.ts +0 -31
- package/dist/src/components/layout/collapse.d.ts.map +0 -1
- package/dist/src/components/layout/container.d.ts +0 -30
- package/dist/src/components/layout/container.d.ts.map +0 -1
- package/dist/src/components/layout/flex.d.ts +0 -31
- package/dist/src/components/layout/flex.d.ts.map +0 -1
- package/dist/src/components/layout/page-container.d.ts +0 -22
- package/dist/src/components/layout/page-container.d.ts.map +0 -1
- package/dist/src/components/layout/page.d.ts +0 -26
- package/dist/src/components/layout/page.d.ts.map +0 -1
- package/dist/src/components/layout/row.d.ts +0 -27
- package/dist/src/components/layout/row.d.ts.map +0 -1
- package/dist/src/components/layout/space.d.ts +0 -27
- package/dist/src/components/layout/space.d.ts.map +0 -1
- package/dist/src/components/layout/timeline-item.d.ts +0 -24
- package/dist/src/components/layout/timeline-item.d.ts.map +0 -1
- package/dist/src/components/layout/timeline.d.ts +0 -49
- package/dist/src/components/layout/timeline.d.ts.map +0 -1
- package/dist/src/components/navigation/back-top.d.ts +0 -30
- package/dist/src/components/navigation/back-top.d.ts.map +0 -1
- package/dist/src/components/navigation/breadcrumb-item.d.ts +0 -26
- package/dist/src/components/navigation/breadcrumb-item.d.ts.map +0 -1
- package/dist/src/components/navigation/breadcrumb.d.ts +0 -24
- package/dist/src/components/navigation/breadcrumb.d.ts.map +0 -1
- package/dist/src/components/navigation/dropdown.d.ts +0 -70
- package/dist/src/components/navigation/dropdown.d.ts.map +0 -1
- package/dist/src/components/navigation/menu-item.d.ts +0 -33
- package/dist/src/components/navigation/menu-item.d.ts.map +0 -1
- package/dist/src/components/navigation/menu.d.ts +0 -35
- package/dist/src/components/navigation/menu.d.ts.map +0 -1
- package/dist/src/components/navigation/steps.d.ts +0 -31
- package/dist/src/components/navigation/steps.d.ts.map +0 -1
- package/dist/src/components/navigation/sub-menu.d.ts +0 -37
- package/dist/src/components/navigation/sub-menu.d.ts.map +0 -1
- package/dist/src/components/navigation/theme-picker.d.ts +0 -27
- package/dist/src/components/navigation/theme-picker.d.ts.map +0 -1
- package/dist/src/components/progress/progress-bar.d.ts +0 -21
- package/dist/src/components/progress/progress-bar.d.ts.map +0 -1
- package/dist/src/components/progress/progress-ring.d.ts +0 -23
- package/dist/src/components/progress/progress-ring.d.ts.map +0 -1
- package/dist/src/components/progress/skeleton.d.ts +0 -28
- package/dist/src/components/progress/skeleton.d.ts.map +0 -1
- package/dist/src/components/progress/spinner.d.ts +0 -21
- package/dist/src/components/progress/spinner.d.ts.map +0 -1
- package/dist/src/components/theme/locale-switch.d.ts +0 -24
- package/dist/src/components/theme/locale-switch.d.ts.map +0 -1
- package/dist/src/components/theme/theme-picker.d.ts +0 -43
- package/dist/src/components/theme/theme-picker.d.ts.map +0 -1
- package/dist/src/components/theme/theme-preview.d.ts +0 -29
- package/dist/src/components/theme/theme-preview.d.ts.map +0 -1
- package/dist/src/core/aithe-element.d.ts +0 -2
- package/dist/src/core/aithe-element.d.ts.map +0 -1
- package/dist/src/core/anchored-overlay.d.ts +0 -43
- package/dist/src/core/anchored-overlay.d.ts.map +0 -1
- package/dist/src/core/floating.d.ts +0 -43
- package/dist/src/core/floating.d.ts.map +0 -1
- package/dist/src/core/i18n/index.d.ts +0 -125
- package/dist/src/core/i18n/index.d.ts.map +0 -1
- package/dist/src/core/i18n/locales/en-US.d.ts +0 -7
- package/dist/src/core/i18n/locales/en-US.d.ts.map +0 -1
- package/dist/src/core/i18n/locales/en.d.ts +0 -3
- package/dist/src/core/i18n/locales/en.d.ts.map +0 -1
- package/dist/src/core/i18n/locales/index.d.ts +0 -7
- package/dist/src/core/i18n/locales/index.d.ts.map +0 -1
- package/dist/src/core/i18n/locales/zh-CN.d.ts +0 -7
- package/dist/src/core/i18n/locales/zh-CN.d.ts.map +0 -1
- package/dist/src/core/i18n/locales/zh.d.ts +0 -3
- package/dist/src/core/i18n/locales/zh.d.ts.map +0 -1
- package/dist/src/core/styles.d.ts +0 -17
- package/dist/src/core/styles.d.ts.map +0 -1
- package/dist/src/core/types.d.ts +0 -127
- package/dist/src/core/types.d.ts.map +0 -1
- package/dist/src/core/utils.d.ts +0 -44
- package/dist/src/core/utils.d.ts.map +0 -1
- package/dist/src/global.d.ts +0 -25
- package/dist/src/global.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -86
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/styles/global.css.d.ts +0 -5
- package/dist/src/styles/global.css.d.ts.map +0 -1
- package/dist/src/styles/mixins.d.ts +0 -9
- package/dist/src/styles/mixins.d.ts.map +0 -1
- package/dist/src/styles/theme/amber.d.ts +0 -3
- package/dist/src/styles/theme/amber.d.ts.map +0 -1
- package/dist/src/styles/theme/blue.d.ts +0 -3
- package/dist/src/styles/theme/blue.d.ts.map +0 -1
- package/dist/src/styles/theme/charcoal.d.ts +0 -3
- package/dist/src/styles/theme/charcoal.d.ts.map +0 -1
- package/dist/src/styles/theme/cyan.d.ts +0 -3
- package/dist/src/styles/theme/cyan.d.ts.map +0 -1
- package/dist/src/styles/theme/dark.d.ts +0 -3
- package/dist/src/styles/theme/dark.d.ts.map +0 -1
- package/dist/src/styles/theme/ebony.d.ts +0 -3
- package/dist/src/styles/theme/ebony.d.ts.map +0 -1
- package/dist/src/styles/theme/festive.d.ts +0 -3
- package/dist/src/styles/theme/festive.d.ts.map +0 -1
- package/dist/src/styles/theme/graphite.d.ts +0 -3
- package/dist/src/styles/theme/graphite.d.ts.map +0 -1
- package/dist/src/styles/theme/gray.d.ts +0 -3
- package/dist/src/styles/theme/gray.d.ts.map +0 -1
- package/dist/src/styles/theme/indigo.d.ts +0 -3
- package/dist/src/styles/theme/indigo.d.ts.map +0 -1
- package/dist/src/styles/theme/ink.d.ts +0 -3
- package/dist/src/styles/theme/ink.d.ts.map +0 -1
- package/dist/src/styles/theme/light.d.ts +0 -3
- package/dist/src/styles/theme/light.d.ts.map +0 -1
- package/dist/src/styles/theme/midnight.d.ts +0 -3
- package/dist/src/styles/theme/midnight.d.ts.map +0 -1
- package/dist/src/styles/theme/navy.d.ts +0 -3
- package/dist/src/styles/theme/navy.d.ts.map +0 -1
- package/dist/src/styles/theme/obsidian.d.ts +0 -3
- package/dist/src/styles/theme/obsidian.d.ts.map +0 -1
- package/dist/src/styles/theme/onyx.d.ts +0 -3
- package/dist/src/styles/theme/onyx.d.ts.map +0 -1
- package/dist/src/styles/theme/orange.d.ts +0 -3
- package/dist/src/styles/theme/orange.d.ts.map +0 -1
- package/dist/src/styles/theme/pink.d.ts +0 -3
- package/dist/src/styles/theme/pink.d.ts.map +0 -1
- package/dist/src/styles/theme/purple.d.ts +0 -3
- package/dist/src/styles/theme/purple.d.ts.map +0 -1
- package/dist/src/styles/theme/raisin.d.ts +0 -3
- package/dist/src/styles/theme/raisin.d.ts.map +0 -1
- package/dist/src/styles/theme/slate.d.ts +0 -3
- package/dist/src/styles/theme/slate.d.ts.map +0 -1
- package/dist/src/styles/theme/teal.d.ts +0 -3
- package/dist/src/styles/theme/teal.d.ts.map +0 -1
- package/dist/src/styles/theme.d.ts +0 -11
- package/dist/src/styles/theme.d.ts.map +0 -1
- package/dist/src/types/component.d.ts +0 -11
- package/dist/src/types/component.d.ts.map +0 -1
- package/dist/src/types/index.d.ts +0 -4
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/theme.d.ts +0 -17
- package/dist/src/types/theme.d.ts.map +0 -1
- package/dist/src/utils/dom.d.ts +0 -26
- package/dist/src/utils/dom.d.ts.map +0 -1
- package/dist/src/utils/events.d.ts +0 -11
- package/dist/src/utils/events.d.ts.map +0 -1
- package/dist/src/utils/index.d.ts +0 -6
- package/dist/src/utils/index.d.ts.map +0 -1
- package/dist/src/utils/theme.d.ts +0 -46
- package/dist/src/utils/theme.d.ts.map +0 -1
- package/dist/src/utils/validation.d.ts +0 -30
- package/dist/src/utils/validation.d.ts.map +0 -1
- package/dist/styles/theme.d.ts +0 -3
- package/dist/styles/theme.d.ts.map +0 -1
- package/dist/types/component.d.ts +0 -11
- package/dist/types/component.d.ts.map +0 -1
- package/dist/types/theme.d.ts +0 -17
- package/dist/types/theme.d.ts.map +0 -1
- package/dist/utils/theme.d.ts +0 -9
- package/dist/utils/theme.d.ts.map +0 -1
- package/docs/api/layout/page-container.md +0 -31
- package/docs/api/layout/page.md +0 -35
- package/docs/api/navigation/dropdown.md +0 -50
- /package/dist/{demo → apps/admin}/standalone.d.ts +0 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# AitheDashboardPanel / AitheDashboardPanel 仪表盘面板
|
|
2
|
+
|
|
3
|
+
> Dashboard panel child component with drag, resize, close, maximize support and slot-based content distribution.
|
|
4
|
+
> 仪表盘面板子组件,支持拖拽、调整大小、关闭、最大化,通过插槽分发内容。
|
|
5
|
+
|
|
6
|
+
## Import / 引入
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import '@aithe/aithe-ui/components/framework/dashboard-panel';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Description / 描述
|
|
13
|
+
|
|
14
|
+
`<aithe-dashboard-panel>` renders as a card with a header bar (icon + label), close/maximize buttons, and a default slot for arbitrary content. It is designed to be used as a child of `<aithe-dashboard>`, which manages positioning and state. Drag is initiated by pressing the panel header and emits events that the parent dashboard listens to for grid-snap repositioning. Resize is initiated by dragging the edge handles. Action buttons (maximize, close) are shown on hover with a smooth transition.
|
|
15
|
+
|
|
16
|
+
`<aithe-dashboard-panel>` 渲染为带标题栏(图标 + 标签)、关闭/最大化按钮和默认插槽的卡片。设计为 `<aithe-dashboard>` 的子组件,由父组件管理定位和状态。拖拽通过按下面板头部触发,发出事件供父仪表盘监听以实现格子吸附重定位。调整大小通过拖拽边缘手柄触发。操作按钮(最大化、关闭)在悬停时显示,带平滑过渡动画。
|
|
17
|
+
|
|
18
|
+
## Slots / 插槽
|
|
19
|
+
|
|
20
|
+
| Name | Description (EN) | Description (CN) |
|
|
21
|
+
| -------------- | -------------------------------------- | -------------------------------- |
|
|
22
|
+
| (default) | Panel body content. | 面板正文内容。 |
|
|
23
|
+
| header-actions | Slot for custom header action buttons. | 面板头部操作区域自定义按钮插槽。 |
|
|
24
|
+
|
|
25
|
+
## CSS Parts / CSS 部件
|
|
26
|
+
|
|
27
|
+
| Name | Description (EN) | Description (CN) |
|
|
28
|
+
| ------------ | --------------------- | ---------------- |
|
|
29
|
+
| header | The panel header bar. | 面板标题栏。 |
|
|
30
|
+
| body | The panel body area. | 面板正文区域。 |
|
|
31
|
+
| close-btn | The close button. | 关闭按钮。 |
|
|
32
|
+
| maximize-btn | The maximize button. | 最大化按钮。 |
|
|
33
|
+
|
|
34
|
+
## Properties / 属性
|
|
35
|
+
|
|
36
|
+
| Name | Type | Default | Attribute | Description (EN) | Description (CN) |
|
|
37
|
+
| ---------- | --------- | ------- | ------------- | --------------------------------------------------- | ---------------------------- |
|
|
38
|
+
| panelId | `string` | `''` | `panel-id` | Panel unique identifier. | 面板唯一标识。 |
|
|
39
|
+
| x | `number` | `0` | `x` | Starting column (0-based). | 起始列(从 0 开始)。 |
|
|
40
|
+
| y | `number` | `0` | `y` | Starting row (0-based). | 起始行(从 0 开始)。 |
|
|
41
|
+
| w | `number` | `1` | `w` | Number of columns spanned. | 占列数。 |
|
|
42
|
+
| h | `number` | `1` | `h` | Number of rows spanned. | 占行数。 |
|
|
43
|
+
| closable | `boolean` | `true` | `closable` | Whether the panel can be closed. | 面板是否可关闭。 |
|
|
44
|
+
| label | `string` | `''` | `label` | Panel header label text. | 面板标题文本。 |
|
|
45
|
+
| icon | `string` | `''` | `icon` | Panel header icon name (from aithe-icon glyph map). | 面板标题图标名称。 |
|
|
46
|
+
| visible | `boolean` | `true` | `visible` | Whether the panel is currently visible. | 面板当前是否可见。 |
|
|
47
|
+
| maximized | `boolean` | `false` | `maximized` | Whether the panel is currently maximized. | 面板当前是否最大化。 |
|
|
48
|
+
| locked | `boolean` | `false` | `locked` | Whether the dashboard is locked (disables drag). | 仪表盘是否锁定(禁用拖拽)。 |
|
|
49
|
+
| showHeader | `boolean` | `true` | `show-header` | Whether to show the panel header bar. | 是否显示面板标题栏。 |
|
|
50
|
+
|
|
51
|
+
## Events / 事件
|
|
52
|
+
|
|
53
|
+
| Name | Detail | Cancelable | Description (EN) | Description (CN) |
|
|
54
|
+
| ------------------------ | ------------------------------------------------------------------- | ---------- | ----------------------------------------- | ---------------------- |
|
|
55
|
+
| aithe-panel-close | `{ panelId: string }` | No | Emitted when the close button is clicked. | 关闭按钮点击时发出。 |
|
|
56
|
+
| aithe-panel-drag-start | `{ panelId: string, startX: number, startY: number }` | No | Emitted when drag starts. | 拖拽开始时发出。 |
|
|
57
|
+
| aithe-panel-drag | `{ panelId: string, deltaX: number, deltaY: number }` | No | Emitted during drag. | 拖拽过程中发出。 |
|
|
58
|
+
| aithe-panel-drag-end | `{ panelId: string }` | No | Emitted when drag ends. | 拖拽结束时发出。 |
|
|
59
|
+
| aithe-panel-maximize | `{ panelId: string }` | No | Emitted when maximize button is clicked. | 最大化按钮点击时发出。 |
|
|
60
|
+
| aithe-panel-resize-start | `{ panelId: string, edge: string, startX: number, startY: number }` | No | Emitted when resize starts. | 调整大小开始时发出。 |
|
|
61
|
+
| aithe-panel-resize | `{ panelId: string, edge: string, deltaX: number, deltaY: number }` | No | Emitted during resize. | 调整大小过程中发出。 |
|
|
62
|
+
| aithe-panel-resize-end | `{ panelId: string }` | No | Emitted when resize ends. | 调整大小结束时发出。 |
|
|
63
|
+
|
|
64
|
+
## Usage / 用法
|
|
65
|
+
|
|
66
|
+
### Basic / 基本用法
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<aithe-dashboard-panel
|
|
70
|
+
panel-id="stats"
|
|
71
|
+
x="0"
|
|
72
|
+
y="0"
|
|
73
|
+
w="6"
|
|
74
|
+
h="4"
|
|
75
|
+
label="Statistics"
|
|
76
|
+
icon="barChart"
|
|
77
|
+
closable
|
|
78
|
+
>
|
|
79
|
+
<p>Panel content here</p>
|
|
80
|
+
</aithe-dashboard-panel>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Non-closable Panel / 不可关闭面板
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<aithe-dashboard-panel
|
|
87
|
+
panel-id="pinned"
|
|
88
|
+
x="0"
|
|
89
|
+
y="0"
|
|
90
|
+
w="12"
|
|
91
|
+
h="2"
|
|
92
|
+
label="Pinned Info"
|
|
93
|
+
closable="false"
|
|
94
|
+
>
|
|
95
|
+
<p>This panel cannot be closed.</p>
|
|
96
|
+
</aithe-dashboard-panel>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Hidden Header / 隐藏标题栏
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<aithe-dashboard-panel panel-id="embed" x="0" y="0" w="6" h="4" show-header="false">
|
|
103
|
+
<p>Panel without header bar</p>
|
|
104
|
+
</aithe-dashboard-panel>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Custom Header Actions / 自定义头部操作
|
|
108
|
+
|
|
109
|
+
```html
|
|
110
|
+
<aithe-dashboard-panel panel-id="chart" x="0" y="0" w="6" h="4" label="Chart">
|
|
111
|
+
<button slot="header-actions" @click="${()" ="">refresh()}>Refresh</button>
|
|
112
|
+
<p>Chart content</p>
|
|
113
|
+
</aithe-dashboard-panel>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Inside Dashboard / 在仪表盘中使用
|
|
117
|
+
|
|
118
|
+
```html
|
|
119
|
+
<aithe-dashboard columns="12" cell-height="60" gap="10">
|
|
120
|
+
<aithe-dashboard-panel panel-id="users" x="0" y="0" w="4" h="3" label="Users" icon="users">
|
|
121
|
+
<p>1,024 active users</p>
|
|
122
|
+
</aithe-dashboard-panel>
|
|
123
|
+
<aithe-dashboard-panel panel-id="revenue" x="4" y="0" w="8" h="3" label="Revenue" icon="barChart">
|
|
124
|
+
<p>$42,500 this month</p>
|
|
125
|
+
</aithe-dashboard-panel>
|
|
126
|
+
</aithe-dashboard>
|
|
127
|
+
```
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# AitheDashboard / AitheDashboard 仪表盘
|
|
2
|
+
|
|
3
|
+
> Drag-and-drop dashboard parent component using CSS Grid for panel positioning and sizing.
|
|
4
|
+
> 拖拽式仪表盘父组件,基于 CSS Grid 格子布局管理面板定位与尺寸。
|
|
5
|
+
|
|
6
|
+
## Import / 引入
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import '@aithe/aithe-ui/components/framework/dashboard';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Description / 描述
|
|
13
|
+
|
|
14
|
+
`<aithe-dashboard>` is a grid-based dashboard container that manages child `<aithe-dashboard-panel>` elements. It provides a built-in toolbar with lock toggle, visibility dropdown, reset, fullscreen, and theme picker buttons. Panels are positioned using absolute coordinates calculated from grid cell dimensions. Drag-and-drop and resize are supported with grid snapping, boundary detection, overlap detection, and auto-rearrangement. Panel state can be persisted to `localStorage` via the `storage-key` attribute. The grid auto-fills the container width — cellWidth is computed from container width / columns.
|
|
15
|
+
|
|
16
|
+
`<aithe-dashboard>` 是基于格子的仪表盘容器,管理子组件 `<aithe-dashboard-panel>`。提供内置工具栏,含锁定开关、可见性下拉框、重置、全屏和主题选择按钮。面板通过格子尺寸计算的绝对坐标定位。支持拖拽和调整大小吸附格子、边界检测、重叠检测和自动重排。面板状态可通过 `storage-key` 属性持久化到 `localStorage`。网格自动填充容器宽度——cellWidth 由容器宽度/列数计算。
|
|
17
|
+
|
|
18
|
+
## Slots / 插槽
|
|
19
|
+
|
|
20
|
+
| Name | Description (EN) | Description (CN) |
|
|
21
|
+
| --------- | ----------------------------------------------------------------------- | -------------------------------------------------- |
|
|
22
|
+
| (default) | Slot for `aithe-dashboard-panel` children. | 放置 `aithe-dashboard-panel` 子组件的插槽。 |
|
|
23
|
+
| toolbar | Slot for custom toolbar buttons (inserted at the left side of toolbar). | 工具栏插槽,用于插入自定义按钮(位于工具栏左侧)。 |
|
|
24
|
+
|
|
25
|
+
## CSS Parts / CSS 部件
|
|
26
|
+
|
|
27
|
+
| Name | Description (EN) | Description (CN) |
|
|
28
|
+
| ------- | ---------------------------- | ------------------- |
|
|
29
|
+
| toolbar | The header toolbar bar. | 头部工具栏。 |
|
|
30
|
+
| grid | The CSS Grid container area. | CSS Grid 容器区域。 |
|
|
31
|
+
|
|
32
|
+
## Properties / 属性
|
|
33
|
+
|
|
34
|
+
| Name | Type | Default | Attribute | Description (EN) | Description (CN) |
|
|
35
|
+
| -------------- | --------- | ------- | ----------------- | ------------------------------------------------------------------- | ------------------------------------------ |
|
|
36
|
+
| columns | `number` | `12` | `columns` | Total number of grid columns. | 网格总列数。 |
|
|
37
|
+
| cellHeight | `number` | `60` | `cell-height` | Base cell height in pixels. | 格子基础高度(像素)。 |
|
|
38
|
+
| gap | `number` | `10` | `gap` | Gap between grid cells in pixels. | 格子间距(像素)。 |
|
|
39
|
+
| locked | `boolean` | `false` | `locked` | Whether the dashboard is locked (disables all drag and resize). | 仪表盘是否锁定(禁用所有拖拽和调整大小)。 |
|
|
40
|
+
| storageKey | `string` | `''` | `storage-key` | Storage key for persisting panel state. Empty disables persistence. | 状态持久化存储键,为空则禁用持久化。 |
|
|
41
|
+
| showToolbar | `boolean` | `true` | `show-toolbar` | Whether to show the built-in toolbar header. | 是否显示内置工具栏头部。 |
|
|
42
|
+
| showVisibility | `boolean` | `true` | `show-visibility` | Whether to show the visibility dropdown button. | 是否显示可见性下拉按钮。 |
|
|
43
|
+
| showLock | `boolean` | `true` | `show-lock` | Whether to show the lock toggle button. | 是否显示锁定切换按钮。 |
|
|
44
|
+
| showReset | `boolean` | `true` | `show-reset` | Whether to show the reset button. | 是否显示重置按钮。 |
|
|
45
|
+
| showFullscreen | `boolean` | `true` | `show-fullscreen` | Whether to show the fullscreen toggle button. | 是否显示全屏切换按钮。 |
|
|
46
|
+
| showTheme | `boolean` | `true` | `show-theme` | Whether to show the theme picker button. | 是否显示主题选择按钮。 |
|
|
47
|
+
| showAutoArrange | `boolean` | `true` | `show-auto-arrange` | Whether to show the auto-arrange button. | 是否显示自动重排按钮。 |
|
|
48
|
+
|
|
49
|
+
## Events / 事件
|
|
50
|
+
|
|
51
|
+
| Name | Detail | Cancelable | Description (EN) | Description (CN) |
|
|
52
|
+
| -------------------------- | ----------------------------------- | ---------- | ------------------------------------- | -------------------- |
|
|
53
|
+
| aithe-dashboard-change | `{ panels: DashboardPanelState[] }` | No | Emitted when panel layout changes. | 面板布局变更时发出。 |
|
|
54
|
+
| aithe-dashboard-fullscreen | `{ fullscreen: boolean }` | No | Emitted when fullscreen mode toggles. | 全屏模式切换时发出。 |
|
|
55
|
+
|
|
56
|
+
## DashboardPanelState / 面板状态接口
|
|
57
|
+
|
|
58
|
+
| Field | Type | Description (EN) | Description (CN) |
|
|
59
|
+
| --------- | --------- | ------------------------------- | --------------------- |
|
|
60
|
+
| panelId | `string` | Panel unique identifier. | 面板唯一标识。 |
|
|
61
|
+
| label | `string` | Panel display label. | 面板显示标签。 |
|
|
62
|
+
| x | `number` | Starting column (0-based). | 起始列(从 0 开始)。 |
|
|
63
|
+
| y | `number` | Starting row (0-based). | 起始行(从 0 开始)。 |
|
|
64
|
+
| w | `number` | Number of columns spanned. | 占列数。 |
|
|
65
|
+
| h | `number` | Number of rows spanned. | 占行数。 |
|
|
66
|
+
| visible | `boolean` | Whether the panel is visible. | 面板是否可见。 |
|
|
67
|
+
| maximized | `boolean` | Whether the panel is maximized. | 面板是否最大化。 |
|
|
68
|
+
|
|
69
|
+
## Usage / 用法
|
|
70
|
+
|
|
71
|
+
### Basic / 基本用法
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<aithe-dashboard columns="12" cell-height="60" gap="10">
|
|
75
|
+
<aithe-dashboard-panel
|
|
76
|
+
panel-id="stats"
|
|
77
|
+
x="0"
|
|
78
|
+
y="0"
|
|
79
|
+
w="6"
|
|
80
|
+
h="4"
|
|
81
|
+
label="Statistics"
|
|
82
|
+
icon="barChart"
|
|
83
|
+
>
|
|
84
|
+
<p>Stats content</p>
|
|
85
|
+
</aithe-dashboard-panel>
|
|
86
|
+
<aithe-dashboard-panel panel-id="chart" x="6" y="0" w="6" h="4" label="Chart" icon="pieChart">
|
|
87
|
+
<p>Chart content</p>
|
|
88
|
+
</aithe-dashboard-panel>
|
|
89
|
+
</aithe-dashboard>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### With State Persistence / 带状态持久化
|
|
93
|
+
|
|
94
|
+
```html
|
|
95
|
+
<aithe-dashboard storage-key="my-dashboard" columns="12">
|
|
96
|
+
<aithe-dashboard-panel panel-id="overview" x="0" y="0" w="12" h="3" label="Overview">
|
|
97
|
+
<p>Overview content</p>
|
|
98
|
+
</aithe-dashboard-panel>
|
|
99
|
+
</aithe-dashboard>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Locked Dashboard / 锁定仪表盘
|
|
103
|
+
|
|
104
|
+
```html
|
|
105
|
+
<aithe-dashboard locked show-toolbar>
|
|
106
|
+
<aithe-dashboard-panel panel-id="info" x="0" y="0" w="4" h="3" label="Info">
|
|
107
|
+
<p>Read-only panel</p>
|
|
108
|
+
</aithe-dashboard-panel>
|
|
109
|
+
</aithe-dashboard>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Without Toolbar / 无工具栏
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<aithe-dashboard show-toolbar="false">
|
|
116
|
+
<aithe-dashboard-panel panel-id="widget" x="0" y="0" w="6" h="4" label="Widget">
|
|
117
|
+
<p>Widget content</p>
|
|
118
|
+
</aithe-dashboard-panel>
|
|
119
|
+
</aithe-dashboard>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Selective Toolbar Buttons / 选择性显示工具栏按钮
|
|
123
|
+
|
|
124
|
+
```html
|
|
125
|
+
<aithe-dashboard show-visibility show-lock show-reset show-fullscreen="false" show-theme="false">
|
|
126
|
+
<aithe-dashboard-panel panel-id="data" x="0" y="0" w="6" h="4" label="Data">
|
|
127
|
+
<p>Data content</p>
|
|
128
|
+
</aithe-dashboard-panel>
|
|
129
|
+
</aithe-dashboard>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Fullscreen Mode / 全屏模式
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<aithe-dashboard show-fullscreen>
|
|
136
|
+
<aithe-dashboard-panel panel-id="big-chart" x="0" y="0" w="12" h="8" label="Big Chart">
|
|
137
|
+
<p>Fullscreen dashboard for big-screen display</p>
|
|
138
|
+
</aithe-dashboard-panel>
|
|
139
|
+
</aithe-dashboard>
|
|
140
|
+
```
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# AitheHeader / AitheHeader 页头
|
|
2
|
+
|
|
3
|
+
> Framework-level page header with brand, navigation, built-in locale/theme toggles and user area.
|
|
4
|
+
> 框架级页头,包含品牌区、导航区、内置国际化/主题切换和用户区。
|
|
5
|
+
>
|
|
6
|
+
> Locale and theme switching are handled internally by embedded `aithe-locale-switch` and `aithe-theme-switch` components — no external event handling required.
|
|
7
|
+
> 国际化和主题切换由内嵌的 `aithe-locale-switch` 和 `aithe-theme-switch` 组件在内部完成,无需外部事件处理。
|
|
8
|
+
|
|
9
|
+
## Slots / 插槽
|
|
10
|
+
|
|
11
|
+
| Name | Description (EN) | Description (CN) |
|
|
12
|
+
| ------ | -------------------------------------------------------------- | ------------------------------------------------- |
|
|
13
|
+
| left | Custom brand area (overrides `brand` and `slogan` properties). | 自定义品牌区域(覆盖 `brand` 和 `slogan` 属性)。 |
|
|
14
|
+
| center | Navigation / business columns area. | 导航/业务栏目区域。 |
|
|
15
|
+
| right | User / login info area. | 用户/登录信息区域。 |
|
|
16
|
+
|
|
17
|
+
## Properties / 属性
|
|
18
|
+
|
|
19
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
20
|
+
| ------------------ | ------------------------------- | ------------ | ----------------------------------------------------------------- | ---------------------------------- |
|
|
21
|
+
| brand | `string` | `'Aithe UI'` | Brand name displayed in the left area. | 左侧品牌名称。 |
|
|
22
|
+
| slogan | `string` | `''` | Slogan displayed below the brand name. | 品牌名称下方的口号。 |
|
|
23
|
+
| show-locale-switch | `boolean` | `false` | Whether to show the locale switch between center and right areas. | 是否在中右区域之间显示国际化切换。 |
|
|
24
|
+
| show-theme-switch | `boolean` | `false` | Whether to show the theme switch between center and right areas. | 是否在中右区域之间显示主题切换。 |
|
|
25
|
+
| center-align | `'left' \| 'center' \| 'right'` | `'right'` | Alignment of the center slot content. | 中间插槽内容的对齐方式。 |
|
|
26
|
+
|
|
27
|
+
## CSS Parts / CSS 部件
|
|
28
|
+
|
|
29
|
+
| Name | Description (EN) | Description (CN) |
|
|
30
|
+
| ------ | -------------------------------------------------------------- | ------------------------------------------------ |
|
|
31
|
+
| center | The center container. Override alignment via `::part(center)`. | 中间容器。可通过 `::part(center)` 覆盖对齐方式。 |
|
|
32
|
+
|
|
33
|
+
## Events / 事件
|
|
34
|
+
|
|
35
|
+
The header itself does not emit custom events. The embedded `aithe-locale-switch` and `aithe-theme-switch` components emit their own events (`aithe-locale-change` / `aithe-theme-change`) which bubble through the header. By default, both components handle switching internally, so no event listener is needed.
|
|
36
|
+
|
|
37
|
+
Header 本身不发出自定义事件。内嵌的 `aithe-locale-switch` 和 `aithe-theme-switch` 组件会发出各自的事件(`aithe-locale-change` / `aithe-theme-change`),这些事件会冒泡穿过 header。默认情况下,两个组件都在内部处理切换,因此无需监听事件。
|
|
38
|
+
|
|
39
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
40
|
+
| ---- | ------ | ----------------------------------------------------------------------------------- | --------------------------------------------------- |
|
|
41
|
+
| — | — | No custom events emitted by the header itself. See embedded component events above. | Header 本身不发出自定义事件。参见上方内嵌组件事件。 |
|
|
42
|
+
|
|
43
|
+
## Examples / 示例
|
|
44
|
+
|
|
45
|
+
### Basic usage / 基础用法
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<aithe-header
|
|
49
|
+
brand="Aithe UI"
|
|
50
|
+
slogan="Enterprise Design System"
|
|
51
|
+
show-locale-switch
|
|
52
|
+
show-theme-switch
|
|
53
|
+
>
|
|
54
|
+
<aithe-menu slot="center" mode="horizontal" active="home">
|
|
55
|
+
<aithe-menu-item name="home">Home</aithe-menu-item>
|
|
56
|
+
<aithe-menu-item name="docs">Docs</aithe-menu-item>
|
|
57
|
+
</aithe-menu>
|
|
58
|
+
<aithe-avatar slot="right" text="U"></aithe-avatar>
|
|
59
|
+
</aithe-header>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Center slot alignment / 中间插槽对齐
|
|
63
|
+
|
|
64
|
+
Use the `center-align` attribute to control how center slot content is positioned:
|
|
65
|
+
|
|
66
|
+
使用 `center-align` 属性控制中间插槽内容的对齐方式:
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<!-- Left-aligned / 靠左 -->
|
|
70
|
+
<aithe-header center-align="left">
|
|
71
|
+
<aithe-menu slot="center" mode="horizontal">...</aithe-menu>
|
|
72
|
+
</aithe-header>
|
|
73
|
+
|
|
74
|
+
<!-- Centered / 居中 -->
|
|
75
|
+
<aithe-header center-align="center">
|
|
76
|
+
<aithe-menu slot="center" mode="horizontal">...</aithe-menu>
|
|
77
|
+
</aithe-header>
|
|
78
|
+
|
|
79
|
+
<!-- Right-aligned (default) / 靠右(默认) -->
|
|
80
|
+
<aithe-header center-align="right">
|
|
81
|
+
<aithe-button slot="center" href="/docs">Docs</aithe-button>
|
|
82
|
+
</aithe-header>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
For more granular control, use the `::part(center)` CSS selector:
|
|
86
|
+
|
|
87
|
+
如需更细粒度的控制,可使用 `::part(center)` CSS 选择器:
|
|
88
|
+
|
|
89
|
+
```css
|
|
90
|
+
aithe-header::part(center) {
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
gap: 24px;
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Overriding built-in locale/theme behavior / 覆盖内置国际化/主题行为
|
|
97
|
+
|
|
98
|
+
The embedded `aithe-locale-switch` and `aithe-theme-switch` handle switching by default. To take manual control, listen for their events on the header and call `preventDefault()`:
|
|
99
|
+
|
|
100
|
+
内嵌的 `aithe-locale-switch` 和 `aithe-theme-switch` 默认处理切换。如需手动控制,可在 header 上监听它们的事件并调用 `preventDefault()`:
|
|
101
|
+
|
|
102
|
+
```js
|
|
103
|
+
const header = document.querySelector('aithe-header');
|
|
104
|
+
header.addEventListener('aithe-locale-change', (e) => {
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
console.log('Custom locale:', e.detail.locale);
|
|
107
|
+
});
|
|
108
|
+
header.addEventListener('aithe-theme-change', (e) => {
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
console.log('Custom category:', e.detail.category, 'value:', e.detail.value);
|
|
111
|
+
});
|
|
112
|
+
```
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# AithePage / AithePage 路由容器
|
|
2
|
+
|
|
3
|
+
> Framework-level route container that renders the matched page component.
|
|
4
|
+
> 框架级路由容器,渲染匹配到的页面组件。
|
|
5
|
+
|
|
6
|
+
## Import / 引入
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import '@aithe/aithe-ui/components/framework/page';
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Description / 描述
|
|
13
|
+
|
|
14
|
+
`<aithe-page>` connects to a `Router` instance, listens for route changes, and dynamically renders the component specified by the matched route's `component` field. Route params, query, and location are passed as properties to the rendered component.
|
|
15
|
+
|
|
16
|
+
`<aithe-page>` 连接到 `Router` 实例,监听路由变更,动态渲染匹配路由的 `component` 字段指定的组件。路由参数、查询参数和位置信息会作为属性传递给渲染的组件。
|
|
17
|
+
|
|
18
|
+
## Slots / 插槽
|
|
19
|
+
|
|
20
|
+
| Name | Description (EN) | Description (CN) |
|
|
21
|
+
| --------- | -------------------------------------------------------------------------- | ----------------------------------------------------- |
|
|
22
|
+
| (default) | Fallback content when no route matches and `notFoundComponent` is not set. | 无匹配路由且未设置 `notFoundComponent` 时的回退内容。 |
|
|
23
|
+
|
|
24
|
+
## CSS Parts / CSS 部件
|
|
25
|
+
|
|
26
|
+
| Name | Description (EN) | Description (CN) |
|
|
27
|
+
| --------- | ------------------------------------------------- | ------------------------ |
|
|
28
|
+
| container | The container element wrapping the rendered page. | 包裹渲染页面的容器元素。 |
|
|
29
|
+
|
|
30
|
+
## Properties / 属性
|
|
31
|
+
|
|
32
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
33
|
+
| ------------------- | ---------------- | ------- | -------------------------------------------------------- | ------------------------------ |
|
|
34
|
+
| router | `Router \| null` | `null` | Router instance to connect to. | 要连接的 Router 实例。 |
|
|
35
|
+
| not-found-component | `string` | `''` | Fallback component tag name when no route matches (404). | 无匹配路由时的回退组件标签名。 |
|
|
36
|
+
|
|
37
|
+
## Events / 事件
|
|
38
|
+
|
|
39
|
+
| Name | Detail | Cancelable | Description (EN) | Description (CN) |
|
|
40
|
+
| ------------------ | ----------------------------- | ---------- | ------------------------------- | ---------------- |
|
|
41
|
+
| aithe-route-change | `{ location: RouteLocation }` | No | Emitted when the route changes. | 路由变更时发出。 |
|
|
42
|
+
|
|
43
|
+
## Passed Properties / 传递给页面组件的属性
|
|
44
|
+
|
|
45
|
+
When a route matches, the rendered component receives the following properties:
|
|
46
|
+
|
|
47
|
+
当路由匹配时,渲染的组件会接收以下属性:
|
|
48
|
+
|
|
49
|
+
| Property | Type | Description (EN) | Description (CN) |
|
|
50
|
+
| --------- | ------------------------ | ------------------------------------------------------ | -------------------- |
|
|
51
|
+
| .params | `Record<string, string>` | Path parameters (e.g. `{ id: '42' }` for `/user/:id`). | 路径参数。 |
|
|
52
|
+
| .query | `Record<string, string>` | Query parameters (e.g. `{ a: '1' }` for `?a=1`). | 查询参数。 |
|
|
53
|
+
| .route | `RouteConfig \| null` | The matched route config. | 匹配的路由配置。 |
|
|
54
|
+
| .location | `RouteLocation` | The full route location object. | 完整的路由位置对象。 |
|
|
55
|
+
|
|
56
|
+
## Usage / 用法
|
|
57
|
+
|
|
58
|
+
### Basic / 基本用法
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
import { Router } from '@aithe/aithe-ui';
|
|
62
|
+
|
|
63
|
+
const router = new Router({
|
|
64
|
+
mode: 'history',
|
|
65
|
+
routes: [
|
|
66
|
+
{ path: '/', component: 'home-page' },
|
|
67
|
+
{ path: '/user/:id', component: 'user-page' },
|
|
68
|
+
{ path: '*', component: 'not-found-page' },
|
|
69
|
+
],
|
|
70
|
+
});
|
|
71
|
+
router.start();
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<aithe-page .router="${router}"></aithe-page>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### With 404 Component / 带 404 组件
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<aithe-page .router="${router}" not-found-component="not-found-page"></aithe-page>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Accessing Route Params in Page Component / 在页面组件中访问路由参数
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
@customElement('user-page')
|
|
88
|
+
export class UserPage extends LitElement {
|
|
89
|
+
@property({ type: Object }) params: Record<string, string> = {};
|
|
90
|
+
@property({ type: Object }) query: Record<string, string> = {};
|
|
91
|
+
|
|
92
|
+
render() {
|
|
93
|
+
return html`
|
|
94
|
+
<p>User ID: ${this.params.id}</p>
|
|
95
|
+
`;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Router API / Router API
|
|
101
|
+
|
|
102
|
+
The `Router` class is the core routing engine. It is exported from `@aithe/aithe-ui` alongside `AithePage`.
|
|
103
|
+
|
|
104
|
+
`Router` 类是路由核心引擎,与 `AithePage` 一起从 `@aithe/aithe-ui` 导出。
|
|
105
|
+
|
|
106
|
+
### Constructor / 构造函数
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
new Router({ mode?: 'hash' | 'history', routes: RouteConfig[] })
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Methods / 方法
|
|
113
|
+
|
|
114
|
+
| Method | Description (EN) | Description (CN) |
|
|
115
|
+
| ------------------------ | ----------------------------------------------------------- | ---------------------------------------------- |
|
|
116
|
+
| `start()` | Start listening for route changes. | 启动路由监听。 |
|
|
117
|
+
| `stop()` | Stop listening for route changes. | 停止路由监听。 |
|
|
118
|
+
| `navigate(path: string)` | Programmatic navigation (pushState). | 编程式导航(pushState)。 |
|
|
119
|
+
| `replace(path: string)` | Replace current history entry and navigate. | 替换当前历史记录并导航。 |
|
|
120
|
+
| `back()` | Go back in history. | 历史记录后退。 |
|
|
121
|
+
| `forward()` | Go forward in history. | 历史记录前进。 |
|
|
122
|
+
| `match(path: string)` | Match a path and return `RouteLocation` without navigation. | 匹配路径并返回 `RouteLocation`(不触发导航)。 |
|
|
123
|
+
| `onChange(listener)` | Subscribe to route changes; returns unsubscribe function. | 订阅路由变更;返回取消订阅函数。 |
|
|
124
|
+
| `addGuard(guard)` | Add a route guard; returns remove function. | 添加路由守卫;返回移除函数。 |
|
|
125
|
+
| `addRoutes(routes)` | Add route configurations. | 添加路由配置。 |
|
|
126
|
+
|
|
127
|
+
### RouteConfig / 路由配置
|
|
128
|
+
|
|
129
|
+
| Field | Type | Description (EN) | Description (CN) |
|
|
130
|
+
| --------- | ------------------------- | ---------------------------------------------------------------- | ------------------------------ |
|
|
131
|
+
| path | `string` | Path pattern: static `/home`, dynamic `/user/:id`, wildcard `*`. | 路径模式:静态、动态、通配符。 |
|
|
132
|
+
| component | `string` | Component tag name to render when matched. | 匹配时渲染的组件标签名。 |
|
|
133
|
+
| meta | `Record<string, unknown>` | Route metadata (e.g. auth, title). | 路由元数据。 |
|
|
134
|
+
| children | `RouteConfig[]` | Child routes for nested routing. | 子路由(嵌套路由)。 |
|
|
135
|
+
|
|
136
|
+
### RouteLocation / 路由位置
|
|
137
|
+
|
|
138
|
+
| Field | Type | Description (EN) | Description (CN) |
|
|
139
|
+
| -------- | ------------------------ | ---------------------------------------- | --------------------------------- |
|
|
140
|
+
| path | `string` | Full path without query string and hash. | 完整路径(不含查询参数和 hash)。 |
|
|
141
|
+
| params | `Record<string, string>` | Path parameters. | 路径参数。 |
|
|
142
|
+
| query | `Record<string, string>` | Query parameters. | 查询参数。 |
|
|
143
|
+
| route | `RouteConfig \| null` | Matched route config. | 匹配的路由配置。 |
|
|
144
|
+
| fullPath | `string` | Full URL including query string. | 完整 URL(含查询参数)。 |
|