@_tc/template-core 0.3.1 → 0.4.0
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/.skills/tc-component-usage-skills/SKILL.md +46 -121
- package/.skills/tc-component-usage-skills/reference/component-api.md +31 -25
- package/.skills/tc-component-usage-skills/reference/examples.md +30 -12
- package/.skills/tc-component-usage-skills/reference/patterns.md +45 -27
- package/.skills/tc-component-usage-skills/reference/template-core-frontend.md +27 -9
- package/.skills/tc-generator/SKILL.md +51 -69
- package/.skills/tc-generator/reference/example.md +150 -99
- package/.skills/tc-generator/reference/model-schema.md +4 -4
- package/.skills/tc-generator/reference/project-template/backend/business.module.ts +9 -0
- package/.skills/tc-generator/reference/project-template/backend/product.controller.ts +71 -0
- package/.skills/tc-generator/reference/project-template/backend/product.service.ts +58 -0
- package/.skills/tc-generator/reference/project-template/backend/product.types.ts +15 -0
- package/.skills/tc-generator/reference/project-template/index.js +32 -13
- package/.skills/tc-generator/reference/project-template/package.json +20 -3
- package/.skills/tc-generator/reference/project-template/scripts/build-backend.mjs +12 -0
- package/.skills/tc-generator/reference/project-template/scripts/build-frontend.mjs +7 -0
- package/.skills/tc-generator/reference/project-template/scripts/build-ssr.mjs +7 -0
- package/.skills/tc-generator/reference/project-template/ssr/apps/hello/hello.entry.tsx +39 -0
- package/.skills/tc-generator/reference/project-template/tsconfig.json +14 -0
- package/.skills/tc-generator/reference/runtime-extensions.md +132 -89
- package/AGENT_README.md +62 -155
- package/CHANGE.md +5 -12
- package/README.md +237 -360
- package/cjs/app/ai/agent/agent-scanner.service.js +1 -0
- package/cjs/app/ai/agent/agent.module.js +1 -0
- package/cjs/app/ai/ai-config.module.js +1 -0
- package/cjs/app/ai/ai-config.service.js +1 -0
- package/cjs/app/ai/ai.controller.js +1 -0
- package/cjs/app/ai/ai.module.js +1 -0
- package/cjs/app/ai/declaration-paths.js +1 -0
- package/cjs/app/ai/eval/assertions.js +1 -0
- package/cjs/app/ai/guardrail/guardrail.module.js +1 -0
- package/cjs/app/ai/guardrail/guardrail.service.js +1 -0
- package/cjs/app/ai/guardrail/internal/load-guardrail-config.js +1 -0
- package/cjs/app/ai/mcp/internal/load-mcp-config.js +1 -0
- package/cjs/app/ai/mcp/mcp-registry.service.js +2 -0
- package/cjs/app/ai/mcp/mcp.client.js +4 -0
- package/cjs/app/ai/mcp/mcp.loader.js +1 -0
- package/cjs/app/ai/mcp/mcp.module.js +1 -0
- package/cjs/app/ai/mcp/mcp.types.js +1 -0
- package/cjs/app/ai/memory/checkpoint.service.js +1 -0
- package/cjs/app/ai/memory/internal/load-memory-config.js +1 -0
- package/cjs/app/ai/memory/memory.module.js +1 -0
- package/cjs/app/ai/memory/thread.service.js +1 -0
- package/cjs/app/ai/rag/chunker.js +2 -0
- package/cjs/app/ai/rag/internal/load-embedding-config.js +1 -0
- package/cjs/app/ai/rag/internal/load-rag-config.js +1 -0
- package/cjs/app/ai/rag/rag.interface.js +1 -0
- package/cjs/app/ai/rag/rag.module.js +1 -0
- package/cjs/app/ai/rag/retriever.service.js +1 -0
- package/cjs/app/ai/retention/conversation-retention.service.js +1 -0
- package/cjs/app/ai/retention/retention-policy.js +1 -0
- package/cjs/app/ai/runtime/ai-runtime-startup.validator.js +1 -0
- package/cjs/app/ai/runtime/internal/agent-run-context.js +1 -0
- package/cjs/app/ai/runtime/internal/compact-tool-result.js +1 -0
- package/cjs/app/ai/runtime/internal/context-compaction.service.js +4 -0
- package/cjs/app/ai/runtime/internal/load-llm-config.js +1 -0
- package/cjs/app/ai/runtime/internal/load-runtime-config.js +1 -0
- package/cjs/app/ai/runtime/internal/request-budget.js +1 -0
- package/cjs/app/ai/runtime/internal/run-event-queue.js +1 -0
- package/cjs/app/ai/runtime/langchain/langchain-planner.service.js +1 -0
- package/cjs/app/ai/runtime/langchain/skill-tool.adapter.js +1 -0
- package/cjs/app/ai/runtime/langgraph/agent.graph.js +1 -0
- package/cjs/app/ai/runtime/langgraph/agent.state.js +1 -0
- package/cjs/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +1 -0
- package/cjs/app/ai/runtime/runtime.module.js +1 -0
- package/cjs/app/ai/runtime/thread-execution-coordinator.js +1 -0
- package/cjs/app/ai/skill/skill-scanner.service.js +1 -0
- package/cjs/app/ai/skill/skill.module.js +1 -0
- package/cjs/app/ai/store/internal/archive-id.js +1 -0
- package/cjs/app/ai/store/internal/load-store-config.js +1 -0
- package/cjs/app/ai/store/internal/load-thread-state-store.js +1 -0
- package/cjs/app/ai/store/reference/file-memory.store.js +1 -0
- package/cjs/app/ai/store/reference/file-trace.store.js +1 -0
- package/cjs/app/ai/store/reference/file-vector.store.js +1 -0
- package/cjs/app/ai/store/reference/qdrant-vector.store.js +1 -0
- package/cjs/app/ai/store/store.interface.js +1 -0
- package/cjs/app/ai/store/store.module.js +1 -0
- package/cjs/app/ai/tool/builtin/index.js +1 -0
- package/cjs/app/ai/tool/builtin/invoke-agent.tool.js +1 -0
- package/cjs/app/ai/tool/builtin/retrieve.tool.js +1 -0
- package/cjs/app/ai/tool/executor.service.js +1 -0
- package/cjs/app/ai/tool/tool-registry.service.js +1 -0
- package/cjs/app/ai/tool/tool.module.js +1 -0
- package/cjs/app/ai/trace/trace.service.js +1 -0
- package/cjs/app/csr/controller.js +1 -0
- package/cjs/app/extends/$fetch.js +1 -1
- package/cjs/app/extends/crypto.js +1 -1
- package/cjs/app/extends/db.js +4 -4
- package/cjs/app/extends/logger.js +1 -1
- package/cjs/app/frontend-development.js +1 -0
- package/cjs/app/html/browser-options.js +1 -0
- package/cjs/app/http/body-parser.middleware.js +1 -0
- package/cjs/app/http/compression.middleware.js +1 -0
- package/cjs/app/http/context.js +1 -0
- package/cjs/app/http/controller.js +1 -0
- package/cjs/app/http/error-response.js +1 -0
- package/cjs/app/http/errors.js +1 -0
- package/cjs/app/http/exception-filter.js +1 -0
- package/cjs/app/http/request-data.js +1 -0
- package/cjs/app/http/request-schema.pipe.js +1 -0
- package/cjs/app/http/response.interceptor.js +1 -0
- package/cjs/app/http/response.js +1 -0
- package/cjs/app/http/security.guard.js +1 -0
- package/cjs/app/project/controller.js +1 -0
- package/cjs/app/project/service.js +1 -0
- package/cjs/app/providers/csr.js +1 -0
- package/cjs/app/providers/foundation.js +1 -0
- package/cjs/app/ssr/artifacts.js +1 -0
- package/cjs/app/ssr/controller.js +1 -0
- package/cjs/app/ssr/html.js +14 -6
- package/cjs/app/ssr/manifest.js +2 -2
- package/cjs/app/ssr/session.js +1 -0
- package/cjs/app/ssr/stream.js +1 -0
- package/cjs/app/ssr/streaming-request-cache.js +1 -0
- package/cjs/app/static-assets.middleware.js +1 -0
- package/cjs/app/template-core.module.js +1 -0
- package/cjs/bundler/buildBE.js +1 -1
- package/cjs/bundler/buildFE.js +1 -1
- package/cjs/bundler/buildSSR.js +1 -1
- package/cjs/bundler/dev-session.js +1 -0
- package/cjs/bundler/dev.js +1 -1
- package/cjs/bundler/feSharedConfig.js +1 -1
- package/cjs/bundler/index.js +1 -1
- package/cjs/bundler/prod.js +1 -1
- package/cjs/bundler/ssrClientManifest.js +1 -1
- package/cjs/bundler/ssrEntries.js +1 -1
- package/cjs/bundler/state.js +1 -1
- package/cjs/bundler/utils.js +3 -3
- package/cjs/index.js +1 -1
- package/cjs/package.json +1 -0
- package/cjs/packages/common/index.js +1 -1
- package/cjs/packages/common/ssr/hydration.js +1 -1
- package/cjs/packages/common/ssr/index.js +1 -1
- package/cjs/packages/core/bootstrap.js +1 -0
- package/cjs/packages/core/config-service.js +1 -0
- package/cjs/packages/core/duplicate-route-checking-adapter.js +1 -0
- package/cjs/packages/core/index.js +1 -1
- package/cjs/packages/core/legacy-factory-diagnostics.js +1 -0
- package/cjs/packages/core/loader/model.js +1 -1
- package/cjs/packages/core/paths.js +1 -1
- package/cjs/packages/core/resource-lifecycle.js +1 -0
- package/cjs/packages/core/startup.js +1 -0
- package/cjs/packages/core/tokens.js +1 -0
- package/cjs/packages/utils/runFileFn.js +1 -1
- package/cjs/scripts/vite-build/build.js +2 -1
- package/esm/app/ai/agent/agent-scanner.service.js +91 -0
- package/esm/app/ai/agent/agent.module.js +11 -0
- package/esm/app/ai/ai-config.module.js +17 -0
- package/esm/app/ai/ai-config.service.js +38 -0
- package/esm/app/ai/ai.controller.js +162 -0
- package/esm/app/ai/ai.module.js +48 -0
- package/esm/app/ai/contracts/index.js +0 -0
- package/esm/app/ai/declaration-paths.js +28 -0
- package/esm/app/ai/eval/assertions.js +49 -0
- package/esm/app/ai/guardrail/guardrail.interface.js +0 -0
- package/esm/app/ai/guardrail/guardrail.module.js +11 -0
- package/esm/app/ai/guardrail/guardrail.service.js +35 -0
- package/esm/app/ai/guardrail/internal/load-guardrail-config.js +17 -0
- package/esm/app/ai/mcp/internal/load-mcp-config.js +50 -0
- package/esm/app/ai/mcp/mcp-registry.service.js +25 -0
- package/esm/app/ai/mcp/mcp.client.js +199 -0
- package/esm/app/ai/mcp/mcp.loader.js +63 -0
- package/esm/app/ai/mcp/mcp.module.js +30 -0
- package/esm/app/ai/mcp/mcp.types.js +4 -0
- package/esm/app/ai/memory/checkpoint.service.js +89 -0
- package/esm/app/ai/memory/internal/load-memory-config.js +15 -0
- package/esm/app/ai/memory/memory.module.js +14 -0
- package/esm/app/ai/memory/thread.service.js +80 -0
- package/esm/app/ai/rag/chunker.js +23 -0
- package/esm/app/ai/rag/internal/load-embedding-config.js +44 -0
- package/esm/app/ai/rag/internal/load-rag-config.js +35 -0
- package/esm/app/ai/rag/rag.interface.js +4 -0
- package/esm/app/ai/rag/rag.module.js +21 -0
- package/esm/app/ai/rag/retriever.service.js +79 -0
- package/esm/app/ai/retention/conversation-retention.service.js +66 -0
- package/esm/app/ai/retention/retention-policy.js +14 -0
- package/esm/app/ai/runtime/ai-runtime-startup.validator.js +32 -0
- package/esm/app/ai/runtime/internal/agent-run-context.js +5 -0
- package/esm/app/ai/runtime/internal/compact-tool-result.js +94 -0
- package/esm/app/ai/runtime/internal/context-compaction.service.js +352 -0
- package/esm/app/ai/runtime/internal/load-llm-config.js +52 -0
- package/esm/app/ai/runtime/internal/load-runtime-config.js +12 -0
- package/esm/app/ai/runtime/internal/request-budget.js +152 -0
- package/esm/app/ai/runtime/internal/run-event-queue.js +23 -0
- package/esm/app/ai/runtime/langchain/langchain-planner.service.js +195 -0
- package/esm/app/ai/runtime/langchain/skill-tool.adapter.js +29 -0
- package/esm/app/ai/runtime/langgraph/agent.graph.js +157 -0
- package/esm/app/ai/runtime/langgraph/agent.state.js +37 -0
- package/esm/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +356 -0
- package/esm/app/ai/runtime/runtime.module.js +44 -0
- package/esm/app/ai/runtime/thread-execution-coordinator.js +27 -0
- package/esm/app/ai/skill/skill-scanner.service.js +71 -0
- package/esm/app/ai/skill/skill.interface.js +0 -0
- package/esm/app/ai/skill/skill.module.js +11 -0
- package/esm/app/ai/store/internal/archive-id.js +11 -0
- package/esm/app/ai/store/internal/load-store-config.js +27 -0
- package/esm/app/ai/store/internal/load-thread-state-store.js +17 -0
- package/esm/app/ai/store/reference/file-memory.store.js +279 -0
- package/esm/app/ai/store/reference/file-trace.store.js +44 -0
- package/esm/app/ai/store/reference/file-vector.store.js +41 -0
- package/esm/app/ai/store/reference/qdrant-vector.store.js +65 -0
- package/esm/app/ai/store/store.interface.js +4 -0
- package/esm/app/ai/store/store.module.js +40 -0
- package/esm/app/ai/tool/builtin/index.js +6 -0
- package/esm/app/ai/tool/builtin/invoke-agent.tool.js +86 -0
- package/esm/app/ai/tool/builtin/retrieve.tool.js +31 -0
- package/esm/app/ai/tool/executor.service.js +78 -0
- package/esm/app/ai/tool/tool-registry.service.js +33 -0
- package/esm/app/ai/tool/tool.interface.js +0 -0
- package/esm/app/ai/tool/tool.module.js +14 -0
- package/esm/app/ai/trace/trace.service.js +93 -0
- package/esm/app/csr/controller.js +136 -0
- package/esm/app/extends/$fetch.js +6 -6
- package/esm/app/extends/crypto.js +4 -3
- package/esm/app/extends/db.js +65 -65
- package/esm/app/extends/logger.js +73 -12
- package/esm/app/frontend-development.js +24 -0
- package/esm/app/html/browser-options.js +7 -0
- package/esm/app/http/body-parser.middleware.js +53 -0
- package/esm/app/http/compression.middleware.js +13 -0
- package/esm/app/http/context.js +21 -0
- package/esm/app/http/controller.js +9 -0
- package/esm/app/http/error-response.js +36 -0
- package/esm/app/http/errors.js +24 -0
- package/esm/app/http/exception-filter.js +52 -0
- package/esm/app/http/request-data.js +17 -0
- package/esm/app/http/request-schema.pipe.js +40 -0
- package/esm/app/http/response.interceptor.js +26 -0
- package/esm/app/http/response.js +23 -0
- package/esm/app/http/security.guard.js +51 -0
- package/esm/app/project/controller.js +81 -0
- package/esm/app/project/service.js +35 -0
- package/esm/app/providers/csr.js +65 -0
- package/esm/app/providers/foundation.js +158 -0
- package/esm/app/ssr/artifacts.js +66 -0
- package/esm/app/ssr/controller.js +120 -0
- package/esm/app/ssr/html.js +55 -46
- package/esm/app/ssr/manifest.js +24 -10
- package/esm/app/ssr/session.js +91 -0
- package/esm/app/ssr/stream.js +50 -0
- package/esm/app/ssr/streaming-request-cache.js +30 -0
- package/esm/app/ssr/types.js +0 -0
- package/esm/app/static-assets.middleware.js +68 -0
- package/esm/app/template-core.module.js +92 -0
- package/esm/bundler/buildBE.js +1 -0
- package/esm/bundler/buildFE.js +11 -11
- package/esm/bundler/buildSSR.js +60 -62
- package/esm/bundler/dev-session.js +145 -0
- package/esm/bundler/dev.js +8 -9
- package/esm/bundler/feSharedConfig.js +66 -36
- package/esm/bundler/index.js +2 -1
- package/esm/bundler/prod.js +7 -11
- package/esm/bundler/ssrClientManifest.js +5 -5
- package/esm/bundler/ssrEntries.js +5 -5
- package/esm/bundler/state.js +5 -7
- package/esm/bundler/utils.js +170 -148
- package/esm/index.js +29 -12
- package/esm/package.json +1 -0
- package/esm/packages/common/index.js +12 -12
- package/esm/packages/common/ssr/hydration.js +1 -1
- package/esm/packages/common/ssr/index.js +13 -13
- package/esm/packages/core/bootstrap.js +82 -0
- package/esm/packages/core/config-service.js +46 -0
- package/esm/packages/core/duplicate-route-checking-adapter.js +106 -0
- package/esm/packages/core/index.js +7 -60
- package/esm/packages/core/legacy-factory-diagnostics.js +74 -0
- package/esm/packages/core/loader/model.js +6 -1
- package/esm/packages/core/paths.js +5 -11
- package/esm/packages/core/resource-lifecycle.js +83 -0
- package/esm/packages/core/startup.js +233 -0
- package/esm/packages/core/tokens.js +4 -0
- package/esm/packages/utils/runFileFn.js +19 -35
- package/esm/scripts/vite-build/build.js +29 -22
- package/fe/frontend/apps/dash/Dashboard.js +3 -3
- package/fe/frontend/apps/ui-components/UiComponentsPreview.d.ts +2 -0
- package/fe/frontend/apps/ui-components/UiComponentsPreview.js +182 -0
- package/fe/frontend/apps/ui-components/index.d.ts +1 -2
- package/fe/frontend/apps/ui-components/index.js +2 -8
- package/fe/frontend/apps/ui-components/ui-components.entry.js +3 -2
- package/fe/frontend/src/common/fetchErrorShow.js +1 -1
- package/fe/frontend/src/common/importComponent.js +1 -1
- package/fe/frontend/src/common/language.d.ts +1 -1
- package/fe/frontend/src/common/language.js +2 -2
- package/fe/frontend/src/common/request.d.ts +2 -0
- package/fe/frontend/src/common/request.js +14 -3
- package/fe/frontend/src/common/schemaForm.js +2 -2
- package/fe/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +2 -2
- package/fe/frontend/src/components/AsyncSelect/AsyncSelect.js +3 -3
- package/fe/frontend/src/components/BasePage/HeaderView.js +1 -2
- package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.d.ts +1 -1
- package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.js +7 -7
- package/fe/frontend/src/components/ThemeSwitch/ThemeSwitch.js +14 -8
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.js +3 -3
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.js +7 -6
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaSearch/index.js +2 -2
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/PreviewImage.d.ts +1 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/PreviewImage.js +1 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.js +7 -7
- package/fe/frontend/src/defaultPages/SchemaPage/index.js +2 -2
- package/fe/frontend/src/defaultPages/SidebarSlotPage/SidebarSlotContainer.js +2 -2
- package/fe/frontend/src/hooks/useText.d.ts +1 -1
- package/fe/frontend/src/hooks/useText.js +2 -2
- package/fe/frontend/src/index.d.ts +4 -4
- package/fe/frontend/src/index.js +4 -4
- package/fe/frontend/src/language/resources.d.ts +1 -1
- package/fe/frontend/src/main.css +1 -1
- package/fe/frontend/src/stores/apiFreezer.d.ts +1 -1
- package/fe/frontend/src/stores/apiFreezer.js +2 -2
- package/fe/frontend/src/stores/mode.js +1 -2
- package/fe/frontend/src/stores/schemaStore.d.ts +2 -2
- package/fe/frontend/src/stores/schemaStore.js +1 -2
- package/fe/frontend/src/typing/scalability.d.ts +2 -2
- package/fe/models/types/data/button.d.ts +1 -1
- package/fe/models/types/data/component.d.ts +1 -1
- package/fe/models/types/data/schema.d.ts +1 -1
- package/fe/models/types/data/search.d.ts +1 -1
- package/fe/packages/common/index.js +6 -6
- package/fe/packages/common/ssr/hydration.d.ts +2 -0
- package/fe/packages/common/ssr/hydration.js +1 -1
- package/fe/packages/common/ssr/index.js +2 -2
- package/fe/packages/react/core/Button/Button.js +88 -0
- package/fe/packages/react/core/Button/SubmitButton.d.ts +8 -0
- package/fe/packages/react/core/Button/SubmitButton.js +31 -0
- package/fe/packages/react/core/Button/index.js +3 -0
- package/fe/packages/react/core/Card/Card.js +31 -0
- package/fe/packages/react/core/Card/index.js +2 -0
- package/fe/packages/react/core/Checkbox/Checkbox.js +52 -0
- package/fe/packages/react/core/Checkbox/index.js +2 -0
- package/fe/packages/react/core/Label/Label.js +58 -0
- package/fe/packages/react/core/Label/index.js +2 -0
- package/fe/packages/react/core/Layout/Layout.js +33 -0
- package/fe/packages/react/core/Layout/index.js +2 -0
- package/fe/packages/react/core/Loading/Loading.js +48 -0
- package/fe/packages/react/core/Loading/index.js +2 -0
- package/fe/packages/react/core/Skeleton/Skeleton.js +101 -0
- package/fe/packages/react/core/Skeleton/index.js +2 -0
- package/fe/packages/react/core/breadcrumb/breadcrumb.js +155 -0
- package/fe/packages/react/core/breadcrumb/index.js +2 -0
- package/fe/packages/react/core/hooks/index.d.ts +12 -0
- package/fe/packages/react/core/hooks/index.js +13 -0
- package/fe/packages/react/core/hooks/useBreadcrumb.d.ts +9 -0
- package/fe/packages/react/core/hooks/useBreadcrumb.js +5 -0
- package/fe/packages/react/core/hooks/useDropdownPositioning.js +122 -0
- package/fe/packages/react/core/hooks/useExecuteOnce.js +47 -0
- package/fe/packages/react/core/hooks/useHydrationData.d.ts +2 -0
- package/fe/packages/react/core/hooks/useHydrationData.js +23 -0
- package/fe/packages/react/core/hooks/useInit.js +11 -0
- package/fe/packages/react/core/hooks/useInputController.js +39 -0
- package/fe/packages/react/core/hooks/useLanguage.d.ts +1 -0
- package/fe/packages/react/core/hooks/useLanguage.js +8 -0
- package/fe/packages/react/core/hooks/usePagination.js +30 -0
- package/fe/packages/react/core/hooks/useRefState.js +45 -0
- package/fe/packages/react/core/hooks/useSSR.js +46 -0
- package/fe/packages/react/core/hooks/useTableState.d.ts +22 -0
- package/fe/packages/react/core/hooks/useTableState.js +22 -0
- package/fe/packages/react/core/hooks/useWatch.js +60 -0
- package/fe/packages/react/core/index.d.ts +12 -0
- package/fe/packages/react/core/index.js +37 -0
- package/fe/packages/react/core/internal/hydration.d.ts +12 -0
- package/fe/packages/react/core/internal/hydration.js +17 -0
- package/fe/packages/react/core/internal/i18n/default.d.ts +86 -0
- package/fe/packages/react/core/internal/i18n/default.js +96 -0
- package/fe/packages/react/core/internal/i18n/en-US.d.ts +86 -0
- package/fe/packages/react/core/internal/i18n/en-US.js +96 -0
- package/fe/packages/react/core/internal/i18n/index.d.ts +18 -0
- package/fe/packages/react/core/internal/i18n/index.js +179 -0
- package/fe/packages/react/core/internal/i18n/locales.d.ts +7 -0
- package/fe/packages/react/core/internal/i18n/locales.js +18 -0
- package/fe/packages/react/core/internal/i18n/types.d.ts +47 -0
- package/fe/packages/react/core/internal/i18n/types.js +0 -0
- package/fe/packages/react/core/internal/raf-timeout.d.ts +2 -0
- package/fe/packages/react/core/internal/raf-timeout.js +54 -0
- package/fe/packages/react/core/internal/react19-compat.d.ts +15 -0
- package/fe/packages/react/core/internal/react19-compat.js +0 -0
- package/fe/packages/react/core/lib/createStoreHook.js +9 -0
- package/fe/packages/react/core/lib/dataTableWidth.js +33 -0
- package/fe/packages/react/core/lib/export.d.ts +21 -0
- package/fe/packages/react/core/lib/export.js +112 -0
- package/fe/packages/react/core/lib/index.d.ts +4 -0
- package/fe/packages/react/core/lib/index.js +5 -0
- package/fe/packages/react/core/lib/utils.d.ts +10 -0
- package/fe/packages/react/core/lib/utils.js +64 -0
- package/fe/packages/react/core/stores/breadcrumb.d.ts +14 -0
- package/fe/packages/react/core/stores/breadcrumb.js +52 -0
- package/fe/packages/react/core/stores/index.d.ts +2 -0
- package/fe/packages/react/core/stores/index.js +5 -0
- package/fe/packages/react/core/stores/language.d.ts +3 -0
- package/fe/packages/react/core/stores/language.js +3 -0
- package/fe/packages/react/core/types/baseType.js +0 -0
- package/fe/packages/react/core/types/index.js +0 -0
- package/fe/packages/react/dev/preview/DemoSection.d.ts +12 -0
- package/fe/packages/react/dev/preview/demoRegistry.d.ts +8 -0
- package/fe/packages/react/dev/preview/demos/core/ButtonDemo.d.ts +3 -0
- package/fe/packages/react/dev/preview/demos/forms/InputDemo.d.ts +3 -0
- package/fe/packages/react/dev/preview/demos/overlays/ModalDemo.d.ts +3 -0
- package/fe/packages/react/dev/preview/index.d.ts +2 -0
- package/fe/packages/react/forms/DataTable/ActionBtn.d.ts +7 -0
- package/fe/packages/react/forms/DataTable/ActionBtn.js +116 -0
- package/fe/packages/react/forms/DataTable/index.d.ts +32 -0
- package/fe/packages/react/forms/DataTable/index.js +216 -0
- package/fe/packages/react/forms/Date/Calendar.js +351 -0
- package/fe/packages/react/forms/Date/Date.js +210 -0
- package/fe/packages/react/forms/Date/LocaleContext.js +27 -0
- package/fe/packages/react/forms/Date/LocaleProvider.js +22 -0
- package/fe/packages/react/forms/Date/TimePicker.js +136 -0
- package/fe/packages/react/forms/Date/data.js +7 -0
- package/fe/packages/react/forms/Date/dateLocaleStore.js +14 -0
- package/fe/packages/react/forms/Date/dropdownPositioning.d.ts +2 -0
- package/fe/packages/react/forms/Date/dropdownPositioning.js +12 -0
- package/fe/packages/react/forms/Date/index.js +6 -0
- package/fe/packages/react/forms/Date/locales.d.ts +30 -0
- package/fe/packages/react/forms/Date/locales.js +58 -0
- package/fe/packages/react/forms/Form/Form.js +15 -0
- package/fe/packages/react/forms/Form/FormItem.d.ts +19 -0
- package/fe/packages/react/forms/Form/FormItem.js +60 -0
- package/fe/packages/react/forms/Form/SchemaForm/data.d.ts +40 -0
- package/fe/packages/react/forms/Form/SchemaForm/data.js +15 -0
- package/fe/packages/react/forms/Form/SchemaForm/defaultComponentsMap.js +4 -0
- package/fe/packages/react/forms/Form/SchemaForm/index.d.ts +60 -0
- package/fe/packages/react/forms/Form/SchemaForm/index.js +119 -0
- package/fe/packages/react/forms/Form/index.d.ts +5 -0
- package/fe/packages/react/forms/Form/index.js +6 -0
- package/fe/packages/react/forms/Input/Input.js +146 -0
- package/fe/packages/react/forms/Input/index.js +2 -0
- package/fe/packages/react/forms/InputNumber/InputNumber.d.ts +25 -0
- package/fe/packages/react/forms/InputNumber/InputNumber.js +207 -0
- package/fe/packages/react/forms/InputNumber/index.js +2 -0
- package/fe/packages/react/forms/InputNumber/inputNumberUtils.js +45 -0
- package/fe/packages/react/forms/Pagination/Pagination.js +115 -0
- package/fe/packages/react/forms/Pagination/index.js +2 -0
- package/fe/packages/react/forms/Radio/Radio.js +36 -0
- package/fe/packages/react/forms/Radio/RadioGroup.js +33 -0
- package/fe/packages/react/forms/Radio/index.js +3 -0
- package/fe/packages/react/forms/Search/Search.d.ts +13 -0
- package/fe/packages/react/forms/Search/Search.js +24 -0
- package/fe/packages/react/forms/Search/index.js +2 -0
- package/fe/packages/react/forms/Select/Select.js +282 -0
- package/fe/packages/react/forms/Select/dropdownPositioning.d.ts +2 -0
- package/fe/packages/react/forms/Select/dropdownPositioning.js +16 -0
- package/fe/packages/react/forms/Select/index.js +2 -0
- package/fe/packages/react/forms/Switch/Switch.js +28 -0
- package/fe/packages/react/forms/Switch/index.js +2 -0
- package/fe/packages/react/forms/TableSearch/TableSearch.d.ts +30 -0
- package/fe/packages/react/forms/TableSearch/TableSearch.js +154 -0
- package/fe/packages/react/forms/TableSearch/index.js +2 -0
- package/fe/packages/react/forms/TableSearch/lang.d.ts +16 -0
- package/fe/packages/react/forms/TableSearch/lang.js +25 -0
- package/fe/packages/react/forms/TableSearch/tableSearchLocaleStore.js +10 -0
- package/fe/packages/react/forms/Textarea/Textarea.js +58 -0
- package/fe/packages/react/forms/Textarea/index.js +2 -0
- package/fe/packages/react/forms/TreeSelect/TreeSelect.js +190 -0
- package/fe/packages/react/forms/TreeSelect/index.js +2 -0
- package/fe/packages/react/forms/Upload/ImageUpload.js +101 -0
- package/fe/packages/react/forms/Upload/Upload.js +29 -0
- package/fe/packages/react/forms/Upload/index.js +3 -0
- package/fe/packages/react/forms/index.d.ts +15 -0
- package/fe/packages/react/forms/index.js +41 -0
- package/fe/packages/react/forms/table/index.js +2 -0
- package/fe/packages/react/forms/table/table.js +166 -0
- package/fe/packages/react/i18n/I18nContext.d.ts +6 -0
- package/fe/packages/react/i18n/I18nContext.js +5 -0
- package/fe/packages/react/i18n/I18nProvider.d.ts +6 -0
- package/fe/packages/react/i18n/I18nProvider.js +19 -0
- package/fe/packages/react/i18n/getUiReactLocale.d.ts +176 -0
- package/fe/packages/react/i18n/getUiReactLocale.js +13 -0
- package/fe/packages/react/i18n/index.d.ts +5 -0
- package/fe/packages/react/i18n/index.js +7 -0
- package/fe/packages/react/i18n/legacy.d.ts +9 -0
- package/fe/packages/react/i18n/legacy.js +12 -0
- package/fe/packages/react/i18n/locales/en-US.d.ts +1 -0
- package/fe/packages/react/i18n/locales/en-US.js +2 -0
- package/fe/packages/react/i18n/locales/zh-CN.d.ts +1 -0
- package/fe/packages/react/i18n/locales/zh-CN.js +2 -0
- package/fe/packages/react/i18n/useI18n.d.ts +2 -0
- package/fe/packages/react/i18n/useI18n.js +15 -0
- package/fe/packages/react/i18n/useI18nState.d.ts +3 -0
- package/fe/packages/react/i18n/useI18nState.js +24 -0
- package/fe/packages/react/index.d.ts +6 -0
- package/fe/packages/react/index.js +80 -0
- package/fe/packages/react/overlays/Dialog/ConfirmDialog.js +41 -0
- package/fe/packages/react/overlays/Dialog/index.js +2 -0
- package/fe/packages/react/overlays/Drawer/Drawer.js +151 -0
- package/fe/packages/react/overlays/Drawer/index.js +2 -0
- package/fe/packages/react/overlays/Dropdown/Dropdown.d.ts +24 -0
- package/fe/packages/react/overlays/Dropdown/Dropdown.js +105 -0
- package/fe/packages/react/overlays/Dropdown/index.js +2 -0
- package/fe/packages/react/overlays/DropdownMenu/Menu.js +147 -0
- package/fe/packages/react/overlays/DropdownMenu/MenuContext.js +88 -0
- package/fe/packages/react/overlays/DropdownMenu/MenuItem.js +78 -0
- package/fe/packages/react/overlays/DropdownMenu/SubMenu.js +207 -0
- package/fe/packages/react/overlays/DropdownMenu/index.js +5 -0
- package/fe/packages/react/overlays/DropdownMenu/menuTypes.js +0 -0
- package/fe/packages/react/overlays/DropdownMenu/utils.js +8 -0
- package/fe/packages/react/overlays/Message/Message.js +76 -0
- package/fe/packages/react/overlays/Message/MessageManager.js +104 -0
- package/fe/packages/react/overlays/Message/data.js +4 -0
- package/fe/packages/react/overlays/Message/index.js +2 -0
- package/fe/packages/react/overlays/Modal/Modal.js +59 -0
- package/fe/packages/react/overlays/Modal/ModalManager.d.ts +46 -0
- package/fe/packages/react/overlays/Modal/ModalManager.js +106 -0
- package/fe/packages/react/overlays/Modal/index.js +3 -0
- package/fe/packages/react/overlays/Overlay/Overlay.js +61 -0
- package/fe/packages/react/overlays/Overlay/index.js +2 -0
- package/fe/packages/react/overlays/Popover/Notification.js +56 -0
- package/fe/packages/react/overlays/Popover/index.js +2 -0
- package/fe/packages/react/overlays/Popup/Popup.d.ts +25 -0
- package/fe/packages/react/overlays/Popup/Popup.js +91 -0
- package/fe/packages/react/overlays/Popup/index.js +2 -0
- package/fe/packages/react/overlays/Tooltip/Tooltip.js +88 -0
- package/fe/packages/react/overlays/Tooltip/index.js +2 -0
- package/fe/packages/react/overlays/index.d.ts +10 -0
- package/fe/packages/react/overlays/index.js +25 -0
- package/fe/packages/react/styles.css +299 -0
- package/fe/packages/react/ui/components/Button/index.d.ts +1 -3
- package/fe/packages/react/ui/components/Button/index.js +3 -2
- package/fe/packages/react/ui/components/Card/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Card/index.js +2 -1
- package/fe/packages/react/ui/components/Checkbox/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Checkbox/index.js +2 -1
- package/fe/packages/react/ui/components/ConfirmDialog/index.d.ts +1 -1
- package/fe/packages/react/ui/components/ConfirmDialog/index.js +2 -1
- package/fe/packages/react/ui/components/DataTable/index.d.ts +1 -32
- package/fe/packages/react/ui/components/DataTable/index.js +2 -215
- package/fe/packages/react/ui/components/Date/index.d.ts +1 -5
- package/fe/packages/react/ui/components/Date/index.js +6 -5
- package/fe/packages/react/ui/components/Drawer/index.d.ts +1 -2
- package/fe/packages/react/ui/components/Drawer/index.js +2 -1
- package/fe/packages/react/ui/components/Dropdown/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Dropdown/index.js +2 -1
- package/fe/packages/react/ui/components/Form/index.d.ts +1 -4
- package/fe/packages/react/ui/components/Form/index.js +6 -5
- package/fe/packages/react/ui/components/ImagePreview/ImagePreview.js +9 -5
- package/fe/packages/react/ui/components/ImagePreview/PreviewImage.d.ts +1 -1
- package/fe/packages/react/ui/components/ImagePreview/PreviewImage.js +4 -4
- package/fe/packages/react/ui/components/Input/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Input/index.js +2 -1
- package/fe/packages/react/ui/components/InputNumber/index.d.ts +1 -1
- package/fe/packages/react/ui/components/InputNumber/index.js +2 -1
- package/fe/packages/react/ui/components/Label/index.d.ts +1 -2
- package/fe/packages/react/ui/components/Label/index.js +3 -2
- package/fe/packages/react/ui/components/Layout/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Layout/index.js +2 -1
- package/fe/packages/react/ui/components/Loading/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Loading/index.js +2 -1
- package/fe/packages/react/ui/components/Menu/index.d.ts +1 -8
- package/fe/packages/react/ui/components/Menu/index.js +5 -4
- package/fe/packages/react/ui/components/Message/index.d.ts +1 -2
- package/fe/packages/react/ui/components/Message/index.js +2 -1
- package/fe/packages/react/ui/components/Modal/index.d.ts +1 -3
- package/fe/packages/react/ui/components/Modal/index.js +3 -2
- package/fe/packages/react/ui/components/Notification/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Notification/index.js +2 -1
- package/fe/packages/react/ui/components/Overlay/Overlay.js +1 -1
- package/fe/packages/react/ui/components/Overlay/index.d.ts +1 -2
- package/fe/packages/react/ui/components/Overlay/index.js +2 -1
- package/fe/packages/react/ui/components/Pagination/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Pagination/index.js +2 -1
- package/fe/packages/react/ui/components/Popup/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Popup/index.js +2 -1
- package/fe/packages/react/ui/components/Radio/index.d.ts +1 -2
- package/fe/packages/react/ui/components/Radio/index.js +3 -2
- package/fe/packages/react/ui/components/Search/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Search/index.js +2 -1
- package/fe/packages/react/ui/components/Select/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Select/index.js +2 -1
- package/fe/packages/react/ui/components/Skeleton/index.d.ts +1 -2
- package/fe/packages/react/ui/components/Skeleton/index.js +2 -1
- package/fe/packages/react/ui/components/Switch/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Switch/index.js +2 -1
- package/fe/packages/react/ui/components/TableSearch/index.d.ts +1 -2
- package/fe/packages/react/ui/components/TableSearch/index.js +2 -1
- package/fe/packages/react/ui/components/Tabs/Tabs.js +1 -1
- package/fe/packages/react/ui/components/Textarea/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Textarea/index.js +2 -1
- package/fe/packages/react/ui/components/Tooltip/index.d.ts +1 -1
- package/fe/packages/react/ui/components/Tooltip/index.js +2 -1
- package/fe/packages/react/ui/components/TreeSelect/index.d.ts +1 -1
- package/fe/packages/react/ui/components/TreeSelect/index.js +2 -1
- package/fe/packages/react/ui/components/Upload/index.d.ts +1 -2
- package/fe/packages/react/ui/components/Upload/index.js +3 -2
- package/fe/packages/react/ui/components/breadcrumb/index.d.ts +1 -1
- package/fe/packages/react/ui/components/breadcrumb/index.js +2 -1
- package/fe/packages/react/ui/components/index.d.ts +3 -33
- package/fe/packages/react/ui/components/index.js +69 -77
- package/fe/packages/react/ui/components/table/index.d.ts +1 -1
- package/fe/packages/react/ui/components/table/index.js +2 -1
- package/fe/packages/react/ui/i18n/I18nProvider.d.ts +1 -1
- package/fe/packages/react/ui/i18n/I18nProvider.js +2 -1
- package/fe/packages/react/ui/i18n/index.d.ts +1 -3
- package/fe/packages/react/ui/i18n/index.js +8 -7
- package/fe/packages/react/ui/i18n/useI18n.d.ts +6 -6
- package/fe/packages/react/ui/i18n/useI18n.js +2 -2
- package/fe/packages/react/ui/index.css +2 -299
- package/fe/packages/react/ui/index.d.ts +0 -2
- package/fe/packages/react/ui/index.js +72 -55
- package/fe/ssr/apps/dash/dash.entry.js +7 -3
- package/fe/ssr/apps/ui-components/ui-components.entry.js +3 -2
- package/fe/ssr/components/StreamingRender/StreamingCache.js +6 -0
- package/fe/ssr/components/StreamingRender/StreamingRender.d.ts +1 -1
- package/fe/ssr/components/StreamingRender/StreamingRender.js +31 -25
- package/fe/ssr/components/StreamingRender/StreamingScript.d.ts +2 -0
- package/fe/ssr/components/StreamingRender/StreamingScript.js +48 -4
- package/fe/ssr/types.d.ts +1 -13
- package/models/frontend/src/common/language.d.ts +1 -1
- package/models/frontend/src/common/request.d.ts +2 -0
- package/models/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +2 -2
- package/models/frontend/src/hooks/useText.d.ts +1 -1
- package/models/frontend/src/language/resources.d.ts +1 -1
- package/models/frontend/src/stores/apiFreezer.d.ts +1 -1
- package/models/frontend/src/stores/schemaStore.d.ts +2 -2
- package/models/frontend/src/typing/scalability.d.ts +2 -2
- package/models/models/types/data/button.d.ts +1 -1
- package/models/models/types/data/component.d.ts +1 -1
- package/models/models/types/data/schema.d.ts +1 -1
- package/models/models/types/data/search.d.ts +1 -1
- package/models/packages/common/ssr/hydration.d.ts +2 -0
- package/models/packages/react/core/Button/SubmitButton.d.ts +8 -0
- package/models/packages/react/core/Button/index.d.ts +3 -0
- package/models/packages/react/core/Card/index.d.ts +1 -0
- package/models/packages/react/core/Checkbox/index.d.ts +1 -0
- package/models/packages/react/core/Label/index.d.ts +2 -0
- package/models/packages/react/core/Layout/index.d.ts +1 -0
- package/models/packages/react/core/Loading/index.d.ts +1 -0
- package/models/packages/react/core/Skeleton/index.d.ts +2 -0
- package/models/packages/react/core/breadcrumb/index.d.ts +1 -0
- package/models/packages/react/core/hooks/index.d.ts +12 -0
- package/models/packages/react/core/hooks/useBreadcrumb.d.ts +9 -0
- package/models/packages/react/core/hooks/useHydrationData.d.ts +2 -0
- package/models/packages/react/core/hooks/useInit.d.ts +2 -0
- package/models/packages/react/core/hooks/useLanguage.d.ts +1 -0
- package/models/packages/react/core/hooks/usePagination.d.ts +15 -0
- package/models/packages/react/core/hooks/useRefState.d.ts +9 -0
- package/models/packages/react/core/hooks/useSSR.d.ts +6 -0
- package/models/packages/react/core/hooks/useTableState.d.ts +22 -0
- package/models/packages/react/core/hooks/useWatch.d.ts +14 -0
- package/models/packages/react/core/index.d.ts +12 -0
- package/models/packages/react/core/internal/hydration.d.ts +12 -0
- package/models/packages/react/core/internal/i18n/default.d.ts +86 -0
- package/models/packages/react/core/internal/i18n/en-US.d.ts +86 -0
- package/models/packages/react/core/internal/i18n/index.d.ts +18 -0
- package/models/packages/react/core/internal/i18n/locales.d.ts +7 -0
- package/models/packages/react/core/internal/i18n/types.d.ts +47 -0
- package/models/packages/react/core/internal/raf-timeout.d.ts +2 -0
- package/models/packages/react/core/internal/react19-compat.d.ts +15 -0
- package/models/packages/react/core/lib/export.d.ts +21 -0
- package/models/packages/react/core/lib/index.d.ts +4 -0
- package/models/packages/react/core/lib/utils.d.ts +10 -0
- package/models/packages/react/core/stores/breadcrumb.d.ts +14 -0
- package/models/packages/react/core/stores/index.d.ts +2 -0
- package/models/packages/react/core/stores/language.d.ts +3 -0
- package/models/packages/react/core/types/baseType.d.ts +21 -0
- package/models/packages/react/forms/DataTable/ActionBtn.d.ts +7 -0
- package/models/packages/react/forms/DataTable/index.d.ts +32 -0
- package/models/packages/react/forms/Date/dropdownPositioning.d.ts +2 -0
- package/models/packages/react/forms/Date/index.d.ts +5 -0
- package/models/packages/react/forms/Date/locales.d.ts +30 -0
- package/models/packages/react/forms/Form/FormItem.d.ts +19 -0
- package/models/packages/react/forms/Form/SchemaForm/data.d.ts +40 -0
- package/models/packages/react/forms/Form/SchemaForm/index.d.ts +60 -0
- package/models/packages/react/forms/Form/index.d.ts +5 -0
- package/models/packages/react/forms/Input/index.d.ts +1 -0
- package/models/packages/react/forms/InputNumber/InputNumber.d.ts +25 -0
- package/models/packages/react/forms/InputNumber/index.d.ts +1 -0
- package/models/packages/react/forms/Pagination/index.d.ts +1 -0
- package/models/packages/react/forms/Radio/index.d.ts +2 -0
- package/models/packages/react/forms/Search/Search.d.ts +13 -0
- package/models/packages/react/forms/Search/index.d.ts +1 -0
- package/models/packages/react/forms/Select/dropdownPositioning.d.ts +2 -0
- package/models/packages/react/forms/Select/index.d.ts +1 -0
- package/models/packages/react/forms/Switch/index.d.ts +1 -0
- package/models/packages/react/forms/TableSearch/TableSearch.d.ts +30 -0
- package/models/packages/react/forms/TableSearch/index.d.ts +2 -0
- package/models/packages/react/forms/TableSearch/lang.d.ts +16 -0
- package/models/packages/react/forms/Textarea/index.d.ts +1 -0
- package/models/packages/react/forms/TreeSelect/index.d.ts +1 -0
- package/models/packages/react/forms/Upload/index.d.ts +2 -0
- package/models/packages/react/forms/index.d.ts +15 -0
- package/models/packages/react/forms/table/index.d.ts +1 -0
- package/models/packages/react/i18n/I18nContext.d.ts +6 -0
- package/models/packages/react/i18n/I18nProvider.d.ts +6 -0
- package/models/packages/react/i18n/getUiReactLocale.d.ts +176 -0
- package/models/packages/react/i18n/index.d.ts +5 -0
- package/models/packages/react/i18n/legacy.d.ts +9 -0
- package/models/packages/react/i18n/locales/en-US.d.ts +1 -0
- package/models/packages/react/i18n/locales/zh-CN.d.ts +1 -0
- package/models/packages/react/i18n/useI18n.d.ts +2 -0
- package/models/packages/react/i18n/useI18nState.d.ts +3 -0
- package/models/packages/react/index.d.ts +6 -0
- package/models/packages/react/overlays/Dialog/index.d.ts +1 -0
- package/models/packages/react/overlays/Drawer/index.d.ts +2 -0
- package/models/packages/react/overlays/Dropdown/Dropdown.d.ts +24 -0
- package/models/packages/react/overlays/Dropdown/index.d.ts +1 -0
- package/models/packages/react/overlays/DropdownMenu/index.d.ts +8 -0
- package/models/packages/react/overlays/Message/index.d.ts +2 -0
- package/models/packages/react/overlays/Modal/ModalManager.d.ts +46 -0
- package/models/packages/react/overlays/Modal/index.d.ts +3 -0
- package/models/packages/react/overlays/Overlay/Overlay.d.ts +19 -0
- package/models/packages/react/overlays/Overlay/index.d.ts +2 -0
- package/models/packages/react/overlays/Popover/index.d.ts +1 -0
- package/models/packages/react/overlays/Popup/Popup.d.ts +25 -0
- package/models/packages/react/overlays/Popup/index.d.ts +1 -0
- package/models/packages/react/overlays/Tooltip/index.d.ts +1 -0
- package/models/packages/react/overlays/index.d.ts +10 -0
- package/models/packages/react/ui/components/ImagePreview/PreviewImage.d.ts +1 -1
- package/models/packages/react/ui/components/index.d.ts +3 -33
- package/models/packages/react/ui/i18n/useI18n.d.ts +6 -6
- package/package.json +104 -22
- package/ssr/STREAMING_BOOTSTRAP.md +360 -0
- package/types/app/ai/agent/agent-run.dto.d.ts +7 -0
- package/types/app/ai/agent/agent-scanner.service.d.ts +16 -0
- package/types/app/ai/agent/agent.interface.d.ts +13 -0
- package/types/app/ai/agent/agent.module.d.ts +2 -0
- package/types/app/ai/ai-config.module.d.ts +4 -0
- package/types/app/ai/ai-config.service.d.ts +10 -0
- package/types/app/ai/ai.controller.d.ts +3 -0
- package/types/app/ai/ai.module.d.ts +4 -0
- package/types/app/ai/contracts/index.d.ts +129 -0
- package/types/app/ai/declaration-paths.d.ts +3 -0
- package/types/app/ai/eval/assertions.d.ts +26 -0
- package/types/app/ai/guardrail/guardrail.interface.d.ts +10 -0
- package/types/app/ai/guardrail/guardrail.module.d.ts +2 -0
- package/types/app/ai/guardrail/guardrail.service.d.ts +11 -0
- package/types/app/ai/guardrail/internal/load-guardrail-config.d.ts +4 -0
- package/types/app/ai/mcp/internal/load-mcp-config.d.ts +7 -0
- package/types/app/ai/mcp/mcp-registry.service.d.ts +11 -0
- package/types/app/ai/mcp/mcp.client.d.ts +41 -0
- package/types/app/ai/mcp/mcp.loader.d.ts +26 -0
- package/types/app/ai/mcp/mcp.module.d.ts +14 -0
- package/types/app/ai/mcp/mcp.types.d.ts +51 -0
- package/types/app/ai/memory/checkpoint.service.d.ts +15 -0
- package/types/app/ai/memory/internal/load-memory-config.d.ts +9 -0
- package/types/app/ai/memory/memory.module.d.ts +2 -0
- package/types/app/ai/memory/thread.service.d.ts +34 -0
- package/types/app/ai/rag/chunker.d.ts +14 -0
- package/types/app/ai/rag/internal/load-embedding-config.d.ts +11 -0
- package/types/app/ai/rag/internal/load-rag-config.d.ts +16 -0
- package/types/app/ai/rag/rag.interface.d.ts +57 -0
- package/types/app/ai/rag/rag.module.d.ts +2 -0
- package/types/app/ai/rag/retriever.service.d.ts +18 -0
- package/types/app/ai/retention/conversation-retention.service.d.ts +20 -0
- package/types/app/ai/retention/retention-policy.d.ts +5 -0
- package/types/app/ai/runtime/ai-runtime-startup.validator.d.ts +11 -0
- package/types/app/ai/runtime/internal/agent-run-context.d.ts +12 -0
- package/types/app/ai/runtime/internal/compact-tool-result.d.ts +21 -0
- package/types/app/ai/runtime/internal/context-compaction.service.d.ts +33 -0
- package/types/app/ai/runtime/internal/load-llm-config.d.ts +26 -0
- package/types/app/ai/runtime/internal/load-runtime-config.d.ts +13 -0
- package/types/app/ai/runtime/internal/request-budget.d.ts +44 -0
- package/types/app/ai/runtime/internal/run-event-queue.d.ts +11 -0
- package/types/app/ai/runtime/langchain/langchain-planner.service.d.ts +49 -0
- package/types/app/ai/runtime/langchain/skill-tool.adapter.d.ts +9 -0
- package/types/app/ai/runtime/langgraph/agent.graph.d.ts +130 -0
- package/types/app/ai/runtime/langgraph/agent.state.d.ts +43 -0
- package/types/app/ai/runtime/langgraph/langgraph-orchestrator.service.d.ts +87 -0
- package/types/app/ai/runtime/runtime.module.d.ts +7 -0
- package/types/app/ai/runtime/thread-execution-coordinator.d.ts +21 -0
- package/types/app/ai/skill/skill-scanner.service.d.ts +17 -0
- package/types/app/ai/skill/skill.interface.d.ts +9 -0
- package/types/app/ai/skill/skill.module.d.ts +2 -0
- package/types/app/ai/store/internal/archive-id.d.ts +1 -0
- package/types/app/ai/store/internal/load-store-config.d.ts +22 -0
- package/types/app/ai/store/internal/load-thread-state-store.d.ts +4 -0
- package/types/app/ai/store/reference/file-memory.store.d.ts +33 -0
- package/types/app/ai/store/reference/file-trace.store.d.ts +14 -0
- package/types/app/ai/store/reference/file-vector.store.d.ts +12 -0
- package/types/app/ai/store/reference/qdrant-vector.store.d.ts +9 -0
- package/types/app/ai/store/store.interface.d.ts +141 -0
- package/types/app/ai/store/store.module.d.ts +2 -0
- package/types/app/ai/tool/builtin/index.d.ts +6 -0
- package/types/app/ai/tool/builtin/invoke-agent.tool.d.ts +4 -0
- package/types/app/ai/tool/builtin/retrieve.tool.d.ts +7 -0
- package/types/app/ai/tool/executor.service.d.ts +14 -0
- package/types/app/ai/tool/tool-registry.service.d.ts +18 -0
- package/types/app/ai/tool/tool.interface.d.ts +33 -0
- package/types/app/ai/tool/tool.module.d.ts +2 -0
- package/types/app/ai/trace/trace.service.d.ts +33 -0
- package/types/app/csr/controller.d.ts +3 -0
- package/types/app/extends/$fetch.d.ts +1 -3
- package/types/app/extends/crypto.d.ts +3 -5
- package/types/app/extends/db.d.ts +5 -3
- package/types/app/extends/logger.d.ts +16 -10
- package/types/app/frontend-development.d.ts +14 -0
- package/types/app/html/browser-options.d.ts +3 -0
- package/types/app/http/body-parser.middleware.d.ts +9 -0
- package/types/app/http/compression.middleware.d.ts +7 -0
- package/types/app/http/context.d.ts +11 -0
- package/types/app/http/controller.d.ts +7 -0
- package/types/app/http/error-response.d.ts +3 -0
- package/types/app/http/errors.d.ts +25 -0
- package/types/app/http/exception-filter.d.ts +11 -0
- package/types/app/http/request-data.d.ts +9 -0
- package/types/app/http/request-schema.pipe.d.ts +18 -0
- package/types/app/http/response.d.ts +10 -0
- package/types/app/http/response.interceptor.d.ts +5 -0
- package/types/app/http/security.guard.d.ts +13 -0
- package/types/app/project/controller.d.ts +3 -0
- package/types/app/project/service.d.ts +19 -0
- package/types/app/providers/csr.d.ts +21 -0
- package/types/app/providers/foundation.d.ts +8 -0
- package/types/app/ssr/artifacts.d.ts +25 -0
- package/types/app/ssr/controller.d.ts +3 -0
- package/types/app/ssr/html.d.ts +30 -10
- package/types/app/ssr/session.d.ts +44 -0
- package/types/app/ssr/stream.d.ts +5 -0
- package/types/app/ssr/streaming-request-cache.d.ts +10 -0
- package/types/app/ssr/types.d.ts +14 -0
- package/types/app/static-assets.middleware.d.ts +10 -0
- package/types/app/template-core.module.d.ts +12 -0
- package/types/app/utils/i18n.d.ts +7 -4
- package/types/bundler/buildFE.d.ts +4 -1
- package/types/bundler/buildSSR.d.ts +1 -1
- package/types/bundler/dev-session.d.ts +23 -0
- package/types/bundler/dev.d.ts +4 -1
- package/types/bundler/feSharedConfig.d.ts +3 -1
- package/types/bundler/index.d.ts +4 -0
- package/types/bundler/prod.d.ts +2 -1
- package/types/bundler/state.d.ts +3 -5
- package/types/bundler/utils.d.ts +16 -5
- package/types/config/config.default.d.ts +10 -0
- package/types/index.d.ts +45 -29
- package/types/packages/common/ssr/hydration.d.ts +2 -0
- package/types/packages/core/bootstrap.d.ts +5 -0
- package/types/packages/core/config-service.d.ts +13 -0
- package/types/packages/core/duplicate-route-checking-adapter.d.ts +23 -0
- package/types/packages/core/index.d.ts +8 -6
- package/types/packages/core/legacy-factory-diagnostics.d.ts +2 -0
- package/types/packages/core/loader/model.d.ts +14 -10
- package/types/packages/core/paths.d.ts +0 -14
- package/types/packages/core/resource-lifecycle.d.ts +7 -0
- package/types/packages/core/startup.d.ts +70 -0
- package/types/packages/core/tokens.d.ts +8 -0
- package/types/scripts/vite-build/types.d.ts +3 -0
- package/types/ssrSharedData/outputPaths.d.ts +2 -2
- package/.skills/tc-generator/reference/project-template/app/controller/product.js +0 -73
- package/.skills/tc-generator/reference/project-template/app/router/product.js +0 -9
- package/cjs/app/controller/base.js +0 -1
- package/cjs/app/controller/project.js +0 -1
- package/cjs/app/controller/ssr.js +0 -1
- package/cjs/app/controller/view.js +0 -1
- package/cjs/app/extends/generateErrorMessage.js +0 -1
- package/cjs/app/extends/localCacheHtmlEtag.js +0 -1
- package/cjs/app/extends/parsingParamsOnUrl.js +0 -1
- package/cjs/app/extends/render-view.js +0 -1
- package/cjs/app/middleware.js +0 -1
- package/cjs/app/middlewares/api-params-verify.js +0 -1
- package/cjs/app/middlewares/api-sign-verify.js +0 -1
- package/cjs/app/middlewares/error-handle.js +0 -1
- package/cjs/app/middlewares/project-handler.js +0 -1
- package/cjs/app/middlewares/request-parameter-parsing.js +0 -1
- package/cjs/app/router/project.js +0 -1
- package/cjs/app/router/ssr.js +0 -1
- package/cjs/app/router/view.js +0 -1
- package/cjs/app/router-schema/project.js +0 -1
- package/cjs/app/service/base.js +0 -1
- package/cjs/app/service/project.js +0 -1
- package/cjs/packages/core/env.js +0 -1
- package/cjs/packages/core/loader/config.js +0 -1
- package/cjs/packages/core/loader/controller.js +0 -1
- package/cjs/packages/core/loader/extend.js +0 -1
- package/cjs/packages/core/loader/merge.js +0 -1
- package/cjs/packages/core/loader/middleware.js +0 -1
- package/cjs/packages/core/loader/router-schema.js +0 -1
- package/cjs/packages/core/loader/router.js +0 -1
- package/cjs/packages/core/loader/service.js +0 -1
- package/esm/_virtual/_rolldown/runtime.js +0 -7
- package/esm/app/controller/base.js +0 -26
- package/esm/app/controller/project.js +0 -58
- package/esm/app/controller/ssr.js +0 -215
- package/esm/app/controller/view.js +0 -43
- package/esm/app/extends/generateErrorMessage.js +0 -7
- package/esm/app/extends/localCacheHtmlEtag.js +0 -41
- package/esm/app/extends/parsingParamsOnUrl.js +0 -14
- package/esm/app/extends/render-view.js +0 -18
- package/esm/app/middleware.js +0 -31
- package/esm/app/middlewares/api-params-verify.js +0 -56
- package/esm/app/middlewares/api-sign-verify.js +0 -16
- package/esm/app/middlewares/error-handle.js +0 -25
- package/esm/app/middlewares/project-handler.js +0 -16
- package/esm/app/middlewares/request-parameter-parsing.js +0 -18
- package/esm/app/router/project.js +0 -7
- package/esm/app/router/ssr.js +0 -8
- package/esm/app/router/view.js +0 -8
- package/esm/app/router-schema/project.js +0 -15
- package/esm/app/service/base.js +0 -14
- package/esm/app/service/project.js +0 -23
- package/esm/packages/core/env.js +0 -24
- package/esm/packages/core/loader/config.js +0 -29
- package/esm/packages/core/loader/controller.js +0 -15
- package/esm/packages/core/loader/extend.js +0 -32
- package/esm/packages/core/loader/merge.js +0 -7
- package/esm/packages/core/loader/middleware.js +0 -15
- package/esm/packages/core/loader/router-schema.js +0 -26
- package/esm/packages/core/loader/router.js +0 -45
- package/esm/packages/core/loader/service.js +0 -15
- package/fe/_virtual/_rolldown/runtime.js +0 -13
- package/fe/packages/react/hooks/index.d.ts +0 -11
- package/fe/packages/react/hooks/index.js +0 -10
- package/fe/packages/react/hooks/useBreadcrumb.d.ts +0 -9
- package/fe/packages/react/hooks/useBreadcrumb.js +0 -5
- package/fe/packages/react/hooks/useExecuteOnce.js +0 -47
- package/fe/packages/react/hooks/useHydrationData.d.ts +0 -2
- package/fe/packages/react/hooks/useHydrationData.js +0 -23
- package/fe/packages/react/hooks/useInit.js +0 -11
- package/fe/packages/react/hooks/useLanguage.d.ts +0 -1
- package/fe/packages/react/hooks/useLanguage.js +0 -8
- package/fe/packages/react/hooks/usePagination.js +0 -30
- package/fe/packages/react/hooks/useRefState.js +0 -45
- package/fe/packages/react/hooks/useSSR.js +0 -46
- package/fe/packages/react/hooks/useWatch.js +0 -60
- package/fe/packages/react/ui/components/Button/Button.js +0 -88
- package/fe/packages/react/ui/components/Button/SubmitButton.d.ts +0 -8
- package/fe/packages/react/ui/components/Button/SubmitButton.js +0 -30
- package/fe/packages/react/ui/components/Card/Card.js +0 -31
- package/fe/packages/react/ui/components/Checkbox/Checkbox.js +0 -52
- package/fe/packages/react/ui/components/ConfirmDialog/ConfirmDialog.js +0 -41
- package/fe/packages/react/ui/components/DataTable/ActionBtn.d.ts +0 -7
- package/fe/packages/react/ui/components/DataTable/ActionBtn.js +0 -116
- package/fe/packages/react/ui/components/DataTable/dataTableWidth.js +0 -33
- package/fe/packages/react/ui/components/Date/Calendar.js +0 -351
- package/fe/packages/react/ui/components/Date/Date.js +0 -210
- package/fe/packages/react/ui/components/Date/DateTestPage.d.ts +0 -1
- package/fe/packages/react/ui/components/Date/DateTestPage.js +0 -24
- package/fe/packages/react/ui/components/Date/LocaleContext.js +0 -36
- package/fe/packages/react/ui/components/Date/LocaleProvider.js +0 -22
- package/fe/packages/react/ui/components/Date/TimePicker.js +0 -136
- package/fe/packages/react/ui/components/Date/data.js +0 -7
- package/fe/packages/react/ui/components/Date/dateLocaleStore.js +0 -14
- package/fe/packages/react/ui/components/Date/dropdownPositioning.d.ts +0 -2
- package/fe/packages/react/ui/components/Date/dropdownPositioning.js +0 -12
- package/fe/packages/react/ui/components/Date/locales.d.ts +0 -30
- package/fe/packages/react/ui/components/Date/locales.js +0 -56
- package/fe/packages/react/ui/components/Drawer/Drawer.js +0 -151
- package/fe/packages/react/ui/components/Dropdown/Dropdown.d.ts +0 -24
- package/fe/packages/react/ui/components/Dropdown/Dropdown.js +0 -105
- package/fe/packages/react/ui/components/Form/Form.js +0 -15
- package/fe/packages/react/ui/components/Form/FormItem.d.ts +0 -19
- package/fe/packages/react/ui/components/Form/FormItem.js +0 -60
- package/fe/packages/react/ui/components/Form/SchemaForm/data.d.ts +0 -40
- package/fe/packages/react/ui/components/Form/SchemaForm/data.js +0 -15
- package/fe/packages/react/ui/components/Form/SchemaForm/defaultComponentsMap.js +0 -4
- package/fe/packages/react/ui/components/Form/SchemaForm/index.d.ts +0 -60
- package/fe/packages/react/ui/components/Form/SchemaForm/index.js +0 -119
- package/fe/packages/react/ui/components/Input/Input.js +0 -146
- package/fe/packages/react/ui/components/InputNumber/InputNumber.d.ts +0 -25
- package/fe/packages/react/ui/components/InputNumber/InputNumber.js +0 -207
- package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.js +0 -45
- package/fe/packages/react/ui/components/Label/Label.js +0 -58
- package/fe/packages/react/ui/components/Layout/Layout.js +0 -33
- package/fe/packages/react/ui/components/Loading/Loading.js +0 -48
- package/fe/packages/react/ui/components/Menu/Menu.js +0 -147
- package/fe/packages/react/ui/components/Menu/MenuContext.js +0 -88
- package/fe/packages/react/ui/components/Menu/MenuItem.js +0 -78
- package/fe/packages/react/ui/components/Menu/SubMenu.js +0 -207
- package/fe/packages/react/ui/components/Menu/utils.js +0 -8
- package/fe/packages/react/ui/components/Message/Message.js +0 -76
- package/fe/packages/react/ui/components/Message/MessageManager.js +0 -104
- package/fe/packages/react/ui/components/Message/data.js +0 -4
- package/fe/packages/react/ui/components/Modal/Modal.js +0 -59
- package/fe/packages/react/ui/components/Modal/ModalManager.d.ts +0 -46
- package/fe/packages/react/ui/components/Modal/ModalManager.js +0 -106
- package/fe/packages/react/ui/components/Notification/Notification.js +0 -56
- package/fe/packages/react/ui/components/Pagination/Pagination.js +0 -115
- package/fe/packages/react/ui/components/Popup/Popup.d.ts +0 -25
- package/fe/packages/react/ui/components/Popup/Popup.js +0 -91
- package/fe/packages/react/ui/components/Radio/Radio.js +0 -36
- package/fe/packages/react/ui/components/Radio/RadioGroup.js +0 -33
- package/fe/packages/react/ui/components/Search/Search.d.ts +0 -13
- package/fe/packages/react/ui/components/Search/Search.js +0 -24
- package/fe/packages/react/ui/components/Select/Select.js +0 -282
- package/fe/packages/react/ui/components/Select/dropdownPositioning.d.ts +0 -2
- package/fe/packages/react/ui/components/Select/dropdownPositioning.js +0 -16
- package/fe/packages/react/ui/components/Skeleton/Skeleton.js +0 -101
- package/fe/packages/react/ui/components/Switch/Switch.js +0 -28
- package/fe/packages/react/ui/components/TableSearch/TableSearch.d.ts +0 -30
- package/fe/packages/react/ui/components/TableSearch/TableSearch.js +0 -166
- package/fe/packages/react/ui/components/TableSearch/lang.d.ts +0 -16
- package/fe/packages/react/ui/components/TableSearch/lang.js +0 -25
- package/fe/packages/react/ui/components/TableSearch/tableSearchLocaleStore.js +0 -10
- package/fe/packages/react/ui/components/Textarea/Textarea.js +0 -58
- package/fe/packages/react/ui/components/Tooltip/Tooltip.js +0 -77
- package/fe/packages/react/ui/components/TreeSelect/TreeSelect.js +0 -190
- package/fe/packages/react/ui/components/Upload/ImageUpload.js +0 -101
- package/fe/packages/react/ui/components/Upload/Upload.js +0 -29
- package/fe/packages/react/ui/components/breadcrumb/breadcrumb.js +0 -155
- package/fe/packages/react/ui/components/hooks/useDropdownPositioning.js +0 -121
- package/fe/packages/react/ui/components/hooks/useInputController.js +0 -39
- package/fe/packages/react/ui/components/table/table.js +0 -166
- package/fe/packages/react/ui/components/testPage/DemoSection.d.ts +0 -10
- package/fe/packages/react/ui/components/testPage/DemoSection.js +0 -73
- package/fe/packages/react/ui/components/testPage/MenuTestPage.js +0 -24
- package/fe/packages/react/ui/components/testPage/demoRegistry.d.ts +0 -4
- package/fe/packages/react/ui/components/testPage/demoRegistry.js +0 -217
- package/fe/packages/react/ui/components/testPage/demos/core/BreadcrumbDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/BreadcrumbDemo.js +0 -44
- package/fe/packages/react/ui/components/testPage/demos/core/BreadcrumbDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/ButtonDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/ButtonDemo.js +0 -85
- package/fe/packages/react/ui/components/testPage/demos/core/ButtonDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/CardDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/CardDemo.js +0 -52
- package/fe/packages/react/ui/components/testPage/demos/core/CardDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/CheckboxDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/CheckboxDemo.js +0 -41
- package/fe/packages/react/ui/components/testPage/demos/core/CheckboxDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/ConfirmDialogDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/ConfirmDialogDemo.js +0 -35
- package/fe/packages/react/ui/components/testPage/demos/core/ConfirmDialogDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/DataTableDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/DataTableDemo.js +0 -273
- package/fe/packages/react/ui/components/testPage/demos/core/DataTableDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/DrawerDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/DrawerDemo.js +0 -105
- package/fe/packages/react/ui/components/testPage/demos/core/DrawerDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/DropdownDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/DropdownDemo.js +0 -48
- package/fe/packages/react/ui/components/testPage/demos/core/DropdownDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/FormDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/FormDemo.js +0 -56
- package/fe/packages/react/ui/components/testPage/demos/core/FormDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/ImageUploadDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/ImageUploadDemo.js +0 -26
- package/fe/packages/react/ui/components/testPage/demos/core/ImageUploadDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/InputDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/InputDemo.js +0 -55
- package/fe/packages/react/ui/components/testPage/demos/core/InputDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/InputNumberDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/InputNumberDemo.js +0 -65
- package/fe/packages/react/ui/components/testPage/demos/core/InputNumberDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/LabelDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/LabelDemo.js +0 -33
- package/fe/packages/react/ui/components/testPage/demos/core/LabelDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/LayoutDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/LayoutDemo.js +0 -64
- package/fe/packages/react/ui/components/testPage/demos/core/LayoutDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/LoadingDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/LoadingDemo.js +0 -32
- package/fe/packages/react/ui/components/testPage/demos/core/LoadingDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/MessageDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/MessageDemo.js +0 -44
- package/fe/packages/react/ui/components/testPage/demos/core/MessageDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/ModalDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/ModalDemo.js +0 -61
- package/fe/packages/react/ui/components/testPage/demos/core/ModalDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/NotificationDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/NotificationDemo.js +0 -50
- package/fe/packages/react/ui/components/testPage/demos/core/NotificationDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/PaginationDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/PaginationDemo.js +0 -39
- package/fe/packages/react/ui/components/testPage/demos/core/PaginationDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/PreviewImageDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/PreviewImageDemo.js +0 -22
- package/fe/packages/react/ui/components/testPage/demos/core/PreviewImageDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/RadioDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/RadioDemo.js +0 -129
- package/fe/packages/react/ui/components/testPage/demos/core/RadioDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/SchemaFormDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/SchemaFormDemo.js +0 -52
- package/fe/packages/react/ui/components/testPage/demos/core/SchemaFormDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/SearchDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/SearchDemo.js +0 -52
- package/fe/packages/react/ui/components/testPage/demos/core/SearchDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/SelectDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/SelectDemo.js +0 -73
- package/fe/packages/react/ui/components/testPage/demos/core/SelectDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/SkeletonDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/SkeletonDemo.js +0 -46
- package/fe/packages/react/ui/components/testPage/demos/core/SkeletonDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/SwitchDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/SwitchDemo.js +0 -36
- package/fe/packages/react/ui/components/testPage/demos/core/SwitchDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/TableDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/TableDemo.js +0 -64
- package/fe/packages/react/ui/components/testPage/demos/core/TableDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/TableSearchDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/TableSearchDemo.js +0 -74
- package/fe/packages/react/ui/components/testPage/demos/core/TableSearchDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/TabsDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/TabsDemo.js +0 -56
- package/fe/packages/react/ui/components/testPage/demos/core/TabsDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/TextareaDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/TextareaDemo.js +0 -30
- package/fe/packages/react/ui/components/testPage/demos/core/TextareaDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/ThemeSwitcher.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/ThemeSwitcher.js +0 -96
- package/fe/packages/react/ui/components/testPage/demos/core/ThemeSwitcher2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/TooltipDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/TooltipDemo.js +0 -29
- package/fe/packages/react/ui/components/testPage/demos/core/TooltipDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/core/TreeSelectDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/core/TreeSelectDemo.js +0 -66
- package/fe/packages/react/ui/components/testPage/demos/core/TreeSelectDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/date/DateBasicDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/date/DateBasicDemo.js +0 -31
- package/fe/packages/react/ui/components/testPage/demos/date/DateBasicDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/date/DateControlledDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/date/DateControlledDemo.js +0 -67
- package/fe/packages/react/ui/components/testPage/demos/date/DateControlledDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/date/DateDisabledDateDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/date/DateDisabledDateDemo.js +0 -36
- package/fe/packages/react/ui/components/testPage/demos/date/DateDisabledDateDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/date/DateDisabledDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/date/DateDisabledDemo.js +0 -35
- package/fe/packages/react/ui/components/testPage/demos/date/DateDisabledDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/date/DateFormatDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/date/DateFormatDemo.js +0 -35
- package/fe/packages/react/ui/components/testPage/demos/date/DateFormatDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/date/DateRangeDemo.d.ts +0 -6
- package/fe/packages/react/ui/components/testPage/demos/date/DateRangeDemo.js +0 -76
- package/fe/packages/react/ui/components/testPage/demos/date/DateRangeDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/date/DateTimeDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/date/DateTimeDemo.js +0 -60
- package/fe/packages/react/ui/components/testPage/demos/date/DateTimeDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuAccordionDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuAccordionDemo.js +0 -78
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuAccordionDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuClickTriggerDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuClickTriggerDemo.js +0 -79
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuClickTriggerDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuCollapsedDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuCollapsedDemo.js +0 -82
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuCollapsedDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuCollapsedNoIconDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuCollapsedNoIconDemo.js +0 -44
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuCollapsedNoIconDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuJsxDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuJsxDemo.js +0 -64
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuJsxDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuLeftMultipleDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuLeftMultipleDemo.js +0 -81
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuLeftMultipleDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuPopupDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuPopupDemo.js +0 -56
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuPopupDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuStateDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuStateDemo.js +0 -67
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuStateDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuTopDemo.d.ts +0 -7
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuTopDemo.js +0 -55
- package/fe/packages/react/ui/components/testPage/demos/menu/MenuTopDemo2.js +0 -4
- package/fe/packages/react/ui/components/testPage/index.d.ts +0 -2
- package/fe/packages/react/ui/components/testPage/index.js +0 -45
- package/fe/packages/react/ui/components/testPage/types.d.ts +0 -17
- package/fe/packages/react/ui/lib/createStoreHook.js +0 -9
- package/fe/packages/react/ui/lib/export.d.ts +0 -21
- package/fe/packages/react/ui/lib/export.js +0 -112
- package/fe/packages/react/ui/lib/utils.d.ts +0 -9
- package/fe/packages/react/ui/lib/utils.js +0 -64
- package/fe/packages/react/ui/stores/breadcrumb.d.ts +0 -14
- package/fe/packages/react/ui/stores/breadcrumb.js +0 -52
- package/fe/packages/react/ui/stores/language.d.ts +0 -3
- package/fe/packages/react/ui/stores/language.js +0 -4
- package/models/packages/react/hooks/useBreadcrumb.d.ts +0 -9
- package/models/packages/react/hooks/useLanguage.d.ts +0 -1
- package/models/packages/react/ui/components/Button/SubmitButton.d.ts +0 -8
- package/models/packages/react/ui/components/DataTable/ActionBtn.d.ts +0 -7
- package/models/packages/react/ui/components/DataTable/index.d.ts +0 -32
- package/models/packages/react/ui/components/Date/dropdownPositioning.d.ts +0 -2
- package/models/packages/react/ui/components/Date/locales.d.ts +0 -30
- package/models/packages/react/ui/components/Dropdown/Dropdown.d.ts +0 -24
- package/models/packages/react/ui/components/Form/FormItem.d.ts +0 -19
- package/models/packages/react/ui/components/Form/SchemaForm/data.d.ts +0 -40
- package/models/packages/react/ui/components/Form/SchemaForm/index.d.ts +0 -60
- package/models/packages/react/ui/components/Form/index.d.ts +0 -4
- package/models/packages/react/ui/components/InputNumber/InputNumber.d.ts +0 -25
- package/models/packages/react/ui/components/Modal/ModalManager.d.ts +0 -46
- package/models/packages/react/ui/components/Popup/Popup.d.ts +0 -25
- package/models/packages/react/ui/components/Search/Search.d.ts +0 -13
- package/models/packages/react/ui/components/Select/dropdownPositioning.d.ts +0 -2
- package/models/packages/react/ui/components/TableSearch/TableSearch.d.ts +0 -30
- package/models/packages/react/ui/components/TableSearch/lang.d.ts +0 -16
- package/models/packages/react/ui/i18n/I18nProvider.d.ts +0 -12
- package/models/packages/react/ui/i18n/index.d.ts +0 -3
- package/models/packages/react/ui/index.d.ts +0 -4
- package/models/packages/react/ui/lib/export.d.ts +0 -21
- package/models/packages/react/ui/lib/utils.d.ts +0 -9
- package/models/packages/react/ui/stores/breadcrumb.d.ts +0 -14
- package/models/packages/react/ui/stores/language.d.ts +0 -3
- package/types/app/controller/base.d.ts +0 -12
- package/types/app/controller/project.d.ts +0 -22
- package/types/app/controller/ssr.d.ts +0 -14
- package/types/app/controller/view.d.ts +0 -8
- package/types/app/extends/generateErrorMessage.d.ts +0 -7
- package/types/app/extends/localCacheHtmlEtag.d.ts +0 -10
- package/types/app/extends/parsingParamsOnUrl.d.ts +0 -2
- package/types/app/extends/render-view.d.ts +0 -7
- package/types/app/middleware.d.ts +0 -3
- package/types/app/middlewares/api-params-verify.d.ts +0 -4
- package/types/app/middlewares/api-sign-verify.d.ts +0 -4
- package/types/app/middlewares/error-handle.d.ts +0 -4
- package/types/app/middlewares/project-handler.d.ts +0 -4
- package/types/app/middlewares/request-parameter-parsing.d.ts +0 -7
- package/types/app/router/project.d.ts +0 -4
- package/types/app/router/ssr.d.ts +0 -6
- package/types/app/router/view.d.ts +0 -3
- package/types/app/router-schema/project.d.ts +0 -3
- package/types/app/service/base.d.ts +0 -9
- package/types/app/service/project.d.ts +0 -57
- package/types/app/type.d.ts +0 -35
- package/types/app/typings.d.ts +0 -50
- package/types/packages/core/env.d.ts +0 -15
- package/types/packages/core/loader/config.d.ts +0 -9
- package/types/packages/core/loader/controller.d.ts +0 -17
- package/types/packages/core/loader/extend.d.ts +0 -8
- package/types/packages/core/loader/merge.d.ts +0 -3
- package/types/packages/core/loader/middleware.d.ts +0 -11
- package/types/packages/core/loader/router-schema.d.ts +0 -18
- package/types/packages/core/loader/router.d.ts +0 -8
- package/types/packages/core/loader/service.d.ts +0 -17
- package/types/packages/core/types.d.ts +0 -158
- /package/cjs/app/{type.js → ai/agent/agent-run.dto.js} +0 -0
- /package/cjs/app/{typings.js → ai/agent/agent.interface.js} +0 -0
- /package/{fe/packages/react/ui/types → cjs/app/ai/contracts}/index.js +0 -0
- /package/cjs/{packages/core/types.js → app/ai/guardrail/guardrail.interface.js} +0 -0
- /package/{esm/app/type.js → cjs/app/ai/skill/skill.interface.js} +0 -0
- /package/{esm/app/typings.js → cjs/app/ai/tool/tool.interface.js} +0 -0
- /package/{esm/packages/core → cjs/app/ssr}/types.js +0 -0
- /package/{fe/packages/react/ui/components/Menu/menuTypes.js → esm/app/ai/agent/agent-run.dto.js} +0 -0
- /package/{fe/packages/react/ui/components/testPage/types.js → esm/app/ai/agent/agent.interface.js} +0 -0
- /package/fe/packages/react/{ui/assets → assets}/table/no-result.svg +0 -0
- /package/fe/packages/react/{ui/components → core}/Button/Button.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/Button/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/Card/Card.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/Card/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/Checkbox/Checkbox.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/Checkbox/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/Label/Label.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/Label/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/Layout/Layout.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/Layout/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/Loading/Loading.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/Loading/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/Skeleton/Skeleton.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/Skeleton/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/breadcrumb/breadcrumb.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/breadcrumb/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/hooks/useDropdownPositioning.d.ts +0 -0
- /package/fe/packages/react/{hooks → core/hooks}/useExecuteOnce.d.ts +0 -0
- /package/fe/packages/react/{hooks → core/hooks}/useInit.d.ts +0 -0
- /package/fe/packages/react/{ui/components → core}/hooks/useInputController.d.ts +0 -0
- /package/fe/packages/react/{hooks → core/hooks}/usePagination.d.ts +0 -0
- /package/fe/packages/react/{hooks → core/hooks}/useRefState.d.ts +0 -0
- /package/fe/packages/react/{hooks → core/hooks}/useSSR.d.ts +0 -0
- /package/fe/packages/react/{hooks → core/hooks}/useWatch.d.ts +0 -0
- /package/fe/packages/react/{ui → core}/lib/createStoreHook.d.ts +0 -0
- /package/fe/packages/react/{ui/components/DataTable → core/lib}/dataTableWidth.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/core}/types/baseType.d.ts +0 -0
- /package/fe/packages/react/{ui → core}/types/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components/testPage → dev/preview}/MenuTestPage.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Date/Calendar.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Date/Date.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Date/LocaleContext.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Date/LocaleProvider.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Date/TimePicker.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Date/data.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Date/dateLocaleStore.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Date/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Form/Form.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Form/SchemaForm/defaultComponentsMap.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Form/useForm.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Form/useForm.js +0 -0
- /package/fe/packages/react/{ui/components → forms}/Input/Input.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Input/index.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/InputNumber/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/InputNumber/inputNumberUtils.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Pagination/Pagination.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Pagination/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Radio/Radio.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Radio/RadioGroup.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Radio/index.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Search/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Select/Select.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Select/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Switch/Switch.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Switch/index.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/TableSearch/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/TableSearch/tableSearchLocaleStore.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Textarea/Textarea.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Textarea/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/TreeSelect/TreeSelect.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/TreeSelect/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Upload/ImageUpload.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/Upload/Upload.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/Upload/index.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/forms}/table/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → forms}/table/table.d.ts +0 -0
- /package/fe/packages/react/{ui/components/ConfirmDialog → overlays/Dialog}/ConfirmDialog.d.ts +0 -0
- /package/{models/packages/react/ui/components/ConfirmDialog → fe/packages/react/overlays/Dialog}/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → overlays}/Drawer/Drawer.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Drawer/index.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Dropdown/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components/Menu → overlays/DropdownMenu}/Menu.d.ts +0 -0
- /package/fe/packages/react/{ui/components/Menu → overlays/DropdownMenu}/MenuContext.d.ts +0 -0
- /package/fe/packages/react/{ui/components/Menu → overlays/DropdownMenu}/MenuItem.d.ts +0 -0
- /package/fe/packages/react/{ui/components/Menu → overlays/DropdownMenu}/SubMenu.d.ts +0 -0
- /package/{models/packages/react/ui/components/Menu → fe/packages/react/overlays/DropdownMenu}/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components/Menu → overlays/DropdownMenu}/menuTypes.d.ts +0 -0
- /package/fe/packages/react/{ui/components/Menu → overlays/DropdownMenu}/utils.d.ts +0 -0
- /package/fe/packages/react/{ui/components → overlays}/Message/Message.d.ts +0 -0
- /package/fe/packages/react/{ui/components → overlays}/Message/MessageManager.d.ts +0 -0
- /package/fe/packages/react/{ui/components → overlays}/Message/data.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Message/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → overlays}/Modal/Modal.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Modal/index.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Overlay/Overlay.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Overlay/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components/Notification → overlays/Popover}/Notification.d.ts +0 -0
- /package/{models/packages/react/ui/components/Notification → fe/packages/react/overlays/Popover}/index.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Popup/index.d.ts +0 -0
- /package/fe/packages/react/{ui/components → overlays}/Tooltip/Tooltip.d.ts +0 -0
- /package/{models/packages/react/ui/components → fe/packages/react/overlays}/Tooltip/index.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/Button/Button.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/Card/Card.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/Checkbox/Checkbox.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/Label/Label.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/Layout/Layout.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/Loading/Loading.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/Skeleton/Skeleton.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/breadcrumb/breadcrumb.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/hooks/useDropdownPositioning.d.ts +0 -0
- /package/models/packages/react/{hooks → core/hooks}/useExecuteOnce.d.ts +0 -0
- /package/models/packages/react/{ui/components → core}/hooks/useInputController.d.ts +0 -0
- /package/models/packages/react/{ui → core}/lib/createStoreHook.d.ts +0 -0
- /package/models/packages/react/{ui/components/DataTable → core/lib}/dataTableWidth.d.ts +0 -0
- /package/models/packages/react/{ui → core}/types/index.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Date/Calendar.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Date/Date.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Date/LocaleContext.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Date/LocaleProvider.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Date/TimePicker.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Date/data.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Date/dateLocaleStore.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Form/Form.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Form/useForm.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Input/Input.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/InputNumber/inputNumberUtils.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Pagination/Pagination.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Radio/Radio.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Radio/RadioGroup.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Select/Select.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Switch/Switch.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/TableSearch/tableSearchLocaleStore.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Textarea/Textarea.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/TreeSelect/TreeSelect.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Upload/ImageUpload.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/Upload/Upload.d.ts +0 -0
- /package/models/packages/react/{ui/components → forms}/table/table.d.ts +0 -0
- /package/models/packages/react/{ui/components/ConfirmDialog → overlays/Dialog}/ConfirmDialog.d.ts +0 -0
- /package/models/packages/react/{ui/components → overlays}/Drawer/Drawer.d.ts +0 -0
- /package/models/packages/react/{ui/components/Menu → overlays/DropdownMenu}/Menu.d.ts +0 -0
- /package/models/packages/react/{ui/components/Menu → overlays/DropdownMenu}/MenuContext.d.ts +0 -0
- /package/models/packages/react/{ui/components/Menu → overlays/DropdownMenu}/MenuItem.d.ts +0 -0
- /package/models/packages/react/{ui/components/Menu → overlays/DropdownMenu}/SubMenu.d.ts +0 -0
- /package/models/packages/react/{ui/components/Menu → overlays/DropdownMenu}/menuTypes.d.ts +0 -0
- /package/models/packages/react/{ui/components/Menu → overlays/DropdownMenu}/utils.d.ts +0 -0
- /package/models/packages/react/{ui/components → overlays}/Message/Message.d.ts +0 -0
- /package/models/packages/react/{ui/components → overlays}/Message/MessageManager.d.ts +0 -0
- /package/models/packages/react/{ui/components → overlays}/Message/data.d.ts +0 -0
- /package/models/packages/react/{ui/components → overlays}/Modal/Modal.d.ts +0 -0
- /package/models/packages/react/{ui/components/Notification → overlays/Popover}/Notification.d.ts +0 -0
- /package/models/packages/react/{ui/components → overlays}/Tooltip/Tooltip.d.ts +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from "react";
|
|
2
|
-
//#region packages/react/hooks/useWatch.ts
|
|
3
|
-
var identityCompare = (value, prevValue) => Object.is(value, prevValue);
|
|
4
|
-
var shallowCompare = (value, prevValue) => {
|
|
5
|
-
if (Object.is(value, prevValue)) return true;
|
|
6
|
-
if (Array.isArray(value) && Array.isArray(prevValue)) {
|
|
7
|
-
if (value.length !== prevValue.length) return false;
|
|
8
|
-
return value.every((item, index) => Object.is(item, prevValue[index]));
|
|
9
|
-
}
|
|
10
|
-
if (value && prevValue && typeof value === "object" && typeof prevValue === "object") {
|
|
11
|
-
const valuePrototype = Object.getPrototypeOf(value);
|
|
12
|
-
if (valuePrototype !== Object.getPrototypeOf(prevValue) || valuePrototype !== Object.prototype && valuePrototype !== null) return false;
|
|
13
|
-
const valueKeys = Object.keys(value);
|
|
14
|
-
const prevValueKeys = Object.keys(prevValue);
|
|
15
|
-
if (valueKeys.length !== prevValueKeys.length) return false;
|
|
16
|
-
return valueKeys.every((key) => Object.prototype.hasOwnProperty.call(prevValue, key) && Object.is(value[key], prevValue[key]));
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
19
|
-
};
|
|
20
|
-
var defaultCompare = (value, prevValue) => {
|
|
21
|
-
if (Array.isArray(value) && Array.isArray(prevValue)) return shallowCompare(value, prevValue);
|
|
22
|
-
return identityCompare(value, prevValue);
|
|
23
|
-
};
|
|
24
|
-
var getCompare = (compare) => {
|
|
25
|
-
if (compare === "identity") return identityCompare;
|
|
26
|
-
if (compare === "shallow") return shallowCompare;
|
|
27
|
-
return compare ?? defaultCompare;
|
|
28
|
-
};
|
|
29
|
-
var useStableWatchValue = (value, compare) => {
|
|
30
|
-
const valueRef = useRef(value);
|
|
31
|
-
if (!compare(value, valueRef.current)) valueRef.current = value;
|
|
32
|
-
return valueRef.current;
|
|
33
|
-
};
|
|
34
|
-
function useWatch(source, selectorOrCallback, callbackOrOptions, options) {
|
|
35
|
-
const hasSelector = typeof callbackOrOptions === "function";
|
|
36
|
-
const selector = hasSelector ? selectorOrCallback : null;
|
|
37
|
-
const callback = hasSelector ? callbackOrOptions : selectorOrCallback;
|
|
38
|
-
const watchOptions = hasSelector ? options : callbackOrOptions;
|
|
39
|
-
const stableValue = useStableWatchValue(selector ? selector(source) : source, getCompare(watchOptions?.compare));
|
|
40
|
-
const isInit = useRef(false);
|
|
41
|
-
const valueRef = useRef(stableValue);
|
|
42
|
-
const callbackRef = useRef(callback);
|
|
43
|
-
const optionsRef = useRef(watchOptions);
|
|
44
|
-
callbackRef.current = callback;
|
|
45
|
-
optionsRef.current = watchOptions;
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (!isInit.current) {
|
|
48
|
-
isInit.current = true;
|
|
49
|
-
valueRef.current = stableValue;
|
|
50
|
-
if (optionsRef.current?.immediate) return callbackRef.current(stableValue, void 0);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const prevValue = valueRef.current;
|
|
54
|
-
if (Object.is(stableValue, prevValue)) return;
|
|
55
|
-
valueRef.current = stableValue;
|
|
56
|
-
return callbackRef.current(stableValue, prevValue);
|
|
57
|
-
}, [stableValue]);
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
export { useWatch as default, useWatch, defaultCompare, identityCompare, shallowCompare };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { cn } from "../../lib/utils.js";
|
|
2
|
-
import { LoadingIndicator } from "../Loading/Loading.js";
|
|
3
|
-
import "../Loading/index.js";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
//#region packages/react/ui/components/Button/Button.tsx
|
|
7
|
-
var Button = forwardRef((props, ref) => {
|
|
8
|
-
const { className, size = "md", state, disabled: disabledProp, loading: loadingProp, leftIcon, rightIcon, noUnderline, children } = props;
|
|
9
|
-
const variant = props.variant ?? "default";
|
|
10
|
-
const danger = state === "danger";
|
|
11
|
-
const ghost = state === "ghost";
|
|
12
|
-
const loading = loadingProp;
|
|
13
|
-
const disabled = disabledProp;
|
|
14
|
-
const isDisabled = disabled || loading;
|
|
15
|
-
const baseStyles = "inline-flex items-center justify-center rounded-lg font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 cursor-pointer";
|
|
16
|
-
const getVariantStyles = () => {
|
|
17
|
-
if (variant === "text" || variant === "link") return danger ? "bg-transparent border-0 text-destructive focus-visible:ring-destructive" : "bg-transparent border-0 text-foreground focus-visible:ring-border";
|
|
18
|
-
const ghostStyles = ghost && "bg-transparent hover:bg-transparent";
|
|
19
|
-
if (danger) {
|
|
20
|
-
if (variant === "primary") return cn(ghost ? "border border-destructive text-destructive focus-visible:ring-destructive" : "bg-destructive text-destructive-foreground border border-destructive hover:bg-destructive/90 focus-visible:ring-destructive", ghostStyles);
|
|
21
|
-
return cn(ghost ? "text-destructive" : "bg-background text-destructive hover:bg-destructive/10", variant === "dashed" ? "border border-dashed" : "border", "border-destructive focus-visible:ring-destructive", ghostStyles);
|
|
22
|
-
}
|
|
23
|
-
return cn({
|
|
24
|
-
default: "bg-background border border-border text-foreground hover:bg-muted/50 focus-visible:ring-border",
|
|
25
|
-
primary: "bg-theme text-theme-foreground border border-theme hover:bg-theme/90 focus-visible:ring-theme",
|
|
26
|
-
dashed: "bg-background border border-dashed border-border text-foreground hover:bg-muted/50 focus-visible:ring-border",
|
|
27
|
-
text: "bg-transparent border-0 text-foreground focus-visible:ring-border"
|
|
28
|
-
}[variant], ghostStyles);
|
|
29
|
-
};
|
|
30
|
-
const disabledStyles = "disabled:bg-background/60 disabled:border-border/60 disabled:text-foreground/40 disabled:hover:bg-background/60 aria-disabled:text-foreground/40 aria-disabled:hover:bg-transparent";
|
|
31
|
-
const sizeStyles = {
|
|
32
|
-
sm: "h-8 px-3 text-sm",
|
|
33
|
-
md: "h-10 px-4 text-sm",
|
|
34
|
-
lg: "h-12 px-6 text-base"
|
|
35
|
-
};
|
|
36
|
-
const contents = [
|
|
37
|
-
loading ? /* @__PURE__ */ jsx("span", {
|
|
38
|
-
className: cn("flex items-center", children && "mr-2"),
|
|
39
|
-
children: /* @__PURE__ */ jsx(LoadingIndicator, {
|
|
40
|
-
size: "sm",
|
|
41
|
-
className: cn("text-current", {
|
|
42
|
-
sm: "h-3 w-3",
|
|
43
|
-
md: "h-4 w-4",
|
|
44
|
-
lg: "h-5 w-5"
|
|
45
|
-
}[size])
|
|
46
|
-
})
|
|
47
|
-
}, "loading") : null,
|
|
48
|
-
!loading && leftIcon && /* @__PURE__ */ jsx("span", {
|
|
49
|
-
className: cn("flex items-center", "mr-2"),
|
|
50
|
-
children: leftIcon
|
|
51
|
-
}, "left"),
|
|
52
|
-
children,
|
|
53
|
-
rightIcon ? /* @__PURE__ */ jsx("span", {
|
|
54
|
-
className: cn("flex items-center", "ml-2"),
|
|
55
|
-
children: rightIcon
|
|
56
|
-
}, "right") : void 0
|
|
57
|
-
].filter(Boolean);
|
|
58
|
-
const buttonClassName = cn("tc-ui-button", baseStyles, getVariantStyles(), disabledStyles, ["text", "link"].includes(variant) ? "h-auto px-0 py-0 text-sm font-normal" : sizeStyles[size], ["text", "link"].includes(variant) ? "" : "before:content-normal", variant === "link" && !noUnderline && "hover:underline", variant === "link" && !noUnderline && "aria-disabled:hover:no-underline", disabled && !loading && "cursor-not-allowed", loading && "cursor-wait", className);
|
|
59
|
-
if (props.variant === "link") {
|
|
60
|
-
const { className: _className, variant: _variant, size: _size, state: _state, disabled: _disabled, loading: _loading, leftIcon: _leftIcon, rightIcon: _rightIcon, noUnderline: _noUnderline, children: _children, onClick, tabIndex, ...anchorProps } = props;
|
|
61
|
-
return /* @__PURE__ */ jsx("a", {
|
|
62
|
-
ref,
|
|
63
|
-
className: buttonClassName,
|
|
64
|
-
"aria-disabled": isDisabled || void 0,
|
|
65
|
-
tabIndex: isDisabled ? -1 : tabIndex,
|
|
66
|
-
onClick: (event) => {
|
|
67
|
-
if (isDisabled) {
|
|
68
|
-
event.preventDefault();
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
onClick?.(event);
|
|
72
|
-
},
|
|
73
|
-
...anchorProps,
|
|
74
|
-
children: contents
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
const { className: _className, variant: _variant, size: _size, state: _state, disabled: _disabled, loading: _loading, leftIcon: _leftIcon, rightIcon: _rightIcon, noUnderline: _noUnderline, children: _children, ...buttonProps } = props;
|
|
78
|
-
return /* @__PURE__ */ jsx("button", {
|
|
79
|
-
ref,
|
|
80
|
-
className: buttonClassName,
|
|
81
|
-
disabled: isDisabled,
|
|
82
|
-
...buttonProps,
|
|
83
|
-
children: contents
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
Button.displayName = "Button";
|
|
87
|
-
//#endregion
|
|
88
|
-
export { Button };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { MOmit } from "../../types/index";
|
|
2
|
-
import { type ButtonElementProps } from "./Button";
|
|
3
|
-
export type SubmitButtonProps = MOmit<ButtonElementProps, 'onClick'> & {
|
|
4
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void | boolean> | void;
|
|
5
|
-
};
|
|
6
|
-
declare const SubmitButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare const AsynchronousButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { AsynchronousButton, SubmitButton };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { cn } from "../../lib/utils.js";
|
|
2
|
-
import { Button } from "./Button.js";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
//#region packages/react/ui/components/Button/SubmitButton.tsx
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* 会自动添加loading 其余同button一致
|
|
9
|
-
*/
|
|
10
|
-
var SubmitButton = (props) => {
|
|
11
|
-
const { onClick, className, loading: loadingProp, ...bprops } = props;
|
|
12
|
-
const [loading, uLoading] = useState(false);
|
|
13
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
14
|
-
className: cn("tc-ui-submit-button", className),
|
|
15
|
-
loading: loading || loadingProp,
|
|
16
|
-
onClick: async (e) => {
|
|
17
|
-
if (loading) return;
|
|
18
|
-
uLoading(true);
|
|
19
|
-
try {
|
|
20
|
-
return await onClick?.(e);
|
|
21
|
-
} finally {
|
|
22
|
-
uLoading(false);
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
...bprops
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
var AsynchronousButton = SubmitButton;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { AsynchronousButton, SubmitButton };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { cn } from "../../lib/utils.js";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
//#region packages/react/ui/components/Card/Card.tsx
|
|
5
|
-
var Card = forwardRef(({ header, footer, children, className, hoverable = true }, ref) => {
|
|
6
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
7
|
-
ref,
|
|
8
|
-
className: cn("tc-ui-card rounded-xl border border-border/60 bg-card text-card-foreground", "shadow-[inset_0_1px_0_hsl(var(--foreground)/0.04)]", hoverable && [
|
|
9
|
-
"transition-[transform,box-shadow,border-color] duration-200 ease-out",
|
|
10
|
-
"hover:-translate-y-0.5 hover:border-border/80",
|
|
11
|
-
"hover:shadow-[var(--shadow-panel),inset_0_1px_0_hsl(var(--foreground)/0.06)]"
|
|
12
|
-
], className),
|
|
13
|
-
children: [
|
|
14
|
-
header && /* @__PURE__ */ jsx("div", {
|
|
15
|
-
className: "tc-ui-card-header border-b border-border/50 px-4 py-3 text-sm font-medium",
|
|
16
|
-
children: header
|
|
17
|
-
}),
|
|
18
|
-
/* @__PURE__ */ jsx("div", {
|
|
19
|
-
className: "tc-ui-card-body px-4 py-4",
|
|
20
|
-
children
|
|
21
|
-
}),
|
|
22
|
-
footer && /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className: "tc-ui-card-footer border-t border-border/50 px-4 py-3",
|
|
24
|
-
children: footer
|
|
25
|
-
})
|
|
26
|
-
]
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
Card.displayName = "Card";
|
|
30
|
-
//#endregion
|
|
31
|
-
export { Card };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { cn } from "../../lib/utils.js";
|
|
2
|
-
import { forwardRef, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { Check, Minus } from "lucide-react";
|
|
5
|
-
//#region packages/react/ui/components/Checkbox/Checkbox.tsx
|
|
6
|
-
var Checkbox = forwardRef(({ className, checked: _controlledChecked, value, defaultChecked, indeterminate, onChange, disabled, ...props }, ref) => {
|
|
7
|
-
const internalRef = useRef(null);
|
|
8
|
-
const controlledChecked = value ?? _controlledChecked;
|
|
9
|
-
const setRefs = (element) => {
|
|
10
|
-
internalRef.current = element;
|
|
11
|
-
if (typeof ref === "function") ref(element);
|
|
12
|
-
else if (ref) ref.current = element;
|
|
13
|
-
if (element) element.indeterminate = indeterminate ?? false;
|
|
14
|
-
};
|
|
15
|
-
useLayoutEffect(() => {
|
|
16
|
-
if (internalRef.current) internalRef.current.indeterminate = indeterminate ?? false;
|
|
17
|
-
}, [indeterminate]);
|
|
18
|
-
const isControlled = controlledChecked !== void 0;
|
|
19
|
-
const [internalChecked, setInternalChecked] = useState(defaultChecked ?? false);
|
|
20
|
-
const checked = isControlled ? controlledChecked : internalChecked;
|
|
21
|
-
const showChecked = checked && !indeterminate;
|
|
22
|
-
const handleChange = (e) => {
|
|
23
|
-
const newChecked = e.target.checked;
|
|
24
|
-
if (!isControlled) setInternalChecked(newChecked);
|
|
25
|
-
onChange?.(newChecked, e);
|
|
26
|
-
};
|
|
27
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
28
|
-
className: cn("tc-ui-checkbox relative inline-flex h-4 w-4 shrink-0", className),
|
|
29
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
30
|
-
type: "checkbox",
|
|
31
|
-
ref: setRefs,
|
|
32
|
-
checked,
|
|
33
|
-
disabled,
|
|
34
|
-
onChange: handleChange,
|
|
35
|
-
className: cn("peer absolute inset-0 z-10 m-0 h-full w-full appearance-none rounded opacity-0", disabled ? "cursor-not-allowed" : "cursor-pointer"),
|
|
36
|
-
...props
|
|
37
|
-
}), /* @__PURE__ */ jsxs("span", {
|
|
38
|
-
"aria-hidden": "true",
|
|
39
|
-
className: cn("pointer-events-none flex h-full w-full items-center justify-center rounded border transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background", (showChecked || indeterminate) && "border-theme bg-theme text-theme-foreground", !showChecked && !indeterminate && "border-border bg-background text-theme", disabled && "opacity-60"),
|
|
40
|
-
children: [showChecked && /* @__PURE__ */ jsx(Check, {
|
|
41
|
-
className: "h-3 w-3",
|
|
42
|
-
strokeWidth: 3
|
|
43
|
-
}), indeterminate && /* @__PURE__ */ jsx(Minus, {
|
|
44
|
-
className: "h-3 w-3",
|
|
45
|
-
strokeWidth: 3
|
|
46
|
-
})]
|
|
47
|
-
})]
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
Checkbox.displayName = "Checkbox";
|
|
51
|
-
//#endregion
|
|
52
|
-
export { Checkbox };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { useI18n } from "../../i18n/useI18n.js";
|
|
2
|
-
import "../../i18n/index.js";
|
|
3
|
-
import { Button } from "../Button/Button.js";
|
|
4
|
-
import "../Button/index.js";
|
|
5
|
-
import { Modal } from "../Modal/Modal.js";
|
|
6
|
-
import "../Modal/index.js";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
//#region packages/react/ui/components/ConfirmDialog/ConfirmDialog.tsx
|
|
9
|
-
function ConfirmDialog({ open, title, content, okText, cancelText, loading = false, onOk, onCancel }) {
|
|
10
|
-
const t = useI18n();
|
|
11
|
-
const handleOk = async () => {
|
|
12
|
-
await onOk();
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ jsx(Modal, {
|
|
15
|
-
open,
|
|
16
|
-
onClose: onCancel,
|
|
17
|
-
title: title ?? t("components.confirmDialog.title"),
|
|
18
|
-
width: 450,
|
|
19
|
-
className: "tc-ui-confirm-dialog",
|
|
20
|
-
footer: /* @__PURE__ */ jsxs("div", {
|
|
21
|
-
className: "flex justify-end gap-3",
|
|
22
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
23
|
-
onClick: onCancel,
|
|
24
|
-
className: "min-w-[100px] bg-background border-[hsl(var(--theme-primary))] text-[hsl(var(--theme-primary))] hover:bg-[hsl(var(--theme-primary))]/5",
|
|
25
|
-
children: cancelText ?? t("components.confirmDialog.cancelText")
|
|
26
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
27
|
-
variant: "primary",
|
|
28
|
-
loading,
|
|
29
|
-
onClick: handleOk,
|
|
30
|
-
className: "min-w-[100px] bg-[hsl(var(--theme-primary))] hover:bg-[hsl(var(--theme-primary))]/90 border-[hsl(var(--theme-primary))] text-[hsl(var(--theme-primary-foreground))]",
|
|
31
|
-
children: okText ?? t("components.confirmDialog.okText")
|
|
32
|
-
})]
|
|
33
|
-
}),
|
|
34
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
35
|
-
className: "py-4 text-base text-foreground",
|
|
36
|
-
children: content
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { ConfirmDialog };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type DropdownItem } from "../Dropdown";
|
|
2
|
-
export type ActionOverflow = 'auto' | 'dropdown' | 'inline';
|
|
3
|
-
export interface ActionBtnProps {
|
|
4
|
-
actions: DropdownItem[];
|
|
5
|
-
overflow?: ActionOverflow;
|
|
6
|
-
}
|
|
7
|
-
export declare const ActionBtn: ({ actions, overflow }: ActionBtnProps) => import("react/jsx-runtime").JSX.Element | "-";
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { cn } from "../../lib/utils.js";
|
|
2
|
-
import { Button } from "../Button/Button.js";
|
|
3
|
-
import "../Button/index.js";
|
|
4
|
-
import { Dropdown } from "../Dropdown/Dropdown.js";
|
|
5
|
-
import "../Dropdown/index.js";
|
|
6
|
-
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
7
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { MoreHorizontal } from "lucide-react";
|
|
9
|
-
//#region packages/react/ui/components/DataTable/ActionBtn.tsx
|
|
10
|
-
var isInlineAction = (action) => !("render" in action);
|
|
11
|
-
var renderActionLabel = (action) => /* @__PURE__ */ jsxs(Fragment$1, { children: [action.icon && /* @__PURE__ */ jsx("span", {
|
|
12
|
-
className: "flex-shrink-0",
|
|
13
|
-
children: action.icon
|
|
14
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
15
|
-
className: "truncate",
|
|
16
|
-
children: action.label
|
|
17
|
-
})] });
|
|
18
|
-
var canShowInlineActions = (actions) => actions.every(isInlineAction);
|
|
19
|
-
var InlineActions = ({ actions }) => /* @__PURE__ */ jsx("div", {
|
|
20
|
-
className: "tc-ui-action-btn-list inline-flex max-w-full items-center justify-center gap-1 whitespace-nowrap",
|
|
21
|
-
children: actions.map((action) => isInlineAction(action) ? /* @__PURE__ */ jsx(Button, {
|
|
22
|
-
type: "button",
|
|
23
|
-
onClick: action.onClick,
|
|
24
|
-
className: cn("tc-ui-action-btn inline-flex h-8 max-w-full items-center justify-center gap-1 rounded px-2 text-sm transition-colors", action.danger ? "text-destructive hover:bg-destructive/10" : "text-table-action-text hover:bg-background/60"),
|
|
25
|
-
children: renderActionLabel(action)
|
|
26
|
-
}, action.key) : null)
|
|
27
|
-
});
|
|
28
|
-
var DropdownActions = ({ actions }) => /* @__PURE__ */ jsx(Dropdown, {
|
|
29
|
-
items: actions,
|
|
30
|
-
placement: "bottom-end",
|
|
31
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
32
|
-
type: "button",
|
|
33
|
-
state: "ghost",
|
|
34
|
-
variant: "text",
|
|
35
|
-
"aria-label": "More actions",
|
|
36
|
-
className: "inline-flex h-8 w-8 items-center justify-center rounded-md text-table-action-text transition-colors hover:bg-background/60 focus-visible:ring-border",
|
|
37
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-5 w-5 opacity-70" })
|
|
38
|
-
})
|
|
39
|
-
});
|
|
40
|
-
var AutoActionBtn = ({ actions }) => {
|
|
41
|
-
const containerRef = useRef(null);
|
|
42
|
-
const measureRef = useRef(null);
|
|
43
|
-
const [canShowInline, setCanShowInline] = useState(false);
|
|
44
|
-
const updateOverflow = useCallback(() => {
|
|
45
|
-
const container = containerRef.current;
|
|
46
|
-
const measure = measureRef.current;
|
|
47
|
-
if (!container || !measure) {
|
|
48
|
-
setCanShowInline(false);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const containerWidth = container.clientWidth;
|
|
52
|
-
const actionsWidth = measure.scrollWidth;
|
|
53
|
-
setCanShowInline(containerWidth > 0 && actionsWidth <= containerWidth);
|
|
54
|
-
}, []);
|
|
55
|
-
useLayoutEffect(() => {
|
|
56
|
-
if (!canShowInlineActions(actions)) return;
|
|
57
|
-
if (actions.length <= 1) return;
|
|
58
|
-
updateOverflow();
|
|
59
|
-
let rafId = 0;
|
|
60
|
-
const scheduleUpdate = () => {
|
|
61
|
-
cancelAnimationFrame(rafId);
|
|
62
|
-
rafId = requestAnimationFrame(updateOverflow);
|
|
63
|
-
};
|
|
64
|
-
if (typeof ResizeObserver === "undefined") {
|
|
65
|
-
window.addEventListener("resize", scheduleUpdate);
|
|
66
|
-
return () => {
|
|
67
|
-
cancelAnimationFrame(rafId);
|
|
68
|
-
window.removeEventListener("resize", scheduleUpdate);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
const observer = new ResizeObserver(scheduleUpdate);
|
|
72
|
-
if (containerRef.current) observer.observe(containerRef.current);
|
|
73
|
-
if (measureRef.current) observer.observe(measureRef.current);
|
|
74
|
-
window.addEventListener("resize", scheduleUpdate);
|
|
75
|
-
return () => {
|
|
76
|
-
cancelAnimationFrame(rafId);
|
|
77
|
-
observer.disconnect();
|
|
78
|
-
window.removeEventListener("resize", scheduleUpdate);
|
|
79
|
-
};
|
|
80
|
-
}, [actions, updateOverflow]);
|
|
81
|
-
if (actions.length === 0) return "-";
|
|
82
|
-
if (actions.length === 1) {
|
|
83
|
-
if (!canShowInlineActions(actions)) return /* @__PURE__ */ jsx(DropdownActions, { actions });
|
|
84
|
-
return /* @__PURE__ */ jsx(InlineActions, { actions });
|
|
85
|
-
}
|
|
86
|
-
if (!canShowInlineActions(actions)) return /* @__PURE__ */ jsx(DropdownActions, { actions });
|
|
87
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
88
|
-
ref: containerRef,
|
|
89
|
-
className: "relative w-full min-w-0",
|
|
90
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
91
|
-
ref: measureRef,
|
|
92
|
-
"aria-hidden": "true",
|
|
93
|
-
className: "pointer-events-none invisible absolute left-0 top-0 w-max max-w-none",
|
|
94
|
-
children: /* @__PURE__ */ jsx(InlineActions, { actions })
|
|
95
|
-
}), canShowInline ? /* @__PURE__ */ jsx(InlineActions, { actions }) : /* @__PURE__ */ jsx(DropdownActions, { actions })]
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
var ActionBtn = ({ actions, overflow }) => {
|
|
99
|
-
if (overflow === "dropdown") return actions.length === 0 ? "-" : /* @__PURE__ */ jsx(DropdownActions, { actions });
|
|
100
|
-
if (overflow === "auto") return /* @__PURE__ */ jsx(AutoActionBtn, { actions });
|
|
101
|
-
if (actions.length === 0) return "-";
|
|
102
|
-
if (overflow === "inline") return canShowInlineActions(actions) ? /* @__PURE__ */ jsx(InlineActions, { actions }) : /* @__PURE__ */ jsx(DropdownActions, { actions });
|
|
103
|
-
if (actions.length === 1) {
|
|
104
|
-
const action = actions[0];
|
|
105
|
-
if (!isInlineAction(action)) return /* @__PURE__ */ jsx(DropdownActions, { actions });
|
|
106
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
107
|
-
type: "button",
|
|
108
|
-
onClick: action.onClick,
|
|
109
|
-
className: "tc-ui-action-btn inline-flex items-center justify-center w-8 h-8 rounded transition-colors",
|
|
110
|
-
children: action.label
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
return /* @__PURE__ */ jsx(DropdownActions, { actions });
|
|
114
|
-
};
|
|
115
|
-
//#endregion
|
|
116
|
-
export { ActionBtn };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region packages/react/ui/components/DataTable/dataTableWidth.ts
|
|
2
|
-
var numericWidthPattern = /^-?(?:\d+|\d*\.\d+)$/;
|
|
3
|
-
var hasWidthValue = (value) => value !== void 0 && value !== null && value !== "";
|
|
4
|
-
var normalizeTableWidth = (value) => {
|
|
5
|
-
if (!hasWidthValue(value)) return;
|
|
6
|
-
if (typeof value === "number") return Number.isFinite(value) ? `${value}px` : void 0;
|
|
7
|
-
const trimmed = value.trim();
|
|
8
|
-
if (trimmed === "") return;
|
|
9
|
-
return numericWidthPattern.test(trimmed) ? `${trimmed}px` : trimmed;
|
|
10
|
-
};
|
|
11
|
-
var hasExplicitWidth = (value) => value !== void 0 && value !== null && value !== "";
|
|
12
|
-
var getDataTableColumnWidth = (column, defaultColumnWidth, actionColumnWidth = 96) => {
|
|
13
|
-
const hasAction = column.isAction ?? column.key === "action";
|
|
14
|
-
return normalizeTableWidth(hasExplicitWidth(column.width) ? column.width : hasAction ? actionColumnWidth : defaultColumnWidth) ?? "0px";
|
|
15
|
-
};
|
|
16
|
-
var getDataTableColumnStyle = (column, defaultColumnWidth, actionColumnWidth = 96) => {
|
|
17
|
-
const hasAction = column.isAction ?? column.key === "action";
|
|
18
|
-
if (hasExplicitWidth(column.width) || hasAction) {
|
|
19
|
-
const width = getDataTableColumnWidth(column, defaultColumnWidth, actionColumnWidth);
|
|
20
|
-
return {
|
|
21
|
-
width,
|
|
22
|
-
minWidth: width
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
return { minWidth: normalizeTableWidth(defaultColumnWidth) ?? "0px" };
|
|
26
|
-
};
|
|
27
|
-
var getDataTableFixedOffset = (widths) => {
|
|
28
|
-
if (widths.length === 0) return "0px";
|
|
29
|
-
if (widths.length === 1) return widths[0];
|
|
30
|
-
return `calc(${widths.join(" + ")})`;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
export { getDataTableColumnStyle, getDataTableColumnWidth, getDataTableFixedOffset, normalizeTableWidth };
|