@dckj-npm/lowcode-code-generator 1.2.23 → 1.2.24
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/CHANGELOG.md +280 -280
- package/CONTRIBUTING.md +40 -40
- package/README.md +123 -123
- package/bin/lowcode-code-generator.js +53 -53
- package/dist/cli.js.map +1 -1
- package/dist/standalone-loader.esm.js +1 -1
- package/dist/standalone-loader.esm.js.map +1 -1
- package/dist/standalone-loader.js +1 -1
- package/dist/standalone-loader.js.map +1 -1
- package/dist/standalone-worker.js.map +1 -1
- package/dist/standalone.js.map +1 -1
- package/es/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +156 -156
- package/standalone/index.js +6 -6
- package/standalone/package.json +5 -5
- package/standalone-loader/index.js +2 -2
- package/standalone-loader/package.json +6 -6
- package/standalone-worker/index.js +6 -6
- package/standalone-worker/package.json +5 -5
- package/types/analyzer/componentAnalyzer.d.ts +2 -2
- package/types/cli/index.d.ts +2 -2
- package/types/cli/init-solution.d.ts +4 -4
- package/types/cli/run.d.ts +15 -15
- package/types/cli/solutions/example-solution.d.ts +4 -4
- package/types/config/env.d.ts +1 -1
- package/types/const/file.d.ts +2 -2
- package/types/const/generator.d.ts +58 -58
- package/types/const/index.d.ts +11 -11
- package/types/core/jsx/handlers/transformJsExpression.d.ts +5 -5
- package/types/core/jsx/handlers/transformThis2Context.d.ts +9 -9
- package/types/core/jsx/util/isLiteralAtomicExpr.d.ts +4 -4
- package/types/core/jsx/util/isSimpleStraightLiteral.d.ts +3 -3
- package/types/core/vue/handlers/transformJsExpression.d.ts +5 -5
- package/types/core/vue/handlers/transformThis2Context.d.ts +9 -9
- package/types/core/vue/util/isLiteralAtomicExpr.d.ts +4 -4
- package/types/core/vue/util/isSimpleStraightLiteral.d.ts +3 -3
- package/types/generator/ChunkBuilder.d.ts +23 -23
- package/types/generator/CodeBuilder.d.ts +17 -17
- package/types/generator/ModuleBuilder.d.ts +7 -7
- package/types/generator/ProjectBuilder.d.ts +62 -62
- package/types/index.d.ts +260 -260
- package/types/parser/SchemaParser.d.ts +25 -25
- package/types/plugins/common/esmodule.d.ts +8 -8
- package/types/plugins/common/requireUtils.d.ts +3 -3
- package/types/plugins/common/styleImport.d.ts +3 -3
- package/types/plugins/component/rax/commonDeps.d.ts +3 -3
- package/types/plugins/component/rax/const.d.ts +18 -18
- package/types/plugins/component/rax/containerClass.d.ts +3 -3
- package/types/plugins/component/rax/containerInitState.d.ts +7 -7
- package/types/plugins/component/rax/containerInjectContext.d.ts +6 -6
- package/types/plugins/component/rax/containerInjectDataSourceEngine.d.ts +12 -12
- package/types/plugins/component/rax/containerInjectUtils.d.ts +6 -6
- package/types/plugins/component/rax/containerLifeCycle.d.ts +8 -8
- package/types/plugins/component/rax/containerMethods.d.ts +6 -6
- package/types/plugins/component/rax/jsx.d.ts +8 -8
- package/types/plugins/component/react/const.d.ts +9 -9
- package/types/plugins/component/react/containerClass.d.ts +3 -3
- package/types/plugins/component/react/containerInitState.d.ts +7 -7
- package/types/plugins/component/react/containerInjectConstants.d.ts +6 -6
- package/types/plugins/component/react/containerInjectContext.d.ts +6 -6
- package/types/plugins/component/react/containerInjectDataSourceEngine.d.ts +23 -23
- package/types/plugins/component/react/containerInjectI18n.d.ts +6 -6
- package/types/plugins/component/react/containerInjectUtils.d.ts +8 -8
- package/types/plugins/component/react/containerLifeCycle.d.ts +9 -9
- package/types/plugins/component/react/containerMethod.d.ts +6 -6
- package/types/plugins/component/react/jsx.d.ts +7 -7
- package/types/plugins/component/react/reactCommonDeps.d.ts +3 -3
- package/types/plugins/component/style/css.d.ts +7 -7
- package/types/plugins/component/vue/apiImport.d.ts +23 -23
- package/types/plugins/component/vue/containerInitVariable.d.ts +7 -7
- package/types/plugins/component/vue/containerInjectDataSourceEngine.d.ts +23 -23
- package/types/plugins/component/vue/containerLifeCycle.d.ts +9 -9
- package/types/plugins/component/vue/containerMethod.d.ts +6 -6
- package/types/plugins/component/vue/containerVue.d.ts +3 -3
- package/types/plugins/component/vue/convert/convert-function.d.ts +6 -6
- package/types/plugins/component/vue/convert/convert-variable.d.ts +11 -11
- package/types/plugins/component/vue/dataSourceMap.d.ts +7 -7
- package/types/plugins/component/vue/esmodule.d.ts +8 -8
- package/types/plugins/component/vue/routerSecond.d.ts +3 -3
- package/types/plugins/component/vue/template.d.ts +7 -7
- package/types/plugins/component/vue/vueCommonDeps.d.ts +3 -3
- package/types/plugins/project/constants.d.ts +3 -3
- package/types/plugins/project/framework/icejs/index.d.ts +11 -11
- package/types/plugins/project/framework/icejs/plugins/entry.d.ts +3 -3
- package/types/plugins/project/framework/icejs/plugins/entryHtml.d.ts +3 -3
- package/types/plugins/project/framework/icejs/plugins/globalStyle.d.ts +3 -3
- package/types/plugins/project/framework/icejs/plugins/packageJSON.d.ts +26 -26
- package/types/plugins/project/framework/icejs/plugins/router.d.ts +3 -3
- package/types/plugins/project/framework/icejs/template/files/README.md.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/abc.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/build.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/editorconfig.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/eslintignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/eslintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/gitignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/jsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/prettierignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/prettierrc.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/stylelintignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/stylelintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/files/tsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/icejs/template/index.d.ts +3 -3
- package/types/plugins/project/framework/icejs/template/static-files.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/index.d.ts +11 -11
- package/types/plugins/project/framework/icejs3/plugins/appConfig.d.ts +5 -5
- package/types/plugins/project/framework/icejs3/plugins/buildConfig.d.ts +7 -7
- package/types/plugins/project/framework/icejs3/plugins/globalStyle.d.ts +3 -3
- package/types/plugins/project/framework/icejs3/plugins/layout.d.ts +3 -3
- package/types/plugins/project/framework/icejs3/plugins/packageJSON.d.ts +26 -26
- package/types/plugins/project/framework/icejs3/template/files/README.md.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/browserslistrc.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/document.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/gitignore.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/index.jsx.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/tsconfig.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/files/typings.d.ts +2 -2
- package/types/plugins/project/framework/icejs3/template/index.d.ts +3 -3
- package/types/plugins/project/framework/icejs3/template/static-files.d.ts +2 -2
- package/types/plugins/project/framework/rax/index.d.ts +12 -12
- package/types/plugins/project/framework/rax/plugins/appConfig.d.ts +4 -4
- package/types/plugins/project/framework/rax/plugins/buildConfig.d.ts +4 -4
- package/types/plugins/project/framework/rax/plugins/entry.d.ts +4 -4
- package/types/plugins/project/framework/rax/plugins/entryDocument.d.ts +7 -7
- package/types/plugins/project/framework/rax/plugins/globalStyle.d.ts +6 -6
- package/types/plugins/project/framework/rax/plugins/packageJSON.d.ts +4 -4
- package/types/plugins/project/framework/rax/template/files/.eslintignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.eslintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.gitignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.prettierignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.prettierrc.js.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.stylelintignore.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/.stylelintrc.js.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/README.md.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/jsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/files/tsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/rax/template/index.d.ts +3 -3
- package/types/plugins/project/framework/rax/template/static-files.d.ts +2 -2
- package/types/plugins/project/framework/rax/types/RaxFrameworkOptions.d.ts +81 -81
- package/types/plugins/project/framework/vuejs3/index.d.ts +11 -11
- package/types/plugins/project/framework/vuejs3/plugins/form.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/plugins/hooks.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/plugins/main.d.ts +4 -4
- package/types/plugins/project/framework/vuejs3/plugins/packageJSON.d.ts +26 -26
- package/types/plugins/project/framework/vuejs3/plugins/router.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/template/files/css/global.scss.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/css/mixin.scss.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/css/theme.css.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/env.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/eslintignore.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/eslintrc.yml.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/gitignore.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/index.html.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/npmrc.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/postcss.config.cjs.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/prettierignore.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/prettierrc.yml.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/App.vue.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/main.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/utils/utils.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/tabs.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/welcome.vue.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/vite-env.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/tsconfig.json.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/tsconfig.node.json.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/files/vite.config.ts.d.ts +2 -2
- package/types/plugins/project/framework/vuejs3/template/index.d.ts +3 -3
- package/types/plugins/project/framework/vuejs3/template/static-files.d.ts +2 -2
- package/types/plugins/project/i18n.d.ts +3 -3
- package/types/plugins/project/utils.d.ts +3 -3
- package/types/polyfills/buffer.d.ts +1 -1
- package/types/postprocessor/index.d.ts +2 -2
- package/types/postprocessor/prettier/index.d.ts +8 -8
- package/types/publisher/disk/index.d.ts +13 -13
- package/types/publisher/disk/utils.d.ts +9 -9
- package/types/publisher/zip/index.d.ts +14 -14
- package/types/publisher/zip/utils.d.ts +5 -5
- package/types/solutions/icejs.d.ts +18 -18
- package/types/solutions/icejs3.d.ts +15 -15
- package/types/solutions/rax-app.d.ts +27 -27
- package/types/solutions/vuejs3.d.ts +22 -22
- package/types/standalone-loader.d.ts +17 -17
- package/types/standalone-worker.d.ts +1 -1
- package/types/standalone.d.ts +260 -260
- package/types/types/analyze.d.ts +5 -5
- package/types/types/column-type.d.ts +316 -316
- package/types/types/core.d.ts +197 -197
- package/types/types/datasource-extra-base.d.ts +32 -32
- package/types/types/datasource-page-helper.d.ts +30 -30
- package/types/types/deps.d.ts +36 -36
- package/types/types/error.d.ts +10 -10
- package/types/types/file.d.ts +14 -14
- package/types/types/index.d.ts +8 -8
- package/types/types/intermediate.d.ts +234 -234
- package/types/types/jsx.d.ts +34 -34
- package/types/types/publisher.d.ts +14 -14
- package/types/types/tab.d.ts +6 -6
- package/types/utils/OrderedSet.d.ts +9 -9
- package/types/utils/Scope.d.ts +12 -12
- package/types/utils/ScopeBindings.d.ts +20 -20
- package/types/utils/aopHelper.d.ts +2 -2
- package/types/utils/apiHandler.d.ts +4 -4
- package/types/utils/changeCase.d.ts +10 -10
- package/types/utils/columnType.d.ts +1 -1
- package/types/utils/common.d.ts +14 -14
- package/types/utils/compositeType.d.ts +3 -3
- package/types/utils/dataSource.d.ts +17 -17
- package/types/utils/debug.d.ts +2 -2
- package/types/utils/encodeJsxAttrString.d.ts +1 -1
- package/types/utils/errors.d.ts +4 -4
- package/types/utils/expressionParser.d.ts +16 -16
- package/types/utils/format.d.ts +1 -1
- package/types/utils/index.d.ts +15 -15
- package/types/utils/jsExpression.d.ts +50 -50
- package/types/utils/jsSlot.d.ts +2 -2
- package/types/utils/jsxHelpers.d.ts +5 -5
- package/types/utils/nodeToJSX.d.ts +32 -32
- package/types/utils/nodeToTemplate.d.ts +17 -17
- package/types/utils/pathHelper.d.ts +6 -6
- package/types/utils/requestHandle.d.ts +77 -77
- package/types/utils/resultHelper.d.ts +51 -51
- package/types/utils/routerHandle.d.ts +11 -11
- package/types/utils/schema.d.ts +24 -24
- package/types/utils/templateHelper.d.ts +11 -11
- package/types/utils/theme.d.ts +9 -9
- package/types/utils/validate.d.ts +8 -8
- package/types/utils/version.d.ts +1 -1
package/types/standalone.d.ts
CHANGED
|
@@ -1,260 +1,260 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 低代码引擎的出码模块,负责将编排产出的 Schema 转换成实际可执行的代码。
|
|
3
|
-
* 注意:为了保持 API 的稳定性, 这里所有导出的 API 均要显式命名方式导出
|
|
4
|
-
* (即用 export { xxx } from 'xx' 的方式,不要直接 export * from 'xxx')
|
|
5
|
-
* 而且所有导出的 API 务必在 tests/public 中编写单元测试
|
|
6
|
-
*/
|
|
7
|
-
import './polyfills/buffer';
|
|
8
|
-
import { createProjectBuilder } from './generator/ProjectBuilder';
|
|
9
|
-
import { createModuleBuilder } from './generator/ModuleBuilder';
|
|
10
|
-
import createIceJsProjectBuilder from './solutions/icejs';
|
|
11
|
-
import createIceJs3ProjectBuilder from './solutions/icejs3';
|
|
12
|
-
import createRaxAppProjectBuilder from './solutions/rax-app';
|
|
13
|
-
import createDcSolutionProjectBuilder from './solutions/vuejs3';
|
|
14
|
-
import * as globalUtils from './utils';
|
|
15
|
-
import * as CONSTANTS from './const';
|
|
16
|
-
declare const _default: {
|
|
17
|
-
createProjectBuilder: typeof createProjectBuilder;
|
|
18
|
-
createModuleBuilder: typeof createModuleBuilder;
|
|
19
|
-
solutions: {
|
|
20
|
-
icejs: typeof createIceJsProjectBuilder;
|
|
21
|
-
icejs3: typeof createIceJs3ProjectBuilder;
|
|
22
|
-
rax: typeof createRaxAppProjectBuilder;
|
|
23
|
-
vuejs3: typeof createDcSolutionProjectBuilder;
|
|
24
|
-
};
|
|
25
|
-
solutionParts: {
|
|
26
|
-
icejs: {
|
|
27
|
-
template: import("./types").IProjectTemplate;
|
|
28
|
-
plugins: {
|
|
29
|
-
entry: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
30
|
-
entryHtml: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
31
|
-
globalStyle: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
32
|
-
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs/plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
33
|
-
router: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
icejs3: {
|
|
37
|
-
template: import("./types").IProjectTemplate;
|
|
38
|
-
plugins: {
|
|
39
|
-
appConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs3/plugins/appConfig").AppConfigPluginConfig>;
|
|
40
|
-
buildConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs3/plugins/buildConfig").BuildConfigPluginConfig>;
|
|
41
|
-
globalStyle: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
42
|
-
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs3/plugins/packageJSON").IceJs3PackageJsonPluginConfig>;
|
|
43
|
-
layout: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
rax: {
|
|
47
|
-
template: import("./types").IProjectTemplate;
|
|
48
|
-
plugins: {
|
|
49
|
-
appConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
50
|
-
buildConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
51
|
-
entry: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
52
|
-
entryDocument: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
53
|
-
globalStyle: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/plugins/globalStyle").GlobalStylePluginConfig>;
|
|
54
|
-
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
vuejs3: {
|
|
58
|
-
template: import("./types").IProjectTemplate;
|
|
59
|
-
plugins: {
|
|
60
|
-
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/vuejs3/plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
61
|
-
router: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
62
|
-
main: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/template").PluginConfig>;
|
|
63
|
-
form: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
64
|
-
hooks: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
publishers: {
|
|
69
|
-
zip: import("./types").PublisherFactory<import("./publisher/zip").ZipFactoryParams, import("./publisher/zip").ZipPublisher>;
|
|
70
|
-
};
|
|
71
|
-
plugins: {
|
|
72
|
-
common: {
|
|
73
|
-
/**
|
|
74
|
-
* 处理 ES Module
|
|
75
|
-
* @deprecated please use esModule
|
|
76
|
-
*/
|
|
77
|
-
esmodule: import("./types").BuilderComponentPluginFactory<import("./plugins/common/esmodule").PluginConfig>;
|
|
78
|
-
esModule: import("./types").BuilderComponentPluginFactory<import("./plugins/common/esmodule").PluginConfig>;
|
|
79
|
-
requireUtils: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
80
|
-
styleImport: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
81
|
-
};
|
|
82
|
-
style: {
|
|
83
|
-
css: import("./types").BuilderComponentPluginFactory<import("./plugins/component/style/css").PluginConfig>;
|
|
84
|
-
};
|
|
85
|
-
project: {
|
|
86
|
-
constants: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
87
|
-
i18n: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
88
|
-
utils: import("./types").BuilderComponentPluginFactory<string>;
|
|
89
|
-
};
|
|
90
|
-
icejs: {
|
|
91
|
-
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
92
|
-
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectContext").PluginConfig>;
|
|
93
|
-
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectUtils").PluginConfig>;
|
|
94
|
-
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectDataSourceEngine").PluginConfig>;
|
|
95
|
-
containerInjectI18n: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectI18n").PluginConfig>;
|
|
96
|
-
containerInjectConstants: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectConstants").PluginConfig>;
|
|
97
|
-
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInitState").PluginConfig>;
|
|
98
|
-
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerLifeCycle").PluginConfig>;
|
|
99
|
-
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerMethod").PluginConfig>;
|
|
100
|
-
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/jsx").PluginConfig>;
|
|
101
|
-
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
102
|
-
reactCommonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
103
|
-
};
|
|
104
|
-
icejs3: {
|
|
105
|
-
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
106
|
-
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInitState").PluginConfig>;
|
|
107
|
-
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectContext").PluginConfig>;
|
|
108
|
-
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectUtils").PluginConfig>;
|
|
109
|
-
containerInjectI18n: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectI18n").PluginConfig>;
|
|
110
|
-
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectDataSourceEngine").PluginConfig>;
|
|
111
|
-
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerLifeCycle").PluginConfig>;
|
|
112
|
-
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerMethod").PluginConfig>;
|
|
113
|
-
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/jsx").PluginConfig>;
|
|
114
|
-
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
115
|
-
};
|
|
116
|
-
rax: {
|
|
117
|
-
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
118
|
-
containerLifeCycles: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerLifeCycle").PluginConfig>;
|
|
119
|
-
containerMethods: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerMethods").PluginConfig>;
|
|
120
|
-
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInitState").PluginConfig>;
|
|
121
|
-
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInjectContext").PluginConfig>;
|
|
122
|
-
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInjectDataSourceEngine").PluginConfig>;
|
|
123
|
-
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInjectUtils").PluginConfig>;
|
|
124
|
-
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/jsx").PluginConfig>;
|
|
125
|
-
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
126
|
-
raxApp: {
|
|
127
|
-
template: import("./types").IProjectTemplate;
|
|
128
|
-
plugins: {
|
|
129
|
-
appConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
130
|
-
buildConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
131
|
-
entry: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
132
|
-
entryDocument: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
133
|
-
globalStyle: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/plugins/globalStyle").GlobalStylePluginConfig>;
|
|
134
|
-
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
vuejs3: {
|
|
139
|
-
template: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/template").PluginConfig>;
|
|
140
|
-
vueCommonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
141
|
-
esmodule: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/esmodule").PluginConfig>;
|
|
142
|
-
containerVue: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
143
|
-
apiImport: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/apiImport").PluginConfig>;
|
|
144
|
-
containerInitVariable: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/containerInitVariable").PluginConfig>;
|
|
145
|
-
dataSourceMap: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/dataSourceMap").PluginConfig>;
|
|
146
|
-
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/containerLifeCycle").PluginConfig>;
|
|
147
|
-
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/containerMethod").PluginConfig>;
|
|
148
|
-
vuejs3: {
|
|
149
|
-
template: import("./types").IProjectTemplate;
|
|
150
|
-
plugins: {
|
|
151
|
-
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/vuejs3/plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
152
|
-
router: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
153
|
-
main: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/template").PluginConfig>;
|
|
154
|
-
form: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
155
|
-
hooks: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* @deprecated please use icejs
|
|
161
|
-
*/
|
|
162
|
-
react: {
|
|
163
|
-
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
164
|
-
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectContext").PluginConfig>;
|
|
165
|
-
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectUtils").PluginConfig>;
|
|
166
|
-
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectDataSourceEngine").PluginConfig>;
|
|
167
|
-
containerInjectI18n: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectI18n").PluginConfig>;
|
|
168
|
-
containerInjectConstants: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectConstants").PluginConfig>;
|
|
169
|
-
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInitState").PluginConfig>;
|
|
170
|
-
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerLifeCycle").PluginConfig>;
|
|
171
|
-
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerMethod").PluginConfig>;
|
|
172
|
-
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/jsx").PluginConfig>;
|
|
173
|
-
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
174
|
-
reactCommonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
postprocessor: {
|
|
178
|
-
prettier: import("./types").PostProcessorFactory<import("./postprocessor/prettier").ProcessorConfig>;
|
|
179
|
-
};
|
|
180
|
-
utils: typeof globalUtils;
|
|
181
|
-
chunkNames: {
|
|
182
|
-
COMMON_CHUNK_NAME: {
|
|
183
|
-
ExternalDepsImport: string;
|
|
184
|
-
InternalDepsImport: string;
|
|
185
|
-
ImportAliasDefine: string;
|
|
186
|
-
FileVarDefine: string;
|
|
187
|
-
FileUtilDefine: string;
|
|
188
|
-
FileMainContent: string;
|
|
189
|
-
FileExport: string;
|
|
190
|
-
StyleDepsImport: string;
|
|
191
|
-
StyleCssContent: string;
|
|
192
|
-
HtmlContent: string;
|
|
193
|
-
CustomContent: string;
|
|
194
|
-
};
|
|
195
|
-
CLASS_DEFINE_CHUNK_NAME: {
|
|
196
|
-
Start: string;
|
|
197
|
-
ConstructorStart: string;
|
|
198
|
-
ConstructorContent: string;
|
|
199
|
-
ConstructorEnd: string;
|
|
200
|
-
StaticVar: string;
|
|
201
|
-
StaticMethod: string;
|
|
202
|
-
InsVar: string;
|
|
203
|
-
InsVarMethod: string;
|
|
204
|
-
InsMethod: string;
|
|
205
|
-
InsPrivateMethod: string;
|
|
206
|
-
End: string;
|
|
207
|
-
};
|
|
208
|
-
REACT_CHUNK_NAME: {
|
|
209
|
-
ClassRenderStart: string;
|
|
210
|
-
ClassRenderPre: string;
|
|
211
|
-
ClassRenderEnd: string;
|
|
212
|
-
ClassRenderJSX: string;
|
|
213
|
-
ClassDidMountStart: string;
|
|
214
|
-
ClassDidMountEnd: string;
|
|
215
|
-
ClassDidMountContent: string;
|
|
216
|
-
};
|
|
217
|
-
TEMPLATE_DEFINE_CHUNK_NAME: {
|
|
218
|
-
TemplateStart: string;
|
|
219
|
-
TemplateDom: string;
|
|
220
|
-
TemplateEnd: string;
|
|
221
|
-
ScriptStart: string;
|
|
222
|
-
ExternalDepsImport: string;
|
|
223
|
-
InternalDepsImport: string;
|
|
224
|
-
ConstVar: string;
|
|
225
|
-
LetVar: string;
|
|
226
|
-
DataSourceMapStart: string;
|
|
227
|
-
DataSourceMapContent: string;
|
|
228
|
-
DataSourceMapEnd: string;
|
|
229
|
-
OnMountedStart: string;
|
|
230
|
-
OnMountedContent: string;
|
|
231
|
-
OnMountedEnd: string;
|
|
232
|
-
UnMountedStart: string;
|
|
233
|
-
UnMountedContent: string;
|
|
234
|
-
UnMountedEnd: string;
|
|
235
|
-
Method: string;
|
|
236
|
-
ScriptEnd: string;
|
|
237
|
-
CssStyleStart: string;
|
|
238
|
-
CssStyleImport: string;
|
|
239
|
-
CssStyleEnd: string;
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
defaultLinkAfter: {
|
|
243
|
-
COMMON_DEFAULT_LINK_AFTER: {
|
|
244
|
-
[x: string]: string[];
|
|
245
|
-
};
|
|
246
|
-
VUE_DEFAULT_LINK_AFTER: {
|
|
247
|
-
[x: string]: string[];
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
constants: typeof CONSTANTS;
|
|
251
|
-
};
|
|
252
|
-
export default _default;
|
|
253
|
-
export * from './types';
|
|
254
|
-
export * from './const';
|
|
255
|
-
export * from './analyzer/componentAnalyzer';
|
|
256
|
-
export * from './parser/SchemaParser';
|
|
257
|
-
export * from './generator/ChunkBuilder';
|
|
258
|
-
export * from './generator/CodeBuilder';
|
|
259
|
-
export * from './generator/ModuleBuilder';
|
|
260
|
-
export * from './generator/ProjectBuilder';
|
|
1
|
+
/**
|
|
2
|
+
* 低代码引擎的出码模块,负责将编排产出的 Schema 转换成实际可执行的代码。
|
|
3
|
+
* 注意:为了保持 API 的稳定性, 这里所有导出的 API 均要显式命名方式导出
|
|
4
|
+
* (即用 export { xxx } from 'xx' 的方式,不要直接 export * from 'xxx')
|
|
5
|
+
* 而且所有导出的 API 务必在 tests/public 中编写单元测试
|
|
6
|
+
*/
|
|
7
|
+
import './polyfills/buffer';
|
|
8
|
+
import { createProjectBuilder } from './generator/ProjectBuilder';
|
|
9
|
+
import { createModuleBuilder } from './generator/ModuleBuilder';
|
|
10
|
+
import createIceJsProjectBuilder from './solutions/icejs';
|
|
11
|
+
import createIceJs3ProjectBuilder from './solutions/icejs3';
|
|
12
|
+
import createRaxAppProjectBuilder from './solutions/rax-app';
|
|
13
|
+
import createDcSolutionProjectBuilder from './solutions/vuejs3';
|
|
14
|
+
import * as globalUtils from './utils';
|
|
15
|
+
import * as CONSTANTS from './const';
|
|
16
|
+
declare const _default: {
|
|
17
|
+
createProjectBuilder: typeof createProjectBuilder;
|
|
18
|
+
createModuleBuilder: typeof createModuleBuilder;
|
|
19
|
+
solutions: {
|
|
20
|
+
icejs: typeof createIceJsProjectBuilder;
|
|
21
|
+
icejs3: typeof createIceJs3ProjectBuilder;
|
|
22
|
+
rax: typeof createRaxAppProjectBuilder;
|
|
23
|
+
vuejs3: typeof createDcSolutionProjectBuilder;
|
|
24
|
+
};
|
|
25
|
+
solutionParts: {
|
|
26
|
+
icejs: {
|
|
27
|
+
template: import("./types").IProjectTemplate;
|
|
28
|
+
plugins: {
|
|
29
|
+
entry: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
30
|
+
entryHtml: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
31
|
+
globalStyle: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
32
|
+
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs/plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
33
|
+
router: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
icejs3: {
|
|
37
|
+
template: import("./types").IProjectTemplate;
|
|
38
|
+
plugins: {
|
|
39
|
+
appConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs3/plugins/appConfig").AppConfigPluginConfig>;
|
|
40
|
+
buildConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs3/plugins/buildConfig").BuildConfigPluginConfig>;
|
|
41
|
+
globalStyle: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
42
|
+
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/icejs3/plugins/packageJSON").IceJs3PackageJsonPluginConfig>;
|
|
43
|
+
layout: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
rax: {
|
|
47
|
+
template: import("./types").IProjectTemplate;
|
|
48
|
+
plugins: {
|
|
49
|
+
appConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
50
|
+
buildConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
51
|
+
entry: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
52
|
+
entryDocument: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
53
|
+
globalStyle: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/plugins/globalStyle").GlobalStylePluginConfig>;
|
|
54
|
+
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
vuejs3: {
|
|
58
|
+
template: import("./types").IProjectTemplate;
|
|
59
|
+
plugins: {
|
|
60
|
+
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/vuejs3/plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
61
|
+
router: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
62
|
+
main: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/template").PluginConfig>;
|
|
63
|
+
form: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
64
|
+
hooks: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
publishers: {
|
|
69
|
+
zip: import("./types").PublisherFactory<import("./publisher/zip").ZipFactoryParams, import("./publisher/zip").ZipPublisher>;
|
|
70
|
+
};
|
|
71
|
+
plugins: {
|
|
72
|
+
common: {
|
|
73
|
+
/**
|
|
74
|
+
* 处理 ES Module
|
|
75
|
+
* @deprecated please use esModule
|
|
76
|
+
*/
|
|
77
|
+
esmodule: import("./types").BuilderComponentPluginFactory<import("./plugins/common/esmodule").PluginConfig>;
|
|
78
|
+
esModule: import("./types").BuilderComponentPluginFactory<import("./plugins/common/esmodule").PluginConfig>;
|
|
79
|
+
requireUtils: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
80
|
+
styleImport: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
81
|
+
};
|
|
82
|
+
style: {
|
|
83
|
+
css: import("./types").BuilderComponentPluginFactory<import("./plugins/component/style/css").PluginConfig>;
|
|
84
|
+
};
|
|
85
|
+
project: {
|
|
86
|
+
constants: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
87
|
+
i18n: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
88
|
+
utils: import("./types").BuilderComponentPluginFactory<string>;
|
|
89
|
+
};
|
|
90
|
+
icejs: {
|
|
91
|
+
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
92
|
+
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectContext").PluginConfig>;
|
|
93
|
+
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectUtils").PluginConfig>;
|
|
94
|
+
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectDataSourceEngine").PluginConfig>;
|
|
95
|
+
containerInjectI18n: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectI18n").PluginConfig>;
|
|
96
|
+
containerInjectConstants: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectConstants").PluginConfig>;
|
|
97
|
+
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInitState").PluginConfig>;
|
|
98
|
+
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerLifeCycle").PluginConfig>;
|
|
99
|
+
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerMethod").PluginConfig>;
|
|
100
|
+
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/jsx").PluginConfig>;
|
|
101
|
+
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
102
|
+
reactCommonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
103
|
+
};
|
|
104
|
+
icejs3: {
|
|
105
|
+
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
106
|
+
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInitState").PluginConfig>;
|
|
107
|
+
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectContext").PluginConfig>;
|
|
108
|
+
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectUtils").PluginConfig>;
|
|
109
|
+
containerInjectI18n: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectI18n").PluginConfig>;
|
|
110
|
+
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectDataSourceEngine").PluginConfig>;
|
|
111
|
+
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerLifeCycle").PluginConfig>;
|
|
112
|
+
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerMethod").PluginConfig>;
|
|
113
|
+
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/jsx").PluginConfig>;
|
|
114
|
+
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
115
|
+
};
|
|
116
|
+
rax: {
|
|
117
|
+
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
118
|
+
containerLifeCycles: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerLifeCycle").PluginConfig>;
|
|
119
|
+
containerMethods: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerMethods").PluginConfig>;
|
|
120
|
+
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInitState").PluginConfig>;
|
|
121
|
+
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInjectContext").PluginConfig>;
|
|
122
|
+
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInjectDataSourceEngine").PluginConfig>;
|
|
123
|
+
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/containerInjectUtils").PluginConfig>;
|
|
124
|
+
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/rax/jsx").PluginConfig>;
|
|
125
|
+
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
126
|
+
raxApp: {
|
|
127
|
+
template: import("./types").IProjectTemplate;
|
|
128
|
+
plugins: {
|
|
129
|
+
appConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
130
|
+
buildConfig: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
131
|
+
entry: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
132
|
+
entryDocument: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
133
|
+
globalStyle: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/plugins/globalStyle").GlobalStylePluginConfig>;
|
|
134
|
+
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/rax/types/RaxFrameworkOptions").RaxFrameworkOptions>;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
vuejs3: {
|
|
139
|
+
template: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/template").PluginConfig>;
|
|
140
|
+
vueCommonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
141
|
+
esmodule: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/esmodule").PluginConfig>;
|
|
142
|
+
containerVue: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
143
|
+
apiImport: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/apiImport").PluginConfig>;
|
|
144
|
+
containerInitVariable: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/containerInitVariable").PluginConfig>;
|
|
145
|
+
dataSourceMap: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/dataSourceMap").PluginConfig>;
|
|
146
|
+
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/containerLifeCycle").PluginConfig>;
|
|
147
|
+
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/containerMethod").PluginConfig>;
|
|
148
|
+
vuejs3: {
|
|
149
|
+
template: import("./types").IProjectTemplate;
|
|
150
|
+
plugins: {
|
|
151
|
+
packageJSON: import("./types").BuilderComponentPluginFactory<import("./plugins/project/framework/vuejs3/plugins/packageJSON").IceJsPackageJsonPluginConfig>;
|
|
152
|
+
router: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
153
|
+
main: import("./types").BuilderComponentPluginFactory<import("./plugins/component/vue/template").PluginConfig>;
|
|
154
|
+
form: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
155
|
+
hooks: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated please use icejs
|
|
161
|
+
*/
|
|
162
|
+
react: {
|
|
163
|
+
containerClass: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
164
|
+
containerInjectContext: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectContext").PluginConfig>;
|
|
165
|
+
containerInjectUtils: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectUtils").PluginConfig>;
|
|
166
|
+
containerInjectDataSourceEngine: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectDataSourceEngine").PluginConfig>;
|
|
167
|
+
containerInjectI18n: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectI18n").PluginConfig>;
|
|
168
|
+
containerInjectConstants: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInjectConstants").PluginConfig>;
|
|
169
|
+
containerInitState: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerInitState").PluginConfig>;
|
|
170
|
+
containerLifeCycle: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerLifeCycle").PluginConfig>;
|
|
171
|
+
containerMethod: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/containerMethod").PluginConfig>;
|
|
172
|
+
jsx: import("./types").BuilderComponentPluginFactory<import("./plugins/component/react/jsx").PluginConfig>;
|
|
173
|
+
commonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
174
|
+
reactCommonDeps: import("./types").BuilderComponentPluginFactory<unknown>;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
postprocessor: {
|
|
178
|
+
prettier: import("./types").PostProcessorFactory<import("./postprocessor/prettier").ProcessorConfig>;
|
|
179
|
+
};
|
|
180
|
+
utils: typeof globalUtils;
|
|
181
|
+
chunkNames: {
|
|
182
|
+
COMMON_CHUNK_NAME: {
|
|
183
|
+
ExternalDepsImport: string;
|
|
184
|
+
InternalDepsImport: string;
|
|
185
|
+
ImportAliasDefine: string;
|
|
186
|
+
FileVarDefine: string;
|
|
187
|
+
FileUtilDefine: string;
|
|
188
|
+
FileMainContent: string;
|
|
189
|
+
FileExport: string;
|
|
190
|
+
StyleDepsImport: string;
|
|
191
|
+
StyleCssContent: string;
|
|
192
|
+
HtmlContent: string;
|
|
193
|
+
CustomContent: string;
|
|
194
|
+
};
|
|
195
|
+
CLASS_DEFINE_CHUNK_NAME: {
|
|
196
|
+
Start: string;
|
|
197
|
+
ConstructorStart: string;
|
|
198
|
+
ConstructorContent: string;
|
|
199
|
+
ConstructorEnd: string;
|
|
200
|
+
StaticVar: string;
|
|
201
|
+
StaticMethod: string;
|
|
202
|
+
InsVar: string;
|
|
203
|
+
InsVarMethod: string;
|
|
204
|
+
InsMethod: string;
|
|
205
|
+
InsPrivateMethod: string;
|
|
206
|
+
End: string;
|
|
207
|
+
};
|
|
208
|
+
REACT_CHUNK_NAME: {
|
|
209
|
+
ClassRenderStart: string;
|
|
210
|
+
ClassRenderPre: string;
|
|
211
|
+
ClassRenderEnd: string;
|
|
212
|
+
ClassRenderJSX: string;
|
|
213
|
+
ClassDidMountStart: string;
|
|
214
|
+
ClassDidMountEnd: string;
|
|
215
|
+
ClassDidMountContent: string;
|
|
216
|
+
};
|
|
217
|
+
TEMPLATE_DEFINE_CHUNK_NAME: {
|
|
218
|
+
TemplateStart: string;
|
|
219
|
+
TemplateDom: string;
|
|
220
|
+
TemplateEnd: string;
|
|
221
|
+
ScriptStart: string;
|
|
222
|
+
ExternalDepsImport: string;
|
|
223
|
+
InternalDepsImport: string;
|
|
224
|
+
ConstVar: string;
|
|
225
|
+
LetVar: string;
|
|
226
|
+
DataSourceMapStart: string;
|
|
227
|
+
DataSourceMapContent: string;
|
|
228
|
+
DataSourceMapEnd: string;
|
|
229
|
+
OnMountedStart: string;
|
|
230
|
+
OnMountedContent: string;
|
|
231
|
+
OnMountedEnd: string;
|
|
232
|
+
UnMountedStart: string;
|
|
233
|
+
UnMountedContent: string;
|
|
234
|
+
UnMountedEnd: string;
|
|
235
|
+
Method: string;
|
|
236
|
+
ScriptEnd: string;
|
|
237
|
+
CssStyleStart: string;
|
|
238
|
+
CssStyleImport: string;
|
|
239
|
+
CssStyleEnd: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
defaultLinkAfter: {
|
|
243
|
+
COMMON_DEFAULT_LINK_AFTER: {
|
|
244
|
+
[x: string]: string[];
|
|
245
|
+
};
|
|
246
|
+
VUE_DEFAULT_LINK_AFTER: {
|
|
247
|
+
[x: string]: string[];
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
constants: typeof CONSTANTS;
|
|
251
|
+
};
|
|
252
|
+
export default _default;
|
|
253
|
+
export * from './types';
|
|
254
|
+
export * from './const';
|
|
255
|
+
export * from './analyzer/componentAnalyzer';
|
|
256
|
+
export * from './parser/SchemaParser';
|
|
257
|
+
export * from './generator/ChunkBuilder';
|
|
258
|
+
export * from './generator/CodeBuilder';
|
|
259
|
+
export * from './generator/ModuleBuilder';
|
|
260
|
+
export * from './generator/ProjectBuilder';
|
package/types/types/analyze.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IPublicTypeContainerSchema } from '@alilc/lowcode-types';
|
|
2
|
-
export interface ICompAnalyzeResult {
|
|
3
|
-
isUsingRef: boolean;
|
|
4
|
-
}
|
|
5
|
-
export type TComponentAnalyzer = (container: IPublicTypeContainerSchema) => ICompAnalyzeResult;
|
|
1
|
+
import type { IPublicTypeContainerSchema } from '@alilc/lowcode-types';
|
|
2
|
+
export interface ICompAnalyzeResult {
|
|
3
|
+
isUsingRef: boolean;
|
|
4
|
+
}
|
|
5
|
+
export type TComponentAnalyzer = (container: IPublicTypeContainerSchema) => ICompAnalyzeResult;
|