@dckj-npm/lowcode-code-generator 1.2.18 → 1.2.19

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.
Files changed (227) hide show
  1. package/package.json +4 -2
  2. package/dist/standalone-loader.esm.js +0 -100
  3. package/dist/standalone-loader.esm.js.map +0 -7
  4. package/dist/standalone-loader.js +0 -127
  5. package/dist/standalone-loader.js.map +0 -7
  6. package/types/analyzer/componentAnalyzer.d.ts +0 -2
  7. package/types/cli/index.d.ts +0 -2
  8. package/types/cli/init-solution.d.ts +0 -4
  9. package/types/cli/run.d.ts +0 -15
  10. package/types/cli/solutions/example-solution.d.ts +0 -4
  11. package/types/config/env.d.ts +0 -1
  12. package/types/const/file.d.ts +0 -2
  13. package/types/const/generator.d.ts +0 -58
  14. package/types/const/index.d.ts +0 -11
  15. package/types/core/jsx/handlers/transformJsExpression.d.ts +0 -5
  16. package/types/core/jsx/handlers/transformThis2Context.d.ts +0 -9
  17. package/types/core/jsx/util/isLiteralAtomicExpr.d.ts +0 -4
  18. package/types/core/jsx/util/isSimpleStraightLiteral.d.ts +0 -3
  19. package/types/core/vue/handlers/transformJsExpression.d.ts +0 -5
  20. package/types/core/vue/handlers/transformThis2Context.d.ts +0 -9
  21. package/types/core/vue/util/isLiteralAtomicExpr.d.ts +0 -4
  22. package/types/core/vue/util/isSimpleStraightLiteral.d.ts +0 -3
  23. package/types/generator/ChunkBuilder.d.ts +0 -23
  24. package/types/generator/CodeBuilder.d.ts +0 -17
  25. package/types/generator/ModuleBuilder.d.ts +0 -7
  26. package/types/generator/ProjectBuilder.d.ts +0 -62
  27. package/types/index.d.ts +0 -260
  28. package/types/parser/SchemaParser.d.ts +0 -25
  29. package/types/plugins/common/esmodule.d.ts +0 -8
  30. package/types/plugins/common/requireUtils.d.ts +0 -3
  31. package/types/plugins/common/styleImport.d.ts +0 -3
  32. package/types/plugins/component/rax/commonDeps.d.ts +0 -3
  33. package/types/plugins/component/rax/const.d.ts +0 -18
  34. package/types/plugins/component/rax/containerClass.d.ts +0 -3
  35. package/types/plugins/component/rax/containerInitState.d.ts +0 -7
  36. package/types/plugins/component/rax/containerInjectContext.d.ts +0 -6
  37. package/types/plugins/component/rax/containerInjectDataSourceEngine.d.ts +0 -12
  38. package/types/plugins/component/rax/containerInjectUtils.d.ts +0 -6
  39. package/types/plugins/component/rax/containerLifeCycle.d.ts +0 -8
  40. package/types/plugins/component/rax/containerMethods.d.ts +0 -6
  41. package/types/plugins/component/rax/jsx.d.ts +0 -8
  42. package/types/plugins/component/react/const.d.ts +0 -9
  43. package/types/plugins/component/react/containerClass.d.ts +0 -3
  44. package/types/plugins/component/react/containerInitState.d.ts +0 -7
  45. package/types/plugins/component/react/containerInjectConstants.d.ts +0 -6
  46. package/types/plugins/component/react/containerInjectContext.d.ts +0 -6
  47. package/types/plugins/component/react/containerInjectDataSourceEngine.d.ts +0 -23
  48. package/types/plugins/component/react/containerInjectI18n.d.ts +0 -6
  49. package/types/plugins/component/react/containerInjectUtils.d.ts +0 -8
  50. package/types/plugins/component/react/containerLifeCycle.d.ts +0 -9
  51. package/types/plugins/component/react/containerMethod.d.ts +0 -6
  52. package/types/plugins/component/react/jsx.d.ts +0 -7
  53. package/types/plugins/component/react/reactCommonDeps.d.ts +0 -3
  54. package/types/plugins/component/style/css.d.ts +0 -7
  55. package/types/plugins/component/vue/apiImport.d.ts +0 -23
  56. package/types/plugins/component/vue/containerInitVariable.d.ts +0 -7
  57. package/types/plugins/component/vue/containerInjectDataSourceEngine.d.ts +0 -23
  58. package/types/plugins/component/vue/containerLifeCycle.d.ts +0 -9
  59. package/types/plugins/component/vue/containerMethod.d.ts +0 -6
  60. package/types/plugins/component/vue/containerVue.d.ts +0 -3
  61. package/types/plugins/component/vue/convert/convert-function.d.ts +0 -6
  62. package/types/plugins/component/vue/convert/convert-variable.d.ts +0 -11
  63. package/types/plugins/component/vue/dataSourceMap.d.ts +0 -7
  64. package/types/plugins/component/vue/esmodule.d.ts +0 -8
  65. package/types/plugins/component/vue/routerSecond.d.ts +0 -3
  66. package/types/plugins/component/vue/styleImport.d.ts +0 -0
  67. package/types/plugins/component/vue/template.d.ts +0 -7
  68. package/types/plugins/component/vue/vueCommonDeps.d.ts +0 -3
  69. package/types/plugins/project/constants.d.ts +0 -3
  70. package/types/plugins/project/framework/icejs/index.d.ts +0 -11
  71. package/types/plugins/project/framework/icejs/plugins/entry.d.ts +0 -3
  72. package/types/plugins/project/framework/icejs/plugins/entryHtml.d.ts +0 -3
  73. package/types/plugins/project/framework/icejs/plugins/globalStyle.d.ts +0 -3
  74. package/types/plugins/project/framework/icejs/plugins/packageJSON.d.ts +0 -26
  75. package/types/plugins/project/framework/icejs/plugins/router.d.ts +0 -3
  76. package/types/plugins/project/framework/icejs/template/files/README.md.d.ts +0 -2
  77. package/types/plugins/project/framework/icejs/template/files/abc.json.d.ts +0 -2
  78. package/types/plugins/project/framework/icejs/template/files/build.json.d.ts +0 -2
  79. package/types/plugins/project/framework/icejs/template/files/editorconfig.d.ts +0 -2
  80. package/types/plugins/project/framework/icejs/template/files/eslintignore.d.ts +0 -2
  81. package/types/plugins/project/framework/icejs/template/files/eslintrc.js.d.ts +0 -2
  82. package/types/plugins/project/framework/icejs/template/files/gitignore.d.ts +0 -2
  83. package/types/plugins/project/framework/icejs/template/files/jsconfig.json.d.ts +0 -2
  84. package/types/plugins/project/framework/icejs/template/files/prettierignore.d.ts +0 -2
  85. package/types/plugins/project/framework/icejs/template/files/prettierrc.js.d.ts +0 -2
  86. package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +0 -2
  87. package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +0 -2
  88. package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +0 -2
  89. package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +0 -2
  90. package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +0 -2
  91. package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/index.jsx.d.ts +0 -2
  92. package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +0 -2
  93. package/types/plugins/project/framework/icejs/template/files/stylelintignore.d.ts +0 -2
  94. package/types/plugins/project/framework/icejs/template/files/stylelintrc.js.d.ts +0 -2
  95. package/types/plugins/project/framework/icejs/template/files/tsconfig.json.d.ts +0 -2
  96. package/types/plugins/project/framework/icejs/template/index.d.ts +0 -3
  97. package/types/plugins/project/framework/icejs/template/static-files.d.ts +0 -2
  98. package/types/plugins/project/framework/icejs3/index.d.ts +0 -11
  99. package/types/plugins/project/framework/icejs3/plugins/appConfig.d.ts +0 -5
  100. package/types/plugins/project/framework/icejs3/plugins/buildConfig.d.ts +0 -7
  101. package/types/plugins/project/framework/icejs3/plugins/globalStyle.d.ts +0 -3
  102. package/types/plugins/project/framework/icejs3/plugins/layout.d.ts +0 -3
  103. package/types/plugins/project/framework/icejs3/plugins/packageJSON.d.ts +0 -26
  104. package/types/plugins/project/framework/icejs3/template/files/README.md.d.ts +0 -2
  105. package/types/plugins/project/framework/icejs3/template/files/browserslistrc.d.ts +0 -2
  106. package/types/plugins/project/framework/icejs3/template/files/document.d.ts +0 -2
  107. package/types/plugins/project/framework/icejs3/template/files/gitignore.d.ts +0 -2
  108. package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +0 -2
  109. package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +0 -2
  110. package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +0 -2
  111. package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +0 -2
  112. package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +0 -2
  113. package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/index.jsx.d.ts +0 -2
  114. package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +0 -2
  115. package/types/plugins/project/framework/icejs3/template/files/tsconfig.d.ts +0 -2
  116. package/types/plugins/project/framework/icejs3/template/files/typings.d.ts +0 -2
  117. package/types/plugins/project/framework/icejs3/template/index.d.ts +0 -3
  118. package/types/plugins/project/framework/icejs3/template/static-files.d.ts +0 -2
  119. package/types/plugins/project/framework/rax/index.d.ts +0 -12
  120. package/types/plugins/project/framework/rax/plugins/appConfig.d.ts +0 -4
  121. package/types/plugins/project/framework/rax/plugins/buildConfig.d.ts +0 -4
  122. package/types/plugins/project/framework/rax/plugins/entry.d.ts +0 -4
  123. package/types/plugins/project/framework/rax/plugins/entryDocument.d.ts +0 -7
  124. package/types/plugins/project/framework/rax/plugins/globalStyle.d.ts +0 -6
  125. package/types/plugins/project/framework/rax/plugins/packageJSON.d.ts +0 -4
  126. package/types/plugins/project/framework/rax/template/files/.eslintignore.d.ts +0 -2
  127. package/types/plugins/project/framework/rax/template/files/.eslintrc.js.d.ts +0 -2
  128. package/types/plugins/project/framework/rax/template/files/.gitignore.d.ts +0 -2
  129. package/types/plugins/project/framework/rax/template/files/.prettierignore.d.ts +0 -2
  130. package/types/plugins/project/framework/rax/template/files/.prettierrc.js.d.ts +0 -2
  131. package/types/plugins/project/framework/rax/template/files/.stylelintignore.d.ts +0 -2
  132. package/types/plugins/project/framework/rax/template/files/.stylelintrc.js.d.ts +0 -2
  133. package/types/plugins/project/framework/rax/template/files/README.md.d.ts +0 -2
  134. package/types/plugins/project/framework/rax/template/files/jsconfig.json.d.ts +0 -2
  135. package/types/plugins/project/framework/rax/template/files/tsconfig.json.d.ts +0 -2
  136. package/types/plugins/project/framework/rax/template/index.d.ts +0 -3
  137. package/types/plugins/project/framework/rax/template/static-files.d.ts +0 -2
  138. package/types/plugins/project/framework/rax/types/RaxFrameworkOptions.d.ts +0 -81
  139. package/types/plugins/project/framework/vuejs3/index.d.ts +0 -11
  140. package/types/plugins/project/framework/vuejs3/plugins/form.d.ts +0 -3
  141. package/types/plugins/project/framework/vuejs3/plugins/hooks.d.ts +0 -3
  142. package/types/plugins/project/framework/vuejs3/plugins/main.d.ts +0 -4
  143. package/types/plugins/project/framework/vuejs3/plugins/packageJSON.d.ts +0 -26
  144. package/types/plugins/project/framework/vuejs3/plugins/router.d.ts +0 -3
  145. package/types/plugins/project/framework/vuejs3/template/files/css/global.scss.d.ts +0 -2
  146. package/types/plugins/project/framework/vuejs3/template/files/css/mixin.scss.d.ts +0 -2
  147. package/types/plugins/project/framework/vuejs3/template/files/css/theme.css.d.ts +0 -2
  148. package/types/plugins/project/framework/vuejs3/template/files/env.d.ts +0 -2
  149. package/types/plugins/project/framework/vuejs3/template/files/eslintignore.d.ts +0 -2
  150. package/types/plugins/project/framework/vuejs3/template/files/eslintrc.yml.d.ts +0 -2
  151. package/types/plugins/project/framework/vuejs3/template/files/gitignore.d.ts +0 -2
  152. package/types/plugins/project/framework/vuejs3/template/files/index.html.d.ts +0 -2
  153. package/types/plugins/project/framework/vuejs3/template/files/npmrc.d.ts +0 -2
  154. package/types/plugins/project/framework/vuejs3/template/files/postcss.config.cjs.d.ts +0 -2
  155. package/types/plugins/project/framework/vuejs3/template/files/prettierignore.d.ts +0 -2
  156. package/types/plugins/project/framework/vuejs3/template/files/prettierrc.yml.d.ts +0 -2
  157. package/types/plugins/project/framework/vuejs3/template/files/src/App.vue.d.ts +0 -2
  158. package/types/plugins/project/framework/vuejs3/template/files/src/main.d.ts +0 -2
  159. package/types/plugins/project/framework/vuejs3/template/files/src/utils/utils.d.ts +0 -2
  160. package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/tabs.d.ts +0 -2
  161. package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/welcome.vue.d.ts +0 -2
  162. package/types/plugins/project/framework/vuejs3/template/files/src/vite-env.d.ts +0 -2
  163. package/types/plugins/project/framework/vuejs3/template/files/tsconfig.json.d.ts +0 -2
  164. package/types/plugins/project/framework/vuejs3/template/files/tsconfig.node.json.d.ts +0 -2
  165. package/types/plugins/project/framework/vuejs3/template/files/vite.config.ts.d.ts +0 -2
  166. package/types/plugins/project/framework/vuejs3/template/index.d.ts +0 -3
  167. package/types/plugins/project/framework/vuejs3/template/static-files.d.ts +0 -2
  168. package/types/plugins/project/i18n.d.ts +0 -3
  169. package/types/plugins/project/utils.d.ts +0 -3
  170. package/types/polyfills/buffer.d.ts +0 -1
  171. package/types/postprocessor/index.d.ts +0 -2
  172. package/types/postprocessor/prettier/index.d.ts +0 -8
  173. package/types/publisher/disk/index.d.ts +0 -13
  174. package/types/publisher/disk/utils.d.ts +0 -9
  175. package/types/publisher/zip/index.d.ts +0 -14
  176. package/types/publisher/zip/utils.d.ts +0 -5
  177. package/types/solutions/icejs.d.ts +0 -18
  178. package/types/solutions/icejs3.d.ts +0 -15
  179. package/types/solutions/rax-app.d.ts +0 -27
  180. package/types/solutions/vuejs3.d.ts +0 -22
  181. package/types/standalone-loader.d.ts +0 -17
  182. package/types/standalone-worker.d.ts +0 -1
  183. package/types/standalone.d.ts +0 -260
  184. package/types/types/analyze.d.ts +0 -5
  185. package/types/types/column-type.d.ts +0 -316
  186. package/types/types/core.d.ts +0 -197
  187. package/types/types/datasource-extra-base.d.ts +0 -32
  188. package/types/types/datasource-page-helper.d.ts +0 -30
  189. package/types/types/datasource.d.ts +0 -0
  190. package/types/types/deps.d.ts +0 -36
  191. package/types/types/error.d.ts +0 -10
  192. package/types/types/file.d.ts +0 -14
  193. package/types/types/index.d.ts +0 -8
  194. package/types/types/intermediate.d.ts +0 -234
  195. package/types/types/jsx.d.ts +0 -34
  196. package/types/types/publisher.d.ts +0 -14
  197. package/types/types/tab.d.ts +0 -6
  198. package/types/utils/OrderedSet.d.ts +0 -9
  199. package/types/utils/Scope.d.ts +0 -12
  200. package/types/utils/ScopeBindings.d.ts +0 -20
  201. package/types/utils/aopHelper.d.ts +0 -2
  202. package/types/utils/apiHandler.d.ts +0 -4
  203. package/types/utils/changeCase.d.ts +0 -10
  204. package/types/utils/columnType.d.ts +0 -1
  205. package/types/utils/common.d.ts +0 -14
  206. package/types/utils/compositeType.d.ts +0 -3
  207. package/types/utils/dataSource.d.ts +0 -17
  208. package/types/utils/debug.d.ts +0 -2
  209. package/types/utils/encodeJsxAttrString.d.ts +0 -1
  210. package/types/utils/errors.d.ts +0 -4
  211. package/types/utils/expressionParser.d.ts +0 -16
  212. package/types/utils/format.d.ts +0 -1
  213. package/types/utils/index.d.ts +0 -15
  214. package/types/utils/jsExpression.d.ts +0 -50
  215. package/types/utils/jsSlot.d.ts +0 -2
  216. package/types/utils/jsxHelpers.d.ts +0 -5
  217. package/types/utils/nodeToJSX.d.ts +0 -32
  218. package/types/utils/nodeToTemplate.d.ts +0 -17
  219. package/types/utils/pathHelper.d.ts +0 -6
  220. package/types/utils/requestHandle.d.ts +0 -72
  221. package/types/utils/resultHelper.d.ts +0 -51
  222. package/types/utils/routerHandle.d.ts +0 -11
  223. package/types/utils/schema.d.ts +0 -24
  224. package/types/utils/templateHelper.d.ts +0 -11
  225. package/types/utils/theme.d.ts +0 -9
  226. package/types/utils/validate.d.ts +0 -8
  227. package/types/utils/version.d.ts +0 -1
