@aithe/aithe-ui 26.2.3 → 26.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -11
- package/dist/apps/admin/app.js +12 -0
- package/dist/apps/admin/components/admin-app.js +83 -0
- package/dist/apps/admin/components/admin-layout.d.ts +0 -1
- package/dist/apps/admin/components/admin-layout.d.ts.map +1 -1
- package/dist/apps/admin/components/admin-layout.js +250 -0
- package/dist/apps/admin/datahub/auth.js +24 -0
- package/dist/apps/admin/datahub/dashboard.js +16 -0
- package/dist/apps/admin/datahub/index.js +42 -0
- package/dist/apps/admin/datahub/menu.js +16 -0
- package/dist/apps/admin/datahub/mock/auth.js +11 -0
- package/dist/apps/admin/datahub/mock/dashboard.js +10 -0
- package/dist/apps/admin/datahub/mock/menu.js +42 -0
- package/dist/apps/admin/i18n/de-DE.js +37 -0
- package/dist/apps/admin/i18n/en-US.js +37 -0
- package/dist/apps/admin/i18n/es-ES.js +38 -0
- package/dist/apps/admin/i18n/fr-FR.js +37 -0
- package/dist/apps/admin/i18n/index.js +27 -0
- package/dist/apps/admin/i18n/ja-JP.js +38 -0
- package/dist/apps/admin/i18n/ko-KR.js +37 -0
- package/dist/apps/admin/i18n/pt-BR.js +37 -0
- package/dist/apps/admin/i18n/zh-CN.js +37 -0
- package/dist/apps/admin/i18n/zh-HK.js +37 -0
- package/dist/apps/admin/i18n/zh-TW.js +37 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts +1 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts.map +1 -1
- package/dist/apps/admin/pages/dashboard-page.js +199 -0
- package/dist/apps/admin/pages/login-page.js +278 -0
- package/dist/apps/admin/pages/not-found-page.js +57 -0
- package/dist/apps/admin/pages/role-page.js +76 -0
- package/dist/apps/admin/pages/settings-page.js +95 -0
- package/dist/apps/admin/pages/user-page.js +76 -0
- package/dist/apps/admin/router/index.js +43 -0
- package/dist/apps/admin/standalone.js +1 -0
- package/dist/apps/admin/store/auth.js +42 -0
- package/dist/apps/api/app.js +82 -0
- package/dist/apps/api/demo-data.d.ts.map +1 -1
- package/dist/apps/api/demo-data.js +965 -0
- package/dist/apps/api/docs-viewer.js +684 -0
- package/dist/apps/api/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/api/i18n/de-DE.js +131 -0
- package/dist/apps/api/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/api/i18n/en-US.js +141 -0
- package/dist/apps/api/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/api/i18n/es-ES.js +131 -0
- package/dist/apps/api/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/api/i18n/fr-FR.js +131 -0
- package/dist/apps/api/i18n/index.js +27 -0
- package/dist/apps/api/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/api/i18n/ja-JP.js +131 -0
- package/dist/apps/api/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/api/i18n/ko-KR.js +131 -0
- package/dist/apps/api/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/api/i18n/pt-BR.js +131 -0
- package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-CN.js +141 -0
- package/dist/apps/api/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-HK.js +131 -0
- package/dist/apps/api/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-TW.js +131 -0
- package/dist/apps/api/pages/docs.d.ts.map +1 -1
- package/dist/apps/api/pages/docs.js +369 -0
- package/dist/apps/api/standalone.js +1 -0
- package/dist/apps/demo/app.d.ts.map +1 -1
- package/dist/apps/demo/app.js +275 -0
- package/dist/apps/demo/editor.d.ts.map +1 -1
- package/dist/apps/demo/editor.js +270 -0
- package/dist/apps/demo/helpers.js +7 -0
- package/dist/apps/demo/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/demo/i18n/de-DE.js +289 -0
- package/dist/apps/demo/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/demo/i18n/en-US.js +301 -0
- package/dist/apps/demo/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/demo/i18n/es-ES.js +289 -0
- package/dist/apps/demo/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/fr-FR.js +289 -0
- package/dist/apps/demo/i18n/index.js +27 -0
- package/dist/apps/demo/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ja-JP.js +289 -0
- package/dist/apps/demo/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ko-KR.js +289 -0
- package/dist/apps/demo/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/pt-BR.js +289 -0
- package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-CN.js +301 -0
- package/dist/apps/demo/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-HK.js +289 -0
- package/dist/apps/demo/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-TW.js +289 -0
- package/dist/apps/demo/pages/autoform.d.ts.map +1 -1
- package/dist/apps/demo/pages/autoform.js +422 -0
- package/dist/apps/demo/pages/autoview.d.ts +3 -0
- package/dist/apps/demo/pages/autoview.d.ts.map +1 -0
- package/dist/apps/demo/pages/autoview.js +310 -0
- package/dist/apps/demo/pages/basic.js +157 -0
- package/dist/apps/demo/pages/code.js +1088 -0
- package/dist/apps/demo/pages/container.js +42 -0
- package/dist/apps/demo/pages/dashboard.js +159 -0
- package/dist/apps/demo/pages/data.d.ts.map +1 -1
- package/dist/apps/demo/pages/data.js +327 -0
- package/dist/apps/demo/pages/display.d.ts.map +1 -1
- package/dist/apps/demo/pages/display.js +295 -0
- package/dist/apps/demo/pages/feedback.js +94 -0
- package/dist/apps/demo/pages/form.d.ts.map +1 -1
- package/dist/apps/demo/pages/form.js +119 -0
- package/dist/apps/demo/pages/layout.js +74 -0
- package/dist/apps/demo/pages/navigation.js +54 -0
- package/dist/apps/demo/pages/progress.js +42 -0
- package/dist/apps/demo/pages/theme.js +126 -0
- package/dist/apps/demo/standalone.js +1 -0
- package/dist/components/basic/AGENTS.md +1 -0
- package/dist/components/basic/avatar.js +168 -0
- package/dist/components/basic/badge.js +157 -0
- package/dist/components/basic/button-group.js +70 -0
- package/dist/components/basic/button.d.ts +2 -4
- package/dist/components/basic/button.d.ts.map +1 -1
- package/dist/components/basic/button.js +315 -0
- package/dist/components/basic/card.js +186 -0
- package/dist/components/basic/chip.js +103 -0
- package/dist/components/basic/divider.js +127 -0
- package/dist/components/basic/empty.js +72 -0
- package/dist/components/basic/icon.js +129 -0
- package/dist/components/basic/input.d.ts.map +1 -1
- package/dist/components/basic/input.js +314 -0
- package/dist/components/basic/tag.d.ts +7 -2
- package/dist/components/basic/tag.d.ts.map +1 -1
- package/dist/components/basic/tag.js +248 -0
- package/dist/components/basic/textarea.d.ts +0 -1
- package/dist/components/basic/textarea.d.ts.map +1 -1
- package/dist/components/basic/textarea.js +130 -0
- package/dist/components/container/callout.js +108 -0
- package/dist/components/container/details.js +117 -0
- package/dist/components/container/scroller.js +144 -0
- package/dist/components/container/split-panel.js +150 -0
- package/dist/components/data/AGENTS.md +1 -1
- package/dist/components/data/box-table.d.ts +53 -0
- package/dist/components/data/box-table.d.ts.map +1 -0
- package/dist/components/data/box-table.js +220 -0
- package/dist/components/data/dropdown.d.ts +8 -5
- package/dist/components/data/dropdown.d.ts.map +1 -1
- package/dist/components/data/dropdown.js +219 -0
- package/dist/components/data/metrics-group.js +180 -0
- package/dist/components/data/metrics.d.ts +11 -0
- package/dist/components/data/metrics.d.ts.map +1 -1
- package/dist/components/data/metrics.js +309 -0
- package/dist/components/data/pagination.js +119 -0
- package/dist/components/data/tab-pane.d.ts +58 -12
- package/dist/components/data/tab-pane.d.ts.map +1 -1
- package/dist/components/data/tab-pane.js +130 -0
- package/dist/components/data/table-column.d.ts +29 -5
- package/dist/components/data/table-column.d.ts.map +1 -1
- package/dist/components/data/table-column.js +123 -0
- package/dist/components/data/table.d.ts +134 -54
- package/dist/components/data/table.d.ts.map +1 -1
- package/dist/components/data/table.js +1210 -0
- package/dist/components/data/tabs.d.ts +60 -3
- package/dist/components/data/tabs.d.ts.map +1 -1
- package/dist/components/data/tabs.js +416 -0
- package/dist/components/data/timeline-item.js +127 -0
- package/dist/components/data/timeline.js +204 -0
- package/dist/components/data/tree-menu.d.ts +12 -2
- package/dist/components/data/tree-menu.d.ts.map +1 -1
- package/dist/components/data/tree-menu.js +482 -0
- package/dist/components/data/tree.js +269 -0
- package/dist/components/display/AGENTS.md +5 -2
- package/dist/components/display/animated-image.js +98 -0
- package/dist/components/display/autoview.d.ts +139 -0
- package/dist/components/display/autoview.d.ts.map +1 -0
- package/dist/components/display/autoview.js +460 -0
- package/dist/components/display/brief-box.d.ts +42 -0
- package/dist/components/display/brief-box.d.ts.map +1 -0
- package/dist/components/display/brief-box.js +117 -0
- package/dist/components/display/carousel.js +223 -0
- package/dist/components/display/code-editor.d.ts.map +1 -1
- package/dist/components/display/code-editor.js +976 -0
- package/dist/components/display/comparison.js +132 -0
- package/dist/components/display/desc-item.d.ts +48 -0
- package/dist/components/display/desc-item.d.ts.map +1 -0
- package/dist/components/display/desc-item.js +150 -0
- package/dist/components/display/desc.d.ts +68 -0
- package/dist/components/display/desc.d.ts.map +1 -0
- package/dist/components/display/desc.js +405 -0
- package/dist/components/display/detail-box.d.ts +51 -0
- package/dist/components/display/detail-box.d.ts.map +1 -0
- package/dist/components/display/detail-box.js +157 -0
- package/dist/components/display/label.js +166 -0
- package/dist/components/display/markdown-editor.js +319 -0
- package/dist/components/display/markdown.d.ts.map +1 -1
- package/dist/components/display/markdown.js +193 -0
- package/dist/components/display/mini-box.d.ts +31 -0
- package/dist/components/display/mini-box.d.ts.map +1 -0
- package/dist/components/display/mini-box.js +137 -0
- package/dist/components/display/profile.d.ts +18 -0
- package/dist/components/display/profile.d.ts.map +1 -0
- package/dist/components/display/profile.js +164 -0
- package/dist/components/feedback/AGENTS.md +1 -0
- package/dist/components/feedback/alert.js +150 -0
- package/dist/components/feedback/dialog.js +228 -0
- package/dist/components/feedback/drawer.d.ts.map +1 -1
- package/dist/components/feedback/drawer.js +338 -0
- package/dist/components/feedback/loading.js +130 -0
- package/dist/components/feedback/modal.d.ts.map +1 -1
- package/dist/components/feedback/modal.js +303 -0
- package/dist/components/feedback/notification.js +170 -0
- package/dist/components/feedback/popover.d.ts +1 -1
- package/dist/components/feedback/popover.js +124 -0
- package/dist/components/feedback/toast.js +142 -0
- package/dist/components/feedback/tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip.js +153 -0
- package/dist/components/form/AGENTS.md +4 -0
- package/dist/components/form/autoform-item.d.ts +6 -0
- package/dist/components/form/autoform-item.d.ts.map +1 -1
- package/dist/components/form/autoform-item.js +791 -0
- package/dist/components/form/autoform.d.ts +15 -5
- package/dist/components/form/autoform.d.ts.map +1 -1
- package/dist/components/form/autoform.js +303 -0
- package/dist/components/form/checkbox-group.js +118 -0
- package/dist/components/form/checkbox.js +123 -0
- package/dist/components/form/color-picker.js +148 -0
- package/dist/components/form/combobox.d.ts +4 -0
- package/dist/components/form/combobox.d.ts.map +1 -1
- package/dist/components/form/combobox.js +325 -0
- package/dist/components/form/date-picker.js +123 -0
- package/dist/components/form/form-item.d.ts.map +1 -1
- package/dist/components/form/form-item.js +141 -0
- package/dist/components/form/form.js +94 -0
- package/dist/components/form/radio-group.js +106 -0
- package/dist/components/form/radio.js +110 -0
- package/dist/components/form/rate.js +116 -0
- package/dist/components/form/select.d.ts +5 -1
- package/dist/components/form/select.d.ts.map +1 -1
- package/dist/components/form/select.js +539 -0
- package/dist/components/form/slider.js +134 -0
- package/dist/components/form/switch.js +146 -0
- package/dist/components/form/time-picker.js +92 -0
- package/dist/components/form/transfer.js +273 -0
- package/dist/components/form/upload.js +138 -0
- package/dist/components/framework/body.js +333 -0
- package/dist/components/framework/dashboard-panel.js +519 -0
- package/dist/components/framework/dashboard.d.ts.map +1 -1
- package/dist/components/framework/dashboard.js +1084 -0
- package/dist/components/framework/header.js +237 -0
- package/dist/components/framework/log-panel.js +637 -0
- package/dist/components/framework/page.js +151 -0
- package/dist/components/framework/sidebar.d.ts +4 -10
- package/dist/components/framework/sidebar.d.ts.map +1 -1
- package/dist/components/framework/sidebar.js +477 -0
- package/dist/components/layout/affix.js +137 -0
- package/dist/components/layout/col.js +103 -0
- package/dist/components/layout/collapse-item.js +165 -0
- package/dist/components/layout/collapse.js +108 -0
- package/dist/components/layout/container.js +92 -0
- package/dist/components/layout/flex.js +100 -0
- package/dist/components/layout/row.js +103 -0
- package/dist/components/layout/space.js +85 -0
- package/dist/components/navigation/back-top.js +127 -0
- package/dist/components/navigation/breadcrumb-item.js +108 -0
- package/dist/components/navigation/breadcrumb.js +70 -0
- package/dist/components/navigation/menu-item.js +181 -0
- package/dist/components/navigation/menu.js +126 -0
- package/dist/components/navigation/steps.js +183 -0
- package/dist/components/navigation/sub-menu.d.ts.map +1 -1
- package/dist/components/navigation/sub-menu.js +252 -0
- package/dist/components/progress/progress-bar.js +97 -0
- package/dist/components/progress/progress-ring.js +111 -0
- package/dist/components/progress/skeleton.js +108 -0
- package/dist/components/progress/spinner.js +129 -0
- package/dist/components/theme/locale-switch.js +241 -0
- package/dist/components/theme/shadow-picker.js +233 -0
- package/dist/components/theme/shape-picker.js +232 -0
- package/dist/components/theme/theme-picker.js +236 -0
- package/dist/components/theme/theme-preview.d.ts +1 -2
- package/dist/components/theme/theme-preview.d.ts.map +1 -1
- package/dist/components/theme/theme-preview.js +376 -0
- package/dist/components/theme/theme-switch.d.ts.map +1 -1
- package/dist/components/theme/theme-switch.js +318 -0
- package/dist/components/theme/typo-picker.js +219 -0
- package/dist/core/AGENTS.md +6 -1
- package/dist/core/aithe-element.d.ts +2 -2
- package/dist/core/aithe-element.js +135 -0
- package/dist/core/aithe-widget.js +30 -0
- package/dist/core/anchored-overlay.d.ts +3 -0
- package/dist/core/anchored-overlay.d.ts.map +1 -1
- package/dist/core/anchored-overlay.js +111 -0
- package/dist/core/autoform/autoform.js +79 -0
- package/dist/core/autoform/autoview.d.ts +86 -0
- package/dist/core/autoform/autoview.d.ts.map +1 -0
- package/dist/core/autoform/autoview.js +37 -0
- package/dist/core/autoform/condition.js +170 -0
- package/dist/core/autoform/index.d.ts +2 -0
- package/dist/core/autoform/index.d.ts.map +1 -1
- package/dist/core/autoform/index.js +9 -0
- package/dist/core/autoform/types.js +7 -0
- package/dist/core/datahub/__tests__/force-options.test.d.ts +8 -0
- package/dist/core/datahub/__tests__/force-options.test.d.ts.map +1 -0
- package/dist/core/datahub/__tests__/force-options.test.js +161 -0
- package/dist/core/datahub/config/strategy.d.ts +1 -1
- package/dist/core/datahub/config/strategy.d.ts.map +1 -1
- package/dist/core/datahub/config/strategy.js +50 -0
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts +1 -1
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts.map +1 -1
- package/dist/core/datahub/core/adapter/fetch-adapter.js +118 -0
- package/dist/core/datahub/core/adapter/index.js +7 -0
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts +1 -1
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts.map +1 -1
- package/dist/core/datahub/core/adapter/mock-adapter.js +58 -0
- package/dist/core/datahub/core/api-styles.d.ts +1 -1
- package/dist/core/datahub/core/api-styles.d.ts.map +1 -1
- package/dist/core/datahub/core/api-styles.js +136 -0
- package/dist/core/datahub/core/datahub-core.d.ts +53 -3
- package/dist/core/datahub/core/datahub-core.d.ts.map +1 -1
- package/dist/core/datahub/core/datahub-core.js +520 -0
- package/dist/core/datahub/core/index.js +7 -0
- package/dist/core/datahub/index.js +50 -0
- package/dist/core/datahub/types.d.ts +24 -0
- package/dist/core/datahub/types.d.ts.map +1 -1
- package/dist/core/datahub/types.js +31 -0
- package/dist/core/datahub/utils/cache.js +55 -0
- package/dist/core/datahub/utils/common.js +23 -0
- package/dist/core/datahub/utils/dedup.d.ts +1 -1
- package/dist/core/datahub/utils/dedup.d.ts.map +1 -1
- package/dist/core/datahub/utils/dedup.js +52 -0
- package/dist/core/datahub/utils/idempotent.js +61 -0
- package/dist/core/datahub/utils/is-query.js +53 -0
- package/dist/core/datahub/utils/loading.js +78 -0
- package/dist/core/filter/__tests__/index.test.d.ts +2 -0
- package/dist/core/filter/__tests__/index.test.d.ts.map +1 -0
- package/dist/core/filter/__tests__/index.test.js +230 -0
- package/dist/core/filter/builtins.d.ts +60 -0
- package/dist/core/filter/builtins.d.ts.map +1 -0
- package/dist/core/filter/builtins.js +172 -0
- package/dist/core/filter/factory.d.ts +54 -0
- package/dist/core/filter/factory.d.ts.map +1 -0
- package/dist/core/filter/factory.js +96 -0
- package/dist/core/filter/index.d.ts +11 -0
- package/dist/core/filter/index.d.ts.map +1 -0
- package/dist/core/filter/index.js +9 -0
- package/dist/core/filter/types.d.ts +12 -0
- package/dist/core/filter/types.d.ts.map +1 -0
- package/dist/core/filter/types.js +1 -0
- package/dist/core/floating.js +132 -0
- package/dist/core/highlight/index.js +43 -0
- package/dist/core/highlight/lang-bash.js +27 -0
- package/dist/core/highlight/lang-c.js +27 -0
- package/dist/core/highlight/lang-cmake.js +27 -0
- package/dist/core/highlight/lang-cpp.js +27 -0
- package/dist/core/highlight/lang-css.js +24 -0
- package/dist/core/highlight/lang-dart.js +27 -0
- package/dist/core/highlight/lang-dockerfile.js +16 -0
- package/dist/core/highlight/lang-fsharp.js +23 -0
- package/dist/core/highlight/lang-go.js +22 -0
- package/dist/core/highlight/lang-html.js +12 -0
- package/dist/core/highlight/lang-java.js +22 -0
- package/dist/core/highlight/lang-javascript.js +26 -0
- package/dist/core/highlight/lang-json.js +13 -0
- package/dist/core/highlight/lang-jsonline.js +13 -0
- package/dist/core/highlight/lang-jsx.js +30 -0
- package/dist/core/highlight/lang-kotlin.js +27 -0
- package/dist/core/highlight/lang-latex.js +22 -0
- package/dist/core/highlight/lang-lua.js +26 -0
- package/dist/core/highlight/lang-makefile.js +22 -0
- package/dist/core/highlight/lang-markdown.js +18 -0
- package/dist/core/highlight/lang-objectivec.js +24 -0
- package/dist/core/highlight/lang-perl.js +30 -0
- package/dist/core/highlight/lang-powershell.js +23 -0
- package/dist/core/highlight/lang-python.js +27 -0
- package/dist/core/highlight/lang-r.js +21 -0
- package/dist/core/highlight/lang-ruby.js +29 -0
- package/dist/core/highlight/lang-rust.js +24 -0
- package/dist/core/highlight/lang-scala.js +26 -0
- package/dist/core/highlight/lang-sql.js +21 -0
- package/dist/core/highlight/lang-svelte.js +27 -0
- package/dist/core/highlight/lang-swift.js +28 -0
- package/dist/core/highlight/lang-tsx.js +35 -0
- package/dist/core/highlight/lang-typescript.js +31 -0
- package/dist/core/highlight/lang-vue.js +29 -0
- package/dist/core/highlight/lang-wasm.js +22 -0
- package/dist/core/highlight/lang-xml.js +12 -0
- package/dist/core/highlight/lang-yaml.js +14 -0
- package/dist/core/highlight/registry.js +99 -0
- package/dist/core/logger/LoggerCore.js +626 -0
- package/dist/core/logger/index.js +10 -0
- package/dist/core/logger/types.js +29 -0
- package/dist/core/markdown/index.js +20 -0
- package/dist/core/markdown/parser.d.ts +2 -0
- package/dist/core/markdown/parser.d.ts.map +1 -1
- package/dist/core/markdown/parser.js +376 -0
- package/dist/core/markdown/plugins.d.ts +2 -1
- package/dist/core/markdown/plugins.d.ts.map +1 -1
- package/dist/core/markdown/plugins.js +755 -0
- package/dist/core/markdown/types.d.ts +5 -0
- package/dist/core/markdown/types.d.ts.map +1 -1
- package/dist/core/markdown/types.js +7 -0
- package/dist/core/router/index.js +244 -0
- package/dist/core/styles.js +44 -0
- package/dist/core/types.d.ts +52 -3
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3695 -1622
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1844 -758
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/aithe-ui.d.ts +23 -0
- package/dist/styles/aithe-ui.d.ts.map +1 -1
- package/dist/styles/aithe-ui.js +185 -0
- package/dist/styles/global.css.d.ts +1 -1
- package/dist/styles/global.css.d.ts.map +1 -1
- package/dist/styles/global.css.js +119 -0
- package/dist/styles/i18n/index.js +206 -0
- package/dist/styles/i18n/locales/de-DE.d.ts.map +1 -1
- package/dist/styles/i18n/locales/de-DE.js +151 -0
- package/dist/styles/i18n/locales/en-US.d.ts.map +1 -1
- package/dist/styles/i18n/locales/en-US.js +160 -0
- package/dist/styles/i18n/locales/es-ES.d.ts.map +1 -1
- package/dist/styles/i18n/locales/es-ES.js +151 -0
- package/dist/styles/i18n/locales/fr-FR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/fr-FR.js +151 -0
- package/dist/styles/i18n/locales/index.js +14 -0
- package/dist/styles/i18n/locales/ja-JP.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ja-JP.js +151 -0
- package/dist/styles/i18n/locales/ko-KR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ko-KR.js +151 -0
- package/dist/styles/i18n/locales/pt-BR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/pt-BR.js +151 -0
- package/dist/styles/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-CN.js +160 -0
- package/dist/styles/i18n/locales/zh-HK.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-HK.js +151 -0
- package/dist/styles/i18n/locales/zh-TW.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-TW.js +151 -0
- package/dist/styles/layout/index.js +88 -0
- package/dist/styles/mixins.js +43 -0
- package/dist/styles/shadow/cyber.js +19 -0
- package/dist/styles/shadow/deep.js +19 -0
- package/dist/styles/shadow/diffuse.js +19 -0
- package/dist/styles/shadow/flat.js +19 -0
- package/dist/styles/shadow/glassmorphism.js +19 -0
- package/dist/styles/shadow/index.js +129 -0
- package/dist/styles/shadow/neumorphism.js +21 -0
- package/dist/styles/shadow/retro.js +19 -0
- package/dist/styles/shadow/sharp-business.js +19 -0
- package/dist/styles/shadow/skeuomorphic.js +21 -0
- package/dist/styles/shape/chamfer.js +19 -0
- package/dist/styles/shape/circle.js +19 -0
- package/dist/styles/shape/index.js +174 -0
- package/dist/styles/shape/organic.js +19 -0
- package/dist/styles/shape/pill.js +19 -0
- package/dist/styles/shape/rounded.js +21 -0
- package/dist/styles/shape/rounder.js +19 -0
- package/dist/styles/shape/sharp.js +19 -0
- package/dist/styles/shape/smooth.js +19 -0
- package/dist/styles/theme/aliyun.d.ts +1 -1
- package/dist/styles/theme/aliyun.d.ts.map +1 -1
- package/dist/styles/theme/aliyun.js +102 -0
- package/dist/styles/theme/amber.d.ts +1 -1
- package/dist/styles/theme/amber.d.ts.map +1 -1
- package/dist/styles/theme/amber.js +101 -0
- package/dist/styles/theme/blue.d.ts +1 -1
- package/dist/styles/theme/blue.d.ts.map +1 -1
- package/dist/styles/theme/blue.js +101 -0
- package/dist/styles/theme/charcoal.d.ts +1 -1
- package/dist/styles/theme/charcoal.d.ts.map +1 -1
- package/dist/styles/theme/charcoal.js +106 -0
- package/dist/styles/theme/cyan.d.ts +1 -1
- package/dist/styles/theme/cyan.d.ts.map +1 -1
- package/dist/styles/theme/cyan.js +96 -0
- package/dist/styles/theme/dark.d.ts +1 -1
- package/dist/styles/theme/dark.d.ts.map +1 -1
- package/dist/styles/theme/dark.js +106 -0
- package/dist/styles/theme/ebony.d.ts +1 -1
- package/dist/styles/theme/ebony.d.ts.map +1 -1
- package/dist/styles/theme/ebony.js +106 -0
- package/dist/styles/theme/festive.d.ts +1 -1
- package/dist/styles/theme/festive.d.ts.map +1 -1
- package/dist/styles/theme/festive.js +101 -0
- package/dist/styles/theme/graphite.d.ts +1 -1
- package/dist/styles/theme/graphite.d.ts.map +1 -1
- package/dist/styles/theme/graphite.js +106 -0
- package/dist/styles/theme/gray.d.ts +1 -1
- package/dist/styles/theme/gray.d.ts.map +1 -1
- package/dist/styles/theme/gray.js +101 -0
- package/dist/styles/theme/huawei.d.ts +1 -1
- package/dist/styles/theme/huawei.d.ts.map +1 -1
- package/dist/styles/theme/huawei.js +102 -0
- package/dist/styles/theme/index.d.ts +1 -1
- package/dist/styles/theme/index.d.ts.map +1 -1
- package/dist/styles/theme/index.js +276 -0
- package/dist/styles/theme/indigo.d.ts +1 -1
- package/dist/styles/theme/indigo.d.ts.map +1 -1
- package/dist/styles/theme/indigo.js +101 -0
- package/dist/styles/theme/ink.d.ts +1 -1
- package/dist/styles/theme/ink.d.ts.map +1 -1
- package/dist/styles/theme/ink.js +106 -0
- package/dist/styles/theme/light.d.ts +1 -1
- package/dist/styles/theme/light.d.ts.map +1 -1
- package/dist/styles/theme/light.js +102 -0
- package/dist/styles/theme/midnight.d.ts +1 -1
- package/dist/styles/theme/midnight.d.ts.map +1 -1
- package/dist/styles/theme/midnight.js +106 -0
- package/dist/styles/theme/navy.d.ts +1 -1
- package/dist/styles/theme/navy.d.ts.map +1 -1
- package/dist/styles/theme/navy.js +106 -0
- package/dist/styles/theme/obsidian.d.ts +1 -1
- package/dist/styles/theme/obsidian.d.ts.map +1 -1
- package/dist/styles/theme/obsidian.js +106 -0
- package/dist/styles/theme/onyx.d.ts +1 -1
- package/dist/styles/theme/onyx.d.ts.map +1 -1
- package/dist/styles/theme/onyx.js +106 -0
- package/dist/styles/theme/orange.d.ts +1 -1
- package/dist/styles/theme/orange.d.ts.map +1 -1
- package/dist/styles/theme/orange.js +101 -0
- package/dist/styles/theme/pink.d.ts +1 -1
- package/dist/styles/theme/pink.d.ts.map +1 -1
- package/dist/styles/theme/pink.js +101 -0
- package/dist/styles/theme/purple.d.ts +1 -1
- package/dist/styles/theme/purple.d.ts.map +1 -1
- package/dist/styles/theme/purple.js +101 -0
- package/dist/styles/theme/raisin.d.ts +1 -1
- package/dist/styles/theme/raisin.d.ts.map +1 -1
- package/dist/styles/theme/raisin.js +106 -0
- package/dist/styles/theme/slate.d.ts +1 -1
- package/dist/styles/theme/slate.d.ts.map +1 -1
- package/dist/styles/theme/slate.js +106 -0
- package/dist/styles/theme/teal.d.ts +1 -1
- package/dist/styles/theme/teal.d.ts.map +1 -1
- package/dist/styles/theme/teal.js +101 -0
- package/dist/styles/theme/tianyi.d.ts +1 -1
- package/dist/styles/theme/tianyi.d.ts.map +1 -1
- package/dist/styles/theme/tianyi.js +102 -0
- package/dist/styles/types.js +1 -0
- package/dist/styles/typo/business.js +34 -0
- package/dist/styles/typo/compact.js +34 -0
- package/dist/styles/typo/index.js +99 -0
- package/dist/styles/typo/luxury.js +34 -0
- package/dist/styles/typo/minimal.js +34 -0
- package/dist/types/index.js +2 -0
- package/dist/utils/dom.js +51 -0
- package/dist/utils/events.js +32 -0
- package/dist/utils/icon.js +176 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/utils.d.ts +5 -5
- package/dist/utils/utils.js +89 -0
- package/dist/utils/validation.js +52 -0
- package/docs/api/basic/button.md +9 -6
- package/docs/api/basic/tag.md +24 -17
- package/docs/api/data/box-table.md +73 -0
- package/docs/api/data/dropdown.md +3 -2
- package/docs/api/data/metrics.md +2 -0
- package/docs/api/data/table-column.md +37 -23
- package/docs/api/data/table.md +158 -44
- package/docs/api/data/tabs.md +46 -1
- package/docs/api/data/tree-menu.md +55 -2
- package/docs/api/display/autoview.md +277 -0
- package/docs/api/display/box.md +66 -0
- package/docs/api/display/brief-box.md +73 -0
- package/docs/api/display/desc-item.md +57 -0
- package/docs/api/display/desc.md +246 -0
- package/docs/api/display/detail-box.md +75 -0
- package/docs/api/display/mini-box.md +100 -0
- package/docs/api/display/profile.md +92 -0
- package/docs/api/feedback/popover.md +10 -10
- package/docs/api/feedback/tooltip.md +14 -14
- package/docs/api/form/autoform-item.md +115 -0
- package/docs/api/form/autoform.md +7 -3
- package/docs/api/form/combobox.md +27 -7
- package/docs/api/form/select.md +50 -28
- package/docs/api/framework/log-panel.md +46 -0
- package/docs/api/framework/sidebar.md +3 -2
- package/docs/api/summary.md +46 -35
- package/docs/api/theme/theme-switch.md +1 -1
- package/docs/autoform.md +14 -33
- package/docs/changelog/CHANGELOG.md +155 -0
- package/docs/changelog/VERSION_26.3.1.md +966 -0
- package/docs/changelog/VERSION_26.3.2.md +852 -0
- package/docs/datahub.md +4 -1
- package/docs/filter.md +332 -0
- package/docs/framework-integration.md +2 -2
- package/docs/guide.md +72 -6
- package/docs/i18n.md +2 -4
- package/docs/issue/26.3.1/issue_26.3.1.0.md +84 -0
- package/docs/issue/26.3.1/issue_26.3.1.1.md +72 -0
- package/docs/issue/26.3.1/issue_26.3.1.2.md +75 -0
- package/docs/issue/26.3.1/issue_26.3.1.3.md +78 -0
- package/docs/issue/26.3.1/issue_26.3.1.4.md +113 -0
- package/docs/issue/26.3.1/issue_26.3.1.5.md +142 -0
- package/docs/issue/26.3.1/issue_26.3.1.6.md +100 -0
- package/docs/issue/26.3.1/issue_26.3.1.7.md +78 -0
- package/docs/issue/26.3.2/issue_26.3.2.1.md +46 -0
- package/docs/issue/26.3.2/issue_26.3.2.2.md +82 -0
- package/docs/issue/26.3.2/issue_26.3.2.3.md +57 -0
- package/docs/issue/26.3.2/issue_26.3.2.4.md +43 -0
- package/docs/issue/AGENTS.md +24 -3
- package/docs/markdown.md +2 -2
- package/docs/quickstart.md +5 -5
- package/docs/theming.md +5 -4
- package/package.json +5 -2
- package/dist/components/navigation/dropdown.d.ts +0 -56
- package/dist/components/navigation/dropdown.d.ts.map +0 -1
- /package/docs/issue/{issue_26.2.2.1.md → 26.2.2/issue_26.2.2.1.md} +0 -0
- /package/docs/issue/{issue_26.2.2.2.md → 26.2.2/issue_26.2.2.2.md} +0 -0
- /package/docs/issue/{issue_26.2.2.3.md → 26.2.2/issue_26.2.2.3.md} +0 -0
- /package/docs/issue/{issue_26.2.2.4.md → 26.2.2/issue_26.2.2.4.md} +0 -0
- /package/docs/issue/{issue_26.2.3.1.md → 26.2.3/issue_26.2.3.1.md} +0 -0
- /package/docs/issue/{issue_26.2.3.10.md → 26.2.3/issue_26.2.3.10.md} +0 -0
- /package/docs/issue/{issue_26.2.3.11.md → 26.2.3/issue_26.2.3.11.md} +0 -0
- /package/docs/issue/{issue_26.2.3.12.md → 26.2.3/issue_26.2.3.12.md} +0 -0
- /package/docs/issue/{issue_26.2.3.13.md → 26.2.3/issue_26.2.3.13.md} +0 -0
- /package/docs/issue/{issue_26.2.3.14.md → 26.2.3/issue_26.2.3.14.md} +0 -0
- /package/docs/issue/{issue_26.2.3.15.md → 26.2.3/issue_26.2.3.15.md} +0 -0
- /package/docs/issue/{issue_26.2.3.16.md → 26.2.3/issue_26.2.3.16.md} +0 -0
- /package/docs/issue/{issue_26.2.3.2.md → 26.2.3/issue_26.2.3.2.md} +0 -0
- /package/docs/issue/{issue_26.2.3.3.md → 26.2.3/issue_26.2.3.3.md} +0 -0
- /package/docs/issue/{issue_26.2.3.4.md → 26.2.3/issue_26.2.3.4.md} +0 -0
- /package/docs/issue/{issue_26.2.3.5.md → 26.2.3/issue_26.2.3.5.md} +0 -0
- /package/docs/issue/{issue_26.2.3.6.md → 26.2.3/issue_26.2.3.6.md} +0 -0
- /package/docs/issue/{issue_26.2.3.7.md → 26.2.3/issue_26.2.3.7.md} +0 -0
- /package/docs/issue/{issue_26.2.3.8.md → 26.2.3/issue_26.2.3.8.md} +0 -0
- /package/docs/issue/{issue_26.2.3.9.md → 26.2.3/issue_26.2.3.9.md} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t } from '../../../styles/i18n';
|
|
2
|
+
export const progressPage = {
|
|
3
|
+
key: 'progress',
|
|
4
|
+
title: () => t('demo.progress.title'),
|
|
5
|
+
description: () => t('demo.progress.description'),
|
|
6
|
+
examples: [
|
|
7
|
+
{
|
|
8
|
+
title: () => t('demo.progress.bar.title'),
|
|
9
|
+
description: () => t('demo.progress.bar.description'),
|
|
10
|
+
code: `<div style="display:grid;gap:16px;max-width:420px;">
|
|
11
|
+
<aithe-progress-bar percent="42"></aithe-progress-bar>
|
|
12
|
+
<aithe-progress-bar percent="76" status="success"></aithe-progress-bar>
|
|
13
|
+
<aithe-progress-bar percent="91" status="danger"></aithe-progress-bar>
|
|
14
|
+
</div>`,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
title: () => t('demo.progress.ring.title'),
|
|
18
|
+
description: () => t('demo.progress.ring.description'),
|
|
19
|
+
code: `<aithe-progress-ring percent="68" size="132" status="warning"></aithe-progress-ring>`,
|
|
20
|
+
previewHeight: '180px',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: () => t('demo.progress.spinner.title'),
|
|
24
|
+
description: () => t('demo.progress.spinner.description'),
|
|
25
|
+
code: `<div style="display:flex;gap:16px;align-items:center;">
|
|
26
|
+
<aithe-spinner size="sm"></aithe-spinner>
|
|
27
|
+
<aithe-spinner size="md"></aithe-spinner>
|
|
28
|
+
<aithe-spinner variant="dots" color="var(--aithe-success-6)"></aithe-spinner>
|
|
29
|
+
</div>`,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: () => t('demo.progress.skeleton.title'),
|
|
33
|
+
description: () => t('demo.progress.skeleton.description'),
|
|
34
|
+
code: `<div style="display:grid;gap:16px;">
|
|
35
|
+
<aithe-skeleton rows="3"></aithe-skeleton>
|
|
36
|
+
<aithe-skeleton rows="1" shape="circle"></aithe-skeleton>
|
|
37
|
+
<aithe-skeleton rows="1" shape="rect"></aithe-skeleton>
|
|
38
|
+
</div>`,
|
|
39
|
+
previewHeight: '320px',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { t } from '../../../styles/i18n';
|
|
2
|
+
export const themePage = {
|
|
3
|
+
key: 'theme',
|
|
4
|
+
title: () => t('demo.theme.title'),
|
|
5
|
+
description: () => t('demo.theme.description'),
|
|
6
|
+
examples: [
|
|
7
|
+
{
|
|
8
|
+
title: () => t('demo.theme.picker.title'),
|
|
9
|
+
description: () => t('demo.theme.picker.description'),
|
|
10
|
+
code: `<aithe-theme-picker value="light"></aithe-theme-picker>`,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
title: () => t('demo.theme.pickerHandler.title'),
|
|
14
|
+
description: () => t('demo.theme.pickerHandler.description'),
|
|
15
|
+
code: `<div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap;">
|
|
16
|
+
<aithe-theme-picker id="demo-picker" value="light"></aithe-theme-picker>
|
|
17
|
+
<span id="demo-label" style="font-size:14px;color:var(--aithe-color-text-muted);">Current: light</span>
|
|
18
|
+
</div>`,
|
|
19
|
+
setup: (root) => {
|
|
20
|
+
const picker = root.querySelector('#demo-picker');
|
|
21
|
+
const label = root.querySelector('#demo-label');
|
|
22
|
+
picker?.addEventListener('aithe-theme-change', (event) => {
|
|
23
|
+
const { theme } = event.detail;
|
|
24
|
+
if (label)
|
|
25
|
+
label.textContent = `Current: ${theme}`;
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: () => t('demo.theme.pickerPlacement.title'),
|
|
31
|
+
description: () => t('demo.theme.pickerPlacement.description'),
|
|
32
|
+
code: `<div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap;">
|
|
33
|
+
<span style="font-size:13px;color:var(--aithe-color-text-muted);">bottom-end (default)</span>
|
|
34
|
+
<aithe-theme-picker value="light"></aithe-theme-picker>
|
|
35
|
+
<span style="font-size:13px;color:var(--aithe-color-text-muted);">bottom-start</span>
|
|
36
|
+
<aithe-theme-picker value="dark" placement="bottom-start"></aithe-theme-picker>
|
|
37
|
+
</div>`,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: () => t('demo.theme.preview.title'),
|
|
41
|
+
description: () => t('demo.theme.preview.description'),
|
|
42
|
+
code: `<aithe-theme-preview id="demo-preview" value="light"></aithe-theme-preview>`,
|
|
43
|
+
setup: (root) => {
|
|
44
|
+
const preview = root.querySelector('#demo-preview');
|
|
45
|
+
preview?.addEventListener('aithe-theme-apply', (event) => {
|
|
46
|
+
const { theme } = event.detail;
|
|
47
|
+
document.documentElement.dataset.aitheTheme = theme;
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: () => t('demo.theme.shapePicker.title', 'Shape Picker'),
|
|
53
|
+
description: () => t('demo.theme.shapePicker.description', 'Switch between 8 built-in shape styles (Theme × Shape).'),
|
|
54
|
+
code: `<div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap;">
|
|
55
|
+
<aithe-shape-picker id="demo-shape"></aithe-shape-picker>
|
|
56
|
+
<span id="demo-shape-label" style="font-size:14px;color:var(--aithe-color-text-muted);">Current: rounded</span>
|
|
57
|
+
</div>`,
|
|
58
|
+
setup: (root) => {
|
|
59
|
+
const picker = root.querySelector('#demo-shape');
|
|
60
|
+
const label = root.querySelector('#demo-shape-label');
|
|
61
|
+
picker?.addEventListener('aithe-shape-change', (event) => {
|
|
62
|
+
const { shape } = event.detail;
|
|
63
|
+
if (label)
|
|
64
|
+
label.textContent = `Current: ${shape}`;
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
title: () => 'Shadow Picker (Standalone)',
|
|
70
|
+
description: () => 'Switch between 9 built-in shadow styles. Test with native HTML elements.',
|
|
71
|
+
code: `<div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap; margin-bottom: 24px;">
|
|
72
|
+
<aithe-shadow-picker id="demo-shadow"></aithe-shadow-picker>
|
|
73
|
+
<span id="demo-shadow-label" style="font-size:14px;color:var(--aithe-color-text-muted);">Current: skeuomorphic</span>
|
|
74
|
+
</div>
|
|
75
|
+
<h4>Native HTML Elements (should inherit CSS variables):</h4>
|
|
76
|
+
<div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap; margin-bottom: 16px;">
|
|
77
|
+
<button class="test-btn" style="padding: 12px 20px; cursor: pointer;">Native Button</button>
|
|
78
|
+
<button class="test-btn" style="padding: 12px 20px; background: #4d8bff; color: white; border: none; cursor: pointer;">Primary</button>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="test-panel" style="margin-top: 16px; padding: 24px; background: var(--aithe-color-surface-elevated); border-radius: 8px; box-shadow: var(--aithe-shadow-3);">
|
|
81
|
+
Panel with box-shadow: var(--aithe-shadow-3)
|
|
82
|
+
</div>`,
|
|
83
|
+
setup: (root) => {
|
|
84
|
+
const picker = root.querySelector('#demo-shadow');
|
|
85
|
+
const label = root.querySelector('#demo-shadow-label');
|
|
86
|
+
if (picker && label) {
|
|
87
|
+
picker.addEventListener('aithe-shadow-change', (event) => {
|
|
88
|
+
const { shadow } = event.detail;
|
|
89
|
+
label.textContent = `Current: ${shadow}`;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: () => t('demo.theme.typoPicker.title', 'Typo Picker (Standalone)'),
|
|
96
|
+
description: () => t('demo.theme.typoPicker.description', 'Switch between 4 built-in typography styles (minimal, business, luxury, compact). Observe font-size, spacing and control-height changes.'),
|
|
97
|
+
code: `<div style="display:flex;gap:16px;align-items:center;flex-wrap:wrap; margin-bottom: 24px;">
|
|
98
|
+
<aithe-typo-picker id="demo-typo"></aithe-typo-picker>
|
|
99
|
+
<span id="demo-typo-label" style="font-size:14px;color:var(--aithe-color-text-muted);">Current: business</span>
|
|
100
|
+
</div>
|
|
101
|
+
<h4>Typography Preview:</h4>
|
|
102
|
+
<div style="margin-bottom: 12px;">
|
|
103
|
+
<p style="font-size:var(--aithe-font-size-2xl);font-weight:var(--aithe-font-weight-bold);line-height:var(--aithe-line-height-tight);margin:0 0 var(--aithe-space-3) 0;">Heading XL</p>
|
|
104
|
+
<p style="font-size:var(--aithe-font-size-lg);font-weight:var(--aithe-font-weight-semibold);line-height:var(--aithe-line-height-base);margin:0 0 var(--aithe-space-2) 0;">Section Title</p>
|
|
105
|
+
<p style="font-size:var(--aithe-font-size-md);line-height:var(--aithe-line-height-base);margin:0 0 var(--aithe-space-2) 0;">Body text at medium size with base line-height. Spacing and sizing adjust per typo style.</p>
|
|
106
|
+
<p style="font-size:var(--aithe-font-size-sm);line-height:var(--aithe-line-height-base);color:var(--aithe-color-text-muted);margin:0;">Small caption text for secondary info.</p>
|
|
107
|
+
</div>
|
|
108
|
+
<div style="display:flex;gap:var(--aithe-space-3);align-items:center;flex-wrap:wrap;">
|
|
109
|
+
<aithe-button type="primary" size="sm">Small</aithe-button>
|
|
110
|
+
<aithe-button type="primary">Medium</aithe-button>
|
|
111
|
+
<aithe-button type="primary" size="lg">Large</aithe-button>
|
|
112
|
+
</div>`,
|
|
113
|
+
previewHeight: '320px',
|
|
114
|
+
setup: (root) => {
|
|
115
|
+
const picker = root.querySelector('#demo-typo');
|
|
116
|
+
const label = root.querySelector('#demo-typo-label');
|
|
117
|
+
if (picker && label) {
|
|
118
|
+
picker.addEventListener('aithe-typo-change', (event) => {
|
|
119
|
+
const { typo } = event.detail;
|
|
120
|
+
label.textContent = `Current: ${typo}`;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './app';
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, html } from 'lit';
|
|
8
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
+
import { AitheElement } from '../../core/aithe-element';
|
|
11
|
+
import { aitheBaseStyles } from '../../core/styles';
|
|
12
|
+
import { t } from '../../styles/i18n';
|
|
13
|
+
import { IconUtil } from '../../utils';
|
|
14
|
+
/**
|
|
15
|
+
* Avatar displaying an image, initials, or custom content.
|
|
16
|
+
* 头像组件,显示图片、首字母或自定义内容。
|
|
17
|
+
*
|
|
18
|
+
* The `text` property supports the extended icon format `(type)value`:
|
|
19
|
+
* - `(auto)Text` — auto-generate from first character (default for bare text)
|
|
20
|
+
* - `(url)URL|AltText` — load from URL with alt fallback
|
|
21
|
+
* - `(class)iconName` — render a built-in icon
|
|
22
|
+
* `text` 属性支持扩展图标格式 `(type)value`。
|
|
23
|
+
*
|
|
24
|
+
* For icon-format text, rendering is delegated to {@link IconUtil.render}.
|
|
25
|
+
* Size presets are resolved via {@link IconUtil.resolveSize} against {@link ICON_SIZE_MAP}.
|
|
26
|
+
* 图标格式文本委托给 {@link IconUtil.render} 渲染,尺寸预设通过 {@link IconUtil.resolveSize} 解析。
|
|
27
|
+
*
|
|
28
|
+
* @slot - Default slot for fallback content when image fails. 图片加载失败时的后备内容。
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <aithe-avatar src="/photo.jpg" alt="User" shape="circle" size="md"></aithe-avatar>
|
|
32
|
+
* <aithe-avatar text="Jane Smith" shape="square" size="lg"></aithe-avatar>
|
|
33
|
+
* <aithe-avatar text="(url)https://example.com/avatar.svg|User" shape="circle" size="lg"></aithe-avatar>
|
|
34
|
+
* <aithe-avatar text="(class)user" shape="circle" size="lg"></aithe-avatar>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
let AitheAvatar = class AitheAvatar extends AitheElement {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
/** Image source URL. 图片源地址。 */
|
|
41
|
+
this.src = '';
|
|
42
|
+
/** Alt text for the image. 图片替代文本。 */
|
|
43
|
+
this.alt = '';
|
|
44
|
+
/** Text or icon descriptor used to generate fallback content. 用于生成后备内容的文本或图标描述符。 */
|
|
45
|
+
this.text = '';
|
|
46
|
+
/** Avatar shape variant. 头像形状。 */
|
|
47
|
+
this.shape = 'circle';
|
|
48
|
+
/** Avatar size preset or explicit CSS value. The inner icon is resolved via {@link IconUtil.resolveSize} against {@link ICON_SIZE_MAP}. 头像尺寸预设或显式 CSS 值,内部图标通过 {@link IconUtil.resolveSize} 结合 {@link ICON_SIZE_MAP} 解析。 */
|
|
49
|
+
this.size = 'md';
|
|
50
|
+
/** Whether the image failed to load. 图片是否加载失败。 */
|
|
51
|
+
this.imageBroken = false;
|
|
52
|
+
}
|
|
53
|
+
static { this.styles = [
|
|
54
|
+
aitheBaseStyles,
|
|
55
|
+
css `
|
|
56
|
+
:host {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.avatar {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
width: var(--aithe-avatar-size, 32px);
|
|
67
|
+
height: var(--aithe-avatar-size, 32px);
|
|
68
|
+
background: linear-gradient(135deg, var(--aithe-primary-4), var(--aithe-primary-7));
|
|
69
|
+
color: var(--aithe-color-text-on-primary, #ffffff);
|
|
70
|
+
font-weight: var(--aithe-font-weight-semibold);
|
|
71
|
+
box-shadow: var(--aithe-shadow-1);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.circle {
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.square {
|
|
79
|
+
border-radius: var(--aithe-container-radius-lg);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
img {
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
object-fit: cover;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.avatar-text {
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
}
|
|
93
|
+
`,
|
|
94
|
+
]; }
|
|
95
|
+
/** Extracts up to two initials from the text property. 从 text 属性提取最多两个首字母。 */
|
|
96
|
+
get fallbackText() {
|
|
97
|
+
const source = this.text.trim();
|
|
98
|
+
if (!source) {
|
|
99
|
+
return '';
|
|
100
|
+
}
|
|
101
|
+
const chunks = source.split(/\s+/).slice(0, 2);
|
|
102
|
+
return chunks.map((chunk) => chunk[0]?.toUpperCase() ?? '').join('');
|
|
103
|
+
}
|
|
104
|
+
/** Whether text uses the extended icon format `(type)value`. 文本是否使用扩展图标格式。 */
|
|
105
|
+
get isIconFormat() {
|
|
106
|
+
return /^\(\w+\)/.test(this.text.trim());
|
|
107
|
+
}
|
|
108
|
+
/** Resolve avatar size to a CSS pixel value for IconUtil. 将头像尺寸解析为 CSS 像素值供 IconUtil 使用。 */
|
|
109
|
+
get iconSize() {
|
|
110
|
+
return IconUtil.resolveSize(this.size, '16px');
|
|
111
|
+
}
|
|
112
|
+
/** Compute the container size from icon size (icon + padding). 根据图标尺寸计算容器大小。 */
|
|
113
|
+
get containerSize() {
|
|
114
|
+
const raw = this.iconSize;
|
|
115
|
+
const num = Number.parseInt(raw, 10);
|
|
116
|
+
if (Number.isNaN(num))
|
|
117
|
+
return '32px';
|
|
118
|
+
return `${Math.round(num * 1.6)}px`;
|
|
119
|
+
}
|
|
120
|
+
render() {
|
|
121
|
+
const showImage = Boolean(this.src) && !this.imageBroken;
|
|
122
|
+
let content;
|
|
123
|
+
if (showImage) {
|
|
124
|
+
content = html `<img alt=${this.alt} src=${this.src} @error=${() => (this.imageBroken = true)} />`;
|
|
125
|
+
}
|
|
126
|
+
else if (this.isIconFormat) {
|
|
127
|
+
content = IconUtil.render(this.text, this.iconSize);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
content = html `<span class="avatar-text" style="font-size:calc(${this.iconSize} * 0.75);line-height:1;">${this.fallbackText}</span>`;
|
|
131
|
+
}
|
|
132
|
+
return html `
|
|
133
|
+
<span
|
|
134
|
+
class=${classMap({
|
|
135
|
+
avatar: true,
|
|
136
|
+
[this.shape]: true,
|
|
137
|
+
})}
|
|
138
|
+
style="--aithe-avatar-size: ${this.containerSize};"
|
|
139
|
+
aria-label=${this.alt || this.text || t('basic.avatar.ariaLabel')}
|
|
140
|
+
role="img"
|
|
141
|
+
>
|
|
142
|
+
${content}
|
|
143
|
+
</span>
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
__decorate([
|
|
148
|
+
property({ type: String })
|
|
149
|
+
], AitheAvatar.prototype, "src", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
property({ type: String })
|
|
152
|
+
], AitheAvatar.prototype, "alt", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
property({ type: String })
|
|
155
|
+
], AitheAvatar.prototype, "text", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
property({ type: String })
|
|
158
|
+
], AitheAvatar.prototype, "shape", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
property({ type: String })
|
|
161
|
+
], AitheAvatar.prototype, "size", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
state()
|
|
164
|
+
], AitheAvatar.prototype, "imageBroken", void 0);
|
|
165
|
+
AitheAvatar = __decorate([
|
|
166
|
+
customElement('aithe-avatar')
|
|
167
|
+
], AitheAvatar);
|
|
168
|
+
export { AitheAvatar };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, html } from 'lit';
|
|
8
|
+
import { customElement, property, queryAssignedElements, state } from 'lit/decorators.js';
|
|
9
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
|
+
import { AitheElement } from '../../core/aithe-element';
|
|
11
|
+
import { aitheBaseStyles } from '../../core/styles';
|
|
12
|
+
/**
|
|
13
|
+
* Badge / count indicator overlaid on an anchor element.
|
|
14
|
+
* 徽标/计数指示器,覆盖在锚点元素上。
|
|
15
|
+
*
|
|
16
|
+
* @slot - Default slot for the anchor element. 锚点元素内容。
|
|
17
|
+
* @slot badge - Custom badge content (overrides `value` display). 自定义徽标内容。
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <aithe-badge value="5">
|
|
21
|
+
* <aithe-button type="default">Messages</aithe-button>
|
|
22
|
+
* </aithe-badge>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
let AitheBadge = class AitheBadge extends AitheElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
/** Badge display value (number or string). 徽标显示值(数字或字符串)。 */
|
|
29
|
+
this.value = '';
|
|
30
|
+
/** Maximum count before showing "N+" format. 超过此数值显示"N+"格式。 */
|
|
31
|
+
this.maxCount = 99;
|
|
32
|
+
/** Whether to show a small dot instead of a count. 是否显示小圆点而非数字。 */
|
|
33
|
+
this.dot = false;
|
|
34
|
+
/** Badge position relative to the anchor. 徽标相对于锚点的位置。 */
|
|
35
|
+
this.position = 'top-right';
|
|
36
|
+
this.hasBadgeSlot = false;
|
|
37
|
+
/** Syncs badge slot presence state. 同步徽标插槽状态。 */
|
|
38
|
+
this.syncSlot = () => {
|
|
39
|
+
this.hasBadgeSlot = this.badgeSlotNodes.length > 0;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static { this.styles = [
|
|
43
|
+
aitheBaseStyles,
|
|
44
|
+
css `
|
|
45
|
+
:host {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.anchor {
|
|
51
|
+
position: relative;
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.badge {
|
|
56
|
+
position: absolute;
|
|
57
|
+
z-index: 2;
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
min-width: 22px;
|
|
62
|
+
min-height: 22px;
|
|
63
|
+
padding: 0 var(--aithe-space-2);
|
|
64
|
+
border: 2px solid var(--aithe-color-surface-elevated);
|
|
65
|
+
border-radius: var(--aithe-radius-full);
|
|
66
|
+
background: linear-gradient(180deg, var(--aithe-danger-5), var(--aithe-danger-7));
|
|
67
|
+
color: var(--aithe-color-text-on-primary, #ffffff);
|
|
68
|
+
font-size: var(--aithe-font-size-xs);
|
|
69
|
+
font-weight: var(--aithe-font-weight-semibold);
|
|
70
|
+
box-shadow: var(--aithe-shadow-1);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.badge.dot {
|
|
74
|
+
min-width: 12px;
|
|
75
|
+
min-height: 12px;
|
|
76
|
+
padding: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.top-right {
|
|
80
|
+
top: 0;
|
|
81
|
+
right: 0;
|
|
82
|
+
transform: translate(50%, -50%);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.top-left {
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
transform: translate(-50%, -50%);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.bottom-right {
|
|
92
|
+
right: 0;
|
|
93
|
+
bottom: 0;
|
|
94
|
+
transform: translate(50%, 50%);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.bottom-left {
|
|
98
|
+
bottom: 0;
|
|
99
|
+
left: 0;
|
|
100
|
+
transform: translate(-50%, 50%);
|
|
101
|
+
}
|
|
102
|
+
`,
|
|
103
|
+
]; }
|
|
104
|
+
/** Computes the formatted badge display value. 计算格式化后的徽标显示值。 */
|
|
105
|
+
get displayValue() {
|
|
106
|
+
if (this.dot) {
|
|
107
|
+
return '';
|
|
108
|
+
}
|
|
109
|
+
const parsed = Number(this.value);
|
|
110
|
+
if (Number.isFinite(parsed) && this.value !== '') {
|
|
111
|
+
if (parsed === 0)
|
|
112
|
+
return '';
|
|
113
|
+
return parsed > this.maxCount ? `${this.maxCount}+` : String(parsed);
|
|
114
|
+
}
|
|
115
|
+
return this.value;
|
|
116
|
+
}
|
|
117
|
+
render() {
|
|
118
|
+
const showBadge = this.dot || this.hasBadgeSlot || Boolean(this.displayValue);
|
|
119
|
+
return html `
|
|
120
|
+
<span class="anchor">
|
|
121
|
+
<slot></slot>
|
|
122
|
+
<span
|
|
123
|
+
?hidden=${!showBadge}
|
|
124
|
+
class=${classMap({
|
|
125
|
+
badge: true,
|
|
126
|
+
dot: this.dot,
|
|
127
|
+
[this.position]: true,
|
|
128
|
+
})}
|
|
129
|
+
>
|
|
130
|
+
<slot name="badge" @slotchange=${this.syncSlot}>${this.displayValue}</slot>
|
|
131
|
+
</span>
|
|
132
|
+
</span>
|
|
133
|
+
`;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
__decorate([
|
|
137
|
+
property({ type: String })
|
|
138
|
+
], AitheBadge.prototype, "value", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
property({ type: Number, attribute: 'max-count' })
|
|
141
|
+
], AitheBadge.prototype, "maxCount", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
property({ type: Boolean })
|
|
144
|
+
], AitheBadge.prototype, "dot", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
property({ type: String })
|
|
147
|
+
], AitheBadge.prototype, "position", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
queryAssignedElements({ slot: 'badge' })
|
|
150
|
+
], AitheBadge.prototype, "badgeSlotNodes", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
state()
|
|
153
|
+
], AitheBadge.prototype, "hasBadgeSlot", void 0);
|
|
154
|
+
AitheBadge = __decorate([
|
|
155
|
+
customElement('aithe-badge')
|
|
156
|
+
], AitheBadge);
|
|
157
|
+
export { AitheBadge };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, html } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
10
|
+
import { AitheElement } from '../../core/aithe-element';
|
|
11
|
+
import { aitheBaseStyles } from '../../core/styles';
|
|
12
|
+
import { normalizeCssUnit } from '../../utils';
|
|
13
|
+
/**
|
|
14
|
+
* Button group layout helper for consistent spacing.
|
|
15
|
+
* 按钮组布局辅助组件,提供统一间距。
|
|
16
|
+
*
|
|
17
|
+
* @slot - Default slot for button elements. 按钮元素内容。
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <aithe-button-group gap="var(--aithe-space-3)">
|
|
21
|
+
* <aithe-button>Cancel</aithe-button>
|
|
22
|
+
* <aithe-button type="primary">Submit</aithe-button>
|
|
23
|
+
* </aithe-button-group>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
let AitheButtonGroup = class AitheButtonGroup extends AitheElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
/** Gap between buttons (CSS value). 按钮间距(CSS 值)。 */
|
|
30
|
+
this.gap = 'var(--aithe-space-2)';
|
|
31
|
+
/** Whether buttons are stacked vertically. 是否垂直排列按钮。 */
|
|
32
|
+
this.vertical = false;
|
|
33
|
+
}
|
|
34
|
+
static { this.styles = [
|
|
35
|
+
aitheBaseStyles,
|
|
36
|
+
css `
|
|
37
|
+
:host {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
}
|
|
41
|
+
`,
|
|
42
|
+
]; }
|
|
43
|
+
render() {
|
|
44
|
+
const gap = normalizeCssUnit(this.gap, 'var(--aithe-space-2)');
|
|
45
|
+
return html `
|
|
46
|
+
<div
|
|
47
|
+
style=${styleMap({
|
|
48
|
+
alignItems: 'stretch',
|
|
49
|
+
display: 'inline-flex',
|
|
50
|
+
flexDirection: this.vertical ? 'column' : 'row',
|
|
51
|
+
flexWrap: 'wrap',
|
|
52
|
+
gap,
|
|
53
|
+
maxWidth: '100%',
|
|
54
|
+
})}
|
|
55
|
+
>
|
|
56
|
+
<slot></slot>
|
|
57
|
+
</div>
|
|
58
|
+
`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
__decorate([
|
|
62
|
+
property({ type: String })
|
|
63
|
+
], AitheButtonGroup.prototype, "gap", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
property({ type: Boolean })
|
|
66
|
+
], AitheButtonGroup.prototype, "vertical", void 0);
|
|
67
|
+
AitheButtonGroup = __decorate([
|
|
68
|
+
customElement('aithe-button-group')
|
|
69
|
+
], AitheButtonGroup);
|
|
70
|
+
export { AitheButtonGroup };
|
|
@@ -18,13 +18,13 @@ import { AitheElement } from '../../core/aithe-element';
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```html
|
|
20
20
|
* <aithe-button type="primary" size="medium">Submit</aithe-button>
|
|
21
|
-
* <aithe-button
|
|
21
|
+
* <aithe-button variant="danger" loading>Deleting...</aithe-button>
|
|
22
22
|
* <aithe-button type="primary" href="/dashboard">Go to Dashboard</aithe-button>
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
export declare class AitheButton extends AitheElement {
|
|
26
26
|
/** Visual type of the button. 按钮的视觉类型。 */
|
|
27
|
-
type: '
|
|
27
|
+
type: 'default' | 'dashed' | 'text' | 'link';
|
|
28
28
|
/** Size scale of the button. 按钮的尺寸规格。 */
|
|
29
29
|
size: 'small' | 'medium' | 'large';
|
|
30
30
|
/** Display title for the button (shown as tooltip). 按钮的显示标题(作为工具提示)。 */
|
|
@@ -35,8 +35,6 @@ export declare class AitheButton extends AitheElement {
|
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
/** Whether the button shows a loading spinner. 按钮是否显示加载旋转器。 */
|
|
37
37
|
loading: boolean;
|
|
38
|
-
/** Whether the button uses danger styling. 按钮是否使用危险样式。 */
|
|
39
|
-
danger: boolean;
|
|
40
38
|
/** Whether the button spans the full width of its container. 按钮是否占满容器宽度。 */
|
|
41
39
|
block: boolean;
|
|
42
40
|
/** Link URL. When set, the button renders as an `<a>` element. 链接地址。设置后按钮渲染为 `<a>` 元素。 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/basic/button.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBACa,WAAY,SAAQ,YAAY;IAC3C,0CAA0C;IACd,IAAI,EAAE,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/basic/button.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBACa,WAAY,SAAQ,YAAY;IAC3C,0CAA0C;IACd,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAa;IACrF,yCAAyC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAY;IAC1E,wEAAwE;IAC5C,KAAK,SAAM;IACvC,0DAA0D;IAC9B,IAAI,SAAM;IACtC,8CAA8C;IACF,QAAQ,UAAS;IAC7D,+DAA+D;IACnB,OAAO,UAAS;IAC5D,4EAA4E;IAChC,KAAK,UAAS;IAC1D,0FAA0F;IAC9D,IAAI,SAAM;IACtC,wHAAwH;IAC5F,MAAM,SAAM;IAExC,MAAM,CAAC,QAAQ,CAAC,MAAM,0DAqJpB;IAEF;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAoB1B;IAEF,MAAM;CAuDP"}
|