@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
|
@@ -5,36 +5,38 @@
|
|
|
5
5
|
|
|
6
6
|
## Slots / 插槽
|
|
7
7
|
|
|
8
|
-
| Name | Description (EN) | Description (CN)
|
|
9
|
-
|
|
10
|
-
| —
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
| ---- | ---------------- | ---------------------------------------------- |
|
|
10
|
+
| — | No slots (content driven by `items` property). | 无插槽(内容由 items 属性控制)。 |
|
|
11
11
|
|
|
12
12
|
## Properties / 属性
|
|
13
13
|
|
|
14
|
-
| Name
|
|
15
|
-
|
|
16
|
-
| items
|
|
17
|
-
| items
|
|
18
|
-
| active
|
|
19
|
-
| expandAll | Boolean
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
| --------- | -------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
16
|
+
| items | String (JSON) | `''` | JSON string of tree menu items (maps to `items` HTML attribute). | 树菜单项的 JSON 字符串(映射到 `items` HTML 属性)。 |
|
|
17
|
+
| items | `AitheTreeNodeMeta[]` | `[]` | Array of tree menu items (prefer this in JS). | 树菜单项数组(在 JS 中优先使用)。 |
|
|
18
|
+
| active | `string` | `''` | Active (selected) menu item value. | 当前选中的菜单项值。 |
|
|
19
|
+
| expandAll | Boolean | false | Whether all nodes are expanded by default. | 是否默认展开所有节点。 |
|
|
20
20
|
| direction | 'vertical' \| 'horizontal' | 'vertical' | Layout direction. Vertical stacks items; horizontal arranges top-level items in a row with dropdown sub-menus. | 布局方向。垂直堆叠菜单项;水平将顶级菜单项排列为一行,子菜单以下拉方式展开。 |
|
|
21
|
+
| item-filter | `AitheSidebarItemFilter \| null` | `null` | Filter callback for menu items. Return `true` to show, `false` to hide. Useful for permission control. | 菜单项过滤回调。返回 `true` 显示,`false` 隐藏。适用于权限控制。 |
|
|
21
22
|
|
|
22
23
|
## Events / 事件
|
|
23
24
|
|
|
24
|
-
| Name
|
|
25
|
-
|
|
25
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
26
|
+
| ------------ | ----------- | ------------------------------------- | ------------------ |
|
|
26
27
|
| aithe-select | `{ value }` | Emitted when a menu item is selected. | 菜单项选中时触发。 |
|
|
27
28
|
|
|
28
29
|
## Data Item Fields / 数据项字段
|
|
29
30
|
|
|
30
|
-
| Field
|
|
31
|
-
|
|
32
|
-
| label
|
|
33
|
-
| id
|
|
34
|
-
| icon
|
|
35
|
-
| disabled | `boolean`
|
|
36
|
-
|
|
|
37
|
-
| children | `AitheTreeNodeMeta[]` | Nested sub-menu items.
|
|
31
|
+
| Field | Type | Description (EN) | Description (CN) |
|
|
32
|
+
| -------- | --------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
33
|
+
| label | `string` | Display text of the menu item. Used as i18n fallback when `i18n` is set. | 菜单项的显示文本。设置 `i18n` 时作为缺省值。 |
|
|
34
|
+
| id | `string` | Unique value identifying this node. | 节点唯一标识值。 |
|
|
35
|
+
| icon | `string` | Icon name rendered before the label via aithe-icon. | 通过 aithe-icon 在标签前渲染的图标名称。 |
|
|
36
|
+
| disabled | `boolean` | Whether the menu item is non-interactive. | 是否禁用菜单项。 |
|
|
37
|
+
| variant | `AitheVariant` | Visual variant / semantic color for the node. | 节点的视觉变体/语义色。 |
|
|
38
|
+
| children | `AitheTreeNodeMeta[]` | Nested sub-menu items. | 嵌套子菜单项。 |
|
|
39
|
+
| 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` 作为缺省值。 |
|
|
38
40
|
|
|
39
41
|
## Examples / 示例
|
|
40
42
|
|
|
@@ -56,3 +58,40 @@
|
|
|
56
58
|
active="dashboard"
|
|
57
59
|
></aithe-tree-menu>
|
|
58
60
|
```
|
|
61
|
+
|
|
62
|
+
### With i18n / 国际化
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<aithe-tree-menu
|
|
66
|
+
items='[{"label":"Dashboard","id":"dashboard","icon":"home","i18n":"app.menu.dashboard"},{"label":"Settings","id":"settings","icon":"settings","i18n":"app.menu.settings","children":[{"label":"Profile","id":"profile","i18n":"app.menu.profile"},{"label":"Security","id":"security","i18n":"app.menu.security"}]}]'
|
|
67
|
+
active="dashboard"
|
|
68
|
+
></aithe-tree-menu>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
When `i18n` is set, the component automatically translates the label via `t(i18n, label)`. The `label` field serves as the fallback default value when the translation key is not found.
|
|
72
|
+
|
|
73
|
+
设置 `i18n` 后,组件自动通过 `t(i18n, label)` 翻译 label。`label` 字段作为翻译键未找到时的缺省值。
|
|
74
|
+
|
|
75
|
+
### Permission-based filtering / 基于权限的菜单过滤
|
|
76
|
+
|
|
77
|
+
Use `itemFilter` to control which menu items are visible based on the current user's roles/permissions. The callback receives the item metadata and nesting depth (0 = top-level).
|
|
78
|
+
|
|
79
|
+
使用 `itemFilter` 根据当前用户角色/权限控制菜单项可见性。回调接收菜单项元数据和嵌套深度(0 = 顶层)。
|
|
80
|
+
|
|
81
|
+
```js
|
|
82
|
+
const menu = document.querySelector('aithe-tree-menu');
|
|
83
|
+
menu.itemFilter = (item, depth) => {
|
|
84
|
+
// Hide "Settings" for non-admin users
|
|
85
|
+
if (item.id === 'settings' && !currentUser.roles.includes('admin')) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
};
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```html
|
|
93
|
+
<aithe-tree-menu
|
|
94
|
+
.items="${menuItems}"
|
|
95
|
+
active="dashboard"
|
|
96
|
+
></aithe-tree-menu>
|
|
97
|
+
```
|
package/docs/api/data/tree.md
CHANGED
|
@@ -5,41 +5,44 @@
|
|
|
5
5
|
|
|
6
6
|
## Slots / 插槽
|
|
7
7
|
|
|
8
|
-
| Name | Description (EN)
|
|
9
|
-
|
|
10
|
-
| —
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
| ---- |-----------------------------------------------| --------------------------------------------- |
|
|
10
|
+
| — | No slots (content driven by `data` property). | 无插槽(内容由 data 属性控制)。 |
|
|
11
11
|
|
|
12
12
|
## Properties / 属性
|
|
13
13
|
|
|
14
|
-
| Name
|
|
15
|
-
|
|
16
|
-
| data
|
|
17
|
-
| title
|
|
18
|
-
| icon
|
|
19
|
-
| checkable | Boolean
|
|
20
|
-
| expandAll | Boolean
|
|
21
|
-
| renderer
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
| --------- | -------- | --------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
16
|
+
| data | String | '[]' | JSON string of tree node data. Each node supports `icon` and `variant` (AitheVariant) fields. | 树节点数据的 JSON 字符串。每个节点支持 `icon` 和 `variant`(AitheVariant)字段。 |
|
|
17
|
+
| title | `string` | `''` | Display title (shown as tooltip). | 显示标题(作为工具提示)。 |
|
|
18
|
+
| icon | `string` | `''` | Icon name to display before the tree title. | 在树标题前显示的图标名称。 |
|
|
19
|
+
| checkable | Boolean | false | Whether nodes show checkboxes for selection. | 节点是否显示复选框以供选择。 |
|
|
20
|
+
| expandAll | Boolean | false | Whether all nodes are expanded by default. | 是否默认展开所有节点。 |
|
|
21
|
+
| renderer | Function | undefined | Custom renderer function for tree nodes. Receives a TreeNode and returns a TemplateResult. | 树节点的自定义渲染函数。接收 TreeNode 并返回 TemplateResult。 |
|
|
22
22
|
|
|
23
23
|
## Events / 事件
|
|
24
24
|
|
|
25
|
-
| Name
|
|
26
|
-
|
|
27
|
-
| aithe-check
|
|
28
|
-
| aithe-node-click | { node }
|
|
25
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
26
|
+
| ---------------- | ----------- | ------------------------------------- | ---------------------- |
|
|
27
|
+
| aithe-check | { checked } | Emitted when a checkbox is toggled. | 复选框切换时触发。 |
|
|
28
|
+
| aithe-node-click | { node } | Emitted when a node label is clicked. | 节点标签被点击时触发。 |
|
|
29
29
|
|
|
30
30
|
## Data Node Fields / 数据节点字段
|
|
31
31
|
|
|
32
|
-
| Field
|
|
33
|
-
|
|
34
|
-
| label
|
|
35
|
-
| id
|
|
36
|
-
| children | `AitheTreeNodeMeta[]` | Nested child nodes.
|
|
37
|
-
| disabled | `boolean`
|
|
38
|
-
| icon
|
|
39
|
-
|
|
|
32
|
+
| Field | Type | Description (EN) | Description (CN) |
|
|
33
|
+
| -------- | --------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
34
|
+
| label | `string` | Display text of the node. Used as i18n fallback when `i18n` is set. | 节点的显示文本。设置 `i18n` 时作为缺省值。 |
|
|
35
|
+
| id | `string` | Unique identifier of the node. | 节点的唯一标识。 |
|
|
36
|
+
| children | `AitheTreeNodeMeta[]` | Nested child nodes. | 嵌套子节点。 |
|
|
37
|
+
| disabled | `boolean` | Whether the node is non-interactive. | 是否不可交互。 |
|
|
38
|
+
| icon | `string` | Icon name rendered before the label via aithe-icon. | 通过 aithe-icon 在标签前渲染的图标名称。 |
|
|
39
|
+
| variant | `AitheVariant` | Visual variant / semantic color for the node label. | 节点标签的视觉变体/语义色。 |
|
|
40
|
+
| 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` 作为缺省值。 |
|
|
40
41
|
|
|
41
42
|
## Examples / 示例
|
|
42
43
|
|
|
44
|
+
### Basic usage / 基础用法
|
|
45
|
+
|
|
43
46
|
```html
|
|
44
47
|
<aithe-tree
|
|
45
48
|
data='[{"label":"Root","id":"root","children":[{"label":"Child","id":"child"}]}]'
|
|
@@ -48,4 +51,18 @@
|
|
|
48
51
|
checkable
|
|
49
52
|
expand-all
|
|
50
53
|
></aithe-tree>
|
|
51
|
-
```
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### With i18n / 国际化
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<aithe-tree
|
|
60
|
+
data='[{"label":"Root","id":"root","i18n":"app.tree.root","children":[{"label":"Child","id":"child","i18n":"app.tree.child"}]}]'
|
|
61
|
+
checkable
|
|
62
|
+
expand-all
|
|
63
|
+
></aithe-tree>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
When `i18n` is set, the component automatically translates the label via `t(i18n, label)`. The `label` field serves as the fallback default value when the translation key is not found.
|
|
67
|
+
|
|
68
|
+
设置 `i18n` 后,组件自动通过 `t(i18n, label)` 翻译 label。`label` 字段作为翻译键未找到时的缺省值。
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# AitheCodeEditor / 代码编辑器
|
|
2
|
+
|
|
3
|
+
> A code editor Web Component based on Lit + TypeScript with syntax highlighting and no third-party dependencies.
|
|
4
|
+
> 基于 Lit + TypeScript 的代码编辑器 Web Component,具有语法高亮功能,无需第三方依赖。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
| ------------- | -------------------------------------------- | ------------------------ |
|
|
10
|
+
| toolbar-left | Custom content on the left side of toolbar. | 工具栏左侧的自定义内容。 |
|
|
11
|
+
| toolbar-right | Custom content on the right side of toolbar. | 工具栏右侧的自定义内容。 |
|
|
12
|
+
| preview | Custom preview content (when show-preview). | 自定义预览内容。 |
|
|
13
|
+
|
|
14
|
+
## Properties / 属性
|
|
15
|
+
|
|
16
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
17
|
+
| --------------------- | --------- | -------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------ |
|
|
18
|
+
| value | `string` | `''` | Editor content. Code text displayed in the editor. | 编辑器内容。编辑器中显示的代码文本。 |
|
|
19
|
+
| language | `string` | `'javascript'` | Programming language for syntax highlighting. Dynamically resolved from `SyntaxRegistry`. | 用于语法高亮的编程语言。从 `SyntaxRegistry` 动态获取。 |
|
|
20
|
+
| readonly | `boolean` | `false` | Whether the editor is readonly. When true, content is not editable. | 是否只读。为 true 时,内容不可编辑。 |
|
|
21
|
+
| lineNumbers | `boolean` | `true` | Whether to show line numbers on the left side. | 是否显示左侧行号。 |
|
|
22
|
+
| placeholder | `string` | `''` | Placeholder text shown when editor is empty. | 编辑器为空时显示的占位符文本。 |
|
|
23
|
+
| showToolbar | `boolean` | `false` | Whether to show the toolbar with action buttons. | 是否显示包含操作按钮的工具栏。 |
|
|
24
|
+
| showTheme | `boolean` | `true` | Whether to show the theme picker in the toolbar. | 是否在工具栏中显示主题选择器。 |
|
|
25
|
+
| showPreview | `boolean` | `false` | Whether to show the preview pane with a resizable splitter. | 是否显示带可调整分割条的预览面板。 |
|
|
26
|
+
| showLanguage | `boolean` | `true` | Whether to show the language selector in the toolbar. | 是否在工具栏中显示语言选择器。 |
|
|
27
|
+
| showFullscreen | `boolean` | `true` | Whether to show the fullscreen button in the toolbar. | 是否在工具栏中显示全屏按钮。 |
|
|
28
|
+
| showCopy | `boolean` | `true` | Whether to show the copy button in the toolbar. | 是否在工具栏中显示复制按钮。 |
|
|
29
|
+
| showLineNumbersToggle | `boolean` | `true` | Whether to show the line numbers toggle button in the toolbar. | 是否在工具栏中显示行号切换按钮。 |
|
|
30
|
+
|
|
31
|
+
> **Note:** The `showTheme` property controls the visibility of the `<aithe-theme-picker>` component in the toolbar. When a theme is selected, the `data-aithe-theme` attribute is set on the editor wrapper, and an `aithe-theme-change` event is emitted.
|
|
32
|
+
> **注意:** `showTheme` 属性控制工具栏中 `<aithe-theme-picker>` 组件的可见性。选择主题时,编辑器外壳上会设置 `data-aithe-theme` 属性,并触发 `aithe-theme-change` 事件。
|
|
33
|
+
|
|
34
|
+
## Events / 事件
|
|
35
|
+
|
|
36
|
+
All events are dispatched with the `aithe-` prefix following the Aithe convention.
|
|
37
|
+
所有事件均遵循 Aithe 约定,使用 `aithe-` 前缀。
|
|
38
|
+
|
|
39
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
40
|
+
| ------------------------- | ------------------------------------------------------- | -------------------------------------------------- | ------------------------------ |
|
|
41
|
+
| aithe-input | `{ value: string }` | Fired when editor content changes. | 当编辑器内容发生变化时触发。 |
|
|
42
|
+
| aithe-focus | — | Fired when editor gains focus. | 当编辑器获得焦点时触发。 |
|
|
43
|
+
| aithe-blur | — | Fired when editor loses focus. | 当编辑器失去焦点时触发。 |
|
|
44
|
+
| aithe-language-change | `{ language: string }` | Fired when language is changed via toolbar select. | 通过工具栏选择更改语言时触发。 |
|
|
45
|
+
| aithe-line-numbers-change | `{ lineNumbers: boolean }` | Fired when line numbers visibility is toggled. | 行号显示切换时触发。 |
|
|
46
|
+
| aithe-fullscreen-change | `{ isFullscreen: boolean }` | Fired when fullscreen mode is toggled. | 全屏模式切换时触发。 |
|
|
47
|
+
| aithe-copy | `{ success: boolean; value?: string; error?: unknown }` | Fired after copy button is clicked. | 点击复制按钮后触发。 |
|
|
48
|
+
| aithe-theme-change | `{ theme: string }` | Fired when theme is changed via toolbar picker. | 通过工具栏选择更改主题时触发。 |
|
|
49
|
+
| aithe-preview-toggle | `{ visible: boolean }` | Fired when preview pane is toggled. | 预览面板切换时触发。 |
|
|
50
|
+
|
|
51
|
+
> **Note:** Pressing the `Escape` key exits fullscreen mode. This is handled via a global `keydown` listener added in `connectedCallback` and removed in `disconnectedCallback`.
|
|
52
|
+
> **注意:** 按下 `Escape` 键退出全屏模式。这是通过在 `connectedCallback` 中添加的全局 `keydown` 监听器处理的,在 `disconnectedCallback` 中移除。
|
|
53
|
+
|
|
54
|
+
## Methods / 方法
|
|
55
|
+
|
|
56
|
+
| Name | Parameters | Return | Description (EN) | Description (CN) |
|
|
57
|
+
| --------------------- | ------------------------------ | ------------------------------------ | -------------------------------------------------- | ---------------------------- |
|
|
58
|
+
| focus | — | `void` | Focus the editor textarea. | 将焦点设置到编辑器文本区域。 |
|
|
59
|
+
| getSelectionStart | — | `number` | Get the start position of text selection. | 获取选区起始位置。 |
|
|
60
|
+
| getSelectionEnd | — | `number` | Get the end position of text selection. | 获取选区结束位置。 |
|
|
61
|
+
| setSelection | `(start: number, end: number)` | `void` | Set the text selection range. | 设置文本选区范围。 |
|
|
62
|
+
| getSupportedLanguages | — | `{ langId: string; name: string }[]` | Get the list of supported languages from registry. | 从注册表获取支持的语言列表。 |
|
|
63
|
+
|
|
64
|
+
> **Note:** The editor intercepts the `Tab` key to insert 2 spaces instead of moving focus out of the textarea.
|
|
65
|
+
> **注意:** 编辑器拦截 `Tab` 键,插入 2 个空格而不是移出焦点。
|
|
66
|
+
|
|
67
|
+
## CSS Properties / CSS 属性
|
|
68
|
+
|
|
69
|
+
The editor uses the following `--aithe-code-*` CSS custom properties for syntax highlighting colors. These are automatically set by each Aithe theme.
|
|
70
|
+
编辑器使用以下 `--aithe-code-*` CSS 自定义属性控制语法高亮颜色,每个 Aithe 主题会自动设置这些变量。
|
|
71
|
+
|
|
72
|
+
| Name | Default | Description (EN) | Description (CN) |
|
|
73
|
+
| ------------------------- | --------- | ----------------------------- | ---------------- |
|
|
74
|
+
| --aithe-code-keyword | `#a626a4` | Keyword color. | 关键字颜色。 |
|
|
75
|
+
| --aithe-code-boolean | `#986801` | Boolean literal color. | 布尔值颜色。 |
|
|
76
|
+
| --aithe-code-builtin | `#4078f2` | Built-in object color. | 内置对象颜色。 |
|
|
77
|
+
| --aithe-code-number | `#986801` | Numeric literal color. | 数值颜色。 |
|
|
78
|
+
| --aithe-code-string | `#50a14f` | String literal color. | 字符串颜色。 |
|
|
79
|
+
| --aithe-code-function | `#4078f2` | Function name color. | 函数名颜色。 |
|
|
80
|
+
| --aithe-code-type | `#c18401` | Type name color. | 类型名颜色。 |
|
|
81
|
+
| --aithe-code-preprocessor | `#a626a4` | Preprocessor directive color. | 预处理指令颜色。 |
|
|
82
|
+
| --aithe-code-tag | `#e45649` | XML/HTML tag color. | 标签颜色。 |
|
|
83
|
+
| --aithe-code-attr | `#986801` | XML/HTML attribute color. | 属性颜色。 |
|
|
84
|
+
| --aithe-code-key | `#e45649` | JSON/YAML key color. | 键名颜色。 |
|
|
85
|
+
| --aithe-code-punctuation | `#383a42` | Punctuation character color. | 标点符号颜色。 |
|
|
86
|
+
| --aithe-code-comment | `#94a3b8` | Comment color. | 注释颜色。 |
|
|
87
|
+
| --aithe-code-doctype | `#94a3b8` | DOCTYPE declaration color. | DOCTYPE 颜色。 |
|
|
88
|
+
| --aithe-code-entity | `#986801` | HTML entity color. | HTML 实体颜色。 |
|
|
89
|
+
| --aithe-code-placeholder | `#94a3b8` | Placeholder text color. | 占位符颜色。 |
|
|
90
|
+
|
|
91
|
+
## Syntax Highlighting Classes / 语法高亮样式类
|
|
92
|
+
|
|
93
|
+
The editor applies the following CSS classes for syntax highlighting:
|
|
94
|
+
编辑器应用以下 CSS 类进行语法高亮:
|
|
95
|
+
|
|
96
|
+
| Class | Description (EN) | Description (CN) |
|
|
97
|
+
| ------------------ | ----------------------------- | ---------------- |
|
|
98
|
+
| `.hl-keyword` | Programming language keywords | 编程语言关键字 |
|
|
99
|
+
| `.hl-boolean` | Boolean values (true/false) | 布尔值 |
|
|
100
|
+
| `.hl-builtin` | Built-in objects / globals | 内置对象/全局量 |
|
|
101
|
+
| `.hl-number` | Numeric values | 数值 |
|
|
102
|
+
| `.hl-string` | String literals | 字符串字面量 |
|
|
103
|
+
| `.hl-function` | Function names | 函数名 |
|
|
104
|
+
| `.hl-type` | Type names | 类型名 |
|
|
105
|
+
| `.hl-preprocessor` | Preprocessor directives | 预处理指令 |
|
|
106
|
+
| `.hl-key` | JSON/YAML object keys | JSON/YAML 键 |
|
|
107
|
+
| `.hl-tag` | XML/HTML tags | XML/HTML 标签 |
|
|
108
|
+
| `.hl-attr` | XML/HTML attributes | XML/HTML 属性 |
|
|
109
|
+
| `.hl-comment` | Comments | 注释 |
|
|
110
|
+
| `.hl-doctype` | DOCTYPE declarations | DOCTYPE 声明 |
|
|
111
|
+
| `.hl-entity` | HTML entities | HTML 实体 |
|
|
112
|
+
| `.hl-punctuation` | Punctuation characters | 标点符号 |
|
|
113
|
+
| `.hl-placeholder` | Placeholder text | 占位符文本 |
|
|
114
|
+
|
|
115
|
+
## Supported Languages / 支持的语言
|
|
116
|
+
|
|
117
|
+
Languages are dynamically registered via `SyntaxRegistry`. The built-in languages are:
|
|
118
|
+
语言通过 `SyntaxRegistry` 动态注册。内置语言包括:
|
|
119
|
+
|
|
120
|
+
| langId | Name |
|
|
121
|
+
| ---------- | ----------- |
|
|
122
|
+
| javascript | JavaScript |
|
|
123
|
+
| typescript | TypeScript |
|
|
124
|
+
| c | C |
|
|
125
|
+
| cpp | C++ |
|
|
126
|
+
| java | Java |
|
|
127
|
+
| html | HTML |
|
|
128
|
+
| xml | XML |
|
|
129
|
+
| json | JSON |
|
|
130
|
+
| jsonline | JSON (Line) |
|
|
131
|
+
| yaml | YAML |
|
|
132
|
+
| markdown | Markdown |
|
|
133
|
+
| python | Python |
|
|
134
|
+
| ruby | Ruby |
|
|
135
|
+
| bash | Bash |
|
|
136
|
+
| css | CSS |
|
|
137
|
+
| sql | SQL |
|
|
138
|
+
| rust | Rust |
|
|
139
|
+
| go | Go |
|
|
140
|
+
| kotlin | Kotlin |
|
|
141
|
+
| swift | Swift |
|
|
142
|
+
| jsx | JSX |
|
|
143
|
+
| tsx | TSX |
|
|
144
|
+
| vue | Vue |
|
|
145
|
+
| svelte | Svelte |
|
|
146
|
+
| wasm | WebAssembly |
|
|
147
|
+
| dockerfile | Dockerfile |
|
|
148
|
+
| makefile | Makefile |
|
|
149
|
+
| cmake | CMake |
|
|
150
|
+
| latex | LaTeX |
|
|
151
|
+
| fsharp | F# |
|
|
152
|
+
| powershell | PowerShell |
|
|
153
|
+
| perl | Perl |
|
|
154
|
+
| lua | Lua |
|
|
155
|
+
| scala | Scala |
|
|
156
|
+
| dart | Dart |
|
|
157
|
+
| r | R |
|
|
158
|
+
| objectivec | Objective-C |
|
|
159
|
+
|
|
160
|
+
To register a custom language, use `SyntaxRegistry.register()`:
|
|
161
|
+
如需注册自定义语言,使用 `SyntaxRegistry.register()`:
|
|
162
|
+
|
|
163
|
+
```typescript
|
|
164
|
+
import { SyntaxRegistry } from '@aithe/aithe-ui';
|
|
165
|
+
|
|
166
|
+
SyntaxRegistry.register({
|
|
167
|
+
langId: 'mylang',
|
|
168
|
+
name: 'My Language',
|
|
169
|
+
rules: [
|
|
170
|
+
{ pattern: /\b(keyword1|keyword2)\b/g, className: 'hl-keyword', order: 1 },
|
|
171
|
+
{ pattern: /"(?:[^"\\]|\\.)*"/g, className: 'hl-string', order: 2 },
|
|
172
|
+
],
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Examples / 示例
|
|
177
|
+
|
|
178
|
+
### Basic Usage / 基础用法
|
|
179
|
+
|
|
180
|
+
```html
|
|
181
|
+
<aithe-code-editor language="javascript"></aithe-code-editor>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### With Toolbar / 带工具栏
|
|
185
|
+
|
|
186
|
+
```html
|
|
187
|
+
<aithe-code-editor language="typescript" show-toolbar></aithe-code-editor>
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Readonly Mode / 只读模式
|
|
191
|
+
|
|
192
|
+
```html
|
|
193
|
+
<aithe-code-editor language="json" readonly value='{"key": "value"}'></aithe-code-editor>
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Without Line Numbers / 不显示行号
|
|
197
|
+
|
|
198
|
+
```html
|
|
199
|
+
<aithe-code-editor language="java" line-numbers="false"></aithe-code-editor>
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Custom Toolbar Buttons / 自定义工具栏按钮
|
|
203
|
+
|
|
204
|
+
```html
|
|
205
|
+
<aithe-code-editor
|
|
206
|
+
language="javascript"
|
|
207
|
+
show-toolbar
|
|
208
|
+
show-language
|
|
209
|
+
show-fullscreen="false"
|
|
210
|
+
show-copy="false"
|
|
211
|
+
show-line-numbers-toggle
|
|
212
|
+
></aithe-code-editor>
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Custom Toolbar Content via Slots / 通过插槽自定义工具栏内容
|
|
216
|
+
|
|
217
|
+
```html
|
|
218
|
+
<aithe-code-editor language="javascript" show-toolbar>
|
|
219
|
+
<button slot="toolbar-left" onclick="runCode()">Run</button>
|
|
220
|
+
<button slot="toolbar-right" onclick="formatCode()">Format</button>
|
|
221
|
+
</aithe-code-editor>
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### With Preview Pane / 带预览面板
|
|
225
|
+
|
|
226
|
+
```html
|
|
227
|
+
<aithe-code-editor language="markdown" show-toolbar show-preview>
|
|
228
|
+
<div slot="preview"><!-- rendered preview content --></div>
|
|
229
|
+
</aithe-code-editor>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Event Handling / 事件处理
|
|
233
|
+
|
|
234
|
+
```javascript
|
|
235
|
+
const editor = document.querySelector('aithe-code-editor');
|
|
236
|
+
editor.addEventListener('aithe-input', (e) => {
|
|
237
|
+
console.log('Content:', e.detail.value);
|
|
238
|
+
});
|
|
239
|
+
editor.addEventListener('aithe-language-change', (e) => {
|
|
240
|
+
console.log('Language changed to:', e.detail.language);
|
|
241
|
+
});
|
|
242
|
+
editor.addEventListener('aithe-line-numbers-change', (e) => {
|
|
243
|
+
console.log('Line numbers visible:', e.detail.lineNumbers);
|
|
244
|
+
});
|
|
245
|
+
editor.addEventListener('aithe-theme-change', (e) => {
|
|
246
|
+
console.log('Theme changed to:', e.detail.theme);
|
|
247
|
+
});
|
|
248
|
+
editor.addEventListener('aithe-preview-toggle', (e) => {
|
|
249
|
+
console.log('Preview visible:', e.detail.visible);
|
|
250
|
+
});
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Using with TypeScript / 在 TypeScript 中使用
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
import '@aithe/aithe-ui';
|
|
257
|
+
|
|
258
|
+
const editor = document.querySelector('aithe-code-editor') as HTMLElement & {
|
|
259
|
+
value: string;
|
|
260
|
+
language: string;
|
|
261
|
+
focus: () => void;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// Set content
|
|
265
|
+
editor.value = `function greet(name: string): string {
|
|
266
|
+
return \`Hello, \${name}!\`;
|
|
267
|
+
}`;
|
|
268
|
+
|
|
269
|
+
editor.language = 'typescript';
|
|
270
|
+
|
|
271
|
+
// Listen for changes
|
|
272
|
+
editor.addEventListener('aithe-input', (e: CustomEvent<{ value: string }>) => {
|
|
273
|
+
console.log('New value:', e.detail.value);
|
|
274
|
+
});
|
|
275
|
+
```
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# AitheLabel / AitheLabel标签
|
|
2
|
+
|
|
3
|
+
> Lightweight label component that renders a Markdown subset for descriptions and labels.
|
|
4
|
+
> 轻量级标签组件,渲染 Markdown 子集用于描述和标签展示。
|
|
5
|
+
|
|
6
|
+
## Supported Syntax / 支持的语法
|
|
7
|
+
|
|
8
|
+
| Syntax | Description (EN) | Description (CN) |
|
|
9
|
+
| -------------- | -------------------------------------------------------------- | ------------------------------------ |
|
|
10
|
+
| `**text**` | Bold | 加粗 |
|
|
11
|
+
| `~~text~~` | Strikethrough | 删除线 |
|
|
12
|
+
| `` `code` `` | Inline code | 行内代码 |
|
|
13
|
+
| `[text](path)` | Internal link (external links blocked by default for security) | 站内链接(外链默认被阻止以确保安全) |
|
|
14
|
+
| `:emoji_name:` | Emoji shortcode (e.g. `:smile:`, `:check:`) | 表情简码 |
|
|
15
|
+
| `:iconName:` | Built-in icon via `<aithe-icon>` | 内置图标 |
|
|
16
|
+
|
|
17
|
+
> External URLs (http/https/ftp/absolute paths) are converted to plain text by default. Use `linkHooks` to customize this behavior.
|
|
18
|
+
> 外部 URL(http/https/ftp/绝对路径)默认被转换为纯文本。可通过 `linkHooks` 自定义此行为。
|
|
19
|
+
|
|
20
|
+
## Slots / 插槽
|
|
21
|
+
|
|
22
|
+
| Name | Description (EN) | Description (CN) |
|
|
23
|
+
| ---- | --------------------------------------------------------- | ------------------------------------- |
|
|
24
|
+
| — | No slots; content is provided via the `content` property. | 无插槽;内容通过 `content` 属性提供。 |
|
|
25
|
+
|
|
26
|
+
## Properties / 属性
|
|
27
|
+
|
|
28
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
29
|
+
| --------- | -------------------- | ------- | ---------------------------------------------- | ------------------------------------- |
|
|
30
|
+
| content | `string` | `''` | Markdown source text. | Markdown 源文本。 |
|
|
31
|
+
| linkHooks | `MarkdownLinkHook[]` | — | Custom link hooks to intercept/transform URLs. | 自定义链接处理 hook,拦截或转换 URL。 |
|
|
32
|
+
|
|
33
|
+
## Events / 事件
|
|
34
|
+
|
|
35
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
36
|
+
| ---- | ------ | ----------------- | ---------------- |
|
|
37
|
+
| — | — | No custom events. | 无自定义事件。 |
|
|
38
|
+
|
|
39
|
+
## CSS Custom Properties / CSS 自定义属性
|
|
40
|
+
|
|
41
|
+
| Name | Default | Description (EN) | Description (CN) |
|
|
42
|
+
| -------------------------- | ------- | --------------------------------------------- | -------------------------------- |
|
|
43
|
+
| `--aithe-color-text` | — | Text color. | 文本颜色。 |
|
|
44
|
+
| `--aithe-color-text-muted` | — | Muted text color (strikethrough, blockquote). | 弱化文本颜色(删除线、引用块)。 |
|
|
45
|
+
| `--aithe-color-bg-muted` | — | Code background color. | 代码背景颜色。 |
|
|
46
|
+
| `--aithe-primary-5` | — | Blockquote left border color. | 引用块左边框颜色。 |
|
|
47
|
+
| `--aithe-primary-6` | — | Link color. | 链接颜色。 |
|
|
48
|
+
| `--aithe-primary-7` | — | Inline code text color. | 行内代码文本颜色。 |
|
|
49
|
+
| `--aithe-font-size-sm` | `12px` | Font size for `size="sm"`. | `size="sm"` 时的字号。 |
|
|
50
|
+
| `--aithe-font-size-md` | `14px` | Font size for `size="md"`. | `size="md"` 时的字号。 |
|
|
51
|
+
| `--aithe-font-size-lg` | `16px` | Font size for `size="lg"`. | `size="lg"` 时的字号。 |
|
|
52
|
+
| `--aithe-font-family-mono` | — | Monospace font for inline code. | 行内代码的等宽字体。 |
|
|
53
|
+
| `--aithe-space-2` | — | Spacing unit (blockquote/list margin). | 间距单位(引用块/列表外边距)。 |
|
|
54
|
+
| `--aithe-space-3` | — | Spacing unit (blockquote padding). | 间距单位(引用块内边距)。 |
|
|
55
|
+
| `--aithe-space-5` | — | Spacing unit (list padding-left). | 间距单位(列表左内边距)。 |
|
|
56
|
+
|
|
57
|
+
## Examples / 示例
|
|
58
|
+
|
|
59
|
+
### Basic Usage / 基础用法
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<aithe-label content="**Bold** and `code`."></aithe-label>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### With Emoji and Icons / 带表情和图标
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<aithe-label content=":check: 已完成"></aithe-label>
|
|
69
|
+
<aithe-label content=":smile: 很高兴见到你"></aithe-label>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Size Variants / 尺寸变体
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<aithe-label content="Small label" size="sm"></aithe-label>
|
|
76
|
+
<aithe-label content="Medium label" size="md"></aithe-label>
|
|
77
|
+
<aithe-label content="Large label" size="lg"></aithe-label>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### With Custom Link Hooks / 自定义链接处理
|
|
81
|
+
|
|
82
|
+
```javascript
|
|
83
|
+
const label = document.querySelector('aithe-label');
|
|
84
|
+
label.linkHooks = [(url) => (url.startsWith('/docs/') ? url : '')];
|
|
85
|
+
```
|