@@ -1,316 +0,0 @@
1
- export interface DynamicColumnDataType {
2
- /**
3
- * 编码
4
- */
5
- code: number;
6
- /**
7
- * 名称
8
- */
9
- name: string;
10
- /**
11
- * 数据库类型
12
- */
13
- dbTypeName: string;
14
- }
15
- /**
16
- * 枚举类型的通用结构
17
- */
18
- export interface BaseEnumType {
19
- /**
20
- * 枚举的代码值
21
- */
22
- code: number;
23
- /**
24
- * 枚举的名称描述
25
- */
26
- name: string;
27
- /**
28
- * 枚举的排序值(可选)
29
- */
30
- ordinal?: number;
31
- }
32
- export declare const DYNAMIC_COLUMN_DATA_TYPE_TEXT: DynamicColumnDataType;
33
- export declare const DYNAMIC_COLUMN_DATA_TYPE_TEXTAREA: DynamicColumnDataType;
34
- export declare const DYNAMIC_COLUMN_DATA_TYPE_INT: DynamicColumnDataType;
35
- export declare const DYNAMIC_COLUMN_DATA_TYPE_MONEY: DynamicColumnDataType;
36
- export declare const DYNAMIC_COLUMN_DATA_TYPE_NUMBER: DynamicColumnDataType;
37
- export declare const DYNAMIC_COLUMN_DATA_TYPE_ID_CARD: DynamicColumnDataType;
38
- export declare const DYNAMIC_COLUMN_DATA_TYPE_MOBILE: DynamicColumnDataType;
39
- export declare const DYNAMIC_COLUMN_DATA_TYPE_EMAIL: DynamicColumnDataType;
40
- export declare const DYNAMIC_COLUMN_DATA_TYPE_DATE: DynamicColumnDataType;
41
- export declare const DYNAMIC_COLUMN_DATA_TYPE_DATETIME: DynamicColumnDataType;
42
- export declare const DYNAMIC_COLUMN_DATA_TYPE_LABEL: DynamicColumnDataType;
43
- export declare const DYNAMIC_COLUMN_DATA_TYPE_SWITCH: DynamicColumnDataType;
44
- export declare const DYNAMIC_COLUMN_DATA_TYPE_RADIO: DynamicColumnDataType;
45
- export declare const DYNAMIC_COLUMN_DATA_TYPE_CHECKBOX: DynamicColumnDataType;
46
- export declare const DYNAMIC_COLUMN_DATA_TYPE_USER: DynamicColumnDataType;
47
- export declare const DYNAMIC_COLUMN_DATA_TYPE_DEPT: DynamicColumnDataType;
48
- export declare const DYNAMIC_COLUMN_DATA_TYPE_ORGAN: DynamicColumnDataType;
49
- export declare const DYNAMIC_COLUMN_DATA_TYPE_SELECT: DynamicColumnDataType;
50
- export declare const DYNAMIC_COLUMN_DATA_TYPE_CASCADE: DynamicColumnDataType;
51
- export declare const DYNAMIC_COLUMN_DATA_TYPE_PICTURE: DynamicColumnDataType;
52
- export declare const DYNAMIC_COLUMN_DATA_TYPE_VIDEO: DynamicColumnDataType;
53
- export declare const DYNAMIC_COLUMN_DATA_TYPE_AUDIO: DynamicColumnDataType;
54
- export declare const DYNAMIC_COLUMN_DATA_TYPE_DOC: DynamicColumnDataType;
55
- export declare const DYNAMIC_COLUMN_DATA_TYPE_ATTACHMENTS: DynamicColumnDataType;
56
- export declare const DYNAMIC_COLUMN_DATA_TYPE_AUTO: DynamicColumnDataType;
57
- export declare const DYNAMIC_COLUMN_DATA_TYPE_EDITOR: DynamicColumnDataType;
58
- export declare const DYNAMIC_COLUMN_DATA_TYPE_POSITIONING: DynamicColumnDataType;
59
- export declare const DYNAMIC_COLUMN_DATA_TYPE_SIGNATURE: DynamicColumnDataType;
60
- export declare const DYNAMIC_COLUMN_DATA_TYPE_GRADE: DynamicColumnDataType;
61
- export declare const DYNAMIC_COLUMN_DATA_TYPE_BUTTON: DynamicColumnDataType;
62
- export declare const DYNAMIC_COLUMN_DATA_TYPE_CHILDREN_TABLE: DynamicColumnDataType;
63
- export declare const DYNAMIC_COLUMN_DATA_TYPE_QUOTE: DynamicColumnDataType;
64
- export declare const DYNAMIC_COLUMN_DATA_TYPE_LINKAGE: DynamicColumnDataType;
65
- /**
66
- * 列类型接口
67
- */
68
- export interface ColumnType {
69
- /**
70
- * 列的唯一标识符
71
- */
72
- id: string;
73
- /**
74
- * 关联的表 ID
75
- */
76
- fkTableId: string;
77
- /**
78
- * 表名
79
- */
80
- tableName: string;
81
- /**
82
- * 列名
83
- */
84
- columnName: string;
85
- /**
86
- * 选择操作类型
87
- */
88
- selectActionType: number;
89
- /**
90
- * 选择操作类型的枚举
91
- */
92
- selectActionTypeEnum: BaseEnumType;
93
- /**
94
- * 列键类型
95
- */
96
- columnKeyType: number;
97
- /**
98
- * 列键类型的枚举
99
- */
100
- columnKeyTypeEnum: BaseEnumType;
101
- /**
102
- * 列的数据类型
103
- */
104
- columnType: string;
105
- /**
106
- * 列的大小
107
- */
108
- columnSize: number;
109
- /**
110
- * 列的小数位数
111
- */
112
- columnDecimal: number;
113
- /**
114
- * 默认值
115
- */
116
- defaultValue: string;
117
- /**
118
- * 默认值类型
119
- */
120
- defaultValueType: number;
121
- /**
122
- * 默认值类型的枚举
123
- */
124
- defaultValueTypeEnum: BaseEnumType;
125
- /**
126
- * 是否必填(0:否,1:是)
127
- */
128
- isRequired: number;
129
- /**
130
- * 是否必填的枚举
131
- */
132
- isRequiredEnum: BaseEnumType;
133
- /**
134
- * 列的注释
135
- */
136
- columnComment: string;
137
- /**
138
- * 显示添加类型
139
- */
140
- showAddType: number;
141
- /**
142
- * 显示添加类型的枚举
143
- */
144
- showAddTypeEnum: BaseEnumType;
145
- /**
146
- * 显示更新类型
147
- */
148
- showUpdateType: number;
149
- /**
150
- * 显示更新类型的枚举
151
- */
152
- showUpdateTypeEnum: BaseEnumType;
153
- /**
154
- * 列在列表中的显示类型
155
- */
156
- showListType: number;
157
- /**
158
- * 列在列表中的显示类型的枚举
159
- */
160
- showListTypeEnum: BaseEnumType;
161
- /**
162
- * 列在视图中的显示类型
163
- */
164
- showViewType: number;
165
- /**
166
- * 列在视图中的显示类型的枚举
167
- */
168
- showViewTypeEnum: BaseEnumType;
169
- /**
170
- * 搜索类型
171
- */
172
- searchType: number;
173
- /**
174
- * 搜索类型的枚举
175
- */
176
- searchTypeEnum: BaseEnumType;
177
- /**
178
- * 更新类型
179
- */
180
- updateType: number;
181
- /**
182
- * 更新类型的枚举
183
- */
184
- updateTypeEnum: BaseEnumType;
185
- /**
186
- * 评分代码
187
- */
188
- scoreCode: number;
189
- /**
190
- * 字段宽度
191
- */
192
- fieldWidth: number;
193
- /**
194
- * 字段前缀
195
- */
196
- fieldPrefix: string;
197
- /**
198
- * 显示条件
199
- */
200
- showCondition: string;
201
- /**
202
- * 唯一性验证
203
- */
204
- validationUnique: number;
205
- /**
206
- * 唯一性验证的枚举
207
- */
208
- validationUniqueEnum: BaseEnumType;
209
- /**
210
- * 显示样式
211
- */
212
- showStyle: string;
213
- /**
214
- * 自定义函数
215
- */
216
- customFunction: string;
217
- /**
218
- * 列选项列表
219
- */
220
- columnOptionList: any[];
221
- /**
222
- * 属性列表
223
- */
224
- propList: {
225
- /**
226
- * 属性的唯一标识符
227
- */
228
- id: string;
229
- /**
230
- * 属性名称
231
- */
232
- propName: string;
233
- /**
234
- * 属性值
235
- */
236
- propValue: string;
237
- }[];
238
- /**
239
- * 引导文字
240
- */
241
- guideWords: string;
242
- /**
243
- * 校验表达式
244
- */
245
- fieldValidation: string;
246
- /**
247
- * 校验类型
248
- */
249
- fieldValidationType: string;
250
- /**
251
- * 字段后缀
252
- */
253
- fieldSuffix: string;
254
- /**
255
- * 关联字段
256
- */
257
- joinColumn: string;
258
- /**
259
- * 关联表单
260
- */
261
- joinTable: string;
262
- /**
263
- * 关联表单信息
264
- */
265
- joinTableInfo: JoinTableInfo;
266
- /**
267
- * 连表字段
268
- */
269
- linkageColumn: string;
270
- /**
271
- * 连表字段
272
- */
273
- linkageTableColumn: string;
274
- /**
275
- * 选择操作调用的接口
276
- */
277
- selectAction: string;
278
- /**
279
- * 下拉框选择的标签
280
- */
281
- selectActionLabel: string;
282
- /**
283
- * 下拉框显示的标签
284
- */
285
- selectActionLabelArr: string[];
286
- /**
287
- * 下拉框选择的标签
288
- */
289
- selectActionValue: string;
290
- }
291
- export interface JoinTableInfo {
292
- id: string;
293
- joinAlias: string;
294
- joinColumnList: JoinColumnList[];
295
- joinNum: number;
296
- joinSerial: number;
297
- joinTableId: string;
298
- joinTitle: string;
299
- joinType: number;
300
- mainTableId: string;
301
- relationId: string;
302
- showColumnList: [];
303
- showColumns: string;
304
- showType: number;
305
- tableComment: string;
306
- valueColumn: string;
307
- }
308
- export interface JoinColumnList {
309
- id: string;
310
- conditionKey: string;
311
- conditionValue: string;
312
- fkJoinId: string;
313
- groupSerial: number;
314
- relation: string;
315
- valueType: number;
316
- }
@@ -1,197 +0,0 @@
1
- import { IPublicTypeCompositeArray, IPublicTypeCompositeObject, IPublicTypeJSExpression, IPublicTypeJSFunction, IPublicTypeJSONArray, IPublicTypeJSONObject, IPublicTypeJSSlot, IPublicTypeNodeDataType, IPublicTypeProjectSchema, ResultDir, ResultFile } from '@alilc/lowcode-types';
2
- import type { ProjectBuilderInitOptions } from '../generator/ProjectBuilder';
3
- import { IScopeBindings } from '../utils/ScopeBindings';
4
- import { IParseResult } from './intermediate';
5
- export declare enum FileType {
6
- CSS = "css",
7
- SCSS = "scss",
8
- LESS = "less",
9
- HTML = "html",
10
- JS = "js",
11
- MJS = "mjs",
12
- JSX = "jsx",
13
- TS = "ts",
14
- MTS = "mts",
15
- TSX = "tsx",
16
- JSON = "json",
17
- MD = "md",
18
- VUE = "vue"
19
- }
20
- export declare enum ChunkType {
21
- AST = "ast",
22
- STRING = "string",
23
- JSON = "json"
24
- }
25
- export declare enum PluginType {
26
- COMPONENT = "component",
27
- UTILS = "utils",
28
- I18N = "i18n"
29
- }
30
- export type ChunkContent = string | any;
31
- export type CodeGeneratorFunction<T> = (content: T) => string;
32
- export interface ICodeChunk {
33
- type: ChunkType;
34
- fileType: string;
35
- name: string;
36
- subModule?: string;
37
- content: ChunkContent;
38
- linkAfter: string[];
39
- ext?: Record<string, unknown>;
40
- zIndex?: number;
41
- }
42
- export interface IBaseCodeStruct {
43
- chunks: ICodeChunk[];
44
- depNames: string[];
45
- }
46
- export interface ICodeStruct extends IBaseCodeStruct {
47
- ir: any;
48
- contextData: IContextData;
49
- }
50
- /** 上下文数据,用来在插件之间共享一些数据 */
51
- export interface IContextData extends IProjectBuilderOptions {
52
- /**
53
- * 其他自定义数据
54
- * (三方自定义插件也可以在此放一些数据,建议起个长一点的名称,用自己的插件名做前缀,以防冲突)
55
- */
56
- [key: string]: any;
57
- /**
58
- * 是否使用了 Ref 的 API (this.$/this.$$)
59
- * */
60
- useRefApi?: boolean;
61
- }
62
- export type BuilderComponentPlugin = (initStruct: ICodeStruct) => Promise<ICodeStruct>;
63
- export type BuilderComponentPluginFactory<T> = (config?: T) => BuilderComponentPlugin;
64
- export interface IChunkBuilder {
65
- run: (ir: any, initialStructure?: ICodeStruct) => Promise<{
66
- chunks: ICodeChunk[][];
67
- }>;
68
- getPlugins: () => BuilderComponentPlugin[];
69
- addPlugin: (plugin: BuilderComponentPlugin) => void;
70
- }
71
- export interface ICodeBuilder {
72
- link: (chunkDefinitions: ICodeChunk[]) => string;
73
- generateByType: (type: string, content: unknown) => string;
74
- }
75
- export interface ICompiledModule {
76
- files: ResultFile[];
77
- }
78
- export interface IModuleBuilder {
79
- generateModule: (input: unknown) => Promise<ICompiledModule>;
80
- generateModuleCode: (schema: IPublicTypeProjectSchema | string) => Promise<ResultDir>;
81
- linkCodeChunks: (chunks: Record<string, ICodeChunk[]>, fileName: string) => ResultFile[];
82
- addPlugin: (plugin: BuilderComponentPlugin) => void;
83
- }
84
- /**
85
- * 引擎对外接口
86
- *
87
- * @export
88
- * @interface ICodeGenerator
89
- */
90
- export interface ICodeGenerator {
91
- /**
92
- * 出码接口,把 Schema 转换成代码文件系统描述
93
- *
94
- * @param {(IPublicTypeProjectSchema)} schema 传入的 Schema
95
- * @returns {ResultDir}
96
- * @memberof ICodeGenerator
97
- */
98
- toCode: (schema: IPublicTypeProjectSchema) => Promise<ResultDir>;
99
- }
100
- export interface ISchemaParser {
101
- validate: (schema: IPublicTypeProjectSchema) => boolean;
102
- parse: (schema: IPublicTypeProjectSchema | string) => IParseResult;
103
- }
104
- export interface IProjectTemplate {
105
- slots: Record<string, IProjectSlot>;
106
- generateTemplate: (data: IParseResult) => ResultDir | Promise<ResultDir>;
107
- }
108
- export interface IProjectSlot {
109
- path: string[];
110
- fileName?: string;
111
- }
112
- export interface IProjectPlugins {
113
- [slotName: string]: BuilderComponentPlugin[];
114
- }
115
- export interface IProjectBuilderOptions {
116
- /** 是否处于严格模式 (默认:否) */
117
- inStrictMode?: boolean;
118
- /**
119
- * 是否要容忍对 JSExpression 求值时的异常
120
- * 默认:true
121
- * 注:如果容忍异常,则会在求值时包裹 try-catch 块,
122
- * catch 到异常时默认会抛出一个 CustomEvent 事件里面包含异常信息和求值的表达式
123
- */
124
- tolerateEvalErrors?: boolean;
125
- /**
126
- * 容忍异常的时候的的错误处理语句块
127
- * 默认:无
128
- * 您可以设置为一个语句块,比如:
129
- * window.dispatchEvent(new CustomEvent('lowcode-eval-error', { error, expr }))
130
- *
131
- * 一般可以结合埋点监控模块用来监控求值异常
132
- *
133
- * 其中:
134
- * - error: 异常信息
135
- * - expr: 求值的表达式
136
- */
137
- evalErrorsHandler?: string;
138
- /**
139
- * Hook which is used to customize original options, we can reorder/add/remove plugins/processors
140
- * of the existing solution.
141
- */
142
- customizeBuilderOptions?(originalOptions: ProjectBuilderInitOptions): ProjectBuilderInitOptions;
143
- }
144
- export interface IProjectBuilder {
145
- generateProject: (schema: IPublicTypeProjectSchema | string | IPublicTypeProjectSchema[], resourceList: ResourceListType[]) => Promise<ResultDir>;
146
- }
147
- /** 项目级别的前置处理器 */
148
- export type ProjectPreProcessor = (schema: IPublicTypeProjectSchema) => Promise<IPublicTypeProjectSchema> | IPublicTypeProjectSchema;
149
- export interface ProjectPostProcessorOptions {
150
- parseResult?: IParseResult;
151
- template?: IProjectTemplate;
152
- }
153
- /** 项目级别的后置处理器 */
154
- export type ProjectPostProcessor = (result: ResultDir, schema: IPublicTypeProjectSchema, originalSchema: IPublicTypeProjectSchema | string, options: ProjectPostProcessorOptions) => Promise<ResultDir> | ResultDir;
155
- /** 模块级别的后置处理器的工厂方法 */
156
- export type PostProcessorFactory<T> = (config?: T) => PostProcessor;
157
- /** 模块级别的后置处理器 */
158
- export type PostProcessor = (content: string, fileType: string, name?: string) => string;
159
- export interface IPluginOptions {
160
- fileDirDepth: number;
161
- }
162
- export type BaseGenerator<I, T, C> = (input: I, scope: IScope, config?: C, next?: BaseGenerator<I, T, C>) => T;
163
- type CompositeTypeGenerator<I, T> = BaseGenerator<I, T, CompositeValueGeneratorOptions> | Array<BaseGenerator<I, T, CompositeValueGeneratorOptions>>;
164
- export type NodeGenerator<T> = (nodeItem: IPublicTypeNodeDataType, scope: IScope) => T;
165
- export interface HandlerSet<T> {
166
- string?: CompositeTypeGenerator<string, T>;
167
- boolean?: CompositeTypeGenerator<boolean, T>;
168
- number?: CompositeTypeGenerator<number, T>;
169
- expression?: CompositeTypeGenerator<IPublicTypeJSExpression, T>;
170
- function?: CompositeTypeGenerator<IPublicTypeJSFunction, T>;
171
- slot?: CompositeTypeGenerator<IPublicTypeJSSlot, T>;
172
- array?: CompositeTypeGenerator<IPublicTypeJSONArray | IPublicTypeCompositeArray, T>;
173
- object?: CompositeTypeGenerator<IPublicTypeJSONObject | IPublicTypeCompositeObject, T>;
174
- }
175
- export interface CompositeValueGeneratorOptions {
176
- handlers?: HandlerSet<string>;
177
- nodeGenerator?: NodeGenerator<string>;
178
- tolerateEvalErrors?: boolean;
179
- }
180
- /**
181
- * 作用域定义,维护作用域内定义,支持作用域链上溯
182
- */
183
- export interface IScope {
184
- readonly parent: IScope | null;
185
- readonly bindings?: IScopeBindings;
186
- createSubScope: (ownIndentifiers: string[]) => IScope;
187
- }
188
- /**
189
- * 页面参数
190
- */
191
- export interface ResourceListType {
192
- title: string;
193
- slug: string;
194
- id: string;
195
- firstPage: 'true' | 'false';
196
- }
197
- export {};
@@ -1,32 +0,0 @@
1
- export interface DataSourceExtraBaseType {
2
- /**
3
- * 标题
4
- */
5
- title?: string;
6
- /**
7
- * 是否显示标题
8
- */
9
- showTitle?: boolean;
10
- /**
11
- * 是否显示
12
- */
13
- visible?: boolean;
14
- }
15
- export interface ComponentSettingResult {
16
- /**
17
- * 设置的字段
18
- */
19
- key: string;
20
- /**
21
- * 设置的值
22
- */
23
- value: string;
24
- }
25
- /**
26
- * 请求参数的itemList
27
- */
28
- export interface ItemList {
29
- columnName: string;
30
- orderBy?: 'desc' | 'asc';
31
- columnValue?: string;
32
- }
@@ -1,30 +0,0 @@
1
- import { DataSourceExtraBaseType } from './datasource-extra-base';
2
- export interface DatasourcePageHelperProps extends DataSourceExtraBaseType {
3
- /**
4
- * 默认值
5
- */
6
- defaultValue?: DataSourcePageHelperType;
7
- }
8
- /**
9
- * 数据源分页参数子项类型
10
- */
11
- export interface DataSourcePageHelperTypeItem {
12
- /**
13
- * 字段名称
14
- */
15
- field: string;
16
- /**
17
- * 值
18
- */
19
- value: number;
20
- }
21
- export interface DataSourcePageHelperType {
22
- /**
23
- * 页数信息
24
- */
25
- page: DataSourcePageHelperTypeItem;
26
- /**
27
- * 行数信息
28
- */
29
- rows: DataSourcePageHelperTypeItem;
30
- }
File without changes
@@ -1,36 +0,0 @@
1
- export interface INpmPackage {
2
- package: string;
3
- version: string;
4
- }
5
- /**
6
- * 外部依赖描述
7
- *
8
- * @export
9
- * @interface IExternalDependency
10
- */
11
- export interface IExternalDependency extends INpmPackage, IDependency {
12
- }
13
- export declare enum InternalDependencyType {
14
- PAGE = "pages",
15
- BLOCK = "components",
16
- COMPONENT = "components",
17
- UTILS = "utils"
18
- }
19
- export declare enum DependencyType {
20
- External = "External",
21
- Internal = "Internal"
22
- }
23
- export interface IInternalDependency extends IDependency {
24
- type: InternalDependencyType;
25
- moduleName: string;
26
- }
27
- export interface IDependency {
28
- destructuring: boolean;
29
- exportName: string;
30
- subName?: string;
31
- main?: string;
32
- dependencyType?: DependencyType;
33
- componentName?: string;
34
- package?: string;
35
- devMode: string;
36
- }
@@ -1,10 +0,0 @@
1
- export declare class CodeGeneratorError extends Error {
2
- readonly detail?: unknown;
3
- constructor(message: string, detail?: unknown);
4
- }
5
- export declare class ComponentValidationError extends CodeGeneratorError {
6
- }
7
- export declare class CompatibilityError extends CodeGeneratorError {
8
- }
9
- export declare class PublisherError extends CodeGeneratorError {
10
- }
@@ -1,14 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * 扁平文件信息(层级结构隐含在 pathName 中)
4
- */
5
- export interface FlattenFile {
6
- /**
7
- * 文件路径
8
- */
9
- pathName: string;
10
- /**
11
- * 文件内容
12
- */
13
- content: string | Buffer;
14
- }
@@ -1,8 +0,0 @@
1
- export * from './core';
2
- export * from './deps';
3
- export * from './error';
4
- export * from './analyze';
5
- export * from './intermediate';
6
- export * from './publisher';
7
- export * from './jsx';
8
- export * from './tab';